configure 629 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for mpg123 1.25.6.
  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, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: 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.25.6'
  544. PACKAGE_STRING='mpg123 1.25.6'
  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. BUILD_BUFFER_FALSE
  592. BUILD_BUFFER_TRUE
  593. BUILD_OPENAL_FALSE
  594. BUILD_OPENAL_TRUE
  595. BUILD_MINT_FALSE
  596. BUILD_MINT_TRUE
  597. BUILD_SGI_FALSE
  598. BUILD_SGI_TRUE
  599. BUILD_OS2_FALSE
  600. BUILD_OS2_TRUE
  601. BUILD_HP_FALSE
  602. BUILD_HP_TRUE
  603. BUILD_ARTS_FALSE
  604. BUILD_ARTS_TRUE
  605. BUILD_ALIB_FALSE
  606. BUILD_ALIB_TRUE
  607. BUILD_AIX_FALSE
  608. BUILD_AIX_TRUE
  609. BUILD_WIN32_WASAPI_FALSE
  610. BUILD_WIN32_WASAPI_TRUE
  611. BUILD_WIN32_FALSE
  612. BUILD_WIN32_TRUE
  613. BUILD_SUN_FALSE
  614. BUILD_SUN_TRUE
  615. BUILD_SNDIO_FALSE
  616. BUILD_SNDIO_TRUE
  617. BUILD_SDL_FALSE
  618. BUILD_SDL_TRUE
  619. BUILD_PULSE_FALSE
  620. BUILD_PULSE_TRUE
  621. BUILD_PORTAUDIO_FALSE
  622. BUILD_PORTAUDIO_TRUE
  623. BUILD_OSS_FALSE
  624. BUILD_OSS_TRUE
  625. BUILD_NAS_FALSE
  626. BUILD_NAS_TRUE
  627. BUILD_JACK_FALSE
  628. BUILD_JACK_TRUE
  629. BUILD_ESD_FALSE
  630. BUILD_ESD_TRUE
  631. BUILD_COREAUDIO_FALSE
  632. BUILD_COREAUDIO_TRUE
  633. BUILD_QSA_FALSE
  634. BUILD_QSA_TRUE
  635. BUILD_ALSA_FALSE
  636. BUILD_ALSA_TRUE
  637. BUILD_TINYALSA_FALSE
  638. BUILD_TINYALSA_TRUE
  639. BUILD_DUMMY_FALSE
  640. BUILD_DUMMY_TRUE
  641. output_modules_la
  642. output_modules
  643. HAVE_DUMMY_FALSE
  644. HAVE_DUMMY_TRUE
  645. DUMMY_CFLAGS
  646. DUMMY_LDFLAGS
  647. DUMMY_LIBS
  648. HAVE_OPENAL_FALSE
  649. HAVE_OPENAL_TRUE
  650. OPENAL_CFLAGS
  651. OPENAL_LDFLAGS
  652. OPENAL_LIBS
  653. HAVE_MINT_FALSE
  654. HAVE_MINT_TRUE
  655. MINT_CFLAGS
  656. MINT_LDFLAGS
  657. MINT_LIBS
  658. HAVE_SGI_FALSE
  659. HAVE_SGI_TRUE
  660. SGI_CFLAGS
  661. SGI_LDFLAGS
  662. SGI_LIBS
  663. HAVE_OS2_FALSE
  664. HAVE_OS2_TRUE
  665. OS2_CFLAGS
  666. OS2_LDFLAGS
  667. OS2_LIBS
  668. HAVE_HP_FALSE
  669. HAVE_HP_TRUE
  670. HP_CFLAGS
  671. HP_LDFLAGS
  672. HP_LIBS
  673. HAVE_ARTS_FALSE
  674. HAVE_ARTS_TRUE
  675. ARTS_CFLAGS
  676. ARTS_LDFLAGS
  677. ARTS_LIBS
  678. HAVE_ALIB_FALSE
  679. HAVE_ALIB_TRUE
  680. ALIB_CFLAGS
  681. ALIB_LDFLAGS
  682. ALIB_LIBS
  683. HAVE_AIX_FALSE
  684. HAVE_AIX_TRUE
  685. AIX_CFLAGS
  686. AIX_LDFLAGS
  687. AIX_LIBS
  688. HAVE_NAS_FALSE
  689. HAVE_NAS_TRUE
  690. NAS_CFLAGS
  691. NAS_LDFLAGS
  692. NAS_LIBS
  693. HAVE_SDL_FALSE
  694. HAVE_SDL_TRUE
  695. SDL_LDFLAGS
  696. HAVE_PULSE_FALSE
  697. HAVE_PULSE_TRUE
  698. PULSE_LDFLAGS
  699. HAVE_PORTAUDIO_FALSE
  700. HAVE_PORTAUDIO_TRUE
  701. PORTAUDIO_CFLAGS
  702. PORTAUDIO_LDFLAGS
  703. PORTAUDIO_LIBS
  704. HAVE_JACK_FALSE
  705. HAVE_JACK_TRUE
  706. JACK_LDFLAGS
  707. HAVE_ESD_FALSE
  708. HAVE_ESD_TRUE
  709. ESD_LDFLAGS
  710. HAVE_WIN32_WASAPI_FALSE
  711. HAVE_WIN32_WASAPI_TRUE
  712. WIN32_WASAPI_CFLAGS
  713. WIN32_WASAPI_LDFLAGS
  714. WIN32_WASAPI_LIBS
  715. HAVE_WIN32_FALSE
  716. HAVE_WIN32_TRUE
  717. WIN32_CFLAGS
  718. WIN32_LDFLAGS
  719. WIN32_LIBS
  720. HAVE_SUN_FALSE
  721. HAVE_SUN_TRUE
  722. SUN_CFLAGS
  723. SUN_LDFLAGS
  724. SUN_LIBS
  725. HAVE_SNDIO_FALSE
  726. HAVE_SNDIO_TRUE
  727. SNDIO_CFLAGS
  728. SNDIO_LDFLAGS
  729. SNDIO_LIBS
  730. HAVE_COREAUDIO_FALSE
  731. HAVE_COREAUDIO_TRUE
  732. COREAUDIO_CFLAGS
  733. COREAUDIO_LDFLAGS
  734. COREAUDIO_LIBS
  735. HAVE_OSS_FALSE
  736. HAVE_OSS_TRUE
  737. OSS_CFLAGS
  738. OSS_LDFLAGS
  739. OSS_LIBS
  740. HAVE_QSA_FALSE
  741. HAVE_QSA_TRUE
  742. QSA_CFLAGS
  743. QSA_LDFLAGS
  744. QSA_LIBS
  745. HAVE_ALSA_FALSE
  746. HAVE_ALSA_TRUE
  747. ALSA_CFLAGS
  748. ALSA_LDFLAGS
  749. ALSA_LIBS
  750. HAVE_TINYALSA_FALSE
  751. HAVE_TINYALSA_TRUE
  752. TINYALSA_CFLAGS
  753. TINYALSA_LDFLAGS
  754. TINYALSA_LIBS
  755. SDL_LIBS
  756. SDL_CFLAGS
  757. ESD_LIBS
  758. ESD_CFLAGS
  759. PULSE_LIBS
  760. PULSE_CFLAGS
  761. JACK_LIBS
  762. JACK_CFLAGS
  763. PKG_CONFIG_LIBDIR
  764. PKG_CONFIG_PATH
  765. PKG_CONFIG
  766. DECODER_LOBJ
  767. DECODER_OBJ
  768. YASM_FORMAT
  769. USE_YASM_FOR_AVX_FALSE
  770. USE_YASM_FOR_AVX_TRUE
  771. INCLUDE_SYS_TYPE_H
  772. INCLUDE_STDLIB_H
  773. INCLUDE_STDIO_H
  774. LFS_LOBJ
  775. YASMFLAGS
  776. YASM
  777. EXEC_LT_LDFLAGS
  778. LT_LDFLAGS
  779. HAVE_MODULES_FALSE
  780. HAVE_MODULES_TRUE
  781. LT_SYS_LIBRARY_PATH
  782. OTOOL64
  783. OTOOL
  784. LIPO
  785. NMEDIT
  786. DSYMUTIL
  787. MANIFEST_TOOL
  788. RANLIB
  789. ac_ct_AR
  790. AR
  791. LN_S
  792. NM
  793. ac_ct_DUMPBIN
  794. DUMPBIN
  795. LD
  796. FGREP
  797. SED
  798. LIBTOOL
  799. OBJDUMP
  800. DLLTOOL
  801. AS
  802. EGREP
  803. GREP
  804. LIBM
  805. CPP
  806. am__fastdepCCAS_FALSE
  807. am__fastdepCCAS_TRUE
  808. CCASDEPMODE
  809. CCASFLAGS
  810. CCAS
  811. am__fastdepCC_FALSE
  812. am__fastdepCC_TRUE
  813. CCDEPMODE
  814. am__nodep
  815. AMDEPBACKSLASH
  816. AMDEP_FALSE
  817. AMDEP_TRUE
  818. am__quote
  819. am__include
  820. DEPDIR
  821. OBJEXT
  822. EXEEXT
  823. ac_ct_CC
  824. CPPFLAGS
  825. LDFLAGS
  826. CFLAGS
  827. CC
  828. AM_BACKSLASH
  829. AM_DEFAULT_VERBOSITY
  830. AM_DEFAULT_V
  831. AM_V
  832. am__untar
  833. am__tar
  834. AMTAR
  835. am__leading_dot
  836. SET_MAKE
  837. AWK
  838. mkdir_p
  839. MKDIR_P
  840. INSTALL_STRIP_PROGRAM
  841. STRIP
  842. install_sh
  843. MAKEINFO
  844. AUTOHEADER
  845. AUTOMAKE
  846. AUTOCONF
  847. ACLOCAL
  848. VERSION
  849. PACKAGE
  850. CYGPATH_W
  851. am__isrc
  852. INSTALL_DATA
  853. INSTALL_SCRIPT
  854. INSTALL_PROGRAM
  855. host_os
  856. host_vendor
  857. host_cpu
  858. host
  859. build_os
  860. build_vendor
  861. build_cpu
  862. build
  863. OUTAPI_VERSION
  864. LIBOUT123_VERSION
  865. API_VERSION
  866. LIBMPG123_VERSION
  867. target_alias
  868. host_alias
  869. build_alias
  870. LIBS
  871. ECHO_T
  872. ECHO_N
  873. ECHO_C
  874. DEFS
  875. mandir
  876. localedir
  877. libdir
  878. psdir
  879. pdfdir
  880. dvidir
  881. htmldir
  882. infodir
  883. docdir
  884. oldincludedir
  885. includedir
  886. localstatedir
  887. sharedstatedir
  888. sysconfdir
  889. datadir
  890. datarootdir
  891. libexecdir
  892. sbindir
  893. bindir
  894. program_transform_name
  895. prefix
  896. exec_prefix
  897. PACKAGE_URL
  898. PACKAGE_BUGREPORT
  899. PACKAGE_STRING
  900. PACKAGE_VERSION
  901. PACKAGE_TARNAME
  902. PACKAGE_NAME
  903. PATH_SEPARATOR
  904. SHELL'
  905. ac_subst_files=''
  906. ac_user_opts='
  907. enable_option_checking
  908. enable_silent_rules
  909. enable_dependency_tracking
  910. enable_modules
  911. enable_static
  912. enable_shared
  913. with_pic
  914. enable_fast_install
  915. with_aix_soname
  916. with_gnu_ld
  917. with_sysroot
  918. enable_libtool_lock
  919. enable_debug
  920. enable_nagging
  921. enable_gapless
  922. enable_fifo
  923. enable_ipv6
  924. enable_network
  925. enable_id3v2
  926. enable_string
  927. enable_icy
  928. enable_ntom
  929. enable_downsample
  930. enable_feeder
  931. enable_messages
  932. enable_new_huffman
  933. enable_int_quality
  934. enable_16bit
  935. enable_8bit
  936. enable_32bit
  937. enable_real
  938. enable_equalizer
  939. with_cpu
  940. enable_yasm
  941. enable_ieeefloat
  942. enable_buffer
  943. enable_newoldwritesample
  944. enable_layer1
  945. enable_layer2
  946. enable_layer3
  947. with_audio
  948. with_default_audio
  949. with_optimization
  950. with_seektable
  951. enable_largefile
  952. enable_lfs_alias
  953. enable_feature_report
  954. '
  955. ac_precious_vars='build_alias
  956. host_alias
  957. target_alias
  958. CC
  959. CFLAGS
  960. LDFLAGS
  961. LIBS
  962. CPPFLAGS
  963. CCAS
  964. CCASFLAGS
  965. CPP
  966. LT_SYS_LIBRARY_PATH
  967. PKG_CONFIG
  968. PKG_CONFIG_PATH
  969. PKG_CONFIG_LIBDIR
  970. JACK_CFLAGS
  971. JACK_LIBS
  972. PULSE_CFLAGS
  973. PULSE_LIBS
  974. ESD_CFLAGS
  975. ESD_LIBS
  976. SDL_CFLAGS
  977. SDL_LIBS'
  978. # Initialize some variables set by options.
  979. ac_init_help=
  980. ac_init_version=false
  981. ac_unrecognized_opts=
  982. ac_unrecognized_sep=
  983. # The variables have the same names as the options, with
  984. # dashes changed to underlines.
  985. cache_file=/dev/null
  986. exec_prefix=NONE
  987. no_create=
  988. no_recursion=
  989. prefix=NONE
  990. program_prefix=NONE
  991. program_suffix=NONE
  992. program_transform_name=s,x,x,
  993. silent=
  994. site=
  995. srcdir=
  996. verbose=
  997. x_includes=NONE
  998. x_libraries=NONE
  999. # Installation directory options.
  1000. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1001. # and all the variables that are supposed to be based on exec_prefix
  1002. # by default will actually change.
  1003. # Use braces instead of parens because sh, perl, etc. also accept them.
  1004. # (The list follows the same order as the GNU Coding Standards.)
  1005. bindir='${exec_prefix}/bin'
  1006. sbindir='${exec_prefix}/sbin'
  1007. libexecdir='${exec_prefix}/libexec'
  1008. datarootdir='${prefix}/share'
  1009. datadir='${datarootdir}'
  1010. sysconfdir='${prefix}/etc'
  1011. sharedstatedir='${prefix}/com'
  1012. localstatedir='${prefix}/var'
  1013. includedir='${prefix}/include'
  1014. oldincludedir='/usr/include'
  1015. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1016. infodir='${datarootdir}/info'
  1017. htmldir='${docdir}'
  1018. dvidir='${docdir}'
  1019. pdfdir='${docdir}'
  1020. psdir='${docdir}'
  1021. libdir='${exec_prefix}/lib'
  1022. localedir='${datarootdir}/locale'
  1023. mandir='${datarootdir}/man'
  1024. ac_prev=
  1025. ac_dashdash=
  1026. for ac_option
  1027. do
  1028. # If the previous option needs an argument, assign it.
  1029. if test -n "$ac_prev"; then
  1030. eval $ac_prev=\$ac_option
  1031. ac_prev=
  1032. continue
  1033. fi
  1034. case $ac_option in
  1035. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1036. *=) ac_optarg= ;;
  1037. *) ac_optarg=yes ;;
  1038. esac
  1039. # Accept the important Cygnus configure options, so we can diagnose typos.
  1040. case $ac_dashdash$ac_option in
  1041. --)
  1042. ac_dashdash=yes ;;
  1043. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1044. ac_prev=bindir ;;
  1045. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1046. bindir=$ac_optarg ;;
  1047. -build | --build | --buil | --bui | --bu)
  1048. ac_prev=build_alias ;;
  1049. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1050. build_alias=$ac_optarg ;;
  1051. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1052. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1053. ac_prev=cache_file ;;
  1054. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1055. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1056. cache_file=$ac_optarg ;;
  1057. --config-cache | -C)
  1058. cache_file=config.cache ;;
  1059. -datadir | --datadir | --datadi | --datad)
  1060. ac_prev=datadir ;;
  1061. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1062. datadir=$ac_optarg ;;
  1063. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1064. | --dataroo | --dataro | --datar)
  1065. ac_prev=datarootdir ;;
  1066. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1067. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1068. datarootdir=$ac_optarg ;;
  1069. -disable-* | --disable-*)
  1070. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1071. # Reject names that are not valid shell variable names.
  1072. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1073. as_fn_error $? "invalid feature name: $ac_useropt"
  1074. ac_useropt_orig=$ac_useropt
  1075. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1076. case $ac_user_opts in
  1077. *"
  1078. "enable_$ac_useropt"
  1079. "*) ;;
  1080. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1081. ac_unrecognized_sep=', ';;
  1082. esac
  1083. eval enable_$ac_useropt=no ;;
  1084. -docdir | --docdir | --docdi | --doc | --do)
  1085. ac_prev=docdir ;;
  1086. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1087. docdir=$ac_optarg ;;
  1088. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1089. ac_prev=dvidir ;;
  1090. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1091. dvidir=$ac_optarg ;;
  1092. -enable-* | --enable-*)
  1093. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1094. # Reject names that are not valid shell variable names.
  1095. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1096. as_fn_error $? "invalid feature name: $ac_useropt"
  1097. ac_useropt_orig=$ac_useropt
  1098. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1099. case $ac_user_opts in
  1100. *"
  1101. "enable_$ac_useropt"
  1102. "*) ;;
  1103. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1104. ac_unrecognized_sep=', ';;
  1105. esac
  1106. eval enable_$ac_useropt=\$ac_optarg ;;
  1107. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1108. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1109. | --exec | --exe | --ex)
  1110. ac_prev=exec_prefix ;;
  1111. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1112. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1113. | --exec=* | --exe=* | --ex=*)
  1114. exec_prefix=$ac_optarg ;;
  1115. -gas | --gas | --ga | --g)
  1116. # Obsolete; use --with-gas.
  1117. with_gas=yes ;;
  1118. -help | --help | --hel | --he | -h)
  1119. ac_init_help=long ;;
  1120. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1121. ac_init_help=recursive ;;
  1122. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1123. ac_init_help=short ;;
  1124. -host | --host | --hos | --ho)
  1125. ac_prev=host_alias ;;
  1126. -host=* | --host=* | --hos=* | --ho=*)
  1127. host_alias=$ac_optarg ;;
  1128. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1129. ac_prev=htmldir ;;
  1130. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1131. | --ht=*)
  1132. htmldir=$ac_optarg ;;
  1133. -includedir | --includedir | --includedi | --included | --include \
  1134. | --includ | --inclu | --incl | --inc)
  1135. ac_prev=includedir ;;
  1136. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1137. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1138. includedir=$ac_optarg ;;
  1139. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1140. ac_prev=infodir ;;
  1141. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1142. infodir=$ac_optarg ;;
  1143. -libdir | --libdir | --libdi | --libd)
  1144. ac_prev=libdir ;;
  1145. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1146. libdir=$ac_optarg ;;
  1147. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1148. | --libexe | --libex | --libe)
  1149. ac_prev=libexecdir ;;
  1150. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1151. | --libexe=* | --libex=* | --libe=*)
  1152. libexecdir=$ac_optarg ;;
  1153. -localedir | --localedir | --localedi | --localed | --locale)
  1154. ac_prev=localedir ;;
  1155. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1156. localedir=$ac_optarg ;;
  1157. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1158. | --localstate | --localstat | --localsta | --localst | --locals)
  1159. ac_prev=localstatedir ;;
  1160. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1161. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1162. localstatedir=$ac_optarg ;;
  1163. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1164. ac_prev=mandir ;;
  1165. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1166. mandir=$ac_optarg ;;
  1167. -nfp | --nfp | --nf)
  1168. # Obsolete; use --without-fp.
  1169. with_fp=no ;;
  1170. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1171. | --no-cr | --no-c | -n)
  1172. no_create=yes ;;
  1173. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1174. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1175. no_recursion=yes ;;
  1176. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1177. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1178. | --oldin | --oldi | --old | --ol | --o)
  1179. ac_prev=oldincludedir ;;
  1180. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1181. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1182. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1183. oldincludedir=$ac_optarg ;;
  1184. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1185. ac_prev=prefix ;;
  1186. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1187. prefix=$ac_optarg ;;
  1188. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1189. | --program-pre | --program-pr | --program-p)
  1190. ac_prev=program_prefix ;;
  1191. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1192. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1193. program_prefix=$ac_optarg ;;
  1194. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1195. | --program-suf | --program-su | --program-s)
  1196. ac_prev=program_suffix ;;
  1197. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1198. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1199. program_suffix=$ac_optarg ;;
  1200. -program-transform-name | --program-transform-name \
  1201. | --program-transform-nam | --program-transform-na \
  1202. | --program-transform-n | --program-transform- \
  1203. | --program-transform | --program-transfor \
  1204. | --program-transfo | --program-transf \
  1205. | --program-trans | --program-tran \
  1206. | --progr-tra | --program-tr | --program-t)
  1207. ac_prev=program_transform_name ;;
  1208. -program-transform-name=* | --program-transform-name=* \
  1209. | --program-transform-nam=* | --program-transform-na=* \
  1210. | --program-transform-n=* | --program-transform-=* \
  1211. | --program-transform=* | --program-transfor=* \
  1212. | --program-transfo=* | --program-transf=* \
  1213. | --program-trans=* | --program-tran=* \
  1214. | --progr-tra=* | --program-tr=* | --program-t=*)
  1215. program_transform_name=$ac_optarg ;;
  1216. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1217. ac_prev=pdfdir ;;
  1218. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1219. pdfdir=$ac_optarg ;;
  1220. -psdir | --psdir | --psdi | --psd | --ps)
  1221. ac_prev=psdir ;;
  1222. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1223. psdir=$ac_optarg ;;
  1224. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1225. | -silent | --silent | --silen | --sile | --sil)
  1226. silent=yes ;;
  1227. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1228. ac_prev=sbindir ;;
  1229. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1230. | --sbi=* | --sb=*)
  1231. sbindir=$ac_optarg ;;
  1232. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1233. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1234. | --sharedst | --shareds | --shared | --share | --shar \
  1235. | --sha | --sh)
  1236. ac_prev=sharedstatedir ;;
  1237. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1238. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1239. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1240. | --sha=* | --sh=*)
  1241. sharedstatedir=$ac_optarg ;;
  1242. -site | --site | --sit)
  1243. ac_prev=site ;;
  1244. -site=* | --site=* | --sit=*)
  1245. site=$ac_optarg ;;
  1246. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1247. ac_prev=srcdir ;;
  1248. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1249. srcdir=$ac_optarg ;;
  1250. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1251. | --syscon | --sysco | --sysc | --sys | --sy)
  1252. ac_prev=sysconfdir ;;
  1253. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1254. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1255. sysconfdir=$ac_optarg ;;
  1256. -target | --target | --targe | --targ | --tar | --ta | --t)
  1257. ac_prev=target_alias ;;
  1258. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1259. target_alias=$ac_optarg ;;
  1260. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1261. verbose=yes ;;
  1262. -version | --version | --versio | --versi | --vers | -V)
  1263. ac_init_version=: ;;
  1264. -with-* | --with-*)
  1265. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1266. # Reject names that are not valid shell variable names.
  1267. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1268. as_fn_error $? "invalid package name: $ac_useropt"
  1269. ac_useropt_orig=$ac_useropt
  1270. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1271. case $ac_user_opts in
  1272. *"
  1273. "with_$ac_useropt"
  1274. "*) ;;
  1275. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1276. ac_unrecognized_sep=', ';;
  1277. esac
  1278. eval with_$ac_useropt=\$ac_optarg ;;
  1279. -without-* | --without-*)
  1280. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1281. # Reject names that are not valid shell variable names.
  1282. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1283. as_fn_error $? "invalid package name: $ac_useropt"
  1284. ac_useropt_orig=$ac_useropt
  1285. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1286. case $ac_user_opts in
  1287. *"
  1288. "with_$ac_useropt"
  1289. "*) ;;
  1290. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1291. ac_unrecognized_sep=', ';;
  1292. esac
  1293. eval with_$ac_useropt=no ;;
  1294. --x)
  1295. # Obsolete; use --with-x.
  1296. with_x=yes ;;
  1297. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1298. | --x-incl | --x-inc | --x-in | --x-i)
  1299. ac_prev=x_includes ;;
  1300. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1301. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1302. x_includes=$ac_optarg ;;
  1303. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1304. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1305. ac_prev=x_libraries ;;
  1306. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1307. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1308. x_libraries=$ac_optarg ;;
  1309. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1310. Try \`$0 --help' for more information"
  1311. ;;
  1312. *=*)
  1313. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1314. # Reject names that are not valid shell variable names.
  1315. case $ac_envvar in #(
  1316. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1317. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1318. esac
  1319. eval $ac_envvar=\$ac_optarg
  1320. export $ac_envvar ;;
  1321. *)
  1322. # FIXME: should be removed in autoconf 3.0.
  1323. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1324. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1325. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1326. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1327. ;;
  1328. esac
  1329. done
  1330. if test -n "$ac_prev"; then
  1331. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1332. as_fn_error $? "missing argument to $ac_option"
  1333. fi
  1334. if test -n "$ac_unrecognized_opts"; then
  1335. case $enable_option_checking in
  1336. no) ;;
  1337. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1338. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1339. esac
  1340. fi
  1341. # Check all directory arguments for consistency.
  1342. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1343. datadir sysconfdir sharedstatedir localstatedir includedir \
  1344. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1345. libdir localedir mandir
  1346. do
  1347. eval ac_val=\$$ac_var
  1348. # Remove trailing slashes.
  1349. case $ac_val in
  1350. */ )
  1351. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1352. eval $ac_var=\$ac_val;;
  1353. esac
  1354. # Be sure to have absolute directory names.
  1355. case $ac_val in
  1356. [\\/$]* | ?:[\\/]* ) continue;;
  1357. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1358. esac
  1359. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1360. done
  1361. # There might be people who depend on the old broken behavior: `$host'
  1362. # used to hold the argument of --host etc.
  1363. # FIXME: To remove some day.
  1364. build=$build_alias
  1365. host=$host_alias
  1366. target=$target_alias
  1367. # FIXME: To remove some day.
  1368. if test "x$host_alias" != x; then
  1369. if test "x$build_alias" = x; then
  1370. cross_compiling=maybe
  1371. elif test "x$build_alias" != "x$host_alias"; then
  1372. cross_compiling=yes
  1373. fi
  1374. fi
  1375. ac_tool_prefix=
  1376. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1377. test "$silent" = yes && exec 6>/dev/null
  1378. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1379. ac_ls_di=`ls -di .` &&
  1380. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1381. as_fn_error $? "working directory cannot be determined"
  1382. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1383. as_fn_error $? "pwd does not report name of working directory"
  1384. # Find the source files, if location was not specified.
  1385. if test -z "$srcdir"; then
  1386. ac_srcdir_defaulted=yes
  1387. # Try the directory containing this script, then the parent directory.
  1388. ac_confdir=`$as_dirname -- "$as_myself" ||
  1389. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1390. X"$as_myself" : 'X\(//\)[^/]' \| \
  1391. X"$as_myself" : 'X\(//\)$' \| \
  1392. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1393. $as_echo X"$as_myself" |
  1394. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1395. s//\1/
  1396. q
  1397. }
  1398. /^X\(\/\/\)[^/].*/{
  1399. s//\1/
  1400. q
  1401. }
  1402. /^X\(\/\/\)$/{
  1403. s//\1/
  1404. q
  1405. }
  1406. /^X\(\/\).*/{
  1407. s//\1/
  1408. q
  1409. }
  1410. s/.*/./; q'`
  1411. srcdir=$ac_confdir
  1412. if test ! -r "$srcdir/$ac_unique_file"; then
  1413. srcdir=..
  1414. fi
  1415. else
  1416. ac_srcdir_defaulted=no
  1417. fi
  1418. if test ! -r "$srcdir/$ac_unique_file"; then
  1419. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1420. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1421. fi
  1422. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1423. ac_abs_confdir=`(
  1424. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1425. pwd)`
  1426. # When building in place, set srcdir=.
  1427. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1428. srcdir=.
  1429. fi
  1430. # Remove unnecessary trailing slashes from srcdir.
  1431. # Double slashes in file names in object file debugging info
  1432. # mess up M-x gdb in Emacs.
  1433. case $srcdir in
  1434. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1435. esac
  1436. for ac_var in $ac_precious_vars; do
  1437. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1438. eval ac_env_${ac_var}_value=\$${ac_var}
  1439. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1440. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1441. done
  1442. #
  1443. # Report the --help message.
  1444. #
  1445. if test "$ac_init_help" = "long"; then
  1446. # Omit some internal or obsolete options to make the list less imposing.
  1447. # This message is too long to be a string in the A/UX 3.1 sh.
  1448. cat <<_ACEOF
  1449. \`configure' configures mpg123 1.25.6 to adapt to many kinds of systems.
  1450. Usage: $0 [OPTION]... [VAR=VALUE]...
  1451. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1452. VAR=VALUE. See below for descriptions of some of the useful variables.
  1453. Defaults for the options are specified in brackets.
  1454. Configuration:
  1455. -h, --help display this help and exit
  1456. --help=short display options specific to this package
  1457. --help=recursive display the short help of all the included packages
  1458. -V, --version display version information and exit
  1459. -q, --quiet, --silent do not print \`checking ...' messages
  1460. --cache-file=FILE cache test results in FILE [disabled]
  1461. -C, --config-cache alias for \`--cache-file=config.cache'
  1462. -n, --no-create do not create output files
  1463. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1464. Installation directories:
  1465. --prefix=PREFIX install architecture-independent files in PREFIX
  1466. [$ac_default_prefix]
  1467. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1468. [PREFIX]
  1469. By default, \`make install' will install all the files in
  1470. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1471. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1472. for instance \`--prefix=\$HOME'.
  1473. For better control, use the options below.
  1474. Fine tuning of the installation directories:
  1475. --bindir=DIR user executables [EPREFIX/bin]
  1476. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1477. --libexecdir=DIR program executables [EPREFIX/libexec]
  1478. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1479. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1480. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1481. --libdir=DIR object code libraries [EPREFIX/lib]
  1482. --includedir=DIR C header files [PREFIX/include]
  1483. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1484. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1485. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1486. --infodir=DIR info documentation [DATAROOTDIR/info]
  1487. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1488. --mandir=DIR man documentation [DATAROOTDIR/man]
  1489. --docdir=DIR documentation root [DATAROOTDIR/doc/mpg123]
  1490. --htmldir=DIR html documentation [DOCDIR]
  1491. --dvidir=DIR dvi documentation [DOCDIR]
  1492. --pdfdir=DIR pdf documentation [DOCDIR]
  1493. --psdir=DIR ps documentation [DOCDIR]
  1494. _ACEOF
  1495. cat <<\_ACEOF
  1496. Program names:
  1497. --program-prefix=PREFIX prepend PREFIX to installed program names
  1498. --program-suffix=SUFFIX append SUFFIX to installed program names
  1499. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1500. System types:
  1501. --build=BUILD configure for building on BUILD [guessed]
  1502. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1503. _ACEOF
  1504. fi
  1505. if test -n "$ac_init_help"; then
  1506. case $ac_init_help in
  1507. short | recursive ) echo "Configuration of mpg123 1.25.6:";;
  1508. esac
  1509. cat <<\_ACEOF
  1510. Optional Features:
  1511. --disable-option-checking ignore unrecognized --enable/--with options
  1512. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1513. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1514. --enable-silent-rules less verbose build output (undo: "make V=1")
  1515. --disable-silent-rules verbose build output (undo: "make V=0")
  1516. --enable-dependency-tracking
  1517. do not reject slow dependency extractors
  1518. --disable-dependency-tracking
  1519. speeds up one-time build
  1520. --enable-modules=no/yes dynamically loadable output modules
  1521. --enable-static[=PKGS] build static libraries [default=no]
  1522. --enable-shared[=PKGS] build shared libraries [default=yes]
  1523. --enable-fast-install[=PKGS]
  1524. optimize for fast installation [default=yes]
  1525. --disable-libtool-lock avoid locking (might break parallel builds)
  1526. --enable-debug=no/yes turn on debugging
  1527. --enable-nagging=no/yes turn on GCC's pedantic nagging with error on warnings, does not include --enable-debug anymore
  1528. --enable-gapless=no/yes turn on gapless (enabled per default)
  1529. --enable-fifo=no/yes FIFO support for control interface (auto-enabled on linux)
  1530. --enable-ipv6=no/yes IPv6 support (actually any protocol your libc does with getaddrinfo)
  1531. --enable-network=no/yes network support (http streams / webradio)
  1532. --disable-id3v2=no/yes no ID3v2 parsing
  1533. --disable-string=no/yes no string API (this will disable ID3v2; main mpg123 won't build anymore)
  1534. --disable-icy=no/yes no ICY metainfo parsing/conversion (main mpg123 won't build!)
  1535. --disable-ntom=no/yes no flexible resampling
  1536. --disable-downsample=no/yes no downsampled decoding
  1537. --disable-feeder=no/yes no feeder decoding, no buffered readers
  1538. --disable-messages=no/yes no error/warning messages on the console
  1539. --enable-new-huffman=yes/no use new huffman decoding scheme by Taihei (faster on modern CPUs at least, so on by default)
  1540. --enable-int-quality=yes/no use rounding instead of fast truncation for integer output, where possible
  1541. --disable-16bit=no/yes no 16 bit integer output
  1542. --disable-8bit=no/yes no 8 bit integer output
  1543. --disable-32bit=no/yes no 32 bit integer output (also 24 bit)
  1544. --disable-real=no/yes no real (floating point) output
  1545. --disable-equalizer=no/yes no equalizer support
  1546. --enable-yasm=no/yes enforce yasm instad of default assembler for some optimizations (AVX, currently)
  1547. --enable-ieeefloat=yes/no use special hackery relying on IEEE 754 floating point storage format (to accurately round to 16 bit integer at bit more efficiently in generic decoder, enabled by default, disable in case you have a very special computer)
  1548. --enable-buffer=yes/no disable audio buffer code (default uses system whitelist... proper checks later)
  1549. --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)
  1550. --disable-layer1=no/yes no layer I decoding
  1551. --disable-layer2=no/yes no layer II decoding
  1552. --disable-layer3=no/yes no layer III decoding
  1553. --disable-largefile omit support for large files
  1554. --disable-lfs-alias disable alias wrappers for largefile bitness (mpg123_seek_32 or mpg123_seek_64 in addition to mpg123_seek, or the other way around; It is a mess, do not play with this!)
  1555. --disable-feature_report Disable feature report function
  1556. Optional Packages:
  1557. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1558. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1559. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1560. both]
  1561. --with-aix-soname=aix|svr4|both
  1562. shared library versioning (aka "SONAME") variant to
  1563. provide on AIX, [default=aix].
  1564. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1565. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1566. compiler's sysroot if not specified).
  1567. --with-cpu=generic[_fpu] Use generic processor code with floating point arithmetic
  1568. --with-cpu=generic_float Plain alias to generic_fpu now... float output is a normal runtime option!
  1569. --with-cpu=generic_nofpu Use generic processor code with fixed point arithmetic (p.ex. ARM)
  1570. --with-cpu=generic_dither Use generic processor code with floating point arithmetic and dithering for 1to1 16bit decoding.
  1571. --with-cpu=i386[_fpu] Use code optimized for i386 processors with floating point arithmetic
  1572. --with-cpu=i386_nofpu Use code optimized for i386 processors with fixed point arithmetic
  1573. --with-cpu=i486 Use code optimized for i486 processors (only usable alone!)
  1574. --with-cpu=i586 Use code optimized for i586 processors
  1575. --with-cpu=i586_dither Use code optimized for i586 processors with dithering (noise shaping), adds 256K to binary size
  1576. --with-cpu=3dnow Use code optimized for 3DNow processors
  1577. --with-cpu=3dnow_vintage Use code optimized for older 3DNow processors (K6 family)
  1578. --with-cpu=3dnowext Use code optimized for 3DNowExt processors (K6-3+, Athlon)
  1579. --with-cpu=3dnowext_alone Really only 3DNowExt decoder, without 3DNow fallback for flexible rate
  1580. --with-cpu=3dnow_vintage Use code optimized for older extended 3DNow processors (like K6-III+)
  1581. --with-cpu=mmx Use code optimized for MMX processors
  1582. --with-cpu=mmx_alone Really only MMX decoder, without i586 fallback for flexible rate
  1583. --with-cpu=sse Use code optimized for SSE processors
  1584. --with-cpu=sse_vintage Use code optimized for older SSE processors (plain C DCT36)
  1585. --with-cpu=sse_alone Really only SSE decoder, without i586 fallback for flexible rate
  1586. --with-cpu=avx Use code optimized for x86-64 with AVX processors
  1587. --with-cpu=x86 Pack all x86 opts into one binary (excluding i486, including dither)
  1588. --with-cpu=x86-64 Use code optimized for x86-64 processors (AMD64 and Intel64, including AVX and dithered generic)
  1589. --with-cpu=altivec Use code optimized for Altivec processors (PowerPC G4 and G5)
  1590. --with-cpu=ppc_nofpu Use code optimized for PowerPC processors with fixed point arithmetic
  1591. --with-cpu=neon Use code optimized for ARM NEON SIMD engine (Cortex-A series)
  1592. --with-cpu=arm_fpu Pack neon and generic[_dither] decoders, for ARM processors with FPU and/or NEON
  1593. --with-cpu=arm_nofpu Use code optimized for ARM processors with fixed point arithmetic
  1594. --with-cpu=neon64 Use code optimized for AArch64 NEON SIMD engine
  1595. --with-cpu=aarch64 Pack neon64 and generic[_dither] decoders, for 64bit ARM processors
  1596. --with-audio=<list of modules> Select a list (or only one) of audio output modules (comma or space separated list).
  1597. --with-default-audio=aix Use AIX as default audio output sub-system
  1598. --with-default-audio=alib Use Alib as default audio output sub-system (for HPUX)
  1599. --with-default-audio=alsa Use ALSA as default audio output sub-system (libasound)
  1600. --with-default-audio=tinyalsa Use ALSA as default audio output sub-system (tinyalsa)
  1601. --with-default-audio=arts Use aRts as default audio output sub-system (KDE sound server)
  1602. --with-default-audio=dummy Use dummy as default audio (when no sound card is available)
  1603. --with-default-audio=esd Use ESoundD as default audio output sub-system
  1604. --with-default-audio=hp Use HP as default audio output sub-system
  1605. --with-default-audio=jack Use JACK as default low-latency audio server
  1606. --with-default-audio=coreaudio Use Mac OS X as default audio output sub-system (CoreAudio)
  1607. --with-default-audio=mint Use MinT as default audio output sub-system (Atari)
  1608. --with-default-audio=nas Use NAS as default audio output (Network Audio System)
  1609. --with-default-audio=os2 Use OS2 as default audio output sub-system
  1610. --with-default-audio=oss Use OSS as default audio output sub-system (/dev/dsp)
  1611. --with-default-audio=portaudio Use PortAudio as default audio output sub-system
  1612. --with-default-audio=pulse Use Pulse audio server as default audio output sub-system
  1613. --with-default-audio=qsa Use QSA as default audio output sub-system
  1614. --with-default-audio=sdl Use SDL as default audio output sub-system (Simple DirectMedia Layer)
  1615. --with-default-audio=sgi Use SGI as default audio output sub-system (IRIX)
  1616. --with-default-audio=sndio Use OpenBSD's sndio as default audio output sub-system
  1617. --with-default-audio=sun Use Sun as default audio output sub-system (/dev/audio)
  1618. --with-default-audio=win32 Use Win32 audio as default audio output sub-system
  1619. --with-default-audio=win32_wasapi Use Win32 wasapi audio as default audio output sub-system
  1620. --with-optimization=0 No Optimization
  1621. --with-optimization=1 Limited Optimization (-O) (for gcc)
  1622. --with-optimization=2 Default Optimization (-O2 ...) (for gcc)
  1623. --with-optimization=3 More Optimize than default (-O3 ...) (for gcc)
  1624. --with-optimization=4 Optimize yet more (-O4 ...) (for gcc)
  1625. --with-seektable=<size> choose size of seek index table (0 disables it), default 1000
  1626. Some influential environment variables:
  1627. CC C compiler command
  1628. CFLAGS C compiler flags
  1629. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1630. nonstandard directory <lib dir>
  1631. LIBS libraries to pass to the linker, e.g. -l<library>
  1632. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1633. you have headers in a nonstandard directory <include dir>
  1634. CCAS assembler compiler command (defaults to CC)
  1635. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1636. CPP C preprocessor
  1637. LT_SYS_LIBRARY_PATH
  1638. User-defined run-time library search path.
  1639. PKG_CONFIG path to pkg-config utility
  1640. PKG_CONFIG_PATH
  1641. directories to add to pkg-config's search path
  1642. PKG_CONFIG_LIBDIR
  1643. path overriding pkg-config's built-in search path
  1644. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1645. JACK_LIBS linker flags for JACK, overriding pkg-config
  1646. PULSE_CFLAGS
  1647. C compiler flags for PULSE, overriding pkg-config
  1648. PULSE_LIBS linker flags for PULSE, overriding pkg-config
  1649. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1650. ESD_LIBS linker flags for ESD, overriding pkg-config
  1651. SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
  1652. SDL_LIBS linker flags for SDL, overriding pkg-config
  1653. Use these variables to override the choices made by `configure' or to help
  1654. it to find libraries and programs with nonstandard names/locations.
  1655. Report bugs to <[email protected]>.
  1656. _ACEOF
  1657. ac_status=$?
  1658. fi
  1659. if test "$ac_init_help" = "recursive"; then
  1660. # If there are subdirs, report their specific --help.
  1661. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1662. test -d "$ac_dir" ||
  1663. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1664. continue
  1665. ac_builddir=.
  1666. case "$ac_dir" in
  1667. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1668. *)
  1669. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1670. # A ".." for each directory in $ac_dir_suffix.
  1671. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1672. case $ac_top_builddir_sub in
  1673. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1674. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1675. esac ;;
  1676. esac
  1677. ac_abs_top_builddir=$ac_pwd
  1678. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1679. # for backward compatibility:
  1680. ac_top_builddir=$ac_top_build_prefix
  1681. case $srcdir in
  1682. .) # We are building in place.
  1683. ac_srcdir=.
  1684. ac_top_srcdir=$ac_top_builddir_sub
  1685. ac_abs_top_srcdir=$ac_pwd ;;
  1686. [\\/]* | ?:[\\/]* ) # Absolute name.
  1687. ac_srcdir=$srcdir$ac_dir_suffix;
  1688. ac_top_srcdir=$srcdir
  1689. ac_abs_top_srcdir=$srcdir ;;
  1690. *) # Relative name.
  1691. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1692. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1693. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1694. esac
  1695. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1696. cd "$ac_dir" || { ac_status=$?; continue; }
  1697. # Check for guested configure.
  1698. if test -f "$ac_srcdir/configure.gnu"; then
  1699. echo &&
  1700. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1701. elif test -f "$ac_srcdir/configure"; then
  1702. echo &&
  1703. $SHELL "$ac_srcdir/configure" --help=recursive
  1704. else
  1705. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1706. fi || ac_status=$?
  1707. cd "$ac_pwd" || { ac_status=$?; break; }
  1708. done
  1709. fi
  1710. test -n "$ac_init_help" && exit $ac_status
  1711. if $ac_init_version; then
  1712. cat <<\_ACEOF
  1713. mpg123 configure 1.25.6
  1714. generated by GNU Autoconf 2.69
  1715. Copyright (C) 2012 Free Software Foundation, Inc.
  1716. This configure script is free software; the Free Software Foundation
  1717. gives unlimited permission to copy, distribute and modify it.
  1718. _ACEOF
  1719. exit
  1720. fi
  1721. ## ------------------------ ##
  1722. ## Autoconf initialization. ##
  1723. ## ------------------------ ##
  1724. # ac_fn_c_try_compile LINENO
  1725. # --------------------------
  1726. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1727. ac_fn_c_try_compile ()
  1728. {
  1729. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1730. rm -f conftest.$ac_objext
  1731. if { { ac_try="$ac_compile"
  1732. case "(($ac_try" in
  1733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1734. *) ac_try_echo=$ac_try;;
  1735. esac
  1736. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1737. $as_echo "$ac_try_echo"; } >&5
  1738. (eval "$ac_compile") 2>conftest.err
  1739. ac_status=$?
  1740. if test -s conftest.err; then
  1741. grep -v '^ *+' conftest.err >conftest.er1
  1742. cat conftest.er1 >&5
  1743. mv -f conftest.er1 conftest.err
  1744. fi
  1745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1746. test $ac_status = 0; } && {
  1747. test -z "$ac_c_werror_flag" ||
  1748. test ! -s conftest.err
  1749. } && test -s conftest.$ac_objext; then :
  1750. ac_retval=0
  1751. else
  1752. $as_echo "$as_me: failed program was:" >&5
  1753. sed 's/^/| /' conftest.$ac_ext >&5
  1754. ac_retval=1
  1755. fi
  1756. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1757. as_fn_set_status $ac_retval
  1758. } # ac_fn_c_try_compile
  1759. # ac_fn_c_try_cpp LINENO
  1760. # ----------------------
  1761. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1762. ac_fn_c_try_cpp ()
  1763. {
  1764. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1765. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1766. case "(($ac_try" in
  1767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1768. *) ac_try_echo=$ac_try;;
  1769. esac
  1770. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1771. $as_echo "$ac_try_echo"; } >&5
  1772. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1773. ac_status=$?
  1774. if test -s conftest.err; then
  1775. grep -v '^ *+' conftest.err >conftest.er1
  1776. cat conftest.er1 >&5
  1777. mv -f conftest.er1 conftest.err
  1778. fi
  1779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1780. test $ac_status = 0; } > conftest.i && {
  1781. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1782. test ! -s conftest.err
  1783. }; then :
  1784. ac_retval=0
  1785. else
  1786. $as_echo "$as_me: failed program was:" >&5
  1787. sed 's/^/| /' conftest.$ac_ext >&5
  1788. ac_retval=1
  1789. fi
  1790. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1791. as_fn_set_status $ac_retval
  1792. } # ac_fn_c_try_cpp
  1793. # ac_fn_c_try_link LINENO
  1794. # -----------------------
  1795. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1796. ac_fn_c_try_link ()
  1797. {
  1798. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1799. rm -f conftest.$ac_objext conftest$ac_exeext
  1800. if { { ac_try="$ac_link"
  1801. case "(($ac_try" in
  1802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1803. *) ac_try_echo=$ac_try;;
  1804. esac
  1805. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1806. $as_echo "$ac_try_echo"; } >&5
  1807. (eval "$ac_link") 2>conftest.err
  1808. ac_status=$?
  1809. if test -s conftest.err; then
  1810. grep -v '^ *+' conftest.err >conftest.er1
  1811. cat conftest.er1 >&5
  1812. mv -f conftest.er1 conftest.err
  1813. fi
  1814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1815. test $ac_status = 0; } && {
  1816. test -z "$ac_c_werror_flag" ||
  1817. test ! -s conftest.err
  1818. } && test -s conftest$ac_exeext && {
  1819. test "$cross_compiling" = yes ||
  1820. test -x conftest$ac_exeext
  1821. }; then :
  1822. ac_retval=0
  1823. else
  1824. $as_echo "$as_me: failed program was:" >&5
  1825. sed 's/^/| /' conftest.$ac_ext >&5
  1826. ac_retval=1
  1827. fi
  1828. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1829. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1830. # interfere with the next link command; also delete a directory that is
  1831. # left behind by Apple's compiler. We do this before executing the actions.
  1832. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1833. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1834. as_fn_set_status $ac_retval
  1835. } # ac_fn_c_try_link
  1836. # ac_fn_c_try_run LINENO
  1837. # ----------------------
  1838. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1839. # that executables *can* be run.
  1840. ac_fn_c_try_run ()
  1841. {
  1842. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1843. if { { ac_try="$ac_link"
  1844. case "(($ac_try" in
  1845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1846. *) ac_try_echo=$ac_try;;
  1847. esac
  1848. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1849. $as_echo "$ac_try_echo"; } >&5
  1850. (eval "$ac_link") 2>&5
  1851. ac_status=$?
  1852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1853. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1854. { { case "(($ac_try" in
  1855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1856. *) ac_try_echo=$ac_try;;
  1857. esac
  1858. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1859. $as_echo "$ac_try_echo"; } >&5
  1860. (eval "$ac_try") 2>&5
  1861. ac_status=$?
  1862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1863. test $ac_status = 0; }; }; then :
  1864. ac_retval=0
  1865. else
  1866. $as_echo "$as_me: program exited with status $ac_status" >&5
  1867. $as_echo "$as_me: failed program was:" >&5
  1868. sed 's/^/| /' conftest.$ac_ext >&5
  1869. ac_retval=$ac_status
  1870. fi
  1871. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1872. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1873. as_fn_set_status $ac_retval
  1874. } # ac_fn_c_try_run
  1875. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1876. # -------------------------------------------------------
  1877. # Tests whether HEADER exists and can be compiled using the include files in
  1878. # INCLUDES, setting the cache variable VAR accordingly.
  1879. ac_fn_c_check_header_compile ()
  1880. {
  1881. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1883. $as_echo_n "checking for $2... " >&6; }
  1884. if eval \${$3+:} false; then :
  1885. $as_echo_n "(cached) " >&6
  1886. else
  1887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1888. /* end confdefs.h. */
  1889. $4
  1890. #include <$2>
  1891. _ACEOF
  1892. if ac_fn_c_try_compile "$LINENO"; then :
  1893. eval "$3=yes"
  1894. else
  1895. eval "$3=no"
  1896. fi
  1897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1898. fi
  1899. eval ac_res=\$$3
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1901. $as_echo "$ac_res" >&6; }
  1902. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1903. } # ac_fn_c_check_header_compile
  1904. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1905. # -------------------------------------------------------
  1906. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1907. # the include files in INCLUDES and setting the cache variable VAR
  1908. # accordingly.
  1909. ac_fn_c_check_header_mongrel ()
  1910. {
  1911. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1912. if eval \${$3+:} false; then :
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1914. $as_echo_n "checking for $2... " >&6; }
  1915. if eval \${$3+:} false; then :
  1916. $as_echo_n "(cached) " >&6
  1917. fi
  1918. eval ac_res=\$$3
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1920. $as_echo "$ac_res" >&6; }
  1921. else
  1922. # Is the header compilable?
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1924. $as_echo_n "checking $2 usability... " >&6; }
  1925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1926. /* end confdefs.h. */
  1927. $4
  1928. #include <$2>
  1929. _ACEOF
  1930. if ac_fn_c_try_compile "$LINENO"; then :
  1931. ac_header_compiler=yes
  1932. else
  1933. ac_header_compiler=no
  1934. fi
  1935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1937. $as_echo "$ac_header_compiler" >&6; }
  1938. # Is the header present?
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1940. $as_echo_n "checking $2 presence... " >&6; }
  1941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1942. /* end confdefs.h. */
  1943. #include <$2>
  1944. _ACEOF
  1945. if ac_fn_c_try_cpp "$LINENO"; then :
  1946. ac_header_preproc=yes
  1947. else
  1948. ac_header_preproc=no
  1949. fi
  1950. rm -f conftest.err conftest.i conftest.$ac_ext
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1952. $as_echo "$ac_header_preproc" >&6; }
  1953. # So? What about this header?
  1954. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1955. yes:no: )
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1957. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1959. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1960. ;;
  1961. no:yes:* )
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1963. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1965. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1967. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1969. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1971. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1972. ( $as_echo "## ------------------------------------ ##
  1973. ## Report this to [email protected] ##
  1974. ## ------------------------------------ ##"
  1975. ) | sed "s/^/$as_me: WARNING: /" >&2
  1976. ;;
  1977. esac
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1979. $as_echo_n "checking for $2... " >&6; }
  1980. if eval \${$3+:} false; then :
  1981. $as_echo_n "(cached) " >&6
  1982. else
  1983. eval "$3=\$ac_header_compiler"
  1984. fi
  1985. eval ac_res=\$$3
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1987. $as_echo "$ac_res" >&6; }
  1988. fi
  1989. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1990. } # ac_fn_c_check_header_mongrel
  1991. # ac_fn_c_check_func LINENO FUNC VAR
  1992. # ----------------------------------
  1993. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1994. ac_fn_c_check_func ()
  1995. {
  1996. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1998. $as_echo_n "checking for $2... " >&6; }
  1999. if eval \${$3+:} false; then :
  2000. $as_echo_n "(cached) " >&6
  2001. else
  2002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2003. /* end confdefs.h. */
  2004. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2005. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2006. #define $2 innocuous_$2
  2007. /* System header to define __stub macros and hopefully few prototypes,
  2008. which can conflict with char $2 (); below.
  2009. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2010. <limits.h> exists even on freestanding compilers. */
  2011. #ifdef __STDC__
  2012. # include <limits.h>
  2013. #else
  2014. # include <assert.h>
  2015. #endif
  2016. #undef $2
  2017. /* Override any GCC internal prototype to avoid an error.
  2018. Use char because int might match the return type of a GCC
  2019. builtin and then its argument prototype would still apply. */
  2020. #ifdef __cplusplus
  2021. extern "C"
  2022. #endif
  2023. char $2 ();
  2024. /* The GNU C library defines this for functions which it implements
  2025. to always fail with ENOSYS. Some functions are actually named
  2026. something starting with __ and the normal name is an alias. */
  2027. #if defined __stub_$2 || defined __stub___$2
  2028. choke me
  2029. #endif
  2030. int
  2031. main ()
  2032. {
  2033. return $2 ();
  2034. ;
  2035. return 0;
  2036. }
  2037. _ACEOF
  2038. if ac_fn_c_try_link "$LINENO"; then :
  2039. eval "$3=yes"
  2040. else
  2041. eval "$3=no"
  2042. fi
  2043. rm -f core conftest.err conftest.$ac_objext \
  2044. conftest$ac_exeext conftest.$ac_ext
  2045. fi
  2046. eval ac_res=\$$3
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2048. $as_echo "$ac_res" >&6; }
  2049. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2050. } # ac_fn_c_check_func
  2051. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2052. # -------------------------------------------
  2053. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2054. # variable VAR accordingly.
  2055. ac_fn_c_check_type ()
  2056. {
  2057. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2059. $as_echo_n "checking for $2... " >&6; }
  2060. if eval \${$3+:} false; then :
  2061. $as_echo_n "(cached) " >&6
  2062. else
  2063. eval "$3=no"
  2064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2065. /* end confdefs.h. */
  2066. $4
  2067. int
  2068. main ()
  2069. {
  2070. if (sizeof ($2))
  2071. return 0;
  2072. ;
  2073. return 0;
  2074. }
  2075. _ACEOF
  2076. if ac_fn_c_try_compile "$LINENO"; then :
  2077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2078. /* end confdefs.h. */
  2079. $4
  2080. int
  2081. main ()
  2082. {
  2083. if (sizeof (($2)))
  2084. return 0;
  2085. ;
  2086. return 0;
  2087. }
  2088. _ACEOF
  2089. if ac_fn_c_try_compile "$LINENO"; then :
  2090. else
  2091. eval "$3=yes"
  2092. fi
  2093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2094. fi
  2095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2096. fi
  2097. eval ac_res=\$$3
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2099. $as_echo "$ac_res" >&6; }
  2100. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2101. } # ac_fn_c_check_type
  2102. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2103. # --------------------------------------------
  2104. # Tries to find the compile-time value of EXPR in a program that includes
  2105. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2106. # computed
  2107. ac_fn_c_compute_int ()
  2108. {
  2109. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2110. if test "$cross_compiling" = yes; then
  2111. # Depending upon the size, compute the lo and hi bounds.
  2112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2113. /* end confdefs.h. */
  2114. $4
  2115. int
  2116. main ()
  2117. {
  2118. static int test_array [1 - 2 * !(($2) >= 0)];
  2119. test_array [0] = 0;
  2120. return test_array [0];
  2121. ;
  2122. return 0;
  2123. }
  2124. _ACEOF
  2125. if ac_fn_c_try_compile "$LINENO"; then :
  2126. ac_lo=0 ac_mid=0
  2127. while :; do
  2128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2129. /* end confdefs.h. */
  2130. $4
  2131. int
  2132. main ()
  2133. {
  2134. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2135. test_array [0] = 0;
  2136. return test_array [0];
  2137. ;
  2138. return 0;
  2139. }
  2140. _ACEOF
  2141. if ac_fn_c_try_compile "$LINENO"; then :
  2142. ac_hi=$ac_mid; break
  2143. else
  2144. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2145. if test $ac_lo -le $ac_mid; then
  2146. ac_lo= ac_hi=
  2147. break
  2148. fi
  2149. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2150. fi
  2151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2152. done
  2153. else
  2154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2155. /* end confdefs.h. */
  2156. $4
  2157. int
  2158. main ()
  2159. {
  2160. static int test_array [1 - 2 * !(($2) < 0)];
  2161. test_array [0] = 0;
  2162. return test_array [0];
  2163. ;
  2164. return 0;
  2165. }
  2166. _ACEOF
  2167. if ac_fn_c_try_compile "$LINENO"; then :
  2168. ac_hi=-1 ac_mid=-1
  2169. while :; do
  2170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2171. /* end confdefs.h. */
  2172. $4
  2173. int
  2174. main ()
  2175. {
  2176. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2177. test_array [0] = 0;
  2178. return test_array [0];
  2179. ;
  2180. return 0;
  2181. }
  2182. _ACEOF
  2183. if ac_fn_c_try_compile "$LINENO"; then :
  2184. ac_lo=$ac_mid; break
  2185. else
  2186. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2187. if test $ac_mid -le $ac_hi; then
  2188. ac_lo= ac_hi=
  2189. break
  2190. fi
  2191. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2192. fi
  2193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2194. done
  2195. else
  2196. ac_lo= ac_hi=
  2197. fi
  2198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2199. fi
  2200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2201. # Binary search between lo and hi bounds.
  2202. while test "x$ac_lo" != "x$ac_hi"; do
  2203. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2205. /* end confdefs.h. */
  2206. $4
  2207. int
  2208. main ()
  2209. {
  2210. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2211. test_array [0] = 0;
  2212. return test_array [0];
  2213. ;
  2214. return 0;
  2215. }
  2216. _ACEOF
  2217. if ac_fn_c_try_compile "$LINENO"; then :
  2218. ac_hi=$ac_mid
  2219. else
  2220. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2221. fi
  2222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2223. done
  2224. case $ac_lo in #((
  2225. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2226. '') ac_retval=1 ;;
  2227. esac
  2228. else
  2229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2230. /* end confdefs.h. */
  2231. $4
  2232. static long int longval () { return $2; }
  2233. static unsigned long int ulongval () { return $2; }
  2234. #include <stdio.h>
  2235. #include <stdlib.h>
  2236. int
  2237. main ()
  2238. {
  2239. FILE *f = fopen ("conftest.val", "w");
  2240. if (! f)
  2241. return 1;
  2242. if (($2) < 0)
  2243. {
  2244. long int i = longval ();
  2245. if (i != ($2))
  2246. return 1;
  2247. fprintf (f, "%ld", i);
  2248. }
  2249. else
  2250. {
  2251. unsigned long int i = ulongval ();
  2252. if (i != ($2))
  2253. return 1;
  2254. fprintf (f, "%lu", i);
  2255. }
  2256. /* Do not output a trailing newline, as this causes \r\n confusion
  2257. on some platforms. */
  2258. return ferror (f) || fclose (f) != 0;
  2259. ;
  2260. return 0;
  2261. }
  2262. _ACEOF
  2263. if ac_fn_c_try_run "$LINENO"; then :
  2264. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2265. else
  2266. ac_retval=1
  2267. fi
  2268. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2269. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2270. rm -f conftest.val
  2271. fi
  2272. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2273. as_fn_set_status $ac_retval
  2274. } # ac_fn_c_compute_int
  2275. cat >config.log <<_ACEOF
  2276. This file contains any messages produced by compilers while
  2277. running configure, to aid debugging if configure makes a mistake.
  2278. It was created by mpg123 $as_me 1.25.6, which was
  2279. generated by GNU Autoconf 2.69. Invocation command line was
  2280. $ $0 $@
  2281. _ACEOF
  2282. exec 5>>config.log
  2283. {
  2284. cat <<_ASUNAME
  2285. ## --------- ##
  2286. ## Platform. ##
  2287. ## --------- ##
  2288. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2289. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2290. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2291. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2292. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2293. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2294. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2295. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2296. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2297. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2298. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2299. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2300. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2301. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2302. _ASUNAME
  2303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2304. for as_dir in $PATH
  2305. do
  2306. IFS=$as_save_IFS
  2307. test -z "$as_dir" && as_dir=.
  2308. $as_echo "PATH: $as_dir"
  2309. done
  2310. IFS=$as_save_IFS
  2311. } >&5
  2312. cat >&5 <<_ACEOF
  2313. ## ----------- ##
  2314. ## Core tests. ##
  2315. ## ----------- ##
  2316. _ACEOF
  2317. # Keep a trace of the command line.
  2318. # Strip out --no-create and --no-recursion so they do not pile up.
  2319. # Strip out --silent because we don't want to record it for future runs.
  2320. # Also quote any args containing shell meta-characters.
  2321. # Make two passes to allow for proper duplicate-argument suppression.
  2322. ac_configure_args=
  2323. ac_configure_args0=
  2324. ac_configure_args1=
  2325. ac_must_keep_next=false
  2326. for ac_pass in 1 2
  2327. do
  2328. for ac_arg
  2329. do
  2330. case $ac_arg in
  2331. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2332. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2333. | -silent | --silent | --silen | --sile | --sil)
  2334. continue ;;
  2335. *\'*)
  2336. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2337. esac
  2338. case $ac_pass in
  2339. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2340. 2)
  2341. as_fn_append ac_configure_args1 " '$ac_arg'"
  2342. if test $ac_must_keep_next = true; then
  2343. ac_must_keep_next=false # Got value, back to normal.
  2344. else
  2345. case $ac_arg in
  2346. *=* | --config-cache | -C | -disable-* | --disable-* \
  2347. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2348. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2349. | -with-* | --with-* | -without-* | --without-* | --x)
  2350. case "$ac_configure_args0 " in
  2351. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2352. esac
  2353. ;;
  2354. -* ) ac_must_keep_next=true ;;
  2355. esac
  2356. fi
  2357. as_fn_append ac_configure_args " '$ac_arg'"
  2358. ;;
  2359. esac
  2360. done
  2361. done
  2362. { ac_configure_args0=; unset ac_configure_args0;}
  2363. { ac_configure_args1=; unset ac_configure_args1;}
  2364. # When interrupted or exit'd, cleanup temporary files, and complete
  2365. # config.log. We remove comments because anyway the quotes in there
  2366. # would cause problems or look ugly.
  2367. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2368. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2369. trap 'exit_status=$?
  2370. # Save into config.log some information that might help in debugging.
  2371. {
  2372. echo
  2373. $as_echo "## ---------------- ##
  2374. ## Cache variables. ##
  2375. ## ---------------- ##"
  2376. echo
  2377. # The following way of writing the cache mishandles newlines in values,
  2378. (
  2379. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2380. eval ac_val=\$$ac_var
  2381. case $ac_val in #(
  2382. *${as_nl}*)
  2383. case $ac_var in #(
  2384. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2385. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2386. esac
  2387. case $ac_var in #(
  2388. _ | IFS | as_nl) ;; #(
  2389. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2390. *) { eval $ac_var=; unset $ac_var;} ;;
  2391. esac ;;
  2392. esac
  2393. done
  2394. (set) 2>&1 |
  2395. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2396. *${as_nl}ac_space=\ *)
  2397. sed -n \
  2398. "s/'\''/'\''\\\\'\'''\''/g;
  2399. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2400. ;; #(
  2401. *)
  2402. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2403. ;;
  2404. esac |
  2405. sort
  2406. )
  2407. echo
  2408. $as_echo "## ----------------- ##
  2409. ## Output variables. ##
  2410. ## ----------------- ##"
  2411. echo
  2412. for ac_var in $ac_subst_vars
  2413. do
  2414. eval ac_val=\$$ac_var
  2415. case $ac_val in
  2416. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2417. esac
  2418. $as_echo "$ac_var='\''$ac_val'\''"
  2419. done | sort
  2420. echo
  2421. if test -n "$ac_subst_files"; then
  2422. $as_echo "## ------------------- ##
  2423. ## File substitutions. ##
  2424. ## ------------------- ##"
  2425. echo
  2426. for ac_var in $ac_subst_files
  2427. do
  2428. eval ac_val=\$$ac_var
  2429. case $ac_val in
  2430. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2431. esac
  2432. $as_echo "$ac_var='\''$ac_val'\''"
  2433. done | sort
  2434. echo
  2435. fi
  2436. if test -s confdefs.h; then
  2437. $as_echo "## ----------- ##
  2438. ## confdefs.h. ##
  2439. ## ----------- ##"
  2440. echo
  2441. cat confdefs.h
  2442. echo
  2443. fi
  2444. test "$ac_signal" != 0 &&
  2445. $as_echo "$as_me: caught signal $ac_signal"
  2446. $as_echo "$as_me: exit $exit_status"
  2447. } >&5
  2448. rm -f core *.core core.conftest.* &&
  2449. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2450. exit $exit_status
  2451. ' 0
  2452. for ac_signal in 1 2 13 15; do
  2453. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2454. done
  2455. ac_signal=0
  2456. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2457. rm -f -r conftest* confdefs.h
  2458. $as_echo "/* confdefs.h */" > confdefs.h
  2459. # Predefined preprocessor variables.
  2460. cat >>confdefs.h <<_ACEOF
  2461. #define PACKAGE_NAME "$PACKAGE_NAME"
  2462. _ACEOF
  2463. cat >>confdefs.h <<_ACEOF
  2464. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2465. _ACEOF
  2466. cat >>confdefs.h <<_ACEOF
  2467. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2468. _ACEOF
  2469. cat >>confdefs.h <<_ACEOF
  2470. #define PACKAGE_STRING "$PACKAGE_STRING"
  2471. _ACEOF
  2472. cat >>confdefs.h <<_ACEOF
  2473. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2474. _ACEOF
  2475. cat >>confdefs.h <<_ACEOF
  2476. #define PACKAGE_URL "$PACKAGE_URL"
  2477. _ACEOF
  2478. # Let the site file select an alternate cache file if it wants to.
  2479. # Prefer an explicitly selected file to automatically selected ones.
  2480. ac_site_file1=NONE
  2481. ac_site_file2=NONE
  2482. if test -n "$CONFIG_SITE"; then
  2483. # We do not want a PATH search for config.site.
  2484. case $CONFIG_SITE in #((
  2485. -*) ac_site_file1=./$CONFIG_SITE;;
  2486. */*) ac_site_file1=$CONFIG_SITE;;
  2487. *) ac_site_file1=./$CONFIG_SITE;;
  2488. esac
  2489. elif test "x$prefix" != xNONE; then
  2490. ac_site_file1=$prefix/share/config.site
  2491. ac_site_file2=$prefix/etc/config.site
  2492. else
  2493. ac_site_file1=$ac_default_prefix/share/config.site
  2494. ac_site_file2=$ac_default_prefix/etc/config.site
  2495. fi
  2496. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2497. do
  2498. test "x$ac_site_file" = xNONE && continue
  2499. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2501. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2502. sed 's/^/| /' "$ac_site_file" >&5
  2503. . "$ac_site_file" \
  2504. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2505. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2506. as_fn_error $? "failed to load site script $ac_site_file
  2507. See \`config.log' for more details" "$LINENO" 5; }
  2508. fi
  2509. done
  2510. if test -r "$cache_file"; then
  2511. # Some versions of bash will fail to source /dev/null (special files
  2512. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2513. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2515. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2516. case $cache_file in
  2517. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2518. *) . "./$cache_file";;
  2519. esac
  2520. fi
  2521. else
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2523. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2524. >$cache_file
  2525. fi
  2526. as_fn_append ac_header_list " stdlib.h"
  2527. as_fn_append ac_header_list " unistd.h"
  2528. as_fn_append ac_header_list " sys/param.h"
  2529. # Check that the precious variables saved in the cache have kept the same
  2530. # value.
  2531. ac_cache_corrupted=false
  2532. for ac_var in $ac_precious_vars; do
  2533. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2534. eval ac_new_set=\$ac_env_${ac_var}_set
  2535. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2536. eval ac_new_val=\$ac_env_${ac_var}_value
  2537. case $ac_old_set,$ac_new_set in
  2538. set,)
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2540. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2541. ac_cache_corrupted=: ;;
  2542. ,set)
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2544. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2545. ac_cache_corrupted=: ;;
  2546. ,);;
  2547. *)
  2548. if test "x$ac_old_val" != "x$ac_new_val"; then
  2549. # differences in whitespace do not lead to failure.
  2550. ac_old_val_w=`echo x $ac_old_val`
  2551. ac_new_val_w=`echo x $ac_new_val`
  2552. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2554. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2555. ac_cache_corrupted=:
  2556. else
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2558. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2559. eval $ac_var=\$ac_old_val
  2560. fi
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2562. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2564. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2565. fi;;
  2566. esac
  2567. # Pass precious variables to config.status.
  2568. if test "$ac_new_set" = set; then
  2569. case $ac_new_val in
  2570. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2571. *) ac_arg=$ac_var=$ac_new_val ;;
  2572. esac
  2573. case " $ac_configure_args " in
  2574. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2575. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2576. esac
  2577. fi
  2578. done
  2579. if $ac_cache_corrupted; then
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2581. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2583. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2584. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2585. fi
  2586. ## -------------------- ##
  2587. ## Main body of script. ##
  2588. ## -------------------- ##
  2589. ac_ext=c
  2590. ac_cpp='$CPP $CPPFLAGS'
  2591. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2592. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2593. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2594. API_VERSION=44
  2595. LIB_PATCHLEVEL=5
  2596. OUTAPI_VERSION=2
  2597. OUTLIB_PATCHLEVEL=1
  2598. LIBMPG123_VERSION=$API_VERSION:$LIB_PATCHLEVEL:$API_VERSION
  2599. LIBOUT123_VERSION=$OUTAPI_VERSION:$OUTLIB_PATCHLEVEL:$OUTAPI_VERSION
  2600. ac_aux_dir=
  2601. for ac_dir in build "$srcdir"/build; do
  2602. if test -f "$ac_dir/install-sh"; then
  2603. ac_aux_dir=$ac_dir
  2604. ac_install_sh="$ac_aux_dir/install-sh -c"
  2605. break
  2606. elif test -f "$ac_dir/install.sh"; then
  2607. ac_aux_dir=$ac_dir
  2608. ac_install_sh="$ac_aux_dir/install.sh -c"
  2609. break
  2610. elif test -f "$ac_dir/shtool"; then
  2611. ac_aux_dir=$ac_dir
  2612. ac_install_sh="$ac_aux_dir/shtool install -c"
  2613. break
  2614. fi
  2615. done
  2616. if test -z "$ac_aux_dir"; then
  2617. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
  2618. fi
  2619. # These three variables are undocumented and unsupported,
  2620. # and are intended to be withdrawn in a future Autoconf release.
  2621. # They can cause serious problems if a builder's source tree is in a directory
  2622. # whose full name contains unusual characters.
  2623. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2624. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2625. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2626. # Make sure we can run config.sub.
  2627. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2628. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2630. $as_echo_n "checking build system type... " >&6; }
  2631. if ${ac_cv_build+:} false; then :
  2632. $as_echo_n "(cached) " >&6
  2633. else
  2634. ac_build_alias=$build_alias
  2635. test "x$ac_build_alias" = x &&
  2636. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2637. test "x$ac_build_alias" = x &&
  2638. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2639. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2640. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2641. fi
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2643. $as_echo "$ac_cv_build" >&6; }
  2644. case $ac_cv_build in
  2645. *-*-*) ;;
  2646. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2647. esac
  2648. build=$ac_cv_build
  2649. ac_save_IFS=$IFS; IFS='-'
  2650. set x $ac_cv_build
  2651. shift
  2652. build_cpu=$1
  2653. build_vendor=$2
  2654. shift; shift
  2655. # Remember, the first character of IFS is used to create $*,
  2656. # except with old shells:
  2657. build_os=$*
  2658. IFS=$ac_save_IFS
  2659. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2661. $as_echo_n "checking host system type... " >&6; }
  2662. if ${ac_cv_host+:} false; then :
  2663. $as_echo_n "(cached) " >&6
  2664. else
  2665. if test "x$host_alias" = x; then
  2666. ac_cv_host=$ac_cv_build
  2667. else
  2668. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2669. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2670. fi
  2671. fi
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2673. $as_echo "$ac_cv_host" >&6; }
  2674. case $ac_cv_host in
  2675. *-*-*) ;;
  2676. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2677. esac
  2678. host=$ac_cv_host
  2679. ac_save_IFS=$IFS; IFS='-'
  2680. set x $ac_cv_host
  2681. shift
  2682. host_cpu=$1
  2683. host_vendor=$2
  2684. shift; shift
  2685. # Remember, the first character of IFS is used to create $*,
  2686. # except with old shells:
  2687. host_os=$*
  2688. IFS=$ac_save_IFS
  2689. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2690. am__api_version='1.15'
  2691. # Find a good install program. We prefer a C program (faster),
  2692. # so one script is as good as another. But avoid the broken or
  2693. # incompatible versions:
  2694. # SysV /etc/install, /usr/sbin/install
  2695. # SunOS /usr/etc/install
  2696. # IRIX /sbin/install
  2697. # AIX /bin/install
  2698. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2699. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2700. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2701. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2702. # OS/2's system install, which has a completely different semantic
  2703. # ./install, which can be erroneously created by make from ./install.sh.
  2704. # Reject install programs that cannot install multiple files.
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2706. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2707. if test -z "$INSTALL"; then
  2708. if ${ac_cv_path_install+:} false; then :
  2709. $as_echo_n "(cached) " >&6
  2710. else
  2711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2712. for as_dir in $PATH
  2713. do
  2714. IFS=$as_save_IFS
  2715. test -z "$as_dir" && as_dir=.
  2716. # Account for people who put trailing slashes in PATH elements.
  2717. case $as_dir/ in #((
  2718. ./ | .// | /[cC]/* | \
  2719. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2720. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2721. /usr/ucb/* ) ;;
  2722. *)
  2723. # OSF1 and SCO ODT 3.0 have their own names for install.
  2724. # Don't use installbsd from OSF since it installs stuff as root
  2725. # by default.
  2726. for ac_prog in ginstall scoinst install; do
  2727. for ac_exec_ext in '' $ac_executable_extensions; do
  2728. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2729. if test $ac_prog = install &&
  2730. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2731. # AIX install. It has an incompatible calling convention.
  2732. :
  2733. elif test $ac_prog = install &&
  2734. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2735. # program-specific install script used by HP pwplus--don't use.
  2736. :
  2737. else
  2738. rm -rf conftest.one conftest.two conftest.dir
  2739. echo one > conftest.one
  2740. echo two > conftest.two
  2741. mkdir conftest.dir
  2742. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2743. test -s conftest.one && test -s conftest.two &&
  2744. test -s conftest.dir/conftest.one &&
  2745. test -s conftest.dir/conftest.two
  2746. then
  2747. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2748. break 3
  2749. fi
  2750. fi
  2751. fi
  2752. done
  2753. done
  2754. ;;
  2755. esac
  2756. done
  2757. IFS=$as_save_IFS
  2758. rm -rf conftest.one conftest.two conftest.dir
  2759. fi
  2760. if test "${ac_cv_path_install+set}" = set; then
  2761. INSTALL=$ac_cv_path_install
  2762. else
  2763. # As a last resort, use the slow shell script. Don't cache a
  2764. # value for INSTALL within a source directory, because that will
  2765. # break other packages using the cache if that directory is
  2766. # removed, or if the value is a relative name.
  2767. INSTALL=$ac_install_sh
  2768. fi
  2769. fi
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2771. $as_echo "$INSTALL" >&6; }
  2772. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2773. # It thinks the first close brace ends the variable substitution.
  2774. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2775. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2776. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2778. $as_echo_n "checking whether build environment is sane... " >&6; }
  2779. # Reject unsafe characters in $srcdir or the absolute working directory
  2780. # name. Accept space and tab only in the latter.
  2781. am_lf='
  2782. '
  2783. case `pwd` in
  2784. *[\\\"\#\$\&\'\`$am_lf]*)
  2785. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2786. esac
  2787. case $srcdir in
  2788. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2789. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2790. esac
  2791. # Do 'set' in a subshell so we don't clobber the current shell's
  2792. # arguments. Must try -L first in case configure is actually a
  2793. # symlink; some systems play weird games with the mod time of symlinks
  2794. # (eg FreeBSD returns the mod time of the symlink's containing
  2795. # directory).
  2796. if (
  2797. am_has_slept=no
  2798. for am_try in 1 2; do
  2799. echo "timestamp, slept: $am_has_slept" > conftest.file
  2800. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2801. if test "$*" = "X"; then
  2802. # -L didn't work.
  2803. set X `ls -t "$srcdir/configure" conftest.file`
  2804. fi
  2805. if test "$*" != "X $srcdir/configure conftest.file" \
  2806. && test "$*" != "X conftest.file $srcdir/configure"; then
  2807. # If neither matched, then we have a broken ls. This can happen
  2808. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2809. # broken ls alias from the environment. This has actually
  2810. # happened. Such a system could not be considered "sane".
  2811. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2812. alias in your environment" "$LINENO" 5
  2813. fi
  2814. if test "$2" = conftest.file || test $am_try -eq 2; then
  2815. break
  2816. fi
  2817. # Just in case.
  2818. sleep 1
  2819. am_has_slept=yes
  2820. done
  2821. test "$2" = conftest.file
  2822. )
  2823. then
  2824. # Ok.
  2825. :
  2826. else
  2827. as_fn_error $? "newly created file is older than distributed files!
  2828. Check your system clock" "$LINENO" 5
  2829. fi
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2831. $as_echo "yes" >&6; }
  2832. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2833. # generated files are strictly newer.
  2834. am_sleep_pid=
  2835. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2836. ( sleep 1 ) &
  2837. am_sleep_pid=$!
  2838. fi
  2839. rm -f conftest.file
  2840. test "$program_prefix" != NONE &&
  2841. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2842. # Use a double $ so make ignores it.
  2843. test "$program_suffix" != NONE &&
  2844. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2845. # Double any \ or $.
  2846. # By default was `s,x,x', remove it if useless.
  2847. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2848. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2849. # Expand $ac_aux_dir to an absolute path.
  2850. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2851. if test x"${MISSING+set}" != xset; then
  2852. case $am_aux_dir in
  2853. *\ * | *\ *)
  2854. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2855. *)
  2856. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2857. esac
  2858. fi
  2859. # Use eval to expand $SHELL
  2860. if eval "$MISSING --is-lightweight"; then
  2861. am_missing_run="$MISSING "
  2862. else
  2863. am_missing_run=
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2865. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2866. fi
  2867. if test x"${install_sh+set}" != xset; then
  2868. case $am_aux_dir in
  2869. *\ * | *\ *)
  2870. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2871. *)
  2872. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2873. esac
  2874. fi
  2875. # Installed binaries are usually stripped using 'strip' when the user
  2876. # run "make install-strip". However 'strip' might not be the right
  2877. # tool to use in cross-compilation environments, therefore Automake
  2878. # will honor the 'STRIP' environment variable to overrule this program.
  2879. if test "$cross_compiling" != no; then
  2880. if test -n "$ac_tool_prefix"; then
  2881. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2882. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2884. $as_echo_n "checking for $ac_word... " >&6; }
  2885. if ${ac_cv_prog_STRIP+:} false; then :
  2886. $as_echo_n "(cached) " >&6
  2887. else
  2888. if test -n "$STRIP"; then
  2889. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2890. else
  2891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2892. for as_dir in $PATH
  2893. do
  2894. IFS=$as_save_IFS
  2895. test -z "$as_dir" && as_dir=.
  2896. for ac_exec_ext in '' $ac_executable_extensions; do
  2897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2898. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2900. break 2
  2901. fi
  2902. done
  2903. done
  2904. IFS=$as_save_IFS
  2905. fi
  2906. fi
  2907. STRIP=$ac_cv_prog_STRIP
  2908. if test -n "$STRIP"; then
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2910. $as_echo "$STRIP" >&6; }
  2911. else
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2913. $as_echo "no" >&6; }
  2914. fi
  2915. fi
  2916. if test -z "$ac_cv_prog_STRIP"; then
  2917. ac_ct_STRIP=$STRIP
  2918. # Extract the first word of "strip", so it can be a program name with args.
  2919. set dummy strip; ac_word=$2
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2921. $as_echo_n "checking for $ac_word... " >&6; }
  2922. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2923. $as_echo_n "(cached) " >&6
  2924. else
  2925. if test -n "$ac_ct_STRIP"; then
  2926. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2927. else
  2928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2929. for as_dir in $PATH
  2930. do
  2931. IFS=$as_save_IFS
  2932. test -z "$as_dir" && as_dir=.
  2933. for ac_exec_ext in '' $ac_executable_extensions; do
  2934. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2935. ac_cv_prog_ac_ct_STRIP="strip"
  2936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2937. break 2
  2938. fi
  2939. done
  2940. done
  2941. IFS=$as_save_IFS
  2942. fi
  2943. fi
  2944. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2945. if test -n "$ac_ct_STRIP"; then
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2947. $as_echo "$ac_ct_STRIP" >&6; }
  2948. else
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2950. $as_echo "no" >&6; }
  2951. fi
  2952. if test "x$ac_ct_STRIP" = x; then
  2953. STRIP=":"
  2954. else
  2955. case $cross_compiling:$ac_tool_warned in
  2956. yes:)
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2958. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2959. ac_tool_warned=yes ;;
  2960. esac
  2961. STRIP=$ac_ct_STRIP
  2962. fi
  2963. else
  2964. STRIP="$ac_cv_prog_STRIP"
  2965. fi
  2966. fi
  2967. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2969. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2970. if test -z "$MKDIR_P"; then
  2971. if ${ac_cv_path_mkdir+:} false; then :
  2972. $as_echo_n "(cached) " >&6
  2973. else
  2974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2975. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2976. do
  2977. IFS=$as_save_IFS
  2978. test -z "$as_dir" && as_dir=.
  2979. for ac_prog in mkdir gmkdir; do
  2980. for ac_exec_ext in '' $ac_executable_extensions; do
  2981. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2982. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2983. 'mkdir (GNU coreutils) '* | \
  2984. 'mkdir (coreutils) '* | \
  2985. 'mkdir (fileutils) '4.1*)
  2986. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2987. break 3;;
  2988. esac
  2989. done
  2990. done
  2991. done
  2992. IFS=$as_save_IFS
  2993. fi
  2994. test -d ./--version && rmdir ./--version
  2995. if test "${ac_cv_path_mkdir+set}" = set; then
  2996. MKDIR_P="$ac_cv_path_mkdir -p"
  2997. else
  2998. # As a last resort, use the slow shell script. Don't cache a
  2999. # value for MKDIR_P within a source directory, because that will
  3000. # break other packages using the cache if that directory is
  3001. # removed, or if the value is a relative name.
  3002. MKDIR_P="$ac_install_sh -d"
  3003. fi
  3004. fi
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3006. $as_echo "$MKDIR_P" >&6; }
  3007. for ac_prog in gawk mawk nawk awk
  3008. do
  3009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3010. set dummy $ac_prog; ac_word=$2
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3012. $as_echo_n "checking for $ac_word... " >&6; }
  3013. if ${ac_cv_prog_AWK+:} false; then :
  3014. $as_echo_n "(cached) " >&6
  3015. else
  3016. if test -n "$AWK"; then
  3017. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3018. else
  3019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3020. for as_dir in $PATH
  3021. do
  3022. IFS=$as_save_IFS
  3023. test -z "$as_dir" && as_dir=.
  3024. for ac_exec_ext in '' $ac_executable_extensions; do
  3025. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3026. ac_cv_prog_AWK="$ac_prog"
  3027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3028. break 2
  3029. fi
  3030. done
  3031. done
  3032. IFS=$as_save_IFS
  3033. fi
  3034. fi
  3035. AWK=$ac_cv_prog_AWK
  3036. if test -n "$AWK"; then
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3038. $as_echo "$AWK" >&6; }
  3039. else
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3041. $as_echo "no" >&6; }
  3042. fi
  3043. test -n "$AWK" && break
  3044. done
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3046. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3047. set x ${MAKE-make}
  3048. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3049. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. cat >conftest.make <<\_ACEOF
  3053. SHELL = /bin/sh
  3054. all:
  3055. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3056. _ACEOF
  3057. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3058. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3059. *@@@%%%=?*=@@@%%%*)
  3060. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3061. *)
  3062. eval ac_cv_prog_make_${ac_make}_set=no;;
  3063. esac
  3064. rm -f conftest.make
  3065. fi
  3066. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3068. $as_echo "yes" >&6; }
  3069. SET_MAKE=
  3070. else
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3072. $as_echo "no" >&6; }
  3073. SET_MAKE="MAKE=${MAKE-make}"
  3074. fi
  3075. rm -rf .tst 2>/dev/null
  3076. mkdir .tst 2>/dev/null
  3077. if test -d .tst; then
  3078. am__leading_dot=.
  3079. else
  3080. am__leading_dot=_
  3081. fi
  3082. rmdir .tst 2>/dev/null
  3083. # Check whether --enable-silent-rules was given.
  3084. if test "${enable_silent_rules+set}" = set; then :
  3085. enableval=$enable_silent_rules;
  3086. fi
  3087. case $enable_silent_rules in # (((
  3088. yes) AM_DEFAULT_VERBOSITY=0;;
  3089. no) AM_DEFAULT_VERBOSITY=1;;
  3090. *) AM_DEFAULT_VERBOSITY=1;;
  3091. esac
  3092. am_make=${MAKE-make}
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3094. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3095. if ${am_cv_make_support_nested_variables+:} false; then :
  3096. $as_echo_n "(cached) " >&6
  3097. else
  3098. if $as_echo 'TRUE=$(BAR$(V))
  3099. BAR0=false
  3100. BAR1=true
  3101. V=1
  3102. am__doit:
  3103. @$(TRUE)
  3104. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3105. am_cv_make_support_nested_variables=yes
  3106. else
  3107. am_cv_make_support_nested_variables=no
  3108. fi
  3109. fi
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3111. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3112. if test $am_cv_make_support_nested_variables = yes; then
  3113. AM_V='$(V)'
  3114. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3115. else
  3116. AM_V=$AM_DEFAULT_VERBOSITY
  3117. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3118. fi
  3119. AM_BACKSLASH='\'
  3120. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3121. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3122. # is not polluted with repeated "-I."
  3123. am__isrc=' -I$(srcdir)'
  3124. # test to see if srcdir already configured
  3125. if test -f $srcdir/config.status; then
  3126. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3127. fi
  3128. fi
  3129. # test whether we have cygpath
  3130. if test -z "$CYGPATH_W"; then
  3131. if (cygpath --version) >/dev/null 2>/dev/null; then
  3132. CYGPATH_W='cygpath -w'
  3133. else
  3134. CYGPATH_W=echo
  3135. fi
  3136. fi
  3137. # Define the identity of the package.
  3138. PACKAGE='mpg123'
  3139. VERSION='1.25.6'
  3140. cat >>confdefs.h <<_ACEOF
  3141. #define PACKAGE "$PACKAGE"
  3142. _ACEOF
  3143. cat >>confdefs.h <<_ACEOF
  3144. #define VERSION "$VERSION"
  3145. _ACEOF
  3146. # Some tools Automake needs.
  3147. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3148. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3149. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3150. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3151. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3152. # For better backward compatibility. To be removed once Automake 1.9.x
  3153. # dies out for good. For more background, see:
  3154. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3155. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3156. mkdir_p='$(MKDIR_P)'
  3157. # We need awk for the "check" target (and possibly the TAP driver). The
  3158. # system "awk" is bad on some platforms.
  3159. # Always define AMTAR for backward compatibility. Yes, it's still used
  3160. # in the wild :-( We should find a proper way to deprecate it ...
  3161. AMTAR='$${TAR-tar}'
  3162. # We'll loop over all known methods to create a tar archive until one works.
  3163. _am_tools='gnutar pax cpio none'
  3164. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3165. # POSIX will say in a future version that running "rm -f" with no argument
  3166. # is OK; and we want to be able to make that assumption in our Makefile
  3167. # recipes. So use an aggressive probe to check that the usage we want is
  3168. # actually supported "in the wild" to an acceptable degree.
  3169. # See automake bug#10828.
  3170. # To make any issue more visible, cause the running configure to be aborted
  3171. # by default if the 'rm' program in use doesn't match our expectations; the
  3172. # user can still override this though.
  3173. if rm -f && rm -fr && rm -rf; then : OK; else
  3174. cat >&2 <<'END'
  3175. Oops!
  3176. Your 'rm' program seems unable to run without file operands specified
  3177. on the command line, even when the '-f' option is present. This is contrary
  3178. to the behaviour of most rm programs out there, and not conforming with
  3179. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3180. Please tell [email protected] about your system, including the value
  3181. of your $PATH and any error possibly output before this message. This
  3182. can help us improve future automake versions.
  3183. END
  3184. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3185. echo 'Configuration will proceed anyway, since you have set the' >&2
  3186. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3187. echo >&2
  3188. else
  3189. cat >&2 <<'END'
  3190. Aborting the configuration process, to ensure you take notice of the issue.
  3191. You can download and install GNU coreutils to get an 'rm' implementation
  3192. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3193. If you want to complete the configuration process using your problematic
  3194. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3195. to "yes", and re-run configure.
  3196. END
  3197. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3198. fi
  3199. fi
  3200. ac_config_headers="$ac_config_headers src/config.h"
  3201. # You get strange symptoms like jack module build failing because the AC_C_CONST failed to detect the working const support.
  3202. # In that case, the test failed because -Werror, not because no const there...
  3203. # After looking again, there are possibly more tests being obscured by false failures.
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror in CFLAGS (It breaks tests)" >&5
  3205. $as_echo_n "checking for -Werror in CFLAGS (It breaks tests)... " >&6; }
  3206. if echo "$CFLAGS" | grep Werror; then
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3208. $as_echo "yes" >&6; }
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have -Werror in CFLAGS. That may break some tests and make this configure bogus.
  3210. If you want paranoid compilation, use --enable-nagging option, which adds -Werror for gcc.
  3211. Also note that you shall not run make distcheck after configuring with --enable-nagging.
  3212. distcheck uses the generated CFLAGS...
  3213. Anyhow, continuing at your own risk." >&5
  3214. $as_echo "$as_me: WARNING: You have -Werror in CFLAGS. That may break some tests and make this configure bogus.
  3215. If you want paranoid compilation, use --enable-nagging option, which adds -Werror for gcc.
  3216. Also note that you shall not run make distcheck after configuring with --enable-nagging.
  3217. distcheck uses the generated CFLAGS...
  3218. Anyhow, continuing at your own risk." >&2;}
  3219. else
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3221. $as_echo "no" >&6; }
  3222. fi
  3223. buffer=enabled # try to build with buffer by default
  3224. LT_LDFLAGS=-export-dynamic
  3225. EXEC_LT_LDFLAGS=
  3226. be_static=no
  3227. all_static=no
  3228. lib_static=no
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are up to something totally static with LDFLAGS/CFLAGS" >&5
  3230. $as_echo_n "checking if you are up to something totally static with LDFLAGS/CFLAGS... " >&6; }
  3231. for f in $LDFLAGS $CFLAGS
  3232. do
  3233. case "$f" in
  3234. -all-static)
  3235. be_static=yes
  3236. all_static=yes
  3237. lib_static=yes
  3238. ;;
  3239. -static)
  3240. be_static=yes
  3241. lib_static=yes
  3242. ;;
  3243. -static-libgcc)
  3244. lib_static=yes
  3245. ;;
  3246. esac
  3247. done
  3248. if test "x$be_static" = xyes; then
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3250. $as_echo "yes" >&6; }
  3251. LT_LDFLAGS=-all-static
  3252. EXEC_LT_LDFLAGS="$LT_LDFLAGS"
  3253. else
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3255. $as_echo "no" >&6; }
  3256. fi
  3257. if test "x$all_static" = xyes; then
  3258. { $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
  3259. $as_echo "$as_me: WARNING: Use -static in LDFLAGS for all-static linking! Your compiler may blow up on that -all-static. " >&2;}
  3260. fi
  3261. DEPDIR="${am__leading_dot}deps"
  3262. ac_config_commands="$ac_config_commands depfiles"
  3263. am_make=${MAKE-make}
  3264. cat > confinc << 'END'
  3265. am__doit:
  3266. @echo this is the am__doit target
  3267. .PHONY: am__doit
  3268. END
  3269. # If we don't find an include directive, just comment out the code.
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3271. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3272. am__include="#"
  3273. am__quote=
  3274. _am_result=none
  3275. # First try GNU make style include.
  3276. echo "include confinc" > confmf
  3277. # Ignore all kinds of additional output from 'make'.
  3278. case `$am_make -s -f confmf 2> /dev/null` in #(
  3279. *the\ am__doit\ target*)
  3280. am__include=include
  3281. am__quote=
  3282. _am_result=GNU
  3283. ;;
  3284. esac
  3285. # Now try BSD make style include.
  3286. if test "$am__include" = "#"; then
  3287. echo '.include "confinc"' > confmf
  3288. case `$am_make -s -f confmf 2> /dev/null` in #(
  3289. *the\ am__doit\ target*)
  3290. am__include=.include
  3291. am__quote="\""
  3292. _am_result=BSD
  3293. ;;
  3294. esac
  3295. fi
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3297. $as_echo "$_am_result" >&6; }
  3298. rm -f confinc confmf
  3299. # Check whether --enable-dependency-tracking was given.
  3300. if test "${enable_dependency_tracking+set}" = set; then :
  3301. enableval=$enable_dependency_tracking;
  3302. fi
  3303. if test "x$enable_dependency_tracking" != xno; then
  3304. am_depcomp="$ac_aux_dir/depcomp"
  3305. AMDEPBACKSLASH='\'
  3306. am__nodep='_no'
  3307. fi
  3308. if test "x$enable_dependency_tracking" != xno; then
  3309. AMDEP_TRUE=
  3310. AMDEP_FALSE='#'
  3311. else
  3312. AMDEP_TRUE='#'
  3313. AMDEP_FALSE=
  3314. fi
  3315. ac_ext=c
  3316. ac_cpp='$CPP $CPPFLAGS'
  3317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3320. if test -n "$ac_tool_prefix"; then
  3321. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3322. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3324. $as_echo_n "checking for $ac_word... " >&6; }
  3325. if ${ac_cv_prog_CC+:} false; then :
  3326. $as_echo_n "(cached) " >&6
  3327. else
  3328. if test -n "$CC"; then
  3329. ac_cv_prog_CC="$CC" # Let the user override the test.
  3330. else
  3331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3332. for as_dir in $PATH
  3333. do
  3334. IFS=$as_save_IFS
  3335. test -z "$as_dir" && as_dir=.
  3336. for ac_exec_ext in '' $ac_executable_extensions; do
  3337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3338. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3340. break 2
  3341. fi
  3342. done
  3343. done
  3344. IFS=$as_save_IFS
  3345. fi
  3346. fi
  3347. CC=$ac_cv_prog_CC
  3348. if test -n "$CC"; then
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3350. $as_echo "$CC" >&6; }
  3351. else
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3353. $as_echo "no" >&6; }
  3354. fi
  3355. fi
  3356. if test -z "$ac_cv_prog_CC"; then
  3357. ac_ct_CC=$CC
  3358. # Extract the first word of "gcc", so it can be a program name with args.
  3359. set dummy gcc; 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="gcc"
  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. if test "x$ac_ct_CC" = x; then
  3393. CC=""
  3394. else
  3395. case $cross_compiling:$ac_tool_warned in
  3396. yes:)
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3398. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3399. ac_tool_warned=yes ;;
  3400. esac
  3401. CC=$ac_ct_CC
  3402. fi
  3403. else
  3404. CC="$ac_cv_prog_CC"
  3405. fi
  3406. if test -z "$CC"; then
  3407. if test -n "$ac_tool_prefix"; then
  3408. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3409. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3411. $as_echo_n "checking for $ac_word... " >&6; }
  3412. if ${ac_cv_prog_CC+:} false; then :
  3413. $as_echo_n "(cached) " >&6
  3414. else
  3415. if test -n "$CC"; then
  3416. ac_cv_prog_CC="$CC" # Let the user override the test.
  3417. else
  3418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3419. for as_dir in $PATH
  3420. do
  3421. IFS=$as_save_IFS
  3422. test -z "$as_dir" && as_dir=.
  3423. for ac_exec_ext in '' $ac_executable_extensions; do
  3424. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3425. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3427. break 2
  3428. fi
  3429. done
  3430. done
  3431. IFS=$as_save_IFS
  3432. fi
  3433. fi
  3434. CC=$ac_cv_prog_CC
  3435. if test -n "$CC"; then
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3437. $as_echo "$CC" >&6; }
  3438. else
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3440. $as_echo "no" >&6; }
  3441. fi
  3442. fi
  3443. fi
  3444. if test -z "$CC"; then
  3445. # Extract the first word of "cc", so it can be a program name with args.
  3446. set dummy cc; ac_word=$2
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3448. $as_echo_n "checking for $ac_word... " >&6; }
  3449. if ${ac_cv_prog_CC+:} false; then :
  3450. $as_echo_n "(cached) " >&6
  3451. else
  3452. if test -n "$CC"; then
  3453. ac_cv_prog_CC="$CC" # Let the user override the test.
  3454. else
  3455. ac_prog_rejected=no
  3456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3457. for as_dir in $PATH
  3458. do
  3459. IFS=$as_save_IFS
  3460. test -z "$as_dir" && as_dir=.
  3461. for ac_exec_ext in '' $ac_executable_extensions; do
  3462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3463. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3464. ac_prog_rejected=yes
  3465. continue
  3466. fi
  3467. ac_cv_prog_CC="cc"
  3468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3469. break 2
  3470. fi
  3471. done
  3472. done
  3473. IFS=$as_save_IFS
  3474. if test $ac_prog_rejected = yes; then
  3475. # We found a bogon in the path, so make sure we never use it.
  3476. set dummy $ac_cv_prog_CC
  3477. shift
  3478. if test $# != 0; then
  3479. # We chose a different compiler from the bogus one.
  3480. # However, it has the same basename, so the bogon will be chosen
  3481. # first if we set CC to just the basename; use the full file name.
  3482. shift
  3483. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3484. fi
  3485. fi
  3486. fi
  3487. fi
  3488. CC=$ac_cv_prog_CC
  3489. if test -n "$CC"; then
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3491. $as_echo "$CC" >&6; }
  3492. else
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3494. $as_echo "no" >&6; }
  3495. fi
  3496. fi
  3497. if test -z "$CC"; then
  3498. if test -n "$ac_tool_prefix"; then
  3499. for ac_prog in cl.exe
  3500. do
  3501. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3502. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3504. $as_echo_n "checking for $ac_word... " >&6; }
  3505. if ${ac_cv_prog_CC+:} false; then :
  3506. $as_echo_n "(cached) " >&6
  3507. else
  3508. if test -n "$CC"; then
  3509. ac_cv_prog_CC="$CC" # Let the user override the test.
  3510. else
  3511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3512. for as_dir in $PATH
  3513. do
  3514. IFS=$as_save_IFS
  3515. test -z "$as_dir" && as_dir=.
  3516. for ac_exec_ext in '' $ac_executable_extensions; do
  3517. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3518. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3520. break 2
  3521. fi
  3522. done
  3523. done
  3524. IFS=$as_save_IFS
  3525. fi
  3526. fi
  3527. CC=$ac_cv_prog_CC
  3528. if test -n "$CC"; then
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3530. $as_echo "$CC" >&6; }
  3531. else
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3533. $as_echo "no" >&6; }
  3534. fi
  3535. test -n "$CC" && break
  3536. done
  3537. fi
  3538. if test -z "$CC"; then
  3539. ac_ct_CC=$CC
  3540. for ac_prog in cl.exe
  3541. do
  3542. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3543. set dummy $ac_prog; ac_word=$2
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3545. $as_echo_n "checking for $ac_word... " >&6; }
  3546. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3547. $as_echo_n "(cached) " >&6
  3548. else
  3549. if test -n "$ac_ct_CC"; then
  3550. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3551. else
  3552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3553. for as_dir in $PATH
  3554. do
  3555. IFS=$as_save_IFS
  3556. test -z "$as_dir" && as_dir=.
  3557. for ac_exec_ext in '' $ac_executable_extensions; do
  3558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3559. ac_cv_prog_ac_ct_CC="$ac_prog"
  3560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3561. break 2
  3562. fi
  3563. done
  3564. done
  3565. IFS=$as_save_IFS
  3566. fi
  3567. fi
  3568. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3569. if test -n "$ac_ct_CC"; then
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3571. $as_echo "$ac_ct_CC" >&6; }
  3572. else
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3574. $as_echo "no" >&6; }
  3575. fi
  3576. test -n "$ac_ct_CC" && break
  3577. done
  3578. if test "x$ac_ct_CC" = x; then
  3579. CC=""
  3580. else
  3581. case $cross_compiling:$ac_tool_warned in
  3582. yes:)
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3584. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3585. ac_tool_warned=yes ;;
  3586. esac
  3587. CC=$ac_ct_CC
  3588. fi
  3589. fi
  3590. fi
  3591. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3592. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3593. as_fn_error $? "no acceptable C compiler found in \$PATH
  3594. See \`config.log' for more details" "$LINENO" 5; }
  3595. # Provide some information about the compiler.
  3596. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3597. set X $ac_compile
  3598. ac_compiler=$2
  3599. for ac_option in --version -v -V -qversion; do
  3600. { { ac_try="$ac_compiler $ac_option >&5"
  3601. case "(($ac_try" in
  3602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3603. *) ac_try_echo=$ac_try;;
  3604. esac
  3605. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3606. $as_echo "$ac_try_echo"; } >&5
  3607. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3608. ac_status=$?
  3609. if test -s conftest.err; then
  3610. sed '10a\
  3611. ... rest of stderr output deleted ...
  3612. 10q' conftest.err >conftest.er1
  3613. cat conftest.er1 >&5
  3614. fi
  3615. rm -f conftest.er1 conftest.err
  3616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3617. test $ac_status = 0; }
  3618. done
  3619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3620. /* end confdefs.h. */
  3621. int
  3622. main ()
  3623. {
  3624. ;
  3625. return 0;
  3626. }
  3627. _ACEOF
  3628. ac_clean_files_save=$ac_clean_files
  3629. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3630. # Try to create an executable without -o first, disregard a.out.
  3631. # It will help us diagnose broken compilers, and finding out an intuition
  3632. # of exeext.
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3634. $as_echo_n "checking whether the C compiler works... " >&6; }
  3635. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3636. # The possible output files:
  3637. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3638. ac_rmfiles=
  3639. for ac_file in $ac_files
  3640. do
  3641. case $ac_file in
  3642. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3643. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3644. esac
  3645. done
  3646. rm -f $ac_rmfiles
  3647. if { { ac_try="$ac_link_default"
  3648. case "(($ac_try" in
  3649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3650. *) ac_try_echo=$ac_try;;
  3651. esac
  3652. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3653. $as_echo "$ac_try_echo"; } >&5
  3654. (eval "$ac_link_default") 2>&5
  3655. ac_status=$?
  3656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3657. test $ac_status = 0; }; then :
  3658. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3659. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3660. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3661. # so that the user can short-circuit this test for compilers unknown to
  3662. # Autoconf.
  3663. for ac_file in $ac_files ''
  3664. do
  3665. test -f "$ac_file" || continue
  3666. case $ac_file in
  3667. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3668. ;;
  3669. [ab].out )
  3670. # We found the default executable, but exeext='' is most
  3671. # certainly right.
  3672. break;;
  3673. *.* )
  3674. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3675. then :; else
  3676. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3677. fi
  3678. # We set ac_cv_exeext here because the later test for it is not
  3679. # safe: cross compilers may not add the suffix if given an `-o'
  3680. # argument, so we may need to know it at that point already.
  3681. # Even if this section looks crufty: it has the advantage of
  3682. # actually working.
  3683. break;;
  3684. * )
  3685. break;;
  3686. esac
  3687. done
  3688. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3689. else
  3690. ac_file=''
  3691. fi
  3692. if test -z "$ac_file"; then :
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3694. $as_echo "no" >&6; }
  3695. $as_echo "$as_me: failed program was:" >&5
  3696. sed 's/^/| /' conftest.$ac_ext >&5
  3697. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3698. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3699. as_fn_error 77 "C compiler cannot create executables
  3700. See \`config.log' for more details" "$LINENO" 5; }
  3701. else
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3703. $as_echo "yes" >&6; }
  3704. fi
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3706. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3708. $as_echo "$ac_file" >&6; }
  3709. ac_exeext=$ac_cv_exeext
  3710. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3711. ac_clean_files=$ac_clean_files_save
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3713. $as_echo_n "checking for suffix of executables... " >&6; }
  3714. if { { ac_try="$ac_link"
  3715. case "(($ac_try" in
  3716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3717. *) ac_try_echo=$ac_try;;
  3718. esac
  3719. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3720. $as_echo "$ac_try_echo"; } >&5
  3721. (eval "$ac_link") 2>&5
  3722. ac_status=$?
  3723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3724. test $ac_status = 0; }; then :
  3725. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3726. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3727. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3728. # `rm'.
  3729. for ac_file in conftest.exe conftest conftest.*; do
  3730. test -f "$ac_file" || continue
  3731. case $ac_file in
  3732. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3733. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3734. break;;
  3735. * ) break;;
  3736. esac
  3737. done
  3738. else
  3739. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3740. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3741. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3742. See \`config.log' for more details" "$LINENO" 5; }
  3743. fi
  3744. rm -f conftest conftest$ac_cv_exeext
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3746. $as_echo "$ac_cv_exeext" >&6; }
  3747. rm -f conftest.$ac_ext
  3748. EXEEXT=$ac_cv_exeext
  3749. ac_exeext=$EXEEXT
  3750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3751. /* end confdefs.h. */
  3752. #include <stdio.h>
  3753. int
  3754. main ()
  3755. {
  3756. FILE *f = fopen ("conftest.out", "w");
  3757. return ferror (f) || fclose (f) != 0;
  3758. ;
  3759. return 0;
  3760. }
  3761. _ACEOF
  3762. ac_clean_files="$ac_clean_files conftest.out"
  3763. # Check that the compiler produces executables we can run. If not, either
  3764. # the compiler is broken, or we cross compile.
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3766. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3767. if test "$cross_compiling" != yes; then
  3768. { { ac_try="$ac_link"
  3769. case "(($ac_try" in
  3770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3771. *) ac_try_echo=$ac_try;;
  3772. esac
  3773. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3774. $as_echo "$ac_try_echo"; } >&5
  3775. (eval "$ac_link") 2>&5
  3776. ac_status=$?
  3777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3778. test $ac_status = 0; }
  3779. if { ac_try='./conftest$ac_cv_exeext'
  3780. { { case "(($ac_try" in
  3781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3782. *) ac_try_echo=$ac_try;;
  3783. esac
  3784. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3785. $as_echo "$ac_try_echo"; } >&5
  3786. (eval "$ac_try") 2>&5
  3787. ac_status=$?
  3788. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3789. test $ac_status = 0; }; }; then
  3790. cross_compiling=no
  3791. else
  3792. if test "$cross_compiling" = maybe; then
  3793. cross_compiling=yes
  3794. else
  3795. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3796. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3797. as_fn_error $? "cannot run C compiled programs.
  3798. If you meant to cross compile, use \`--host'.
  3799. See \`config.log' for more details" "$LINENO" 5; }
  3800. fi
  3801. fi
  3802. fi
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3804. $as_echo "$cross_compiling" >&6; }
  3805. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3806. ac_clean_files=$ac_clean_files_save
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3808. $as_echo_n "checking for suffix of object files... " >&6; }
  3809. if ${ac_cv_objext+:} false; then :
  3810. $as_echo_n "(cached) " >&6
  3811. else
  3812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3813. /* end confdefs.h. */
  3814. int
  3815. main ()
  3816. {
  3817. ;
  3818. return 0;
  3819. }
  3820. _ACEOF
  3821. rm -f conftest.o conftest.obj
  3822. if { { ac_try="$ac_compile"
  3823. case "(($ac_try" in
  3824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3825. *) ac_try_echo=$ac_try;;
  3826. esac
  3827. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3828. $as_echo "$ac_try_echo"; } >&5
  3829. (eval "$ac_compile") 2>&5
  3830. ac_status=$?
  3831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3832. test $ac_status = 0; }; then :
  3833. for ac_file in conftest.o conftest.obj conftest.*; do
  3834. test -f "$ac_file" || continue;
  3835. case $ac_file in
  3836. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3837. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3838. break;;
  3839. esac
  3840. done
  3841. else
  3842. $as_echo "$as_me: failed program was:" >&5
  3843. sed 's/^/| /' conftest.$ac_ext >&5
  3844. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3845. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3846. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3847. See \`config.log' for more details" "$LINENO" 5; }
  3848. fi
  3849. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3850. fi
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3852. $as_echo "$ac_cv_objext" >&6; }
  3853. OBJEXT=$ac_cv_objext
  3854. ac_objext=$OBJEXT
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3856. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3857. if ${ac_cv_c_compiler_gnu+:} false; then :
  3858. $as_echo_n "(cached) " >&6
  3859. else
  3860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3861. /* end confdefs.h. */
  3862. int
  3863. main ()
  3864. {
  3865. #ifndef __GNUC__
  3866. choke me
  3867. #endif
  3868. ;
  3869. return 0;
  3870. }
  3871. _ACEOF
  3872. if ac_fn_c_try_compile "$LINENO"; then :
  3873. ac_compiler_gnu=yes
  3874. else
  3875. ac_compiler_gnu=no
  3876. fi
  3877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3878. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3879. fi
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3881. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3882. if test $ac_compiler_gnu = yes; then
  3883. GCC=yes
  3884. else
  3885. GCC=
  3886. fi
  3887. ac_test_CFLAGS=${CFLAGS+set}
  3888. ac_save_CFLAGS=$CFLAGS
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3890. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3891. if ${ac_cv_prog_cc_g+:} false; then :
  3892. $as_echo_n "(cached) " >&6
  3893. else
  3894. ac_save_c_werror_flag=$ac_c_werror_flag
  3895. ac_c_werror_flag=yes
  3896. ac_cv_prog_cc_g=no
  3897. CFLAGS="-g"
  3898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3899. /* end confdefs.h. */
  3900. int
  3901. main ()
  3902. {
  3903. ;
  3904. return 0;
  3905. }
  3906. _ACEOF
  3907. if ac_fn_c_try_compile "$LINENO"; then :
  3908. ac_cv_prog_cc_g=yes
  3909. else
  3910. CFLAGS=""
  3911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3912. /* end confdefs.h. */
  3913. int
  3914. main ()
  3915. {
  3916. ;
  3917. return 0;
  3918. }
  3919. _ACEOF
  3920. if ac_fn_c_try_compile "$LINENO"; then :
  3921. else
  3922. ac_c_werror_flag=$ac_save_c_werror_flag
  3923. CFLAGS="-g"
  3924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3925. /* end confdefs.h. */
  3926. int
  3927. main ()
  3928. {
  3929. ;
  3930. return 0;
  3931. }
  3932. _ACEOF
  3933. if ac_fn_c_try_compile "$LINENO"; then :
  3934. ac_cv_prog_cc_g=yes
  3935. fi
  3936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3937. fi
  3938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3939. fi
  3940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3941. ac_c_werror_flag=$ac_save_c_werror_flag
  3942. fi
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3944. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3945. if test "$ac_test_CFLAGS" = set; then
  3946. CFLAGS=$ac_save_CFLAGS
  3947. elif test $ac_cv_prog_cc_g = yes; then
  3948. if test "$GCC" = yes; then
  3949. CFLAGS="-g -O2"
  3950. else
  3951. CFLAGS="-g"
  3952. fi
  3953. else
  3954. if test "$GCC" = yes; then
  3955. CFLAGS="-O2"
  3956. else
  3957. CFLAGS=
  3958. fi
  3959. fi
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3961. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3962. if ${ac_cv_prog_cc_c89+:} false; then :
  3963. $as_echo_n "(cached) " >&6
  3964. else
  3965. ac_cv_prog_cc_c89=no
  3966. ac_save_CC=$CC
  3967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3968. /* end confdefs.h. */
  3969. #include <stdarg.h>
  3970. #include <stdio.h>
  3971. struct stat;
  3972. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3973. struct buf { int x; };
  3974. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3975. static char *e (p, i)
  3976. char **p;
  3977. int i;
  3978. {
  3979. return p[i];
  3980. }
  3981. static char *f (char * (*g) (char **, int), char **p, ...)
  3982. {
  3983. char *s;
  3984. va_list v;
  3985. va_start (v,p);
  3986. s = g (p, va_arg (v,int));
  3987. va_end (v);
  3988. return s;
  3989. }
  3990. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3991. function prototypes and stuff, but not '\xHH' hex character constants.
  3992. These don't provoke an error unfortunately, instead are silently treated
  3993. as 'x'. The following induces an error, until -std is added to get
  3994. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3995. array size at least. It's necessary to write '\x00'==0 to get something
  3996. that's true only with -std. */
  3997. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3998. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3999. inside strings and character constants. */
  4000. #define FOO(x) 'x'
  4001. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4002. int test (int i, double x);
  4003. struct s1 {int (*f) (int a);};
  4004. struct s2 {int (*f) (double a);};
  4005. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4006. int argc;
  4007. char **argv;
  4008. int
  4009. main ()
  4010. {
  4011. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4012. ;
  4013. return 0;
  4014. }
  4015. _ACEOF
  4016. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4017. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4018. do
  4019. CC="$ac_save_CC $ac_arg"
  4020. if ac_fn_c_try_compile "$LINENO"; then :
  4021. ac_cv_prog_cc_c89=$ac_arg
  4022. fi
  4023. rm -f core conftest.err conftest.$ac_objext
  4024. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4025. done
  4026. rm -f conftest.$ac_ext
  4027. CC=$ac_save_CC
  4028. fi
  4029. # AC_CACHE_VAL
  4030. case "x$ac_cv_prog_cc_c89" in
  4031. x)
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4033. $as_echo "none needed" >&6; } ;;
  4034. xno)
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4036. $as_echo "unsupported" >&6; } ;;
  4037. *)
  4038. CC="$CC $ac_cv_prog_cc_c89"
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4040. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4041. esac
  4042. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4043. fi
  4044. ac_ext=c
  4045. ac_cpp='$CPP $CPPFLAGS'
  4046. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4047. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4048. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4049. ac_ext=c
  4050. ac_cpp='$CPP $CPPFLAGS'
  4051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4055. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4056. if ${am_cv_prog_cc_c_o+:} false; then :
  4057. $as_echo_n "(cached) " >&6
  4058. else
  4059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4060. /* end confdefs.h. */
  4061. int
  4062. main ()
  4063. {
  4064. ;
  4065. return 0;
  4066. }
  4067. _ACEOF
  4068. # Make sure it works both with $CC and with simple cc.
  4069. # Following AC_PROG_CC_C_O, we do the test twice because some
  4070. # compilers refuse to overwrite an existing .o file with -o,
  4071. # though they will create one.
  4072. am_cv_prog_cc_c_o=yes
  4073. for am_i in 1 2; do
  4074. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4075. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4076. ac_status=$?
  4077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4078. (exit $ac_status); } \
  4079. && test -f conftest2.$ac_objext; then
  4080. : OK
  4081. else
  4082. am_cv_prog_cc_c_o=no
  4083. break
  4084. fi
  4085. done
  4086. rm -f core conftest*
  4087. unset am_i
  4088. fi
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4090. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4091. if test "$am_cv_prog_cc_c_o" != yes; then
  4092. # Losing compiler, so override with the script.
  4093. # FIXME: It is wrong to rewrite CC.
  4094. # But if we don't then we get into trouble of one sort or another.
  4095. # A longer-term fix would be to have automake use am__CC in this case,
  4096. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4097. CC="$am_aux_dir/compile $CC"
  4098. fi
  4099. ac_ext=c
  4100. ac_cpp='$CPP $CPPFLAGS'
  4101. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4102. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4103. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4104. depcc="$CC" am_compiler_list=
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4106. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4107. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4108. $as_echo_n "(cached) " >&6
  4109. else
  4110. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4111. # We make a subdir and do the tests there. Otherwise we can end up
  4112. # making bogus files that we don't know about and never remove. For
  4113. # instance it was reported that on HP-UX the gcc test will end up
  4114. # making a dummy file named 'D' -- because '-MD' means "put the output
  4115. # in D".
  4116. rm -rf conftest.dir
  4117. mkdir conftest.dir
  4118. # Copy depcomp to subdir because otherwise we won't find it if we're
  4119. # using a relative directory.
  4120. cp "$am_depcomp" conftest.dir
  4121. cd conftest.dir
  4122. # We will build objects and dependencies in a subdirectory because
  4123. # it helps to detect inapplicable dependency modes. For instance
  4124. # both Tru64's cc and ICC support -MD to output dependencies as a
  4125. # side effect of compilation, but ICC will put the dependencies in
  4126. # the current directory while Tru64 will put them in the object
  4127. # directory.
  4128. mkdir sub
  4129. am_cv_CC_dependencies_compiler_type=none
  4130. if test "$am_compiler_list" = ""; then
  4131. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4132. fi
  4133. am__universal=false
  4134. case " $depcc " in #(
  4135. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4136. esac
  4137. for depmode in $am_compiler_list; do
  4138. # Setup a source with many dependencies, because some compilers
  4139. # like to wrap large dependency lists on column 80 (with \), and
  4140. # we should not choose a depcomp mode which is confused by this.
  4141. #
  4142. # We need to recreate these files for each test, as the compiler may
  4143. # overwrite some of them when testing with obscure command lines.
  4144. # This happens at least with the AIX C compiler.
  4145. : > sub/conftest.c
  4146. for i in 1 2 3 4 5 6; do
  4147. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4148. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4149. # Solaris 10 /bin/sh.
  4150. echo '/* dummy */' > sub/conftst$i.h
  4151. done
  4152. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4153. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4154. # mode. It turns out that the SunPro C++ compiler does not properly
  4155. # handle '-M -o', and we need to detect this. Also, some Intel
  4156. # versions had trouble with output in subdirs.
  4157. am__obj=sub/conftest.${OBJEXT-o}
  4158. am__minus_obj="-o $am__obj"
  4159. case $depmode in
  4160. gcc)
  4161. # This depmode causes a compiler race in universal mode.
  4162. test "$am__universal" = false || continue
  4163. ;;
  4164. nosideeffect)
  4165. # After this tag, mechanisms are not by side-effect, so they'll
  4166. # only be used when explicitly requested.
  4167. if test "x$enable_dependency_tracking" = xyes; then
  4168. continue
  4169. else
  4170. break
  4171. fi
  4172. ;;
  4173. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4174. # This compiler won't grok '-c -o', but also, the minuso test has
  4175. # not run yet. These depmodes are late enough in the game, and
  4176. # so weak that their functioning should not be impacted.
  4177. am__obj=conftest.${OBJEXT-o}
  4178. am__minus_obj=
  4179. ;;
  4180. none) break ;;
  4181. esac
  4182. if depmode=$depmode \
  4183. source=sub/conftest.c object=$am__obj \
  4184. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4185. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4186. >/dev/null 2>conftest.err &&
  4187. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4188. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4189. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4190. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4191. # icc doesn't choke on unknown options, it will just issue warnings
  4192. # or remarks (even with -Werror). So we grep stderr for any message
  4193. # that says an option was ignored or not supported.
  4194. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4195. # icc: Command line warning: ignoring option '-M'; no argument required
  4196. # The diagnosis changed in icc 8.0:
  4197. # icc: Command line remark: option '-MP' not supported
  4198. if (grep 'ignoring option' conftest.err ||
  4199. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4200. am_cv_CC_dependencies_compiler_type=$depmode
  4201. break
  4202. fi
  4203. fi
  4204. done
  4205. cd ..
  4206. rm -rf conftest.dir
  4207. else
  4208. am_cv_CC_dependencies_compiler_type=none
  4209. fi
  4210. fi
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4212. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4213. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4214. if
  4215. test "x$enable_dependency_tracking" != xno \
  4216. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4217. am__fastdepCC_TRUE=
  4218. am__fastdepCC_FALSE='#'
  4219. else
  4220. am__fastdepCC_TRUE='#'
  4221. am__fastdepCC_FALSE=
  4222. fi
  4223. # By default we simply use the C compiler to build assembly code.
  4224. test "${CCAS+set}" = set || CCAS=$CC
  4225. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4226. depcc="$CCAS" am_compiler_list=
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4228. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4229. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4230. $as_echo_n "(cached) " >&6
  4231. else
  4232. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4233. # We make a subdir and do the tests there. Otherwise we can end up
  4234. # making bogus files that we don't know about and never remove. For
  4235. # instance it was reported that on HP-UX the gcc test will end up
  4236. # making a dummy file named 'D' -- because '-MD' means "put the output
  4237. # in D".
  4238. rm -rf conftest.dir
  4239. mkdir conftest.dir
  4240. # Copy depcomp to subdir because otherwise we won't find it if we're
  4241. # using a relative directory.
  4242. cp "$am_depcomp" conftest.dir
  4243. cd conftest.dir
  4244. # We will build objects and dependencies in a subdirectory because
  4245. # it helps to detect inapplicable dependency modes. For instance
  4246. # both Tru64's cc and ICC support -MD to output dependencies as a
  4247. # side effect of compilation, but ICC will put the dependencies in
  4248. # the current directory while Tru64 will put them in the object
  4249. # directory.
  4250. mkdir sub
  4251. am_cv_CCAS_dependencies_compiler_type=none
  4252. if test "$am_compiler_list" = ""; then
  4253. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4254. fi
  4255. am__universal=false
  4256. for depmode in $am_compiler_list; do
  4257. # Setup a source with many dependencies, because some compilers
  4258. # like to wrap large dependency lists on column 80 (with \), and
  4259. # we should not choose a depcomp mode which is confused by this.
  4260. #
  4261. # We need to recreate these files for each test, as the compiler may
  4262. # overwrite some of them when testing with obscure command lines.
  4263. # This happens at least with the AIX C compiler.
  4264. : > sub/conftest.c
  4265. for i in 1 2 3 4 5 6; do
  4266. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4267. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4268. # Solaris 10 /bin/sh.
  4269. echo '/* dummy */' > sub/conftst$i.h
  4270. done
  4271. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4272. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4273. # mode. It turns out that the SunPro C++ compiler does not properly
  4274. # handle '-M -o', and we need to detect this. Also, some Intel
  4275. # versions had trouble with output in subdirs.
  4276. am__obj=sub/conftest.${OBJEXT-o}
  4277. am__minus_obj="-o $am__obj"
  4278. case $depmode in
  4279. gcc)
  4280. # This depmode causes a compiler race in universal mode.
  4281. test "$am__universal" = false || continue
  4282. ;;
  4283. nosideeffect)
  4284. # After this tag, mechanisms are not by side-effect, so they'll
  4285. # only be used when explicitly requested.
  4286. if test "x$enable_dependency_tracking" = xyes; then
  4287. continue
  4288. else
  4289. break
  4290. fi
  4291. ;;
  4292. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4293. # This compiler won't grok '-c -o', but also, the minuso test has
  4294. # not run yet. These depmodes are late enough in the game, and
  4295. # so weak that their functioning should not be impacted.
  4296. am__obj=conftest.${OBJEXT-o}
  4297. am__minus_obj=
  4298. ;;
  4299. none) break ;;
  4300. esac
  4301. if depmode=$depmode \
  4302. source=sub/conftest.c object=$am__obj \
  4303. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4304. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4305. >/dev/null 2>conftest.err &&
  4306. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4307. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4308. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4309. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4310. # icc doesn't choke on unknown options, it will just issue warnings
  4311. # or remarks (even with -Werror). So we grep stderr for any message
  4312. # that says an option was ignored or not supported.
  4313. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4314. # icc: Command line warning: ignoring option '-M'; no argument required
  4315. # The diagnosis changed in icc 8.0:
  4316. # icc: Command line remark: option '-MP' not supported
  4317. if (grep 'ignoring option' conftest.err ||
  4318. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4319. am_cv_CCAS_dependencies_compiler_type=$depmode
  4320. break
  4321. fi
  4322. fi
  4323. done
  4324. cd ..
  4325. rm -rf conftest.dir
  4326. else
  4327. am_cv_CCAS_dependencies_compiler_type=none
  4328. fi
  4329. fi
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4331. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4332. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4333. if
  4334. test "x$enable_dependency_tracking" != xno \
  4335. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4336. am__fastdepCCAS_TRUE=
  4337. am__fastdepCCAS_FALSE='#'
  4338. else
  4339. am__fastdepCCAS_TRUE='#'
  4340. am__fastdepCCAS_FALSE=
  4341. fi
  4342. ac_ext=c
  4343. ac_cpp='$CPP $CPPFLAGS'
  4344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4347. if test -n "$ac_tool_prefix"; then
  4348. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4349. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4351. $as_echo_n "checking for $ac_word... " >&6; }
  4352. if ${ac_cv_prog_CC+:} false; then :
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. if test -n "$CC"; then
  4356. ac_cv_prog_CC="$CC" # Let the user override the test.
  4357. else
  4358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4359. for as_dir in $PATH
  4360. do
  4361. IFS=$as_save_IFS
  4362. test -z "$as_dir" && as_dir=.
  4363. for ac_exec_ext in '' $ac_executable_extensions; do
  4364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4365. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4367. break 2
  4368. fi
  4369. done
  4370. done
  4371. IFS=$as_save_IFS
  4372. fi
  4373. fi
  4374. CC=$ac_cv_prog_CC
  4375. if test -n "$CC"; then
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4377. $as_echo "$CC" >&6; }
  4378. else
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4380. $as_echo "no" >&6; }
  4381. fi
  4382. fi
  4383. if test -z "$ac_cv_prog_CC"; then
  4384. ac_ct_CC=$CC
  4385. # Extract the first word of "gcc", so it can be a program name with args.
  4386. set dummy gcc; ac_word=$2
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4388. $as_echo_n "checking for $ac_word... " >&6; }
  4389. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4390. $as_echo_n "(cached) " >&6
  4391. else
  4392. if test -n "$ac_ct_CC"; then
  4393. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4394. else
  4395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4396. for as_dir in $PATH
  4397. do
  4398. IFS=$as_save_IFS
  4399. test -z "$as_dir" && as_dir=.
  4400. for ac_exec_ext in '' $ac_executable_extensions; do
  4401. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4402. ac_cv_prog_ac_ct_CC="gcc"
  4403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4404. break 2
  4405. fi
  4406. done
  4407. done
  4408. IFS=$as_save_IFS
  4409. fi
  4410. fi
  4411. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4412. if test -n "$ac_ct_CC"; then
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4414. $as_echo "$ac_ct_CC" >&6; }
  4415. else
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4417. $as_echo "no" >&6; }
  4418. fi
  4419. if test "x$ac_ct_CC" = x; then
  4420. CC=""
  4421. else
  4422. case $cross_compiling:$ac_tool_warned in
  4423. yes:)
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4425. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4426. ac_tool_warned=yes ;;
  4427. esac
  4428. CC=$ac_ct_CC
  4429. fi
  4430. else
  4431. CC="$ac_cv_prog_CC"
  4432. fi
  4433. if test -z "$CC"; then
  4434. if test -n "$ac_tool_prefix"; then
  4435. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4436. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4438. $as_echo_n "checking for $ac_word... " >&6; }
  4439. if ${ac_cv_prog_CC+:} false; then :
  4440. $as_echo_n "(cached) " >&6
  4441. else
  4442. if test -n "$CC"; then
  4443. ac_cv_prog_CC="$CC" # Let the user override the test.
  4444. else
  4445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4446. for as_dir in $PATH
  4447. do
  4448. IFS=$as_save_IFS
  4449. test -z "$as_dir" && as_dir=.
  4450. for ac_exec_ext in '' $ac_executable_extensions; do
  4451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4452. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4454. break 2
  4455. fi
  4456. done
  4457. done
  4458. IFS=$as_save_IFS
  4459. fi
  4460. fi
  4461. CC=$ac_cv_prog_CC
  4462. if test -n "$CC"; then
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4464. $as_echo "$CC" >&6; }
  4465. else
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4467. $as_echo "no" >&6; }
  4468. fi
  4469. fi
  4470. fi
  4471. if test -z "$CC"; then
  4472. # Extract the first word of "cc", so it can be a program name with args.
  4473. set dummy cc; ac_word=$2
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4475. $as_echo_n "checking for $ac_word... " >&6; }
  4476. if ${ac_cv_prog_CC+:} false; then :
  4477. $as_echo_n "(cached) " >&6
  4478. else
  4479. if test -n "$CC"; then
  4480. ac_cv_prog_CC="$CC" # Let the user override the test.
  4481. else
  4482. ac_prog_rejected=no
  4483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4484. for as_dir in $PATH
  4485. do
  4486. IFS=$as_save_IFS
  4487. test -z "$as_dir" && as_dir=.
  4488. for ac_exec_ext in '' $ac_executable_extensions; do
  4489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4490. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4491. ac_prog_rejected=yes
  4492. continue
  4493. fi
  4494. ac_cv_prog_CC="cc"
  4495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4496. break 2
  4497. fi
  4498. done
  4499. done
  4500. IFS=$as_save_IFS
  4501. if test $ac_prog_rejected = yes; then
  4502. # We found a bogon in the path, so make sure we never use it.
  4503. set dummy $ac_cv_prog_CC
  4504. shift
  4505. if test $# != 0; then
  4506. # We chose a different compiler from the bogus one.
  4507. # However, it has the same basename, so the bogon will be chosen
  4508. # first if we set CC to just the basename; use the full file name.
  4509. shift
  4510. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4511. fi
  4512. fi
  4513. fi
  4514. fi
  4515. CC=$ac_cv_prog_CC
  4516. if test -n "$CC"; then
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4518. $as_echo "$CC" >&6; }
  4519. else
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4521. $as_echo "no" >&6; }
  4522. fi
  4523. fi
  4524. if test -z "$CC"; then
  4525. if test -n "$ac_tool_prefix"; then
  4526. for ac_prog in cl.exe
  4527. do
  4528. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4529. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4531. $as_echo_n "checking for $ac_word... " >&6; }
  4532. if ${ac_cv_prog_CC+:} false; then :
  4533. $as_echo_n "(cached) " >&6
  4534. else
  4535. if test -n "$CC"; then
  4536. ac_cv_prog_CC="$CC" # Let the user override the test.
  4537. else
  4538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4539. for as_dir in $PATH
  4540. do
  4541. IFS=$as_save_IFS
  4542. test -z "$as_dir" && as_dir=.
  4543. for ac_exec_ext in '' $ac_executable_extensions; do
  4544. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4545. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4547. break 2
  4548. fi
  4549. done
  4550. done
  4551. IFS=$as_save_IFS
  4552. fi
  4553. fi
  4554. CC=$ac_cv_prog_CC
  4555. if test -n "$CC"; then
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4557. $as_echo "$CC" >&6; }
  4558. else
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4560. $as_echo "no" >&6; }
  4561. fi
  4562. test -n "$CC" && break
  4563. done
  4564. fi
  4565. if test -z "$CC"; then
  4566. ac_ct_CC=$CC
  4567. for ac_prog in cl.exe
  4568. do
  4569. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4570. set dummy $ac_prog; ac_word=$2
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4572. $as_echo_n "checking for $ac_word... " >&6; }
  4573. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4574. $as_echo_n "(cached) " >&6
  4575. else
  4576. if test -n "$ac_ct_CC"; then
  4577. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4578. else
  4579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4580. for as_dir in $PATH
  4581. do
  4582. IFS=$as_save_IFS
  4583. test -z "$as_dir" && as_dir=.
  4584. for ac_exec_ext in '' $ac_executable_extensions; do
  4585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4586. ac_cv_prog_ac_ct_CC="$ac_prog"
  4587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4588. break 2
  4589. fi
  4590. done
  4591. done
  4592. IFS=$as_save_IFS
  4593. fi
  4594. fi
  4595. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4596. if test -n "$ac_ct_CC"; then
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4598. $as_echo "$ac_ct_CC" >&6; }
  4599. else
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4601. $as_echo "no" >&6; }
  4602. fi
  4603. test -n "$ac_ct_CC" && break
  4604. done
  4605. if test "x$ac_ct_CC" = x; then
  4606. CC=""
  4607. else
  4608. case $cross_compiling:$ac_tool_warned in
  4609. yes:)
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4611. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4612. ac_tool_warned=yes ;;
  4613. esac
  4614. CC=$ac_ct_CC
  4615. fi
  4616. fi
  4617. fi
  4618. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4619. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4620. as_fn_error $? "no acceptable C compiler found in \$PATH
  4621. See \`config.log' for more details" "$LINENO" 5; }
  4622. # Provide some information about the compiler.
  4623. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4624. set X $ac_compile
  4625. ac_compiler=$2
  4626. for ac_option in --version -v -V -qversion; do
  4627. { { ac_try="$ac_compiler $ac_option >&5"
  4628. case "(($ac_try" in
  4629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4630. *) ac_try_echo=$ac_try;;
  4631. esac
  4632. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4633. $as_echo "$ac_try_echo"; } >&5
  4634. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4635. ac_status=$?
  4636. if test -s conftest.err; then
  4637. sed '10a\
  4638. ... rest of stderr output deleted ...
  4639. 10q' conftest.err >conftest.er1
  4640. cat conftest.er1 >&5
  4641. fi
  4642. rm -f conftest.er1 conftest.err
  4643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4644. test $ac_status = 0; }
  4645. done
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4647. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4648. if ${ac_cv_c_compiler_gnu+:} false; then :
  4649. $as_echo_n "(cached) " >&6
  4650. else
  4651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4652. /* end confdefs.h. */
  4653. int
  4654. main ()
  4655. {
  4656. #ifndef __GNUC__
  4657. choke me
  4658. #endif
  4659. ;
  4660. return 0;
  4661. }
  4662. _ACEOF
  4663. if ac_fn_c_try_compile "$LINENO"; then :
  4664. ac_compiler_gnu=yes
  4665. else
  4666. ac_compiler_gnu=no
  4667. fi
  4668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4669. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4670. fi
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4672. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4673. if test $ac_compiler_gnu = yes; then
  4674. GCC=yes
  4675. else
  4676. GCC=
  4677. fi
  4678. ac_test_CFLAGS=${CFLAGS+set}
  4679. ac_save_CFLAGS=$CFLAGS
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4681. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4682. if ${ac_cv_prog_cc_g+:} false; then :
  4683. $as_echo_n "(cached) " >&6
  4684. else
  4685. ac_save_c_werror_flag=$ac_c_werror_flag
  4686. ac_c_werror_flag=yes
  4687. ac_cv_prog_cc_g=no
  4688. CFLAGS="-g"
  4689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4690. /* end confdefs.h. */
  4691. int
  4692. main ()
  4693. {
  4694. ;
  4695. return 0;
  4696. }
  4697. _ACEOF
  4698. if ac_fn_c_try_compile "$LINENO"; then :
  4699. ac_cv_prog_cc_g=yes
  4700. else
  4701. CFLAGS=""
  4702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4703. /* end confdefs.h. */
  4704. int
  4705. main ()
  4706. {
  4707. ;
  4708. return 0;
  4709. }
  4710. _ACEOF
  4711. if ac_fn_c_try_compile "$LINENO"; then :
  4712. else
  4713. ac_c_werror_flag=$ac_save_c_werror_flag
  4714. CFLAGS="-g"
  4715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4716. /* end confdefs.h. */
  4717. int
  4718. main ()
  4719. {
  4720. ;
  4721. return 0;
  4722. }
  4723. _ACEOF
  4724. if ac_fn_c_try_compile "$LINENO"; then :
  4725. ac_cv_prog_cc_g=yes
  4726. fi
  4727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4728. fi
  4729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4730. fi
  4731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4732. ac_c_werror_flag=$ac_save_c_werror_flag
  4733. fi
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4735. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4736. if test "$ac_test_CFLAGS" = set; then
  4737. CFLAGS=$ac_save_CFLAGS
  4738. elif test $ac_cv_prog_cc_g = yes; then
  4739. if test "$GCC" = yes; then
  4740. CFLAGS="-g -O2"
  4741. else
  4742. CFLAGS="-g"
  4743. fi
  4744. else
  4745. if test "$GCC" = yes; then
  4746. CFLAGS="-O2"
  4747. else
  4748. CFLAGS=
  4749. fi
  4750. fi
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4752. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4753. if ${ac_cv_prog_cc_c89+:} false; then :
  4754. $as_echo_n "(cached) " >&6
  4755. else
  4756. ac_cv_prog_cc_c89=no
  4757. ac_save_CC=$CC
  4758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4759. /* end confdefs.h. */
  4760. #include <stdarg.h>
  4761. #include <stdio.h>
  4762. struct stat;
  4763. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4764. struct buf { int x; };
  4765. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4766. static char *e (p, i)
  4767. char **p;
  4768. int i;
  4769. {
  4770. return p[i];
  4771. }
  4772. static char *f (char * (*g) (char **, int), char **p, ...)
  4773. {
  4774. char *s;
  4775. va_list v;
  4776. va_start (v,p);
  4777. s = g (p, va_arg (v,int));
  4778. va_end (v);
  4779. return s;
  4780. }
  4781. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4782. function prototypes and stuff, but not '\xHH' hex character constants.
  4783. These don't provoke an error unfortunately, instead are silently treated
  4784. as 'x'. The following induces an error, until -std is added to get
  4785. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4786. array size at least. It's necessary to write '\x00'==0 to get something
  4787. that's true only with -std. */
  4788. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4789. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4790. inside strings and character constants. */
  4791. #define FOO(x) 'x'
  4792. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4793. int test (int i, double x);
  4794. struct s1 {int (*f) (int a);};
  4795. struct s2 {int (*f) (double a);};
  4796. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4797. int argc;
  4798. char **argv;
  4799. int
  4800. main ()
  4801. {
  4802. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4803. ;
  4804. return 0;
  4805. }
  4806. _ACEOF
  4807. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4808. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4809. do
  4810. CC="$ac_save_CC $ac_arg"
  4811. if ac_fn_c_try_compile "$LINENO"; then :
  4812. ac_cv_prog_cc_c89=$ac_arg
  4813. fi
  4814. rm -f core conftest.err conftest.$ac_objext
  4815. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4816. done
  4817. rm -f conftest.$ac_ext
  4818. CC=$ac_save_CC
  4819. fi
  4820. # AC_CACHE_VAL
  4821. case "x$ac_cv_prog_cc_c89" in
  4822. x)
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4824. $as_echo "none needed" >&6; } ;;
  4825. xno)
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4827. $as_echo "unsupported" >&6; } ;;
  4828. *)
  4829. CC="$CC $ac_cv_prog_cc_c89"
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4831. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4832. esac
  4833. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4834. fi
  4835. ac_ext=c
  4836. ac_cpp='$CPP $CPPFLAGS'
  4837. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4838. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4839. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4840. ac_ext=c
  4841. ac_cpp='$CPP $CPPFLAGS'
  4842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4846. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4847. if ${am_cv_prog_cc_c_o+:} false; then :
  4848. $as_echo_n "(cached) " >&6
  4849. else
  4850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4851. /* end confdefs.h. */
  4852. int
  4853. main ()
  4854. {
  4855. ;
  4856. return 0;
  4857. }
  4858. _ACEOF
  4859. # Make sure it works both with $CC and with simple cc.
  4860. # Following AC_PROG_CC_C_O, we do the test twice because some
  4861. # compilers refuse to overwrite an existing .o file with -o,
  4862. # though they will create one.
  4863. am_cv_prog_cc_c_o=yes
  4864. for am_i in 1 2; do
  4865. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4866. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4867. ac_status=$?
  4868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4869. (exit $ac_status); } \
  4870. && test -f conftest2.$ac_objext; then
  4871. : OK
  4872. else
  4873. am_cv_prog_cc_c_o=no
  4874. break
  4875. fi
  4876. done
  4877. rm -f core conftest*
  4878. unset am_i
  4879. fi
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4881. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4882. if test "$am_cv_prog_cc_c_o" != yes; then
  4883. # Losing compiler, so override with the script.
  4884. # FIXME: It is wrong to rewrite CC.
  4885. # But if we don't then we get into trouble of one sort or another.
  4886. # A longer-term fix would be to have automake use am__CC in this case,
  4887. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4888. CC="$am_aux_dir/compile $CC"
  4889. fi
  4890. ac_ext=c
  4891. ac_cpp='$CPP $CPPFLAGS'
  4892. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4893. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4894. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4895. depcc="$CC" am_compiler_list=
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4897. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4898. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4899. $as_echo_n "(cached) " >&6
  4900. else
  4901. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4902. # We make a subdir and do the tests there. Otherwise we can end up
  4903. # making bogus files that we don't know about and never remove. For
  4904. # instance it was reported that on HP-UX the gcc test will end up
  4905. # making a dummy file named 'D' -- because '-MD' means "put the output
  4906. # in D".
  4907. rm -rf conftest.dir
  4908. mkdir conftest.dir
  4909. # Copy depcomp to subdir because otherwise we won't find it if we're
  4910. # using a relative directory.
  4911. cp "$am_depcomp" conftest.dir
  4912. cd conftest.dir
  4913. # We will build objects and dependencies in a subdirectory because
  4914. # it helps to detect inapplicable dependency modes. For instance
  4915. # both Tru64's cc and ICC support -MD to output dependencies as a
  4916. # side effect of compilation, but ICC will put the dependencies in
  4917. # the current directory while Tru64 will put them in the object
  4918. # directory.
  4919. mkdir sub
  4920. am_cv_CC_dependencies_compiler_type=none
  4921. if test "$am_compiler_list" = ""; then
  4922. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4923. fi
  4924. am__universal=false
  4925. case " $depcc " in #(
  4926. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4927. esac
  4928. for depmode in $am_compiler_list; do
  4929. # Setup a source with many dependencies, because some compilers
  4930. # like to wrap large dependency lists on column 80 (with \), and
  4931. # we should not choose a depcomp mode which is confused by this.
  4932. #
  4933. # We need to recreate these files for each test, as the compiler may
  4934. # overwrite some of them when testing with obscure command lines.
  4935. # This happens at least with the AIX C compiler.
  4936. : > sub/conftest.c
  4937. for i in 1 2 3 4 5 6; do
  4938. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4939. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4940. # Solaris 10 /bin/sh.
  4941. echo '/* dummy */' > sub/conftst$i.h
  4942. done
  4943. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4944. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4945. # mode. It turns out that the SunPro C++ compiler does not properly
  4946. # handle '-M -o', and we need to detect this. Also, some Intel
  4947. # versions had trouble with output in subdirs.
  4948. am__obj=sub/conftest.${OBJEXT-o}
  4949. am__minus_obj="-o $am__obj"
  4950. case $depmode in
  4951. gcc)
  4952. # This depmode causes a compiler race in universal mode.
  4953. test "$am__universal" = false || continue
  4954. ;;
  4955. nosideeffect)
  4956. # After this tag, mechanisms are not by side-effect, so they'll
  4957. # only be used when explicitly requested.
  4958. if test "x$enable_dependency_tracking" = xyes; then
  4959. continue
  4960. else
  4961. break
  4962. fi
  4963. ;;
  4964. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4965. # This compiler won't grok '-c -o', but also, the minuso test has
  4966. # not run yet. These depmodes are late enough in the game, and
  4967. # so weak that their functioning should not be impacted.
  4968. am__obj=conftest.${OBJEXT-o}
  4969. am__minus_obj=
  4970. ;;
  4971. none) break ;;
  4972. esac
  4973. if depmode=$depmode \
  4974. source=sub/conftest.c object=$am__obj \
  4975. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4976. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4977. >/dev/null 2>conftest.err &&
  4978. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4979. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4980. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4981. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4982. # icc doesn't choke on unknown options, it will just issue warnings
  4983. # or remarks (even with -Werror). So we grep stderr for any message
  4984. # that says an option was ignored or not supported.
  4985. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4986. # icc: Command line warning: ignoring option '-M'; no argument required
  4987. # The diagnosis changed in icc 8.0:
  4988. # icc: Command line remark: option '-MP' not supported
  4989. if (grep 'ignoring option' conftest.err ||
  4990. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4991. am_cv_CC_dependencies_compiler_type=$depmode
  4992. break
  4993. fi
  4994. fi
  4995. done
  4996. cd ..
  4997. rm -rf conftest.dir
  4998. else
  4999. am_cv_CC_dependencies_compiler_type=none
  5000. fi
  5001. fi
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5003. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5004. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5005. if
  5006. test "x$enable_dependency_tracking" != xno \
  5007. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5008. am__fastdepCC_TRUE=
  5009. am__fastdepCC_FALSE='#'
  5010. else
  5011. am__fastdepCC_TRUE='#'
  5012. am__fastdepCC_FALSE=
  5013. fi
  5014. ac_ext=c
  5015. ac_cpp='$CPP $CPPFLAGS'
  5016. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5017. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5018. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5020. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5021. # On Suns, sometimes $CPP names a directory.
  5022. if test -n "$CPP" && test -d "$CPP"; then
  5023. CPP=
  5024. fi
  5025. if test -z "$CPP"; then
  5026. if ${ac_cv_prog_CPP+:} false; then :
  5027. $as_echo_n "(cached) " >&6
  5028. else
  5029. # Double quotes because CPP needs to be expanded
  5030. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5031. do
  5032. ac_preproc_ok=false
  5033. for ac_c_preproc_warn_flag in '' yes
  5034. do
  5035. # Use a header file that comes with gcc, so configuring glibc
  5036. # with a fresh cross-compiler works.
  5037. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5038. # <limits.h> exists even on freestanding compilers.
  5039. # On the NeXT, cc -E runs the code through the compiler's parser,
  5040. # not just through cpp. "Syntax error" is here to catch this case.
  5041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5042. /* end confdefs.h. */
  5043. #ifdef __STDC__
  5044. # include <limits.h>
  5045. #else
  5046. # include <assert.h>
  5047. #endif
  5048. Syntax error
  5049. _ACEOF
  5050. if ac_fn_c_try_cpp "$LINENO"; then :
  5051. else
  5052. # Broken: fails on valid input.
  5053. continue
  5054. fi
  5055. rm -f conftest.err conftest.i conftest.$ac_ext
  5056. # OK, works on sane cases. Now check whether nonexistent headers
  5057. # can be detected and how.
  5058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5059. /* end confdefs.h. */
  5060. #include <ac_nonexistent.h>
  5061. _ACEOF
  5062. if ac_fn_c_try_cpp "$LINENO"; then :
  5063. # Broken: success on invalid input.
  5064. continue
  5065. else
  5066. # Passes both tests.
  5067. ac_preproc_ok=:
  5068. break
  5069. fi
  5070. rm -f conftest.err conftest.i conftest.$ac_ext
  5071. done
  5072. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5073. rm -f conftest.i conftest.err conftest.$ac_ext
  5074. if $ac_preproc_ok; then :
  5075. break
  5076. fi
  5077. done
  5078. ac_cv_prog_CPP=$CPP
  5079. fi
  5080. CPP=$ac_cv_prog_CPP
  5081. else
  5082. ac_cv_prog_CPP=$CPP
  5083. fi
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5085. $as_echo "$CPP" >&6; }
  5086. ac_preproc_ok=false
  5087. for ac_c_preproc_warn_flag in '' yes
  5088. do
  5089. # Use a header file that comes with gcc, so configuring glibc
  5090. # with a fresh cross-compiler works.
  5091. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5092. # <limits.h> exists even on freestanding compilers.
  5093. # On the NeXT, cc -E runs the code through the compiler's parser,
  5094. # not just through cpp. "Syntax error" is here to catch this case.
  5095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5096. /* end confdefs.h. */
  5097. #ifdef __STDC__
  5098. # include <limits.h>
  5099. #else
  5100. # include <assert.h>
  5101. #endif
  5102. Syntax error
  5103. _ACEOF
  5104. if ac_fn_c_try_cpp "$LINENO"; then :
  5105. else
  5106. # Broken: fails on valid input.
  5107. continue
  5108. fi
  5109. rm -f conftest.err conftest.i conftest.$ac_ext
  5110. # OK, works on sane cases. Now check whether nonexistent headers
  5111. # can be detected and how.
  5112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5113. /* end confdefs.h. */
  5114. #include <ac_nonexistent.h>
  5115. _ACEOF
  5116. if ac_fn_c_try_cpp "$LINENO"; then :
  5117. # Broken: success on invalid input.
  5118. continue
  5119. else
  5120. # Passes both tests.
  5121. ac_preproc_ok=:
  5122. break
  5123. fi
  5124. rm -f conftest.err conftest.i conftest.$ac_ext
  5125. done
  5126. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5127. rm -f conftest.i conftest.err conftest.$ac_ext
  5128. if $ac_preproc_ok; then :
  5129. else
  5130. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5131. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5132. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5133. See \`config.log' for more details" "$LINENO" 5; }
  5134. fi
  5135. ac_ext=c
  5136. ac_cpp='$CPP $CPPFLAGS'
  5137. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5138. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5139. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5140. LIBM=
  5141. case $host in
  5142. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  5143. # These system don't have libm, or don't need it
  5144. ;;
  5145. *-ncr-sysv4.3*)
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  5147. $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
  5148. if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
  5149. $as_echo_n "(cached) " >&6
  5150. else
  5151. ac_check_lib_save_LIBS=$LIBS
  5152. LIBS="-lmw $LIBS"
  5153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5154. /* end confdefs.h. */
  5155. /* Override any GCC internal prototype to avoid an error.
  5156. Use char because int might match the return type of a GCC
  5157. builtin and then its argument prototype would still apply. */
  5158. #ifdef __cplusplus
  5159. extern "C"
  5160. #endif
  5161. char _mwvalidcheckl ();
  5162. int
  5163. main ()
  5164. {
  5165. return _mwvalidcheckl ();
  5166. ;
  5167. return 0;
  5168. }
  5169. _ACEOF
  5170. if ac_fn_c_try_link "$LINENO"; then :
  5171. ac_cv_lib_mw__mwvalidcheckl=yes
  5172. else
  5173. ac_cv_lib_mw__mwvalidcheckl=no
  5174. fi
  5175. rm -f core conftest.err conftest.$ac_objext \
  5176. conftest$ac_exeext conftest.$ac_ext
  5177. LIBS=$ac_check_lib_save_LIBS
  5178. fi
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  5180. $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  5181. if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
  5182. LIBM=-lmw
  5183. fi
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  5185. $as_echo_n "checking for cos in -lm... " >&6; }
  5186. if ${ac_cv_lib_m_cos+:} false; then :
  5187. $as_echo_n "(cached) " >&6
  5188. else
  5189. ac_check_lib_save_LIBS=$LIBS
  5190. LIBS="-lm $LIBS"
  5191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5192. /* end confdefs.h. */
  5193. /* Override any GCC internal prototype to avoid an error.
  5194. Use char because int might match the return type of a GCC
  5195. builtin and then its argument prototype would still apply. */
  5196. #ifdef __cplusplus
  5197. extern "C"
  5198. #endif
  5199. char cos ();
  5200. int
  5201. main ()
  5202. {
  5203. return cos ();
  5204. ;
  5205. return 0;
  5206. }
  5207. _ACEOF
  5208. if ac_fn_c_try_link "$LINENO"; then :
  5209. ac_cv_lib_m_cos=yes
  5210. else
  5211. ac_cv_lib_m_cos=no
  5212. fi
  5213. rm -f core conftest.err conftest.$ac_objext \
  5214. conftest$ac_exeext conftest.$ac_ext
  5215. LIBS=$ac_check_lib_save_LIBS
  5216. fi
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  5218. $as_echo "$ac_cv_lib_m_cos" >&6; }
  5219. if test "x$ac_cv_lib_m_cos" = xyes; then :
  5220. LIBM="$LIBM -lm"
  5221. fi
  5222. ;;
  5223. *)
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  5225. $as_echo_n "checking for cos in -lm... " >&6; }
  5226. if ${ac_cv_lib_m_cos+:} false; then :
  5227. $as_echo_n "(cached) " >&6
  5228. else
  5229. ac_check_lib_save_LIBS=$LIBS
  5230. LIBS="-lm $LIBS"
  5231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5232. /* end confdefs.h. */
  5233. /* Override any GCC internal prototype to avoid an error.
  5234. Use char because int might match the return type of a GCC
  5235. builtin and then its argument prototype would still apply. */
  5236. #ifdef __cplusplus
  5237. extern "C"
  5238. #endif
  5239. char cos ();
  5240. int
  5241. main ()
  5242. {
  5243. return cos ();
  5244. ;
  5245. return 0;
  5246. }
  5247. _ACEOF
  5248. if ac_fn_c_try_link "$LINENO"; then :
  5249. ac_cv_lib_m_cos=yes
  5250. else
  5251. ac_cv_lib_m_cos=no
  5252. fi
  5253. rm -f core conftest.err conftest.$ac_objext \
  5254. conftest$ac_exeext conftest.$ac_ext
  5255. LIBS=$ac_check_lib_save_LIBS
  5256. fi
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  5258. $as_echo "$ac_cv_lib_m_cos" >&6; }
  5259. if test "x$ac_cv_lib_m_cos" = xyes; then :
  5260. LIBM=-lm
  5261. fi
  5262. ;;
  5263. esac
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5265. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5266. if ${ac_cv_path_GREP+:} false; then :
  5267. $as_echo_n "(cached) " >&6
  5268. else
  5269. if test -z "$GREP"; then
  5270. ac_path_GREP_found=false
  5271. # Loop through the user's path and test for each of PROGNAME-LIST
  5272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5273. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5274. do
  5275. IFS=$as_save_IFS
  5276. test -z "$as_dir" && as_dir=.
  5277. for ac_prog in grep ggrep; do
  5278. for ac_exec_ext in '' $ac_executable_extensions; do
  5279. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5280. as_fn_executable_p "$ac_path_GREP" || continue
  5281. # Check for GNU ac_path_GREP and select it if it is found.
  5282. # Check for GNU $ac_path_GREP
  5283. case `"$ac_path_GREP" --version 2>&1` in
  5284. *GNU*)
  5285. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5286. *)
  5287. ac_count=0
  5288. $as_echo_n 0123456789 >"conftest.in"
  5289. while :
  5290. do
  5291. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5292. mv "conftest.tmp" "conftest.in"
  5293. cp "conftest.in" "conftest.nl"
  5294. $as_echo 'GREP' >> "conftest.nl"
  5295. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5296. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5297. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5298. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5299. # Best one so far, save it but keep looking for a better one
  5300. ac_cv_path_GREP="$ac_path_GREP"
  5301. ac_path_GREP_max=$ac_count
  5302. fi
  5303. # 10*(2^10) chars as input seems more than enough
  5304. test $ac_count -gt 10 && break
  5305. done
  5306. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5307. esac
  5308. $ac_path_GREP_found && break 3
  5309. done
  5310. done
  5311. done
  5312. IFS=$as_save_IFS
  5313. if test -z "$ac_cv_path_GREP"; then
  5314. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5315. fi
  5316. else
  5317. ac_cv_path_GREP=$GREP
  5318. fi
  5319. fi
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5321. $as_echo "$ac_cv_path_GREP" >&6; }
  5322. GREP="$ac_cv_path_GREP"
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5324. $as_echo_n "checking for egrep... " >&6; }
  5325. if ${ac_cv_path_EGREP+:} false; then :
  5326. $as_echo_n "(cached) " >&6
  5327. else
  5328. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5329. then ac_cv_path_EGREP="$GREP -E"
  5330. else
  5331. if test -z "$EGREP"; then
  5332. ac_path_EGREP_found=false
  5333. # Loop through the user's path and test for each of PROGNAME-LIST
  5334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5335. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5336. do
  5337. IFS=$as_save_IFS
  5338. test -z "$as_dir" && as_dir=.
  5339. for ac_prog in egrep; do
  5340. for ac_exec_ext in '' $ac_executable_extensions; do
  5341. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5342. as_fn_executable_p "$ac_path_EGREP" || continue
  5343. # Check for GNU ac_path_EGREP and select it if it is found.
  5344. # Check for GNU $ac_path_EGREP
  5345. case `"$ac_path_EGREP" --version 2>&1` in
  5346. *GNU*)
  5347. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5348. *)
  5349. ac_count=0
  5350. $as_echo_n 0123456789 >"conftest.in"
  5351. while :
  5352. do
  5353. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5354. mv "conftest.tmp" "conftest.in"
  5355. cp "conftest.in" "conftest.nl"
  5356. $as_echo 'EGREP' >> "conftest.nl"
  5357. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5358. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5359. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5360. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5361. # Best one so far, save it but keep looking for a better one
  5362. ac_cv_path_EGREP="$ac_path_EGREP"
  5363. ac_path_EGREP_max=$ac_count
  5364. fi
  5365. # 10*(2^10) chars as input seems more than enough
  5366. test $ac_count -gt 10 && break
  5367. done
  5368. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5369. esac
  5370. $ac_path_EGREP_found && break 3
  5371. done
  5372. done
  5373. done
  5374. IFS=$as_save_IFS
  5375. if test -z "$ac_cv_path_EGREP"; then
  5376. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5377. fi
  5378. else
  5379. ac_cv_path_EGREP=$EGREP
  5380. fi
  5381. fi
  5382. fi
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5384. $as_echo "$ac_cv_path_EGREP" >&6; }
  5385. EGREP="$ac_cv_path_EGREP"
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  5387. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  5388. if ${ac_cv_c_const+:} false; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5392. /* end confdefs.h. */
  5393. int
  5394. main ()
  5395. {
  5396. #ifndef __cplusplus
  5397. /* Ultrix mips cc rejects this sort of thing. */
  5398. typedef int charset[2];
  5399. const charset cs = { 0, 0 };
  5400. /* SunOS 4.1.1 cc rejects this. */
  5401. char const *const *pcpcc;
  5402. char **ppc;
  5403. /* NEC SVR4.0.2 mips cc rejects this. */
  5404. struct point {int x, y;};
  5405. static struct point const zero = {0,0};
  5406. /* AIX XL C 1.02.0.0 rejects this.
  5407. It does not let you subtract one const X* pointer from another in
  5408. an arm of an if-expression whose if-part is not a constant
  5409. expression */
  5410. const char *g = "string";
  5411. pcpcc = &g + (g ? g-g : 0);
  5412. /* HPUX 7.0 cc rejects these. */
  5413. ++pcpcc;
  5414. ppc = (char**) pcpcc;
  5415. pcpcc = (char const *const *) ppc;
  5416. { /* SCO 3.2v4 cc rejects this sort of thing. */
  5417. char tx;
  5418. char *t = &tx;
  5419. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5420. *t++ = 0;
  5421. if (s) return 0;
  5422. }
  5423. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5424. int x[] = {25, 17};
  5425. const int *foo = &x[0];
  5426. ++foo;
  5427. }
  5428. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5429. typedef const int *iptr;
  5430. iptr p = 0;
  5431. ++p;
  5432. }
  5433. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  5434. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5435. struct s { int j; const int *ap[3]; } bx;
  5436. struct s *b = &bx; b->j = 5;
  5437. }
  5438. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5439. const int foo = 10;
  5440. if (!foo) return 0;
  5441. }
  5442. return !cs[0] && !zero.x;
  5443. #endif
  5444. ;
  5445. return 0;
  5446. }
  5447. _ACEOF
  5448. if ac_fn_c_try_compile "$LINENO"; then :
  5449. ac_cv_c_const=yes
  5450. else
  5451. ac_cv_c_const=no
  5452. fi
  5453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5454. fi
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  5456. $as_echo "$ac_cv_c_const" >&6; }
  5457. if test $ac_cv_c_const = no; then
  5458. $as_echo "#define const /**/" >>confdefs.h
  5459. fi
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  5461. $as_echo_n "checking for inline... " >&6; }
  5462. if ${ac_cv_c_inline+:} false; then :
  5463. $as_echo_n "(cached) " >&6
  5464. else
  5465. ac_cv_c_inline=no
  5466. for ac_kw in inline __inline__ __inline; do
  5467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5468. /* end confdefs.h. */
  5469. #ifndef __cplusplus
  5470. typedef int foo_t;
  5471. static $ac_kw foo_t static_foo () {return 0; }
  5472. $ac_kw foo_t foo () {return 0; }
  5473. #endif
  5474. _ACEOF
  5475. if ac_fn_c_try_compile "$LINENO"; then :
  5476. ac_cv_c_inline=$ac_kw
  5477. fi
  5478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5479. test "$ac_cv_c_inline" != no && break
  5480. done
  5481. fi
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  5483. $as_echo "$ac_cv_c_inline" >&6; }
  5484. case $ac_cv_c_inline in
  5485. inline | yes) ;;
  5486. *)
  5487. case $ac_cv_c_inline in
  5488. no) ac_val=;;
  5489. *) ac_val=$ac_cv_c_inline;;
  5490. esac
  5491. cat >>confdefs.h <<_ACEOF
  5492. #ifndef __cplusplus
  5493. #define inline $ac_val
  5494. #endif
  5495. _ACEOF
  5496. ;;
  5497. esac
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5499. $as_echo_n "checking for ANSI C header files... " >&6; }
  5500. if ${ac_cv_header_stdc+:} false; then :
  5501. $as_echo_n "(cached) " >&6
  5502. else
  5503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5504. /* end confdefs.h. */
  5505. #include <stdlib.h>
  5506. #include <stdarg.h>
  5507. #include <string.h>
  5508. #include <float.h>
  5509. int
  5510. main ()
  5511. {
  5512. ;
  5513. return 0;
  5514. }
  5515. _ACEOF
  5516. if ac_fn_c_try_compile "$LINENO"; then :
  5517. ac_cv_header_stdc=yes
  5518. else
  5519. ac_cv_header_stdc=no
  5520. fi
  5521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5522. if test $ac_cv_header_stdc = yes; then
  5523. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5525. /* end confdefs.h. */
  5526. #include <string.h>
  5527. _ACEOF
  5528. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5529. $EGREP "memchr" >/dev/null 2>&1; then :
  5530. else
  5531. ac_cv_header_stdc=no
  5532. fi
  5533. rm -f conftest*
  5534. fi
  5535. if test $ac_cv_header_stdc = yes; then
  5536. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5538. /* end confdefs.h. */
  5539. #include <stdlib.h>
  5540. _ACEOF
  5541. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5542. $EGREP "free" >/dev/null 2>&1; then :
  5543. else
  5544. ac_cv_header_stdc=no
  5545. fi
  5546. rm -f conftest*
  5547. fi
  5548. if test $ac_cv_header_stdc = yes; then
  5549. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5550. if test "$cross_compiling" = yes; then :
  5551. :
  5552. else
  5553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5554. /* end confdefs.h. */
  5555. #include <ctype.h>
  5556. #include <stdlib.h>
  5557. #if ((' ' & 0x0FF) == 0x020)
  5558. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5559. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5560. #else
  5561. # define ISLOWER(c) \
  5562. (('a' <= (c) && (c) <= 'i') \
  5563. || ('j' <= (c) && (c) <= 'r') \
  5564. || ('s' <= (c) && (c) <= 'z'))
  5565. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5566. #endif
  5567. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5568. int
  5569. main ()
  5570. {
  5571. int i;
  5572. for (i = 0; i < 256; i++)
  5573. if (XOR (islower (i), ISLOWER (i))
  5574. || toupper (i) != TOUPPER (i))
  5575. return 2;
  5576. return 0;
  5577. }
  5578. _ACEOF
  5579. if ac_fn_c_try_run "$LINENO"; then :
  5580. else
  5581. ac_cv_header_stdc=no
  5582. fi
  5583. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5584. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5585. fi
  5586. fi
  5587. fi
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5589. $as_echo "$ac_cv_header_stdc" >&6; }
  5590. if test $ac_cv_header_stdc = yes; then
  5591. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5592. fi
  5593. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5594. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5595. inttypes.h stdint.h unistd.h
  5596. do :
  5597. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5598. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5599. "
  5600. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5601. cat >>confdefs.h <<_ACEOF
  5602. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5603. _ACEOF
  5604. fi
  5605. done
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5607. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5608. if ${ac_cv_c_bigendian+:} false; then :
  5609. $as_echo_n "(cached) " >&6
  5610. else
  5611. ac_cv_c_bigendian=unknown
  5612. # See if we're dealing with a universal compiler.
  5613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5614. /* end confdefs.h. */
  5615. #ifndef __APPLE_CC__
  5616. not a universal capable compiler
  5617. #endif
  5618. typedef int dummy;
  5619. _ACEOF
  5620. if ac_fn_c_try_compile "$LINENO"; then :
  5621. # Check for potential -arch flags. It is not universal unless
  5622. # there are at least two -arch flags with different values.
  5623. ac_arch=
  5624. ac_prev=
  5625. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5626. if test -n "$ac_prev"; then
  5627. case $ac_word in
  5628. i?86 | x86_64 | ppc | ppc64)
  5629. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5630. ac_arch=$ac_word
  5631. else
  5632. ac_cv_c_bigendian=universal
  5633. break
  5634. fi
  5635. ;;
  5636. esac
  5637. ac_prev=
  5638. elif test "x$ac_word" = "x-arch"; then
  5639. ac_prev=arch
  5640. fi
  5641. done
  5642. fi
  5643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5644. if test $ac_cv_c_bigendian = unknown; then
  5645. # See if sys/param.h defines the BYTE_ORDER macro.
  5646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5647. /* end confdefs.h. */
  5648. #include <sys/types.h>
  5649. #include <sys/param.h>
  5650. int
  5651. main ()
  5652. {
  5653. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5654. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5655. && LITTLE_ENDIAN)
  5656. bogus endian macros
  5657. #endif
  5658. ;
  5659. return 0;
  5660. }
  5661. _ACEOF
  5662. if ac_fn_c_try_compile "$LINENO"; then :
  5663. # It does; now see whether it defined to BIG_ENDIAN or not.
  5664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5665. /* end confdefs.h. */
  5666. #include <sys/types.h>
  5667. #include <sys/param.h>
  5668. int
  5669. main ()
  5670. {
  5671. #if BYTE_ORDER != BIG_ENDIAN
  5672. not big endian
  5673. #endif
  5674. ;
  5675. return 0;
  5676. }
  5677. _ACEOF
  5678. if ac_fn_c_try_compile "$LINENO"; then :
  5679. ac_cv_c_bigendian=yes
  5680. else
  5681. ac_cv_c_bigendian=no
  5682. fi
  5683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5684. fi
  5685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5686. fi
  5687. if test $ac_cv_c_bigendian = unknown; then
  5688. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5690. /* end confdefs.h. */
  5691. #include <limits.h>
  5692. int
  5693. main ()
  5694. {
  5695. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5696. bogus endian macros
  5697. #endif
  5698. ;
  5699. return 0;
  5700. }
  5701. _ACEOF
  5702. if ac_fn_c_try_compile "$LINENO"; then :
  5703. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5705. /* end confdefs.h. */
  5706. #include <limits.h>
  5707. int
  5708. main ()
  5709. {
  5710. #ifndef _BIG_ENDIAN
  5711. not big endian
  5712. #endif
  5713. ;
  5714. return 0;
  5715. }
  5716. _ACEOF
  5717. if ac_fn_c_try_compile "$LINENO"; then :
  5718. ac_cv_c_bigendian=yes
  5719. else
  5720. ac_cv_c_bigendian=no
  5721. fi
  5722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5723. fi
  5724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5725. fi
  5726. if test $ac_cv_c_bigendian = unknown; then
  5727. # Compile a test program.
  5728. if test "$cross_compiling" = yes; then :
  5729. # Try to guess by grepping values from an object file.
  5730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5731. /* end confdefs.h. */
  5732. short int ascii_mm[] =
  5733. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5734. short int ascii_ii[] =
  5735. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5736. int use_ascii (int i) {
  5737. return ascii_mm[i] + ascii_ii[i];
  5738. }
  5739. short int ebcdic_ii[] =
  5740. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5741. short int ebcdic_mm[] =
  5742. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5743. int use_ebcdic (int i) {
  5744. return ebcdic_mm[i] + ebcdic_ii[i];
  5745. }
  5746. extern int foo;
  5747. int
  5748. main ()
  5749. {
  5750. return use_ascii (foo) == use_ebcdic (foo);
  5751. ;
  5752. return 0;
  5753. }
  5754. _ACEOF
  5755. if ac_fn_c_try_compile "$LINENO"; then :
  5756. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5757. ac_cv_c_bigendian=yes
  5758. fi
  5759. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5760. if test "$ac_cv_c_bigendian" = unknown; then
  5761. ac_cv_c_bigendian=no
  5762. else
  5763. # finding both strings is unlikely to happen, but who knows?
  5764. ac_cv_c_bigendian=unknown
  5765. fi
  5766. fi
  5767. fi
  5768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5769. else
  5770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5771. /* end confdefs.h. */
  5772. $ac_includes_default
  5773. int
  5774. main ()
  5775. {
  5776. /* Are we little or big endian? From Harbison&Steele. */
  5777. union
  5778. {
  5779. long int l;
  5780. char c[sizeof (long int)];
  5781. } u;
  5782. u.l = 1;
  5783. return u.c[sizeof (long int) - 1] == 1;
  5784. ;
  5785. return 0;
  5786. }
  5787. _ACEOF
  5788. if ac_fn_c_try_run "$LINENO"; then :
  5789. ac_cv_c_bigendian=no
  5790. else
  5791. ac_cv_c_bigendian=yes
  5792. fi
  5793. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5794. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5795. fi
  5796. fi
  5797. fi
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5799. $as_echo "$ac_cv_c_bigendian" >&6; }
  5800. case $ac_cv_c_bigendian in #(
  5801. yes)
  5802. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  5803. ;; #(
  5804. no)
  5805. ;; #(
  5806. universal)
  5807. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5808. ;; #(
  5809. *)
  5810. as_fn_error $? "unknown endianness
  5811. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5812. esac
  5813. if test "x$lib_static" = xyes; then
  5814. CC="$CC -static-libgcc"
  5815. CCLD="$CC"
  5816. echo "Adding -static-libgcc"
  5817. fi
  5818. modules=auto
  5819. OUTPUT_OBJ="module.\$(OBJEXT)"
  5820. # Check whether --enable-modules was given.
  5821. if test "${enable_modules+set}" = set; then :
  5822. enableval=$enable_modules;
  5823. if test "x$enableval" = xyes
  5824. then
  5825. modules=enabled
  5826. else
  5827. modules=disabled
  5828. fi
  5829. else
  5830. if test "x$be_static" = "xyes"; then
  5831. modules=disabled
  5832. else
  5833. modules=auto
  5834. fi
  5835. fi
  5836. # Check whether --enable-static was given.
  5837. if test "${enable_static+set}" = set; then :
  5838. enableval=$enable_static; p=${PACKAGE-default}
  5839. case $enableval in
  5840. yes) enable_static=yes ;;
  5841. no) enable_static=no ;;
  5842. *)
  5843. enable_static=no
  5844. # Look at the argument we got. We use all the common list separators.
  5845. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  5846. for pkg in $enableval; do
  5847. IFS=$lt_save_ifs
  5848. if test "X$pkg" = "X$p"; then
  5849. enable_static=yes
  5850. fi
  5851. done
  5852. IFS=$lt_save_ifs
  5853. ;;
  5854. esac
  5855. else
  5856. enable_static=no
  5857. fi
  5858. # Check whether --enable-shared was given.
  5859. if test "${enable_shared+set}" = set; then :
  5860. enableval=$enable_shared; p=${PACKAGE-default}
  5861. case $enableval in
  5862. yes) enable_shared=yes ;;
  5863. no) enable_shared=no ;;
  5864. *)
  5865. enable_shared=no
  5866. # Look at the argument we got. We use all the common list separators.
  5867. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  5868. for pkg in $enableval; do
  5869. IFS=$lt_save_ifs
  5870. if test "X$pkg" = "X$p"; then
  5871. enable_shared=yes
  5872. fi
  5873. done
  5874. IFS=$lt_save_ifs
  5875. ;;
  5876. esac
  5877. else
  5878. enable_shared=yes
  5879. fi
  5880. if test x"$enable_shared" = xno; then
  5881. modules=disabled
  5882. LT_LDFLAGS=
  5883. else
  5884. $as_echo "#define DYNAMIC_BUILD 1" >>confdefs.h
  5885. fi
  5886. for ac_header in windows.h
  5887. do :
  5888. ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  5889. if test "x$ac_cv_header_windows_h" = xyes; then :
  5890. cat >>confdefs.h <<_ACEOF
  5891. #define HAVE_WINDOWS_H 1
  5892. _ACEOF
  5893. fi
  5894. done
  5895. if test x"$modules" = xdisabled
  5896. then
  5897. echo "Modules disabled, not checking for dynamic loading."
  5898. else
  5899. have_dl=no
  5900. # The dlopen() API is either in libc or in libdl.
  5901. if test x$ac_cv_header_windows_h = xyes; then
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LoadLibrary should be used" >&5
  5903. $as_echo_n "checking if LoadLibrary should be used... " >&6; }
  5904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5905. /* end confdefs.h. */
  5906. #ifdef __CYGWIN__
  5907. #error Cygwin should use dlopen
  5908. #endif
  5909. #include <windows.h>
  5910. int main() {
  5911. LoadLibraryW(0);
  5912. GetProcAddress(0, 0);
  5913. FreeLibrary(0);
  5914. }
  5915. _ACEOF
  5916. if ac_fn_c_try_link "$LINENO"; then :
  5917. have_dl=yes
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using LoadLibrary" >&5
  5919. $as_echo "Using LoadLibrary" >&6; }
  5920. else
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5922. $as_echo "no" >&6; }
  5923. fi
  5924. rm -f core conftest.err conftest.$ac_objext \
  5925. conftest$ac_exeext conftest.$ac_ext
  5926. else
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  5928. $as_echo_n "checking for library containing dlopen... " >&6; }
  5929. if ${ac_cv_search_dlopen+:} false; then :
  5930. $as_echo_n "(cached) " >&6
  5931. else
  5932. ac_func_search_save_LIBS=$LIBS
  5933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5934. /* end confdefs.h. */
  5935. /* Override any GCC internal prototype to avoid an error.
  5936. Use char because int might match the return type of a GCC
  5937. builtin and then its argument prototype would still apply. */
  5938. #ifdef __cplusplus
  5939. extern "C"
  5940. #endif
  5941. char dlopen ();
  5942. int
  5943. main ()
  5944. {
  5945. return dlopen ();
  5946. ;
  5947. return 0;
  5948. }
  5949. _ACEOF
  5950. for ac_lib in '' dl; do
  5951. if test -z "$ac_lib"; then
  5952. ac_res="none required"
  5953. else
  5954. ac_res=-l$ac_lib
  5955. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5956. fi
  5957. if ac_fn_c_try_link "$LINENO"; then :
  5958. ac_cv_search_dlopen=$ac_res
  5959. fi
  5960. rm -f core conftest.err conftest.$ac_objext \
  5961. conftest$ac_exeext
  5962. if ${ac_cv_search_dlopen+:} false; then :
  5963. break
  5964. fi
  5965. done
  5966. if ${ac_cv_search_dlopen+:} false; then :
  5967. else
  5968. ac_cv_search_dlopen=no
  5969. fi
  5970. rm conftest.$ac_ext
  5971. LIBS=$ac_func_search_save_LIBS
  5972. fi
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  5974. $as_echo "$ac_cv_search_dlopen" >&6; }
  5975. ac_res=$ac_cv_search_dlopen
  5976. if test "$ac_res" != no; then :
  5977. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5978. fi
  5979. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  5980. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  5981. fi
  5982. for ac_func in dlopen dlsym dlclose
  5983. do :
  5984. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5985. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5986. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5987. cat >>confdefs.h <<_ACEOF
  5988. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5989. _ACEOF
  5990. have_dl=yes
  5991. fi
  5992. done
  5993. fi
  5994. if test x"$modules" = xenabled -a x"$have_dl" = xno; then
  5995. as_fn_error $? "Modules enabled but no runtime loader found! This will not work..." "$LINENO" 5
  5996. fi
  5997. if test x"$modules" = xauto; then
  5998. if test x"$have_dl" = xyes; then
  5999. modules=enabled
  6000. echo "We found a runtime loader: Modules enabled."
  6001. else
  6002. echo "We did not find a runtime loader: Modules disabled."
  6003. modules=disabled
  6004. fi
  6005. fi
  6006. fi
  6007. enable_win32_dll=yes
  6008. case $host in
  6009. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6010. if test -n "$ac_tool_prefix"; then
  6011. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6012. set dummy ${ac_tool_prefix}as; ac_word=$2
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6014. $as_echo_n "checking for $ac_word... " >&6; }
  6015. if ${ac_cv_prog_AS+:} false; then :
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. if test -n "$AS"; then
  6019. ac_cv_prog_AS="$AS" # Let the user override the test.
  6020. else
  6021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6022. for as_dir in $PATH
  6023. do
  6024. IFS=$as_save_IFS
  6025. test -z "$as_dir" && as_dir=.
  6026. for ac_exec_ext in '' $ac_executable_extensions; do
  6027. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6028. ac_cv_prog_AS="${ac_tool_prefix}as"
  6029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6030. break 2
  6031. fi
  6032. done
  6033. done
  6034. IFS=$as_save_IFS
  6035. fi
  6036. fi
  6037. AS=$ac_cv_prog_AS
  6038. if test -n "$AS"; then
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6040. $as_echo "$AS" >&6; }
  6041. else
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6043. $as_echo "no" >&6; }
  6044. fi
  6045. fi
  6046. if test -z "$ac_cv_prog_AS"; then
  6047. ac_ct_AS=$AS
  6048. # Extract the first word of "as", so it can be a program name with args.
  6049. set dummy as; ac_word=$2
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6051. $as_echo_n "checking for $ac_word... " >&6; }
  6052. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6053. $as_echo_n "(cached) " >&6
  6054. else
  6055. if test -n "$ac_ct_AS"; then
  6056. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6057. else
  6058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6059. for as_dir in $PATH
  6060. do
  6061. IFS=$as_save_IFS
  6062. test -z "$as_dir" && as_dir=.
  6063. for ac_exec_ext in '' $ac_executable_extensions; do
  6064. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6065. ac_cv_prog_ac_ct_AS="as"
  6066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6067. break 2
  6068. fi
  6069. done
  6070. done
  6071. IFS=$as_save_IFS
  6072. fi
  6073. fi
  6074. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6075. if test -n "$ac_ct_AS"; then
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6077. $as_echo "$ac_ct_AS" >&6; }
  6078. else
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6080. $as_echo "no" >&6; }
  6081. fi
  6082. if test "x$ac_ct_AS" = x; then
  6083. AS="false"
  6084. else
  6085. case $cross_compiling:$ac_tool_warned in
  6086. yes:)
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6088. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6089. ac_tool_warned=yes ;;
  6090. esac
  6091. AS=$ac_ct_AS
  6092. fi
  6093. else
  6094. AS="$ac_cv_prog_AS"
  6095. fi
  6096. if test -n "$ac_tool_prefix"; then
  6097. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6098. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6100. $as_echo_n "checking for $ac_word... " >&6; }
  6101. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6102. $as_echo_n "(cached) " >&6
  6103. else
  6104. if test -n "$DLLTOOL"; then
  6105. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6106. else
  6107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6108. for as_dir in $PATH
  6109. do
  6110. IFS=$as_save_IFS
  6111. test -z "$as_dir" && as_dir=.
  6112. for ac_exec_ext in '' $ac_executable_extensions; do
  6113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6114. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6116. break 2
  6117. fi
  6118. done
  6119. done
  6120. IFS=$as_save_IFS
  6121. fi
  6122. fi
  6123. DLLTOOL=$ac_cv_prog_DLLTOOL
  6124. if test -n "$DLLTOOL"; then
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6126. $as_echo "$DLLTOOL" >&6; }
  6127. else
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6129. $as_echo "no" >&6; }
  6130. fi
  6131. fi
  6132. if test -z "$ac_cv_prog_DLLTOOL"; then
  6133. ac_ct_DLLTOOL=$DLLTOOL
  6134. # Extract the first word of "dlltool", so it can be a program name with args.
  6135. set dummy dlltool; ac_word=$2
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6137. $as_echo_n "checking for $ac_word... " >&6; }
  6138. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6139. $as_echo_n "(cached) " >&6
  6140. else
  6141. if test -n "$ac_ct_DLLTOOL"; then
  6142. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6143. else
  6144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6145. for as_dir in $PATH
  6146. do
  6147. IFS=$as_save_IFS
  6148. test -z "$as_dir" && as_dir=.
  6149. for ac_exec_ext in '' $ac_executable_extensions; do
  6150. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6151. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6153. break 2
  6154. fi
  6155. done
  6156. done
  6157. IFS=$as_save_IFS
  6158. fi
  6159. fi
  6160. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6161. if test -n "$ac_ct_DLLTOOL"; then
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6163. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6164. else
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6166. $as_echo "no" >&6; }
  6167. fi
  6168. if test "x$ac_ct_DLLTOOL" = x; then
  6169. DLLTOOL="false"
  6170. else
  6171. case $cross_compiling:$ac_tool_warned in
  6172. yes:)
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6174. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6175. ac_tool_warned=yes ;;
  6176. esac
  6177. DLLTOOL=$ac_ct_DLLTOOL
  6178. fi
  6179. else
  6180. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6181. fi
  6182. if test -n "$ac_tool_prefix"; then
  6183. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6184. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6186. $as_echo_n "checking for $ac_word... " >&6; }
  6187. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6188. $as_echo_n "(cached) " >&6
  6189. else
  6190. if test -n "$OBJDUMP"; then
  6191. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6192. else
  6193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6194. for as_dir in $PATH
  6195. do
  6196. IFS=$as_save_IFS
  6197. test -z "$as_dir" && as_dir=.
  6198. for ac_exec_ext in '' $ac_executable_extensions; do
  6199. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6200. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6202. break 2
  6203. fi
  6204. done
  6205. done
  6206. IFS=$as_save_IFS
  6207. fi
  6208. fi
  6209. OBJDUMP=$ac_cv_prog_OBJDUMP
  6210. if test -n "$OBJDUMP"; then
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6212. $as_echo "$OBJDUMP" >&6; }
  6213. else
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6215. $as_echo "no" >&6; }
  6216. fi
  6217. fi
  6218. if test -z "$ac_cv_prog_OBJDUMP"; then
  6219. ac_ct_OBJDUMP=$OBJDUMP
  6220. # Extract the first word of "objdump", so it can be a program name with args.
  6221. set dummy objdump; ac_word=$2
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6223. $as_echo_n "checking for $ac_word... " >&6; }
  6224. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6225. $as_echo_n "(cached) " >&6
  6226. else
  6227. if test -n "$ac_ct_OBJDUMP"; then
  6228. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6229. else
  6230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6231. for as_dir in $PATH
  6232. do
  6233. IFS=$as_save_IFS
  6234. test -z "$as_dir" && as_dir=.
  6235. for ac_exec_ext in '' $ac_executable_extensions; do
  6236. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6237. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6239. break 2
  6240. fi
  6241. done
  6242. done
  6243. IFS=$as_save_IFS
  6244. fi
  6245. fi
  6246. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6247. if test -n "$ac_ct_OBJDUMP"; then
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6249. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6250. else
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6252. $as_echo "no" >&6; }
  6253. fi
  6254. if test "x$ac_ct_OBJDUMP" = x; then
  6255. OBJDUMP="false"
  6256. else
  6257. case $cross_compiling:$ac_tool_warned in
  6258. yes:)
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6260. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6261. ac_tool_warned=yes ;;
  6262. esac
  6263. OBJDUMP=$ac_ct_OBJDUMP
  6264. fi
  6265. else
  6266. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6267. fi
  6268. ;;
  6269. esac
  6270. test -z "$AS" && AS=as
  6271. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6272. test -z "$OBJDUMP" && OBJDUMP=objdump
  6273. case `pwd` in
  6274. *\ * | *\ *)
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6276. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6277. esac
  6278. macro_version='2.4.6'
  6279. macro_revision='2.4.6'
  6280. ltmain=$ac_aux_dir/ltmain.sh
  6281. # Backslashify metacharacters that are still active within
  6282. # double-quoted strings.
  6283. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6284. # Same as above, but do not quote variable references.
  6285. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6286. # Sed substitution to delay expansion of an escaped shell variable in a
  6287. # double_quote_subst'ed string.
  6288. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6289. # Sed substitution to delay expansion of an escaped single quote.
  6290. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6291. # Sed substitution to avoid accidental globbing in evaled expressions
  6292. no_glob_subst='s/\*/\\\*/g'
  6293. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6294. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6295. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6297. $as_echo_n "checking how to print strings... " >&6; }
  6298. # Test print first, because it will be a builtin if present.
  6299. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  6300. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6301. ECHO='print -r --'
  6302. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6303. ECHO='printf %s\n'
  6304. else
  6305. # Use this function as a fallback that always works.
  6306. func_fallback_echo ()
  6307. {
  6308. eval 'cat <<_LTECHO_EOF
  6309. $1
  6310. _LTECHO_EOF'
  6311. }
  6312. ECHO='func_fallback_echo'
  6313. fi
  6314. # func_echo_all arg...
  6315. # Invoke $ECHO with all args, space-separated.
  6316. func_echo_all ()
  6317. {
  6318. $ECHO ""
  6319. }
  6320. case $ECHO in
  6321. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  6322. $as_echo "printf" >&6; } ;;
  6323. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  6324. $as_echo "print -r" >&6; } ;;
  6325. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  6326. $as_echo "cat" >&6; } ;;
  6327. esac
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6329. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6330. if ${ac_cv_path_SED+:} false; then :
  6331. $as_echo_n "(cached) " >&6
  6332. else
  6333. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6334. for ac_i in 1 2 3 4 5 6 7; do
  6335. ac_script="$ac_script$as_nl$ac_script"
  6336. done
  6337. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6338. { ac_script=; unset ac_script;}
  6339. if test -z "$SED"; then
  6340. ac_path_SED_found=false
  6341. # Loop through the user's path and test for each of PROGNAME-LIST
  6342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6343. for as_dir in $PATH
  6344. do
  6345. IFS=$as_save_IFS
  6346. test -z "$as_dir" && as_dir=.
  6347. for ac_prog in sed gsed; do
  6348. for ac_exec_ext in '' $ac_executable_extensions; do
  6349. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6350. as_fn_executable_p "$ac_path_SED" || continue
  6351. # Check for GNU ac_path_SED and select it if it is found.
  6352. # Check for GNU $ac_path_SED
  6353. case `"$ac_path_SED" --version 2>&1` in
  6354. *GNU*)
  6355. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6356. *)
  6357. ac_count=0
  6358. $as_echo_n 0123456789 >"conftest.in"
  6359. while :
  6360. do
  6361. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6362. mv "conftest.tmp" "conftest.in"
  6363. cp "conftest.in" "conftest.nl"
  6364. $as_echo '' >> "conftest.nl"
  6365. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6366. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6367. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6368. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6369. # Best one so far, save it but keep looking for a better one
  6370. ac_cv_path_SED="$ac_path_SED"
  6371. ac_path_SED_max=$ac_count
  6372. fi
  6373. # 10*(2^10) chars as input seems more than enough
  6374. test $ac_count -gt 10 && break
  6375. done
  6376. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6377. esac
  6378. $ac_path_SED_found && break 3
  6379. done
  6380. done
  6381. done
  6382. IFS=$as_save_IFS
  6383. if test -z "$ac_cv_path_SED"; then
  6384. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6385. fi
  6386. else
  6387. ac_cv_path_SED=$SED
  6388. fi
  6389. fi
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6391. $as_echo "$ac_cv_path_SED" >&6; }
  6392. SED="$ac_cv_path_SED"
  6393. rm -f conftest.sed
  6394. test -z "$SED" && SED=sed
  6395. Xsed="$SED -e 1s/^X//"
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  6397. $as_echo_n "checking for fgrep... " >&6; }
  6398. if ${ac_cv_path_FGREP+:} false; then :
  6399. $as_echo_n "(cached) " >&6
  6400. else
  6401. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6402. then ac_cv_path_FGREP="$GREP -F"
  6403. else
  6404. if test -z "$FGREP"; then
  6405. ac_path_FGREP_found=false
  6406. # Loop through the user's path and test for each of PROGNAME-LIST
  6407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6408. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6409. do
  6410. IFS=$as_save_IFS
  6411. test -z "$as_dir" && as_dir=.
  6412. for ac_prog in fgrep; do
  6413. for ac_exec_ext in '' $ac_executable_extensions; do
  6414. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  6415. as_fn_executable_p "$ac_path_FGREP" || continue
  6416. # Check for GNU ac_path_FGREP and select it if it is found.
  6417. # Check for GNU $ac_path_FGREP
  6418. case `"$ac_path_FGREP" --version 2>&1` in
  6419. *GNU*)
  6420. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6421. *)
  6422. ac_count=0
  6423. $as_echo_n 0123456789 >"conftest.in"
  6424. while :
  6425. do
  6426. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6427. mv "conftest.tmp" "conftest.in"
  6428. cp "conftest.in" "conftest.nl"
  6429. $as_echo 'FGREP' >> "conftest.nl"
  6430. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6431. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6432. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6433. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6434. # Best one so far, save it but keep looking for a better one
  6435. ac_cv_path_FGREP="$ac_path_FGREP"
  6436. ac_path_FGREP_max=$ac_count
  6437. fi
  6438. # 10*(2^10) chars as input seems more than enough
  6439. test $ac_count -gt 10 && break
  6440. done
  6441. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6442. esac
  6443. $ac_path_FGREP_found && break 3
  6444. done
  6445. done
  6446. done
  6447. IFS=$as_save_IFS
  6448. if test -z "$ac_cv_path_FGREP"; then
  6449. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6450. fi
  6451. else
  6452. ac_cv_path_FGREP=$FGREP
  6453. fi
  6454. fi
  6455. fi
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  6457. $as_echo "$ac_cv_path_FGREP" >&6; }
  6458. FGREP="$ac_cv_path_FGREP"
  6459. test -z "$GREP" && GREP=grep
  6460. # Check whether --with-gnu-ld was given.
  6461. if test "${with_gnu_ld+set}" = set; then :
  6462. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  6463. else
  6464. with_gnu_ld=no
  6465. fi
  6466. ac_prog=ld
  6467. if test yes = "$GCC"; then
  6468. # Check if gcc -print-prog-name=ld gives a path.
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  6470. $as_echo_n "checking for ld used by $CC... " >&6; }
  6471. case $host in
  6472. *-*-mingw*)
  6473. # gcc leaves a trailing carriage return, which upsets mingw
  6474. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6475. *)
  6476. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6477. esac
  6478. case $ac_prog in
  6479. # Accept absolute paths.
  6480. [\\/]* | ?:[\\/]*)
  6481. re_direlt='/[^/][^/]*/\.\./'
  6482. # Canonicalize the pathname of ld
  6483. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6484. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6485. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6486. done
  6487. test -z "$LD" && LD=$ac_prog
  6488. ;;
  6489. "")
  6490. # If it fails, then pretend we aren't using GCC.
  6491. ac_prog=ld
  6492. ;;
  6493. *)
  6494. # If it is relative, then search for the first ld in PATH.
  6495. with_gnu_ld=unknown
  6496. ;;
  6497. esac
  6498. elif test yes = "$with_gnu_ld"; then
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6500. $as_echo_n "checking for GNU ld... " >&6; }
  6501. else
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6503. $as_echo_n "checking for non-GNU ld... " >&6; }
  6504. fi
  6505. if ${lt_cv_path_LD+:} false; then :
  6506. $as_echo_n "(cached) " >&6
  6507. else
  6508. if test -z "$LD"; then
  6509. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6510. for ac_dir in $PATH; do
  6511. IFS=$lt_save_ifs
  6512. test -z "$ac_dir" && ac_dir=.
  6513. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6514. lt_cv_path_LD=$ac_dir/$ac_prog
  6515. # Check to see if the program is GNU ld. I'd rather use --version,
  6516. # but apparently some variants of GNU ld only accept -v.
  6517. # Break only if it was the GNU/non-GNU ld that we prefer.
  6518. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6519. *GNU* | *'with BFD'*)
  6520. test no != "$with_gnu_ld" && break
  6521. ;;
  6522. *)
  6523. test yes != "$with_gnu_ld" && break
  6524. ;;
  6525. esac
  6526. fi
  6527. done
  6528. IFS=$lt_save_ifs
  6529. else
  6530. lt_cv_path_LD=$LD # Let the user override the test with a path.
  6531. fi
  6532. fi
  6533. LD=$lt_cv_path_LD
  6534. if test -n "$LD"; then
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6536. $as_echo "$LD" >&6; }
  6537. else
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6539. $as_echo "no" >&6; }
  6540. fi
  6541. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6543. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6544. if ${lt_cv_prog_gnu_ld+:} false; then :
  6545. $as_echo_n "(cached) " >&6
  6546. else
  6547. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6548. case `$LD -v 2>&1 </dev/null` in
  6549. *GNU* | *'with BFD'*)
  6550. lt_cv_prog_gnu_ld=yes
  6551. ;;
  6552. *)
  6553. lt_cv_prog_gnu_ld=no
  6554. ;;
  6555. esac
  6556. fi
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6558. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6559. with_gnu_ld=$lt_cv_prog_gnu_ld
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6561. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6562. if ${lt_cv_path_NM+:} false; then :
  6563. $as_echo_n "(cached) " >&6
  6564. else
  6565. if test -n "$NM"; then
  6566. # Let the user override the test.
  6567. lt_cv_path_NM=$NM
  6568. else
  6569. lt_nm_to_check=${ac_tool_prefix}nm
  6570. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6571. lt_nm_to_check="$lt_nm_to_check nm"
  6572. fi
  6573. for lt_tmp_nm in $lt_nm_to_check; do
  6574. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6575. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6576. IFS=$lt_save_ifs
  6577. test -z "$ac_dir" && ac_dir=.
  6578. tmp_nm=$ac_dir/$lt_tmp_nm
  6579. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  6580. # Check to see if the nm accepts a BSD-compat flag.
  6581. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  6582. # nm: unknown option "B" ignored
  6583. # Tru64's nm complains that /dev/null is an invalid object file
  6584. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  6585. case $build_os in
  6586. mingw*) lt_bad_file=conftest.nm/nofile ;;
  6587. *) lt_bad_file=/dev/null ;;
  6588. esac
  6589. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  6590. *$lt_bad_file* | *'Invalid file or object type'*)
  6591. lt_cv_path_NM="$tmp_nm -B"
  6592. break 2
  6593. ;;
  6594. *)
  6595. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6596. */dev/null*)
  6597. lt_cv_path_NM="$tmp_nm -p"
  6598. break 2
  6599. ;;
  6600. *)
  6601. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6602. continue # so that we can try to find one that supports BSD flags
  6603. ;;
  6604. esac
  6605. ;;
  6606. esac
  6607. fi
  6608. done
  6609. IFS=$lt_save_ifs
  6610. done
  6611. : ${lt_cv_path_NM=no}
  6612. fi
  6613. fi
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6615. $as_echo "$lt_cv_path_NM" >&6; }
  6616. if test no != "$lt_cv_path_NM"; then
  6617. NM=$lt_cv_path_NM
  6618. else
  6619. # Didn't find any BSD compatible name lister, look for dumpbin.
  6620. if test -n "$DUMPBIN"; then :
  6621. # Let the user override the test.
  6622. else
  6623. if test -n "$ac_tool_prefix"; then
  6624. for ac_prog in dumpbin "link -dump"
  6625. do
  6626. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6627. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6629. $as_echo_n "checking for $ac_word... " >&6; }
  6630. if ${ac_cv_prog_DUMPBIN+:} false; then :
  6631. $as_echo_n "(cached) " >&6
  6632. else
  6633. if test -n "$DUMPBIN"; then
  6634. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6635. else
  6636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6637. for as_dir in $PATH
  6638. do
  6639. IFS=$as_save_IFS
  6640. test -z "$as_dir" && as_dir=.
  6641. for ac_exec_ext in '' $ac_executable_extensions; do
  6642. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6643. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6645. break 2
  6646. fi
  6647. done
  6648. done
  6649. IFS=$as_save_IFS
  6650. fi
  6651. fi
  6652. DUMPBIN=$ac_cv_prog_DUMPBIN
  6653. if test -n "$DUMPBIN"; then
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6655. $as_echo "$DUMPBIN" >&6; }
  6656. else
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6658. $as_echo "no" >&6; }
  6659. fi
  6660. test -n "$DUMPBIN" && break
  6661. done
  6662. fi
  6663. if test -z "$DUMPBIN"; then
  6664. ac_ct_DUMPBIN=$DUMPBIN
  6665. for ac_prog in dumpbin "link -dump"
  6666. do
  6667. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6668. set dummy $ac_prog; ac_word=$2
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6670. $as_echo_n "checking for $ac_word... " >&6; }
  6671. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  6672. $as_echo_n "(cached) " >&6
  6673. else
  6674. if test -n "$ac_ct_DUMPBIN"; then
  6675. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6676. else
  6677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6678. for as_dir in $PATH
  6679. do
  6680. IFS=$as_save_IFS
  6681. test -z "$as_dir" && as_dir=.
  6682. for ac_exec_ext in '' $ac_executable_extensions; do
  6683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6684. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6686. break 2
  6687. fi
  6688. done
  6689. done
  6690. IFS=$as_save_IFS
  6691. fi
  6692. fi
  6693. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6694. if test -n "$ac_ct_DUMPBIN"; then
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6696. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6697. else
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6699. $as_echo "no" >&6; }
  6700. fi
  6701. test -n "$ac_ct_DUMPBIN" && break
  6702. done
  6703. if test "x$ac_ct_DUMPBIN" = x; then
  6704. DUMPBIN=":"
  6705. else
  6706. case $cross_compiling:$ac_tool_warned in
  6707. yes:)
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6709. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6710. ac_tool_warned=yes ;;
  6711. esac
  6712. DUMPBIN=$ac_ct_DUMPBIN
  6713. fi
  6714. fi
  6715. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  6716. *COFF*)
  6717. DUMPBIN="$DUMPBIN -symbols -headers"
  6718. ;;
  6719. *)
  6720. DUMPBIN=:
  6721. ;;
  6722. esac
  6723. fi
  6724. if test : != "$DUMPBIN"; then
  6725. NM=$DUMPBIN
  6726. fi
  6727. fi
  6728. test -z "$NM" && NM=nm
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6730. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6731. if ${lt_cv_nm_interface+:} false; then :
  6732. $as_echo_n "(cached) " >&6
  6733. else
  6734. lt_cv_nm_interface="BSD nm"
  6735. echo "int some_variable = 0;" > conftest.$ac_ext
  6736. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6737. (eval "$ac_compile" 2>conftest.err)
  6738. cat conftest.err >&5
  6739. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6740. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6741. cat conftest.err >&5
  6742. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6743. cat conftest.out >&5
  6744. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6745. lt_cv_nm_interface="MS dumpbin"
  6746. fi
  6747. rm -f conftest*
  6748. fi
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6750. $as_echo "$lt_cv_nm_interface" >&6; }
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6752. $as_echo_n "checking whether ln -s works... " >&6; }
  6753. LN_S=$as_ln_s
  6754. if test "$LN_S" = "ln -s"; then
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6756. $as_echo "yes" >&6; }
  6757. else
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6759. $as_echo "no, using $LN_S" >&6; }
  6760. fi
  6761. # find the maximum length of command line arguments
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6763. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6764. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6765. $as_echo_n "(cached) " >&6
  6766. else
  6767. i=0
  6768. teststring=ABCD
  6769. case $build_os in
  6770. msdosdjgpp*)
  6771. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6772. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6773. # during glob expansion). Even if it were fixed, the result of this
  6774. # check would be larger than it should be.
  6775. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6776. ;;
  6777. gnu*)
  6778. # Under GNU Hurd, this test is not required because there is
  6779. # no limit to the length of command line arguments.
  6780. # Libtool will interpret -1 as no limit whatsoever
  6781. lt_cv_sys_max_cmd_len=-1;
  6782. ;;
  6783. cygwin* | mingw* | cegcc*)
  6784. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6785. # about 5 minutes as the teststring grows exponentially.
  6786. # Worse, since 9x/ME are not pre-emptively multitasking,
  6787. # you end up with a "frozen" computer, even though with patience
  6788. # the test eventually succeeds (with a max line length of 256k).
  6789. # Instead, let's just punt: use the minimum linelength reported by
  6790. # all of the supported platforms: 8192 (on NT/2K/XP).
  6791. lt_cv_sys_max_cmd_len=8192;
  6792. ;;
  6793. mint*)
  6794. # On MiNT this can take a long time and run out of memory.
  6795. lt_cv_sys_max_cmd_len=8192;
  6796. ;;
  6797. amigaos*)
  6798. # On AmigaOS with pdksh, this test takes hours, literally.
  6799. # So we just punt and use a minimum line length of 8192.
  6800. lt_cv_sys_max_cmd_len=8192;
  6801. ;;
  6802. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  6803. # This has been around since 386BSD, at least. Likely further.
  6804. if test -x /sbin/sysctl; then
  6805. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6806. elif test -x /usr/sbin/sysctl; then
  6807. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6808. else
  6809. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6810. fi
  6811. # And add a safety zone
  6812. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6813. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6814. ;;
  6815. interix*)
  6816. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6817. lt_cv_sys_max_cmd_len=196608
  6818. ;;
  6819. os2*)
  6820. # The test takes a long time on OS/2.
  6821. lt_cv_sys_max_cmd_len=8192
  6822. ;;
  6823. osf*)
  6824. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6825. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6826. # nice to cause kernel panics so lets avoid the loop below.
  6827. # First set a reasonable default.
  6828. lt_cv_sys_max_cmd_len=16384
  6829. #
  6830. if test -x /sbin/sysconfig; then
  6831. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6832. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6833. esac
  6834. fi
  6835. ;;
  6836. sco3.2v5*)
  6837. lt_cv_sys_max_cmd_len=102400
  6838. ;;
  6839. sysv5* | sco5v6* | sysv4.2uw2*)
  6840. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6841. if test -n "$kargmax"; then
  6842. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6843. else
  6844. lt_cv_sys_max_cmd_len=32768
  6845. fi
  6846. ;;
  6847. *)
  6848. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6849. if test -n "$lt_cv_sys_max_cmd_len" && \
  6850. test undefined != "$lt_cv_sys_max_cmd_len"; then
  6851. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6852. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6853. else
  6854. # Make teststring a little bigger before we do anything with it.
  6855. # a 1K string should be a reasonable start.
  6856. for i in 1 2 3 4 5 6 7 8; do
  6857. teststring=$teststring$teststring
  6858. done
  6859. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6860. # If test is not a shell built-in, we'll probably end up computing a
  6861. # maximum length that is only half of the actual maximum length, but
  6862. # we can't tell.
  6863. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  6864. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6865. test 17 != "$i" # 1/2 MB should be enough
  6866. do
  6867. i=`expr $i + 1`
  6868. teststring=$teststring$teststring
  6869. done
  6870. # Only check the string length outside the loop.
  6871. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6872. teststring=
  6873. # Add a significant safety factor because C++ compilers can tack on
  6874. # massive amounts of additional arguments before passing them to the
  6875. # linker. It appears as though 1/2 is a usable value.
  6876. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6877. fi
  6878. ;;
  6879. esac
  6880. fi
  6881. if test -n "$lt_cv_sys_max_cmd_len"; then
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6883. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6884. else
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6886. $as_echo "none" >&6; }
  6887. fi
  6888. max_cmd_len=$lt_cv_sys_max_cmd_len
  6889. : ${CP="cp -f"}
  6890. : ${MV="mv -f"}
  6891. : ${RM="rm -f"}
  6892. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6893. lt_unset=unset
  6894. else
  6895. lt_unset=false
  6896. fi
  6897. # test EBCDIC or ASCII
  6898. case `echo X|tr X '\101'` in
  6899. A) # ASCII based system
  6900. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6901. lt_SP2NL='tr \040 \012'
  6902. lt_NL2SP='tr \015\012 \040\040'
  6903. ;;
  6904. *) # EBCDIC based system
  6905. lt_SP2NL='tr \100 \n'
  6906. lt_NL2SP='tr \r\n \100\100'
  6907. ;;
  6908. esac
  6909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6910. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  6911. if ${lt_cv_to_host_file_cmd+:} false; then :
  6912. $as_echo_n "(cached) " >&6
  6913. else
  6914. case $host in
  6915. *-*-mingw* )
  6916. case $build in
  6917. *-*-mingw* ) # actually msys
  6918. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6919. ;;
  6920. *-*-cygwin* )
  6921. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6922. ;;
  6923. * ) # otherwise, assume *nix
  6924. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6925. ;;
  6926. esac
  6927. ;;
  6928. *-*-cygwin* )
  6929. case $build in
  6930. *-*-mingw* ) # actually msys
  6931. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6932. ;;
  6933. *-*-cygwin* )
  6934. lt_cv_to_host_file_cmd=func_convert_file_noop
  6935. ;;
  6936. * ) # otherwise, assume *nix
  6937. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6938. ;;
  6939. esac
  6940. ;;
  6941. * ) # unhandled hosts (and "normal" native builds)
  6942. lt_cv_to_host_file_cmd=func_convert_file_noop
  6943. ;;
  6944. esac
  6945. fi
  6946. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6948. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6950. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  6951. if ${lt_cv_to_tool_file_cmd+:} false; then :
  6952. $as_echo_n "(cached) " >&6
  6953. else
  6954. #assume ordinary cross tools, or native build.
  6955. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6956. case $host in
  6957. *-*-mingw* )
  6958. case $build in
  6959. *-*-mingw* ) # actually msys
  6960. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6961. ;;
  6962. esac
  6963. ;;
  6964. esac
  6965. fi
  6966. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6968. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  6969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6970. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6971. if ${lt_cv_ld_reload_flag+:} false; then :
  6972. $as_echo_n "(cached) " >&6
  6973. else
  6974. lt_cv_ld_reload_flag='-r'
  6975. fi
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6977. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6978. reload_flag=$lt_cv_ld_reload_flag
  6979. case $reload_flag in
  6980. "" | " "*) ;;
  6981. *) reload_flag=" $reload_flag" ;;
  6982. esac
  6983. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6984. case $host_os in
  6985. cygwin* | mingw* | pw32* | cegcc*)
  6986. if test yes != "$GCC"; then
  6987. reload_cmds=false
  6988. fi
  6989. ;;
  6990. darwin*)
  6991. if test yes = "$GCC"; then
  6992. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  6993. else
  6994. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6995. fi
  6996. ;;
  6997. esac
  6998. if test -n "$ac_tool_prefix"; then
  6999. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7000. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7002. $as_echo_n "checking for $ac_word... " >&6; }
  7003. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7004. $as_echo_n "(cached) " >&6
  7005. else
  7006. if test -n "$OBJDUMP"; then
  7007. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7008. else
  7009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7010. for as_dir in $PATH
  7011. do
  7012. IFS=$as_save_IFS
  7013. test -z "$as_dir" && as_dir=.
  7014. for ac_exec_ext in '' $ac_executable_extensions; do
  7015. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7016. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7018. break 2
  7019. fi
  7020. done
  7021. done
  7022. IFS=$as_save_IFS
  7023. fi
  7024. fi
  7025. OBJDUMP=$ac_cv_prog_OBJDUMP
  7026. if test -n "$OBJDUMP"; then
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7028. $as_echo "$OBJDUMP" >&6; }
  7029. else
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7031. $as_echo "no" >&6; }
  7032. fi
  7033. fi
  7034. if test -z "$ac_cv_prog_OBJDUMP"; then
  7035. ac_ct_OBJDUMP=$OBJDUMP
  7036. # Extract the first word of "objdump", so it can be a program name with args.
  7037. set dummy objdump; ac_word=$2
  7038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7039. $as_echo_n "checking for $ac_word... " >&6; }
  7040. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7041. $as_echo_n "(cached) " >&6
  7042. else
  7043. if test -n "$ac_ct_OBJDUMP"; then
  7044. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7045. else
  7046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7047. for as_dir in $PATH
  7048. do
  7049. IFS=$as_save_IFS
  7050. test -z "$as_dir" && as_dir=.
  7051. for ac_exec_ext in '' $ac_executable_extensions; do
  7052. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7053. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7055. break 2
  7056. fi
  7057. done
  7058. done
  7059. IFS=$as_save_IFS
  7060. fi
  7061. fi
  7062. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7063. if test -n "$ac_ct_OBJDUMP"; then
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7065. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7066. else
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7068. $as_echo "no" >&6; }
  7069. fi
  7070. if test "x$ac_ct_OBJDUMP" = x; then
  7071. OBJDUMP="false"
  7072. else
  7073. case $cross_compiling:$ac_tool_warned in
  7074. yes:)
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7076. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7077. ac_tool_warned=yes ;;
  7078. esac
  7079. OBJDUMP=$ac_ct_OBJDUMP
  7080. fi
  7081. else
  7082. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7083. fi
  7084. test -z "$OBJDUMP" && OBJDUMP=objdump
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7086. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7087. if ${lt_cv_deplibs_check_method+:} false; then :
  7088. $as_echo_n "(cached) " >&6
  7089. else
  7090. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7091. lt_cv_file_magic_test_file=
  7092. lt_cv_deplibs_check_method='unknown'
  7093. # Need to set the preceding variable on all platforms that support
  7094. # interlibrary dependencies.
  7095. # 'none' -- dependencies not supported.
  7096. # 'unknown' -- same as none, but documents that we really don't know.
  7097. # 'pass_all' -- all dependencies passed with no checks.
  7098. # 'test_compile' -- check by making test program.
  7099. # 'file_magic [[regex]]' -- check by looking for files in library path
  7100. # that responds to the $file_magic_cmd with a given extended regex.
  7101. # If you have 'file' or equivalent on your system and you're not sure
  7102. # whether 'pass_all' will *always* work, you probably want this one.
  7103. case $host_os in
  7104. aix[4-9]*)
  7105. lt_cv_deplibs_check_method=pass_all
  7106. ;;
  7107. beos*)
  7108. lt_cv_deplibs_check_method=pass_all
  7109. ;;
  7110. bsdi[45]*)
  7111. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7112. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7113. lt_cv_file_magic_test_file=/shlib/libc.so
  7114. ;;
  7115. cygwin*)
  7116. # func_win32_libid is a shell function defined in ltmain.sh
  7117. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7118. lt_cv_file_magic_cmd='func_win32_libid'
  7119. ;;
  7120. mingw* | pw32*)
  7121. # Base MSYS/MinGW do not provide the 'file' command needed by
  7122. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7123. # unless we find 'file', for example because we are cross-compiling.
  7124. if ( file / ) >/dev/null 2>&1; then
  7125. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7126. lt_cv_file_magic_cmd='func_win32_libid'
  7127. else
  7128. # Keep this pattern in sync with the one in func_win32_libid.
  7129. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7130. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7131. fi
  7132. ;;
  7133. cegcc*)
  7134. # use the weaker test based on 'objdump'. See mingw*.
  7135. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7136. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7137. ;;
  7138. darwin* | rhapsody*)
  7139. lt_cv_deplibs_check_method=pass_all
  7140. ;;
  7141. freebsd* | dragonfly*)
  7142. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7143. case $host_cpu in
  7144. i*86 )
  7145. # Not sure whether the presence of OpenBSD here was a mistake.
  7146. # Let's accept both of them until this is cleared up.
  7147. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7148. lt_cv_file_magic_cmd=/usr/bin/file
  7149. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7150. ;;
  7151. esac
  7152. else
  7153. lt_cv_deplibs_check_method=pass_all
  7154. fi
  7155. ;;
  7156. haiku*)
  7157. lt_cv_deplibs_check_method=pass_all
  7158. ;;
  7159. hpux10.20* | hpux11*)
  7160. lt_cv_file_magic_cmd=/usr/bin/file
  7161. case $host_cpu in
  7162. ia64*)
  7163. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7164. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7165. ;;
  7166. hppa*64*)
  7167. 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]'
  7168. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7169. ;;
  7170. *)
  7171. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7172. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7173. ;;
  7174. esac
  7175. ;;
  7176. interix[3-9]*)
  7177. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7178. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7179. ;;
  7180. irix5* | irix6* | nonstopux*)
  7181. case $LD in
  7182. *-32|*"-32 ") libmagic=32-bit;;
  7183. *-n32|*"-n32 ") libmagic=N32;;
  7184. *-64|*"-64 ") libmagic=64-bit;;
  7185. *) libmagic=never-match;;
  7186. esac
  7187. lt_cv_deplibs_check_method=pass_all
  7188. ;;
  7189. # This must be glibc/ELF.
  7190. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7191. lt_cv_deplibs_check_method=pass_all
  7192. ;;
  7193. netbsd*)
  7194. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7195. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7196. else
  7197. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7198. fi
  7199. ;;
  7200. newos6*)
  7201. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7202. lt_cv_file_magic_cmd=/usr/bin/file
  7203. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7204. ;;
  7205. *nto* | *qnx*)
  7206. lt_cv_deplibs_check_method=pass_all
  7207. ;;
  7208. openbsd* | bitrig*)
  7209. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  7210. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7211. else
  7212. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7213. fi
  7214. ;;
  7215. osf3* | osf4* | osf5*)
  7216. lt_cv_deplibs_check_method=pass_all
  7217. ;;
  7218. rdos*)
  7219. lt_cv_deplibs_check_method=pass_all
  7220. ;;
  7221. solaris*)
  7222. lt_cv_deplibs_check_method=pass_all
  7223. ;;
  7224. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7225. lt_cv_deplibs_check_method=pass_all
  7226. ;;
  7227. sysv4 | sysv4.3*)
  7228. case $host_vendor in
  7229. motorola)
  7230. 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]'
  7231. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7232. ;;
  7233. ncr)
  7234. lt_cv_deplibs_check_method=pass_all
  7235. ;;
  7236. sequent)
  7237. lt_cv_file_magic_cmd='/bin/file'
  7238. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7239. ;;
  7240. sni)
  7241. lt_cv_file_magic_cmd='/bin/file'
  7242. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7243. lt_cv_file_magic_test_file=/lib/libc.so
  7244. ;;
  7245. siemens)
  7246. lt_cv_deplibs_check_method=pass_all
  7247. ;;
  7248. pc)
  7249. lt_cv_deplibs_check_method=pass_all
  7250. ;;
  7251. esac
  7252. ;;
  7253. tpf*)
  7254. lt_cv_deplibs_check_method=pass_all
  7255. ;;
  7256. os2*)
  7257. lt_cv_deplibs_check_method=pass_all
  7258. ;;
  7259. esac
  7260. fi
  7261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7262. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7263. file_magic_glob=
  7264. want_nocaseglob=no
  7265. if test "$build" = "$host"; then
  7266. case $host_os in
  7267. mingw* | pw32*)
  7268. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7269. want_nocaseglob=yes
  7270. else
  7271. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7272. fi
  7273. ;;
  7274. esac
  7275. fi
  7276. file_magic_cmd=$lt_cv_file_magic_cmd
  7277. deplibs_check_method=$lt_cv_deplibs_check_method
  7278. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7279. if test -n "$ac_tool_prefix"; then
  7280. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7281. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7283. $as_echo_n "checking for $ac_word... " >&6; }
  7284. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7285. $as_echo_n "(cached) " >&6
  7286. else
  7287. if test -n "$DLLTOOL"; then
  7288. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7289. else
  7290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7291. for as_dir in $PATH
  7292. do
  7293. IFS=$as_save_IFS
  7294. test -z "$as_dir" && as_dir=.
  7295. for ac_exec_ext in '' $ac_executable_extensions; do
  7296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7297. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7299. break 2
  7300. fi
  7301. done
  7302. done
  7303. IFS=$as_save_IFS
  7304. fi
  7305. fi
  7306. DLLTOOL=$ac_cv_prog_DLLTOOL
  7307. if test -n "$DLLTOOL"; then
  7308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7309. $as_echo "$DLLTOOL" >&6; }
  7310. else
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7312. $as_echo "no" >&6; }
  7313. fi
  7314. fi
  7315. if test -z "$ac_cv_prog_DLLTOOL"; then
  7316. ac_ct_DLLTOOL=$DLLTOOL
  7317. # Extract the first word of "dlltool", so it can be a program name with args.
  7318. set dummy dlltool; ac_word=$2
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7320. $as_echo_n "checking for $ac_word... " >&6; }
  7321. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7322. $as_echo_n "(cached) " >&6
  7323. else
  7324. if test -n "$ac_ct_DLLTOOL"; then
  7325. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7326. else
  7327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7328. for as_dir in $PATH
  7329. do
  7330. IFS=$as_save_IFS
  7331. test -z "$as_dir" && as_dir=.
  7332. for ac_exec_ext in '' $ac_executable_extensions; do
  7333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7334. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7336. break 2
  7337. fi
  7338. done
  7339. done
  7340. IFS=$as_save_IFS
  7341. fi
  7342. fi
  7343. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7344. if test -n "$ac_ct_DLLTOOL"; then
  7345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7346. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7347. else
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7349. $as_echo "no" >&6; }
  7350. fi
  7351. if test "x$ac_ct_DLLTOOL" = x; then
  7352. DLLTOOL="false"
  7353. else
  7354. case $cross_compiling:$ac_tool_warned in
  7355. yes:)
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7357. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7358. ac_tool_warned=yes ;;
  7359. esac
  7360. DLLTOOL=$ac_ct_DLLTOOL
  7361. fi
  7362. else
  7363. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7364. fi
  7365. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7367. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  7368. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  7369. $as_echo_n "(cached) " >&6
  7370. else
  7371. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7372. case $host_os in
  7373. cygwin* | mingw* | pw32* | cegcc*)
  7374. # two different shell functions defined in ltmain.sh;
  7375. # decide which one to use based on capabilities of $DLLTOOL
  7376. case `$DLLTOOL --help 2>&1` in
  7377. *--identify-strict*)
  7378. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7379. ;;
  7380. *)
  7381. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7382. ;;
  7383. esac
  7384. ;;
  7385. *)
  7386. # fallback: assume linklib IS sharedlib
  7387. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  7388. ;;
  7389. esac
  7390. fi
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7392. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7393. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7394. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7395. if test -n "$ac_tool_prefix"; then
  7396. for ac_prog in ar
  7397. do
  7398. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7399. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7401. $as_echo_n "checking for $ac_word... " >&6; }
  7402. if ${ac_cv_prog_AR+:} false; then :
  7403. $as_echo_n "(cached) " >&6
  7404. else
  7405. if test -n "$AR"; then
  7406. ac_cv_prog_AR="$AR" # Let the user override the test.
  7407. else
  7408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7409. for as_dir in $PATH
  7410. do
  7411. IFS=$as_save_IFS
  7412. test -z "$as_dir" && as_dir=.
  7413. for ac_exec_ext in '' $ac_executable_extensions; do
  7414. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7415. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7417. break 2
  7418. fi
  7419. done
  7420. done
  7421. IFS=$as_save_IFS
  7422. fi
  7423. fi
  7424. AR=$ac_cv_prog_AR
  7425. if test -n "$AR"; then
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7427. $as_echo "$AR" >&6; }
  7428. else
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7430. $as_echo "no" >&6; }
  7431. fi
  7432. test -n "$AR" && break
  7433. done
  7434. fi
  7435. if test -z "$AR"; then
  7436. ac_ct_AR=$AR
  7437. for ac_prog in ar
  7438. do
  7439. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7440. set dummy $ac_prog; ac_word=$2
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7442. $as_echo_n "checking for $ac_word... " >&6; }
  7443. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  7444. $as_echo_n "(cached) " >&6
  7445. else
  7446. if test -n "$ac_ct_AR"; then
  7447. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7448. else
  7449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7450. for as_dir in $PATH
  7451. do
  7452. IFS=$as_save_IFS
  7453. test -z "$as_dir" && as_dir=.
  7454. for ac_exec_ext in '' $ac_executable_extensions; do
  7455. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7456. ac_cv_prog_ac_ct_AR="$ac_prog"
  7457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7458. break 2
  7459. fi
  7460. done
  7461. done
  7462. IFS=$as_save_IFS
  7463. fi
  7464. fi
  7465. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7466. if test -n "$ac_ct_AR"; then
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7468. $as_echo "$ac_ct_AR" >&6; }
  7469. else
  7470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7471. $as_echo "no" >&6; }
  7472. fi
  7473. test -n "$ac_ct_AR" && break
  7474. done
  7475. if test "x$ac_ct_AR" = x; then
  7476. AR="false"
  7477. else
  7478. case $cross_compiling:$ac_tool_warned in
  7479. yes:)
  7480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7481. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7482. ac_tool_warned=yes ;;
  7483. esac
  7484. AR=$ac_ct_AR
  7485. fi
  7486. fi
  7487. : ${AR=ar}
  7488. : ${AR_FLAGS=cru}
  7489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  7490. $as_echo_n "checking for archiver @FILE support... " >&6; }
  7491. if ${lt_cv_ar_at_file+:} false; then :
  7492. $as_echo_n "(cached) " >&6
  7493. else
  7494. lt_cv_ar_at_file=no
  7495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7496. /* end confdefs.h. */
  7497. int
  7498. main ()
  7499. {
  7500. ;
  7501. return 0;
  7502. }
  7503. _ACEOF
  7504. if ac_fn_c_try_compile "$LINENO"; then :
  7505. echo conftest.$ac_objext > conftest.lst
  7506. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  7507. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7508. (eval $lt_ar_try) 2>&5
  7509. ac_status=$?
  7510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7511. test $ac_status = 0; }
  7512. if test 0 -eq "$ac_status"; then
  7513. # Ensure the archiver fails upon bogus file names.
  7514. rm -f conftest.$ac_objext libconftest.a
  7515. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7516. (eval $lt_ar_try) 2>&5
  7517. ac_status=$?
  7518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7519. test $ac_status = 0; }
  7520. if test 0 -ne "$ac_status"; then
  7521. lt_cv_ar_at_file=@
  7522. fi
  7523. fi
  7524. rm -f conftest.* libconftest.a
  7525. fi
  7526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7527. fi
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  7529. $as_echo "$lt_cv_ar_at_file" >&6; }
  7530. if test no = "$lt_cv_ar_at_file"; then
  7531. archiver_list_spec=
  7532. else
  7533. archiver_list_spec=$lt_cv_ar_at_file
  7534. fi
  7535. if test -n "$ac_tool_prefix"; then
  7536. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7537. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7539. $as_echo_n "checking for $ac_word... " >&6; }
  7540. if ${ac_cv_prog_STRIP+:} false; then :
  7541. $as_echo_n "(cached) " >&6
  7542. else
  7543. if test -n "$STRIP"; then
  7544. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7545. else
  7546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7547. for as_dir in $PATH
  7548. do
  7549. IFS=$as_save_IFS
  7550. test -z "$as_dir" && as_dir=.
  7551. for ac_exec_ext in '' $ac_executable_extensions; do
  7552. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7553. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7554. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7555. break 2
  7556. fi
  7557. done
  7558. done
  7559. IFS=$as_save_IFS
  7560. fi
  7561. fi
  7562. STRIP=$ac_cv_prog_STRIP
  7563. if test -n "$STRIP"; then
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7565. $as_echo "$STRIP" >&6; }
  7566. else
  7567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7568. $as_echo "no" >&6; }
  7569. fi
  7570. fi
  7571. if test -z "$ac_cv_prog_STRIP"; then
  7572. ac_ct_STRIP=$STRIP
  7573. # Extract the first word of "strip", so it can be a program name with args.
  7574. set dummy strip; ac_word=$2
  7575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7576. $as_echo_n "checking for $ac_word... " >&6; }
  7577. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  7578. $as_echo_n "(cached) " >&6
  7579. else
  7580. if test -n "$ac_ct_STRIP"; then
  7581. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7582. else
  7583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7584. for as_dir in $PATH
  7585. do
  7586. IFS=$as_save_IFS
  7587. test -z "$as_dir" && as_dir=.
  7588. for ac_exec_ext in '' $ac_executable_extensions; do
  7589. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7590. ac_cv_prog_ac_ct_STRIP="strip"
  7591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7592. break 2
  7593. fi
  7594. done
  7595. done
  7596. IFS=$as_save_IFS
  7597. fi
  7598. fi
  7599. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7600. if test -n "$ac_ct_STRIP"; then
  7601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7602. $as_echo "$ac_ct_STRIP" >&6; }
  7603. else
  7604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7605. $as_echo "no" >&6; }
  7606. fi
  7607. if test "x$ac_ct_STRIP" = x; then
  7608. STRIP=":"
  7609. else
  7610. case $cross_compiling:$ac_tool_warned in
  7611. yes:)
  7612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7613. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7614. ac_tool_warned=yes ;;
  7615. esac
  7616. STRIP=$ac_ct_STRIP
  7617. fi
  7618. else
  7619. STRIP="$ac_cv_prog_STRIP"
  7620. fi
  7621. test -z "$STRIP" && STRIP=:
  7622. if test -n "$ac_tool_prefix"; then
  7623. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7624. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7626. $as_echo_n "checking for $ac_word... " >&6; }
  7627. if ${ac_cv_prog_RANLIB+:} false; then :
  7628. $as_echo_n "(cached) " >&6
  7629. else
  7630. if test -n "$RANLIB"; then
  7631. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7632. else
  7633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7634. for as_dir in $PATH
  7635. do
  7636. IFS=$as_save_IFS
  7637. test -z "$as_dir" && as_dir=.
  7638. for ac_exec_ext in '' $ac_executable_extensions; do
  7639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7640. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7642. break 2
  7643. fi
  7644. done
  7645. done
  7646. IFS=$as_save_IFS
  7647. fi
  7648. fi
  7649. RANLIB=$ac_cv_prog_RANLIB
  7650. if test -n "$RANLIB"; then
  7651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7652. $as_echo "$RANLIB" >&6; }
  7653. else
  7654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7655. $as_echo "no" >&6; }
  7656. fi
  7657. fi
  7658. if test -z "$ac_cv_prog_RANLIB"; then
  7659. ac_ct_RANLIB=$RANLIB
  7660. # Extract the first word of "ranlib", so it can be a program name with args.
  7661. set dummy ranlib; ac_word=$2
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7663. $as_echo_n "checking for $ac_word... " >&6; }
  7664. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7665. $as_echo_n "(cached) " >&6
  7666. else
  7667. if test -n "$ac_ct_RANLIB"; then
  7668. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7669. else
  7670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7671. for as_dir in $PATH
  7672. do
  7673. IFS=$as_save_IFS
  7674. test -z "$as_dir" && as_dir=.
  7675. for ac_exec_ext in '' $ac_executable_extensions; do
  7676. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7677. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7679. break 2
  7680. fi
  7681. done
  7682. done
  7683. IFS=$as_save_IFS
  7684. fi
  7685. fi
  7686. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7687. if test -n "$ac_ct_RANLIB"; then
  7688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7689. $as_echo "$ac_ct_RANLIB" >&6; }
  7690. else
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7692. $as_echo "no" >&6; }
  7693. fi
  7694. if test "x$ac_ct_RANLIB" = x; then
  7695. RANLIB=":"
  7696. else
  7697. case $cross_compiling:$ac_tool_warned in
  7698. yes:)
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7700. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7701. ac_tool_warned=yes ;;
  7702. esac
  7703. RANLIB=$ac_ct_RANLIB
  7704. fi
  7705. else
  7706. RANLIB="$ac_cv_prog_RANLIB"
  7707. fi
  7708. test -z "$RANLIB" && RANLIB=:
  7709. # Determine commands to create old-style static archives.
  7710. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7711. old_postinstall_cmds='chmod 644 $oldlib'
  7712. old_postuninstall_cmds=
  7713. if test -n "$RANLIB"; then
  7714. case $host_os in
  7715. bitrig* | openbsd*)
  7716. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7717. ;;
  7718. *)
  7719. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7720. ;;
  7721. esac
  7722. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7723. fi
  7724. case $host_os in
  7725. darwin*)
  7726. lock_old_archive_extraction=yes ;;
  7727. *)
  7728. lock_old_archive_extraction=no ;;
  7729. esac
  7730. # If no C compiler was specified, use CC.
  7731. LTCC=${LTCC-"$CC"}
  7732. # If no C compiler flags were specified, use CFLAGS.
  7733. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7734. # Allow CC to be a program name with arguments.
  7735. compiler=$CC
  7736. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7738. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7739. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  7740. $as_echo_n "(cached) " >&6
  7741. else
  7742. # These are sane defaults that work on at least a few old systems.
  7743. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7744. # Character class describing NM global symbol codes.
  7745. symcode='[BCDEGRST]'
  7746. # Regexp to match symbols that can be accessed directly from C.
  7747. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7748. # Define system-specific variables.
  7749. case $host_os in
  7750. aix*)
  7751. symcode='[BCDT]'
  7752. ;;
  7753. cygwin* | mingw* | pw32* | cegcc*)
  7754. symcode='[ABCDGISTW]'
  7755. ;;
  7756. hpux*)
  7757. if test ia64 = "$host_cpu"; then
  7758. symcode='[ABCDEGRST]'
  7759. fi
  7760. ;;
  7761. irix* | nonstopux*)
  7762. symcode='[BCDEGRST]'
  7763. ;;
  7764. osf*)
  7765. symcode='[BCDEGQRST]'
  7766. ;;
  7767. solaris*)
  7768. symcode='[BDRT]'
  7769. ;;
  7770. sco3.2v5*)
  7771. symcode='[DT]'
  7772. ;;
  7773. sysv4.2uw2*)
  7774. symcode='[DT]'
  7775. ;;
  7776. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7777. symcode='[ABDT]'
  7778. ;;
  7779. sysv4)
  7780. symcode='[DFNSTU]'
  7781. ;;
  7782. esac
  7783. # If we're using GNU nm, then use its standard symbol codes.
  7784. case `$NM -V 2>&1` in
  7785. *GNU* | *'with BFD'*)
  7786. symcode='[ABCDGIRSTW]' ;;
  7787. esac
  7788. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7789. # Gets list of data symbols to import.
  7790. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  7791. # Adjust the below global symbol transforms to fixup imported variables.
  7792. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  7793. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  7794. lt_c_name_lib_hook="\
  7795. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  7796. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  7797. else
  7798. # Disable hooks by default.
  7799. lt_cv_sys_global_symbol_to_import=
  7800. lt_cdecl_hook=
  7801. lt_c_name_hook=
  7802. lt_c_name_lib_hook=
  7803. fi
  7804. # Transform an extracted symbol line into a proper C declaration.
  7805. # Some systems (esp. on ia64) link data and code symbols differently,
  7806. # so use this general approach.
  7807. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  7808. $lt_cdecl_hook\
  7809. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  7810. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  7811. # Transform an extracted symbol line into symbol name and symbol address
  7812. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  7813. $lt_c_name_hook\
  7814. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7815. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  7816. # Transform an extracted symbol line into symbol name with lib prefix and
  7817. # symbol address.
  7818. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  7819. $lt_c_name_lib_hook\
  7820. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7821. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  7822. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  7823. # Handle CRLF in mingw tool chain
  7824. opt_cr=
  7825. case $build_os in
  7826. mingw*)
  7827. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7828. ;;
  7829. esac
  7830. # Try without a prefix underscore, then with it.
  7831. for ac_symprfx in "" "_"; do
  7832. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7833. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7834. # Write the raw and C identifiers.
  7835. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7836. # Fake it for dumpbin and say T for any non-static function,
  7837. # D for any global variable and I for any imported variable.
  7838. # Also find C++ and __fastcall symbols from MSVC++,
  7839. # which start with @ or ?.
  7840. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7841. " {last_section=section; section=\$ 3};"\
  7842. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7843. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7844. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  7845. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  7846. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  7847. " \$ 0!~/External *\|/{next};"\
  7848. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7849. " {if(hide[section]) next};"\
  7850. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  7851. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  7852. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  7853. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  7854. " ' prfx=^$ac_symprfx"
  7855. else
  7856. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7857. fi
  7858. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  7859. # Check to see that the pipe works correctly.
  7860. pipe_works=no
  7861. rm -f conftest*
  7862. cat > conftest.$ac_ext <<_LT_EOF
  7863. #ifdef __cplusplus
  7864. extern "C" {
  7865. #endif
  7866. char nm_test_var;
  7867. void nm_test_func(void);
  7868. void nm_test_func(void){}
  7869. #ifdef __cplusplus
  7870. }
  7871. #endif
  7872. int main(){nm_test_var='a';nm_test_func();return(0);}
  7873. _LT_EOF
  7874. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7875. (eval $ac_compile) 2>&5
  7876. ac_status=$?
  7877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7878. test $ac_status = 0; }; then
  7879. # Now try to grab the symbols.
  7880. nlist=conftest.nm
  7881. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7882. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7883. ac_status=$?
  7884. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7885. test $ac_status = 0; } && test -s "$nlist"; then
  7886. # Try sorting and uniquifying the output.
  7887. if sort "$nlist" | uniq > "$nlist"T; then
  7888. mv -f "$nlist"T "$nlist"
  7889. else
  7890. rm -f "$nlist"T
  7891. fi
  7892. # Make sure that we snagged all the symbols we need.
  7893. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7894. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7895. cat <<_LT_EOF > conftest.$ac_ext
  7896. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7897. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  7898. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  7899. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7900. # define LT_DLSYM_CONST
  7901. #elif defined __osf__
  7902. /* This system does not cope well with relocations in const data. */
  7903. # define LT_DLSYM_CONST
  7904. #else
  7905. # define LT_DLSYM_CONST const
  7906. #endif
  7907. #ifdef __cplusplus
  7908. extern "C" {
  7909. #endif
  7910. _LT_EOF
  7911. # Now generate the symbol file.
  7912. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7913. cat <<_LT_EOF >> conftest.$ac_ext
  7914. /* The mapping between symbol names and symbols. */
  7915. LT_DLSYM_CONST struct {
  7916. const char *name;
  7917. void *address;
  7918. }
  7919. lt__PROGRAM__LTX_preloaded_symbols[] =
  7920. {
  7921. { "@PROGRAM@", (void *) 0 },
  7922. _LT_EOF
  7923. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7924. cat <<\_LT_EOF >> conftest.$ac_ext
  7925. {0, (void *) 0}
  7926. };
  7927. /* This works around a problem in FreeBSD linker */
  7928. #ifdef FREEBSD_WORKAROUND
  7929. static const void *lt_preloaded_setup() {
  7930. return lt__PROGRAM__LTX_preloaded_symbols;
  7931. }
  7932. #endif
  7933. #ifdef __cplusplus
  7934. }
  7935. #endif
  7936. _LT_EOF
  7937. # Now try linking the two files.
  7938. mv conftest.$ac_objext conftstm.$ac_objext
  7939. lt_globsym_save_LIBS=$LIBS
  7940. lt_globsym_save_CFLAGS=$CFLAGS
  7941. LIBS=conftstm.$ac_objext
  7942. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7943. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7944. (eval $ac_link) 2>&5
  7945. ac_status=$?
  7946. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7947. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  7948. pipe_works=yes
  7949. fi
  7950. LIBS=$lt_globsym_save_LIBS
  7951. CFLAGS=$lt_globsym_save_CFLAGS
  7952. else
  7953. echo "cannot find nm_test_func in $nlist" >&5
  7954. fi
  7955. else
  7956. echo "cannot find nm_test_var in $nlist" >&5
  7957. fi
  7958. else
  7959. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7960. fi
  7961. else
  7962. echo "$progname: failed program was:" >&5
  7963. cat conftest.$ac_ext >&5
  7964. fi
  7965. rm -rf conftest* conftst*
  7966. # Do not use the global_symbol_pipe unless it works.
  7967. if test yes = "$pipe_works"; then
  7968. break
  7969. else
  7970. lt_cv_sys_global_symbol_pipe=
  7971. fi
  7972. done
  7973. fi
  7974. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7975. lt_cv_sys_global_symbol_to_cdecl=
  7976. fi
  7977. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7979. $as_echo "failed" >&6; }
  7980. else
  7981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7982. $as_echo "ok" >&6; }
  7983. fi
  7984. # Response file support.
  7985. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7986. nm_file_list_spec='@'
  7987. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7988. nm_file_list_spec='@'
  7989. fi
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7991. $as_echo_n "checking for sysroot... " >&6; }
  7992. # Check whether --with-sysroot was given.
  7993. if test "${with_sysroot+set}" = set; then :
  7994. withval=$with_sysroot;
  7995. else
  7996. with_sysroot=no
  7997. fi
  7998. lt_sysroot=
  7999. case $with_sysroot in #(
  8000. yes)
  8001. if test yes = "$GCC"; then
  8002. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  8003. fi
  8004. ;; #(
  8005. /*)
  8006. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  8007. ;; #(
  8008. no|'')
  8009. ;; #(
  8010. *)
  8011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  8012. $as_echo "$with_sysroot" >&6; }
  8013. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  8014. ;;
  8015. esac
  8016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  8017. $as_echo "${lt_sysroot:-no}" >&6; }
  8018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  8019. $as_echo_n "checking for a working dd... " >&6; }
  8020. if ${ac_cv_path_lt_DD+:} false; then :
  8021. $as_echo_n "(cached) " >&6
  8022. else
  8023. printf 0123456789abcdef0123456789abcdef >conftest.i
  8024. cat conftest.i conftest.i >conftest2.i
  8025. : ${lt_DD:=$DD}
  8026. if test -z "$lt_DD"; then
  8027. ac_path_lt_DD_found=false
  8028. # Loop through the user's path and test for each of PROGNAME-LIST
  8029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8030. for as_dir in $PATH
  8031. do
  8032. IFS=$as_save_IFS
  8033. test -z "$as_dir" && as_dir=.
  8034. for ac_prog in dd; do
  8035. for ac_exec_ext in '' $ac_executable_extensions; do
  8036. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  8037. as_fn_executable_p "$ac_path_lt_DD" || continue
  8038. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8039. cmp -s conftest.i conftest.out \
  8040. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  8041. fi
  8042. $ac_path_lt_DD_found && break 3
  8043. done
  8044. done
  8045. done
  8046. IFS=$as_save_IFS
  8047. if test -z "$ac_cv_path_lt_DD"; then
  8048. :
  8049. fi
  8050. else
  8051. ac_cv_path_lt_DD=$lt_DD
  8052. fi
  8053. rm -f conftest.i conftest2.i conftest.out
  8054. fi
  8055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  8056. $as_echo "$ac_cv_path_lt_DD" >&6; }
  8057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  8058. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  8059. if ${lt_cv_truncate_bin+:} false; then :
  8060. $as_echo_n "(cached) " >&6
  8061. else
  8062. printf 0123456789abcdef0123456789abcdef >conftest.i
  8063. cat conftest.i conftest.i >conftest2.i
  8064. lt_cv_truncate_bin=
  8065. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8066. cmp -s conftest.i conftest.out \
  8067. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  8068. fi
  8069. rm -f conftest.i conftest2.i conftest.out
  8070. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  8071. fi
  8072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  8073. $as_echo "$lt_cv_truncate_bin" >&6; }
  8074. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  8075. func_cc_basename ()
  8076. {
  8077. for cc_temp in $*""; do
  8078. case $cc_temp in
  8079. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8080. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8081. \-*) ;;
  8082. *) break;;
  8083. esac
  8084. done
  8085. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8086. }
  8087. # Check whether --enable-libtool-lock was given.
  8088. if test "${enable_libtool_lock+set}" = set; then :
  8089. enableval=$enable_libtool_lock;
  8090. fi
  8091. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  8092. # Some flags need to be propagated to the compiler or linker for good
  8093. # libtool support.
  8094. case $host in
  8095. ia64-*-hpux*)
  8096. # Find out what ABI is being produced by ac_compile, and set mode
  8097. # options accordingly.
  8098. echo 'int i;' > conftest.$ac_ext
  8099. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8100. (eval $ac_compile) 2>&5
  8101. ac_status=$?
  8102. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8103. test $ac_status = 0; }; then
  8104. case `/usr/bin/file conftest.$ac_objext` in
  8105. *ELF-32*)
  8106. HPUX_IA64_MODE=32
  8107. ;;
  8108. *ELF-64*)
  8109. HPUX_IA64_MODE=64
  8110. ;;
  8111. esac
  8112. fi
  8113. rm -rf conftest*
  8114. ;;
  8115. *-*-irix6*)
  8116. # Find out what ABI is being produced by ac_compile, and set linker
  8117. # options accordingly.
  8118. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8119. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8120. (eval $ac_compile) 2>&5
  8121. ac_status=$?
  8122. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8123. test $ac_status = 0; }; then
  8124. if test yes = "$lt_cv_prog_gnu_ld"; then
  8125. case `/usr/bin/file conftest.$ac_objext` in
  8126. *32-bit*)
  8127. LD="${LD-ld} -melf32bsmip"
  8128. ;;
  8129. *N32*)
  8130. LD="${LD-ld} -melf32bmipn32"
  8131. ;;
  8132. *64-bit*)
  8133. LD="${LD-ld} -melf64bmip"
  8134. ;;
  8135. esac
  8136. else
  8137. case `/usr/bin/file conftest.$ac_objext` in
  8138. *32-bit*)
  8139. LD="${LD-ld} -32"
  8140. ;;
  8141. *N32*)
  8142. LD="${LD-ld} -n32"
  8143. ;;
  8144. *64-bit*)
  8145. LD="${LD-ld} -64"
  8146. ;;
  8147. esac
  8148. fi
  8149. fi
  8150. rm -rf conftest*
  8151. ;;
  8152. mips64*-*linux*)
  8153. # Find out what ABI is being produced by ac_compile, and set linker
  8154. # options accordingly.
  8155. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8156. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8157. (eval $ac_compile) 2>&5
  8158. ac_status=$?
  8159. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8160. test $ac_status = 0; }; then
  8161. emul=elf
  8162. case `/usr/bin/file conftest.$ac_objext` in
  8163. *32-bit*)
  8164. emul="${emul}32"
  8165. ;;
  8166. *64-bit*)
  8167. emul="${emul}64"
  8168. ;;
  8169. esac
  8170. case `/usr/bin/file conftest.$ac_objext` in
  8171. *MSB*)
  8172. emul="${emul}btsmip"
  8173. ;;
  8174. *LSB*)
  8175. emul="${emul}ltsmip"
  8176. ;;
  8177. esac
  8178. case `/usr/bin/file conftest.$ac_objext` in
  8179. *N32*)
  8180. emul="${emul}n32"
  8181. ;;
  8182. esac
  8183. LD="${LD-ld} -m $emul"
  8184. fi
  8185. rm -rf conftest*
  8186. ;;
  8187. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  8188. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8189. # Find out what ABI is being produced by ac_compile, and set linker
  8190. # options accordingly. Note that the listed cases only cover the
  8191. # situations where additional linker options are needed (such as when
  8192. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  8193. # vice versa); the common cases where no linker options are needed do
  8194. # not appear in the list.
  8195. echo 'int i;' > conftest.$ac_ext
  8196. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8197. (eval $ac_compile) 2>&5
  8198. ac_status=$?
  8199. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8200. test $ac_status = 0; }; then
  8201. case `/usr/bin/file conftest.o` in
  8202. *32-bit*)
  8203. case $host in
  8204. x86_64-*kfreebsd*-gnu)
  8205. LD="${LD-ld} -m elf_i386_fbsd"
  8206. ;;
  8207. x86_64-*linux*)
  8208. case `/usr/bin/file conftest.o` in
  8209. *x86-64*)
  8210. LD="${LD-ld} -m elf32_x86_64"
  8211. ;;
  8212. *)
  8213. LD="${LD-ld} -m elf_i386"
  8214. ;;
  8215. esac
  8216. ;;
  8217. powerpc64le-*linux*)
  8218. LD="${LD-ld} -m elf32lppclinux"
  8219. ;;
  8220. powerpc64-*linux*)
  8221. LD="${LD-ld} -m elf32ppclinux"
  8222. ;;
  8223. s390x-*linux*)
  8224. LD="${LD-ld} -m elf_s390"
  8225. ;;
  8226. sparc64-*linux*)
  8227. LD="${LD-ld} -m elf32_sparc"
  8228. ;;
  8229. esac
  8230. ;;
  8231. *64-bit*)
  8232. case $host in
  8233. x86_64-*kfreebsd*-gnu)
  8234. LD="${LD-ld} -m elf_x86_64_fbsd"
  8235. ;;
  8236. x86_64-*linux*)
  8237. LD="${LD-ld} -m elf_x86_64"
  8238. ;;
  8239. powerpcle-*linux*)
  8240. LD="${LD-ld} -m elf64lppc"
  8241. ;;
  8242. powerpc-*linux*)
  8243. LD="${LD-ld} -m elf64ppc"
  8244. ;;
  8245. s390*-*linux*|s390*-*tpf*)
  8246. LD="${LD-ld} -m elf64_s390"
  8247. ;;
  8248. sparc*-*linux*)
  8249. LD="${LD-ld} -m elf64_sparc"
  8250. ;;
  8251. esac
  8252. ;;
  8253. esac
  8254. fi
  8255. rm -rf conftest*
  8256. ;;
  8257. *-*-sco3.2v5*)
  8258. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8259. SAVE_CFLAGS=$CFLAGS
  8260. CFLAGS="$CFLAGS -belf"
  8261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8262. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8263. if ${lt_cv_cc_needs_belf+:} false; then :
  8264. $as_echo_n "(cached) " >&6
  8265. else
  8266. ac_ext=c
  8267. ac_cpp='$CPP $CPPFLAGS'
  8268. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8269. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8270. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8272. /* end confdefs.h. */
  8273. int
  8274. main ()
  8275. {
  8276. ;
  8277. return 0;
  8278. }
  8279. _ACEOF
  8280. if ac_fn_c_try_link "$LINENO"; then :
  8281. lt_cv_cc_needs_belf=yes
  8282. else
  8283. lt_cv_cc_needs_belf=no
  8284. fi
  8285. rm -f core conftest.err conftest.$ac_objext \
  8286. conftest$ac_exeext conftest.$ac_ext
  8287. ac_ext=c
  8288. ac_cpp='$CPP $CPPFLAGS'
  8289. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8290. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8291. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8292. fi
  8293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8294. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8295. if test yes != "$lt_cv_cc_needs_belf"; then
  8296. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8297. CFLAGS=$SAVE_CFLAGS
  8298. fi
  8299. ;;
  8300. *-*solaris*)
  8301. # Find out what ABI is being produced by ac_compile, and set linker
  8302. # options accordingly.
  8303. echo 'int i;' > conftest.$ac_ext
  8304. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8305. (eval $ac_compile) 2>&5
  8306. ac_status=$?
  8307. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8308. test $ac_status = 0; }; then
  8309. case `/usr/bin/file conftest.o` in
  8310. *64-bit*)
  8311. case $lt_cv_prog_gnu_ld in
  8312. yes*)
  8313. case $host in
  8314. i?86-*-solaris*|x86_64-*-solaris*)
  8315. LD="${LD-ld} -m elf_x86_64"
  8316. ;;
  8317. sparc*-*-solaris*)
  8318. LD="${LD-ld} -m elf64_sparc"
  8319. ;;
  8320. esac
  8321. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8322. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8323. LD=${LD-ld}_sol2
  8324. fi
  8325. ;;
  8326. *)
  8327. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8328. LD="${LD-ld} -64"
  8329. fi
  8330. ;;
  8331. esac
  8332. ;;
  8333. esac
  8334. fi
  8335. rm -rf conftest*
  8336. ;;
  8337. esac
  8338. need_locks=$enable_libtool_lock
  8339. if test -n "$ac_tool_prefix"; then
  8340. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8341. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8343. $as_echo_n "checking for $ac_word... " >&6; }
  8344. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  8345. $as_echo_n "(cached) " >&6
  8346. else
  8347. if test -n "$MANIFEST_TOOL"; then
  8348. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8349. else
  8350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8351. for as_dir in $PATH
  8352. do
  8353. IFS=$as_save_IFS
  8354. test -z "$as_dir" && as_dir=.
  8355. for ac_exec_ext in '' $ac_executable_extensions; do
  8356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8357. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8359. break 2
  8360. fi
  8361. done
  8362. done
  8363. IFS=$as_save_IFS
  8364. fi
  8365. fi
  8366. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8367. if test -n "$MANIFEST_TOOL"; then
  8368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8369. $as_echo "$MANIFEST_TOOL" >&6; }
  8370. else
  8371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8372. $as_echo "no" >&6; }
  8373. fi
  8374. fi
  8375. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8376. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8377. # Extract the first word of "mt", so it can be a program name with args.
  8378. set dummy mt; ac_word=$2
  8379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8380. $as_echo_n "checking for $ac_word... " >&6; }
  8381. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  8382. $as_echo_n "(cached) " >&6
  8383. else
  8384. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8385. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8386. else
  8387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8388. for as_dir in $PATH
  8389. do
  8390. IFS=$as_save_IFS
  8391. test -z "$as_dir" && as_dir=.
  8392. for ac_exec_ext in '' $ac_executable_extensions; do
  8393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8394. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  8395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8396. break 2
  8397. fi
  8398. done
  8399. done
  8400. IFS=$as_save_IFS
  8401. fi
  8402. fi
  8403. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8404. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8406. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  8407. else
  8408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8409. $as_echo "no" >&6; }
  8410. fi
  8411. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8412. MANIFEST_TOOL=":"
  8413. else
  8414. case $cross_compiling:$ac_tool_warned in
  8415. yes:)
  8416. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8417. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8418. ac_tool_warned=yes ;;
  8419. esac
  8420. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8421. fi
  8422. else
  8423. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8424. fi
  8425. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8427. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8428. if ${lt_cv_path_mainfest_tool+:} false; then :
  8429. $as_echo_n "(cached) " >&6
  8430. else
  8431. lt_cv_path_mainfest_tool=no
  8432. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8433. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8434. cat conftest.err >&5
  8435. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8436. lt_cv_path_mainfest_tool=yes
  8437. fi
  8438. rm -f conftest*
  8439. fi
  8440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8441. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8442. if test yes != "$lt_cv_path_mainfest_tool"; then
  8443. MANIFEST_TOOL=:
  8444. fi
  8445. case $host_os in
  8446. rhapsody* | darwin*)
  8447. if test -n "$ac_tool_prefix"; then
  8448. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8449. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8451. $as_echo_n "checking for $ac_word... " >&6; }
  8452. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8453. $as_echo_n "(cached) " >&6
  8454. else
  8455. if test -n "$DSYMUTIL"; then
  8456. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8457. else
  8458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8459. for as_dir in $PATH
  8460. do
  8461. IFS=$as_save_IFS
  8462. test -z "$as_dir" && as_dir=.
  8463. for ac_exec_ext in '' $ac_executable_extensions; do
  8464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8465. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8467. break 2
  8468. fi
  8469. done
  8470. done
  8471. IFS=$as_save_IFS
  8472. fi
  8473. fi
  8474. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8475. if test -n "$DSYMUTIL"; then
  8476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8477. $as_echo "$DSYMUTIL" >&6; }
  8478. else
  8479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8480. $as_echo "no" >&6; }
  8481. fi
  8482. fi
  8483. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8484. ac_ct_DSYMUTIL=$DSYMUTIL
  8485. # Extract the first word of "dsymutil", so it can be a program name with args.
  8486. set dummy dsymutil; ac_word=$2
  8487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8488. $as_echo_n "checking for $ac_word... " >&6; }
  8489. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8490. $as_echo_n "(cached) " >&6
  8491. else
  8492. if test -n "$ac_ct_DSYMUTIL"; then
  8493. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8494. else
  8495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8496. for as_dir in $PATH
  8497. do
  8498. IFS=$as_save_IFS
  8499. test -z "$as_dir" && as_dir=.
  8500. for ac_exec_ext in '' $ac_executable_extensions; do
  8501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8502. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8504. break 2
  8505. fi
  8506. done
  8507. done
  8508. IFS=$as_save_IFS
  8509. fi
  8510. fi
  8511. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8512. if test -n "$ac_ct_DSYMUTIL"; then
  8513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8514. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8515. else
  8516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8517. $as_echo "no" >&6; }
  8518. fi
  8519. if test "x$ac_ct_DSYMUTIL" = x; then
  8520. DSYMUTIL=":"
  8521. else
  8522. case $cross_compiling:$ac_tool_warned in
  8523. yes:)
  8524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8525. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8526. ac_tool_warned=yes ;;
  8527. esac
  8528. DSYMUTIL=$ac_ct_DSYMUTIL
  8529. fi
  8530. else
  8531. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8532. fi
  8533. if test -n "$ac_tool_prefix"; then
  8534. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8535. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8537. $as_echo_n "checking for $ac_word... " >&6; }
  8538. if ${ac_cv_prog_NMEDIT+:} false; then :
  8539. $as_echo_n "(cached) " >&6
  8540. else
  8541. if test -n "$NMEDIT"; then
  8542. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8543. else
  8544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8545. for as_dir in $PATH
  8546. do
  8547. IFS=$as_save_IFS
  8548. test -z "$as_dir" && as_dir=.
  8549. for ac_exec_ext in '' $ac_executable_extensions; do
  8550. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8551. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8553. break 2
  8554. fi
  8555. done
  8556. done
  8557. IFS=$as_save_IFS
  8558. fi
  8559. fi
  8560. NMEDIT=$ac_cv_prog_NMEDIT
  8561. if test -n "$NMEDIT"; then
  8562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8563. $as_echo "$NMEDIT" >&6; }
  8564. else
  8565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8566. $as_echo "no" >&6; }
  8567. fi
  8568. fi
  8569. if test -z "$ac_cv_prog_NMEDIT"; then
  8570. ac_ct_NMEDIT=$NMEDIT
  8571. # Extract the first word of "nmedit", so it can be a program name with args.
  8572. set dummy nmedit; ac_word=$2
  8573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8574. $as_echo_n "checking for $ac_word... " >&6; }
  8575. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8576. $as_echo_n "(cached) " >&6
  8577. else
  8578. if test -n "$ac_ct_NMEDIT"; then
  8579. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8580. else
  8581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8582. for as_dir in $PATH
  8583. do
  8584. IFS=$as_save_IFS
  8585. test -z "$as_dir" && as_dir=.
  8586. for ac_exec_ext in '' $ac_executable_extensions; do
  8587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8588. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8590. break 2
  8591. fi
  8592. done
  8593. done
  8594. IFS=$as_save_IFS
  8595. fi
  8596. fi
  8597. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8598. if test -n "$ac_ct_NMEDIT"; then
  8599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8600. $as_echo "$ac_ct_NMEDIT" >&6; }
  8601. else
  8602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8603. $as_echo "no" >&6; }
  8604. fi
  8605. if test "x$ac_ct_NMEDIT" = x; then
  8606. NMEDIT=":"
  8607. else
  8608. case $cross_compiling:$ac_tool_warned in
  8609. yes:)
  8610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8611. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8612. ac_tool_warned=yes ;;
  8613. esac
  8614. NMEDIT=$ac_ct_NMEDIT
  8615. fi
  8616. else
  8617. NMEDIT="$ac_cv_prog_NMEDIT"
  8618. fi
  8619. if test -n "$ac_tool_prefix"; then
  8620. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8621. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8623. $as_echo_n "checking for $ac_word... " >&6; }
  8624. if ${ac_cv_prog_LIPO+:} false; then :
  8625. $as_echo_n "(cached) " >&6
  8626. else
  8627. if test -n "$LIPO"; then
  8628. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8629. else
  8630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8631. for as_dir in $PATH
  8632. do
  8633. IFS=$as_save_IFS
  8634. test -z "$as_dir" && as_dir=.
  8635. for ac_exec_ext in '' $ac_executable_extensions; do
  8636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8637. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8639. break 2
  8640. fi
  8641. done
  8642. done
  8643. IFS=$as_save_IFS
  8644. fi
  8645. fi
  8646. LIPO=$ac_cv_prog_LIPO
  8647. if test -n "$LIPO"; then
  8648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8649. $as_echo "$LIPO" >&6; }
  8650. else
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8652. $as_echo "no" >&6; }
  8653. fi
  8654. fi
  8655. if test -z "$ac_cv_prog_LIPO"; then
  8656. ac_ct_LIPO=$LIPO
  8657. # Extract the first word of "lipo", so it can be a program name with args.
  8658. set dummy lipo; ac_word=$2
  8659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8660. $as_echo_n "checking for $ac_word... " >&6; }
  8661. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  8662. $as_echo_n "(cached) " >&6
  8663. else
  8664. if test -n "$ac_ct_LIPO"; then
  8665. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8666. else
  8667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8668. for as_dir in $PATH
  8669. do
  8670. IFS=$as_save_IFS
  8671. test -z "$as_dir" && as_dir=.
  8672. for ac_exec_ext in '' $ac_executable_extensions; do
  8673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8674. ac_cv_prog_ac_ct_LIPO="lipo"
  8675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8676. break 2
  8677. fi
  8678. done
  8679. done
  8680. IFS=$as_save_IFS
  8681. fi
  8682. fi
  8683. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8684. if test -n "$ac_ct_LIPO"; then
  8685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8686. $as_echo "$ac_ct_LIPO" >&6; }
  8687. else
  8688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8689. $as_echo "no" >&6; }
  8690. fi
  8691. if test "x$ac_ct_LIPO" = x; then
  8692. LIPO=":"
  8693. else
  8694. case $cross_compiling:$ac_tool_warned in
  8695. yes:)
  8696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8697. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8698. ac_tool_warned=yes ;;
  8699. esac
  8700. LIPO=$ac_ct_LIPO
  8701. fi
  8702. else
  8703. LIPO="$ac_cv_prog_LIPO"
  8704. fi
  8705. if test -n "$ac_tool_prefix"; then
  8706. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8707. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8709. $as_echo_n "checking for $ac_word... " >&6; }
  8710. if ${ac_cv_prog_OTOOL+:} false; then :
  8711. $as_echo_n "(cached) " >&6
  8712. else
  8713. if test -n "$OTOOL"; then
  8714. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8715. else
  8716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8717. for as_dir in $PATH
  8718. do
  8719. IFS=$as_save_IFS
  8720. test -z "$as_dir" && as_dir=.
  8721. for ac_exec_ext in '' $ac_executable_extensions; do
  8722. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8723. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8725. break 2
  8726. fi
  8727. done
  8728. done
  8729. IFS=$as_save_IFS
  8730. fi
  8731. fi
  8732. OTOOL=$ac_cv_prog_OTOOL
  8733. if test -n "$OTOOL"; then
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8735. $as_echo "$OTOOL" >&6; }
  8736. else
  8737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8738. $as_echo "no" >&6; }
  8739. fi
  8740. fi
  8741. if test -z "$ac_cv_prog_OTOOL"; then
  8742. ac_ct_OTOOL=$OTOOL
  8743. # Extract the first word of "otool", so it can be a program name with args.
  8744. set dummy otool; ac_word=$2
  8745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8746. $as_echo_n "checking for $ac_word... " >&6; }
  8747. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  8748. $as_echo_n "(cached) " >&6
  8749. else
  8750. if test -n "$ac_ct_OTOOL"; then
  8751. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8752. else
  8753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8754. for as_dir in $PATH
  8755. do
  8756. IFS=$as_save_IFS
  8757. test -z "$as_dir" && as_dir=.
  8758. for ac_exec_ext in '' $ac_executable_extensions; do
  8759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8760. ac_cv_prog_ac_ct_OTOOL="otool"
  8761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8762. break 2
  8763. fi
  8764. done
  8765. done
  8766. IFS=$as_save_IFS
  8767. fi
  8768. fi
  8769. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8770. if test -n "$ac_ct_OTOOL"; then
  8771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8772. $as_echo "$ac_ct_OTOOL" >&6; }
  8773. else
  8774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8775. $as_echo "no" >&6; }
  8776. fi
  8777. if test "x$ac_ct_OTOOL" = x; then
  8778. OTOOL=":"
  8779. else
  8780. case $cross_compiling:$ac_tool_warned in
  8781. yes:)
  8782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8783. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8784. ac_tool_warned=yes ;;
  8785. esac
  8786. OTOOL=$ac_ct_OTOOL
  8787. fi
  8788. else
  8789. OTOOL="$ac_cv_prog_OTOOL"
  8790. fi
  8791. if test -n "$ac_tool_prefix"; then
  8792. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8793. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8795. $as_echo_n "checking for $ac_word... " >&6; }
  8796. if ${ac_cv_prog_OTOOL64+:} false; then :
  8797. $as_echo_n "(cached) " >&6
  8798. else
  8799. if test -n "$OTOOL64"; then
  8800. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8801. else
  8802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8803. for as_dir in $PATH
  8804. do
  8805. IFS=$as_save_IFS
  8806. test -z "$as_dir" && as_dir=.
  8807. for ac_exec_ext in '' $ac_executable_extensions; do
  8808. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8809. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8811. break 2
  8812. fi
  8813. done
  8814. done
  8815. IFS=$as_save_IFS
  8816. fi
  8817. fi
  8818. OTOOL64=$ac_cv_prog_OTOOL64
  8819. if test -n "$OTOOL64"; then
  8820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8821. $as_echo "$OTOOL64" >&6; }
  8822. else
  8823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8824. $as_echo "no" >&6; }
  8825. fi
  8826. fi
  8827. if test -z "$ac_cv_prog_OTOOL64"; then
  8828. ac_ct_OTOOL64=$OTOOL64
  8829. # Extract the first word of "otool64", so it can be a program name with args.
  8830. set dummy otool64; ac_word=$2
  8831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8832. $as_echo_n "checking for $ac_word... " >&6; }
  8833. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  8834. $as_echo_n "(cached) " >&6
  8835. else
  8836. if test -n "$ac_ct_OTOOL64"; then
  8837. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8838. else
  8839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8840. for as_dir in $PATH
  8841. do
  8842. IFS=$as_save_IFS
  8843. test -z "$as_dir" && as_dir=.
  8844. for ac_exec_ext in '' $ac_executable_extensions; do
  8845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8846. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8848. break 2
  8849. fi
  8850. done
  8851. done
  8852. IFS=$as_save_IFS
  8853. fi
  8854. fi
  8855. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8856. if test -n "$ac_ct_OTOOL64"; then
  8857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8858. $as_echo "$ac_ct_OTOOL64" >&6; }
  8859. else
  8860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8861. $as_echo "no" >&6; }
  8862. fi
  8863. if test "x$ac_ct_OTOOL64" = x; then
  8864. OTOOL64=":"
  8865. else
  8866. case $cross_compiling:$ac_tool_warned in
  8867. yes:)
  8868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8869. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8870. ac_tool_warned=yes ;;
  8871. esac
  8872. OTOOL64=$ac_ct_OTOOL64
  8873. fi
  8874. else
  8875. OTOOL64="$ac_cv_prog_OTOOL64"
  8876. fi
  8877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8878. $as_echo_n "checking for -single_module linker flag... " >&6; }
  8879. if ${lt_cv_apple_cc_single_mod+:} false; then :
  8880. $as_echo_n "(cached) " >&6
  8881. else
  8882. lt_cv_apple_cc_single_mod=no
  8883. if test -z "$LT_MULTI_MODULE"; then
  8884. # By default we will add the -single_module flag. You can override
  8885. # by either setting the environment variable LT_MULTI_MODULE
  8886. # non-empty at configure time, or by adding -multi_module to the
  8887. # link flags.
  8888. rm -rf libconftest.dylib*
  8889. echo "int foo(void){return 1;}" > conftest.c
  8890. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8891. -dynamiclib -Wl,-single_module conftest.c" >&5
  8892. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8893. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8894. _lt_result=$?
  8895. # If there is a non-empty error log, and "single_module"
  8896. # appears in it, assume the flag caused a linker warning
  8897. if test -s conftest.err && $GREP single_module conftest.err; then
  8898. cat conftest.err >&5
  8899. # Otherwise, if the output was created with a 0 exit code from
  8900. # the compiler, it worked.
  8901. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  8902. lt_cv_apple_cc_single_mod=yes
  8903. else
  8904. cat conftest.err >&5
  8905. fi
  8906. rm -rf libconftest.dylib*
  8907. rm -f conftest.*
  8908. fi
  8909. fi
  8910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8911. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8913. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8914. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  8915. $as_echo_n "(cached) " >&6
  8916. else
  8917. lt_cv_ld_exported_symbols_list=no
  8918. save_LDFLAGS=$LDFLAGS
  8919. echo "_main" > conftest.sym
  8920. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8922. /* end confdefs.h. */
  8923. int
  8924. main ()
  8925. {
  8926. ;
  8927. return 0;
  8928. }
  8929. _ACEOF
  8930. if ac_fn_c_try_link "$LINENO"; then :
  8931. lt_cv_ld_exported_symbols_list=yes
  8932. else
  8933. lt_cv_ld_exported_symbols_list=no
  8934. fi
  8935. rm -f core conftest.err conftest.$ac_objext \
  8936. conftest$ac_exeext conftest.$ac_ext
  8937. LDFLAGS=$save_LDFLAGS
  8938. fi
  8939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8940. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8942. $as_echo_n "checking for -force_load linker flag... " >&6; }
  8943. if ${lt_cv_ld_force_load+:} false; then :
  8944. $as_echo_n "(cached) " >&6
  8945. else
  8946. lt_cv_ld_force_load=no
  8947. cat > conftest.c << _LT_EOF
  8948. int forced_loaded() { return 2;}
  8949. _LT_EOF
  8950. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8951. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8952. echo "$AR cru libconftest.a conftest.o" >&5
  8953. $AR cru libconftest.a conftest.o 2>&5
  8954. echo "$RANLIB libconftest.a" >&5
  8955. $RANLIB libconftest.a 2>&5
  8956. cat > conftest.c << _LT_EOF
  8957. int main() { return 0;}
  8958. _LT_EOF
  8959. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8960. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8961. _lt_result=$?
  8962. if test -s conftest.err && $GREP force_load conftest.err; then
  8963. cat conftest.err >&5
  8964. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8965. lt_cv_ld_force_load=yes
  8966. else
  8967. cat conftest.err >&5
  8968. fi
  8969. rm -f conftest.err libconftest.a conftest conftest.c
  8970. rm -rf conftest.dSYM
  8971. fi
  8972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8973. $as_echo "$lt_cv_ld_force_load" >&6; }
  8974. case $host_os in
  8975. rhapsody* | darwin1.[012])
  8976. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8977. darwin1.*)
  8978. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8979. darwin*) # darwin 5.x on
  8980. # if running on 10.5 or later, the deployment target defaults
  8981. # to the OS version, if on x86, and 10.4, the deployment
  8982. # target defaults to 10.4. Don't you love it?
  8983. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8984. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  8985. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8986. 10.[012][,.]*)
  8987. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8988. 10.*)
  8989. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8990. esac
  8991. ;;
  8992. esac
  8993. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8994. _lt_dar_single_mod='$single_module'
  8995. fi
  8996. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8997. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8998. else
  8999. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  9000. fi
  9001. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  9002. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9003. else
  9004. _lt_dsymutil=
  9005. fi
  9006. ;;
  9007. esac
  9008. # func_munge_path_list VARIABLE PATH
  9009. # -----------------------------------
  9010. # VARIABLE is name of variable containing _space_ separated list of
  9011. # directories to be munged by the contents of PATH, which is string
  9012. # having a format:
  9013. # "DIR[:DIR]:"
  9014. # string "DIR[ DIR]" will be prepended to VARIABLE
  9015. # ":DIR[:DIR]"
  9016. # string "DIR[ DIR]" will be appended to VARIABLE
  9017. # "DIRP[:DIRP]::[DIRA:]DIRA"
  9018. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  9019. # "DIRA[ DIRA]" will be appended to VARIABLE
  9020. # "DIR[:DIR]"
  9021. # VARIABLE will be replaced by "DIR[ DIR]"
  9022. func_munge_path_list ()
  9023. {
  9024. case x$2 in
  9025. x)
  9026. ;;
  9027. *:)
  9028. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  9029. ;;
  9030. x:*)
  9031. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  9032. ;;
  9033. *::*)
  9034. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  9035. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  9036. ;;
  9037. *)
  9038. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  9039. ;;
  9040. esac
  9041. }
  9042. for ac_header in dlfcn.h
  9043. do :
  9044. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9045. "
  9046. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9047. cat >>confdefs.h <<_ACEOF
  9048. #define HAVE_DLFCN_H 1
  9049. _ACEOF
  9050. fi
  9051. done
  9052. # Set options
  9053. enable_dlopen=no
  9054. # Check whether --with-pic was given.
  9055. if test "${with_pic+set}" = set; then :
  9056. withval=$with_pic; lt_p=${PACKAGE-default}
  9057. case $withval in
  9058. yes|no) pic_mode=$withval ;;
  9059. *)
  9060. pic_mode=default
  9061. # Look at the argument we got. We use all the common list separators.
  9062. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9063. for lt_pkg in $withval; do
  9064. IFS=$lt_save_ifs
  9065. if test "X$lt_pkg" = "X$lt_p"; then
  9066. pic_mode=yes
  9067. fi
  9068. done
  9069. IFS=$lt_save_ifs
  9070. ;;
  9071. esac
  9072. else
  9073. pic_mode=default
  9074. fi
  9075. # Check whether --enable-fast-install was given.
  9076. if test "${enable_fast_install+set}" = set; then :
  9077. enableval=$enable_fast_install; p=${PACKAGE-default}
  9078. case $enableval in
  9079. yes) enable_fast_install=yes ;;
  9080. no) enable_fast_install=no ;;
  9081. *)
  9082. enable_fast_install=no
  9083. # Look at the argument we got. We use all the common list separators.
  9084. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9085. for pkg in $enableval; do
  9086. IFS=$lt_save_ifs
  9087. if test "X$pkg" = "X$p"; then
  9088. enable_fast_install=yes
  9089. fi
  9090. done
  9091. IFS=$lt_save_ifs
  9092. ;;
  9093. esac
  9094. else
  9095. enable_fast_install=yes
  9096. fi
  9097. shared_archive_member_spec=
  9098. case $host,$enable_shared in
  9099. power*-*-aix[5-9]*,yes)
  9100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  9101. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  9102. # Check whether --with-aix-soname was given.
  9103. if test "${with_aix_soname+set}" = set; then :
  9104. withval=$with_aix_soname; case $withval in
  9105. aix|svr4|both)
  9106. ;;
  9107. *)
  9108. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  9109. ;;
  9110. esac
  9111. lt_cv_with_aix_soname=$with_aix_soname
  9112. else
  9113. if ${lt_cv_with_aix_soname+:} false; then :
  9114. $as_echo_n "(cached) " >&6
  9115. else
  9116. lt_cv_with_aix_soname=aix
  9117. fi
  9118. with_aix_soname=$lt_cv_with_aix_soname
  9119. fi
  9120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  9121. $as_echo "$with_aix_soname" >&6; }
  9122. if test aix != "$with_aix_soname"; then
  9123. # For the AIX way of multilib, we name the shared archive member
  9124. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  9125. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  9126. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  9127. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  9128. if test 64 = "${OBJECT_MODE-32}"; then
  9129. shared_archive_member_spec=shr_64
  9130. else
  9131. shared_archive_member_spec=shr
  9132. fi
  9133. fi
  9134. ;;
  9135. *)
  9136. with_aix_soname=aix
  9137. ;;
  9138. esac
  9139. # This can be used to rebuild libtool when needed
  9140. LIBTOOL_DEPS=$ltmain
  9141. # Always use our own libtool.
  9142. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9143. test -z "$LN_S" && LN_S="ln -s"
  9144. if test -n "${ZSH_VERSION+set}"; then
  9145. setopt NO_GLOB_SUBST
  9146. fi
  9147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9148. $as_echo_n "checking for objdir... " >&6; }
  9149. if ${lt_cv_objdir+:} false; then :
  9150. $as_echo_n "(cached) " >&6
  9151. else
  9152. rm -f .libs 2>/dev/null
  9153. mkdir .libs 2>/dev/null
  9154. if test -d .libs; then
  9155. lt_cv_objdir=.libs
  9156. else
  9157. # MS-DOS does not allow filenames that begin with a dot.
  9158. lt_cv_objdir=_libs
  9159. fi
  9160. rmdir .libs 2>/dev/null
  9161. fi
  9162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9163. $as_echo "$lt_cv_objdir" >&6; }
  9164. objdir=$lt_cv_objdir
  9165. cat >>confdefs.h <<_ACEOF
  9166. #define LT_OBJDIR "$lt_cv_objdir/"
  9167. _ACEOF
  9168. case $host_os in
  9169. aix3*)
  9170. # AIX sometimes has problems with the GCC collect2 program. For some
  9171. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9172. # vanish in a puff of smoke.
  9173. if test set != "${COLLECT_NAMES+set}"; then
  9174. COLLECT_NAMES=
  9175. export COLLECT_NAMES
  9176. fi
  9177. ;;
  9178. esac
  9179. # Global variables:
  9180. ofile=libtool
  9181. can_build_shared=yes
  9182. # All known linkers require a '.a' archive for static linking (except MSVC,
  9183. # which needs '.lib').
  9184. libext=a
  9185. with_gnu_ld=$lt_cv_prog_gnu_ld
  9186. old_CC=$CC
  9187. old_CFLAGS=$CFLAGS
  9188. # Set sane defaults for various variables
  9189. test -z "$CC" && CC=cc
  9190. test -z "$LTCC" && LTCC=$CC
  9191. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9192. test -z "$LD" && LD=ld
  9193. test -z "$ac_objext" && ac_objext=o
  9194. func_cc_basename $compiler
  9195. cc_basename=$func_cc_basename_result
  9196. # Only perform the check for file, if the check method requires it
  9197. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9198. case $deplibs_check_method in
  9199. file_magic*)
  9200. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9202. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9203. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9204. $as_echo_n "(cached) " >&6
  9205. else
  9206. case $MAGIC_CMD in
  9207. [\\/*] | ?:[\\/]*)
  9208. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9209. ;;
  9210. *)
  9211. lt_save_MAGIC_CMD=$MAGIC_CMD
  9212. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9213. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9214. for ac_dir in $ac_dummy; do
  9215. IFS=$lt_save_ifs
  9216. test -z "$ac_dir" && ac_dir=.
  9217. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  9218. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  9219. if test -n "$file_magic_test_file"; then
  9220. case $deplibs_check_method in
  9221. "file_magic "*)
  9222. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9223. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9224. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9225. $EGREP "$file_magic_regex" > /dev/null; then
  9226. :
  9227. else
  9228. cat <<_LT_EOF 1>&2
  9229. *** Warning: the command libtool uses to detect shared libraries,
  9230. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9231. *** The result is that libtool may fail to recognize shared libraries
  9232. *** as such. This will affect the creation of libtool libraries that
  9233. *** depend on shared libraries, but programs linked with such libtool
  9234. *** libraries will work regardless of this problem. Nevertheless, you
  9235. *** may want to report the problem to your system manager and/or to
  9236. *** [email protected]
  9237. _LT_EOF
  9238. fi ;;
  9239. esac
  9240. fi
  9241. break
  9242. fi
  9243. done
  9244. IFS=$lt_save_ifs
  9245. MAGIC_CMD=$lt_save_MAGIC_CMD
  9246. ;;
  9247. esac
  9248. fi
  9249. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9250. if test -n "$MAGIC_CMD"; then
  9251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9252. $as_echo "$MAGIC_CMD" >&6; }
  9253. else
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9255. $as_echo "no" >&6; }
  9256. fi
  9257. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9258. if test -n "$ac_tool_prefix"; then
  9259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9260. $as_echo_n "checking for file... " >&6; }
  9261. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9262. $as_echo_n "(cached) " >&6
  9263. else
  9264. case $MAGIC_CMD in
  9265. [\\/*] | ?:[\\/]*)
  9266. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9267. ;;
  9268. *)
  9269. lt_save_MAGIC_CMD=$MAGIC_CMD
  9270. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9271. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9272. for ac_dir in $ac_dummy; do
  9273. IFS=$lt_save_ifs
  9274. test -z "$ac_dir" && ac_dir=.
  9275. if test -f "$ac_dir/file"; then
  9276. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  9277. if test -n "$file_magic_test_file"; then
  9278. case $deplibs_check_method in
  9279. "file_magic "*)
  9280. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9281. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9282. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9283. $EGREP "$file_magic_regex" > /dev/null; then
  9284. :
  9285. else
  9286. cat <<_LT_EOF 1>&2
  9287. *** Warning: the command libtool uses to detect shared libraries,
  9288. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9289. *** The result is that libtool may fail to recognize shared libraries
  9290. *** as such. This will affect the creation of libtool libraries that
  9291. *** depend on shared libraries, but programs linked with such libtool
  9292. *** libraries will work regardless of this problem. Nevertheless, you
  9293. *** may want to report the problem to your system manager and/or to
  9294. *** [email protected]
  9295. _LT_EOF
  9296. fi ;;
  9297. esac
  9298. fi
  9299. break
  9300. fi
  9301. done
  9302. IFS=$lt_save_ifs
  9303. MAGIC_CMD=$lt_save_MAGIC_CMD
  9304. ;;
  9305. esac
  9306. fi
  9307. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9308. if test -n "$MAGIC_CMD"; then
  9309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9310. $as_echo "$MAGIC_CMD" >&6; }
  9311. else
  9312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9313. $as_echo "no" >&6; }
  9314. fi
  9315. else
  9316. MAGIC_CMD=:
  9317. fi
  9318. fi
  9319. fi
  9320. ;;
  9321. esac
  9322. # Use C for the default configuration in the libtool script
  9323. lt_save_CC=$CC
  9324. ac_ext=c
  9325. ac_cpp='$CPP $CPPFLAGS'
  9326. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9327. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9328. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9329. # Source file extension for C test sources.
  9330. ac_ext=c
  9331. # Object file extension for compiled C test sources.
  9332. objext=o
  9333. objext=$objext
  9334. # Code to be used in simple compile tests
  9335. lt_simple_compile_test_code="int some_variable = 0;"
  9336. # Code to be used in simple link tests
  9337. lt_simple_link_test_code='int main(){return(0);}'
  9338. # If no C compiler was specified, use CC.
  9339. LTCC=${LTCC-"$CC"}
  9340. # If no C compiler flags were specified, use CFLAGS.
  9341. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9342. # Allow CC to be a program name with arguments.
  9343. compiler=$CC
  9344. # Save the default compiler, since it gets overwritten when the other
  9345. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9346. compiler_DEFAULT=$CC
  9347. # save warnings/boilerplate of simple test code
  9348. ac_outfile=conftest.$ac_objext
  9349. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9350. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9351. _lt_compiler_boilerplate=`cat conftest.err`
  9352. $RM conftest*
  9353. ac_outfile=conftest.$ac_objext
  9354. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9355. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9356. _lt_linker_boilerplate=`cat conftest.err`
  9357. $RM -r conftest*
  9358. ## CAVEAT EMPTOR:
  9359. ## There is no encapsulation within the following macros, do not change
  9360. ## the running order or otherwise move them around unless you know exactly
  9361. ## what you are doing...
  9362. if test -n "$compiler"; then
  9363. lt_prog_compiler_no_builtin_flag=
  9364. if test yes = "$GCC"; then
  9365. case $cc_basename in
  9366. nvcc*)
  9367. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  9368. *)
  9369. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  9370. esac
  9371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9372. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9373. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  9374. $as_echo_n "(cached) " >&6
  9375. else
  9376. lt_cv_prog_compiler_rtti_exceptions=no
  9377. ac_outfile=conftest.$ac_objext
  9378. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9379. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  9380. # Insert the option either (1) after the last *FLAGS variable, or
  9381. # (2) before a word containing "conftest.", or (3) at the end.
  9382. # Note that $ac_compile itself does not contain backslashes and begins
  9383. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9384. # The option is referenced via a variable to avoid confusing sed.
  9385. lt_compile=`echo "$ac_compile" | $SED \
  9386. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9387. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9388. -e 's:$: $lt_compiler_flag:'`
  9389. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9390. (eval "$lt_compile" 2>conftest.err)
  9391. ac_status=$?
  9392. cat conftest.err >&5
  9393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9394. if (exit $ac_status) && test -s "$ac_outfile"; then
  9395. # The compiler can only warn and ignore the option if not recognized
  9396. # So say no if there are warnings other than the usual output.
  9397. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9398. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9399. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9400. lt_cv_prog_compiler_rtti_exceptions=yes
  9401. fi
  9402. fi
  9403. $RM conftest*
  9404. fi
  9405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9406. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9407. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  9408. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9409. else
  9410. :
  9411. fi
  9412. fi
  9413. lt_prog_compiler_wl=
  9414. lt_prog_compiler_pic=
  9415. lt_prog_compiler_static=
  9416. if test yes = "$GCC"; then
  9417. lt_prog_compiler_wl='-Wl,'
  9418. lt_prog_compiler_static='-static'
  9419. case $host_os in
  9420. aix*)
  9421. # All AIX code is PIC.
  9422. if test ia64 = "$host_cpu"; then
  9423. # AIX 5 now supports IA64 processor
  9424. lt_prog_compiler_static='-Bstatic'
  9425. fi
  9426. lt_prog_compiler_pic='-fPIC'
  9427. ;;
  9428. amigaos*)
  9429. case $host_cpu in
  9430. powerpc)
  9431. # see comment about AmigaOS4 .so support
  9432. lt_prog_compiler_pic='-fPIC'
  9433. ;;
  9434. m68k)
  9435. # FIXME: we need at least 68020 code to build shared libraries, but
  9436. # adding the '-m68020' flag to GCC prevents building anything better,
  9437. # like '-m68040'.
  9438. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9439. ;;
  9440. esac
  9441. ;;
  9442. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9443. # PIC is the default for these OSes.
  9444. ;;
  9445. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9446. # This hack is so that the source file can tell whether it is being
  9447. # built for inclusion in a dll (and should export symbols for example).
  9448. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9449. # (--disable-auto-import) libraries
  9450. lt_prog_compiler_pic='-DDLL_EXPORT'
  9451. case $host_os in
  9452. os2*)
  9453. lt_prog_compiler_static='$wl-static'
  9454. ;;
  9455. esac
  9456. ;;
  9457. darwin* | rhapsody*)
  9458. # PIC is the default on this platform
  9459. # Common symbols not allowed in MH_DYLIB files
  9460. lt_prog_compiler_pic='-fno-common'
  9461. ;;
  9462. haiku*)
  9463. # PIC is the default for Haiku.
  9464. # The "-static" flag exists, but is broken.
  9465. lt_prog_compiler_static=
  9466. ;;
  9467. hpux*)
  9468. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9469. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9470. # sets the default TLS model and affects inlining.
  9471. case $host_cpu in
  9472. hppa*64*)
  9473. # +Z the default
  9474. ;;
  9475. *)
  9476. lt_prog_compiler_pic='-fPIC'
  9477. ;;
  9478. esac
  9479. ;;
  9480. interix[3-9]*)
  9481. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9482. # Instead, we relocate shared libraries at runtime.
  9483. ;;
  9484. msdosdjgpp*)
  9485. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9486. # on systems that don't support them.
  9487. lt_prog_compiler_can_build_shared=no
  9488. enable_shared=no
  9489. ;;
  9490. *nto* | *qnx*)
  9491. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9492. # it will coredump.
  9493. lt_prog_compiler_pic='-fPIC -shared'
  9494. ;;
  9495. sysv4*MP*)
  9496. if test -d /usr/nec; then
  9497. lt_prog_compiler_pic=-Kconform_pic
  9498. fi
  9499. ;;
  9500. *)
  9501. lt_prog_compiler_pic='-fPIC'
  9502. ;;
  9503. esac
  9504. case $cc_basename in
  9505. nvcc*) # Cuda Compiler Driver 2.2
  9506. lt_prog_compiler_wl='-Xlinker '
  9507. if test -n "$lt_prog_compiler_pic"; then
  9508. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  9509. fi
  9510. ;;
  9511. esac
  9512. else
  9513. # PORTME Check for flag to pass linker flags through the system compiler.
  9514. case $host_os in
  9515. aix*)
  9516. lt_prog_compiler_wl='-Wl,'
  9517. if test ia64 = "$host_cpu"; then
  9518. # AIX 5 now supports IA64 processor
  9519. lt_prog_compiler_static='-Bstatic'
  9520. else
  9521. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9522. fi
  9523. ;;
  9524. darwin* | rhapsody*)
  9525. # PIC is the default on this platform
  9526. # Common symbols not allowed in MH_DYLIB files
  9527. lt_prog_compiler_pic='-fno-common'
  9528. case $cc_basename in
  9529. nagfor*)
  9530. # NAG Fortran compiler
  9531. lt_prog_compiler_wl='-Wl,-Wl,,'
  9532. lt_prog_compiler_pic='-PIC'
  9533. lt_prog_compiler_static='-Bstatic'
  9534. ;;
  9535. esac
  9536. ;;
  9537. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9538. # This hack is so that the source file can tell whether it is being
  9539. # built for inclusion in a dll (and should export symbols for example).
  9540. lt_prog_compiler_pic='-DDLL_EXPORT'
  9541. case $host_os in
  9542. os2*)
  9543. lt_prog_compiler_static='$wl-static'
  9544. ;;
  9545. esac
  9546. ;;
  9547. hpux9* | hpux10* | hpux11*)
  9548. lt_prog_compiler_wl='-Wl,'
  9549. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9550. # not for PA HP-UX.
  9551. case $host_cpu in
  9552. hppa*64*|ia64*)
  9553. # +Z the default
  9554. ;;
  9555. *)
  9556. lt_prog_compiler_pic='+Z'
  9557. ;;
  9558. esac
  9559. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9560. lt_prog_compiler_static='$wl-a ${wl}archive'
  9561. ;;
  9562. irix5* | irix6* | nonstopux*)
  9563. lt_prog_compiler_wl='-Wl,'
  9564. # PIC (with -KPIC) is the default.
  9565. lt_prog_compiler_static='-non_shared'
  9566. ;;
  9567. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9568. case $cc_basename in
  9569. # old Intel for x86_64, which still supported -KPIC.
  9570. ecc*)
  9571. lt_prog_compiler_wl='-Wl,'
  9572. lt_prog_compiler_pic='-KPIC'
  9573. lt_prog_compiler_static='-static'
  9574. ;;
  9575. # icc used to be incompatible with GCC.
  9576. # ICC 10 doesn't accept -KPIC any more.
  9577. icc* | ifort*)
  9578. lt_prog_compiler_wl='-Wl,'
  9579. lt_prog_compiler_pic='-fPIC'
  9580. lt_prog_compiler_static='-static'
  9581. ;;
  9582. # Lahey Fortran 8.1.
  9583. lf95*)
  9584. lt_prog_compiler_wl='-Wl,'
  9585. lt_prog_compiler_pic='--shared'
  9586. lt_prog_compiler_static='--static'
  9587. ;;
  9588. nagfor*)
  9589. # NAG Fortran compiler
  9590. lt_prog_compiler_wl='-Wl,-Wl,,'
  9591. lt_prog_compiler_pic='-PIC'
  9592. lt_prog_compiler_static='-Bstatic'
  9593. ;;
  9594. tcc*)
  9595. # Fabrice Bellard et al's Tiny C Compiler
  9596. lt_prog_compiler_wl='-Wl,'
  9597. lt_prog_compiler_pic='-fPIC'
  9598. lt_prog_compiler_static='-static'
  9599. ;;
  9600. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9601. # Portland Group compilers (*not* the Pentium gcc compiler,
  9602. # which looks to be a dead project)
  9603. lt_prog_compiler_wl='-Wl,'
  9604. lt_prog_compiler_pic='-fpic'
  9605. lt_prog_compiler_static='-Bstatic'
  9606. ;;
  9607. ccc*)
  9608. lt_prog_compiler_wl='-Wl,'
  9609. # All Alpha code is PIC.
  9610. lt_prog_compiler_static='-non_shared'
  9611. ;;
  9612. xl* | bgxl* | bgf* | mpixl*)
  9613. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9614. lt_prog_compiler_wl='-Wl,'
  9615. lt_prog_compiler_pic='-qpic'
  9616. lt_prog_compiler_static='-qstaticlink'
  9617. ;;
  9618. *)
  9619. case `$CC -V 2>&1 | sed 5q` in
  9620. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9621. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9622. lt_prog_compiler_pic='-KPIC'
  9623. lt_prog_compiler_static='-Bstatic'
  9624. lt_prog_compiler_wl=''
  9625. ;;
  9626. *Sun\ F* | *Sun*Fortran*)
  9627. lt_prog_compiler_pic='-KPIC'
  9628. lt_prog_compiler_static='-Bstatic'
  9629. lt_prog_compiler_wl='-Qoption ld '
  9630. ;;
  9631. *Sun\ C*)
  9632. # Sun C 5.9
  9633. lt_prog_compiler_pic='-KPIC'
  9634. lt_prog_compiler_static='-Bstatic'
  9635. lt_prog_compiler_wl='-Wl,'
  9636. ;;
  9637. *Intel*\ [CF]*Compiler*)
  9638. lt_prog_compiler_wl='-Wl,'
  9639. lt_prog_compiler_pic='-fPIC'
  9640. lt_prog_compiler_static='-static'
  9641. ;;
  9642. *Portland\ Group*)
  9643. lt_prog_compiler_wl='-Wl,'
  9644. lt_prog_compiler_pic='-fpic'
  9645. lt_prog_compiler_static='-Bstatic'
  9646. ;;
  9647. esac
  9648. ;;
  9649. esac
  9650. ;;
  9651. newsos6)
  9652. lt_prog_compiler_pic='-KPIC'
  9653. lt_prog_compiler_static='-Bstatic'
  9654. ;;
  9655. *nto* | *qnx*)
  9656. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9657. # it will coredump.
  9658. lt_prog_compiler_pic='-fPIC -shared'
  9659. ;;
  9660. osf3* | osf4* | osf5*)
  9661. lt_prog_compiler_wl='-Wl,'
  9662. # All OSF/1 code is PIC.
  9663. lt_prog_compiler_static='-non_shared'
  9664. ;;
  9665. rdos*)
  9666. lt_prog_compiler_static='-non_shared'
  9667. ;;
  9668. solaris*)
  9669. lt_prog_compiler_pic='-KPIC'
  9670. lt_prog_compiler_static='-Bstatic'
  9671. case $cc_basename in
  9672. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9673. lt_prog_compiler_wl='-Qoption ld ';;
  9674. *)
  9675. lt_prog_compiler_wl='-Wl,';;
  9676. esac
  9677. ;;
  9678. sunos4*)
  9679. lt_prog_compiler_wl='-Qoption ld '
  9680. lt_prog_compiler_pic='-PIC'
  9681. lt_prog_compiler_static='-Bstatic'
  9682. ;;
  9683. sysv4 | sysv4.2uw2* | sysv4.3*)
  9684. lt_prog_compiler_wl='-Wl,'
  9685. lt_prog_compiler_pic='-KPIC'
  9686. lt_prog_compiler_static='-Bstatic'
  9687. ;;
  9688. sysv4*MP*)
  9689. if test -d /usr/nec; then
  9690. lt_prog_compiler_pic='-Kconform_pic'
  9691. lt_prog_compiler_static='-Bstatic'
  9692. fi
  9693. ;;
  9694. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9695. lt_prog_compiler_wl='-Wl,'
  9696. lt_prog_compiler_pic='-KPIC'
  9697. lt_prog_compiler_static='-Bstatic'
  9698. ;;
  9699. unicos*)
  9700. lt_prog_compiler_wl='-Wl,'
  9701. lt_prog_compiler_can_build_shared=no
  9702. ;;
  9703. uts4*)
  9704. lt_prog_compiler_pic='-pic'
  9705. lt_prog_compiler_static='-Bstatic'
  9706. ;;
  9707. *)
  9708. lt_prog_compiler_can_build_shared=no
  9709. ;;
  9710. esac
  9711. fi
  9712. case $host_os in
  9713. # For platforms that do not support PIC, -DPIC is meaningless:
  9714. *djgpp*)
  9715. lt_prog_compiler_pic=
  9716. ;;
  9717. *)
  9718. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9719. ;;
  9720. esac
  9721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9722. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9723. if ${lt_cv_prog_compiler_pic+:} false; then :
  9724. $as_echo_n "(cached) " >&6
  9725. else
  9726. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9727. fi
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9729. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  9730. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9731. #
  9732. # Check to make sure the PIC flag actually works.
  9733. #
  9734. if test -n "$lt_prog_compiler_pic"; then
  9735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9736. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9737. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  9738. $as_echo_n "(cached) " >&6
  9739. else
  9740. lt_cv_prog_compiler_pic_works=no
  9741. ac_outfile=conftest.$ac_objext
  9742. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9743. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9744. # Insert the option either (1) after the last *FLAGS variable, or
  9745. # (2) before a word containing "conftest.", or (3) at the end.
  9746. # Note that $ac_compile itself does not contain backslashes and begins
  9747. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9748. # The option is referenced via a variable to avoid confusing sed.
  9749. lt_compile=`echo "$ac_compile" | $SED \
  9750. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9751. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9752. -e 's:$: $lt_compiler_flag:'`
  9753. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9754. (eval "$lt_compile" 2>conftest.err)
  9755. ac_status=$?
  9756. cat conftest.err >&5
  9757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9758. if (exit $ac_status) && test -s "$ac_outfile"; then
  9759. # The compiler can only warn and ignore the option if not recognized
  9760. # So say no if there are warnings other than the usual output.
  9761. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9762. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9763. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9764. lt_cv_prog_compiler_pic_works=yes
  9765. fi
  9766. fi
  9767. $RM conftest*
  9768. fi
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9770. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9771. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9772. case $lt_prog_compiler_pic in
  9773. "" | " "*) ;;
  9774. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9775. esac
  9776. else
  9777. lt_prog_compiler_pic=
  9778. lt_prog_compiler_can_build_shared=no
  9779. fi
  9780. fi
  9781. #
  9782. # Check to make sure the static flag actually works.
  9783. #
  9784. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9786. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9787. if ${lt_cv_prog_compiler_static_works+:} false; then :
  9788. $as_echo_n "(cached) " >&6
  9789. else
  9790. lt_cv_prog_compiler_static_works=no
  9791. save_LDFLAGS=$LDFLAGS
  9792. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9793. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9794. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9795. # The linker can only warn and ignore the option if not recognized
  9796. # So say no if there are warnings
  9797. if test -s conftest.err; then
  9798. # Append any errors to the config.log.
  9799. cat conftest.err 1>&5
  9800. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9801. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9802. if diff conftest.exp conftest.er2 >/dev/null; then
  9803. lt_cv_prog_compiler_static_works=yes
  9804. fi
  9805. else
  9806. lt_cv_prog_compiler_static_works=yes
  9807. fi
  9808. fi
  9809. $RM -r conftest*
  9810. LDFLAGS=$save_LDFLAGS
  9811. fi
  9812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9813. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9814. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9815. :
  9816. else
  9817. lt_prog_compiler_static=
  9818. fi
  9819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9820. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9821. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9822. $as_echo_n "(cached) " >&6
  9823. else
  9824. lt_cv_prog_compiler_c_o=no
  9825. $RM -r conftest 2>/dev/null
  9826. mkdir conftest
  9827. cd conftest
  9828. mkdir out
  9829. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9830. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9831. # Insert the option either (1) after the last *FLAGS variable, or
  9832. # (2) before a word containing "conftest.", or (3) at the end.
  9833. # Note that $ac_compile itself does not contain backslashes and begins
  9834. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9835. lt_compile=`echo "$ac_compile" | $SED \
  9836. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9837. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9838. -e 's:$: $lt_compiler_flag:'`
  9839. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9840. (eval "$lt_compile" 2>out/conftest.err)
  9841. ac_status=$?
  9842. cat out/conftest.err >&5
  9843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9844. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9845. then
  9846. # The compiler can only warn and ignore the option if not recognized
  9847. # So say no if there are warnings
  9848. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9849. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9850. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9851. lt_cv_prog_compiler_c_o=yes
  9852. fi
  9853. fi
  9854. chmod u+w . 2>&5
  9855. $RM conftest*
  9856. # SGI C++ compiler will create directory out/ii_files/ for
  9857. # template instantiation
  9858. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9859. $RM out/* && rmdir out
  9860. cd ..
  9861. $RM -r conftest
  9862. $RM conftest*
  9863. fi
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9865. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9867. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9868. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9869. $as_echo_n "(cached) " >&6
  9870. else
  9871. lt_cv_prog_compiler_c_o=no
  9872. $RM -r conftest 2>/dev/null
  9873. mkdir conftest
  9874. cd conftest
  9875. mkdir out
  9876. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9877. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9878. # Insert the option either (1) after the last *FLAGS variable, or
  9879. # (2) before a word containing "conftest.", or (3) at the end.
  9880. # Note that $ac_compile itself does not contain backslashes and begins
  9881. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9882. lt_compile=`echo "$ac_compile" | $SED \
  9883. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9884. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9885. -e 's:$: $lt_compiler_flag:'`
  9886. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9887. (eval "$lt_compile" 2>out/conftest.err)
  9888. ac_status=$?
  9889. cat out/conftest.err >&5
  9890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9891. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9892. then
  9893. # The compiler can only warn and ignore the option if not recognized
  9894. # So say no if there are warnings
  9895. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9896. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9897. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9898. lt_cv_prog_compiler_c_o=yes
  9899. fi
  9900. fi
  9901. chmod u+w . 2>&5
  9902. $RM conftest*
  9903. # SGI C++ compiler will create directory out/ii_files/ for
  9904. # template instantiation
  9905. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9906. $RM out/* && rmdir out
  9907. cd ..
  9908. $RM -r conftest
  9909. $RM conftest*
  9910. fi
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9912. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9913. hard_links=nottested
  9914. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9915. # do not overwrite the value of need_locks provided by the user
  9916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9917. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9918. hard_links=yes
  9919. $RM conftest*
  9920. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9921. touch conftest.a
  9922. ln conftest.a conftest.b 2>&5 || hard_links=no
  9923. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9925. $as_echo "$hard_links" >&6; }
  9926. if test no = "$hard_links"; then
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9928. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9929. need_locks=warn
  9930. fi
  9931. else
  9932. need_locks=no
  9933. fi
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9935. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9936. runpath_var=
  9937. allow_undefined_flag=
  9938. always_export_symbols=no
  9939. archive_cmds=
  9940. archive_expsym_cmds=
  9941. compiler_needs_object=no
  9942. enable_shared_with_static_runtimes=no
  9943. export_dynamic_flag_spec=
  9944. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9945. hardcode_automatic=no
  9946. hardcode_direct=no
  9947. hardcode_direct_absolute=no
  9948. hardcode_libdir_flag_spec=
  9949. hardcode_libdir_separator=
  9950. hardcode_minus_L=no
  9951. hardcode_shlibpath_var=unsupported
  9952. inherit_rpath=no
  9953. link_all_deplibs=unknown
  9954. module_cmds=
  9955. module_expsym_cmds=
  9956. old_archive_from_new_cmds=
  9957. old_archive_from_expsyms_cmds=
  9958. thread_safe_flag_spec=
  9959. whole_archive_flag_spec=
  9960. # include_expsyms should be a list of space-separated symbols to be *always*
  9961. # included in the symbol list
  9962. include_expsyms=
  9963. # exclude_expsyms can be an extended regexp of symbols to exclude
  9964. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9965. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9966. # as well as any symbol that contains 'd'.
  9967. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9968. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9969. # platforms (ab)use it in PIC code, but their linkers get confused if
  9970. # the symbol is explicitly referenced. Since portable code cannot
  9971. # rely on this symbol name, it's probably fine to never include it in
  9972. # preloaded symbol tables.
  9973. # Exclude shared library initialization/finalization symbols.
  9974. extract_expsyms_cmds=
  9975. case $host_os in
  9976. cygwin* | mingw* | pw32* | cegcc*)
  9977. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9978. # When not using gcc, we currently assume that we are using
  9979. # Microsoft Visual C++.
  9980. if test yes != "$GCC"; then
  9981. with_gnu_ld=no
  9982. fi
  9983. ;;
  9984. interix*)
  9985. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9986. with_gnu_ld=yes
  9987. ;;
  9988. openbsd* | bitrig*)
  9989. with_gnu_ld=no
  9990. ;;
  9991. esac
  9992. ld_shlibs=yes
  9993. # On some targets, GNU ld is compatible enough with the native linker
  9994. # that we're better off using the native interface for both.
  9995. lt_use_gnu_ld_interface=no
  9996. if test yes = "$with_gnu_ld"; then
  9997. case $host_os in
  9998. aix*)
  9999. # The AIX port of GNU ld has always aspired to compatibility
  10000. # with the native linker. However, as the warning in the GNU ld
  10001. # block says, versions before 2.19.5* couldn't really create working
  10002. # shared libraries, regardless of the interface used.
  10003. case `$LD -v 2>&1` in
  10004. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10005. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10006. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10007. *)
  10008. lt_use_gnu_ld_interface=yes
  10009. ;;
  10010. esac
  10011. ;;
  10012. *)
  10013. lt_use_gnu_ld_interface=yes
  10014. ;;
  10015. esac
  10016. fi
  10017. if test yes = "$lt_use_gnu_ld_interface"; then
  10018. # If archive_cmds runs LD, not CC, wlarc should be empty
  10019. wlarc='$wl'
  10020. # Set some defaults for GNU ld with shared library support. These
  10021. # are reset later if shared libraries are not supported. Putting them
  10022. # here allows them to be overridden if necessary.
  10023. runpath_var=LD_RUN_PATH
  10024. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10025. export_dynamic_flag_spec='$wl--export-dynamic'
  10026. # ancient GNU ld didn't support --whole-archive et. al.
  10027. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10028. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  10029. else
  10030. whole_archive_flag_spec=
  10031. fi
  10032. supports_anon_versioning=no
  10033. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  10034. *GNU\ gold*) supports_anon_versioning=yes ;;
  10035. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10036. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10037. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10038. *\ 2.11.*) ;; # other 2.11 versions
  10039. *) supports_anon_versioning=yes ;;
  10040. esac
  10041. # See if GNU ld supports shared libraries.
  10042. case $host_os in
  10043. aix[3-9]*)
  10044. # On AIX/PPC, the GNU linker is very broken
  10045. if test ia64 != "$host_cpu"; then
  10046. ld_shlibs=no
  10047. cat <<_LT_EOF 1>&2
  10048. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10049. *** to be unable to reliably create shared libraries on AIX.
  10050. *** Therefore, libtool is disabling shared libraries support. If you
  10051. *** really care for shared libraries, you may want to install binutils
  10052. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10053. *** You will then need to restart the configuration process.
  10054. _LT_EOF
  10055. fi
  10056. ;;
  10057. amigaos*)
  10058. case $host_cpu in
  10059. powerpc)
  10060. # see comment about AmigaOS4 .so support
  10061. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10062. archive_expsym_cmds=''
  10063. ;;
  10064. m68k)
  10065. 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)'
  10066. hardcode_libdir_flag_spec='-L$libdir'
  10067. hardcode_minus_L=yes
  10068. ;;
  10069. esac
  10070. ;;
  10071. beos*)
  10072. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10073. allow_undefined_flag=unsupported
  10074. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10075. # support --undefined. This deserves some investigation. FIXME
  10076. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10077. else
  10078. ld_shlibs=no
  10079. fi
  10080. ;;
  10081. cygwin* | mingw* | pw32* | cegcc*)
  10082. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10083. # as there is no search path for DLLs.
  10084. hardcode_libdir_flag_spec='-L$libdir'
  10085. export_dynamic_flag_spec='$wl--export-all-symbols'
  10086. allow_undefined_flag=unsupported
  10087. always_export_symbols=no
  10088. enable_shared_with_static_runtimes=yes
  10089. 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'
  10090. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10091. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10092. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10093. # If the export-symbols file already is a .def file, use it as
  10094. # is; otherwise, prepend EXPORTS...
  10095. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10096. cp $export_symbols $output_objdir/$soname.def;
  10097. else
  10098. echo EXPORTS > $output_objdir/$soname.def;
  10099. cat $export_symbols >> $output_objdir/$soname.def;
  10100. fi~
  10101. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10102. else
  10103. ld_shlibs=no
  10104. fi
  10105. ;;
  10106. haiku*)
  10107. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10108. link_all_deplibs=yes
  10109. ;;
  10110. os2*)
  10111. hardcode_libdir_flag_spec='-L$libdir'
  10112. hardcode_minus_L=yes
  10113. allow_undefined_flag=unsupported
  10114. shrext_cmds=.dll
  10115. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10116. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10117. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10118. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10119. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10120. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10121. emximp -o $lib $output_objdir/$libname.def'
  10122. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10123. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10124. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10125. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10126. prefix_cmds="$SED"~
  10127. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10128. prefix_cmds="$prefix_cmds -e 1d";
  10129. fi~
  10130. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10131. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10132. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10133. emximp -o $lib $output_objdir/$libname.def'
  10134. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10135. enable_shared_with_static_runtimes=yes
  10136. ;;
  10137. interix[3-9]*)
  10138. hardcode_direct=no
  10139. hardcode_shlibpath_var=no
  10140. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10141. export_dynamic_flag_spec='$wl-E'
  10142. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10143. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10144. # default) and relocated if they conflict, which is a slow very memory
  10145. # consuming and fragmenting process. To avoid this, we pick a random,
  10146. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10147. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10148. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10149. 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'
  10150. ;;
  10151. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10152. tmp_diet=no
  10153. if test linux-dietlibc = "$host_os"; then
  10154. case $cc_basename in
  10155. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10156. esac
  10157. fi
  10158. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10159. && test no = "$tmp_diet"
  10160. then
  10161. tmp_addflag=' $pic_flag'
  10162. tmp_sharedflag='-shared'
  10163. case $cc_basename,$host_cpu in
  10164. pgcc*) # Portland Group C compiler
  10165. 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'
  10166. tmp_addflag=' $pic_flag'
  10167. ;;
  10168. pgf77* | pgf90* | pgf95* | pgfortran*)
  10169. # Portland Group f77 and f90 compilers
  10170. 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'
  10171. tmp_addflag=' $pic_flag -Mnomain' ;;
  10172. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10173. tmp_addflag=' -i_dynamic' ;;
  10174. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10175. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10176. ifc* | ifort*) # Intel Fortran compiler
  10177. tmp_addflag=' -nofor_main' ;;
  10178. lf95*) # Lahey Fortran 8.1
  10179. whole_archive_flag_spec=
  10180. tmp_sharedflag='--shared' ;;
  10181. nagfor*) # NAGFOR 5.3
  10182. tmp_sharedflag='-Wl,-shared' ;;
  10183. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10184. tmp_sharedflag='-qmkshrobj'
  10185. tmp_addflag= ;;
  10186. nvcc*) # Cuda Compiler Driver 2.2
  10187. 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'
  10188. compiler_needs_object=yes
  10189. ;;
  10190. esac
  10191. case `$CC -V 2>&1 | sed 5q` in
  10192. *Sun\ C*) # Sun C 5.9
  10193. 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'
  10194. compiler_needs_object=yes
  10195. tmp_sharedflag='-G' ;;
  10196. *Sun\ F*) # Sun Fortran 8.3
  10197. tmp_sharedflag='-G' ;;
  10198. esac
  10199. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10200. if test yes = "$supports_anon_versioning"; then
  10201. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10202. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10203. echo "local: *; };" >> $output_objdir/$libname.ver~
  10204. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  10205. fi
  10206. case $cc_basename in
  10207. tcc*)
  10208. export_dynamic_flag_spec='-rdynamic'
  10209. ;;
  10210. xlf* | bgf* | bgxlf* | mpixlf*)
  10211. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10212. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10213. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10214. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10215. if test yes = "$supports_anon_versioning"; then
  10216. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10217. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10218. echo "local: *; };" >> $output_objdir/$libname.ver~
  10219. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10220. fi
  10221. ;;
  10222. esac
  10223. else
  10224. ld_shlibs=no
  10225. fi
  10226. ;;
  10227. netbsd*)
  10228. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10229. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10230. wlarc=
  10231. else
  10232. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10233. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10234. fi
  10235. ;;
  10236. solaris*)
  10237. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10238. ld_shlibs=no
  10239. cat <<_LT_EOF 1>&2
  10240. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10241. *** create shared libraries on Solaris systems. Therefore, libtool
  10242. *** is disabling shared libraries support. We urge you to upgrade GNU
  10243. *** binutils to release 2.9.1 or newer. Another option is to modify
  10244. *** your PATH or compiler configuration so that the native linker is
  10245. *** used, and then restart.
  10246. _LT_EOF
  10247. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10248. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10249. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10250. else
  10251. ld_shlibs=no
  10252. fi
  10253. ;;
  10254. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10255. case `$LD -v 2>&1` in
  10256. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10257. ld_shlibs=no
  10258. cat <<_LT_EOF 1>&2
  10259. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  10260. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10261. *** is disabling shared libraries support. We urge you to upgrade GNU
  10262. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10263. *** your PATH or compiler configuration so that the native linker is
  10264. *** used, and then restart.
  10265. _LT_EOF
  10266. ;;
  10267. *)
  10268. # For security reasons, it is highly recommended that you always
  10269. # use absolute paths for naming shared libraries, and exclude the
  10270. # DT_RUNPATH tag from executables and libraries. But doing so
  10271. # requires that you compile everything twice, which is a pain.
  10272. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10273. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10274. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10275. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10276. else
  10277. ld_shlibs=no
  10278. fi
  10279. ;;
  10280. esac
  10281. ;;
  10282. sunos4*)
  10283. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10284. wlarc=
  10285. hardcode_direct=yes
  10286. hardcode_shlibpath_var=no
  10287. ;;
  10288. *)
  10289. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10290. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10291. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10292. else
  10293. ld_shlibs=no
  10294. fi
  10295. ;;
  10296. esac
  10297. if test no = "$ld_shlibs"; then
  10298. runpath_var=
  10299. hardcode_libdir_flag_spec=
  10300. export_dynamic_flag_spec=
  10301. whole_archive_flag_spec=
  10302. fi
  10303. else
  10304. # PORTME fill in a description of your system's linker (not GNU ld)
  10305. case $host_os in
  10306. aix3*)
  10307. allow_undefined_flag=unsupported
  10308. always_export_symbols=yes
  10309. 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'
  10310. # Note: this linker hardcodes the directories in LIBPATH if there
  10311. # are no directories specified by -L.
  10312. hardcode_minus_L=yes
  10313. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  10314. # Neither direct hardcoding nor static linking is supported with a
  10315. # broken collect2.
  10316. hardcode_direct=unsupported
  10317. fi
  10318. ;;
  10319. aix[4-9]*)
  10320. if test ia64 = "$host_cpu"; then
  10321. # On IA64, the linker does run time linking by default, so we don't
  10322. # have to do anything special.
  10323. aix_use_runtimelinking=no
  10324. exp_sym_flag='-Bexport'
  10325. no_entry_flag=
  10326. else
  10327. # If we're using GNU nm, then we don't want the "-C" option.
  10328. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  10329. # Without the "-l" option, or with the "-B" option, AIX nm treats
  10330. # weak defined symbols like other global defined symbols, whereas
  10331. # GNU nm marks them as "W".
  10332. # While the 'weak' keyword is ignored in the Export File, we need
  10333. # it in the Import File for the 'aix-soname' feature, so we have
  10334. # to replace the "-B" option with "-P" for AIX nm.
  10335. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10336. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  10337. else
  10338. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  10339. fi
  10340. aix_use_runtimelinking=no
  10341. # Test if we are trying to use run time linking or normal
  10342. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10343. # have runtime linking enabled, and use it for executables.
  10344. # For shared libraries, we enable/disable runtime linking
  10345. # depending on the kind of the shared library created -
  10346. # when "with_aix_soname,aix_use_runtimelinking" is:
  10347. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  10348. # "aix,yes" lib.so shared, rtl:yes, for executables
  10349. # lib.a static archive
  10350. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  10351. # lib.a(lib.so.V) shared, rtl:no, for executables
  10352. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  10353. # lib.a(lib.so.V) shared, rtl:no
  10354. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  10355. # lib.a static archive
  10356. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10357. for ld_flag in $LDFLAGS; do
  10358. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  10359. aix_use_runtimelinking=yes
  10360. break
  10361. fi
  10362. done
  10363. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  10364. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  10365. # so we don't have lib.a shared libs to link our executables.
  10366. # We have to force runtime linking in this case.
  10367. aix_use_runtimelinking=yes
  10368. LDFLAGS="$LDFLAGS -Wl,-brtl"
  10369. fi
  10370. ;;
  10371. esac
  10372. exp_sym_flag='-bexport'
  10373. no_entry_flag='-bnoentry'
  10374. fi
  10375. # When large executables or shared objects are built, AIX ld can
  10376. # have problems creating the table of contents. If linking a library
  10377. # or program results in "error TOC overflow" add -mminimal-toc to
  10378. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10379. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10380. archive_cmds=''
  10381. hardcode_direct=yes
  10382. hardcode_direct_absolute=yes
  10383. hardcode_libdir_separator=':'
  10384. link_all_deplibs=yes
  10385. file_list_spec='$wl-f,'
  10386. case $with_aix_soname,$aix_use_runtimelinking in
  10387. aix,*) ;; # traditional, no import file
  10388. svr4,* | *,yes) # use import file
  10389. # The Import File defines what to hardcode.
  10390. hardcode_direct=no
  10391. hardcode_direct_absolute=no
  10392. ;;
  10393. esac
  10394. if test yes = "$GCC"; then
  10395. case $host_os in aix4.[012]|aix4.[012].*)
  10396. # We only want to do this on AIX 4.2 and lower, the check
  10397. # below for broken collect2 doesn't work under 4.3+
  10398. collect2name=`$CC -print-prog-name=collect2`
  10399. if test -f "$collect2name" &&
  10400. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10401. then
  10402. # We have reworked collect2
  10403. :
  10404. else
  10405. # We have old collect2
  10406. hardcode_direct=unsupported
  10407. # It fails to find uninstalled libraries when the uninstalled
  10408. # path is not listed in the libpath. Setting hardcode_minus_L
  10409. # to unsupported forces relinking
  10410. hardcode_minus_L=yes
  10411. hardcode_libdir_flag_spec='-L$libdir'
  10412. hardcode_libdir_separator=
  10413. fi
  10414. ;;
  10415. esac
  10416. shared_flag='-shared'
  10417. if test yes = "$aix_use_runtimelinking"; then
  10418. shared_flag="$shared_flag "'$wl-G'
  10419. fi
  10420. # Need to ensure runtime linking is disabled for the traditional
  10421. # shared library, or the linker may eventually find shared libraries
  10422. # /with/ Import File - we do not want to mix them.
  10423. shared_flag_aix='-shared'
  10424. shared_flag_svr4='-shared $wl-G'
  10425. else
  10426. # not using gcc
  10427. if test ia64 = "$host_cpu"; then
  10428. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10429. # chokes on -Wl,-G. The following line is correct:
  10430. shared_flag='-G'
  10431. else
  10432. if test yes = "$aix_use_runtimelinking"; then
  10433. shared_flag='$wl-G'
  10434. else
  10435. shared_flag='$wl-bM:SRE'
  10436. fi
  10437. shared_flag_aix='$wl-bM:SRE'
  10438. shared_flag_svr4='$wl-G'
  10439. fi
  10440. fi
  10441. export_dynamic_flag_spec='$wl-bexpall'
  10442. # It seems that -bexpall does not export symbols beginning with
  10443. # underscore (_), so it is better to generate a list of symbols to export.
  10444. always_export_symbols=yes
  10445. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  10446. # Warning - without using the other runtime loading flags (-brtl),
  10447. # -berok will link without error, but may produce a broken library.
  10448. allow_undefined_flag='-berok'
  10449. # Determine the default libpath from the value encoded in an
  10450. # empty executable.
  10451. if test set = "${lt_cv_aix_libpath+set}"; then
  10452. aix_libpath=$lt_cv_aix_libpath
  10453. else
  10454. if ${lt_cv_aix_libpath_+:} false; then :
  10455. $as_echo_n "(cached) " >&6
  10456. else
  10457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10458. /* end confdefs.h. */
  10459. int
  10460. main ()
  10461. {
  10462. ;
  10463. return 0;
  10464. }
  10465. _ACEOF
  10466. if ac_fn_c_try_link "$LINENO"; then :
  10467. lt_aix_libpath_sed='
  10468. /Import File Strings/,/^$/ {
  10469. /^0/ {
  10470. s/^0 *\([^ ]*\) *$/\1/
  10471. p
  10472. }
  10473. }'
  10474. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10475. # Check for a 64-bit object if we didn't find anything.
  10476. if test -z "$lt_cv_aix_libpath_"; then
  10477. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10478. fi
  10479. fi
  10480. rm -f core conftest.err conftest.$ac_objext \
  10481. conftest$ac_exeext conftest.$ac_ext
  10482. if test -z "$lt_cv_aix_libpath_"; then
  10483. lt_cv_aix_libpath_=/usr/lib:/lib
  10484. fi
  10485. fi
  10486. aix_libpath=$lt_cv_aix_libpath_
  10487. fi
  10488. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10489. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  10490. else
  10491. if test ia64 = "$host_cpu"; then
  10492. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  10493. allow_undefined_flag="-z nodefs"
  10494. 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"
  10495. else
  10496. # Determine the default libpath from the value encoded in an
  10497. # empty executable.
  10498. if test set = "${lt_cv_aix_libpath+set}"; then
  10499. aix_libpath=$lt_cv_aix_libpath
  10500. else
  10501. if ${lt_cv_aix_libpath_+:} false; then :
  10502. $as_echo_n "(cached) " >&6
  10503. else
  10504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10505. /* end confdefs.h. */
  10506. int
  10507. main ()
  10508. {
  10509. ;
  10510. return 0;
  10511. }
  10512. _ACEOF
  10513. if ac_fn_c_try_link "$LINENO"; then :
  10514. lt_aix_libpath_sed='
  10515. /Import File Strings/,/^$/ {
  10516. /^0/ {
  10517. s/^0 *\([^ ]*\) *$/\1/
  10518. p
  10519. }
  10520. }'
  10521. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10522. # Check for a 64-bit object if we didn't find anything.
  10523. if test -z "$lt_cv_aix_libpath_"; then
  10524. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10525. fi
  10526. fi
  10527. rm -f core conftest.err conftest.$ac_objext \
  10528. conftest$ac_exeext conftest.$ac_ext
  10529. if test -z "$lt_cv_aix_libpath_"; then
  10530. lt_cv_aix_libpath_=/usr/lib:/lib
  10531. fi
  10532. fi
  10533. aix_libpath=$lt_cv_aix_libpath_
  10534. fi
  10535. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10536. # Warning - without using the other run time loading flags,
  10537. # -berok will link without error, but may produce a broken library.
  10538. no_undefined_flag=' $wl-bernotok'
  10539. allow_undefined_flag=' $wl-berok'
  10540. if test yes = "$with_gnu_ld"; then
  10541. # We only use this code for GNU lds that support --whole-archive.
  10542. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  10543. else
  10544. # Exported symbols can be pulled into shared objects from archives
  10545. whole_archive_flag_spec='$convenience'
  10546. fi
  10547. archive_cmds_need_lc=yes
  10548. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  10549. # -brtl affects multiple linker settings, -berok does not and is overridden later
  10550. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  10551. if test svr4 != "$with_aix_soname"; then
  10552. # This is similar to how AIX traditionally builds its shared libraries.
  10553. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  10554. fi
  10555. if test aix != "$with_aix_soname"; then
  10556. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  10557. else
  10558. # used by -dlpreopen to get the symbols
  10559. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  10560. fi
  10561. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  10562. fi
  10563. fi
  10564. ;;
  10565. amigaos*)
  10566. case $host_cpu in
  10567. powerpc)
  10568. # see comment about AmigaOS4 .so support
  10569. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10570. archive_expsym_cmds=''
  10571. ;;
  10572. m68k)
  10573. 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)'
  10574. hardcode_libdir_flag_spec='-L$libdir'
  10575. hardcode_minus_L=yes
  10576. ;;
  10577. esac
  10578. ;;
  10579. bsdi[45]*)
  10580. export_dynamic_flag_spec=-rdynamic
  10581. ;;
  10582. cygwin* | mingw* | pw32* | cegcc*)
  10583. # When not using gcc, we currently assume that we are using
  10584. # Microsoft Visual C++.
  10585. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10586. # no search path for DLLs.
  10587. case $cc_basename in
  10588. cl*)
  10589. # Native MSVC
  10590. hardcode_libdir_flag_spec=' '
  10591. allow_undefined_flag=unsupported
  10592. always_export_symbols=yes
  10593. file_list_spec='@'
  10594. # Tell ltmain to make .lib files, not .a files.
  10595. libext=lib
  10596. # Tell ltmain to make .dll files, not .so files.
  10597. shrext_cmds=.dll
  10598. # FIXME: Setting linknames here is a bad hack.
  10599. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10600. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10601. cp "$export_symbols" "$output_objdir/$soname.def";
  10602. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10603. else
  10604. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10605. fi~
  10606. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10607. linknames='
  10608. # The linker will not automatically build a static lib if we build a DLL.
  10609. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10610. enable_shared_with_static_runtimes=yes
  10611. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10612. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10613. # Don't use ranlib
  10614. old_postinstall_cmds='chmod 644 $oldlib'
  10615. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10616. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10617. case $lt_outputfile in
  10618. *.exe|*.EXE) ;;
  10619. *)
  10620. lt_outputfile=$lt_outputfile.exe
  10621. lt_tool_outputfile=$lt_tool_outputfile.exe
  10622. ;;
  10623. esac~
  10624. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10625. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10626. $RM "$lt_outputfile.manifest";
  10627. fi'
  10628. ;;
  10629. *)
  10630. # Assume MSVC wrapper
  10631. hardcode_libdir_flag_spec=' '
  10632. allow_undefined_flag=unsupported
  10633. # Tell ltmain to make .lib files, not .a files.
  10634. libext=lib
  10635. # Tell ltmain to make .dll files, not .so files.
  10636. shrext_cmds=.dll
  10637. # FIXME: Setting linknames here is a bad hack.
  10638. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10639. # The linker will automatically build a .lib file if we build a DLL.
  10640. old_archive_from_new_cmds='true'
  10641. # FIXME: Should let the user specify the lib program.
  10642. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10643. enable_shared_with_static_runtimes=yes
  10644. ;;
  10645. esac
  10646. ;;
  10647. darwin* | rhapsody*)
  10648. archive_cmds_need_lc=no
  10649. hardcode_direct=no
  10650. hardcode_automatic=yes
  10651. hardcode_shlibpath_var=unsupported
  10652. if test yes = "$lt_cv_ld_force_load"; then
  10653. 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\"`'
  10654. else
  10655. whole_archive_flag_spec=''
  10656. fi
  10657. link_all_deplibs=yes
  10658. allow_undefined_flag=$_lt_dar_allow_undefined
  10659. case $cc_basename in
  10660. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10661. *) _lt_dar_can_shared=$GCC ;;
  10662. esac
  10663. if test yes = "$_lt_dar_can_shared"; then
  10664. output_verbose_link_cmd=func_echo_all
  10665. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10666. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10667. 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"
  10668. 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"
  10669. else
  10670. ld_shlibs=no
  10671. fi
  10672. ;;
  10673. dgux*)
  10674. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10675. hardcode_libdir_flag_spec='-L$libdir'
  10676. hardcode_shlibpath_var=no
  10677. ;;
  10678. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10679. # support. Future versions do this automatically, but an explicit c++rt0.o
  10680. # does not break anything, and helps significantly (at the cost of a little
  10681. # extra space).
  10682. freebsd2.2*)
  10683. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10684. hardcode_libdir_flag_spec='-R$libdir'
  10685. hardcode_direct=yes
  10686. hardcode_shlibpath_var=no
  10687. ;;
  10688. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10689. freebsd2.*)
  10690. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10691. hardcode_direct=yes
  10692. hardcode_minus_L=yes
  10693. hardcode_shlibpath_var=no
  10694. ;;
  10695. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10696. freebsd* | dragonfly*)
  10697. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10698. hardcode_libdir_flag_spec='-R$libdir'
  10699. hardcode_direct=yes
  10700. hardcode_shlibpath_var=no
  10701. ;;
  10702. hpux9*)
  10703. if test yes = "$GCC"; then
  10704. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  10705. else
  10706. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  10707. fi
  10708. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10709. hardcode_libdir_separator=:
  10710. hardcode_direct=yes
  10711. # hardcode_minus_L: Not really in the search PATH,
  10712. # but as the default location of the library.
  10713. hardcode_minus_L=yes
  10714. export_dynamic_flag_spec='$wl-E'
  10715. ;;
  10716. hpux10*)
  10717. if test yes,no = "$GCC,$with_gnu_ld"; then
  10718. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10719. else
  10720. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10721. fi
  10722. if test no = "$with_gnu_ld"; then
  10723. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10724. hardcode_libdir_separator=:
  10725. hardcode_direct=yes
  10726. hardcode_direct_absolute=yes
  10727. export_dynamic_flag_spec='$wl-E'
  10728. # hardcode_minus_L: Not really in the search PATH,
  10729. # but as the default location of the library.
  10730. hardcode_minus_L=yes
  10731. fi
  10732. ;;
  10733. hpux11*)
  10734. if test yes,no = "$GCC,$with_gnu_ld"; then
  10735. case $host_cpu in
  10736. hppa*64*)
  10737. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10738. ;;
  10739. ia64*)
  10740. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10741. ;;
  10742. *)
  10743. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10744. ;;
  10745. esac
  10746. else
  10747. case $host_cpu in
  10748. hppa*64*)
  10749. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10750. ;;
  10751. ia64*)
  10752. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10753. ;;
  10754. *)
  10755. # Older versions of the 11.00 compiler do not understand -b yet
  10756. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10758. $as_echo_n "checking if $CC understands -b... " >&6; }
  10759. if ${lt_cv_prog_compiler__b+:} false; then :
  10760. $as_echo_n "(cached) " >&6
  10761. else
  10762. lt_cv_prog_compiler__b=no
  10763. save_LDFLAGS=$LDFLAGS
  10764. LDFLAGS="$LDFLAGS -b"
  10765. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10766. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10767. # The linker can only warn and ignore the option if not recognized
  10768. # So say no if there are warnings
  10769. if test -s conftest.err; then
  10770. # Append any errors to the config.log.
  10771. cat conftest.err 1>&5
  10772. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10773. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10774. if diff conftest.exp conftest.er2 >/dev/null; then
  10775. lt_cv_prog_compiler__b=yes
  10776. fi
  10777. else
  10778. lt_cv_prog_compiler__b=yes
  10779. fi
  10780. fi
  10781. $RM -r conftest*
  10782. LDFLAGS=$save_LDFLAGS
  10783. fi
  10784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10785. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  10786. if test yes = "$lt_cv_prog_compiler__b"; then
  10787. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10788. else
  10789. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10790. fi
  10791. ;;
  10792. esac
  10793. fi
  10794. if test no = "$with_gnu_ld"; then
  10795. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10796. hardcode_libdir_separator=:
  10797. case $host_cpu in
  10798. hppa*64*|ia64*)
  10799. hardcode_direct=no
  10800. hardcode_shlibpath_var=no
  10801. ;;
  10802. *)
  10803. hardcode_direct=yes
  10804. hardcode_direct_absolute=yes
  10805. export_dynamic_flag_spec='$wl-E'
  10806. # hardcode_minus_L: Not really in the search PATH,
  10807. # but as the default location of the library.
  10808. hardcode_minus_L=yes
  10809. ;;
  10810. esac
  10811. fi
  10812. ;;
  10813. irix5* | irix6* | nonstopux*)
  10814. if test yes = "$GCC"; then
  10815. 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'
  10816. # Try to use the -exported_symbol ld option, if it does not
  10817. # work, assume that -exports_file does not work either and
  10818. # implicitly export all symbols.
  10819. # This should be the same for all languages, so no per-tag cache variable.
  10820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10821. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10822. if ${lt_cv_irix_exported_symbol+:} false; then :
  10823. $as_echo_n "(cached) " >&6
  10824. else
  10825. save_LDFLAGS=$LDFLAGS
  10826. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10828. /* end confdefs.h. */
  10829. int foo (void) { return 0; }
  10830. _ACEOF
  10831. if ac_fn_c_try_link "$LINENO"; then :
  10832. lt_cv_irix_exported_symbol=yes
  10833. else
  10834. lt_cv_irix_exported_symbol=no
  10835. fi
  10836. rm -f core conftest.err conftest.$ac_objext \
  10837. conftest$ac_exeext conftest.$ac_ext
  10838. LDFLAGS=$save_LDFLAGS
  10839. fi
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10841. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  10842. if test yes = "$lt_cv_irix_exported_symbol"; then
  10843. 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'
  10844. fi
  10845. else
  10846. 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'
  10847. 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'
  10848. fi
  10849. archive_cmds_need_lc='no'
  10850. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10851. hardcode_libdir_separator=:
  10852. inherit_rpath=yes
  10853. link_all_deplibs=yes
  10854. ;;
  10855. linux*)
  10856. case $cc_basename in
  10857. tcc*)
  10858. # Fabrice Bellard et al's Tiny C Compiler
  10859. ld_shlibs=yes
  10860. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10861. ;;
  10862. esac
  10863. ;;
  10864. netbsd*)
  10865. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10866. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10867. else
  10868. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10869. fi
  10870. hardcode_libdir_flag_spec='-R$libdir'
  10871. hardcode_direct=yes
  10872. hardcode_shlibpath_var=no
  10873. ;;
  10874. newsos6)
  10875. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10876. hardcode_direct=yes
  10877. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10878. hardcode_libdir_separator=:
  10879. hardcode_shlibpath_var=no
  10880. ;;
  10881. *nto* | *qnx*)
  10882. ;;
  10883. openbsd* | bitrig*)
  10884. if test -f /usr/libexec/ld.so; then
  10885. hardcode_direct=yes
  10886. hardcode_shlibpath_var=no
  10887. hardcode_direct_absolute=yes
  10888. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10889. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10890. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10891. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10892. export_dynamic_flag_spec='$wl-E'
  10893. else
  10894. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10895. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10896. fi
  10897. else
  10898. ld_shlibs=no
  10899. fi
  10900. ;;
  10901. os2*)
  10902. hardcode_libdir_flag_spec='-L$libdir'
  10903. hardcode_minus_L=yes
  10904. allow_undefined_flag=unsupported
  10905. shrext_cmds=.dll
  10906. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10907. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10908. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10909. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10910. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10911. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10912. emximp -o $lib $output_objdir/$libname.def'
  10913. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10914. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10915. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10916. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10917. prefix_cmds="$SED"~
  10918. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10919. prefix_cmds="$prefix_cmds -e 1d";
  10920. fi~
  10921. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10922. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10923. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10924. emximp -o $lib $output_objdir/$libname.def'
  10925. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10926. enable_shared_with_static_runtimes=yes
  10927. ;;
  10928. osf3*)
  10929. if test yes = "$GCC"; then
  10930. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10931. 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'
  10932. else
  10933. allow_undefined_flag=' -expect_unresolved \*'
  10934. 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'
  10935. fi
  10936. archive_cmds_need_lc='no'
  10937. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10938. hardcode_libdir_separator=:
  10939. ;;
  10940. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10941. if test yes = "$GCC"; then
  10942. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10943. 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'
  10944. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10945. else
  10946. allow_undefined_flag=' -expect_unresolved \*'
  10947. 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'
  10948. 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~
  10949. $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'
  10950. # Both c and cxx compiler support -rpath directly
  10951. hardcode_libdir_flag_spec='-rpath $libdir'
  10952. fi
  10953. archive_cmds_need_lc='no'
  10954. hardcode_libdir_separator=:
  10955. ;;
  10956. solaris*)
  10957. no_undefined_flag=' -z defs'
  10958. if test yes = "$GCC"; then
  10959. wlarc='$wl'
  10960. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10961. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10962. $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'
  10963. else
  10964. case `$CC -V 2>&1` in
  10965. *"Compilers 5.0"*)
  10966. wlarc=''
  10967. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10968. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10969. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10970. ;;
  10971. *)
  10972. wlarc='$wl'
  10973. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10974. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10975. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10976. ;;
  10977. esac
  10978. fi
  10979. hardcode_libdir_flag_spec='-R$libdir'
  10980. hardcode_shlibpath_var=no
  10981. case $host_os in
  10982. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10983. *)
  10984. # The compiler driver will combine and reorder linker options,
  10985. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10986. # but is careful enough not to reorder.
  10987. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10988. if test yes = "$GCC"; then
  10989. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10990. else
  10991. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10992. fi
  10993. ;;
  10994. esac
  10995. link_all_deplibs=yes
  10996. ;;
  10997. sunos4*)
  10998. if test sequent = "$host_vendor"; then
  10999. # Use $CC to link under sequent, because it throws in some extra .o
  11000. # files that make .init and .fini sections work.
  11001. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11002. else
  11003. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11004. fi
  11005. hardcode_libdir_flag_spec='-L$libdir'
  11006. hardcode_direct=yes
  11007. hardcode_minus_L=yes
  11008. hardcode_shlibpath_var=no
  11009. ;;
  11010. sysv4)
  11011. case $host_vendor in
  11012. sni)
  11013. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11014. hardcode_direct=yes # is this really true???
  11015. ;;
  11016. siemens)
  11017. ## LD is ld it makes a PLAMLIB
  11018. ## CC just makes a GrossModule.
  11019. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11020. reload_cmds='$CC -r -o $output$reload_objs'
  11021. hardcode_direct=no
  11022. ;;
  11023. motorola)
  11024. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11025. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  11026. ;;
  11027. esac
  11028. runpath_var='LD_RUN_PATH'
  11029. hardcode_shlibpath_var=no
  11030. ;;
  11031. sysv4.3*)
  11032. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11033. hardcode_shlibpath_var=no
  11034. export_dynamic_flag_spec='-Bexport'
  11035. ;;
  11036. sysv4*MP*)
  11037. if test -d /usr/nec; then
  11038. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11039. hardcode_shlibpath_var=no
  11040. runpath_var=LD_RUN_PATH
  11041. hardcode_runpath_var=yes
  11042. ld_shlibs=yes
  11043. fi
  11044. ;;
  11045. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11046. no_undefined_flag='$wl-z,text'
  11047. archive_cmds_need_lc=no
  11048. hardcode_shlibpath_var=no
  11049. runpath_var='LD_RUN_PATH'
  11050. if test yes = "$GCC"; then
  11051. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11052. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11053. else
  11054. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11055. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11056. fi
  11057. ;;
  11058. sysv5* | sco3.2v5* | sco5v6*)
  11059. # Note: We CANNOT use -z defs as we might desire, because we do not
  11060. # link with -lc, and that would cause any symbols used from libc to
  11061. # always be unresolved, which means just about no library would
  11062. # ever link correctly. If we're not using GNU ld we use -z text
  11063. # though, which does catch some bad symbols but isn't as heavy-handed
  11064. # as -z defs.
  11065. no_undefined_flag='$wl-z,text'
  11066. allow_undefined_flag='$wl-z,nodefs'
  11067. archive_cmds_need_lc=no
  11068. hardcode_shlibpath_var=no
  11069. hardcode_libdir_flag_spec='$wl-R,$libdir'
  11070. hardcode_libdir_separator=':'
  11071. link_all_deplibs=yes
  11072. export_dynamic_flag_spec='$wl-Bexport'
  11073. runpath_var='LD_RUN_PATH'
  11074. if test yes = "$GCC"; then
  11075. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11076. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11077. else
  11078. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11079. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11080. fi
  11081. ;;
  11082. uts4*)
  11083. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11084. hardcode_libdir_flag_spec='-L$libdir'
  11085. hardcode_shlibpath_var=no
  11086. ;;
  11087. *)
  11088. ld_shlibs=no
  11089. ;;
  11090. esac
  11091. if test sni = "$host_vendor"; then
  11092. case $host in
  11093. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11094. export_dynamic_flag_spec='$wl-Blargedynsym'
  11095. ;;
  11096. esac
  11097. fi
  11098. fi
  11099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11100. $as_echo "$ld_shlibs" >&6; }
  11101. test no = "$ld_shlibs" && can_build_shared=no
  11102. with_gnu_ld=$with_gnu_ld
  11103. #
  11104. # Do we need to explicitly link libc?
  11105. #
  11106. case "x$archive_cmds_need_lc" in
  11107. x|xyes)
  11108. # Assume -lc should be added
  11109. archive_cmds_need_lc=yes
  11110. if test yes,yes = "$GCC,$enable_shared"; then
  11111. case $archive_cmds in
  11112. *'~'*)
  11113. # FIXME: we may have to deal with multi-command sequences.
  11114. ;;
  11115. '$CC '*)
  11116. # Test whether the compiler implicitly links with -lc since on some
  11117. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11118. # to ld, don't add -lc before -lgcc.
  11119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11120. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11121. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  11122. $as_echo_n "(cached) " >&6
  11123. else
  11124. $RM conftest*
  11125. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11126. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11127. (eval $ac_compile) 2>&5
  11128. ac_status=$?
  11129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11130. test $ac_status = 0; } 2>conftest.err; then
  11131. soname=conftest
  11132. lib=conftest
  11133. libobjs=conftest.$ac_objext
  11134. deplibs=
  11135. wl=$lt_prog_compiler_wl
  11136. pic_flag=$lt_prog_compiler_pic
  11137. compiler_flags=-v
  11138. linker_flags=-v
  11139. verstring=
  11140. output_objdir=.
  11141. libname=conftest
  11142. lt_save_allow_undefined_flag=$allow_undefined_flag
  11143. allow_undefined_flag=
  11144. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11145. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11146. ac_status=$?
  11147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11148. test $ac_status = 0; }
  11149. then
  11150. lt_cv_archive_cmds_need_lc=no
  11151. else
  11152. lt_cv_archive_cmds_need_lc=yes
  11153. fi
  11154. allow_undefined_flag=$lt_save_allow_undefined_flag
  11155. else
  11156. cat conftest.err 1>&5
  11157. fi
  11158. $RM conftest*
  11159. fi
  11160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11161. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  11162. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11163. ;;
  11164. esac
  11165. fi
  11166. ;;
  11167. esac
  11168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11169. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11170. if test yes = "$GCC"; then
  11171. case $host_os in
  11172. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  11173. *) lt_awk_arg='/^libraries:/' ;;
  11174. esac
  11175. case $host_os in
  11176. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  11177. *) lt_sed_strip_eq='s|=/|/|g' ;;
  11178. esac
  11179. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11180. case $lt_search_path_spec in
  11181. *\;*)
  11182. # if the path contains ";" then we assume it to be the separator
  11183. # otherwise default to the standard path separator (i.e. ":") - it is
  11184. # assumed that no part of a normal pathname contains ";" but that should
  11185. # okay in the real world where ";" in dirpaths is itself problematic.
  11186. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11187. ;;
  11188. *)
  11189. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11190. ;;
  11191. esac
  11192. # Ok, now we have the path, separated by spaces, we can step through it
  11193. # and add multilib dir if necessary...
  11194. lt_tmp_lt_search_path_spec=
  11195. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11196. # ...but if some path component already ends with the multilib dir we assume
  11197. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  11198. case "$lt_multi_os_dir; $lt_search_path_spec " in
  11199. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  11200. lt_multi_os_dir=
  11201. ;;
  11202. esac
  11203. for lt_sys_path in $lt_search_path_spec; do
  11204. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  11205. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  11206. elif test -n "$lt_multi_os_dir"; then
  11207. test -d "$lt_sys_path" && \
  11208. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11209. fi
  11210. done
  11211. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11212. BEGIN {RS = " "; FS = "/|\n";} {
  11213. lt_foo = "";
  11214. lt_count = 0;
  11215. for (lt_i = NF; lt_i > 0; lt_i--) {
  11216. if ($lt_i != "" && $lt_i != ".") {
  11217. if ($lt_i == "..") {
  11218. lt_count++;
  11219. } else {
  11220. if (lt_count == 0) {
  11221. lt_foo = "/" $lt_i lt_foo;
  11222. } else {
  11223. lt_count--;
  11224. }
  11225. }
  11226. }
  11227. }
  11228. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11229. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11230. }'`
  11231. # AWK program above erroneously prepends '/' to C:/dos/paths
  11232. # for these hosts.
  11233. case $host_os in
  11234. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11235. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  11236. esac
  11237. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11238. else
  11239. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11240. fi
  11241. library_names_spec=
  11242. libname_spec='lib$name'
  11243. soname_spec=
  11244. shrext_cmds=.so
  11245. postinstall_cmds=
  11246. postuninstall_cmds=
  11247. finish_cmds=
  11248. finish_eval=
  11249. shlibpath_var=
  11250. shlibpath_overrides_runpath=unknown
  11251. version_type=none
  11252. dynamic_linker="$host_os ld.so"
  11253. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11254. need_lib_prefix=unknown
  11255. hardcode_into_libs=no
  11256. # when you set need_version to no, make sure it does not cause -set_version
  11257. # flags to be left without arguments
  11258. need_version=unknown
  11259. case $host_os in
  11260. aix3*)
  11261. version_type=linux # correct to gnu/linux during the next big refactor
  11262. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  11263. shlibpath_var=LIBPATH
  11264. # AIX 3 has no versioning support, so we append a major version to the name.
  11265. soname_spec='$libname$release$shared_ext$major'
  11266. ;;
  11267. aix[4-9]*)
  11268. version_type=linux # correct to gnu/linux during the next big refactor
  11269. need_lib_prefix=no
  11270. need_version=no
  11271. hardcode_into_libs=yes
  11272. if test ia64 = "$host_cpu"; then
  11273. # AIX 5 supports IA64
  11274. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  11275. shlibpath_var=LD_LIBRARY_PATH
  11276. else
  11277. # With GCC up to 2.95.x, collect2 would create an import file
  11278. # for dependence libraries. The import file would start with
  11279. # the line '#! .'. This would cause the generated library to
  11280. # depend on '.', always an invalid library. This was fixed in
  11281. # development snapshots of GCC prior to 3.0.
  11282. case $host_os in
  11283. aix4 | aix4.[01] | aix4.[01].*)
  11284. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11285. echo ' yes '
  11286. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  11287. :
  11288. else
  11289. can_build_shared=no
  11290. fi
  11291. ;;
  11292. esac
  11293. # Using Import Files as archive members, it is possible to support
  11294. # filename-based versioning of shared library archives on AIX. While
  11295. # this would work for both with and without runtime linking, it will
  11296. # prevent static linking of such archives. So we do filename-based
  11297. # shared library versioning with .so extension only, which is used
  11298. # when both runtime linking and shared linking is enabled.
  11299. # Unfortunately, runtime linking may impact performance, so we do
  11300. # not want this to be the default eventually. Also, we use the
  11301. # versioned .so libs for executables only if there is the -brtl
  11302. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  11303. # To allow for filename-based versioning support, we need to create
  11304. # libNAME.so.V as an archive file, containing:
  11305. # *) an Import File, referring to the versioned filename of the
  11306. # archive as well as the shared archive member, telling the
  11307. # bitwidth (32 or 64) of that shared object, and providing the
  11308. # list of exported symbols of that shared object, eventually
  11309. # decorated with the 'weak' keyword
  11310. # *) the shared object with the F_LOADONLY flag set, to really avoid
  11311. # it being seen by the linker.
  11312. # At run time we better use the real file rather than another symlink,
  11313. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  11314. case $with_aix_soname,$aix_use_runtimelinking in
  11315. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  11316. # soname into executable. Probably we can add versioning support to
  11317. # collect2, so additional links can be useful in future.
  11318. aix,yes) # traditional libtool
  11319. dynamic_linker='AIX unversionable lib.so'
  11320. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11321. # instead of lib<name>.a to let people know that these are not
  11322. # typical AIX shared libraries.
  11323. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11324. ;;
  11325. aix,no) # traditional AIX only
  11326. dynamic_linker='AIX lib.a(lib.so.V)'
  11327. # We preserve .a as extension for shared libraries through AIX4.2
  11328. # and later when we are not doing run time linking.
  11329. library_names_spec='$libname$release.a $libname.a'
  11330. soname_spec='$libname$release$shared_ext$major'
  11331. ;;
  11332. svr4,*) # full svr4 only
  11333. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  11334. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11335. # We do not specify a path in Import Files, so LIBPATH fires.
  11336. shlibpath_overrides_runpath=yes
  11337. ;;
  11338. *,yes) # both, prefer svr4
  11339. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  11340. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11341. # unpreferred sharedlib libNAME.a needs extra handling
  11342. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  11343. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  11344. # We do not specify a path in Import Files, so LIBPATH fires.
  11345. shlibpath_overrides_runpath=yes
  11346. ;;
  11347. *,no) # both, prefer aix
  11348. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  11349. library_names_spec='$libname$release.a $libname.a'
  11350. soname_spec='$libname$release$shared_ext$major'
  11351. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  11352. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  11353. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  11354. ;;
  11355. esac
  11356. shlibpath_var=LIBPATH
  11357. fi
  11358. ;;
  11359. amigaos*)
  11360. case $host_cpu in
  11361. powerpc)
  11362. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11363. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11364. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11365. ;;
  11366. m68k)
  11367. library_names_spec='$libname.ixlibrary $libname.a'
  11368. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11369. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  11370. ;;
  11371. esac
  11372. ;;
  11373. beos*)
  11374. library_names_spec='$libname$shared_ext'
  11375. dynamic_linker="$host_os ld.so"
  11376. shlibpath_var=LIBRARY_PATH
  11377. ;;
  11378. bsdi[45]*)
  11379. version_type=linux # correct to gnu/linux during the next big refactor
  11380. need_version=no
  11381. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11382. soname_spec='$libname$release$shared_ext$major'
  11383. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11384. shlibpath_var=LD_LIBRARY_PATH
  11385. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11386. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11387. # the default ld.so.conf also contains /usr/contrib/lib and
  11388. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11389. # libtool to hard-code these into programs
  11390. ;;
  11391. cygwin* | mingw* | pw32* | cegcc*)
  11392. version_type=windows
  11393. shrext_cmds=.dll
  11394. need_version=no
  11395. need_lib_prefix=no
  11396. case $GCC,$cc_basename in
  11397. yes,*)
  11398. # gcc
  11399. library_names_spec='$libname.dll.a'
  11400. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11401. postinstall_cmds='base_file=`basename \$file`~
  11402. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11403. dldir=$destdir/`dirname \$dlpath`~
  11404. test -d \$dldir || mkdir -p \$dldir~
  11405. $install_prog $dir/$dlname \$dldir/$dlname~
  11406. chmod a+x \$dldir/$dlname~
  11407. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11408. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11409. fi'
  11410. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11411. dlpath=$dir/\$dldll~
  11412. $RM \$dlpath'
  11413. shlibpath_overrides_runpath=yes
  11414. case $host_os in
  11415. cygwin*)
  11416. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11417. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11418. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11419. ;;
  11420. mingw* | cegcc*)
  11421. # MinGW DLLs use traditional 'lib' prefix
  11422. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11423. ;;
  11424. pw32*)
  11425. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11426. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11427. ;;
  11428. esac
  11429. dynamic_linker='Win32 ld.exe'
  11430. ;;
  11431. *,cl*)
  11432. # Native MSVC
  11433. libname_spec='$name'
  11434. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11435. library_names_spec='$libname.dll.lib'
  11436. case $build_os in
  11437. mingw*)
  11438. sys_lib_search_path_spec=
  11439. lt_save_ifs=$IFS
  11440. IFS=';'
  11441. for lt_path in $LIB
  11442. do
  11443. IFS=$lt_save_ifs
  11444. # Let DOS variable expansion print the short 8.3 style file name.
  11445. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11446. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11447. done
  11448. IFS=$lt_save_ifs
  11449. # Convert to MSYS style.
  11450. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11451. ;;
  11452. cygwin*)
  11453. # Convert to unix form, then to dos form, then back to unix form
  11454. # but this time dos style (no spaces!) so that the unix form looks
  11455. # like /cygdrive/c/PROGRA~1:/cygdr...
  11456. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11457. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11458. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11459. ;;
  11460. *)
  11461. sys_lib_search_path_spec=$LIB
  11462. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11463. # It is most probably a Windows format PATH.
  11464. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11465. else
  11466. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11467. fi
  11468. # FIXME: find the short name or the path components, as spaces are
  11469. # common. (e.g. "Program Files" -> "PROGRA~1")
  11470. ;;
  11471. esac
  11472. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11473. postinstall_cmds='base_file=`basename \$file`~
  11474. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11475. dldir=$destdir/`dirname \$dlpath`~
  11476. test -d \$dldir || mkdir -p \$dldir~
  11477. $install_prog $dir/$dlname \$dldir/$dlname'
  11478. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11479. dlpath=$dir/\$dldll~
  11480. $RM \$dlpath'
  11481. shlibpath_overrides_runpath=yes
  11482. dynamic_linker='Win32 link.exe'
  11483. ;;
  11484. *)
  11485. # Assume MSVC wrapper
  11486. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  11487. dynamic_linker='Win32 ld.exe'
  11488. ;;
  11489. esac
  11490. # FIXME: first we should search . and the directory the executable is in
  11491. shlibpath_var=PATH
  11492. ;;
  11493. darwin* | rhapsody*)
  11494. dynamic_linker="$host_os dyld"
  11495. version_type=darwin
  11496. need_lib_prefix=no
  11497. need_version=no
  11498. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  11499. soname_spec='$libname$release$major$shared_ext'
  11500. shlibpath_overrides_runpath=yes
  11501. shlibpath_var=DYLD_LIBRARY_PATH
  11502. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11503. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11504. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11505. ;;
  11506. dgux*)
  11507. version_type=linux # correct to gnu/linux during the next big refactor
  11508. need_lib_prefix=no
  11509. need_version=no
  11510. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11511. soname_spec='$libname$release$shared_ext$major'
  11512. shlibpath_var=LD_LIBRARY_PATH
  11513. ;;
  11514. freebsd* | dragonfly*)
  11515. # DragonFly does not have aout. When/if they implement a new
  11516. # versioning mechanism, adjust this.
  11517. if test -x /usr/bin/objformat; then
  11518. objformat=`/usr/bin/objformat`
  11519. else
  11520. case $host_os in
  11521. freebsd[23].*) objformat=aout ;;
  11522. *) objformat=elf ;;
  11523. esac
  11524. fi
  11525. version_type=freebsd-$objformat
  11526. case $version_type in
  11527. freebsd-elf*)
  11528. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11529. soname_spec='$libname$release$shared_ext$major'
  11530. need_version=no
  11531. need_lib_prefix=no
  11532. ;;
  11533. freebsd-*)
  11534. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11535. need_version=yes
  11536. ;;
  11537. esac
  11538. shlibpath_var=LD_LIBRARY_PATH
  11539. case $host_os in
  11540. freebsd2.*)
  11541. shlibpath_overrides_runpath=yes
  11542. ;;
  11543. freebsd3.[01]* | freebsdelf3.[01]*)
  11544. shlibpath_overrides_runpath=yes
  11545. hardcode_into_libs=yes
  11546. ;;
  11547. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11548. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11549. shlibpath_overrides_runpath=no
  11550. hardcode_into_libs=yes
  11551. ;;
  11552. *) # from 4.6 on, and DragonFly
  11553. shlibpath_overrides_runpath=yes
  11554. hardcode_into_libs=yes
  11555. ;;
  11556. esac
  11557. ;;
  11558. haiku*)
  11559. version_type=linux # correct to gnu/linux during the next big refactor
  11560. need_lib_prefix=no
  11561. need_version=no
  11562. dynamic_linker="$host_os runtime_loader"
  11563. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11564. soname_spec='$libname$release$shared_ext$major'
  11565. shlibpath_var=LIBRARY_PATH
  11566. shlibpath_overrides_runpath=no
  11567. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11568. hardcode_into_libs=yes
  11569. ;;
  11570. hpux9* | hpux10* | hpux11*)
  11571. # Give a soname corresponding to the major version so that dld.sl refuses to
  11572. # link against other versions.
  11573. version_type=sunos
  11574. need_lib_prefix=no
  11575. need_version=no
  11576. case $host_cpu in
  11577. ia64*)
  11578. shrext_cmds='.so'
  11579. hardcode_into_libs=yes
  11580. dynamic_linker="$host_os dld.so"
  11581. shlibpath_var=LD_LIBRARY_PATH
  11582. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11583. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11584. soname_spec='$libname$release$shared_ext$major'
  11585. if test 32 = "$HPUX_IA64_MODE"; then
  11586. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11587. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11588. else
  11589. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11590. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11591. fi
  11592. ;;
  11593. hppa*64*)
  11594. shrext_cmds='.sl'
  11595. hardcode_into_libs=yes
  11596. dynamic_linker="$host_os dld.sl"
  11597. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11598. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11599. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11600. soname_spec='$libname$release$shared_ext$major'
  11601. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11602. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11603. ;;
  11604. *)
  11605. shrext_cmds='.sl'
  11606. dynamic_linker="$host_os dld.sl"
  11607. shlibpath_var=SHLIB_PATH
  11608. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11609. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11610. soname_spec='$libname$release$shared_ext$major'
  11611. ;;
  11612. esac
  11613. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11614. postinstall_cmds='chmod 555 $lib'
  11615. # or fails outright, so override atomically:
  11616. install_override_mode=555
  11617. ;;
  11618. interix[3-9]*)
  11619. version_type=linux # correct to gnu/linux during the next big refactor
  11620. need_lib_prefix=no
  11621. need_version=no
  11622. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11623. soname_spec='$libname$release$shared_ext$major'
  11624. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11625. shlibpath_var=LD_LIBRARY_PATH
  11626. shlibpath_overrides_runpath=no
  11627. hardcode_into_libs=yes
  11628. ;;
  11629. irix5* | irix6* | nonstopux*)
  11630. case $host_os in
  11631. nonstopux*) version_type=nonstopux ;;
  11632. *)
  11633. if test yes = "$lt_cv_prog_gnu_ld"; then
  11634. version_type=linux # correct to gnu/linux during the next big refactor
  11635. else
  11636. version_type=irix
  11637. fi ;;
  11638. esac
  11639. need_lib_prefix=no
  11640. need_version=no
  11641. soname_spec='$libname$release$shared_ext$major'
  11642. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11643. case $host_os in
  11644. irix5* | nonstopux*)
  11645. libsuff= shlibsuff=
  11646. ;;
  11647. *)
  11648. case $LD in # libtool.m4 will add one of these switches to LD
  11649. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11650. libsuff= shlibsuff= libmagic=32-bit;;
  11651. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11652. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11653. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11654. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11655. *) libsuff= shlibsuff= libmagic=never-match;;
  11656. esac
  11657. ;;
  11658. esac
  11659. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11660. shlibpath_overrides_runpath=no
  11661. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11662. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11663. hardcode_into_libs=yes
  11664. ;;
  11665. # No shared lib support for Linux oldld, aout, or coff.
  11666. linux*oldld* | linux*aout* | linux*coff*)
  11667. dynamic_linker=no
  11668. ;;
  11669. linux*android*)
  11670. version_type=none # Android doesn't support versioned libraries.
  11671. need_lib_prefix=no
  11672. need_version=no
  11673. library_names_spec='$libname$release$shared_ext'
  11674. soname_spec='$libname$release$shared_ext'
  11675. finish_cmds=
  11676. shlibpath_var=LD_LIBRARY_PATH
  11677. shlibpath_overrides_runpath=yes
  11678. # This implies no fast_install, which is unacceptable.
  11679. # Some rework will be needed to allow for fast_install
  11680. # before this can be enabled.
  11681. hardcode_into_libs=yes
  11682. dynamic_linker='Android linker'
  11683. # Don't embed -rpath directories since the linker doesn't support them.
  11684. hardcode_libdir_flag_spec='-L$libdir'
  11685. ;;
  11686. # This must be glibc/ELF.
  11687. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11688. version_type=linux # correct to gnu/linux during the next big refactor
  11689. need_lib_prefix=no
  11690. need_version=no
  11691. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11692. soname_spec='$libname$release$shared_ext$major'
  11693. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11694. shlibpath_var=LD_LIBRARY_PATH
  11695. shlibpath_overrides_runpath=no
  11696. # Some binutils ld are patched to set DT_RUNPATH
  11697. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  11698. $as_echo_n "(cached) " >&6
  11699. else
  11700. lt_cv_shlibpath_overrides_runpath=no
  11701. save_LDFLAGS=$LDFLAGS
  11702. save_libdir=$libdir
  11703. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11704. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11706. /* end confdefs.h. */
  11707. int
  11708. main ()
  11709. {
  11710. ;
  11711. return 0;
  11712. }
  11713. _ACEOF
  11714. if ac_fn_c_try_link "$LINENO"; then :
  11715. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11716. lt_cv_shlibpath_overrides_runpath=yes
  11717. fi
  11718. fi
  11719. rm -f core conftest.err conftest.$ac_objext \
  11720. conftest$ac_exeext conftest.$ac_ext
  11721. LDFLAGS=$save_LDFLAGS
  11722. libdir=$save_libdir
  11723. fi
  11724. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11725. # This implies no fast_install, which is unacceptable.
  11726. # Some rework will be needed to allow for fast_install
  11727. # before this can be enabled.
  11728. hardcode_into_libs=yes
  11729. # Ideally, we could use ldconfig to report *all* directores which are
  11730. # searched for libraries, however this is still not possible. Aside from not
  11731. # being certain /sbin/ldconfig is available, command
  11732. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11733. # even though it is searched at run-time. Try to do the best guess by
  11734. # appending ld.so.conf contents (and includes) to the search path.
  11735. if test -f /etc/ld.so.conf; then
  11736. 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' ' '`
  11737. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11738. fi
  11739. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11740. # powerpc, because MkLinux only supported shared libraries with the
  11741. # GNU dynamic linker. Since this was broken with cross compilers,
  11742. # most powerpc-linux boxes support dynamic linking these days and
  11743. # people can always --disable-shared, the test was removed, and we
  11744. # assume the GNU/Linux dynamic linker is in use.
  11745. dynamic_linker='GNU/Linux ld.so'
  11746. ;;
  11747. netbsd*)
  11748. version_type=sunos
  11749. need_lib_prefix=no
  11750. need_version=no
  11751. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11752. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11753. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11754. dynamic_linker='NetBSD (a.out) ld.so'
  11755. else
  11756. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11757. soname_spec='$libname$release$shared_ext$major'
  11758. dynamic_linker='NetBSD ld.elf_so'
  11759. fi
  11760. shlibpath_var=LD_LIBRARY_PATH
  11761. shlibpath_overrides_runpath=yes
  11762. hardcode_into_libs=yes
  11763. ;;
  11764. newsos6)
  11765. version_type=linux # correct to gnu/linux during the next big refactor
  11766. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11767. shlibpath_var=LD_LIBRARY_PATH
  11768. shlibpath_overrides_runpath=yes
  11769. ;;
  11770. *nto* | *qnx*)
  11771. version_type=qnx
  11772. need_lib_prefix=no
  11773. need_version=no
  11774. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11775. soname_spec='$libname$release$shared_ext$major'
  11776. shlibpath_var=LD_LIBRARY_PATH
  11777. shlibpath_overrides_runpath=no
  11778. hardcode_into_libs=yes
  11779. dynamic_linker='ldqnx.so'
  11780. ;;
  11781. openbsd* | bitrig*)
  11782. version_type=sunos
  11783. sys_lib_dlsearch_path_spec=/usr/lib
  11784. need_lib_prefix=no
  11785. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11786. need_version=no
  11787. else
  11788. need_version=yes
  11789. fi
  11790. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11791. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11792. shlibpath_var=LD_LIBRARY_PATH
  11793. shlibpath_overrides_runpath=yes
  11794. ;;
  11795. os2*)
  11796. libname_spec='$name'
  11797. version_type=windows
  11798. shrext_cmds=.dll
  11799. need_version=no
  11800. need_lib_prefix=no
  11801. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11802. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11803. v=$($ECHO $release$versuffix | tr -d .-);
  11804. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11805. $ECHO $n$v`$shared_ext'
  11806. library_names_spec='${libname}_dll.$libext'
  11807. dynamic_linker='OS/2 ld.exe'
  11808. shlibpath_var=BEGINLIBPATH
  11809. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11810. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11811. postinstall_cmds='base_file=`basename \$file`~
  11812. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11813. dldir=$destdir/`dirname \$dlpath`~
  11814. test -d \$dldir || mkdir -p \$dldir~
  11815. $install_prog $dir/$dlname \$dldir/$dlname~
  11816. chmod a+x \$dldir/$dlname~
  11817. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11818. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11819. fi'
  11820. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11821. dlpath=$dir/\$dldll~
  11822. $RM \$dlpath'
  11823. ;;
  11824. osf3* | osf4* | osf5*)
  11825. version_type=osf
  11826. need_lib_prefix=no
  11827. need_version=no
  11828. soname_spec='$libname$release$shared_ext$major'
  11829. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11830. shlibpath_var=LD_LIBRARY_PATH
  11831. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11832. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11833. ;;
  11834. rdos*)
  11835. dynamic_linker=no
  11836. ;;
  11837. solaris*)
  11838. version_type=linux # correct to gnu/linux during the next big refactor
  11839. need_lib_prefix=no
  11840. need_version=no
  11841. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11842. soname_spec='$libname$release$shared_ext$major'
  11843. shlibpath_var=LD_LIBRARY_PATH
  11844. shlibpath_overrides_runpath=yes
  11845. hardcode_into_libs=yes
  11846. # ldd complains unless libraries are executable
  11847. postinstall_cmds='chmod +x $lib'
  11848. ;;
  11849. sunos4*)
  11850. version_type=sunos
  11851. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11852. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11853. shlibpath_var=LD_LIBRARY_PATH
  11854. shlibpath_overrides_runpath=yes
  11855. if test yes = "$with_gnu_ld"; then
  11856. need_lib_prefix=no
  11857. fi
  11858. need_version=yes
  11859. ;;
  11860. sysv4 | sysv4.3*)
  11861. version_type=linux # correct to gnu/linux during the next big refactor
  11862. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11863. soname_spec='$libname$release$shared_ext$major'
  11864. shlibpath_var=LD_LIBRARY_PATH
  11865. case $host_vendor in
  11866. sni)
  11867. shlibpath_overrides_runpath=no
  11868. need_lib_prefix=no
  11869. runpath_var=LD_RUN_PATH
  11870. ;;
  11871. siemens)
  11872. need_lib_prefix=no
  11873. ;;
  11874. motorola)
  11875. need_lib_prefix=no
  11876. need_version=no
  11877. shlibpath_overrides_runpath=no
  11878. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11879. ;;
  11880. esac
  11881. ;;
  11882. sysv4*MP*)
  11883. if test -d /usr/nec; then
  11884. version_type=linux # correct to gnu/linux during the next big refactor
  11885. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11886. soname_spec='$libname$shared_ext.$major'
  11887. shlibpath_var=LD_LIBRARY_PATH
  11888. fi
  11889. ;;
  11890. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11891. version_type=sco
  11892. need_lib_prefix=no
  11893. need_version=no
  11894. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11895. soname_spec='$libname$release$shared_ext$major'
  11896. shlibpath_var=LD_LIBRARY_PATH
  11897. shlibpath_overrides_runpath=yes
  11898. hardcode_into_libs=yes
  11899. if test yes = "$with_gnu_ld"; then
  11900. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11901. else
  11902. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11903. case $host_os in
  11904. sco3.2v5*)
  11905. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11906. ;;
  11907. esac
  11908. fi
  11909. sys_lib_dlsearch_path_spec='/usr/lib'
  11910. ;;
  11911. tpf*)
  11912. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11913. version_type=linux # correct to gnu/linux during the next big refactor
  11914. need_lib_prefix=no
  11915. need_version=no
  11916. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11917. shlibpath_var=LD_LIBRARY_PATH
  11918. shlibpath_overrides_runpath=no
  11919. hardcode_into_libs=yes
  11920. ;;
  11921. uts4*)
  11922. version_type=linux # correct to gnu/linux during the next big refactor
  11923. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11924. soname_spec='$libname$release$shared_ext$major'
  11925. shlibpath_var=LD_LIBRARY_PATH
  11926. ;;
  11927. *)
  11928. dynamic_linker=no
  11929. ;;
  11930. esac
  11931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11932. $as_echo "$dynamic_linker" >&6; }
  11933. test no = "$dynamic_linker" && can_build_shared=no
  11934. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11935. if test yes = "$GCC"; then
  11936. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11937. fi
  11938. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11939. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11940. fi
  11941. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11942. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11943. fi
  11944. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11945. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11946. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11947. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11948. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11949. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11951. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11952. hardcode_action=
  11953. if test -n "$hardcode_libdir_flag_spec" ||
  11954. test -n "$runpath_var" ||
  11955. test yes = "$hardcode_automatic"; then
  11956. # We can hardcode non-existent directories.
  11957. if test no != "$hardcode_direct" &&
  11958. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11959. # have to relink, otherwise we might link with an installed library
  11960. # when we should be linking with a yet-to-be-installed one
  11961. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11962. test no != "$hardcode_minus_L"; then
  11963. # Linking always hardcodes the temporary library directory.
  11964. hardcode_action=relink
  11965. else
  11966. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11967. hardcode_action=immediate
  11968. fi
  11969. else
  11970. # We cannot hardcode anything, or else we can only hardcode existing
  11971. # directories.
  11972. hardcode_action=unsupported
  11973. fi
  11974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11975. $as_echo "$hardcode_action" >&6; }
  11976. if test relink = "$hardcode_action" ||
  11977. test yes = "$inherit_rpath"; then
  11978. # Fast installation is not supported
  11979. enable_fast_install=no
  11980. elif test yes = "$shlibpath_overrides_runpath" ||
  11981. test no = "$enable_shared"; then
  11982. # Fast installation is not necessary
  11983. enable_fast_install=needless
  11984. fi
  11985. if test yes != "$enable_dlopen"; then
  11986. enable_dlopen=unknown
  11987. enable_dlopen_self=unknown
  11988. enable_dlopen_self_static=unknown
  11989. else
  11990. lt_cv_dlopen=no
  11991. lt_cv_dlopen_libs=
  11992. case $host_os in
  11993. beos*)
  11994. lt_cv_dlopen=load_add_on
  11995. lt_cv_dlopen_libs=
  11996. lt_cv_dlopen_self=yes
  11997. ;;
  11998. mingw* | pw32* | cegcc*)
  11999. lt_cv_dlopen=LoadLibrary
  12000. lt_cv_dlopen_libs=
  12001. ;;
  12002. cygwin*)
  12003. lt_cv_dlopen=dlopen
  12004. lt_cv_dlopen_libs=
  12005. ;;
  12006. darwin*)
  12007. # if libdl is installed we need to link against it
  12008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12009. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12010. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12011. $as_echo_n "(cached) " >&6
  12012. else
  12013. ac_check_lib_save_LIBS=$LIBS
  12014. LIBS="-ldl $LIBS"
  12015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12016. /* end confdefs.h. */
  12017. /* Override any GCC internal prototype to avoid an error.
  12018. Use char because int might match the return type of a GCC
  12019. builtin and then its argument prototype would still apply. */
  12020. #ifdef __cplusplus
  12021. extern "C"
  12022. #endif
  12023. char dlopen ();
  12024. int
  12025. main ()
  12026. {
  12027. return dlopen ();
  12028. ;
  12029. return 0;
  12030. }
  12031. _ACEOF
  12032. if ac_fn_c_try_link "$LINENO"; then :
  12033. ac_cv_lib_dl_dlopen=yes
  12034. else
  12035. ac_cv_lib_dl_dlopen=no
  12036. fi
  12037. rm -f core conftest.err conftest.$ac_objext \
  12038. conftest$ac_exeext conftest.$ac_ext
  12039. LIBS=$ac_check_lib_save_LIBS
  12040. fi
  12041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12042. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12043. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12044. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12045. else
  12046. lt_cv_dlopen=dyld
  12047. lt_cv_dlopen_libs=
  12048. lt_cv_dlopen_self=yes
  12049. fi
  12050. ;;
  12051. tpf*)
  12052. # Don't try to run any link tests for TPF. We know it's impossible
  12053. # because TPF is a cross-compiler, and we know how we open DSOs.
  12054. lt_cv_dlopen=dlopen
  12055. lt_cv_dlopen_libs=
  12056. lt_cv_dlopen_self=no
  12057. ;;
  12058. *)
  12059. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12060. if test "x$ac_cv_func_shl_load" = xyes; then :
  12061. lt_cv_dlopen=shl_load
  12062. else
  12063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12064. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  12065. if ${ac_cv_lib_dld_shl_load+:} false; then :
  12066. $as_echo_n "(cached) " >&6
  12067. else
  12068. ac_check_lib_save_LIBS=$LIBS
  12069. LIBS="-ldld $LIBS"
  12070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12071. /* end confdefs.h. */
  12072. /* Override any GCC internal prototype to avoid an error.
  12073. Use char because int might match the return type of a GCC
  12074. builtin and then its argument prototype would still apply. */
  12075. #ifdef __cplusplus
  12076. extern "C"
  12077. #endif
  12078. char shl_load ();
  12079. int
  12080. main ()
  12081. {
  12082. return shl_load ();
  12083. ;
  12084. return 0;
  12085. }
  12086. _ACEOF
  12087. if ac_fn_c_try_link "$LINENO"; then :
  12088. ac_cv_lib_dld_shl_load=yes
  12089. else
  12090. ac_cv_lib_dld_shl_load=no
  12091. fi
  12092. rm -f core conftest.err conftest.$ac_objext \
  12093. conftest$ac_exeext conftest.$ac_ext
  12094. LIBS=$ac_check_lib_save_LIBS
  12095. fi
  12096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12097. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  12098. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  12099. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  12100. else
  12101. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12102. if test "x$ac_cv_func_dlopen" = xyes; then :
  12103. lt_cv_dlopen=dlopen
  12104. else
  12105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12106. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12107. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12108. $as_echo_n "(cached) " >&6
  12109. else
  12110. ac_check_lib_save_LIBS=$LIBS
  12111. LIBS="-ldl $LIBS"
  12112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12113. /* end confdefs.h. */
  12114. /* Override any GCC internal prototype to avoid an error.
  12115. Use char because int might match the return type of a GCC
  12116. builtin and then its argument prototype would still apply. */
  12117. #ifdef __cplusplus
  12118. extern "C"
  12119. #endif
  12120. char dlopen ();
  12121. int
  12122. main ()
  12123. {
  12124. return dlopen ();
  12125. ;
  12126. return 0;
  12127. }
  12128. _ACEOF
  12129. if ac_fn_c_try_link "$LINENO"; then :
  12130. ac_cv_lib_dl_dlopen=yes
  12131. else
  12132. ac_cv_lib_dl_dlopen=no
  12133. fi
  12134. rm -f core conftest.err conftest.$ac_objext \
  12135. conftest$ac_exeext conftest.$ac_ext
  12136. LIBS=$ac_check_lib_save_LIBS
  12137. fi
  12138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12139. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12140. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12141. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12142. else
  12143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12144. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  12145. if ${ac_cv_lib_svld_dlopen+:} false; then :
  12146. $as_echo_n "(cached) " >&6
  12147. else
  12148. ac_check_lib_save_LIBS=$LIBS
  12149. LIBS="-lsvld $LIBS"
  12150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12151. /* end confdefs.h. */
  12152. /* Override any GCC internal prototype to avoid an error.
  12153. Use char because int might match the return type of a GCC
  12154. builtin and then its argument prototype would still apply. */
  12155. #ifdef __cplusplus
  12156. extern "C"
  12157. #endif
  12158. char dlopen ();
  12159. int
  12160. main ()
  12161. {
  12162. return dlopen ();
  12163. ;
  12164. return 0;
  12165. }
  12166. _ACEOF
  12167. if ac_fn_c_try_link "$LINENO"; then :
  12168. ac_cv_lib_svld_dlopen=yes
  12169. else
  12170. ac_cv_lib_svld_dlopen=no
  12171. fi
  12172. rm -f core conftest.err conftest.$ac_objext \
  12173. conftest$ac_exeext conftest.$ac_ext
  12174. LIBS=$ac_check_lib_save_LIBS
  12175. fi
  12176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12177. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  12178. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  12179. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  12180. else
  12181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12182. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  12183. if ${ac_cv_lib_dld_dld_link+:} false; then :
  12184. $as_echo_n "(cached) " >&6
  12185. else
  12186. ac_check_lib_save_LIBS=$LIBS
  12187. LIBS="-ldld $LIBS"
  12188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12189. /* end confdefs.h. */
  12190. /* Override any GCC internal prototype to avoid an error.
  12191. Use char because int might match the return type of a GCC
  12192. builtin and then its argument prototype would still apply. */
  12193. #ifdef __cplusplus
  12194. extern "C"
  12195. #endif
  12196. char dld_link ();
  12197. int
  12198. main ()
  12199. {
  12200. return dld_link ();
  12201. ;
  12202. return 0;
  12203. }
  12204. _ACEOF
  12205. if ac_fn_c_try_link "$LINENO"; then :
  12206. ac_cv_lib_dld_dld_link=yes
  12207. else
  12208. ac_cv_lib_dld_dld_link=no
  12209. fi
  12210. rm -f core conftest.err conftest.$ac_objext \
  12211. conftest$ac_exeext conftest.$ac_ext
  12212. LIBS=$ac_check_lib_save_LIBS
  12213. fi
  12214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12215. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12216. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  12217. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  12218. fi
  12219. fi
  12220. fi
  12221. fi
  12222. fi
  12223. fi
  12224. ;;
  12225. esac
  12226. if test no = "$lt_cv_dlopen"; then
  12227. enable_dlopen=no
  12228. else
  12229. enable_dlopen=yes
  12230. fi
  12231. case $lt_cv_dlopen in
  12232. dlopen)
  12233. save_CPPFLAGS=$CPPFLAGS
  12234. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12235. save_LDFLAGS=$LDFLAGS
  12236. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12237. save_LIBS=$LIBS
  12238. LIBS="$lt_cv_dlopen_libs $LIBS"
  12239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12240. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12241. if ${lt_cv_dlopen_self+:} false; then :
  12242. $as_echo_n "(cached) " >&6
  12243. else
  12244. if test yes = "$cross_compiling"; then :
  12245. lt_cv_dlopen_self=cross
  12246. else
  12247. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12248. lt_status=$lt_dlunknown
  12249. cat > conftest.$ac_ext <<_LT_EOF
  12250. #line $LINENO "configure"
  12251. #include "confdefs.h"
  12252. #if HAVE_DLFCN_H
  12253. #include <dlfcn.h>
  12254. #endif
  12255. #include <stdio.h>
  12256. #ifdef RTLD_GLOBAL
  12257. # define LT_DLGLOBAL RTLD_GLOBAL
  12258. #else
  12259. # ifdef DL_GLOBAL
  12260. # define LT_DLGLOBAL DL_GLOBAL
  12261. # else
  12262. # define LT_DLGLOBAL 0
  12263. # endif
  12264. #endif
  12265. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12266. find out it does not work in some platform. */
  12267. #ifndef LT_DLLAZY_OR_NOW
  12268. # ifdef RTLD_LAZY
  12269. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12270. # else
  12271. # ifdef DL_LAZY
  12272. # define LT_DLLAZY_OR_NOW DL_LAZY
  12273. # else
  12274. # ifdef RTLD_NOW
  12275. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12276. # else
  12277. # ifdef DL_NOW
  12278. # define LT_DLLAZY_OR_NOW DL_NOW
  12279. # else
  12280. # define LT_DLLAZY_OR_NOW 0
  12281. # endif
  12282. # endif
  12283. # endif
  12284. # endif
  12285. #endif
  12286. /* When -fvisibility=hidden is used, assume the code has been annotated
  12287. correspondingly for the symbols needed. */
  12288. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12289. int fnord () __attribute__((visibility("default")));
  12290. #endif
  12291. int fnord () { return 42; }
  12292. int main ()
  12293. {
  12294. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12295. int status = $lt_dlunknown;
  12296. if (self)
  12297. {
  12298. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12299. else
  12300. {
  12301. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12302. else puts (dlerror ());
  12303. }
  12304. /* dlclose (self); */
  12305. }
  12306. else
  12307. puts (dlerror ());
  12308. return status;
  12309. }
  12310. _LT_EOF
  12311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12312. (eval $ac_link) 2>&5
  12313. ac_status=$?
  12314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12315. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12316. (./conftest; exit; ) >&5 2>/dev/null
  12317. lt_status=$?
  12318. case x$lt_status in
  12319. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12320. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12321. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12322. esac
  12323. else :
  12324. # compilation failed
  12325. lt_cv_dlopen_self=no
  12326. fi
  12327. fi
  12328. rm -fr conftest*
  12329. fi
  12330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12331. $as_echo "$lt_cv_dlopen_self" >&6; }
  12332. if test yes = "$lt_cv_dlopen_self"; then
  12333. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12335. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12336. if ${lt_cv_dlopen_self_static+:} false; then :
  12337. $as_echo_n "(cached) " >&6
  12338. else
  12339. if test yes = "$cross_compiling"; then :
  12340. lt_cv_dlopen_self_static=cross
  12341. else
  12342. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12343. lt_status=$lt_dlunknown
  12344. cat > conftest.$ac_ext <<_LT_EOF
  12345. #line $LINENO "configure"
  12346. #include "confdefs.h"
  12347. #if HAVE_DLFCN_H
  12348. #include <dlfcn.h>
  12349. #endif
  12350. #include <stdio.h>
  12351. #ifdef RTLD_GLOBAL
  12352. # define LT_DLGLOBAL RTLD_GLOBAL
  12353. #else
  12354. # ifdef DL_GLOBAL
  12355. # define LT_DLGLOBAL DL_GLOBAL
  12356. # else
  12357. # define LT_DLGLOBAL 0
  12358. # endif
  12359. #endif
  12360. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12361. find out it does not work in some platform. */
  12362. #ifndef LT_DLLAZY_OR_NOW
  12363. # ifdef RTLD_LAZY
  12364. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12365. # else
  12366. # ifdef DL_LAZY
  12367. # define LT_DLLAZY_OR_NOW DL_LAZY
  12368. # else
  12369. # ifdef RTLD_NOW
  12370. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12371. # else
  12372. # ifdef DL_NOW
  12373. # define LT_DLLAZY_OR_NOW DL_NOW
  12374. # else
  12375. # define LT_DLLAZY_OR_NOW 0
  12376. # endif
  12377. # endif
  12378. # endif
  12379. # endif
  12380. #endif
  12381. /* When -fvisibility=hidden is used, assume the code has been annotated
  12382. correspondingly for the symbols needed. */
  12383. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12384. int fnord () __attribute__((visibility("default")));
  12385. #endif
  12386. int fnord () { return 42; }
  12387. int main ()
  12388. {
  12389. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12390. int status = $lt_dlunknown;
  12391. if (self)
  12392. {
  12393. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12394. else
  12395. {
  12396. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12397. else puts (dlerror ());
  12398. }
  12399. /* dlclose (self); */
  12400. }
  12401. else
  12402. puts (dlerror ());
  12403. return status;
  12404. }
  12405. _LT_EOF
  12406. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12407. (eval $ac_link) 2>&5
  12408. ac_status=$?
  12409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12410. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12411. (./conftest; exit; ) >&5 2>/dev/null
  12412. lt_status=$?
  12413. case x$lt_status in
  12414. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12415. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12416. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12417. esac
  12418. else :
  12419. # compilation failed
  12420. lt_cv_dlopen_self_static=no
  12421. fi
  12422. fi
  12423. rm -fr conftest*
  12424. fi
  12425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12426. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12427. fi
  12428. CPPFLAGS=$save_CPPFLAGS
  12429. LDFLAGS=$save_LDFLAGS
  12430. LIBS=$save_LIBS
  12431. ;;
  12432. esac
  12433. case $lt_cv_dlopen_self in
  12434. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12435. *) enable_dlopen_self=unknown ;;
  12436. esac
  12437. case $lt_cv_dlopen_self_static in
  12438. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12439. *) enable_dlopen_self_static=unknown ;;
  12440. esac
  12441. fi
  12442. striplib=
  12443. old_striplib=
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12445. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12446. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12447. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12448. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12450. $as_echo "yes" >&6; }
  12451. else
  12452. # FIXME - insert some real tests, host_os isn't really good enough
  12453. case $host_os in
  12454. darwin*)
  12455. if test -n "$STRIP"; then
  12456. striplib="$STRIP -x"
  12457. old_striplib="$STRIP -S"
  12458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12459. $as_echo "yes" >&6; }
  12460. else
  12461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12462. $as_echo "no" >&6; }
  12463. fi
  12464. ;;
  12465. *)
  12466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12467. $as_echo "no" >&6; }
  12468. ;;
  12469. esac
  12470. fi
  12471. # Report what library types will actually be built
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12473. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12475. $as_echo "$can_build_shared" >&6; }
  12476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12477. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12478. test no = "$can_build_shared" && enable_shared=no
  12479. # On AIX, shared libraries and static libraries use the same namespace, and
  12480. # are all built from PIC.
  12481. case $host_os in
  12482. aix3*)
  12483. test yes = "$enable_shared" && enable_static=no
  12484. if test -n "$RANLIB"; then
  12485. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12486. postinstall_cmds='$RANLIB $lib'
  12487. fi
  12488. ;;
  12489. aix[4-9]*)
  12490. if test ia64 != "$host_cpu"; then
  12491. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  12492. yes,aix,yes) ;; # shared object as lib.so file only
  12493. yes,svr4,*) ;; # shared object as lib.so archive member only
  12494. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  12495. esac
  12496. fi
  12497. ;;
  12498. esac
  12499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12500. $as_echo "$enable_shared" >&6; }
  12501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12502. $as_echo_n "checking whether to build static libraries... " >&6; }
  12503. # Make sure either enable_shared or enable_static is yes.
  12504. test yes = "$enable_shared" || enable_static=yes
  12505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12506. $as_echo "$enable_static" >&6; }
  12507. fi
  12508. ac_ext=c
  12509. ac_cpp='$CPP $CPPFLAGS'
  12510. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12511. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12512. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12513. CC=$lt_save_CC
  12514. ac_config_commands="$ac_config_commands libtool"
  12515. # Only expand once:
  12516. if test x"$modules" = xdisabled
  12517. then
  12518. echo "Modules disabled."
  12519. else
  12520. # Enable module support in source code
  12521. $as_echo "#define USE_MODULES 1" >>confdefs.h
  12522. # Export the module file suffix as LT_MODULE_EXT
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
  12524. $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
  12525. if ${libltdl_cv_shlibext+:} false; then :
  12526. $as_echo_n "(cached) " >&6
  12527. else
  12528. module=yes
  12529. eval libltdl_cv_shlibext=$shrext_cmds
  12530. module=no
  12531. eval libltdl_cv_shrext=$shrext_cmds
  12532. fi
  12533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
  12534. $as_echo "$libltdl_cv_shlibext" >&6; }
  12535. if test -n "$libltdl_cv_shlibext"; then
  12536. cat >>confdefs.h <<_ACEOF
  12537. #define LT_MODULE_EXT "$libltdl_cv_shlibext"
  12538. _ACEOF
  12539. fi
  12540. if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
  12541. cat >>confdefs.h <<_ACEOF
  12542. #define LT_SHARED_EXT "$libltdl_cv_shrext"
  12543. _ACEOF
  12544. fi
  12545. if test -n "$shared_archive_member_spec"; then
  12546. cat >>confdefs.h <<_ACEOF
  12547. #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
  12548. _ACEOF
  12549. fi
  12550. fi
  12551. if test "x$modules" = xenabled ; then
  12552. HAVE_MODULES_TRUE=
  12553. HAVE_MODULES_FALSE='#'
  12554. else
  12555. HAVE_MODULES_TRUE='#'
  12556. HAVE_MODULES_FALSE=
  12557. fi
  12558. # Check whether --enable-debug was given.
  12559. if test "${enable_debug+set}" = set; then :
  12560. enableval=$enable_debug;
  12561. if test "x$enableval" = xyes
  12562. then
  12563. debugging="enabled"
  12564. else
  12565. debugging="disabled"
  12566. fi
  12567. else
  12568. debugging="disabled"
  12569. fi
  12570. # Check whether --enable-nagging was given.
  12571. if test "${enable_nagging+set}" = set; then :
  12572. enableval=$enable_nagging;
  12573. if test "x$enableval" = xyes
  12574. then
  12575. nagging="enabled"
  12576. else
  12577. nagging="disabled"
  12578. fi
  12579. else
  12580. nagging="disabled"
  12581. fi
  12582. if test x"$debugging" = xenabled; then
  12583. $as_echo "#define DEBUG 1" >>confdefs.h
  12584. fi
  12585. # Check whether --enable-gapless was given.
  12586. if test "${enable_gapless+set}" = set; then :
  12587. enableval=$enable_gapless;
  12588. if test "x$enableval" = xyes
  12589. then
  12590. gapless="enabled"
  12591. $as_echo "#define GAPLESS 1" >>confdefs.h
  12592. else
  12593. gapless="disabled"
  12594. fi
  12595. else
  12596. gapless="enabled"
  12597. $as_echo "#define GAPLESS 1" >>confdefs.h
  12598. fi
  12599. # Check whether --enable-fifo was given.
  12600. if test "${enable_fifo+set}" = set; then :
  12601. enableval=$enable_fifo;
  12602. if test "x$enableval" = xyes
  12603. then
  12604. fifo="enabled"
  12605. else
  12606. fifo="disabled"
  12607. fi
  12608. else
  12609. fifo="auto"
  12610. fi
  12611. # Check whether --enable-ipv6 was given.
  12612. if test "${enable_ipv6+set}" = set; then :
  12613. enableval=$enable_ipv6;
  12614. if test "x$enableval" = xyes
  12615. then
  12616. ipv6="enabled"
  12617. else
  12618. ipv6="disabled"
  12619. fi
  12620. else
  12621. ipv6="auto"
  12622. fi
  12623. # Check whether --enable-network was given.
  12624. if test "${enable_network+set}" = set; then :
  12625. enableval=$enable_network;
  12626. if test "x$enableval" = xyes
  12627. then
  12628. network="enabled"
  12629. else
  12630. network="disabled"
  12631. fi
  12632. else
  12633. network="auto"
  12634. fi
  12635. s_fpu=
  12636. DECODER_OBJ=
  12637. DECODER_LOBJ=
  12638. id3v2=enabled
  12639. # Check whether --enable-id3v2 was given.
  12640. if test "${enable_id3v2+set}" = set; then :
  12641. enableval=$enable_id3v2;
  12642. if test "x$enableval" = xno; then
  12643. id3v2="disabled"
  12644. fi
  12645. fi
  12646. # id3v2 depends on strings... so check that in between.
  12647. string=enabled
  12648. # Check whether --enable-string was given.
  12649. if test "${enable_string+set}" = set; then :
  12650. enableval=$enable_string;
  12651. if test "x$enableval" = xno; then
  12652. string="disabled"
  12653. fi
  12654. fi
  12655. if test "x$string" = "xdisabled"; then
  12656. $as_echo "#define NO_STRING 1" >>confdefs.h
  12657. id3v2=disabled
  12658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ID3v2 support disabled because of string API being disabled." >&5
  12659. $as_echo "$as_me: WARNING: ID3v2 support disabled because of string API being disabled." >&2;}
  12660. else
  12661. DECODER_OBJ="$DECODER_OBJ stringbuf.\$(OBJEXT)"
  12662. DECODER_LOBJ="$DECODER_LOBJ stringbuf.lo"
  12663. fi
  12664. if test "x$id3v2" = "xdisabled"; then
  12665. $as_echo "#define NO_ID3V2 1" >>confdefs.h
  12666. fi
  12667. icy=enabled
  12668. # Check whether --enable-icy was given.
  12669. if test "${enable_icy+set}" = set; then :
  12670. enableval=$enable_icy;
  12671. if test "x$enableval" = xno; then
  12672. icy="disabled"
  12673. fi
  12674. fi
  12675. if test "x$icy" = "xdisabled"; then
  12676. $as_echo "#define NO_ICY 1" >>confdefs.h
  12677. else
  12678. DECODER_OBJ="$DECODER_OBJ icy.\$(OBJEXT) icy2utf8.\$(OBJEXT)"
  12679. DECODER_LOBJ="$DECODER_LOBJ icy.lo icy2utf8.lo"
  12680. fi
  12681. ntom=enabled
  12682. # Check whether --enable-ntom was given.
  12683. if test "${enable_ntom+set}" = set; then :
  12684. enableval=$enable_ntom;
  12685. if test "x$enableval" = xno; then
  12686. ntom="disabled"
  12687. fi
  12688. fi
  12689. if test "x$ntom" = "xdisabled"; then
  12690. $as_echo "#define NO_NTOM 1" >>confdefs.h
  12691. else
  12692. DECODER_OBJ="$DECODER_OBJ ntom.\$(OBJEXT)"
  12693. DECODER_LOBJ="$DECODER_LOBJ ntom.lo"
  12694. fi
  12695. downsample=enabled
  12696. # Check whether --enable-downsample was given.
  12697. if test "${enable_downsample+set}" = set; then :
  12698. enableval=$enable_downsample;
  12699. if test "x$enableval" = xno; then
  12700. downsample="disabled"
  12701. fi
  12702. fi
  12703. if test "x$downsample" = "xdisabled"; then
  12704. $as_echo "#define NO_DOWNSAMPLE 1" >>confdefs.h
  12705. fi
  12706. feeder=enabled
  12707. # Check whether --enable-feeder was given.
  12708. if test "${enable_feeder+set}" = set; then :
  12709. enableval=$enable_feeder;
  12710. if test "x$enableval" = xno; then
  12711. feeder="disabled"
  12712. fi
  12713. fi
  12714. if test "x$feeder" = "xdisabled"; then
  12715. $as_echo "#define NO_FEEDER 1" >>confdefs.h
  12716. fi
  12717. messages=enabled
  12718. # Check whether --enable-messages was given.
  12719. if test "${enable_messages+set}" = set; then :
  12720. enableval=$enable_messages;
  12721. if test "x$enableval" = xno; then
  12722. messages="disabled"
  12723. fi
  12724. fi
  12725. if test "x$messages" = "xdisabled"; then
  12726. $as_echo "#define NO_WARNING 1" >>confdefs.h
  12727. $as_echo "#define NO_ERRORMSG 1" >>confdefs.h
  12728. $as_echo "#define NO_ERETURN 1" >>confdefs.h
  12729. fi
  12730. newhuff=enabled
  12731. # Check whether --enable-new-huffman was given.
  12732. if test "${enable_new_huffman+set}" = set; then :
  12733. enableval=$enable_new_huffman;
  12734. if test "x$enableval" = xno; then
  12735. newhuff=disabled
  12736. fi
  12737. fi
  12738. if test "x$newhuff" = "xenabled"; then
  12739. $as_echo "#define USE_NEW_HUFFTABLE 1" >>confdefs.h
  12740. fi
  12741. integers=fast
  12742. # Check whether --enable-int-quality was given.
  12743. if test "${enable_int_quality+set}" = set; then :
  12744. enableval=$enable_int_quality;
  12745. if test "x$enableval" = xyes; then
  12746. integers=quality
  12747. $as_echo "#define ACCURATE_ROUNDING 1" >>confdefs.h
  12748. fi
  12749. fi
  12750. int16=enabled
  12751. # Check whether --enable-16bit was given.
  12752. if test "${enable_16bit+set}" = set; then :
  12753. enableval=$enable_16bit;
  12754. if test "x$enableval" = xno; then
  12755. int16="disabled"
  12756. fi
  12757. fi
  12758. int8=enabled
  12759. # Check whether --enable-8bit was given.
  12760. if test "${enable_8bit+set}" = set; then :
  12761. enableval=$enable_8bit;
  12762. if test "x$enableval" = xno; then
  12763. int8="disabled"
  12764. fi
  12765. fi
  12766. int32=enabled
  12767. # Check whether --enable-32bit was given.
  12768. if test "${enable_32bit+set}" = set; then :
  12769. enableval=$enable_32bit;
  12770. if test "x$enableval" = xno; then
  12771. int32="disabled"
  12772. fi
  12773. fi
  12774. real=enabled
  12775. # Check whether --enable-real was given.
  12776. if test "${enable_real+set}" = set; then :
  12777. enableval=$enable_real;
  12778. if test "x$enableval" = xno; then
  12779. real="disabled"
  12780. fi
  12781. fi
  12782. equalizer=enabled
  12783. # Check whether --enable-equalizer was given.
  12784. if test "${enable_equalizer+set}" = set; then :
  12785. enableval=$enable_equalizer;
  12786. if test "x$enableval" = xno; then
  12787. equalizer="disabled"
  12788. fi
  12789. fi
  12790. # Check whether --with-cpu was given.
  12791. if test "${with_cpu+set}" = set; then :
  12792. withval=$with_cpu;
  12793. fi
  12794. use_yasm=auto
  12795. # Check whether --enable-yasm was given.
  12796. if test "${enable_yasm+set}" = set; then :
  12797. enableval=$enable_yasm;
  12798. if test "x$enableval" = xyes; then
  12799. use_yasm="enabled"
  12800. else
  12801. use_yasm="disabled"
  12802. fi
  12803. fi
  12804. # Check whether --enable-ieeefloat was given.
  12805. if test "${enable_ieeefloat+set}" = set; then :
  12806. enableval=$enable_ieeefloat;
  12807. if test "x$enableval" = xyes; then
  12808. ieee=enabled
  12809. else
  12810. ieee=disabled
  12811. fi
  12812. else
  12813. ieee=enabled
  12814. fi
  12815. if test "x$ieee" = xenabled; then
  12816. echo "We assume IEEE754 floating point format."
  12817. $as_echo "#define IEEE_FLOAT 1" >>confdefs.h
  12818. fi
  12819. sys_cppflags=
  12820. newoldwritesample=disabled
  12821. case $host in
  12822. aarch64-*linux*|arm64-*linux*|aarch64-*bsd*|arm64-*bsd*|aarch64-apple-darwin*|arm64-apple-darwin*)
  12823. cpu_type="aarch64"
  12824. ;;
  12825. arm*-*-linux*-*eabihf|armv7hl*-*-linux*)
  12826. cpu_type="arm_fpu"
  12827. ;;
  12828. arm*-*-linux*)
  12829. # check that... perhaps we are better off on arm with kernel math emulation
  12830. cpu_type="arm_nofpu"
  12831. ;;
  12832. armv7*-apple-darwin*)
  12833. cpu_type="arm_fpu"
  12834. ;;
  12835. i386-*-linux*|i386-*-kfreebsd*-gnu)
  12836. cpu_type="i386_fpu"
  12837. newoldwritesample=enabled
  12838. ;;
  12839. i486-*-linux*|i486-*-kfreebsd*-gnu)
  12840. cpu_type="i486"
  12841. newoldwritesample=enabled
  12842. ;;
  12843. i586-*-linux*|i586-*-kfreebsd*-gnu)
  12844. cpu_type="x86"
  12845. newoldwritesample=enabled
  12846. ;;
  12847. i686-*-linux*|i686-*-kfreebsd*-gnu)
  12848. cpu_type="x86"
  12849. newoldwritesample=enabled
  12850. ;;
  12851. x86_64-*-linux*|x86_64-*-kfreebsd*-gnu)
  12852. cpu_type="x86-64"
  12853. ;;
  12854. *-*-linux*|*-*-kfreebsd*-gnu)
  12855. cpu_type="generic_fpu"
  12856. ;;
  12857. i?86-apple-darwin10*)
  12858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CPU type supports x86-64" >&5
  12859. $as_echo_n "checking if CPU type supports x86-64... " >&6; }
  12860. case `sysctl -n hw.optional.x86_64` in
  12861. 1)
  12862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12863. $as_echo "yes" >&6; }
  12864. cpu_type="x86-64"
  12865. ;;
  12866. *)
  12867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12868. $as_echo "no" >&6; }
  12869. cpu_type="x86"
  12870. newoldwritesample=enabled
  12871. ;;
  12872. esac
  12873. ;;
  12874. i?86-apple-darwin*)
  12875. cpu_type="x86"
  12876. newoldwritesample=enabled
  12877. ;;
  12878. x86_64-apple-darwin*)
  12879. cpu_type="x86-64"
  12880. ;;
  12881. *-apple-darwin*)
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CPU type supports AltiVec" >&5
  12883. $as_echo_n "checking if CPU type supports AltiVec... " >&6; }
  12884. case `machine` in
  12885. ppc7400 | ppc7450 | ppc970)
  12886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12887. $as_echo "yes" >&6; }
  12888. cpu_type="altivec"
  12889. ;;
  12890. *)
  12891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12892. $as_echo "no" >&6; }
  12893. cpu_type="generic_fpu"
  12894. ;;
  12895. esac
  12896. ;;
  12897. i?86-*-dragonfly* | i?86-*-freebsd* | i?86-*-midnightbsd* | i?86-*-mirbsd* | i?86-*-netbsd* | i?86-*-openbsd* | i?86-*-haiku*)
  12898. cpu_type="x86"
  12899. newoldwritesample=enabled
  12900. ;;
  12901. x86_64-*-dragonfly* | x86_64-*-freebsd* | x86_64-*-midnightbsd* | x86_64-*-mirbsd* | x86_64-*-netbsd* | x86_64-*-openbsd* | x86_64-*-haiku*)
  12902. cpu_type="x86-64"
  12903. ;;
  12904. *-*-dragonfly* | *-*-freebsd* | *-*-midnightbsd* | *-*-mirbsd* | *-*-netbsd* | *-*-openbsd*)
  12905. cpu_type="generic_fpu"
  12906. ;;
  12907. i386-*-solaris*)
  12908. cpu_type=x86
  12909. newoldwritesample=enabled
  12910. ;;
  12911. x86_64-*-solaris*)
  12912. cpu_type=x86-64
  12913. ;;
  12914. *-*-solaris*)
  12915. cpu_type="generic_fpu"
  12916. ;;
  12917. # os2-emx = OS/2 with some Unix fun; so p.ex. buffer works.
  12918. # Till we sorted out the assembler troubles, generic CPU is default.
  12919. i386-pc-os2-emx)
  12920. cpu_type=generic_fpu
  12921. newoldwritesample=enabled
  12922. ;;
  12923. x86_64-pc-os2-emx)
  12924. # We are optimistic hat the future knows OS/2 on x86-64;-)
  12925. cpu_type=generic_fpu
  12926. ;;
  12927. *-pc-os2-emx)
  12928. cpu_type="generic_fpu"
  12929. ;;
  12930. *-dec-osf*)
  12931. cpu_type="generic_fpu"
  12932. ;;
  12933. x86_64-*-cygwin*)
  12934. cpu_type="x86-64"
  12935. ;;
  12936. i686-*-cygwin*)
  12937. cpu_type="x86"
  12938. newoldwritesample=enabled
  12939. ;;
  12940. i586-*-cygwin*)
  12941. cpu_type="x86"
  12942. newoldwritesample=enabled
  12943. ;;
  12944. i486-*-cygwin*)
  12945. cpu_type="i486"
  12946. newoldwritesample=enabled
  12947. ;;
  12948. i386-*-cygwin*)
  12949. cpu_type="i386"
  12950. newoldwritesample=enabled
  12951. ;;
  12952. *-cygwin*)
  12953. cpu_type="generic_fpu"
  12954. ;;
  12955. i[3-7]86-*-mingw32*)
  12956. LIBS="$LIBS"
  12957. buffer=disabled
  12958. cpu_type="x86"
  12959. newoldwritesample=enabled
  12960. ;;
  12961. x86_64-*-mingw32*)
  12962. LIBS="$LIBS"
  12963. buffer=disabled
  12964. cpu_type="x86-64"
  12965. ;;
  12966. i386-*-nto-qnx*)
  12967. cpu_type="x86"
  12968. newoldwritesample=enabled
  12969. ;;
  12970. *-ibm-aix*)
  12971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AIX system detected. You might want to --disable-largefile when trouble about conflicting types for lseek64 and friends occurs." >&5
  12972. $as_echo "$as_me: WARNING: AIX system detected. You might want to --disable-largefile when trouble about conflicting types for lseek64 and friends occurs." >&2;}
  12973. # Altivec instead? It is developed for MacOS ...
  12974. cpu_type=generic_fpu
  12975. # no struct winsize without _ALL_SOURCE
  12976. sys_cppflags=-D_ALL_SOURCE
  12977. ;;
  12978. i386-*)
  12979. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12980. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12981. cpu_type="i386"
  12982. buffer=disabled
  12983. sys_cppflags=-DGENERIC
  12984. newoldwritesample=enabled
  12985. ;;
  12986. i486-*)
  12987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12988. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12989. cpu_type="i486"
  12990. buffer=disabled
  12991. sys_cppflags=-DGENERIC
  12992. newoldwritesample=enabled
  12993. ;;
  12994. i586-*)
  12995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12996. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12997. cpu_type="x86"
  12998. buffer=disabled
  12999. sys_cppflags=-DGENERIC
  13000. newoldwritesample=enabled
  13001. ;;
  13002. i686-*)
  13003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  13004. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  13005. cpu_type="x86"
  13006. buffer=disabled
  13007. sys_cppflags=-DGENERIC
  13008. newoldwritesample=enabled
  13009. ;;
  13010. x86_64-*)
  13011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  13012. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  13013. cpu_type="x86-64"
  13014. buffer=disabled
  13015. sys_cppflags=-DGENERIC
  13016. ;;
  13017. *)
  13018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  13019. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  13020. cpu_type="generic_fpu"
  13021. buffer=disabled
  13022. sys_cppflags=-DGENERIC
  13023. ;;
  13024. esac
  13025. # Check whether --enable-buffer was given.
  13026. if test "${enable_buffer+set}" = set; then :
  13027. enableval=$enable_buffer;
  13028. if test "x$enableval" = xyes
  13029. then
  13030. echo "Note: Enabling buffer per request... perhaps it will not build anyway."
  13031. buffer="enabled"
  13032. else
  13033. echo "Note: Disabling buffer per request."
  13034. buffer="disabled"
  13035. fi
  13036. fi
  13037. # Check whether --enable-newoldwritesample was given.
  13038. if test "${enable_newoldwritesample+set}" = set; then :
  13039. enableval=$enable_newoldwritesample;
  13040. if test "x$enableval" = xyes
  13041. then
  13042. newoldwritesample=enabled
  13043. else
  13044. newoldwritesample=disabled
  13045. fi
  13046. fi
  13047. if test "x$with_cpu" != "x"; then
  13048. cpu_type=$with_cpu
  13049. fi
  13050. # Flag for 32 bit synth output or post-processing.
  13051. case "$cpu_type" in
  13052. *_nofpu)
  13053. synth32=false
  13054. $as_echo "#define NO_SYNTH32 1" >>confdefs.h
  13055. ;;
  13056. *)
  13057. synth32=true
  13058. ;;
  13059. esac
  13060. if test "x$int16" = "xdisabled"; then
  13061. $as_echo "#define NO_16BIT 1" >>confdefs.h
  13062. else
  13063. DECODER_OBJ="$DECODER_OBJ synth.\$(OBJEXT)"
  13064. DECODER_LOBJ="$DECODER_LOBJ synth.lo"
  13065. fi
  13066. # 8bit works only through 16bit
  13067. if test "x$int16" = "xdisabled"; then
  13068. int8=disabled
  13069. fi
  13070. if test "x$int8" = "xdisabled"; then
  13071. $as_echo "#define NO_8BIT 1" >>confdefs.h
  13072. else
  13073. DECODER_OBJ="$DECODER_OBJ synth_8bit.\$(OBJEXT)"
  13074. DECODER_LOBJ="$DECODER_LOBJ synth_8bit.lo"
  13075. fi
  13076. if test "x$int32" = "xdisabled"; then
  13077. $as_echo "#define NO_32BIT 1" >>confdefs.h
  13078. else
  13079. if $synth32; then
  13080. s_fpu="$s_fpu synth_s32"
  13081. fi
  13082. fi
  13083. if test "x$real" = "xdisabled"; then
  13084. $as_echo "#define NO_REAL 1" >>confdefs.h
  13085. else
  13086. if $synth32; then
  13087. s_fpu="$s_fpu synth_real"
  13088. fi
  13089. fi
  13090. if test "x$equalizer" = "xdisabled"; then
  13091. $as_echo "#define NO_EQUALIZER 1" >>confdefs.h
  13092. fi
  13093. layer1=enabled
  13094. # Check whether --enable-layer1 was given.
  13095. if test "${enable_layer1+set}" = set; then :
  13096. enableval=$enable_layer1;
  13097. if test "x$enableval" = xno; then
  13098. layer1="disabled"
  13099. fi
  13100. fi
  13101. if test "x$layer1" = "xdisabled"; then
  13102. $as_echo "#define NO_LAYER1 1" >>confdefs.h
  13103. else
  13104. # layer1 needs code in layer2
  13105. DECODER_OBJ="$DECODER_OBJ layer1.\$(OBJEXT) layer2.\$(OBJEXT)"
  13106. DECODER_LOBJ="$DECODER_LOBJ layer1.lo layer2.lo"
  13107. fi
  13108. layer2=enabled
  13109. # Check whether --enable-layer2 was given.
  13110. if test "${enable_layer2+set}" = set; then :
  13111. enableval=$enable_layer2;
  13112. if test "x$enableval" = xno; then
  13113. layer2="disabled"
  13114. fi
  13115. fi
  13116. if test "x$layer2" = "xdisabled"; then
  13117. $as_echo "#define NO_LAYER2 1" >>confdefs.h
  13118. else
  13119. # layer1 may have added the objects already
  13120. if test "x$layer1" = "xdisabled"; then
  13121. DECODER_OBJ="$DECODER_OBJ layer2.\$(OBJEXT)"
  13122. DECODER_LOBJ="$DECODER_LOBJ layer2.lo"
  13123. fi
  13124. fi
  13125. layer3=enabled
  13126. # Check whether --enable-layer3 was given.
  13127. if test "${enable_layer3+set}" = set; then :
  13128. enableval=$enable_layer3;
  13129. if test "x$enableval" = xno; then
  13130. layer3="disabled"
  13131. fi
  13132. fi
  13133. if test "x$layer3" = "xdisabled"; then
  13134. $as_echo "#define NO_LAYER3 1" >>confdefs.h
  13135. else
  13136. DECODER_OBJ="$DECODER_OBJ layer3.\$(OBJEXT)"
  13137. DECODER_LOBJ="$DECODER_LOBJ layer3.lo"
  13138. fi
  13139. # Check whether --with-audio was given.
  13140. if test "${with_audio+set}" = set; then :
  13141. withval=$with_audio;
  13142. fi
  13143. # Check whether --with-default-audio was given.
  13144. if test "${with_default_audio+set}" = set; then :
  13145. withval=$with_default_audio;
  13146. fi
  13147. # Check whether --with-optimization was given.
  13148. if test "${with_optimization+set}" = set; then :
  13149. withval=$with_optimization;
  13150. fi
  13151. # Check whether --with-seektable was given.
  13152. if test "${with_seektable+set}" = set; then :
  13153. withval=$with_seektable;
  13154. fi
  13155. # Dummy audio output module is always supported
  13156. output_modules="dummy"
  13157. # based on posting from John Dalgliesh <[email protected]> on ffmpeg (LGPL) mailing list
  13158. # extended to use balign if present
  13159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .balign is present" >&5
  13160. $as_echo_n "checking if .balign is present... " >&6; }
  13161. echo '.balign 4' > conftest.s
  13162. if $CCAS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
  13163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13164. $as_echo "yes" >&6; }
  13165. $as_echo "#define ASMALIGN_BALIGN 1" >>confdefs.h
  13166. else
  13167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13168. $as_echo "no" >&6; }
  13169. # find if .align arg is power-of-two or not
  13170. asmalign_exp="unknown"
  13171. if test x"$asmalign_exp" = xunknown; then
  13172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align takes 2-exponent" >&5
  13173. $as_echo_n "checking if .align takes 2-exponent... " >&6; }
  13174. asmalign_exp="no"
  13175. echo '.align 3' > conftest.s
  13176. if $CCAS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
  13177. asmalign_exp="yes"
  13178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13179. $as_echo "yes" >&6; }
  13180. else
  13181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13182. $as_echo "no" >&6; }
  13183. fi
  13184. rm -f conftest.o conftest.s
  13185. fi
  13186. if test x"$asmalign_exp" = xyes; then
  13187. $as_echo "#define ASMALIGN_EXP 1" >>confdefs.h
  13188. else
  13189. $as_echo "#define ASMALIGN_BYTE 1" >>confdefs.h
  13190. fi
  13191. fi
  13192. ccalign="unknown"
  13193. if test x"$ccalign" = xunknown; then
  13194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((aligned(16)))" >&5
  13195. $as_echo_n "checking __attribute__((aligned(16)))... " >&6; }
  13196. ccalign="no"
  13197. echo '__attribute__((aligned(16))) float var;' > conftest.c
  13198. if $CC -c -o conftest.o conftest.c >/dev/null 2>&1; then
  13199. ccalign="yes"
  13200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13201. $as_echo "yes" >&6; }
  13202. else
  13203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13204. $as_echo "no" >&6; }
  13205. fi
  13206. rm -f conftest.o conftest.c
  13207. fi
  13208. avx_support="unknown"
  13209. if test x"$avx_support" = xunknown; then
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports AVX instructions" >&5
  13211. $as_echo_n "checking if assembler supports AVX instructions... " >&6; }
  13212. avx_support="no"
  13213. echo '.text' > conftest.s
  13214. echo 'vaddps %ymm0,%ymm0,%ymm0' >> conftest.s
  13215. if $CCAS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
  13216. avx_support="yes"
  13217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13218. $as_echo "yes" >&6; }
  13219. else
  13220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13221. $as_echo "no" >&6; }
  13222. fi
  13223. rm -f conftest.o conftest.s
  13224. fi
  13225. check_yasm=no
  13226. if test x"$avx_support" = xno || test x"$use_yasm" = xenabled; then
  13227. check_yasm=yes
  13228. fi
  13229. if test x"$use_yasm" = xdisabled; then
  13230. check_yasm=no
  13231. fi
  13232. if test x"$check_yasm" = xyes; then
  13233. for ac_prog in yasm
  13234. do
  13235. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13236. set dummy $ac_prog; ac_word=$2
  13237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13238. $as_echo_n "checking for $ac_word... " >&6; }
  13239. if ${ac_cv_prog_YASM+:} false; then :
  13240. $as_echo_n "(cached) " >&6
  13241. else
  13242. if test -n "$YASM"; then
  13243. ac_cv_prog_YASM="$YASM" # Let the user override the test.
  13244. else
  13245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13246. for as_dir in $PATH
  13247. do
  13248. IFS=$as_save_IFS
  13249. test -z "$as_dir" && as_dir=.
  13250. for ac_exec_ext in '' $ac_executable_extensions; do
  13251. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13252. ac_cv_prog_YASM="$ac_prog"
  13253. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13254. break 2
  13255. fi
  13256. done
  13257. done
  13258. IFS=$as_save_IFS
  13259. fi
  13260. fi
  13261. YASM=$ac_cv_prog_YASM
  13262. if test -n "$YASM"; then
  13263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YASM" >&5
  13264. $as_echo "$YASM" >&6; }
  13265. else
  13266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13267. $as_echo "no" >&6; }
  13268. fi
  13269. test -n "$YASM" && break
  13270. done
  13271. test -n "$YASM" || YASM="no"
  13272. if test x"$YASM" != xno; then
  13273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $YASM supports GAS syntax and AVX instructions" >&5
  13274. $as_echo_n "checking if $YASM supports GAS syntax and AVX instructions... " >&6; }
  13275. echo '.text' > conftest.s
  13276. echo 'vaddps %ymm0,%ymm0,%ymm0' >> conftest.s
  13277. if $YASM -pgas -rcpp -o conftest.o conftest.s 1>/dev/null 2>&1; then
  13278. avx_support="yes"
  13279. YASMFLAGS="-pgas -rgas -mamd64"
  13280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13281. $as_echo "yes" >&6; }
  13282. else
  13283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13284. $as_echo "no" >&6; }
  13285. fi
  13286. rm -f conftest.o conftest.s
  13287. else
  13288. if test x"$use_yasm" = xenabled; then
  13289. as_fn_error $? "Yasm enforced but not found!" "$LINENO" 5
  13290. fi
  13291. fi
  13292. else
  13293. YASM="no"
  13294. fi
  13295. if test "x$cpu_type" = "xavx"; then
  13296. if test "x$avx_support" != "xyes"; then
  13297. as_fn_error $? "Assembler doesn't understand AVX instructions." "$LINENO" 5
  13298. fi
  13299. fi
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13301. $as_echo_n "checking for ANSI C header files... " >&6; }
  13302. if ${ac_cv_header_stdc+:} false; then :
  13303. $as_echo_n "(cached) " >&6
  13304. else
  13305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13306. /* end confdefs.h. */
  13307. #include <stdlib.h>
  13308. #include <stdarg.h>
  13309. #include <string.h>
  13310. #include <float.h>
  13311. int
  13312. main ()
  13313. {
  13314. ;
  13315. return 0;
  13316. }
  13317. _ACEOF
  13318. if ac_fn_c_try_compile "$LINENO"; then :
  13319. ac_cv_header_stdc=yes
  13320. else
  13321. ac_cv_header_stdc=no
  13322. fi
  13323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13324. if test $ac_cv_header_stdc = yes; then
  13325. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13327. /* end confdefs.h. */
  13328. #include <string.h>
  13329. _ACEOF
  13330. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13331. $EGREP "memchr" >/dev/null 2>&1; then :
  13332. else
  13333. ac_cv_header_stdc=no
  13334. fi
  13335. rm -f conftest*
  13336. fi
  13337. if test $ac_cv_header_stdc = yes; then
  13338. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13340. /* end confdefs.h. */
  13341. #include <stdlib.h>
  13342. _ACEOF
  13343. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13344. $EGREP "free" >/dev/null 2>&1; then :
  13345. else
  13346. ac_cv_header_stdc=no
  13347. fi
  13348. rm -f conftest*
  13349. fi
  13350. if test $ac_cv_header_stdc = yes; then
  13351. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13352. if test "$cross_compiling" = yes; then :
  13353. :
  13354. else
  13355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13356. /* end confdefs.h. */
  13357. #include <ctype.h>
  13358. #include <stdlib.h>
  13359. #if ((' ' & 0x0FF) == 0x020)
  13360. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13361. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13362. #else
  13363. # define ISLOWER(c) \
  13364. (('a' <= (c) && (c) <= 'i') \
  13365. || ('j' <= (c) && (c) <= 'r') \
  13366. || ('s' <= (c) && (c) <= 'z'))
  13367. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13368. #endif
  13369. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13370. int
  13371. main ()
  13372. {
  13373. int i;
  13374. for (i = 0; i < 256; i++)
  13375. if (XOR (islower (i), ISLOWER (i))
  13376. || toupper (i) != TOUPPER (i))
  13377. return 2;
  13378. return 0;
  13379. }
  13380. _ACEOF
  13381. if ac_fn_c_try_run "$LINENO"; then :
  13382. else
  13383. ac_cv_header_stdc=no
  13384. fi
  13385. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13386. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13387. fi
  13388. fi
  13389. fi
  13390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13391. $as_echo "$ac_cv_header_stdc" >&6; }
  13392. if test $ac_cv_header_stdc = yes; then
  13393. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13394. fi
  13395. 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 sys/select.h dirent.h sys/stat.h
  13396. do :
  13397. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13398. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13399. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13400. cat >>confdefs.h <<_ACEOF
  13401. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13402. _ACEOF
  13403. fi
  13404. done
  13405. # Check whether --enable-largefile was given.
  13406. if test "${enable_largefile+set}" = set; then :
  13407. enableval=$enable_largefile;
  13408. fi
  13409. if test "$enable_largefile" != no; then
  13410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  13411. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  13412. if ${ac_cv_sys_largefile_CC+:} false; then :
  13413. $as_echo_n "(cached) " >&6
  13414. else
  13415. ac_cv_sys_largefile_CC=no
  13416. if test "$GCC" != yes; then
  13417. ac_save_CC=$CC
  13418. while :; do
  13419. # IRIX 6.2 and later do not support large files by default,
  13420. # so use the C compiler's -n32 option if that helps.
  13421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13422. /* end confdefs.h. */
  13423. #include <sys/types.h>
  13424. /* Check that off_t can represent 2**63 - 1 correctly.
  13425. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13426. since some C++ compilers masquerading as C compilers
  13427. incorrectly reject 9223372036854775807. */
  13428. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13429. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13430. && LARGE_OFF_T % 2147483647 == 1)
  13431. ? 1 : -1];
  13432. int
  13433. main ()
  13434. {
  13435. ;
  13436. return 0;
  13437. }
  13438. _ACEOF
  13439. if ac_fn_c_try_compile "$LINENO"; then :
  13440. break
  13441. fi
  13442. rm -f core conftest.err conftest.$ac_objext
  13443. CC="$CC -n32"
  13444. if ac_fn_c_try_compile "$LINENO"; then :
  13445. ac_cv_sys_largefile_CC=' -n32'; break
  13446. fi
  13447. rm -f core conftest.err conftest.$ac_objext
  13448. break
  13449. done
  13450. CC=$ac_save_CC
  13451. rm -f conftest.$ac_ext
  13452. fi
  13453. fi
  13454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  13455. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  13456. if test "$ac_cv_sys_largefile_CC" != no; then
  13457. CC=$CC$ac_cv_sys_largefile_CC
  13458. fi
  13459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  13460. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  13461. if ${ac_cv_sys_file_offset_bits+:} false; then :
  13462. $as_echo_n "(cached) " >&6
  13463. else
  13464. while :; do
  13465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13466. /* end confdefs.h. */
  13467. #include <sys/types.h>
  13468. /* Check that off_t can represent 2**63 - 1 correctly.
  13469. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13470. since some C++ compilers masquerading as C compilers
  13471. incorrectly reject 9223372036854775807. */
  13472. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13473. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13474. && LARGE_OFF_T % 2147483647 == 1)
  13475. ? 1 : -1];
  13476. int
  13477. main ()
  13478. {
  13479. ;
  13480. return 0;
  13481. }
  13482. _ACEOF
  13483. if ac_fn_c_try_compile "$LINENO"; then :
  13484. ac_cv_sys_file_offset_bits=no; break
  13485. fi
  13486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13488. /* end confdefs.h. */
  13489. #define _FILE_OFFSET_BITS 64
  13490. #include <sys/types.h>
  13491. /* Check that off_t can represent 2**63 - 1 correctly.
  13492. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13493. since some C++ compilers masquerading as C compilers
  13494. incorrectly reject 9223372036854775807. */
  13495. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13496. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13497. && LARGE_OFF_T % 2147483647 == 1)
  13498. ? 1 : -1];
  13499. int
  13500. main ()
  13501. {
  13502. ;
  13503. return 0;
  13504. }
  13505. _ACEOF
  13506. if ac_fn_c_try_compile "$LINENO"; then :
  13507. ac_cv_sys_file_offset_bits=64; break
  13508. fi
  13509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13510. ac_cv_sys_file_offset_bits=unknown
  13511. break
  13512. done
  13513. fi
  13514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  13515. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  13516. case $ac_cv_sys_file_offset_bits in #(
  13517. no | unknown) ;;
  13518. *)
  13519. cat >>confdefs.h <<_ACEOF
  13520. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  13521. _ACEOF
  13522. ;;
  13523. esac
  13524. rm -rf conftest*
  13525. if test $ac_cv_sys_file_offset_bits = unknown; then
  13526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  13527. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  13528. if ${ac_cv_sys_large_files+:} false; then :
  13529. $as_echo_n "(cached) " >&6
  13530. else
  13531. while :; do
  13532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13533. /* end confdefs.h. */
  13534. #include <sys/types.h>
  13535. /* Check that off_t can represent 2**63 - 1 correctly.
  13536. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13537. since some C++ compilers masquerading as C compilers
  13538. incorrectly reject 9223372036854775807. */
  13539. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13540. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13541. && LARGE_OFF_T % 2147483647 == 1)
  13542. ? 1 : -1];
  13543. int
  13544. main ()
  13545. {
  13546. ;
  13547. return 0;
  13548. }
  13549. _ACEOF
  13550. if ac_fn_c_try_compile "$LINENO"; then :
  13551. ac_cv_sys_large_files=no; break
  13552. fi
  13553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13555. /* end confdefs.h. */
  13556. #define _LARGE_FILES 1
  13557. #include <sys/types.h>
  13558. /* Check that off_t can represent 2**63 - 1 correctly.
  13559. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13560. since some C++ compilers masquerading as C compilers
  13561. incorrectly reject 9223372036854775807. */
  13562. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13563. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13564. && LARGE_OFF_T % 2147483647 == 1)
  13565. ? 1 : -1];
  13566. int
  13567. main ()
  13568. {
  13569. ;
  13570. return 0;
  13571. }
  13572. _ACEOF
  13573. if ac_fn_c_try_compile "$LINENO"; then :
  13574. ac_cv_sys_large_files=1; break
  13575. fi
  13576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13577. ac_cv_sys_large_files=unknown
  13578. break
  13579. done
  13580. fi
  13581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  13582. $as_echo "$ac_cv_sys_large_files" >&6; }
  13583. case $ac_cv_sys_large_files in #(
  13584. no | unknown) ;;
  13585. *)
  13586. cat >>confdefs.h <<_ACEOF
  13587. #define _LARGE_FILES $ac_cv_sys_large_files
  13588. _ACEOF
  13589. ;;
  13590. esac
  13591. rm -rf conftest*
  13592. fi
  13593. fi
  13594. if test "x$ac_cv_sys_file_offset_bits" = x || echo "$ac_cv_sys_file_offset_bits" | $GREP '[^0-9]' > /dev/null; then
  13595. LFS_LOBJ=
  13596. largefile_sensitive=no
  13597. else
  13598. # Add dual-mode wrapper code.
  13599. LFS_LOBJ=lfs_wrap.lo
  13600. largefile_sensitive=yes
  13601. fi
  13602. # Using the lower level macros instead of AC_TYPE_* for compatibility with not freshest autoconf.
  13603. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13604. if test "x$ac_cv_type_size_t" = xyes; then :
  13605. else
  13606. cat >>confdefs.h <<_ACEOF
  13607. #define size_t unsigned long
  13608. _ACEOF
  13609. fi
  13610. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  13611. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  13612. else
  13613. cat >>confdefs.h <<_ACEOF
  13614. #define uintptr_t unsigned long
  13615. _ACEOF
  13616. fi
  13617. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  13618. if test "x$ac_cv_type_ssize_t" = xyes; then :
  13619. else
  13620. cat >>confdefs.h <<_ACEOF
  13621. #define ssize_t long
  13622. _ACEOF
  13623. fi
  13624. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  13625. if test "x$ac_cv_type_off_t" = xyes; then :
  13626. else
  13627. cat >>confdefs.h <<_ACEOF
  13628. #define off_t long int
  13629. _ACEOF
  13630. fi
  13631. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  13632. if test "x$ac_cv_type_int32_t" = xyes; then :
  13633. else
  13634. cat >>confdefs.h <<_ACEOF
  13635. #define int32_t int
  13636. _ACEOF
  13637. fi
  13638. ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
  13639. if test "x$ac_cv_type_int64_t" = xyes; then :
  13640. else
  13641. cat >>confdefs.h <<_ACEOF
  13642. #define int64_t long long
  13643. _ACEOF
  13644. fi
  13645. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  13646. if test "x$ac_cv_type_uint32_t" = xyes; then :
  13647. else
  13648. cat >>confdefs.h <<_ACEOF
  13649. #define uint32_t unsigned int
  13650. _ACEOF
  13651. fi
  13652. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  13653. if test "x$ac_cv_type_int16_t" = xyes; then :
  13654. else
  13655. cat >>confdefs.h <<_ACEOF
  13656. #define int16_t short
  13657. _ACEOF
  13658. fi
  13659. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  13660. if test "x$ac_cv_type_uint16_t" = xyes; then :
  13661. else
  13662. cat >>confdefs.h <<_ACEOF
  13663. #define uint16_t unsigned short
  13664. _ACEOF
  13665. fi
  13666. # The cast to long int works around a bug in the HP C Compiler
  13667. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13668. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13669. # This bug is HP SR number 8606223364.
  13670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  13671. $as_echo_n "checking size of size_t... " >&6; }
  13672. if ${ac_cv_sizeof_size_t+:} false; then :
  13673. $as_echo_n "(cached) " >&6
  13674. else
  13675. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  13676. else
  13677. if test "$ac_cv_type_size_t" = yes; then
  13678. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13679. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13680. as_fn_error 77 "cannot compute sizeof (size_t)
  13681. See \`config.log' for more details" "$LINENO" 5; }
  13682. else
  13683. ac_cv_sizeof_size_t=0
  13684. fi
  13685. fi
  13686. fi
  13687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  13688. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  13689. cat >>confdefs.h <<_ACEOF
  13690. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  13691. _ACEOF
  13692. # The cast to long int works around a bug in the HP C Compiler
  13693. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13694. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13695. # This bug is HP SR number 8606223364.
  13696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
  13697. $as_echo_n "checking size of ssize_t... " >&6; }
  13698. if ${ac_cv_sizeof_ssize_t+:} false; then :
  13699. $as_echo_n "(cached) " >&6
  13700. else
  13701. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
  13702. else
  13703. if test "$ac_cv_type_ssize_t" = yes; then
  13704. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13705. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13706. as_fn_error 77 "cannot compute sizeof (ssize_t)
  13707. See \`config.log' for more details" "$LINENO" 5; }
  13708. else
  13709. ac_cv_sizeof_ssize_t=0
  13710. fi
  13711. fi
  13712. fi
  13713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
  13714. $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
  13715. cat >>confdefs.h <<_ACEOF
  13716. #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
  13717. _ACEOF
  13718. # The cast to long int works around a bug in the HP C Compiler
  13719. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13720. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13721. # This bug is HP SR number 8606223364.
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  13723. $as_echo_n "checking size of off_t... " >&6; }
  13724. if ${ac_cv_sizeof_off_t+:} false; then :
  13725. $as_echo_n "(cached) " >&6
  13726. else
  13727. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  13728. else
  13729. if test "$ac_cv_type_off_t" = yes; then
  13730. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13731. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13732. as_fn_error 77 "cannot compute sizeof (off_t)
  13733. See \`config.log' for more details" "$LINENO" 5; }
  13734. else
  13735. ac_cv_sizeof_off_t=0
  13736. fi
  13737. fi
  13738. fi
  13739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  13740. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  13741. cat >>confdefs.h <<_ACEOF
  13742. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  13743. _ACEOF
  13744. # The cast to long int works around a bug in the HP C Compiler
  13745. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13746. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13747. # This bug is HP SR number 8606223364.
  13748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
  13749. $as_echo_n "checking size of int32_t... " >&6; }
  13750. if ${ac_cv_sizeof_int32_t+:} false; then :
  13751. $as_echo_n "(cached) " >&6
  13752. else
  13753. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
  13754. else
  13755. if test "$ac_cv_type_int32_t" = yes; then
  13756. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13757. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13758. as_fn_error 77 "cannot compute sizeof (int32_t)
  13759. See \`config.log' for more details" "$LINENO" 5; }
  13760. else
  13761. ac_cv_sizeof_int32_t=0
  13762. fi
  13763. fi
  13764. fi
  13765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
  13766. $as_echo "$ac_cv_sizeof_int32_t" >&6; }
  13767. cat >>confdefs.h <<_ACEOF
  13768. #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
  13769. _ACEOF
  13770. # The cast to long int works around a bug in the HP C Compiler
  13771. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13772. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13773. # This bug is HP SR number 8606223364.
  13774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13775. $as_echo_n "checking size of long... " >&6; }
  13776. if ${ac_cv_sizeof_long+:} false; then :
  13777. $as_echo_n "(cached) " >&6
  13778. else
  13779. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13780. else
  13781. if test "$ac_cv_type_long" = yes; then
  13782. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13783. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13784. as_fn_error 77 "cannot compute sizeof (long)
  13785. See \`config.log' for more details" "$LINENO" 5; }
  13786. else
  13787. ac_cv_sizeof_long=0
  13788. fi
  13789. fi
  13790. fi
  13791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13792. $as_echo "$ac_cv_sizeof_long" >&6; }
  13793. cat >>confdefs.h <<_ACEOF
  13794. #define SIZEOF_LONG $ac_cv_sizeof_long
  13795. _ACEOF
  13796. if test "x$largefile_sensitive" = xyes; then
  13797. lfs_alias_type=long
  13798. lfs_alias_size=$ac_cv_sizeof_long
  13799. else
  13800. lfs_alias_type=off_t
  13801. lfs_alias_size=$ac_cv_sizeof_off_t
  13802. fi
  13803. if test "x$lfs_alias_size" = "x"; then
  13804. as_fn_error $? "Cannot determine sizeof(lfs_alias_t)?" "$LINENO" 5
  13805. else
  13806. LFS_ALIAS_BITS=`expr "$lfs_alias_size" "*" "8"`
  13807. cat >>confdefs.h <<_ACEOF
  13808. #define lfs_alias_t $lfs_alias_type
  13809. _ACEOF
  13810. cat >>confdefs.h <<_ACEOF
  13811. #define LFS_ALIAS_BITS $LFS_ALIAS_BITS
  13812. _ACEOF
  13813. fi
  13814. lfs_alias=enabled
  13815. # Check whether --enable-lfs-alias was given.
  13816. if test "${enable_lfs_alias+set}" = set; then :
  13817. enableval=$enable_lfs_alias;
  13818. if test "x$enableval" = xno; then
  13819. lfs_alias="disabled"
  13820. fi
  13821. else
  13822. case $host in
  13823. *-cygwin*)
  13824. lfs_alias="disabled"
  13825. { $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
  13826. $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;}
  13827. ;;
  13828. esac
  13829. fi
  13830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable alias wrappers for largefile" >&5
  13831. $as_echo_n "checking if we want to enable alias wrappers for largefile... " >&6; }
  13832. if test "x$lfs_alias" = "xenabled"; then
  13833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13834. $as_echo "yes" >&6; }
  13835. LFS_LOBJ="$LFS_LOBJ lfs_alias.lo"
  13836. else
  13837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13838. $as_echo "no" >&6; }
  13839. fi
  13840. # Again, prepend path for non-recursive make.
  13841. LFS_LOBJ=`for i in $LFS_LOBJ; do printf ' src/libmpg123/%s' $i; done`
  13842. for ac_header in $ac_header_list
  13843. do :
  13844. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13845. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  13846. "
  13847. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13848. cat >>confdefs.h <<_ACEOF
  13849. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13850. _ACEOF
  13851. fi
  13852. done
  13853. for ac_func in getpagesize
  13854. do :
  13855. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  13856. if test "x$ac_cv_func_getpagesize" = xyes; then :
  13857. cat >>confdefs.h <<_ACEOF
  13858. #define HAVE_GETPAGESIZE 1
  13859. _ACEOF
  13860. fi
  13861. done
  13862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  13863. $as_echo_n "checking for working mmap... " >&6; }
  13864. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  13865. $as_echo_n "(cached) " >&6
  13866. else
  13867. if test "$cross_compiling" = yes; then :
  13868. ac_cv_func_mmap_fixed_mapped=no
  13869. else
  13870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13871. /* end confdefs.h. */
  13872. $ac_includes_default
  13873. /* malloc might have been renamed as rpl_malloc. */
  13874. #undef malloc
  13875. /* Thanks to Mike Haertel and Jim Avera for this test.
  13876. Here is a matrix of mmap possibilities:
  13877. mmap private not fixed
  13878. mmap private fixed at somewhere currently unmapped
  13879. mmap private fixed at somewhere already mapped
  13880. mmap shared not fixed
  13881. mmap shared fixed at somewhere currently unmapped
  13882. mmap shared fixed at somewhere already mapped
  13883. For private mappings, we should verify that changes cannot be read()
  13884. back from the file, nor mmap's back from the file at a different
  13885. address. (There have been systems where private was not correctly
  13886. implemented like the infamous i386 svr4.0, and systems where the
  13887. VM page cache was not coherent with the file system buffer cache
  13888. like early versions of FreeBSD and possibly contemporary NetBSD.)
  13889. For shared mappings, we should conversely verify that changes get
  13890. propagated back to all the places they're supposed to be.
  13891. Grep wants private fixed already mapped.
  13892. The main things grep needs to know about mmap are:
  13893. * does it exist and is it safe to write into the mmap'd area
  13894. * how to use it (BSD variants) */
  13895. #include <fcntl.h>
  13896. #include <sys/mman.h>
  13897. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  13898. char *malloc ();
  13899. #endif
  13900. /* This mess was copied from the GNU getpagesize.h. */
  13901. #ifndef HAVE_GETPAGESIZE
  13902. # ifdef _SC_PAGESIZE
  13903. # define getpagesize() sysconf(_SC_PAGESIZE)
  13904. # else /* no _SC_PAGESIZE */
  13905. # ifdef HAVE_SYS_PARAM_H
  13906. # include <sys/param.h>
  13907. # ifdef EXEC_PAGESIZE
  13908. # define getpagesize() EXEC_PAGESIZE
  13909. # else /* no EXEC_PAGESIZE */
  13910. # ifdef NBPG
  13911. # define getpagesize() NBPG * CLSIZE
  13912. # ifndef CLSIZE
  13913. # define CLSIZE 1
  13914. # endif /* no CLSIZE */
  13915. # else /* no NBPG */
  13916. # ifdef NBPC
  13917. # define getpagesize() NBPC
  13918. # else /* no NBPC */
  13919. # ifdef PAGESIZE
  13920. # define getpagesize() PAGESIZE
  13921. # endif /* PAGESIZE */
  13922. # endif /* no NBPC */
  13923. # endif /* no NBPG */
  13924. # endif /* no EXEC_PAGESIZE */
  13925. # else /* no HAVE_SYS_PARAM_H */
  13926. # define getpagesize() 8192 /* punt totally */
  13927. # endif /* no HAVE_SYS_PARAM_H */
  13928. # endif /* no _SC_PAGESIZE */
  13929. #endif /* no HAVE_GETPAGESIZE */
  13930. int
  13931. main ()
  13932. {
  13933. char *data, *data2, *data3;
  13934. const char *cdata2;
  13935. int i, pagesize;
  13936. int fd, fd2;
  13937. pagesize = getpagesize ();
  13938. /* First, make a file with some known garbage in it. */
  13939. data = (char *) malloc (pagesize);
  13940. if (!data)
  13941. return 1;
  13942. for (i = 0; i < pagesize; ++i)
  13943. *(data + i) = rand ();
  13944. umask (0);
  13945. fd = creat ("conftest.mmap", 0600);
  13946. if (fd < 0)
  13947. return 2;
  13948. if (write (fd, data, pagesize) != pagesize)
  13949. return 3;
  13950. close (fd);
  13951. /* Next, check that the tail of a page is zero-filled. File must have
  13952. non-zero length, otherwise we risk SIGBUS for entire page. */
  13953. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  13954. if (fd2 < 0)
  13955. return 4;
  13956. cdata2 = "";
  13957. if (write (fd2, cdata2, 1) != 1)
  13958. return 5;
  13959. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  13960. if (data2 == MAP_FAILED)
  13961. return 6;
  13962. for (i = 0; i < pagesize; ++i)
  13963. if (*(data2 + i))
  13964. return 7;
  13965. close (fd2);
  13966. if (munmap (data2, pagesize))
  13967. return 8;
  13968. /* Next, try to mmap the file at a fixed address which already has
  13969. something else allocated at it. If we can, also make sure that
  13970. we see the same garbage. */
  13971. fd = open ("conftest.mmap", O_RDWR);
  13972. if (fd < 0)
  13973. return 9;
  13974. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  13975. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  13976. return 10;
  13977. for (i = 0; i < pagesize; ++i)
  13978. if (*(data + i) != *(data2 + i))
  13979. return 11;
  13980. /* Finally, make sure that changes to the mapped area do not
  13981. percolate back to the file as seen by read(). (This is a bug on
  13982. some variants of i386 svr4.0.) */
  13983. for (i = 0; i < pagesize; ++i)
  13984. *(data2 + i) = *(data2 + i) + 1;
  13985. data3 = (char *) malloc (pagesize);
  13986. if (!data3)
  13987. return 12;
  13988. if (read (fd, data3, pagesize) != pagesize)
  13989. return 13;
  13990. for (i = 0; i < pagesize; ++i)
  13991. if (*(data + i) != *(data3 + i))
  13992. return 14;
  13993. close (fd);
  13994. return 0;
  13995. }
  13996. _ACEOF
  13997. if ac_fn_c_try_run "$LINENO"; then :
  13998. ac_cv_func_mmap_fixed_mapped=yes
  13999. else
  14000. ac_cv_func_mmap_fixed_mapped=no
  14001. fi
  14002. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14003. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14004. fi
  14005. fi
  14006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14007. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14008. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14009. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14010. fi
  14011. rm -f conftest.mmap conftest.txt
  14012. # Check if system supports termios
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
  14014. $as_echo_n "checking POSIX termios... " >&6; }
  14015. if ${ac_cv_sys_posix_termios+:} false; then :
  14016. $as_echo_n "(cached) " >&6
  14017. else
  14018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14019. /* end confdefs.h. */
  14020. #include <sys/types.h>
  14021. #include <unistd.h>
  14022. #include <termios.h>
  14023. int
  14024. main ()
  14025. {
  14026. /* SunOS 4.0.3 has termios.h but not the library calls. */
  14027. tcgetattr(0, 0);
  14028. ;
  14029. return 0;
  14030. }
  14031. _ACEOF
  14032. if ac_fn_c_try_link "$LINENO"; then :
  14033. ac_cv_sys_posix_termios=yes
  14034. else
  14035. ac_cv_sys_posix_termios=no
  14036. fi
  14037. rm -f core conftest.err conftest.$ac_objext \
  14038. conftest$ac_exeext conftest.$ac_ext
  14039. fi
  14040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
  14041. $as_echo "$ac_cv_sys_posix_termios" >&6; }
  14042. if test "x$ac_cv_sys_posix_termios" = "xyes"; then
  14043. cat >>confdefs.h <<_ACEOF
  14044. #define HAVE_TERMIOS 1
  14045. _ACEOF
  14046. fi
  14047. for ac_func in random
  14048. do :
  14049. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14050. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14051. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14052. cat >>confdefs.h <<_ACEOF
  14053. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14054. _ACEOF
  14055. fi
  14056. done
  14057. # Check for sched_setscheduler
  14058. for ac_func in sched_setscheduler setuid getuid
  14059. do :
  14060. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14061. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14062. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14063. cat >>confdefs.h <<_ACEOF
  14064. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14065. _ACEOF
  14066. fi
  14067. done
  14068. # Check for setpriority
  14069. for ac_func in setpriority
  14070. do :
  14071. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14072. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14073. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14074. cat >>confdefs.h <<_ACEOF
  14075. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14076. _ACEOF
  14077. fi
  14078. done
  14079. for ac_func in strerror
  14080. do :
  14081. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14082. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14083. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14084. cat >>confdefs.h <<_ACEOF
  14085. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14086. _ACEOF
  14087. fi
  14088. done
  14089. for ac_func in setlocale nl_langinfo
  14090. do :
  14091. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14092. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14093. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14094. cat >>confdefs.h <<_ACEOF
  14095. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14096. _ACEOF
  14097. fi
  14098. done
  14099. for ac_func in atoll
  14100. do :
  14101. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14102. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14103. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14104. cat >>confdefs.h <<_ACEOF
  14105. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14106. _ACEOF
  14107. fi
  14108. done
  14109. for ac_func in mkfifo
  14110. do :
  14111. ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
  14112. if test "x$ac_cv_func_mkfifo" = xyes; then :
  14113. cat >>confdefs.h <<_ACEOF
  14114. #define HAVE_MKFIFO 1
  14115. _ACEOF
  14116. have_mkfifo=yes
  14117. else
  14118. have_mkfifo=no
  14119. fi
  14120. done
  14121. # locale headers
  14122. for ac_header in locale.h langinfo.h
  14123. do :
  14124. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14125. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14126. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14127. cat >>confdefs.h <<_ACEOF
  14128. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14129. _ACEOF
  14130. fi
  14131. done
  14132. # Headers for network (http) stuff
  14133. network_type=Unknown
  14134. for ac_header in netdb.h sys/param.h sys/socket.h netinet/in.h arpa/inet.h
  14135. do :
  14136. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14137. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14138. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14139. cat >>confdefs.h <<_ACEOF
  14140. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14141. _ACEOF
  14142. fi
  14143. done
  14144. if test "x$ac_cv_header_netdb_h" = "xyes" &&
  14145. test "x$ac_cv_header_sys_param_h" = "xyes" &&
  14146. test "x$ac_cv_header_sys_socket_h" = "xyes" &&
  14147. test "x$ac_cv_header_netinet_in_h" = "xyes" &&
  14148. test "x$ac_cv_header_arpa_inet_h" = "xyes"; then
  14149. have_network=yes
  14150. network_type=Posix
  14151. else
  14152. have_network=no
  14153. fi
  14154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  14155. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  14156. if ${ac_cv_search_gethostbyname+:} false; then :
  14157. $as_echo_n "(cached) " >&6
  14158. else
  14159. ac_func_search_save_LIBS=$LIBS
  14160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14161. /* end confdefs.h. */
  14162. /* Override any GCC internal prototype to avoid an error.
  14163. Use char because int might match the return type of a GCC
  14164. builtin and then its argument prototype would still apply. */
  14165. #ifdef __cplusplus
  14166. extern "C"
  14167. #endif
  14168. char gethostbyname ();
  14169. int
  14170. main ()
  14171. {
  14172. return gethostbyname ();
  14173. ;
  14174. return 0;
  14175. }
  14176. _ACEOF
  14177. for ac_lib in '' nsl socket network; do
  14178. if test -z "$ac_lib"; then
  14179. ac_res="none required"
  14180. else
  14181. ac_res=-l$ac_lib
  14182. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14183. fi
  14184. if ac_fn_c_try_link "$LINENO"; then :
  14185. ac_cv_search_gethostbyname=$ac_res
  14186. fi
  14187. rm -f core conftest.err conftest.$ac_objext \
  14188. conftest$ac_exeext
  14189. if ${ac_cv_search_gethostbyname+:} false; then :
  14190. break
  14191. fi
  14192. done
  14193. if ${ac_cv_search_gethostbyname+:} false; then :
  14194. else
  14195. ac_cv_search_gethostbyname=no
  14196. fi
  14197. rm conftest.$ac_ext
  14198. LIBS=$ac_func_search_save_LIBS
  14199. fi
  14200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  14201. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  14202. ac_res=$ac_cv_search_gethostbyname
  14203. if test "$ac_res" != no; then :
  14204. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14205. fi
  14206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  14207. $as_echo_n "checking for library containing socket... " >&6; }
  14208. if ${ac_cv_search_socket+:} false; then :
  14209. $as_echo_n "(cached) " >&6
  14210. else
  14211. ac_func_search_save_LIBS=$LIBS
  14212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14213. /* end confdefs.h. */
  14214. /* Override any GCC internal prototype to avoid an error.
  14215. Use char because int might match the return type of a GCC
  14216. builtin and then its argument prototype would still apply. */
  14217. #ifdef __cplusplus
  14218. extern "C"
  14219. #endif
  14220. char socket ();
  14221. int
  14222. main ()
  14223. {
  14224. return socket ();
  14225. ;
  14226. return 0;
  14227. }
  14228. _ACEOF
  14229. for ac_lib in '' socket; do
  14230. if test -z "$ac_lib"; then
  14231. ac_res="none required"
  14232. else
  14233. ac_res=-l$ac_lib
  14234. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14235. fi
  14236. if ac_fn_c_try_link "$LINENO"; then :
  14237. ac_cv_search_socket=$ac_res
  14238. fi
  14239. rm -f core conftest.err conftest.$ac_objext \
  14240. conftest$ac_exeext
  14241. if ${ac_cv_search_socket+:} false; then :
  14242. break
  14243. fi
  14244. done
  14245. if ${ac_cv_search_socket+:} false; then :
  14246. else
  14247. ac_cv_search_socket=no
  14248. fi
  14249. rm conftest.$ac_ext
  14250. LIBS=$ac_func_search_save_LIBS
  14251. fi
  14252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  14253. $as_echo "$ac_cv_search_socket" >&6; }
  14254. ac_res=$ac_cv_search_socket
  14255. if test "$ac_res" != no; then :
  14256. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14257. fi
  14258. for ac_func in getaddrinfo
  14259. do :
  14260. ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  14261. if test "x$ac_cv_func_getaddrinfo" = xyes; then :
  14262. cat >>confdefs.h <<_ACEOF
  14263. #define HAVE_GETADDRINFO 1
  14264. _ACEOF
  14265. have_ipv6=yes
  14266. else
  14267. have_ipv6=no
  14268. fi
  14269. done
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
  14271. $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
  14272. if ${apr_cv_gai_addrconfig+:} false; then :
  14273. $as_echo_n "(cached) " >&6
  14274. else
  14275. if test "$cross_compiling" = yes; then :
  14276. apr_cv_gai_addrconfig=no
  14277. else
  14278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14279. /* end confdefs.h. */
  14280. #ifdef HAVE_NETDB_H
  14281. #include <netdb.h>
  14282. #endif
  14283. #ifdef HAVE_STRING_H
  14284. #include <string.h>
  14285. #endif
  14286. #ifdef HAVE_SYS_TYPES_H
  14287. #include <sys/types.h>
  14288. #endif
  14289. #ifdef HAVE_SYS_SOCKET_H
  14290. #include <sys/socket.h>
  14291. #endif
  14292. int main(int argc, char **argv) {
  14293. struct addrinfo hints, *ai;
  14294. memset(&hints, 0, sizeof(hints));
  14295. hints.ai_family = AF_UNSPEC;
  14296. hints.ai_socktype = SOCK_STREAM;
  14297. hints.ai_flags = AI_ADDRCONFIG;
  14298. return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
  14299. }
  14300. _ACEOF
  14301. if ac_fn_c_try_run "$LINENO"; then :
  14302. apr_cv_gai_addrconfig=yes
  14303. else
  14304. apr_cv_gai_addrconfig=no
  14305. fi
  14306. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14307. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14308. fi
  14309. fi
  14310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
  14311. $as_echo "$apr_cv_gai_addrconfig" >&6; }
  14312. if test $apr_cv_gai_addrconfig = yes; then
  14313. $as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
  14314. fi
  14315. # Substitutions for the installable mpg123.h header
  14316. if test "x$ac_cv_header_stdio_h" = "xyes"; then
  14317. INCLUDE_STDIO_H="#include <stdio.h>"
  14318. else
  14319. INCLUDE_STDIO_H="/* #include <stdio.h> is not available on this system */"
  14320. fi
  14321. if test "x$ac_cv_header_stdlib_h" = "xyes"; then
  14322. INCLUDE_STDLIB_H="#include <stdlib.h>"
  14323. else
  14324. INCLUDE_STDLIB_H="/* #include <stdlib.h> is not available on this system */"
  14325. fi
  14326. if test "x$ac_cv_header_sys_types_h" = "xyes"; then
  14327. INCLUDE_SYS_TYPE_H="#include <sys/types.h>"
  14328. else
  14329. INCLUDE_SYS_TYPE_H="/* #include <sys/types.h> is not available on this system */"
  14330. fi
  14331. # Checks for maths libraries.
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  14333. $as_echo_n "checking for sqrt in -lm... " >&6; }
  14334. if ${ac_cv_lib_m_sqrt+:} false; then :
  14335. $as_echo_n "(cached) " >&6
  14336. else
  14337. ac_check_lib_save_LIBS=$LIBS
  14338. LIBS="-lm $LIBS"
  14339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14340. /* end confdefs.h. */
  14341. /* Override any GCC internal prototype to avoid an error.
  14342. Use char because int might match the return type of a GCC
  14343. builtin and then its argument prototype would still apply. */
  14344. #ifdef __cplusplus
  14345. extern "C"
  14346. #endif
  14347. char sqrt ();
  14348. int
  14349. main ()
  14350. {
  14351. return sqrt ();
  14352. ;
  14353. return 0;
  14354. }
  14355. _ACEOF
  14356. if ac_fn_c_try_link "$LINENO"; then :
  14357. ac_cv_lib_m_sqrt=yes
  14358. else
  14359. ac_cv_lib_m_sqrt=no
  14360. fi
  14361. rm -f core conftest.err conftest.$ac_objext \
  14362. conftest$ac_exeext conftest.$ac_ext
  14363. LIBS=$ac_check_lib_save_LIBS
  14364. fi
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  14366. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  14367. if test "x$ac_cv_lib_m_sqrt" = xyes; then :
  14368. cat >>confdefs.h <<_ACEOF
  14369. #define HAVE_LIBM 1
  14370. _ACEOF
  14371. LIBS="-lm $LIBS"
  14372. fi
  14373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf in -lmx" >&5
  14374. $as_echo_n "checking for powf in -lmx... " >&6; }
  14375. if ${ac_cv_lib_mx_powf+:} false; then :
  14376. $as_echo_n "(cached) " >&6
  14377. else
  14378. ac_check_lib_save_LIBS=$LIBS
  14379. LIBS="-lmx $LIBS"
  14380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14381. /* end confdefs.h. */
  14382. /* Override any GCC internal prototype to avoid an error.
  14383. Use char because int might match the return type of a GCC
  14384. builtin and then its argument prototype would still apply. */
  14385. #ifdef __cplusplus
  14386. extern "C"
  14387. #endif
  14388. char powf ();
  14389. int
  14390. main ()
  14391. {
  14392. return powf ();
  14393. ;
  14394. return 0;
  14395. }
  14396. _ACEOF
  14397. if ac_fn_c_try_link "$LINENO"; then :
  14398. ac_cv_lib_mx_powf=yes
  14399. else
  14400. ac_cv_lib_mx_powf=no
  14401. fi
  14402. rm -f core conftest.err conftest.$ac_objext \
  14403. conftest$ac_exeext conftest.$ac_ext
  14404. LIBS=$ac_check_lib_save_LIBS
  14405. fi
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mx_powf" >&5
  14407. $as_echo "$ac_cv_lib_mx_powf" >&6; }
  14408. if test "x$ac_cv_lib_mx_powf" = xyes; then :
  14409. cat >>confdefs.h <<_ACEOF
  14410. #define HAVE_LIBMX 1
  14411. _ACEOF
  14412. LIBS="-lmx $LIBS"
  14413. fi
  14414. # attempt to make the signal stuff work... also with GENERIC - later
  14415. #if test x"$ac_cv_header_sys_signal_h" = xyes; then
  14416. # AC_CHECK_FUNCS( sigemptyset sigaddset sigprocmask sigaction )
  14417. # if test x"$ac_cv_func_sigemptyset" = xyes &&
  14418. # test x"$ac_cv_func_sigaddset" = xyes &&
  14419. # test x"$ac_cv_func_sigprocmask" = xyes &&
  14420. # test x"$ac_cv_func_sigaction" = xyes; then
  14421. # AC_DEFINE(
  14422. #fi
  14423. # do not assume gcc here, so no flags by default
  14424. ADD_CFLAGS=""
  14425. ADD_CPPFLAGS="$sys_cppflags"
  14426. ADD_LDFLAGS=""
  14427. LIBS="$LIBS"
  14428. # Consider moving that stuff.
  14429. ac_fn_c_check_header_mongrel "$LINENO" "os2.h" "ac_cv_header_os2_h" "$ac_includes_default"
  14430. if test "x$ac_cv_header_os2_h" = xyes; then :
  14431. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOS2"
  14432. fi
  14433. # On OS/2, we need to link to os2term to make terminal control actually work.
  14434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcsetattr in -los2term" >&5
  14435. $as_echo_n "checking for tcsetattr in -los2term... " >&6; }
  14436. if ${ac_cv_lib_os2term_tcsetattr+:} false; then :
  14437. $as_echo_n "(cached) " >&6
  14438. else
  14439. ac_check_lib_save_LIBS=$LIBS
  14440. LIBS="-los2term $LIBS"
  14441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14442. /* end confdefs.h. */
  14443. /* Override any GCC internal prototype to avoid an error.
  14444. Use char because int might match the return type of a GCC
  14445. builtin and then its argument prototype would still apply. */
  14446. #ifdef __cplusplus
  14447. extern "C"
  14448. #endif
  14449. char tcsetattr ();
  14450. int
  14451. main ()
  14452. {
  14453. return tcsetattr ();
  14454. ;
  14455. return 0;
  14456. }
  14457. _ACEOF
  14458. if ac_fn_c_try_link "$LINENO"; then :
  14459. ac_cv_lib_os2term_tcsetattr=yes
  14460. else
  14461. ac_cv_lib_os2term_tcsetattr=no
  14462. fi
  14463. rm -f core conftest.err conftest.$ac_objext \
  14464. conftest$ac_exeext conftest.$ac_ext
  14465. LIBS=$ac_check_lib_save_LIBS
  14466. fi
  14467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_os2term_tcsetattr" >&5
  14468. $as_echo "$ac_cv_lib_os2term_tcsetattr" >&6; }
  14469. if test "x$ac_cv_lib_os2term_tcsetattr" = xyes; then :
  14470. ADD_LDFLAGS="$ADD_LDFLAGS -los2term"
  14471. fi
  14472. # If debugging is enabled, just enable debugging symbols.
  14473. # All other stuff enters nagging territory.
  14474. if test x"$debugging" = xenabled; then
  14475. ADD_CFLAGS="-g"
  14476. fi
  14477. # gcc specific...
  14478. if test x"$GCC" = xyes; then
  14479. if test x"$nagging" = xenabled; then
  14480. ADD_CFLAGS="$ADD_CFLAGS -Wall -Werror -std=c89 -pedantic -DPLAIN_C89"
  14481. fi
  14482. fi
  14483. case $host in
  14484. i?86-*)
  14485. $as_echo "#define ABI_ALIGN_FUN 1" >>confdefs.h
  14486. ;;
  14487. esac
  14488. s_altivec="synth_altivec dct64_altivec"
  14489. s_i386="dct64_i386"
  14490. s_i486="$s_i386 synth_i486 dct64_i486"
  14491. s_i586="$s_i386 synth_i586"
  14492. s_i586d="$s_i386 synth_i586_dither"
  14493. s_3dnow="$s_i386 synth_3dnow dct64_3dnow equalizer_3dnow"
  14494. s_3dnowext="$s_i386 dct64_3dnowext tabinit_mmx synth_3dnowext"
  14495. s_3dnow_vintage=$s_3dnow
  14496. s_3dnowext_vintage=$s_3dnowext
  14497. if test "x$layer3" = "xenabled"; then
  14498. s_3dnow_vintage="$s_3dnow_vintage dct36_3dnow"
  14499. s_3dnowext_vintage="$s_3dnowext_vintage dct36_3dnowext"
  14500. fi
  14501. s_mmx="$s_i386 dct64_mmx tabinit_mmx synth_mmx"
  14502. s_sse_vintage="$s_i386 tabinit_mmx dct64_sse_float synth_sse_float synth_stereo_sse_float synth_sse_s32 synth_stereo_sse_s32 "
  14503. s_sse="$s_sse_vintage dct36_sse"
  14504. s_x86_64="dct36_x86_64 dct64_x86_64_float synth_x86_64_float synth_x86_64_s32 synth_stereo_x86_64_float synth_stereo_x86_64_s32"
  14505. s_x86_64_mono_synths="synth_x86_64_float synth_x86_64_s32"
  14506. s_x86_64_avx="dct36_avx dct64_avx_float synth_stereo_avx_float synth_stereo_avx_s32"
  14507. s_x86multi="getcpuflags"
  14508. s_x86_64_multi="getcpuflags_x86_64"
  14509. s_dither="dither"
  14510. s_neon="dct36_neon dct64_neon_float synth_neon_float synth_neon_s32 synth_stereo_neon_float synth_stereo_neon_s32"
  14511. s_neon64="dct36_neon64 dct64_neon64_float synth_neon64_float synth_neon64_s32 synth_stereo_neon64_float synth_stereo_neon64_s32"
  14512. s_arm_multi="getcpuflags_arm check_neon"
  14513. # choose optimized 16bit decoder for SSE, quality or fast
  14514. # note: supporting deactivation of output formats for these decoders would need more logic here
  14515. if test "x$integers" = "xquality"; then
  14516. s_sse="$s_sse synth_sse_accurate synth_stereo_sse_accurate"
  14517. s_sse_vintage="$s_sse_vintage synth_sse_accurate synth_stereo_sse_accurate"
  14518. s_x86_64="$s_x86_64 synth_x86_64_accurate synth_stereo_x86_64_accurate"
  14519. s_x86_64_mono_synths="$s_x86_64_mono_synths synth_x86_64_accurate"
  14520. s_x86_64_avx="$s_x86_64_avx synth_stereo_avx_accurate"
  14521. s_arm="synth_arm_accurate"
  14522. s_neon="$s_neon synth_neon_accurate synth_stereo_neon_accurate"
  14523. s_neon64="$s_neon64 synth_neon64_accurate synth_stereo_neon64_accurate"
  14524. else
  14525. s_sse="$s_sse dct64_sse synth_sse" # no stereo
  14526. s_sse_vintage="$s_sse_vintage dct64_sse synth_sse" # no stereo
  14527. s_x86_64="$s_x86_64 synth_x86_64 dct64_x86_64 synth_stereo_x86_64"
  14528. s_x86_64_mono_synths="$s_x86_64_mono_synths synth_x86_64"
  14529. s_x86_64_avx="$s_x86_64_avx dct64_avx synth_stereo_avx"
  14530. s_arm="synth_arm"
  14531. s_neon="$s_neon dct64_neon synth_neon synth_stereo_neon"
  14532. s_neon64="$s_neon64 dct64_neon64 synth_neon64 synth_stereo_neon64"
  14533. fi
  14534. case $cpu_type in
  14535. generic)
  14536. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FLOAT"
  14537. more_sources="$s_fpu"
  14538. ccalign=no
  14539. ;;
  14540. generic_dither)
  14541. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
  14542. more_sources="$s_fpu $s_dither"
  14543. ccalign=no
  14544. ;;
  14545. generic_fpu | generic_float)
  14546. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FLOAT"
  14547. more_sources="$s_fpu"
  14548. ccalign=no
  14549. ;;
  14550. generic_nofpu)
  14551. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FIXED"
  14552. more_sources=
  14553. ccalign=no
  14554. ;;
  14555. ppc_nofpu)
  14556. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DOPT_PPC -DREAL_IS_FIXED"
  14557. more_sources=
  14558. ccalign=no
  14559. ;;
  14560. arm_nofpu)
  14561. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_ARM -DREAL_IS_FIXED"
  14562. more_sources="$s_arm"
  14563. ccalign=no
  14564. ;;
  14565. altivec)
  14566. ADD_CFLAGS="$ADD_CFLAGS -maltivec"
  14567. ADD_CPPFLAGS="$ADD_CPPFLAGS -DREAL_IS_FLOAT -DOPT_ALTIVEC"
  14568. more_sources="$s_altivec $s_fpu"
  14569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -faltivec" >&5
  14570. $as_echo_n "checking if $CC accepts -faltivec... " >&6; }
  14571. touch conftest.c
  14572. if $CC -faltivec -c -o conftest.o conftest.c >/dev/null 2>&1; then
  14573. ADD_CFLAGS="$ADD_CFLAGS -faltivec"
  14574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14575. $as_echo "yes" >&6; }
  14576. else
  14577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14578. $as_echo "no" >&6; }
  14579. fi
  14580. rm -f conftest.o conftest.c
  14581. ;;
  14582. neon)
  14583. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_NEON -DREAL_IS_FLOAT"
  14584. more_sources="$s_neon $s_fpu"
  14585. ;;
  14586. arm_fpu)
  14587. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_NEON -DREAL_IS_FLOAT"
  14588. more_sources="$s_neon $s_fpu $s_dither $s_arm_multi"
  14589. ;;
  14590. neon64)
  14591. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_NEON64 -DREAL_IS_FLOAT"
  14592. more_sources="$s_neon64 $s_fpu"
  14593. ;;
  14594. aarch64)
  14595. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_NEON64 -DREAL_IS_FLOAT"
  14596. more_sources="$s_neon64 $s_fpu $s_dither $s_arm_multi"
  14597. ;;
  14598. i386)
  14599. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FLOAT"
  14600. more_sources="$s_fpu $s_i386"
  14601. ccalign=no
  14602. ;;
  14603. i386_fpu)
  14604. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FLOAT"
  14605. more_sources="$s_fpu $s_i386"
  14606. ccalign=no
  14607. ;;
  14608. i386_nofpu)
  14609. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FIXED"
  14610. more_sources="$s_i386"
  14611. ccalign=no
  14612. ;;
  14613. i486)
  14614. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I486 -DREAL_IS_FLOAT"
  14615. more_sources="$s_fpu $s_i486"
  14616. ccalign=no
  14617. ;;
  14618. i586)
  14619. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I586 -DREAL_IS_FLOAT"
  14620. more_sources="$s_fpu $s_i586"
  14621. ;;
  14622. i586_dither)
  14623. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I586_DITHER -DREAL_IS_FLOAT"
  14624. more_sources="$s_fpu $s_i586d $s_dither"
  14625. ;;
  14626. 3dnow)
  14627. # legacy 3dnow had the 3dnow paired with i586...
  14628. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_I586 -DOPT_3DNOW -DREAL_IS_FLOAT"
  14629. more_sources="$s_fpu $s_i586 $s_3dnow $s_x86multi "
  14630. ;;
  14631. 3dnow_vintage)
  14632. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_I586 -DOPT_3DNOW_VINTAGE -DREAL_IS_FLOAT"
  14633. more_sources="$s_fpu $s_i586 $s_3dnow_vintage $s_x86multi "
  14634. ;;
  14635. 3dnow_alone)
  14636. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_3DNOW -DREAL_IS_FLOAT"
  14637. more_sources="$s_fpu $s_3dnow"
  14638. ;;
  14639. 3dnowext_alone)
  14640. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_3DNOWEXT -DREAL_IS_FLOAT"
  14641. more_sources="$s_fpu $s_3dnowext"
  14642. ;;
  14643. 3dnowext_vintage)
  14644. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_3DNOW -DOPT_3DNOWEXT_VINTAGE -DREAL_IS_FLOAT"
  14645. more_sources="$s_fpu $s_3dnowext_vintage $s_3dnow $s_x86multi"
  14646. ;;
  14647. 3dnowext)
  14648. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_3DNOW -DOPT_3DNOWEXT -DREAL_IS_FLOAT"
  14649. more_sources="$s_fpu $s_3dnowext $s_3dnow $s_x86multi"
  14650. ;;
  14651. mmx_alone|mmx)
  14652. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MMX -DREAL_IS_FLOAT"
  14653. more_sources="$s_fpu $s_mmx"
  14654. ;;
  14655. sse_alone|sse)
  14656. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_SSE -DREAL_IS_FLOAT"
  14657. more_sources="$s_fpu $s_sse"
  14658. ;;
  14659. sse_vintage)
  14660. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_SSE_VINTAGE -DREAL_IS_FLOAT"
  14661. more_sources="$s_fpu $s_sse_vintage"
  14662. ;;
  14663. avx)
  14664. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_AVX -DREAL_IS_FLOAT"
  14665. more_sources="$s_fpu $s_x86_64_avx $s_x86_64_mono_synths"
  14666. if test "x$YASM" != "xno"; then
  14667. use_yasm_for_avx="yes"
  14668. fi
  14669. ;;
  14670. x86|x86_dither)
  14671. # plain C dct36 always there, for vintage/non-vintage
  14672. # Selection of non-/vintage sources implies that
  14673. # $s_3dnow_vintage contains $s_3dnow,
  14674. # $s_sse contains $s_sse_vintage.
  14675. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_I386 -DOPT_I586 -DOPT_I586_DITHER -DOPT_MMX -DOPT_3DNOW -DOPT_3DNOW_VINTAGE -DOPT_3DNOWEXT -DOPT_3DNOWEXT_VINTAGE -DOPT_SSE -DOPT_SSE_VINTAGE -DREAL_IS_FLOAT"
  14676. more_sources="$s_fpu $s_i386 $s_i586 $s_i586d $s_mmx $s_3dnow_vintage $s_3dnowext_vintage $s_sse $s_x86multi $s_dither"
  14677. ;;
  14678. x86-64_alone)
  14679. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_X86_64 -DREAL_IS_FLOAT"
  14680. more_sources="$s_fpu $s_x86_64"
  14681. ;;
  14682. x86-64|x86-64_all|x86-64_dither)
  14683. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_X86_64 -DOPT_GENERIC -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
  14684. more_sources="$s_fpu $s_x86_64 $s_dither $s_x86_64_multi"
  14685. if test "x$avx_support" = "xyes"; then
  14686. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_AVX"
  14687. more_sources="$more_sources $s_x86_64_avx"
  14688. if test "x$YASM" != "xno"; then
  14689. use_yasm_for_avx="yes"
  14690. fi
  14691. fi
  14692. ;;
  14693. *)
  14694. as_fn_error $? "Unknown CPU type '$cpu_type'" "$LINENO" 5
  14695. ;;
  14696. esac
  14697. # Use yasm instead of the default assembler for AVX sources
  14698. if test "x$use_yasm_for_avx" = "xyes"; then
  14699. case $host_os in
  14700. *cygwin*|*mingw*)
  14701. YASM_FORMAT="-f win64"
  14702. ;;
  14703. *darwin*)
  14704. YASM_FORMAT="-f macho"
  14705. ;;
  14706. *)
  14707. YASM_FORMAT="-f elf"
  14708. ;;
  14709. esac
  14710. $as_echo "#define USE_YASM_FOR_AVX 1" >>confdefs.h
  14711. fi
  14712. if test "x$use_yasm_for_avx" = xyes ; then
  14713. USE_YASM_FOR_AVX_TRUE=
  14714. USE_YASM_FOR_AVX_FALSE='#'
  14715. else
  14716. USE_YASM_FOR_AVX_TRUE='#'
  14717. USE_YASM_FOR_AVX_FALSE=
  14718. fi
  14719. # Check if we want feature report function.
  14720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want feature report function" >&5
  14721. $as_echo_n "checking if we want feature report function... " >&6; }
  14722. feature_report=enabled
  14723. # Check whether --enable-feature_report was given.
  14724. if test "${enable_feature_report+set}" = set; then :
  14725. enableval=$enable_feature_report;
  14726. if test "x$enableval" = xno; then
  14727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14728. $as_echo "no" >&6; }
  14729. feature_report=disabled
  14730. else
  14731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14732. $as_echo "yes" >&6; }
  14733. fi
  14734. else
  14735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14736. $as_echo "yes" >&6; }
  14737. fi
  14738. if test "x$feature_report" = xenabled; then
  14739. more_sources="$more_sources feature"
  14740. fi
  14741. # Return 0 if first arg appears in list of following arguments.
  14742. # Return 1 otherwise.
  14743. word_in_list() {
  14744. word=$1
  14745. shift
  14746. # Avoid naming conflict with the outside!
  14747. # Is local not POSIX sh?
  14748. for given_word in "$@"
  14749. do
  14750. if test "x$word" = "x$given_word"; then
  14751. return 0
  14752. fi
  14753. done
  14754. return 1
  14755. }
  14756. for i in $more_sources
  14757. do
  14758. # Make sure every file is only once in the list.
  14759. word_in_list "$i.\$(OBJEXT)" $DECODER_OBJ || DECODER_OBJ="$DECODER_OBJ $i.\$(OBJEXT)"
  14760. word_in_list "$i.lo" $DECODER_LOBJ || DECODER_LOBJ="$DECODER_LOBJ $i.lo"
  14761. done
  14762. # Another preprocessing step: Append prefix for non-recursive make.
  14763. # Just because $(addprefix ...) is a GNU extension.
  14764. DECODER_OBJ=`for i in $DECODER_OBJ; do printf ' src/libmpg123/%s' $i; done`
  14765. DECODER_LOBJ=`for i in $DECODER_LOBJ; do printf ' src/libmpg123/%s' $i; done`
  14766. if test x"$ccalign" = xyes; then
  14767. $as_echo "#define CCALIGN 1" >>confdefs.h
  14768. fi
  14769. # The full list of supported modules to check, first come, first serve.
  14770. check_modules="alsa tinyalsa oss coreaudio sndio sun win32 win32_wasapi os2 esd jack portaudio pulse sdl nas arts openal dummy"
  14771. # Only check qsa before all else on QNX.
  14772. # It would mask ALSA otherwise.
  14773. case $host in
  14774. *-nto-qnx*)
  14775. check_modules="qsa $check_modules"
  14776. ;;
  14777. esac
  14778. # The final list.
  14779. output_modules=
  14780. check_forced=no
  14781. check_failed=no
  14782. if test "x$with_audio" != "x"; then
  14783. check_modules="`echo $with_audio|tr , ' '` dummy"
  14784. echo "Limiting outputs to build according to your preference: $check_modules"
  14785. check_forced=yes
  14786. fi
  14787. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14788. if test -n "$ac_tool_prefix"; then
  14789. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14790. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14792. $as_echo_n "checking for $ac_word... " >&6; }
  14793. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14794. $as_echo_n "(cached) " >&6
  14795. else
  14796. case $PKG_CONFIG in
  14797. [\\/]* | ?:[\\/]*)
  14798. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14799. ;;
  14800. *)
  14801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14802. for as_dir in $PATH
  14803. do
  14804. IFS=$as_save_IFS
  14805. test -z "$as_dir" && as_dir=.
  14806. for ac_exec_ext in '' $ac_executable_extensions; do
  14807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14808. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14810. break 2
  14811. fi
  14812. done
  14813. done
  14814. IFS=$as_save_IFS
  14815. ;;
  14816. esac
  14817. fi
  14818. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14819. if test -n "$PKG_CONFIG"; then
  14820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14821. $as_echo "$PKG_CONFIG" >&6; }
  14822. else
  14823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14824. $as_echo "no" >&6; }
  14825. fi
  14826. fi
  14827. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14828. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14829. # Extract the first word of "pkg-config", so it can be a program name with args.
  14830. set dummy pkg-config; ac_word=$2
  14831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14832. $as_echo_n "checking for $ac_word... " >&6; }
  14833. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14834. $as_echo_n "(cached) " >&6
  14835. else
  14836. case $ac_pt_PKG_CONFIG in
  14837. [\\/]* | ?:[\\/]*)
  14838. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14839. ;;
  14840. *)
  14841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14842. for as_dir in $PATH
  14843. do
  14844. IFS=$as_save_IFS
  14845. test -z "$as_dir" && as_dir=.
  14846. for ac_exec_ext in '' $ac_executable_extensions; do
  14847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14848. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14850. break 2
  14851. fi
  14852. done
  14853. done
  14854. IFS=$as_save_IFS
  14855. ;;
  14856. esac
  14857. fi
  14858. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14859. if test -n "$ac_pt_PKG_CONFIG"; then
  14860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14861. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14862. else
  14863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14864. $as_echo "no" >&6; }
  14865. fi
  14866. if test "x$ac_pt_PKG_CONFIG" = x; then
  14867. PKG_CONFIG=""
  14868. else
  14869. case $cross_compiling:$ac_tool_warned in
  14870. yes:)
  14871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14872. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14873. ac_tool_warned=yes ;;
  14874. esac
  14875. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14876. fi
  14877. else
  14878. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14879. fi
  14880. fi
  14881. if test -n "$PKG_CONFIG"; then
  14882. _pkg_min_version=0.9.0
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14884. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14885. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14887. $as_echo "yes" >&6; }
  14888. else
  14889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14890. $as_echo "no" >&6; }
  14891. PKG_CONFIG=""
  14892. fi
  14893. fi
  14894. # Now go through the modules to check and do the chores.
  14895. for m in $check_modules
  14896. do
  14897. case "$m" in
  14898. dummy)
  14899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are too dumbing dumb for the dummy" >&5
  14900. $as_echo_n "checking if you are too dumbing dumb for the dummy... " >&6; }
  14901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14902. $as_echo "no" >&6; }
  14903. output_modules="$output_modules dummy"
  14904. HAVE_DUMMY=yes
  14905. ;;
  14906. oss)
  14907. for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h
  14908. do :
  14909. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14910. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14911. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14912. cat >>confdefs.h <<_ACEOF
  14913. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14914. _ACEOF
  14915. fi
  14916. done
  14917. if test "x${ac_cv_header_sys_soundcard_h}" = "xyes" \
  14918. -o "x${ac_cv_header_linux_soundcard_h}" = "xyes" \
  14919. -o "x${ac_cv_header_machine_soundcard_h}" = "xyes";
  14920. then
  14921. output_modules="$output_modules oss"
  14922. HAVE_OSS="yes"
  14923. else
  14924. check_failed=yes
  14925. fi
  14926. ;;
  14927. tinyalsa)
  14928. TINYALSA_LIBS="-ltinyalsa"
  14929. # Check for ALSA
  14930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcm_open in -ltinyalsa" >&5
  14931. $as_echo_n "checking for pcm_open in -ltinyalsa... " >&6; }
  14932. if ${ac_cv_lib_tinyalsa_pcm_open+:} false; then :
  14933. $as_echo_n "(cached) " >&6
  14934. else
  14935. ac_check_lib_save_LIBS=$LIBS
  14936. LIBS="-ltinyalsa $LIBS"
  14937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14938. /* end confdefs.h. */
  14939. /* Override any GCC internal prototype to avoid an error.
  14940. Use char because int might match the return type of a GCC
  14941. builtin and then its argument prototype would still apply. */
  14942. #ifdef __cplusplus
  14943. extern "C"
  14944. #endif
  14945. char pcm_open ();
  14946. int
  14947. main ()
  14948. {
  14949. return pcm_open ();
  14950. ;
  14951. return 0;
  14952. }
  14953. _ACEOF
  14954. if ac_fn_c_try_link "$LINENO"; then :
  14955. ac_cv_lib_tinyalsa_pcm_open=yes
  14956. else
  14957. ac_cv_lib_tinyalsa_pcm_open=no
  14958. fi
  14959. rm -f core conftest.err conftest.$ac_objext \
  14960. conftest$ac_exeext conftest.$ac_ext
  14961. LIBS=$ac_check_lib_save_LIBS
  14962. fi
  14963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinyalsa_pcm_open" >&5
  14964. $as_echo "$ac_cv_lib_tinyalsa_pcm_open" >&6; }
  14965. if test "x$ac_cv_lib_tinyalsa_pcm_open" = xyes; then :
  14966. ac_fn_c_check_header_mongrel "$LINENO" "tinyalsa/asoundlib.h" "ac_cv_header_tinyalsa_asoundlib_h" "$ac_includes_default"
  14967. if test "x$ac_cv_header_tinyalsa_asoundlib_h" = xyes; then :
  14968. output_modules="$output_modules tinyalsa" HAVE_TINYALSA="yes"
  14969. else
  14970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found TINYALSA library but NOT header files on your system" >&5
  14971. $as_echo "$as_me: WARNING: Found TINYALSA library but NOT header files on your system" >&2;}
  14972. fi
  14973. fi
  14974. if test "x$HAVE_TINYALSA" != xyes; then
  14975. check_failed=yes
  14976. fi
  14977. ;;
  14978. # QSA and ALSA are not distinguishable in these tests, need to block
  14979. # each other and play with test order depending on platform.
  14980. alsa)
  14981. if test "x$HAVE_QSA" = xyes; then
  14982. HAVE_ALSA=no
  14983. else
  14984. ALSA_LIBS="-lasound"
  14985. # Check for ALSA
  14986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
  14987. $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
  14988. if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
  14989. $as_echo_n "(cached) " >&6
  14990. else
  14991. ac_check_lib_save_LIBS=$LIBS
  14992. LIBS="-lasound $LIBS"
  14993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14994. /* end confdefs.h. */
  14995. /* Override any GCC internal prototype to avoid an error.
  14996. Use char because int might match the return type of a GCC
  14997. builtin and then its argument prototype would still apply. */
  14998. #ifdef __cplusplus
  14999. extern "C"
  15000. #endif
  15001. char snd_pcm_open ();
  15002. int
  15003. main ()
  15004. {
  15005. return snd_pcm_open ();
  15006. ;
  15007. return 0;
  15008. }
  15009. _ACEOF
  15010. if ac_fn_c_try_link "$LINENO"; then :
  15011. ac_cv_lib_asound_snd_pcm_open=yes
  15012. else
  15013. ac_cv_lib_asound_snd_pcm_open=no
  15014. fi
  15015. rm -f core conftest.err conftest.$ac_objext \
  15016. conftest$ac_exeext conftest.$ac_ext
  15017. LIBS=$ac_check_lib_save_LIBS
  15018. fi
  15019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
  15020. $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
  15021. if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
  15022. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  15023. if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
  15024. output_modules="$output_modules alsa" HAVE_ALSA="yes"
  15025. else
  15026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found ALSA library but NOT header files on your system" >&5
  15027. $as_echo "$as_me: WARNING: Found ALSA library but NOT header files on your system" >&2;}
  15028. fi
  15029. fi
  15030. if test "x$HAVE_ALSA" != xyes; then
  15031. check_failed=yes
  15032. fi
  15033. fi # HAVE_QSA
  15034. ;;
  15035. qsa)
  15036. if test "x$HAVE_ALSA" = xyes; then
  15037. HAVE_QSA=no
  15038. else
  15039. QSA_LIBS="-lasound"
  15040. # Check for QSA
  15041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
  15042. $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
  15043. if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
  15044. $as_echo_n "(cached) " >&6
  15045. else
  15046. ac_check_lib_save_LIBS=$LIBS
  15047. LIBS="-lasound $LIBS"
  15048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15049. /* end confdefs.h. */
  15050. /* Override any GCC internal prototype to avoid an error.
  15051. Use char because int might match the return type of a GCC
  15052. builtin and then its argument prototype would still apply. */
  15053. #ifdef __cplusplus
  15054. extern "C"
  15055. #endif
  15056. char snd_pcm_open ();
  15057. int
  15058. main ()
  15059. {
  15060. return snd_pcm_open ();
  15061. ;
  15062. return 0;
  15063. }
  15064. _ACEOF
  15065. if ac_fn_c_try_link "$LINENO"; then :
  15066. ac_cv_lib_asound_snd_pcm_open=yes
  15067. else
  15068. ac_cv_lib_asound_snd_pcm_open=no
  15069. fi
  15070. rm -f core conftest.err conftest.$ac_objext \
  15071. conftest$ac_exeext conftest.$ac_ext
  15072. LIBS=$ac_check_lib_save_LIBS
  15073. fi
  15074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
  15075. $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
  15076. if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
  15077. ac_fn_c_check_header_mongrel "$LINENO" "sys/asoundlib.h" "ac_cv_header_sys_asoundlib_h" "$ac_includes_default"
  15078. if test "x$ac_cv_header_sys_asoundlib_h" = xyes; then :
  15079. output_modules="$output_modules qsa" HAVE_QSA="yes"
  15080. else
  15081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found QSA library but NOT header files on your system" >&5
  15082. $as_echo "$as_me: WARNING: Found QSA library but NOT header files on your system" >&2;}
  15083. fi
  15084. fi
  15085. if test "x$HAVE_QSA" != xyes; then
  15086. check_failed=yes
  15087. fi
  15088. fi # HAVE_ALSA
  15089. ;;
  15090. jack)
  15091. # JACK module uses semaphores, hence -lpthread.
  15092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_post in -lpthread" >&5
  15093. $as_echo_n "checking for sem_post in -lpthread... " >&6; }
  15094. if ${ac_cv_lib_pthread_sem_post+:} false; then :
  15095. $as_echo_n "(cached) " >&6
  15096. else
  15097. ac_check_lib_save_LIBS=$LIBS
  15098. LIBS="-lpthread $LIBS"
  15099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15100. /* end confdefs.h. */
  15101. /* Override any GCC internal prototype to avoid an error.
  15102. Use char because int might match the return type of a GCC
  15103. builtin and then its argument prototype would still apply. */
  15104. #ifdef __cplusplus
  15105. extern "C"
  15106. #endif
  15107. char sem_post ();
  15108. int
  15109. main ()
  15110. {
  15111. return sem_post ();
  15112. ;
  15113. return 0;
  15114. }
  15115. _ACEOF
  15116. if ac_fn_c_try_link "$LINENO"; then :
  15117. ac_cv_lib_pthread_sem_post=yes
  15118. else
  15119. ac_cv_lib_pthread_sem_post=no
  15120. fi
  15121. rm -f core conftest.err conftest.$ac_objext \
  15122. conftest$ac_exeext conftest.$ac_ext
  15123. LIBS=$ac_check_lib_save_LIBS
  15124. fi
  15125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_post" >&5
  15126. $as_echo "$ac_cv_lib_pthread_sem_post" >&6; }
  15127. if test "x$ac_cv_lib_pthread_sem_post" = xyes; then :
  15128. pkg_failed=no
  15129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15130. $as_echo_n "checking for JACK... " >&6; }
  15131. if test -n "$JACK_CFLAGS"; then
  15132. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15133. elif test -n "$PKG_CONFIG"; then
  15134. if test -n "$PKG_CONFIG" && \
  15135. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
  15136. ($PKG_CONFIG --exists --print-errors "jack") 2>&5
  15137. ac_status=$?
  15138. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15139. test $ac_status = 0; }; then
  15140. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null`
  15141. test "x$?" != "x0" && pkg_failed=yes
  15142. else
  15143. pkg_failed=yes
  15144. fi
  15145. else
  15146. pkg_failed=untried
  15147. fi
  15148. if test -n "$JACK_LIBS"; then
  15149. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15150. elif test -n "$PKG_CONFIG"; then
  15151. if test -n "$PKG_CONFIG" && \
  15152. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
  15153. ($PKG_CONFIG --exists --print-errors "jack") 2>&5
  15154. ac_status=$?
  15155. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15156. test $ac_status = 0; }; then
  15157. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null`
  15158. test "x$?" != "x0" && pkg_failed=yes
  15159. else
  15160. pkg_failed=yes
  15161. fi
  15162. else
  15163. pkg_failed=untried
  15164. fi
  15165. if test $pkg_failed = yes; then
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15167. $as_echo "no" >&6; }
  15168. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15169. _pkg_short_errors_supported=yes
  15170. else
  15171. _pkg_short_errors_supported=no
  15172. fi
  15173. if test $_pkg_short_errors_supported = yes; then
  15174. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack" 2>&1`
  15175. else
  15176. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack" 2>&1`
  15177. fi
  15178. # Put the nasty error message in config.log where it belongs
  15179. echo "$JACK_PKG_ERRORS" >&5
  15180. HAVE_JACK="no" check_failed=yes
  15181. elif test $pkg_failed = untried; then
  15182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15183. $as_echo "no" >&6; }
  15184. HAVE_JACK="no" check_failed=yes
  15185. else
  15186. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15187. JACK_LIBS=$pkg_cv_JACK_LIBS
  15188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15189. $as_echo "yes" >&6; }
  15190. output_modules="$output_modules jack"
  15191. HAVE_JACK="yes"
  15192. JACK_LIBS="$JACK_LIBS -lpthread"
  15193. fi
  15194. else
  15195. HAVE_JACK=no check_failed=yes
  15196. fi
  15197. ;;
  15198. pulse)
  15199. pkg_failed=no
  15200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSE" >&5
  15201. $as_echo_n "checking for PULSE... " >&6; }
  15202. if test -n "$PULSE_CFLAGS"; then
  15203. pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
  15204. elif test -n "$PKG_CONFIG"; then
  15205. if test -n "$PKG_CONFIG" && \
  15206. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
  15207. ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  15208. ac_status=$?
  15209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15210. test $ac_status = 0; }; then
  15211. pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
  15212. test "x$?" != "x0" && pkg_failed=yes
  15213. else
  15214. pkg_failed=yes
  15215. fi
  15216. else
  15217. pkg_failed=untried
  15218. fi
  15219. if test -n "$PULSE_LIBS"; then
  15220. pkg_cv_PULSE_LIBS="$PULSE_LIBS"
  15221. elif test -n "$PKG_CONFIG"; then
  15222. if test -n "$PKG_CONFIG" && \
  15223. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
  15224. ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  15225. ac_status=$?
  15226. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15227. test $ac_status = 0; }; then
  15228. pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
  15229. test "x$?" != "x0" && pkg_failed=yes
  15230. else
  15231. pkg_failed=yes
  15232. fi
  15233. else
  15234. pkg_failed=untried
  15235. fi
  15236. if test $pkg_failed = yes; then
  15237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15238. $as_echo "no" >&6; }
  15239. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15240. _pkg_short_errors_supported=yes
  15241. else
  15242. _pkg_short_errors_supported=no
  15243. fi
  15244. if test $_pkg_short_errors_supported = yes; then
  15245. PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple" 2>&1`
  15246. else
  15247. PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple" 2>&1`
  15248. fi
  15249. # Put the nasty error message in config.log where it belongs
  15250. echo "$PULSE_PKG_ERRORS" >&5
  15251. HAVE_PULSE="no" check_failed=yes
  15252. elif test $pkg_failed = untried; then
  15253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15254. $as_echo "no" >&6; }
  15255. HAVE_PULSE="no" check_failed=yes
  15256. else
  15257. PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
  15258. PULSE_LIBS=$pkg_cv_PULSE_LIBS
  15259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15260. $as_echo "yes" >&6; }
  15261. output_modules="$output_modules pulse" HAVE_PULSE="yes"
  15262. fi
  15263. ;;
  15264. esd)
  15265. pkg_failed=no
  15266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD" >&5
  15267. $as_echo_n "checking for ESD... " >&6; }
  15268. if test -n "$ESD_CFLAGS"; then
  15269. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  15270. elif test -n "$PKG_CONFIG"; then
  15271. if test -n "$PKG_CONFIG" && \
  15272. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound\""; } >&5
  15273. ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  15274. ac_status=$?
  15275. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15276. test $ac_status = 0; }; then
  15277. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  15278. test "x$?" != "x0" && pkg_failed=yes
  15279. else
  15280. pkg_failed=yes
  15281. fi
  15282. else
  15283. pkg_failed=untried
  15284. fi
  15285. if test -n "$ESD_LIBS"; then
  15286. pkg_cv_ESD_LIBS="$ESD_LIBS"
  15287. elif test -n "$PKG_CONFIG"; then
  15288. if test -n "$PKG_CONFIG" && \
  15289. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound\""; } >&5
  15290. ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  15291. ac_status=$?
  15292. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15293. test $ac_status = 0; }; then
  15294. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  15295. test "x$?" != "x0" && pkg_failed=yes
  15296. else
  15297. pkg_failed=yes
  15298. fi
  15299. else
  15300. pkg_failed=untried
  15301. fi
  15302. if test $pkg_failed = yes; then
  15303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15304. $as_echo "no" >&6; }
  15305. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15306. _pkg_short_errors_supported=yes
  15307. else
  15308. _pkg_short_errors_supported=no
  15309. fi
  15310. if test $_pkg_short_errors_supported = yes; then
  15311. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound" 2>&1`
  15312. else
  15313. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound" 2>&1`
  15314. fi
  15315. # Put the nasty error message in config.log where it belongs
  15316. echo "$ESD_PKG_ERRORS" >&5
  15317. HAVE_ESD="no" check_failed=yes
  15318. elif test $pkg_failed = untried; then
  15319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15320. $as_echo "no" >&6; }
  15321. HAVE_ESD="no" check_failed=yes
  15322. else
  15323. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  15324. ESD_LIBS=$pkg_cv_ESD_LIBS
  15325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15326. $as_echo "yes" >&6; }
  15327. output_modules="$output_modules esd" HAVE_ESD="yes"
  15328. fi
  15329. ;;
  15330. portaudio)
  15331. # Remember: This looks only insane because you chose an insane tab width!
  15332. PORTAUDIO_LIBS="-lportaudio"
  15333. PORTAUDIO_CFLAGS=
  15334. case $host in
  15335. *-*-mingw32)
  15336. # We tested portaudio with MME
  15337. if test "x$HAVE_PORTAUDIO" != "xyes"; then
  15338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_Initialize in -lportaudio" >&5
  15339. $as_echo_n "checking for Pa_Initialize in -lportaudio... " >&6; }
  15340. if ${ac_cv_lib_portaudio_Pa_Initialize+:} false; then :
  15341. $as_echo_n "(cached) " >&6
  15342. else
  15343. ac_check_lib_save_LIBS=$LIBS
  15344. LIBS="-lportaudio -lwinmm
  15345. $LIBS"
  15346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15347. /* end confdefs.h. */
  15348. /* Override any GCC internal prototype to avoid an error.
  15349. Use char because int might match the return type of a GCC
  15350. builtin and then its argument prototype would still apply. */
  15351. #ifdef __cplusplus
  15352. extern "C"
  15353. #endif
  15354. char Pa_Initialize ();
  15355. int
  15356. main ()
  15357. {
  15358. return Pa_Initialize ();
  15359. ;
  15360. return 0;
  15361. }
  15362. _ACEOF
  15363. if ac_fn_c_try_link "$LINENO"; then :
  15364. ac_cv_lib_portaudio_Pa_Initialize=yes
  15365. else
  15366. ac_cv_lib_portaudio_Pa_Initialize=no
  15367. fi
  15368. rm -f core conftest.err conftest.$ac_objext \
  15369. conftest$ac_exeext conftest.$ac_ext
  15370. LIBS=$ac_check_lib_save_LIBS
  15371. fi
  15372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
  15373. $as_echo "$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
  15374. if test "x$ac_cv_lib_portaudio_Pa_Initialize" = xyes; then :
  15375. ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
  15376. if test "x$ac_cv_header_portaudio_h" = xyes; then :
  15377. output_modules="$output_modules portaudio" HAVE_PORTAUDIO_WINMM="yes" HAVE_PORTAUDIO="yes"
  15378. else
  15379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found PortAudio library but NOT header files on your system" >&5
  15380. $as_echo "$as_me: WARNING: Found PortAudio library but NOT header files on your system" >&2;}
  15381. fi
  15382. PORTAUDIO_LIBS="$PORTAUDIO_LIBS -lwinmm"
  15383. else
  15384. HAVE_PORTAUDIO="no"
  15385. fi
  15386. fi
  15387. ;;
  15388. *)
  15389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_Initialize in -lportaudio" >&5
  15390. $as_echo_n "checking for Pa_Initialize in -lportaudio... " >&6; }
  15391. if ${ac_cv_lib_portaudio_Pa_Initialize+:} false; then :
  15392. $as_echo_n "(cached) " >&6
  15393. else
  15394. ac_check_lib_save_LIBS=$LIBS
  15395. LIBS="-lportaudio $LIBS"
  15396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15397. /* end confdefs.h. */
  15398. /* Override any GCC internal prototype to avoid an error.
  15399. Use char because int might match the return type of a GCC
  15400. builtin and then its argument prototype would still apply. */
  15401. #ifdef __cplusplus
  15402. extern "C"
  15403. #endif
  15404. char Pa_Initialize ();
  15405. int
  15406. main ()
  15407. {
  15408. return Pa_Initialize ();
  15409. ;
  15410. return 0;
  15411. }
  15412. _ACEOF
  15413. if ac_fn_c_try_link "$LINENO"; then :
  15414. ac_cv_lib_portaudio_Pa_Initialize=yes
  15415. else
  15416. ac_cv_lib_portaudio_Pa_Initialize=no
  15417. fi
  15418. rm -f core conftest.err conftest.$ac_objext \
  15419. conftest$ac_exeext conftest.$ac_ext
  15420. LIBS=$ac_check_lib_save_LIBS
  15421. fi
  15422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
  15423. $as_echo "$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
  15424. if test "x$ac_cv_lib_portaudio_Pa_Initialize" = xyes; then :
  15425. ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
  15426. if test "x$ac_cv_header_portaudio_h" = xyes; then :
  15427. output_modules="$output_modules portaudio" HAVE_PORTAUDIO="yes"
  15428. else
  15429. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found PortAudio library but NOT header files on your system" >&5
  15430. $as_echo "$as_me: WARNING: Found PortAudio library but NOT header files on your system" >&2;}
  15431. fi
  15432. fi
  15433. ;;
  15434. esac
  15435. if test "x$HAVE_PORTAUDIO" != xyes; then
  15436. check_failed=yes
  15437. else
  15438. # See if we have v19 or v18
  15439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_GetVersion in -lportaudio" >&5
  15440. $as_echo_n "checking for Pa_GetVersion in -lportaudio... " >&6; }
  15441. if ${ac_cv_lib_portaudio_Pa_GetVersion+:} false; then :
  15442. $as_echo_n "(cached) " >&6
  15443. else
  15444. ac_check_lib_save_LIBS=$LIBS
  15445. LIBS="-lportaudio $PORTAUDIO_LIBS $LIBS"
  15446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15447. /* end confdefs.h. */
  15448. /* Override any GCC internal prototype to avoid an error.
  15449. Use char because int might match the return type of a GCC
  15450. builtin and then its argument prototype would still apply. */
  15451. #ifdef __cplusplus
  15452. extern "C"
  15453. #endif
  15454. char Pa_GetVersion ();
  15455. int
  15456. main ()
  15457. {
  15458. return Pa_GetVersion ();
  15459. ;
  15460. return 0;
  15461. }
  15462. _ACEOF
  15463. if ac_fn_c_try_link "$LINENO"; then :
  15464. ac_cv_lib_portaudio_Pa_GetVersion=yes
  15465. else
  15466. ac_cv_lib_portaudio_Pa_GetVersion=no
  15467. fi
  15468. rm -f core conftest.err conftest.$ac_objext \
  15469. conftest$ac_exeext conftest.$ac_ext
  15470. LIBS=$ac_check_lib_save_LIBS
  15471. fi
  15472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_GetVersion" >&5
  15473. $as_echo "$ac_cv_lib_portaudio_Pa_GetVersion" >&6; }
  15474. if test "x$ac_cv_lib_portaudio_Pa_GetVersion" = xyes; then :
  15475. :
  15476. else
  15477. $as_echo "#define PORTAUDIO18 1" >>confdefs.h
  15478. fi
  15479. fi
  15480. ;;
  15481. sdl)
  15482. pkg_failed=no
  15483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
  15484. $as_echo_n "checking for SDL... " >&6; }
  15485. if test -n "$SDL_CFLAGS"; then
  15486. pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  15487. elif test -n "$PKG_CONFIG"; then
  15488. if test -n "$PKG_CONFIG" && \
  15489. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
  15490. ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
  15491. ac_status=$?
  15492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15493. test $ac_status = 0; }; then
  15494. pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
  15495. test "x$?" != "x0" && pkg_failed=yes
  15496. else
  15497. pkg_failed=yes
  15498. fi
  15499. else
  15500. pkg_failed=untried
  15501. fi
  15502. if test -n "$SDL_LIBS"; then
  15503. pkg_cv_SDL_LIBS="$SDL_LIBS"
  15504. elif test -n "$PKG_CONFIG"; then
  15505. if test -n "$PKG_CONFIG" && \
  15506. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
  15507. ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
  15508. ac_status=$?
  15509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15510. test $ac_status = 0; }; then
  15511. pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
  15512. test "x$?" != "x0" && pkg_failed=yes
  15513. else
  15514. pkg_failed=yes
  15515. fi
  15516. else
  15517. pkg_failed=untried
  15518. fi
  15519. if test $pkg_failed = yes; then
  15520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15521. $as_echo "no" >&6; }
  15522. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15523. _pkg_short_errors_supported=yes
  15524. else
  15525. _pkg_short_errors_supported=no
  15526. fi
  15527. if test $_pkg_short_errors_supported = yes; then
  15528. SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
  15529. else
  15530. SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
  15531. fi
  15532. # Put the nasty error message in config.log where it belongs
  15533. echo "$SDL_PKG_ERRORS" >&5
  15534. HAVE_SDL="no" check_failed=yes
  15535. elif test $pkg_failed = untried; then
  15536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15537. $as_echo "no" >&6; }
  15538. HAVE_SDL="no" check_failed=yes
  15539. else
  15540. SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  15541. SDL_LIBS=$pkg_cv_SDL_LIBS
  15542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15543. $as_echo "yes" >&6; }
  15544. output_modules="$output_modules sdl" HAVE_SDL="yes"
  15545. fi
  15546. ;;
  15547. nas)
  15548. NAS_LIBS=-laudio
  15549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15550. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15551. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15552. $as_echo_n "(cached) " >&6
  15553. else
  15554. ac_check_lib_save_LIBS=$LIBS
  15555. LIBS="-laudio $LIBS"
  15556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15557. /* end confdefs.h. */
  15558. /* Override any GCC internal prototype to avoid an error.
  15559. Use char because int might match the return type of a GCC
  15560. builtin and then its argument prototype would still apply. */
  15561. #ifdef __cplusplus
  15562. extern "C"
  15563. #endif
  15564. char AuOpenServer ();
  15565. int
  15566. main ()
  15567. {
  15568. return AuOpenServer ();
  15569. ;
  15570. return 0;
  15571. }
  15572. _ACEOF
  15573. if ac_fn_c_try_link "$LINENO"; then :
  15574. ac_cv_lib_audio_AuOpenServer=yes
  15575. else
  15576. ac_cv_lib_audio_AuOpenServer=no
  15577. fi
  15578. rm -f core conftest.err conftest.$ac_objext \
  15579. conftest$ac_exeext conftest.$ac_ext
  15580. LIBS=$ac_check_lib_save_LIBS
  15581. fi
  15582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15583. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15584. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15585. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15586. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15587. output_modules="$output_modules nas" HAVE_NAS="yes"
  15588. else
  15589. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found NAS library but NOT header files on your system" >&5
  15590. $as_echo "$as_me: WARNING: Found NAS library but NOT header files on your system" >&2;}
  15591. fi
  15592. fi
  15593. if test "x$HAVE_NAS" != xyes; then
  15594. check_failed=yes
  15595. fi
  15596. ;;
  15597. win32)
  15598. # Check for windows ... and win32 audio
  15599. # Does not work... instead just check for header
  15600. # AC_CHECK_LIB( [winmm], [waveOutOpen] )
  15601. WIN32_LIBS=-lwinmm
  15602. if test x$ac_cv_header_windows_h = xyes; then
  15603. output_modules="$output_modules win32"
  15604. HAVE_WIN32=yes
  15605. else
  15606. HAVE_WIN32=no
  15607. check_failed=yes
  15608. fi
  15609. ;;
  15610. win32_wasapi)
  15611. # Check for windows ... and win32 wasapi audio
  15612. # Does not work... instead just check for header
  15613. # AC_CHECK_LIB( [avrt], [] )
  15614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have wasapi headers" >&5
  15615. $as_echo_n "checking if we have wasapi headers... " >&6; }
  15616. OLD_LIBS=$LIBS
  15617. LIBS="$LIBS -lole32 -lavrt"
  15618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15619. /* end confdefs.h. */
  15620. #define COBJMACROS 1
  15621. #define _WIN32_WINNT 0x601
  15622. #include <initguid.h>
  15623. #include <audioclient.h>
  15624. #include <mmdeviceapi.h>
  15625. #include <avrt.h>
  15626. int main(){
  15627. /* UUID Checks */
  15628. GUID *IDs = {
  15629. &CLSID_MMDeviceEnumerator,
  15630. &IID_IMMDeviceEnumerator,
  15631. &IID_IAudioClient,
  15632. &IID_IAudioRenderClient
  15633. };
  15634. return 0;
  15635. }
  15636. _ACEOF
  15637. if ac_fn_c_try_link "$LINENO"; then :
  15638. HAVE_WIN32_WASAPI=yes
  15639. else
  15640. HAVE_WIN32_WASAPI=no
  15641. fi
  15642. rm -f core conftest.err conftest.$ac_objext \
  15643. conftest$ac_exeext conftest.$ac_ext
  15644. LIBS=$OLD_LIBS
  15645. WIN32_WASAPI_LIBS="-lole32 -lavrt"
  15646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WIN32_WASAPI" >&5
  15647. $as_echo "$HAVE_WIN32_WASAPI" >&6; }
  15648. if test "x$HAVE_WIN32_WASAPI" = xyes; then
  15649. output_modules="$output_modules win32_wasapi"
  15650. else
  15651. check_failed=yes
  15652. fi
  15653. ;;
  15654. sndio)
  15655. SNDIO_LIBS=-lsndio
  15656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15657. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15658. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15659. $as_echo_n "(cached) " >&6
  15660. else
  15661. ac_check_lib_save_LIBS=$LIBS
  15662. LIBS="-lsndio $LIBS"
  15663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15664. /* end confdefs.h. */
  15665. /* Override any GCC internal prototype to avoid an error.
  15666. Use char because int might match the return type of a GCC
  15667. builtin and then its argument prototype would still apply. */
  15668. #ifdef __cplusplus
  15669. extern "C"
  15670. #endif
  15671. char sio_open ();
  15672. int
  15673. main ()
  15674. {
  15675. return sio_open ();
  15676. ;
  15677. return 0;
  15678. }
  15679. _ACEOF
  15680. if ac_fn_c_try_link "$LINENO"; then :
  15681. ac_cv_lib_sndio_sio_open=yes
  15682. else
  15683. ac_cv_lib_sndio_sio_open=no
  15684. fi
  15685. rm -f core conftest.err conftest.$ac_objext \
  15686. conftest$ac_exeext conftest.$ac_ext
  15687. LIBS=$ac_check_lib_save_LIBS
  15688. fi
  15689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15690. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15691. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15692. for ac_header in sndio.h
  15693. do :
  15694. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15695. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15696. cat >>confdefs.h <<_ACEOF
  15697. #define HAVE_SNDIO_H 1
  15698. _ACEOF
  15699. output_modules="$output_modules sndio" HAVE_SNDIO="yes"
  15700. fi
  15701. done
  15702. fi
  15703. if test "x$HAVE_SNDIO" != xyes; then
  15704. check_failed=yes
  15705. fi
  15706. ;;
  15707. sun)
  15708. for ac_header in sun/audioio.h sys/audioio.h asm/audioio.h sys/audio.h
  15709. do :
  15710. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15711. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15712. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15713. cat >>confdefs.h <<_ACEOF
  15714. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15715. _ACEOF
  15716. fi
  15717. done
  15718. if test "x${ac_cv_header_sun_audioio_h}" = "xyes" \
  15719. -o "x${ac_cv_header_sys_audioio_h}" = "xyes" \
  15720. -o "x${ac_cv_header_asm_audioio_h}" = "xyes";
  15721. then
  15722. output_modules="$output_modules sun"
  15723. HAVE_SUN="yes"
  15724. else
  15725. check_failed=yes
  15726. fi
  15727. ;;
  15728. coreaudio)
  15729. COREAUDIO_LIBS="-framework AudioToolbox"
  15730. for ac_header in AudioUnit/AudioUnit.h AudioToolbox/AudioToolbox.h
  15731. do :
  15732. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15733. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15734. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15735. cat >>confdefs.h <<_ACEOF
  15736. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15737. _ACEOF
  15738. fi
  15739. done
  15740. if test "x${ac_cv_header_AudioUnit_AudioUnit_h}" = "xyes" \
  15741. -a "x${ac_cv_header_AudioToolbox_AudioToolbox_h}" = "xyes";
  15742. then
  15743. OLD_LIBS=$LIBS
  15744. LIBS="$LIBS $COREAUDIO_LIBS"
  15745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AudioUnit functions are available within AudioToolbox" >&5
  15746. $as_echo_n "checking if AudioUnit functions are available within AudioToolbox... " >&6; }
  15747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15748. /* end confdefs.h. */
  15749. #include <AudioUnit/AudioUnit.h>
  15750. int
  15751. main ()
  15752. {
  15753. AudioUnitInitialize(NULL);
  15754. ;
  15755. return 0;
  15756. }
  15757. _ACEOF
  15758. if ac_fn_c_try_link "$LINENO"; then :
  15759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15760. $as_echo "yes" >&6; }
  15761. else
  15762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15763. $as_echo "no" >&6; }
  15764. COREAUDIO_LIBS="$COREAUDIO_LIBS -framework AudioUnit"
  15765. fi
  15766. rm -f core conftest.err conftest.$ac_objext \
  15767. conftest$ac_exeext conftest.$ac_ext
  15768. LIBS=$OLD_LIBS
  15769. for ac_header in CoreServices/CoreServices.h
  15770. do :
  15771. ac_fn_c_check_header_mongrel "$LINENO" "CoreServices/CoreServices.h" "ac_cv_header_CoreServices_CoreServices_h" "$ac_includes_default"
  15772. if test "x$ac_cv_header_CoreServices_CoreServices_h" = xyes; then :
  15773. cat >>confdefs.h <<_ACEOF
  15774. #define HAVE_CORESERVICES_CORESERVICES_H 1
  15775. _ACEOF
  15776. COREAUDIO_LIBS="$COREAUDIO_LIBS -framework CoreServices"
  15777. fi
  15778. done
  15779. if test x"$modules" = xdisabled; then
  15780. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling buffer because of directly linked CoreAudio! Use the module if you need the buffer." >&5
  15781. $as_echo "$as_me: WARNING: Disabling buffer because of directly linked CoreAudio! Use the module if you need the buffer." >&2;}
  15782. buffer=disabled
  15783. fi
  15784. output_modules="$output_modules coreaudio"
  15785. HAVE_COREAUDIO="yes"
  15786. else
  15787. check_failed=yes
  15788. fi
  15789. ;;
  15790. arts)
  15791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for artsc" >&5
  15792. $as_echo_n "checking for artsc... " >&6; }
  15793. if artsc-config > /dev/null 2>&1; then
  15794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15795. $as_echo "yes" >&6; }
  15796. output_modules="$output_modules arts"
  15797. HAVE_ARTS=yes
  15798. ARTS_LIBS=`artsc-config --libs`
  15799. ARTS_CFLAGS=`artsc-config --cflags`
  15800. else
  15801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15802. $as_echo "no" >&6; }
  15803. check_failed=yes
  15804. fi
  15805. ;;
  15806. openal)
  15807. for ac_header in OpenAL/al.h OpenAL/alc.h AL/al.h AL/alc.h al.h alc.h
  15808. do :
  15809. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15810. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15811. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15812. cat >>confdefs.h <<_ACEOF
  15813. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15814. _ACEOF
  15815. fi
  15816. done
  15817. if test "x${ac_cv_header_OpenAL_al_h}" = "xyes" \
  15818. -a "x${ac_cv_header_OpenAL_alc_h}" = "xyes";
  15819. then #Mac OS X
  15820. output_modules="$output_modules openal"
  15821. OPENAL_LIBS="-framework OpenAL"
  15822. OPENAL_CFLAGS="-DOPENAL_SUBDIR_OPENAL"
  15823. HAVE_OPENAL="yes"
  15824. elif test "x${ac_cv_header_AL_al_h}" = "xyes" \
  15825. -a "x${ac_cv_header_AL_alc_h}" = "xyes";
  15826. then #Linux
  15827. output_modules="$output_modules openal"
  15828. OPENAL_LIBS="-lopenal"
  15829. OPENAL_CFLAGS="-DOPENAL_SUBDIR_AL"
  15830. HAVE_OPENAL="yes"
  15831. elif test "x${ac_cv_header_al_h}" = "xyes" \
  15832. -a "x${ac_cv_header_alc_h}" = "xyes";
  15833. then #Windows?
  15834. output_modules="$output_modules openal"
  15835. OPENAL_LIBS="-lopenal"
  15836. OPENAL_CFLAGS=""
  15837. HAVE_OPENAL="yes"
  15838. else
  15839. check_failed=yes
  15840. fi
  15841. ;;
  15842. os2)
  15843. OS2_LIBS="-los2me -lmmpm2 -lsocket"
  15844. for ac_header in os2.h
  15845. do :
  15846. ac_fn_c_check_header_mongrel "$LINENO" "os2.h" "ac_cv_header_os2_h" "$ac_includes_default"
  15847. if test "x$ac_cv_header_os2_h" = xyes; then :
  15848. cat >>confdefs.h <<_ACEOF
  15849. #define HAVE_OS2_H 1
  15850. _ACEOF
  15851. fi
  15852. done
  15853. # os2me.h depends on os2.h
  15854. # Yes, that way of coding it is ugly.
  15855. if test "x${ac_cv_header_os2_h}" = xyes
  15856. then
  15857. # We mimick exactly the way how the header will be used.
  15858. # It seems to be picky...
  15859. for ac_header in os2me.h
  15860. do :
  15861. ac_fn_c_check_header_compile "$LINENO" "os2me.h" "ac_cv_header_os2me_h" "#define INCL_OS2MM
  15862. #define INCL_DOS
  15863. #define INCL_VIO
  15864. #define INCL_KBD
  15865. #include <os2.h>
  15866. #
  15867. "
  15868. if test "x$ac_cv_header_os2me_h" = xyes; then :
  15869. cat >>confdefs.h <<_ACEOF
  15870. #define HAVE_OS2ME_H 1
  15871. _ACEOF
  15872. fi
  15873. done
  15874. fi
  15875. if test "x${ac_cv_header_os2_h}" = xyes \
  15876. -a "x${ac_cv_header_os2me_h}" = xyes
  15877. then
  15878. output_modules="$output_modules os2"
  15879. HAVE_OS2=yes
  15880. else
  15881. check_failed=yes
  15882. fi
  15883. ;;
  15884. # from here on only forced tests, untested code
  15885. hp)
  15886. # What's the deal with that and alib?
  15887. UNSUPPORTED_AUDIO=yes
  15888. ac_fn_c_check_header_mongrel "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default"
  15889. if test "x$ac_cv_header_sys_audio_h" = xyes; then :
  15890. output_modules="$output_modules hp" HAVE_HP=yes
  15891. else
  15892. check_failed=yes
  15893. fi
  15894. ;;
  15895. alib)
  15896. UNSUPPORTED_AUDIO=yes
  15897. # ALIB_CFLAGS="-I/opt/audio/include"
  15898. ALIB_LIBS=-lAlib
  15899. # These headers may not be all about audio but they are used.
  15900. for ac_header in Alib.h CUlib.h netdb.h netinet/in.h netinet/tcp.h
  15901. do :
  15902. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15903. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15904. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15905. cat >>confdefs.h <<_ACEOF
  15906. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15907. _ACEOF
  15908. fi
  15909. done
  15910. if test "x${ac_cv_header_Alib_h}" = xyes \
  15911. -a "x${ac_cv_header_CUlib_h}" = xyes \
  15912. -a "x${ac_cv_header_netdb_h}" = xyes \
  15913. -a "x${ac_cv_header_netinet_in_h}" = xyes \
  15914. -a "x${ac_cv_header_netinet_tcp_h}" = xyes
  15915. then
  15916. output_modules="$output_modules alib"
  15917. HAVE_ALIB=yes
  15918. else
  15919. check_failed=yes
  15920. fi
  15921. ;;
  15922. mint)
  15923. UNSUPPORTED_AUDIO=yes
  15924. for ac_header in audios.h
  15925. do :
  15926. ac_fn_c_check_header_mongrel "$LINENO" "audios.h" "ac_cv_header_audios_h" "$ac_includes_default"
  15927. if test "x$ac_cv_header_audios_h" = xyes; then :
  15928. cat >>confdefs.h <<_ACEOF
  15929. #define HAVE_AUDIOS_H 1
  15930. _ACEOF
  15931. output_modules="$output_modules mint" HAVE_MINT=yes
  15932. else
  15933. check_failes=yes
  15934. fi
  15935. done
  15936. ;;
  15937. aix)
  15938. UNSUPPORTED_AUDIO=yes
  15939. for ac_header in sys/audio.h
  15940. do :
  15941. ac_fn_c_check_header_mongrel "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default"
  15942. if test "x$ac_cv_header_sys_audio_h" = xyes; then :
  15943. cat >>confdefs.h <<_ACEOF
  15944. #define HAVE_SYS_AUDIO_H 1
  15945. _ACEOF
  15946. output_modules="$output_modules aix" HAVE_AIX=yes
  15947. else
  15948. check_failed=yes
  15949. fi
  15950. done
  15951. ;;
  15952. sgi)
  15953. UNSUPPORTED_AUDIO=yes
  15954. SGI_LIBS=-laudio
  15955. ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default"
  15956. if test "x$ac_cv_header_dmedia_audio_h" = xyes; then :
  15957. output_modules="$output_modules sgi" HAVE_SGI=yes
  15958. else
  15959. check_failed=yes
  15960. fi
  15961. ;;
  15962. *)
  15963. as_fn_error $? "Unsupported/-known output '$m' demanded!" "$LINENO" 5
  15964. ;;
  15965. esac
  15966. done
  15967. if test "x$check_forced" = xyes -a "x$UNSUPPORTED_AUDIO" = xyes; then
  15968. { $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
  15969. $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;}
  15970. fi
  15971. if test "x$check_forced" = xyes -a "x$check_failed" = "xyes"; then
  15972. as_fn_error $? "One/some of your requested audio modules failed the test!" "$LINENO" 5
  15973. fi
  15974. # When you extend check_modules, you should extend this:
  15975. #for i in alsa qsa oss coreaudio sndio sun win32 win32_wasapi esd jack portaudio pulse sdl nas aix alib arts hp os2 sgi mint openal dummy
  15976. #do echo $i; done |
  15977. #perl -ne 'chomp; $big = uc($_); print <<EOT;
  15978. #AC_SUBST(${big}_LIBS)
  15979. #AC_SUBST(${big}_LDFLAGS)
  15980. #AC_SUBST(${big}_CFLAGS)
  15981. #AM_CONDITIONAL( [HAVE_$big], [test "x\$HAVE_$big" = xyes] )
  15982. #EOT
  15983. #'
  15984. if test "x$HAVE_TINYALSA" = xyes ; then
  15985. HAVE_TINYALSA_TRUE=
  15986. HAVE_TINYALSA_FALSE='#'
  15987. else
  15988. HAVE_TINYALSA_TRUE='#'
  15989. HAVE_TINYALSA_FALSE=
  15990. fi
  15991. if test "x$HAVE_ALSA" = xyes ; then
  15992. HAVE_ALSA_TRUE=
  15993. HAVE_ALSA_FALSE='#'
  15994. else
  15995. HAVE_ALSA_TRUE='#'
  15996. HAVE_ALSA_FALSE=
  15997. fi
  15998. if test "x$HAVE_QSA" = xyes ; then
  15999. HAVE_QSA_TRUE=
  16000. HAVE_QSA_FALSE='#'
  16001. else
  16002. HAVE_QSA_TRUE='#'
  16003. HAVE_QSA_FALSE=
  16004. fi
  16005. if test "x$HAVE_OSS" = xyes ; then
  16006. HAVE_OSS_TRUE=
  16007. HAVE_OSS_FALSE='#'
  16008. else
  16009. HAVE_OSS_TRUE='#'
  16010. HAVE_OSS_FALSE=
  16011. fi
  16012. if test "x$HAVE_COREAUDIO" = xyes ; then
  16013. HAVE_COREAUDIO_TRUE=
  16014. HAVE_COREAUDIO_FALSE='#'
  16015. else
  16016. HAVE_COREAUDIO_TRUE='#'
  16017. HAVE_COREAUDIO_FALSE=
  16018. fi
  16019. if test "x$HAVE_SNDIO" = xyes ; then
  16020. HAVE_SNDIO_TRUE=
  16021. HAVE_SNDIO_FALSE='#'
  16022. else
  16023. HAVE_SNDIO_TRUE='#'
  16024. HAVE_SNDIO_FALSE=
  16025. fi
  16026. if test "x$HAVE_SUN" = xyes ; then
  16027. HAVE_SUN_TRUE=
  16028. HAVE_SUN_FALSE='#'
  16029. else
  16030. HAVE_SUN_TRUE='#'
  16031. HAVE_SUN_FALSE=
  16032. fi
  16033. if test "x$HAVE_WIN32" = xyes ; then
  16034. HAVE_WIN32_TRUE=
  16035. HAVE_WIN32_FALSE='#'
  16036. else
  16037. HAVE_WIN32_TRUE='#'
  16038. HAVE_WIN32_FALSE=
  16039. fi
  16040. if test "x$HAVE_WIN32_WASAPI" = xyes ; then
  16041. HAVE_WIN32_WASAPI_TRUE=
  16042. HAVE_WIN32_WASAPI_FALSE='#'
  16043. else
  16044. HAVE_WIN32_WASAPI_TRUE='#'
  16045. HAVE_WIN32_WASAPI_FALSE=
  16046. fi
  16047. if test "x$HAVE_ESD" = xyes ; then
  16048. HAVE_ESD_TRUE=
  16049. HAVE_ESD_FALSE='#'
  16050. else
  16051. HAVE_ESD_TRUE='#'
  16052. HAVE_ESD_FALSE=
  16053. fi
  16054. if test "x$HAVE_JACK" = xyes ; then
  16055. HAVE_JACK_TRUE=
  16056. HAVE_JACK_FALSE='#'
  16057. else
  16058. HAVE_JACK_TRUE='#'
  16059. HAVE_JACK_FALSE=
  16060. fi
  16061. if test "x$HAVE_PORTAUDIO" = xyes ; then
  16062. HAVE_PORTAUDIO_TRUE=
  16063. HAVE_PORTAUDIO_FALSE='#'
  16064. else
  16065. HAVE_PORTAUDIO_TRUE='#'
  16066. HAVE_PORTAUDIO_FALSE=
  16067. fi
  16068. if test "x$HAVE_PULSE" = xyes ; then
  16069. HAVE_PULSE_TRUE=
  16070. HAVE_PULSE_FALSE='#'
  16071. else
  16072. HAVE_PULSE_TRUE='#'
  16073. HAVE_PULSE_FALSE=
  16074. fi
  16075. if test "x$HAVE_SDL" = xyes ; then
  16076. HAVE_SDL_TRUE=
  16077. HAVE_SDL_FALSE='#'
  16078. else
  16079. HAVE_SDL_TRUE='#'
  16080. HAVE_SDL_FALSE=
  16081. fi
  16082. if test "x$HAVE_NAS" = xyes ; then
  16083. HAVE_NAS_TRUE=
  16084. HAVE_NAS_FALSE='#'
  16085. else
  16086. HAVE_NAS_TRUE='#'
  16087. HAVE_NAS_FALSE=
  16088. fi
  16089. if test "x$HAVE_AIX" = xyes ; then
  16090. HAVE_AIX_TRUE=
  16091. HAVE_AIX_FALSE='#'
  16092. else
  16093. HAVE_AIX_TRUE='#'
  16094. HAVE_AIX_FALSE=
  16095. fi
  16096. if test "x$HAVE_ALIB" = xyes ; then
  16097. HAVE_ALIB_TRUE=
  16098. HAVE_ALIB_FALSE='#'
  16099. else
  16100. HAVE_ALIB_TRUE='#'
  16101. HAVE_ALIB_FALSE=
  16102. fi
  16103. if test "x$HAVE_ARTS" = xyes ; then
  16104. HAVE_ARTS_TRUE=
  16105. HAVE_ARTS_FALSE='#'
  16106. else
  16107. HAVE_ARTS_TRUE='#'
  16108. HAVE_ARTS_FALSE=
  16109. fi
  16110. if test "x$HAVE_HP" = xyes ; then
  16111. HAVE_HP_TRUE=
  16112. HAVE_HP_FALSE='#'
  16113. else
  16114. HAVE_HP_TRUE='#'
  16115. HAVE_HP_FALSE=
  16116. fi
  16117. if test "x$HAVE_OS2" = xyes ; then
  16118. HAVE_OS2_TRUE=
  16119. HAVE_OS2_FALSE='#'
  16120. else
  16121. HAVE_OS2_TRUE='#'
  16122. HAVE_OS2_FALSE=
  16123. fi
  16124. if test "x$HAVE_SGI" = xyes ; then
  16125. HAVE_SGI_TRUE=
  16126. HAVE_SGI_FALSE='#'
  16127. else
  16128. HAVE_SGI_TRUE='#'
  16129. HAVE_SGI_FALSE=
  16130. fi
  16131. if test "x$HAVE_MINT" = xyes ; then
  16132. HAVE_MINT_TRUE=
  16133. HAVE_MINT_FALSE='#'
  16134. else
  16135. HAVE_MINT_TRUE='#'
  16136. HAVE_MINT_FALSE=
  16137. fi
  16138. if test "x$HAVE_OPENAL" = xyes ; then
  16139. HAVE_OPENAL_TRUE=
  16140. HAVE_OPENAL_FALSE='#'
  16141. else
  16142. HAVE_OPENAL_TRUE='#'
  16143. HAVE_OPENAL_FALSE=
  16144. fi
  16145. if test "x$HAVE_DUMMY" = xyes ; then
  16146. HAVE_DUMMY_TRUE=
  16147. HAVE_DUMMY_FALSE='#'
  16148. else
  16149. HAVE_DUMMY_TRUE='#'
  16150. HAVE_DUMMY_FALSE=
  16151. fi
  16152. # Hackery to get rid of module .la files.
  16153. for f in $output_modules
  16154. do
  16155. output_modules_la="$output_modules_la output_$f.la"
  16156. done
  16157. # Did user choose default audio subsystem ?
  16158. if test "x$with_default_audio" != "x"; then
  16159. default_output_module=$with_default_audio
  16160. else
  16161. default_output_module=`echo "$output_modules" | $AWK '{ print $1 }'`
  16162. fi
  16163. # That's (beginning of) the list for mpg123's internal default.
  16164. default_output_modules=$default_output_module
  16165. # Setup the static build.
  16166. # The conditionals always need to be defined by configure, even if
  16167. # HAVE_MODULES is FALSE!
  16168. # Here's a script for that tedious list, perhaps to be outsourced together with the one in #src/output/Makefile.am
  16169. #for i in dummy tinyalsa alsa qsa coreaudio esd jack nas oss portaudio pulse sdl sndio sun win32 win32_wasapi aix alib arts hp os2 sgi mint openal
  16170. #do echo $i; done |
  16171. #perl -ne 'chomp; $big = uc($_); print <<EOT;
  16172. #AM_CONDITIONAL([BUILD_${big}], [ test "$_" = \$default_output_module ])
  16173. #EOT
  16174. #'
  16175. if test "dummy" = $default_output_module ; then
  16176. BUILD_DUMMY_TRUE=
  16177. BUILD_DUMMY_FALSE='#'
  16178. else
  16179. BUILD_DUMMY_TRUE='#'
  16180. BUILD_DUMMY_FALSE=
  16181. fi
  16182. if test "tinyalsa" = $default_output_module ; then
  16183. BUILD_TINYALSA_TRUE=
  16184. BUILD_TINYALSA_FALSE='#'
  16185. else
  16186. BUILD_TINYALSA_TRUE='#'
  16187. BUILD_TINYALSA_FALSE=
  16188. fi
  16189. if test "alsa" = $default_output_module ; then
  16190. BUILD_ALSA_TRUE=
  16191. BUILD_ALSA_FALSE='#'
  16192. else
  16193. BUILD_ALSA_TRUE='#'
  16194. BUILD_ALSA_FALSE=
  16195. fi
  16196. if test "qsa" = $default_output_module ; then
  16197. BUILD_QSA_TRUE=
  16198. BUILD_QSA_FALSE='#'
  16199. else
  16200. BUILD_QSA_TRUE='#'
  16201. BUILD_QSA_FALSE=
  16202. fi
  16203. if test "coreaudio" = $default_output_module ; then
  16204. BUILD_COREAUDIO_TRUE=
  16205. BUILD_COREAUDIO_FALSE='#'
  16206. else
  16207. BUILD_COREAUDIO_TRUE='#'
  16208. BUILD_COREAUDIO_FALSE=
  16209. fi
  16210. if test "esd" = $default_output_module ; then
  16211. BUILD_ESD_TRUE=
  16212. BUILD_ESD_FALSE='#'
  16213. else
  16214. BUILD_ESD_TRUE='#'
  16215. BUILD_ESD_FALSE=
  16216. fi
  16217. if test "jack" = $default_output_module ; then
  16218. BUILD_JACK_TRUE=
  16219. BUILD_JACK_FALSE='#'
  16220. else
  16221. BUILD_JACK_TRUE='#'
  16222. BUILD_JACK_FALSE=
  16223. fi
  16224. if test "nas" = $default_output_module ; then
  16225. BUILD_NAS_TRUE=
  16226. BUILD_NAS_FALSE='#'
  16227. else
  16228. BUILD_NAS_TRUE='#'
  16229. BUILD_NAS_FALSE=
  16230. fi
  16231. if test "oss" = $default_output_module ; then
  16232. BUILD_OSS_TRUE=
  16233. BUILD_OSS_FALSE='#'
  16234. else
  16235. BUILD_OSS_TRUE='#'
  16236. BUILD_OSS_FALSE=
  16237. fi
  16238. if test "portaudio" = $default_output_module ; then
  16239. BUILD_PORTAUDIO_TRUE=
  16240. BUILD_PORTAUDIO_FALSE='#'
  16241. else
  16242. BUILD_PORTAUDIO_TRUE='#'
  16243. BUILD_PORTAUDIO_FALSE=
  16244. fi
  16245. if test "pulse" = $default_output_module ; then
  16246. BUILD_PULSE_TRUE=
  16247. BUILD_PULSE_FALSE='#'
  16248. else
  16249. BUILD_PULSE_TRUE='#'
  16250. BUILD_PULSE_FALSE=
  16251. fi
  16252. if test "sdl" = $default_output_module ; then
  16253. BUILD_SDL_TRUE=
  16254. BUILD_SDL_FALSE='#'
  16255. else
  16256. BUILD_SDL_TRUE='#'
  16257. BUILD_SDL_FALSE=
  16258. fi
  16259. if test "sndio" = $default_output_module ; then
  16260. BUILD_SNDIO_TRUE=
  16261. BUILD_SNDIO_FALSE='#'
  16262. else
  16263. BUILD_SNDIO_TRUE='#'
  16264. BUILD_SNDIO_FALSE=
  16265. fi
  16266. if test "sun" = $default_output_module ; then
  16267. BUILD_SUN_TRUE=
  16268. BUILD_SUN_FALSE='#'
  16269. else
  16270. BUILD_SUN_TRUE='#'
  16271. BUILD_SUN_FALSE=
  16272. fi
  16273. if test "win32" = $default_output_module ; then
  16274. BUILD_WIN32_TRUE=
  16275. BUILD_WIN32_FALSE='#'
  16276. else
  16277. BUILD_WIN32_TRUE='#'
  16278. BUILD_WIN32_FALSE=
  16279. fi
  16280. if test "win32_wasapi" = $default_output_module ; then
  16281. BUILD_WIN32_WASAPI_TRUE=
  16282. BUILD_WIN32_WASAPI_FALSE='#'
  16283. else
  16284. BUILD_WIN32_WASAPI_TRUE='#'
  16285. BUILD_WIN32_WASAPI_FALSE=
  16286. fi
  16287. if test "aix" = $default_output_module ; then
  16288. BUILD_AIX_TRUE=
  16289. BUILD_AIX_FALSE='#'
  16290. else
  16291. BUILD_AIX_TRUE='#'
  16292. BUILD_AIX_FALSE=
  16293. fi
  16294. if test "alib" = $default_output_module ; then
  16295. BUILD_ALIB_TRUE=
  16296. BUILD_ALIB_FALSE='#'
  16297. else
  16298. BUILD_ALIB_TRUE='#'
  16299. BUILD_ALIB_FALSE=
  16300. fi
  16301. if test "arts" = $default_output_module ; then
  16302. BUILD_ARTS_TRUE=
  16303. BUILD_ARTS_FALSE='#'
  16304. else
  16305. BUILD_ARTS_TRUE='#'
  16306. BUILD_ARTS_FALSE=
  16307. fi
  16308. if test "hp" = $default_output_module ; then
  16309. BUILD_HP_TRUE=
  16310. BUILD_HP_FALSE='#'
  16311. else
  16312. BUILD_HP_TRUE='#'
  16313. BUILD_HP_FALSE=
  16314. fi
  16315. if test "os2" = $default_output_module ; then
  16316. BUILD_OS2_TRUE=
  16317. BUILD_OS2_FALSE='#'
  16318. else
  16319. BUILD_OS2_TRUE='#'
  16320. BUILD_OS2_FALSE=
  16321. fi
  16322. if test "sgi" = $default_output_module ; then
  16323. BUILD_SGI_TRUE=
  16324. BUILD_SGI_FALSE='#'
  16325. else
  16326. BUILD_SGI_TRUE='#'
  16327. BUILD_SGI_FALSE=
  16328. fi
  16329. if test "mint" = $default_output_module ; then
  16330. BUILD_MINT_TRUE=
  16331. BUILD_MINT_FALSE='#'
  16332. else
  16333. BUILD_MINT_TRUE='#'
  16334. BUILD_MINT_FALSE=
  16335. fi
  16336. if test "openal" = $default_output_module ; then
  16337. BUILD_OPENAL_TRUE=
  16338. BUILD_OPENAL_FALSE='#'
  16339. else
  16340. BUILD_OPENAL_TRUE='#'
  16341. BUILD_OPENAL_FALSE=
  16342. fi
  16343. if test "x$modules" = xenabled
  16344. then
  16345. # Now make a comma-separated list again... eliminating the possible duplicate and dummy.
  16346. for i in $output_modules
  16347. do
  16348. if test $i != $default_output_module && test $i != dummy; then
  16349. default_output_modules=$default_output_modules,$i
  16350. fi
  16351. done
  16352. fi
  16353. cat >>confdefs.h <<_ACEOF
  16354. #define DEFAULT_OUTPUT_MODULE "$default_output_modules"
  16355. _ACEOF
  16356. CFLAGS="$ADD_CFLAGS $CFLAGS"
  16357. if test x"$buffer" = xenabled ; then
  16358. BUILD_BUFFER_TRUE=
  16359. BUILD_BUFFER_FALSE='#'
  16360. else
  16361. BUILD_BUFFER_TRUE='#'
  16362. BUILD_BUFFER_FALSE=
  16363. fi
  16364. if test x"$buffer" = xdisabled; then
  16365. ADD_CPPFLAGS="$ADD_CPPFLAGS -DNOXFERMEM"
  16366. fi
  16367. if test x"$newoldwritesample" = xenabled; then
  16368. ADD_CPPFLAGS="$ADD_CPPFLAGS -DNEWOLD_WRITE_SAMPLE"
  16369. fi
  16370. CPPFLAGS="$ADD_CPPFLAGS $CPPFLAGS"
  16371. LDFLAGS="$ADD_LDFLAGS $LDFLAGS"
  16372. # None chosen?
  16373. if test "x$with_optimization" = "x"; then
  16374. if test x"$debugging" = xenabled; then
  16375. with_optimization="0"
  16376. else
  16377. # enable (gcc specific) default opts only with gcc
  16378. if test "x$GCC" = xyes; then
  16379. with_optimization="2"
  16380. else
  16381. with_optimization="0"
  16382. fi
  16383. fi
  16384. fi
  16385. case $with_optimization in
  16386. 0)
  16387. # No Optimizations
  16388. CFLAGS="$CFLAGS"
  16389. ;;
  16390. 1)
  16391. CFLAGS="-O $CFLAGS"
  16392. ;;
  16393. 2)
  16394. CFLAGS="-O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
  16395. ;;
  16396. 3)
  16397. CFLAGS="-O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
  16398. ;;
  16399. 4)
  16400. CFLAGS="-O4 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
  16401. ;;
  16402. *)
  16403. as_fn_error $? "Unknown optimizations level '$with_optimization'" "$LINENO" 5
  16404. ;;
  16405. esac
  16406. if test "x$GCC" = xyes && echo "$CFLAGS" | $GREP 'mpreferred-stack-boundary=' > /dev/null; then
  16407. case $cpu_type in
  16408. x86 | i586* | mmx | sse | 3dnow* | altivec)
  16409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are trying to mess with stack alignment. I know better. " >&5
  16410. $as_echo "$as_me: WARNING: You are trying to mess with stack alignment. I know better. " >&2;}
  16411. CFLAGS="$CFLAGS -mpreferred-stack-boundary=4"
  16412. ;;
  16413. esac
  16414. fi
  16415. if test "x$with_seektable" = "x"; then
  16416. seektable=1000
  16417. else
  16418. seektable=$with_seektable
  16419. fi
  16420. if test "$seektable" -gt 0; then
  16421. $as_echo "#define FRAME_INDEX 1" >>confdefs.h
  16422. fi
  16423. # Define that always... also without frame index enabled.
  16424. cat >>confdefs.h <<_ACEOF
  16425. #define INDEX_SIZE $seektable
  16426. _ACEOF
  16427. # Check if we want Unicode for Win32. Cygwin does not need _wopen
  16428. if test x$ac_cv_header_windows_h = xyes && test "x$host_os" != "xcygwin"; then
  16429. win32_specific_codes=enabled
  16430. else
  16431. win32_specific_codes=disabled
  16432. fi
  16433. win32_unicode=unneeded
  16434. win32_sockets=disabled
  16435. win32_sockets_working=no
  16436. win32_wide_working=no
  16437. win32_winver_bump=no
  16438. if test "x$win32_specific_codes" = xenabled; then
  16439. #### Check for Wide functions
  16440. ac_fn_c_check_func "$LINENO" "_wopen" "ac_cv_func__wopen"
  16441. if test "x$ac_cv_func__wopen" = xyes; then :
  16442. win32_unicode=enabled
  16443. else
  16444. win32_unicode=disabled
  16445. fi
  16446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want Unicode File Open for Win32" >&5
  16447. $as_echo_n "checking if we want Unicode File Open for Win32... " >&6; }
  16448. if test "x$win32_unicode" = xenabled; then
  16449. oldlibs=$LIBS
  16450. LIBS="$LIBS -lshlwapi"
  16451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16452. $as_echo "yes" >&6; }
  16453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Unicode functions working" >&5
  16454. $as_echo_n "checking if Unicode functions working... " >&6; }
  16455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16456. /* end confdefs.h. */
  16457. #include <windows.h>
  16458. #include <shlwapi.h>
  16459. #include <stdlib.h>
  16460. int main()
  16461. {
  16462. MultiByteToWideChar (0, 0, NULL, 0, NULL, 0);
  16463. WideCharToMultiByte (0, 0, NULL, 0, NULL, 0, NULL, NULL);
  16464. PathCombineW(0,0,0);
  16465. return 0;
  16466. }
  16467. _ACEOF
  16468. if ac_fn_c_try_link "$LINENO"; then :
  16469. win32_wide_working=yes
  16470. else
  16471. win32_winver_bump=yes
  16472. fi
  16473. rm -f core conftest.err conftest.$ac_objext \
  16474. conftest$ac_exeext conftest.$ac_ext
  16475. if test "x$win32_wide_working" = xno; then
  16476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16477. /* end confdefs.h. */
  16478. #define WINVER 0x501
  16479. #define _WIN32_WINNT 0x501
  16480. #include <windows.h>
  16481. #include <shlwapi.h>
  16482. #include <stdlib.h>
  16483. int main()
  16484. {
  16485. MultiByteToWideChar (0, 0, NULL, 0, NULL, 0);
  16486. WideCharToMultiByte (0, 0, NULL, 0, NULL, 0, NULL, NULL);
  16487. PathCombineW(0,0,0);
  16488. return 0;
  16489. }
  16490. _ACEOF
  16491. if ac_fn_c_try_link "$LINENO"; then :
  16492. win32_wide_working=yes
  16493. else
  16494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16495. $as_echo "no" >&6; }
  16496. fi
  16497. rm -f core conftest.err conftest.$ac_objext \
  16498. conftest$ac_exeext conftest.$ac_ext
  16499. fi
  16500. if test "x$win32_wide_working" = xyes; then
  16501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16502. $as_echo "yes" >&6; }
  16503. $as_echo "#define WANT_WIN32_UNICODE 1" >>confdefs.h
  16504. else
  16505. LIBS=$oldlibs
  16506. as_fn_error $? "Unicode support for Win32 not working" "$LINENO" 5
  16507. fi
  16508. else
  16509. as_fn_error $? "Unicode File Open for Win32 not available" "$LINENO" 5
  16510. fi
  16511. #### Check for Network functions
  16512. for ac_header in ws2tcpip.h
  16513. do :
  16514. ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
  16515. if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
  16516. cat >>confdefs.h <<_ACEOF
  16517. #define HAVE_WS2TCPIP_H 1
  16518. _ACEOF
  16519. win32_sockets=enabled
  16520. else
  16521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please update your headers to support winsock 2.2." >&5
  16522. $as_echo "$as_me: WARNING: Please update your headers to support winsock 2.2." >&2;}
  16523. fi
  16524. done
  16525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want Win32 sockets" >&5
  16526. $as_echo_n "checking if we want Win32 sockets... " >&6; }
  16527. if test "x$win32_sockets" = "xenabled" && test "x$network" != "xdisabled"; then
  16528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16529. $as_echo "yes" >&6; }
  16530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if winsock2 API is available" >&5
  16531. $as_echo_n "checking if winsock2 API is available... " >&6; }
  16532. wsoldlibs="$LIBS"
  16533. LIBS="$LIBS -lws2_32"
  16534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16535. /* end confdefs.h. */
  16536. #include <winsock2.h>
  16537. #include <ws2tcpip.h>
  16538. #include <stdlib.h>
  16539. int main()
  16540. {
  16541. getaddrinfo(NULL, NULL, NULL, NULL);
  16542. freeaddrinfo(NULL);
  16543. return 0;
  16544. }
  16545. _ACEOF
  16546. if ac_fn_c_try_link "$LINENO"; then :
  16547. win32_sockets_working=yes
  16548. else
  16549. win32_winver_bump=yes
  16550. fi
  16551. rm -f core conftest.err conftest.$ac_objext \
  16552. conftest$ac_exeext conftest.$ac_ext
  16553. if test "x$win32_sockets_working" = "xno"; then
  16554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper if winsock2 API is available" >&5
  16555. $as_echo_n "checking deeper if winsock2 API is available... " >&6; }
  16556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16557. /* end confdefs.h. */
  16558. #define WINVER 0x501
  16559. #define _WIN32_WINNT 0x501
  16560. #include <winsock2.h>
  16561. #include <ws2tcpip.h>
  16562. #include <stdlib.h>
  16563. int main()
  16564. {
  16565. getaddrinfo(NULL, NULL, NULL, NULL);
  16566. freeaddrinfo(NULL);
  16567. return 0;
  16568. }
  16569. _ACEOF
  16570. if ac_fn_c_try_link "$LINENO"; then :
  16571. win32_sockets_working=yes
  16572. else
  16573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16574. $as_echo "no" >&6; }
  16575. fi
  16576. rm -f core conftest.err conftest.$ac_objext \
  16577. conftest$ac_exeext conftest.$ac_ext
  16578. fi
  16579. if test "x$win32_sockets_working" = "xyes"; then
  16580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16581. $as_echo "yes" >&6; }
  16582. $as_echo "#define WANT_WIN32_SOCKETS 1" >>confdefs.h
  16583. network_type=Winsock2
  16584. have_network=yes
  16585. have_ipv6=yes
  16586. else
  16587. LIBS="$wsoldlibs"
  16588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please update your headers to support winsock 2.2." >&5
  16589. $as_echo "$as_me: WARNING: Please update your headers to support winsock 2.2." >&2;}
  16590. fi
  16591. else
  16592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16593. $as_echo "no" >&6; }
  16594. fi
  16595. #### Check for Win32 Named Pipe functions
  16596. win32_fifo_working=no
  16597. if test x$win32_specific_codes = xenabled; then
  16598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have Named Pipes" >&5
  16599. $as_echo_n "checking if we have Named Pipes... " >&6; }
  16600. if test "x$fifo" != "xdisabled"; then
  16601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16602. /* end confdefs.h. */
  16603. #include <windows.h>
  16604. int main(){
  16605. CreateNamedPipeA(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
  16606. CreateNamedPipeW(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
  16607. return 0;
  16608. }
  16609. _ACEOF
  16610. if ac_fn_c_try_link "$LINENO"; then :
  16611. win32_fifo_working=yes
  16612. else
  16613. win32_winver_bump=yes
  16614. fi
  16615. rm -f core conftest.err conftest.$ac_objext \
  16616. conftest$ac_exeext conftest.$ac_ext
  16617. if test "x$win32_fifo_working" != "xyes"; then
  16618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16619. /* end confdefs.h. */
  16620. #define WINVER 0x501
  16621. #define _WIN32_WINNT 0x501
  16622. #include <windows.h>
  16623. int main(){
  16624. CreateNamedPipeA(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
  16625. CreateNamedPipeW(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
  16626. return 0;
  16627. }
  16628. _ACEOF
  16629. if ac_fn_c_try_link "$LINENO"; then :
  16630. win32_fifo_working=yes
  16631. else
  16632. win32_fifo_working=no
  16633. fi
  16634. rm -f core conftest.err conftest.$ac_objext \
  16635. conftest$ac_exeext conftest.$ac_ext
  16636. fi
  16637. fi
  16638. have_mkfifo=$win32_fifo_working
  16639. if test "x$win32_fifo_working" = "xyes"; then
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16641. $as_echo "yes" >&6; }
  16642. $as_echo "#define WANT_WIN32_FIFO 1" >>confdefs.h
  16643. else
  16644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16645. $as_echo "no" >&6; }
  16646. fi
  16647. fi
  16648. #### WINVER Bump
  16649. if test x$win32_specific_codes = xenabled; then
  16650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WINVER and _WIN32_WINNT needs version bumps" >&5
  16651. $as_echo_n "checking if WINVER and _WIN32_WINNT needs version bumps... " >&6; }
  16652. if test "x$win32_winver_bump" = "xyes"; then
  16653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16654. $as_echo "yes" >&6; }
  16655. $as_echo "#define WINVER 0x0501" >>confdefs.h
  16656. $as_echo "#define _WIN32_WINNT 0x0501" >>confdefs.h
  16657. # getaddrinfo and freeaddrinfo are available for Win2K and above
  16658. # Bug: MinGW.org w32api ws2tcpip.h incorrectly wants (_WIN32_WINNT >= 0x0501) for getaddrinfo and freeaddrinfo
  16659. # MultiByteToWideChar and WideCharToMultiByte are available for Win2K and above
  16660. else
  16661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16662. $as_echo "no" >&6; }
  16663. fi
  16664. fi
  16665. fi #END OF WIN32 CHECKS
  16666. #### Check mingw.org for EOVERFLOW
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have EOVERFLOW macro" >&5
  16668. $as_echo_n "checking if we have EOVERFLOW macro... " >&6; }
  16669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16670. /* end confdefs.h. */
  16671. #include <errno.h>
  16672. int i = (EOVERFLOW) + 0;
  16673. _ACEOF
  16674. if ac_fn_c_try_compile "$LINENO"; then :
  16675. eoverflow_present=yes
  16676. else
  16677. eoverflow_present=no
  16678. fi
  16679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $eoverflow_present" >&5
  16681. $as_echo "$eoverflow_present" >&6; }
  16682. if test "x$eoverflow_present" = "xyes"; then :
  16683. else
  16684. $as_echo "#define EOVERFLOW EFBIG" >>confdefs.h
  16685. fi
  16686. #### Use Win32 support codes
  16687. if test "x$win32_specific_codes" = xenabled ; then
  16688. WIN32_CODES_TRUE=
  16689. WIN32_CODES_FALSE='#'
  16690. else
  16691. WIN32_CODES_TRUE='#'
  16692. WIN32_CODES_FALSE=
  16693. fi
  16694. if test x"$network" = xauto; then
  16695. if test x"$have_network" = xyes; then
  16696. network=enabled
  16697. else
  16698. network=disabled
  16699. fi
  16700. fi
  16701. if test x"$ipv6" = xauto; then
  16702. if test x"$have_ipv6" = xyes; then
  16703. ipv6=enabled
  16704. else
  16705. ipv6=disabled
  16706. fi
  16707. fi
  16708. if test x"$fifo" = xauto; then
  16709. if test x"$have_mkfifo" = xyes; then
  16710. fifo=enabled
  16711. else
  16712. fifo=disabled
  16713. fi
  16714. fi
  16715. if test x"$fifo" = xenabled; then
  16716. $as_echo "#define FIFO 1" >>confdefs.h
  16717. if test x"$have_mkfifo" = xno; then
  16718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You forced FIFO code while I think there is no mkfifo() available! " >&5
  16719. $as_echo "$as_me: WARNING: You forced FIFO code while I think there is no mkfifo() available! " >&2;}
  16720. fi
  16721. fi
  16722. if test x"$network" = xenabled; then
  16723. $as_echo "#define NETWORK 1" >>confdefs.h
  16724. if test x"$have_network" = xno; then
  16725. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You forced network code while I think there is support missing! " >&5
  16726. $as_echo "$as_me: WARNING: You forced network code while I think there is support missing! " >&2;}
  16727. fi
  16728. fi
  16729. if test x"$ipv6" = xenabled; then
  16730. $as_echo "#define IPV6 1" >>confdefs.h
  16731. if test x"$have_ipv6" = xno; then
  16732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You forced IPv6 code while I think there is no getaddrinfo() available! " >&5
  16733. $as_echo "$as_me: WARNING: You forced IPv6 code while I think there is no getaddrinfo() available! " >&2;}
  16734. fi
  16735. fi
  16736. ac_config_files="$ac_config_files Makefile libmpg123.pc libout123.pc mpg123.spec src/libmpg123/mpg123.h src/libout123/out123.h"
  16737. cat >confcache <<\_ACEOF
  16738. # This file is a shell script that caches the results of configure
  16739. # tests run on this system so they can be shared between configure
  16740. # scripts and configure runs, see configure's option --config-cache.
  16741. # It is not useful on other systems. If it contains results you don't
  16742. # want to keep, you may remove or edit it.
  16743. #
  16744. # config.status only pays attention to the cache file if you give it
  16745. # the --recheck option to rerun configure.
  16746. #
  16747. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  16748. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  16749. # following values.
  16750. _ACEOF
  16751. # The following way of writing the cache mishandles newlines in values,
  16752. # but we know of no workaround that is simple, portable, and efficient.
  16753. # So, we kill variables containing newlines.
  16754. # Ultrix sh set writes to stderr and can't be redirected directly,
  16755. # and sets the high bit in the cache file unless we assign to the vars.
  16756. (
  16757. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  16758. eval ac_val=\$$ac_var
  16759. case $ac_val in #(
  16760. *${as_nl}*)
  16761. case $ac_var in #(
  16762. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  16763. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  16764. esac
  16765. case $ac_var in #(
  16766. _ | IFS | as_nl) ;; #(
  16767. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  16768. *) { eval $ac_var=; unset $ac_var;} ;;
  16769. esac ;;
  16770. esac
  16771. done
  16772. (set) 2>&1 |
  16773. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  16774. *${as_nl}ac_space=\ *)
  16775. # `set' does not quote correctly, so add quotes: double-quote
  16776. # substitution turns \\\\ into \\, and sed turns \\ into \.
  16777. sed -n \
  16778. "s/'/'\\\\''/g;
  16779. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  16780. ;; #(
  16781. *)
  16782. # `set' quotes correctly as required by POSIX, so do not add quotes.
  16783. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  16784. ;;
  16785. esac |
  16786. sort
  16787. ) |
  16788. sed '
  16789. /^ac_cv_env_/b end
  16790. t clear
  16791. :clear
  16792. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  16793. t end
  16794. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  16795. :end' >>confcache
  16796. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  16797. if test -w "$cache_file"; then
  16798. if test "x$cache_file" != "x/dev/null"; then
  16799. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  16800. $as_echo "$as_me: updating cache $cache_file" >&6;}
  16801. if test ! -f "$cache_file" || test -h "$cache_file"; then
  16802. cat confcache >"$cache_file"
  16803. else
  16804. case $cache_file in #(
  16805. */* | ?:*)
  16806. mv -f confcache "$cache_file"$$ &&
  16807. mv -f "$cache_file"$$ "$cache_file" ;; #(
  16808. *)
  16809. mv -f confcache "$cache_file" ;;
  16810. esac
  16811. fi
  16812. fi
  16813. else
  16814. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  16815. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  16816. fi
  16817. fi
  16818. rm -f confcache
  16819. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  16820. # Let make expand exec_prefix.
  16821. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  16822. DEFS=-DHAVE_CONFIG_H
  16823. ac_libobjs=
  16824. ac_ltlibobjs=
  16825. U=
  16826. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  16827. # 1. Remove the extension, and $U if already installed.
  16828. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  16829. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  16830. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  16831. # will be set to the directory where LIBOBJS objects are built.
  16832. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  16833. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  16834. done
  16835. LIBOBJS=$ac_libobjs
  16836. LTLIBOBJS=$ac_ltlibobjs
  16837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  16838. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  16839. if test -n "$am_sleep_pid"; then
  16840. # Hide warnings about reused PIDs.
  16841. wait $am_sleep_pid 2>/dev/null
  16842. fi
  16843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  16844. $as_echo "done" >&6; }
  16845. if test -n "$EXEEXT"; then
  16846. am__EXEEXT_TRUE=
  16847. am__EXEEXT_FALSE='#'
  16848. else
  16849. am__EXEEXT_TRUE='#'
  16850. am__EXEEXT_FALSE=
  16851. fi
  16852. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  16853. as_fn_error $? "conditional \"AMDEP\" was never defined.
  16854. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16855. fi
  16856. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  16857. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  16858. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16859. fi
  16860. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  16861. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  16862. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16863. fi
  16864. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  16865. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  16866. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16867. fi
  16868. if test -z "${HAVE_MODULES_TRUE}" && test -z "${HAVE_MODULES_FALSE}"; then
  16869. as_fn_error $? "conditional \"HAVE_MODULES\" was never defined.
  16870. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16871. fi
  16872. if test -z "${USE_YASM_FOR_AVX_TRUE}" && test -z "${USE_YASM_FOR_AVX_FALSE}"; then
  16873. as_fn_error $? "conditional \"USE_YASM_FOR_AVX\" was never defined.
  16874. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16875. fi
  16876. if test -z "${HAVE_TINYALSA_TRUE}" && test -z "${HAVE_TINYALSA_FALSE}"; then
  16877. as_fn_error $? "conditional \"HAVE_TINYALSA\" was never defined.
  16878. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16879. fi
  16880. if test -z "${HAVE_ALSA_TRUE}" && test -z "${HAVE_ALSA_FALSE}"; then
  16881. as_fn_error $? "conditional \"HAVE_ALSA\" was never defined.
  16882. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16883. fi
  16884. if test -z "${HAVE_QSA_TRUE}" && test -z "${HAVE_QSA_FALSE}"; then
  16885. as_fn_error $? "conditional \"HAVE_QSA\" was never defined.
  16886. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16887. fi
  16888. if test -z "${HAVE_OSS_TRUE}" && test -z "${HAVE_OSS_FALSE}"; then
  16889. as_fn_error $? "conditional \"HAVE_OSS\" was never defined.
  16890. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16891. fi
  16892. if test -z "${HAVE_COREAUDIO_TRUE}" && test -z "${HAVE_COREAUDIO_FALSE}"; then
  16893. as_fn_error $? "conditional \"HAVE_COREAUDIO\" was never defined.
  16894. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16895. fi
  16896. if test -z "${HAVE_SNDIO_TRUE}" && test -z "${HAVE_SNDIO_FALSE}"; then
  16897. as_fn_error $? "conditional \"HAVE_SNDIO\" was never defined.
  16898. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16899. fi
  16900. if test -z "${HAVE_SUN_TRUE}" && test -z "${HAVE_SUN_FALSE}"; then
  16901. as_fn_error $? "conditional \"HAVE_SUN\" was never defined.
  16902. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16903. fi
  16904. if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then
  16905. as_fn_error $? "conditional \"HAVE_WIN32\" was never defined.
  16906. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16907. fi
  16908. if test -z "${HAVE_WIN32_WASAPI_TRUE}" && test -z "${HAVE_WIN32_WASAPI_FALSE}"; then
  16909. as_fn_error $? "conditional \"HAVE_WIN32_WASAPI\" was never defined.
  16910. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16911. fi
  16912. if test -z "${HAVE_ESD_TRUE}" && test -z "${HAVE_ESD_FALSE}"; then
  16913. as_fn_error $? "conditional \"HAVE_ESD\" was never defined.
  16914. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16915. fi
  16916. if test -z "${HAVE_JACK_TRUE}" && test -z "${HAVE_JACK_FALSE}"; then
  16917. as_fn_error $? "conditional \"HAVE_JACK\" was never defined.
  16918. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16919. fi
  16920. if test -z "${HAVE_PORTAUDIO_TRUE}" && test -z "${HAVE_PORTAUDIO_FALSE}"; then
  16921. as_fn_error $? "conditional \"HAVE_PORTAUDIO\" was never defined.
  16922. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16923. fi
  16924. if test -z "${HAVE_PULSE_TRUE}" && test -z "${HAVE_PULSE_FALSE}"; then
  16925. as_fn_error $? "conditional \"HAVE_PULSE\" was never defined.
  16926. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16927. fi
  16928. if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
  16929. as_fn_error $? "conditional \"HAVE_SDL\" was never defined.
  16930. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16931. fi
  16932. if test -z "${HAVE_NAS_TRUE}" && test -z "${HAVE_NAS_FALSE}"; then
  16933. as_fn_error $? "conditional \"HAVE_NAS\" was never defined.
  16934. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16935. fi
  16936. if test -z "${HAVE_AIX_TRUE}" && test -z "${HAVE_AIX_FALSE}"; then
  16937. as_fn_error $? "conditional \"HAVE_AIX\" was never defined.
  16938. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16939. fi
  16940. if test -z "${HAVE_ALIB_TRUE}" && test -z "${HAVE_ALIB_FALSE}"; then
  16941. as_fn_error $? "conditional \"HAVE_ALIB\" was never defined.
  16942. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16943. fi
  16944. if test -z "${HAVE_ARTS_TRUE}" && test -z "${HAVE_ARTS_FALSE}"; then
  16945. as_fn_error $? "conditional \"HAVE_ARTS\" was never defined.
  16946. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16947. fi
  16948. if test -z "${HAVE_HP_TRUE}" && test -z "${HAVE_HP_FALSE}"; then
  16949. as_fn_error $? "conditional \"HAVE_HP\" was never defined.
  16950. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16951. fi
  16952. if test -z "${HAVE_OS2_TRUE}" && test -z "${HAVE_OS2_FALSE}"; then
  16953. as_fn_error $? "conditional \"HAVE_OS2\" was never defined.
  16954. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16955. fi
  16956. if test -z "${HAVE_SGI_TRUE}" && test -z "${HAVE_SGI_FALSE}"; then
  16957. as_fn_error $? "conditional \"HAVE_SGI\" was never defined.
  16958. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16959. fi
  16960. if test -z "${HAVE_MINT_TRUE}" && test -z "${HAVE_MINT_FALSE}"; then
  16961. as_fn_error $? "conditional \"HAVE_MINT\" was never defined.
  16962. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16963. fi
  16964. if test -z "${HAVE_OPENAL_TRUE}" && test -z "${HAVE_OPENAL_FALSE}"; then
  16965. as_fn_error $? "conditional \"HAVE_OPENAL\" was never defined.
  16966. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16967. fi
  16968. if test -z "${HAVE_DUMMY_TRUE}" && test -z "${HAVE_DUMMY_FALSE}"; then
  16969. as_fn_error $? "conditional \"HAVE_DUMMY\" was never defined.
  16970. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16971. fi
  16972. if test -z "${BUILD_DUMMY_TRUE}" && test -z "${BUILD_DUMMY_FALSE}"; then
  16973. as_fn_error $? "conditional \"BUILD_DUMMY\" was never defined.
  16974. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16975. fi
  16976. if test -z "${BUILD_TINYALSA_TRUE}" && test -z "${BUILD_TINYALSA_FALSE}"; then
  16977. as_fn_error $? "conditional \"BUILD_TINYALSA\" was never defined.
  16978. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16979. fi
  16980. if test -z "${BUILD_ALSA_TRUE}" && test -z "${BUILD_ALSA_FALSE}"; then
  16981. as_fn_error $? "conditional \"BUILD_ALSA\" was never defined.
  16982. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16983. fi
  16984. if test -z "${BUILD_QSA_TRUE}" && test -z "${BUILD_QSA_FALSE}"; then
  16985. as_fn_error $? "conditional \"BUILD_QSA\" was never defined.
  16986. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16987. fi
  16988. if test -z "${BUILD_COREAUDIO_TRUE}" && test -z "${BUILD_COREAUDIO_FALSE}"; then
  16989. as_fn_error $? "conditional \"BUILD_COREAUDIO\" was never defined.
  16990. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16991. fi
  16992. if test -z "${BUILD_ESD_TRUE}" && test -z "${BUILD_ESD_FALSE}"; then
  16993. as_fn_error $? "conditional \"BUILD_ESD\" was never defined.
  16994. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16995. fi
  16996. if test -z "${BUILD_JACK_TRUE}" && test -z "${BUILD_JACK_FALSE}"; then
  16997. as_fn_error $? "conditional \"BUILD_JACK\" was never defined.
  16998. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16999. fi
  17000. if test -z "${BUILD_NAS_TRUE}" && test -z "${BUILD_NAS_FALSE}"; then
  17001. as_fn_error $? "conditional \"BUILD_NAS\" was never defined.
  17002. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17003. fi
  17004. if test -z "${BUILD_OSS_TRUE}" && test -z "${BUILD_OSS_FALSE}"; then
  17005. as_fn_error $? "conditional \"BUILD_OSS\" was never defined.
  17006. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17007. fi
  17008. if test -z "${BUILD_PORTAUDIO_TRUE}" && test -z "${BUILD_PORTAUDIO_FALSE}"; then
  17009. as_fn_error $? "conditional \"BUILD_PORTAUDIO\" was never defined.
  17010. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17011. fi
  17012. if test -z "${BUILD_PULSE_TRUE}" && test -z "${BUILD_PULSE_FALSE}"; then
  17013. as_fn_error $? "conditional \"BUILD_PULSE\" was never defined.
  17014. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17015. fi
  17016. if test -z "${BUILD_SDL_TRUE}" && test -z "${BUILD_SDL_FALSE}"; then
  17017. as_fn_error $? "conditional \"BUILD_SDL\" was never defined.
  17018. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17019. fi
  17020. if test -z "${BUILD_SNDIO_TRUE}" && test -z "${BUILD_SNDIO_FALSE}"; then
  17021. as_fn_error $? "conditional \"BUILD_SNDIO\" was never defined.
  17022. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17023. fi
  17024. if test -z "${BUILD_SUN_TRUE}" && test -z "${BUILD_SUN_FALSE}"; then
  17025. as_fn_error $? "conditional \"BUILD_SUN\" was never defined.
  17026. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17027. fi
  17028. if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
  17029. as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
  17030. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17031. fi
  17032. if test -z "${BUILD_WIN32_WASAPI_TRUE}" && test -z "${BUILD_WIN32_WASAPI_FALSE}"; then
  17033. as_fn_error $? "conditional \"BUILD_WIN32_WASAPI\" was never defined.
  17034. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17035. fi
  17036. if test -z "${BUILD_AIX_TRUE}" && test -z "${BUILD_AIX_FALSE}"; then
  17037. as_fn_error $? "conditional \"BUILD_AIX\" was never defined.
  17038. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17039. fi
  17040. if test -z "${BUILD_ALIB_TRUE}" && test -z "${BUILD_ALIB_FALSE}"; then
  17041. as_fn_error $? "conditional \"BUILD_ALIB\" was never defined.
  17042. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17043. fi
  17044. if test -z "${BUILD_ARTS_TRUE}" && test -z "${BUILD_ARTS_FALSE}"; then
  17045. as_fn_error $? "conditional \"BUILD_ARTS\" was never defined.
  17046. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17047. fi
  17048. if test -z "${BUILD_HP_TRUE}" && test -z "${BUILD_HP_FALSE}"; then
  17049. as_fn_error $? "conditional \"BUILD_HP\" was never defined.
  17050. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17051. fi
  17052. if test -z "${BUILD_OS2_TRUE}" && test -z "${BUILD_OS2_FALSE}"; then
  17053. as_fn_error $? "conditional \"BUILD_OS2\" was never defined.
  17054. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17055. fi
  17056. if test -z "${BUILD_SGI_TRUE}" && test -z "${BUILD_SGI_FALSE}"; then
  17057. as_fn_error $? "conditional \"BUILD_SGI\" was never defined.
  17058. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17059. fi
  17060. if test -z "${BUILD_MINT_TRUE}" && test -z "${BUILD_MINT_FALSE}"; then
  17061. as_fn_error $? "conditional \"BUILD_MINT\" was never defined.
  17062. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17063. fi
  17064. if test -z "${BUILD_OPENAL_TRUE}" && test -z "${BUILD_OPENAL_FALSE}"; then
  17065. as_fn_error $? "conditional \"BUILD_OPENAL\" was never defined.
  17066. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17067. fi
  17068. if test -z "${BUILD_BUFFER_TRUE}" && test -z "${BUILD_BUFFER_FALSE}"; then
  17069. as_fn_error $? "conditional \"BUILD_BUFFER\" was never defined.
  17070. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17071. fi
  17072. if test -z "${WIN32_CODES_TRUE}" && test -z "${WIN32_CODES_FALSE}"; then
  17073. as_fn_error $? "conditional \"WIN32_CODES\" was never defined.
  17074. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17075. fi
  17076. : "${CONFIG_STATUS=./config.status}"
  17077. ac_write_fail=0
  17078. ac_clean_files_save=$ac_clean_files
  17079. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17080. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17081. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17082. as_write_fail=0
  17083. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17084. #! $SHELL
  17085. # Generated by $as_me.
  17086. # Run this file to recreate the current configuration.
  17087. # Compiler output produced by configure, useful for debugging
  17088. # configure, is in config.log if it exists.
  17089. debug=false
  17090. ac_cs_recheck=false
  17091. ac_cs_silent=false
  17092. SHELL=\${CONFIG_SHELL-$SHELL}
  17093. export SHELL
  17094. _ASEOF
  17095. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17096. ## -------------------- ##
  17097. ## M4sh Initialization. ##
  17098. ## -------------------- ##
  17099. # Be more Bourne compatible
  17100. DUALCASE=1; export DUALCASE # for MKS sh
  17101. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17102. emulate sh
  17103. NULLCMD=:
  17104. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17105. # is contrary to our usage. Disable this feature.
  17106. alias -g '${1+"$@"}'='"$@"'
  17107. setopt NO_GLOB_SUBST
  17108. else
  17109. case `(set -o) 2>/dev/null` in #(
  17110. *posix*) :
  17111. set -o posix ;; #(
  17112. *) :
  17113. ;;
  17114. esac
  17115. fi
  17116. as_nl='
  17117. '
  17118. export as_nl
  17119. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17120. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17121. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17122. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17123. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17124. # but without wasting forks for bash or zsh.
  17125. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17126. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17127. as_echo='print -r --'
  17128. as_echo_n='print -rn --'
  17129. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17130. as_echo='printf %s\n'
  17131. as_echo_n='printf %s'
  17132. else
  17133. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17134. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17135. as_echo_n='/usr/ucb/echo -n'
  17136. else
  17137. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17138. as_echo_n_body='eval
  17139. arg=$1;
  17140. case $arg in #(
  17141. *"$as_nl"*)
  17142. expr "X$arg" : "X\\(.*\\)$as_nl";
  17143. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17144. esac;
  17145. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17146. '
  17147. export as_echo_n_body
  17148. as_echo_n='sh -c $as_echo_n_body as_echo'
  17149. fi
  17150. export as_echo_body
  17151. as_echo='sh -c $as_echo_body as_echo'
  17152. fi
  17153. # The user is always right.
  17154. if test "${PATH_SEPARATOR+set}" != set; then
  17155. PATH_SEPARATOR=:
  17156. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17157. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17158. PATH_SEPARATOR=';'
  17159. }
  17160. fi
  17161. # IFS
  17162. # We need space, tab and new line, in precisely that order. Quoting is
  17163. # there to prevent editors from complaining about space-tab.
  17164. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17165. # splitting by setting IFS to empty value.)
  17166. IFS=" "" $as_nl"
  17167. # Find who we are. Look in the path if we contain no directory separator.
  17168. as_myself=
  17169. case $0 in #((
  17170. *[\\/]* ) as_myself=$0 ;;
  17171. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17172. for as_dir in $PATH
  17173. do
  17174. IFS=$as_save_IFS
  17175. test -z "$as_dir" && as_dir=.
  17176. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17177. done
  17178. IFS=$as_save_IFS
  17179. ;;
  17180. esac
  17181. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17182. # in which case we are not to be found in the path.
  17183. if test "x$as_myself" = x; then
  17184. as_myself=$0
  17185. fi
  17186. if test ! -f "$as_myself"; then
  17187. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17188. exit 1
  17189. fi
  17190. # Unset variables that we do not need and which cause bugs (e.g. in
  17191. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  17192. # suppresses any "Segmentation fault" message there. '((' could
  17193. # trigger a bug in pdksh 5.2.14.
  17194. for as_var in BASH_ENV ENV MAIL MAILPATH
  17195. do eval test x\${$as_var+set} = xset \
  17196. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17197. done
  17198. PS1='$ '
  17199. PS2='> '
  17200. PS4='+ '
  17201. # NLS nuisances.
  17202. LC_ALL=C
  17203. export LC_ALL
  17204. LANGUAGE=C
  17205. export LANGUAGE
  17206. # CDPATH.
  17207. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17208. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17209. # ----------------------------------------
  17210. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17211. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17212. # script with STATUS, using 1 if that was 0.
  17213. as_fn_error ()
  17214. {
  17215. as_status=$1; test $as_status -eq 0 && as_status=1
  17216. if test "$4"; then
  17217. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17218. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17219. fi
  17220. $as_echo "$as_me: error: $2" >&2
  17221. as_fn_exit $as_status
  17222. } # as_fn_error
  17223. # as_fn_set_status STATUS
  17224. # -----------------------
  17225. # Set $? to STATUS, without forking.
  17226. as_fn_set_status ()
  17227. {
  17228. return $1
  17229. } # as_fn_set_status
  17230. # as_fn_exit STATUS
  17231. # -----------------
  17232. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17233. as_fn_exit ()
  17234. {
  17235. set +e
  17236. as_fn_set_status $1
  17237. exit $1
  17238. } # as_fn_exit
  17239. # as_fn_unset VAR
  17240. # ---------------
  17241. # Portably unset VAR.
  17242. as_fn_unset ()
  17243. {
  17244. { eval $1=; unset $1;}
  17245. }
  17246. as_unset=as_fn_unset
  17247. # as_fn_append VAR VALUE
  17248. # ----------------------
  17249. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17250. # advantage of any shell optimizations that allow amortized linear growth over
  17251. # repeated appends, instead of the typical quadratic growth present in naive
  17252. # implementations.
  17253. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  17254. eval 'as_fn_append ()
  17255. {
  17256. eval $1+=\$2
  17257. }'
  17258. else
  17259. as_fn_append ()
  17260. {
  17261. eval $1=\$$1\$2
  17262. }
  17263. fi # as_fn_append
  17264. # as_fn_arith ARG...
  17265. # ------------------
  17266. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17267. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17268. # must be portable across $(()) and expr.
  17269. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  17270. eval 'as_fn_arith ()
  17271. {
  17272. as_val=$(( $* ))
  17273. }'
  17274. else
  17275. as_fn_arith ()
  17276. {
  17277. as_val=`expr "$@" || test $? -eq 1`
  17278. }
  17279. fi # as_fn_arith
  17280. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17281. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17282. as_expr=expr
  17283. else
  17284. as_expr=false
  17285. fi
  17286. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17287. as_basename=basename
  17288. else
  17289. as_basename=false
  17290. fi
  17291. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17292. as_dirname=dirname
  17293. else
  17294. as_dirname=false
  17295. fi
  17296. as_me=`$as_basename -- "$0" ||
  17297. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17298. X"$0" : 'X\(//\)$' \| \
  17299. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17300. $as_echo X/"$0" |
  17301. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17302. s//\1/
  17303. q
  17304. }
  17305. /^X\/\(\/\/\)$/{
  17306. s//\1/
  17307. q
  17308. }
  17309. /^X\/\(\/\).*/{
  17310. s//\1/
  17311. q
  17312. }
  17313. s/.*/./; q'`
  17314. # Avoid depending upon Character Ranges.
  17315. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17316. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17317. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17318. as_cr_digits='0123456789'
  17319. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17320. ECHO_C= ECHO_N= ECHO_T=
  17321. case `echo -n x` in #(((((
  17322. -n*)
  17323. case `echo 'xy\c'` in
  17324. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17325. xy) ECHO_C='\c';;
  17326. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17327. ECHO_T=' ';;
  17328. esac;;
  17329. *)
  17330. ECHO_N='-n';;
  17331. esac
  17332. rm -f conf$$ conf$$.exe conf$$.file
  17333. if test -d conf$$.dir; then
  17334. rm -f conf$$.dir/conf$$.file
  17335. else
  17336. rm -f conf$$.dir
  17337. mkdir conf$$.dir 2>/dev/null
  17338. fi
  17339. if (echo >conf$$.file) 2>/dev/null; then
  17340. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17341. as_ln_s='ln -s'
  17342. # ... but there are two gotchas:
  17343. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17344. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17345. # In both cases, we have to default to `cp -pR'.
  17346. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17347. as_ln_s='cp -pR'
  17348. elif ln conf$$.file conf$$ 2>/dev/null; then
  17349. as_ln_s=ln
  17350. else
  17351. as_ln_s='cp -pR'
  17352. fi
  17353. else
  17354. as_ln_s='cp -pR'
  17355. fi
  17356. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17357. rmdir conf$$.dir 2>/dev/null
  17358. # as_fn_mkdir_p
  17359. # -------------
  17360. # Create "$as_dir" as a directory, including parents if necessary.
  17361. as_fn_mkdir_p ()
  17362. {
  17363. case $as_dir in #(
  17364. -*) as_dir=./$as_dir;;
  17365. esac
  17366. test -d "$as_dir" || eval $as_mkdir_p || {
  17367. as_dirs=
  17368. while :; do
  17369. case $as_dir in #(
  17370. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17371. *) as_qdir=$as_dir;;
  17372. esac
  17373. as_dirs="'$as_qdir' $as_dirs"
  17374. as_dir=`$as_dirname -- "$as_dir" ||
  17375. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17376. X"$as_dir" : 'X\(//\)[^/]' \| \
  17377. X"$as_dir" : 'X\(//\)$' \| \
  17378. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17379. $as_echo X"$as_dir" |
  17380. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17381. s//\1/
  17382. q
  17383. }
  17384. /^X\(\/\/\)[^/].*/{
  17385. s//\1/
  17386. q
  17387. }
  17388. /^X\(\/\/\)$/{
  17389. s//\1/
  17390. q
  17391. }
  17392. /^X\(\/\).*/{
  17393. s//\1/
  17394. q
  17395. }
  17396. s/.*/./; q'`
  17397. test -d "$as_dir" && break
  17398. done
  17399. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17400. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  17401. } # as_fn_mkdir_p
  17402. if mkdir -p . 2>/dev/null; then
  17403. as_mkdir_p='mkdir -p "$as_dir"'
  17404. else
  17405. test -d ./-p && rmdir ./-p
  17406. as_mkdir_p=false
  17407. fi
  17408. # as_fn_executable_p FILE
  17409. # -----------------------
  17410. # Test if FILE is an executable regular file.
  17411. as_fn_executable_p ()
  17412. {
  17413. test -f "$1" && test -x "$1"
  17414. } # as_fn_executable_p
  17415. as_test_x='test -x'
  17416. as_executable_p=as_fn_executable_p
  17417. # Sed expression to map a string onto a valid CPP name.
  17418. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17419. # Sed expression to map a string onto a valid variable name.
  17420. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17421. exec 6>&1
  17422. ## ----------------------------------- ##
  17423. ## Main body of $CONFIG_STATUS script. ##
  17424. ## ----------------------------------- ##
  17425. _ASEOF
  17426. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  17427. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17428. # Save the log message, to keep $0 and so on meaningful, and to
  17429. # report actual input values of CONFIG_FILES etc. instead of their
  17430. # values after options handling.
  17431. ac_log="
  17432. This file was extended by mpg123 $as_me 1.25.6, which was
  17433. generated by GNU Autoconf 2.69. Invocation command line was
  17434. CONFIG_FILES = $CONFIG_FILES
  17435. CONFIG_HEADERS = $CONFIG_HEADERS
  17436. CONFIG_LINKS = $CONFIG_LINKS
  17437. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17438. $ $0 $@
  17439. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17440. "
  17441. _ACEOF
  17442. case $ac_config_files in *"
  17443. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  17444. esac
  17445. case $ac_config_headers in *"
  17446. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  17447. esac
  17448. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17449. # Files that config.status was made for.
  17450. config_files="$ac_config_files"
  17451. config_headers="$ac_config_headers"
  17452. config_commands="$ac_config_commands"
  17453. _ACEOF
  17454. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17455. ac_cs_usage="\
  17456. \`$as_me' instantiates files and other configuration actions
  17457. from templates according to the current configuration. Unless the files
  17458. and actions are specified as TAGs, all are instantiated by default.
  17459. Usage: $0 [OPTION]... [TAG]...
  17460. -h, --help print this help, then exit
  17461. -V, --version print version number and configuration settings, then exit
  17462. --config print configuration, then exit
  17463. -q, --quiet, --silent
  17464. do not print progress messages
  17465. -d, --debug don't remove temporary files
  17466. --recheck update $as_me by reconfiguring in the same conditions
  17467. --file=FILE[:TEMPLATE]
  17468. instantiate the configuration file FILE
  17469. --header=FILE[:TEMPLATE]
  17470. instantiate the configuration header FILE
  17471. Configuration files:
  17472. $config_files
  17473. Configuration headers:
  17474. $config_headers
  17475. Configuration commands:
  17476. $config_commands
  17477. Report bugs to <[email protected]>."
  17478. _ACEOF
  17479. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17480. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  17481. ac_cs_version="\\
  17482. mpg123 config.status 1.25.6
  17483. configured by $0, generated by GNU Autoconf 2.69,
  17484. with options \\"\$ac_cs_config\\"
  17485. Copyright (C) 2012 Free Software Foundation, Inc.
  17486. This config.status script is free software; the Free Software Foundation
  17487. gives unlimited permission to copy, distribute and modify it."
  17488. ac_pwd='$ac_pwd'
  17489. srcdir='$srcdir'
  17490. INSTALL='$INSTALL'
  17491. MKDIR_P='$MKDIR_P'
  17492. AWK='$AWK'
  17493. test -n "\$AWK" || AWK=awk
  17494. _ACEOF
  17495. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17496. # The default lists apply if the user does not specify any file.
  17497. ac_need_defaults=:
  17498. while test $# != 0
  17499. do
  17500. case $1 in
  17501. --*=?*)
  17502. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17503. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17504. ac_shift=:
  17505. ;;
  17506. --*=)
  17507. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17508. ac_optarg=
  17509. ac_shift=:
  17510. ;;
  17511. *)
  17512. ac_option=$1
  17513. ac_optarg=$2
  17514. ac_shift=shift
  17515. ;;
  17516. esac
  17517. case $ac_option in
  17518. # Handling of the options.
  17519. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17520. ac_cs_recheck=: ;;
  17521. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17522. $as_echo "$ac_cs_version"; exit ;;
  17523. --config | --confi | --conf | --con | --co | --c )
  17524. $as_echo "$ac_cs_config"; exit ;;
  17525. --debug | --debu | --deb | --de | --d | -d )
  17526. debug=: ;;
  17527. --file | --fil | --fi | --f )
  17528. $ac_shift
  17529. case $ac_optarg in
  17530. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17531. '') as_fn_error $? "missing file argument" ;;
  17532. esac
  17533. as_fn_append CONFIG_FILES " '$ac_optarg'"
  17534. ac_need_defaults=false;;
  17535. --header | --heade | --head | --hea )
  17536. $ac_shift
  17537. case $ac_optarg in
  17538. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17539. esac
  17540. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  17541. ac_need_defaults=false;;
  17542. --he | --h)
  17543. # Conflict between --help and --header
  17544. as_fn_error $? "ambiguous option: \`$1'
  17545. Try \`$0 --help' for more information.";;
  17546. --help | --hel | -h )
  17547. $as_echo "$ac_cs_usage"; exit ;;
  17548. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17549. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  17550. ac_cs_silent=: ;;
  17551. # This is an error.
  17552. -*) as_fn_error $? "unrecognized option: \`$1'
  17553. Try \`$0 --help' for more information." ;;
  17554. *) as_fn_append ac_config_targets " $1"
  17555. ac_need_defaults=false ;;
  17556. esac
  17557. shift
  17558. done
  17559. ac_configure_extra_args=
  17560. if $ac_cs_silent; then
  17561. exec 6>/dev/null
  17562. ac_configure_extra_args="$ac_configure_extra_args --silent"
  17563. fi
  17564. _ACEOF
  17565. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17566. if \$ac_cs_recheck; then
  17567. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  17568. shift
  17569. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  17570. CONFIG_SHELL='$SHELL'
  17571. export CONFIG_SHELL
  17572. exec "\$@"
  17573. fi
  17574. _ACEOF
  17575. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17576. exec 5>>config.log
  17577. {
  17578. echo
  17579. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  17580. ## Running $as_me. ##
  17581. _ASBOX
  17582. $as_echo "$ac_log"
  17583. } >&5
  17584. _ACEOF
  17585. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17586. #
  17587. # INIT-COMMANDS
  17588. #
  17589. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  17590. # The HP-UX ksh and POSIX shell print the target directory to stdout
  17591. # if CDPATH is set.
  17592. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17593. sed_quote_subst='$sed_quote_subst'
  17594. double_quote_subst='$double_quote_subst'
  17595. delay_variable_subst='$delay_variable_subst'
  17596. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  17597. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  17598. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  17599. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  17600. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  17601. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  17602. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  17603. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  17604. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  17605. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  17606. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  17607. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  17608. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  17609. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  17610. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  17611. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  17612. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  17613. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  17614. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  17615. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  17616. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  17617. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  17618. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  17619. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  17620. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  17621. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  17622. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  17623. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  17624. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  17625. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  17626. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  17627. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  17628. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  17629. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  17630. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  17631. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  17632. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  17633. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  17634. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  17635. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  17636. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  17637. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  17638. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  17639. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  17640. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  17641. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  17642. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  17643. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  17644. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  17645. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  17646. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  17647. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  17648. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  17649. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  17650. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  17651. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  17652. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  17653. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  17654. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  17655. 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"`'
  17656. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  17657. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  17658. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  17659. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  17660. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  17661. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  17662. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  17663. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  17664. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  17665. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  17666. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  17667. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  17668. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  17669. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  17670. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  17671. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  17672. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  17673. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  17674. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  17675. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  17676. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  17677. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  17678. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  17679. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  17680. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  17681. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  17682. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  17683. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  17684. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  17685. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  17686. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  17687. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  17688. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  17689. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  17690. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  17691. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  17692. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  17693. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  17694. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  17695. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  17696. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  17697. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  17698. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  17699. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  17700. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  17701. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  17702. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  17703. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  17704. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  17705. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  17706. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  17707. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  17708. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  17709. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  17710. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  17711. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  17712. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  17713. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  17714. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  17715. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  17716. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  17717. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  17718. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  17719. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  17720. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  17721. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  17722. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  17723. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  17724. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  17725. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  17726. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  17727. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  17728. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  17729. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  17730. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  17731. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  17732. LTCC='$LTCC'
  17733. LTCFLAGS='$LTCFLAGS'
  17734. compiler='$compiler_DEFAULT'
  17735. # A function that is used when there is no print builtin or printf.
  17736. func_fallback_echo ()
  17737. {
  17738. eval 'cat <<_LTECHO_EOF
  17739. \$1
  17740. _LTECHO_EOF'
  17741. }
  17742. # Quote evaled strings.
  17743. for var in AS \
  17744. DLLTOOL \
  17745. OBJDUMP \
  17746. SHELL \
  17747. ECHO \
  17748. PATH_SEPARATOR \
  17749. SED \
  17750. GREP \
  17751. EGREP \
  17752. FGREP \
  17753. LD \
  17754. NM \
  17755. LN_S \
  17756. lt_SP2NL \
  17757. lt_NL2SP \
  17758. reload_flag \
  17759. deplibs_check_method \
  17760. file_magic_cmd \
  17761. file_magic_glob \
  17762. want_nocaseglob \
  17763. sharedlib_from_linklib_cmd \
  17764. AR \
  17765. AR_FLAGS \
  17766. archiver_list_spec \
  17767. STRIP \
  17768. RANLIB \
  17769. CC \
  17770. CFLAGS \
  17771. compiler \
  17772. lt_cv_sys_global_symbol_pipe \
  17773. lt_cv_sys_global_symbol_to_cdecl \
  17774. lt_cv_sys_global_symbol_to_import \
  17775. lt_cv_sys_global_symbol_to_c_name_address \
  17776. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  17777. lt_cv_nm_interface \
  17778. nm_file_list_spec \
  17779. lt_cv_truncate_bin \
  17780. lt_prog_compiler_no_builtin_flag \
  17781. lt_prog_compiler_pic \
  17782. lt_prog_compiler_wl \
  17783. lt_prog_compiler_static \
  17784. lt_cv_prog_compiler_c_o \
  17785. need_locks \
  17786. MANIFEST_TOOL \
  17787. DSYMUTIL \
  17788. NMEDIT \
  17789. LIPO \
  17790. OTOOL \
  17791. OTOOL64 \
  17792. shrext_cmds \
  17793. export_dynamic_flag_spec \
  17794. whole_archive_flag_spec \
  17795. compiler_needs_object \
  17796. with_gnu_ld \
  17797. allow_undefined_flag \
  17798. no_undefined_flag \
  17799. hardcode_libdir_flag_spec \
  17800. hardcode_libdir_separator \
  17801. exclude_expsyms \
  17802. include_expsyms \
  17803. file_list_spec \
  17804. variables_saved_for_relink \
  17805. libname_spec \
  17806. library_names_spec \
  17807. soname_spec \
  17808. install_override_mode \
  17809. finish_eval \
  17810. old_striplib \
  17811. striplib; do
  17812. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  17813. *[\\\\\\\`\\"\\\$]*)
  17814. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  17815. ;;
  17816. *)
  17817. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  17818. ;;
  17819. esac
  17820. done
  17821. # Double-quote double-evaled strings.
  17822. for var in reload_cmds \
  17823. old_postinstall_cmds \
  17824. old_postuninstall_cmds \
  17825. old_archive_cmds \
  17826. extract_expsyms_cmds \
  17827. old_archive_from_new_cmds \
  17828. old_archive_from_expsyms_cmds \
  17829. archive_cmds \
  17830. archive_expsym_cmds \
  17831. module_cmds \
  17832. module_expsym_cmds \
  17833. export_symbols_cmds \
  17834. prelink_cmds \
  17835. postlink_cmds \
  17836. postinstall_cmds \
  17837. postuninstall_cmds \
  17838. finish_cmds \
  17839. sys_lib_search_path_spec \
  17840. configure_time_dlsearch_path \
  17841. configure_time_lt_sys_library_path; do
  17842. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  17843. *[\\\\\\\`\\"\\\$]*)
  17844. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  17845. ;;
  17846. *)
  17847. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  17848. ;;
  17849. esac
  17850. done
  17851. ac_aux_dir='$ac_aux_dir'
  17852. # See if we are running on zsh, and set the options that allow our
  17853. # commands through without removal of \ escapes INIT.
  17854. if test -n "\${ZSH_VERSION+set}"; then
  17855. setopt NO_GLOB_SUBST
  17856. fi
  17857. PACKAGE='$PACKAGE'
  17858. VERSION='$VERSION'
  17859. RM='$RM'
  17860. ofile='$ofile'
  17861. _ACEOF
  17862. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17863. # Handling of arguments.
  17864. for ac_config_target in $ac_config_targets
  17865. do
  17866. case $ac_config_target in
  17867. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  17868. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  17869. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  17870. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  17871. "libmpg123.pc") CONFIG_FILES="$CONFIG_FILES libmpg123.pc" ;;
  17872. "libout123.pc") CONFIG_FILES="$CONFIG_FILES libout123.pc" ;;
  17873. "mpg123.spec") CONFIG_FILES="$CONFIG_FILES mpg123.spec" ;;
  17874. "src/libmpg123/mpg123.h") CONFIG_FILES="$CONFIG_FILES src/libmpg123/mpg123.h" ;;
  17875. "src/libout123/out123.h") CONFIG_FILES="$CONFIG_FILES src/libout123/out123.h" ;;
  17876. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  17877. esac
  17878. done
  17879. # If the user did not use the arguments to specify the items to instantiate,
  17880. # then the envvar interface is used. Set only those that are not.
  17881. # We use the long form for the default assignment because of an extremely
  17882. # bizarre bug on SunOS 4.1.3.
  17883. if $ac_need_defaults; then
  17884. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  17885. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  17886. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  17887. fi
  17888. # Have a temporary directory for convenience. Make it in the build tree
  17889. # simply because there is no reason against having it here, and in addition,
  17890. # creating and moving files from /tmp can sometimes cause problems.
  17891. # Hook for its removal unless debugging.
  17892. # Note that there is a small window in which the directory will not be cleaned:
  17893. # after its creation but before its name has been assigned to `$tmp'.
  17894. $debug ||
  17895. {
  17896. tmp= ac_tmp=
  17897. trap 'exit_status=$?
  17898. : "${ac_tmp:=$tmp}"
  17899. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  17900. ' 0
  17901. trap 'as_fn_exit 1' 1 2 13 15
  17902. }
  17903. # Create a (secure) tmp directory for tmp files.
  17904. {
  17905. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  17906. test -d "$tmp"
  17907. } ||
  17908. {
  17909. tmp=./conf$$-$RANDOM
  17910. (umask 077 && mkdir "$tmp")
  17911. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  17912. ac_tmp=$tmp
  17913. # Set up the scripts for CONFIG_FILES section.
  17914. # No need to generate them if there are no CONFIG_FILES.
  17915. # This happens for instance with `./config.status config.h'.
  17916. if test -n "$CONFIG_FILES"; then
  17917. ac_cr=`echo X | tr X '\015'`
  17918. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  17919. # But we know of no other shell where ac_cr would be empty at this
  17920. # point, so we can use a bashism as a fallback.
  17921. if test "x$ac_cr" = x; then
  17922. eval ac_cr=\$\'\\r\'
  17923. fi
  17924. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  17925. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  17926. ac_cs_awk_cr='\\r'
  17927. else
  17928. ac_cs_awk_cr=$ac_cr
  17929. fi
  17930. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  17931. _ACEOF
  17932. {
  17933. echo "cat >conf$$subs.awk <<_ACEOF" &&
  17934. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  17935. echo "_ACEOF"
  17936. } >conf$$subs.sh ||
  17937. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17938. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  17939. ac_delim='%!_!# '
  17940. for ac_last_try in false false false false false :; do
  17941. . ./conf$$subs.sh ||
  17942. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17943. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  17944. if test $ac_delim_n = $ac_delim_num; then
  17945. break
  17946. elif $ac_last_try; then
  17947. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17948. else
  17949. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17950. fi
  17951. done
  17952. rm -f conf$$subs.sh
  17953. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17954. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  17955. _ACEOF
  17956. sed -n '
  17957. h
  17958. s/^/S["/; s/!.*/"]=/
  17959. p
  17960. g
  17961. s/^[^!]*!//
  17962. :repl
  17963. t repl
  17964. s/'"$ac_delim"'$//
  17965. t delim
  17966. :nl
  17967. h
  17968. s/\(.\{148\}\)..*/\1/
  17969. t more1
  17970. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  17971. p
  17972. n
  17973. b repl
  17974. :more1
  17975. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17976. p
  17977. g
  17978. s/.\{148\}//
  17979. t nl
  17980. :delim
  17981. h
  17982. s/\(.\{148\}\)..*/\1/
  17983. t more2
  17984. s/["\\]/\\&/g; s/^/"/; s/$/"/
  17985. p
  17986. b
  17987. :more2
  17988. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17989. p
  17990. g
  17991. s/.\{148\}//
  17992. t delim
  17993. ' <conf$$subs.awk | sed '
  17994. /^[^""]/{
  17995. N
  17996. s/\n//
  17997. }
  17998. ' >>$CONFIG_STATUS || ac_write_fail=1
  17999. rm -f conf$$subs.awk
  18000. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18001. _ACAWK
  18002. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18003. for (key in S) S_is_set[key] = 1
  18004. FS = ""
  18005. }
  18006. {
  18007. line = $ 0
  18008. nfields = split(line, field, "@")
  18009. substed = 0
  18010. len = length(field[1])
  18011. for (i = 2; i < nfields; i++) {
  18012. key = field[i]
  18013. keylen = length(key)
  18014. if (S_is_set[key]) {
  18015. value = S[key]
  18016. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18017. len += length(value) + length(field[++i])
  18018. substed = 1
  18019. } else
  18020. len += 1 + keylen
  18021. }
  18022. print line
  18023. }
  18024. _ACAWK
  18025. _ACEOF
  18026. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18027. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18028. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18029. else
  18030. cat
  18031. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18032. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18033. _ACEOF
  18034. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18035. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18036. # trailing colons and then remove the whole line if VPATH becomes empty
  18037. # (actually we leave an empty line to preserve line numbers).
  18038. if test "x$srcdir" = x.; then
  18039. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18040. h
  18041. s///
  18042. s/^/:/
  18043. s/[ ]*$/:/
  18044. s/:\$(srcdir):/:/g
  18045. s/:\${srcdir}:/:/g
  18046. s/:@srcdir@:/:/g
  18047. s/^:*//
  18048. s/:*$//
  18049. x
  18050. s/\(=[ ]*\).*/\1/
  18051. G
  18052. s/\n//
  18053. s/^[^=]*=[ ]*$//
  18054. }'
  18055. fi
  18056. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18057. fi # test -n "$CONFIG_FILES"
  18058. # Set up the scripts for CONFIG_HEADERS section.
  18059. # No need to generate them if there are no CONFIG_HEADERS.
  18060. # This happens for instance with `./config.status Makefile'.
  18061. if test -n "$CONFIG_HEADERS"; then
  18062. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18063. BEGIN {
  18064. _ACEOF
  18065. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18066. # here-document in config.status, that substitutes the proper values into
  18067. # config.h.in to produce config.h.
  18068. # Create a delimiter string that does not exist in confdefs.h, to ease
  18069. # handling of long lines.
  18070. ac_delim='%!_!# '
  18071. for ac_last_try in false false :; do
  18072. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18073. if test -z "$ac_tt"; then
  18074. break
  18075. elif $ac_last_try; then
  18076. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18077. else
  18078. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18079. fi
  18080. done
  18081. # For the awk script, D is an array of macro values keyed by name,
  18082. # likewise P contains macro parameters if any. Preserve backslash
  18083. # newline sequences.
  18084. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18085. sed -n '
  18086. s/.\{148\}/&'"$ac_delim"'/g
  18087. t rset
  18088. :rset
  18089. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18090. t def
  18091. d
  18092. :def
  18093. s/\\$//
  18094. t bsnl
  18095. s/["\\]/\\&/g
  18096. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18097. D["\1"]=" \3"/p
  18098. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18099. d
  18100. :bsnl
  18101. s/["\\]/\\&/g
  18102. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18103. D["\1"]=" \3\\\\\\n"\\/p
  18104. t cont
  18105. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18106. t cont
  18107. d
  18108. :cont
  18109. n
  18110. s/.\{148\}/&'"$ac_delim"'/g
  18111. t clear
  18112. :clear
  18113. s/\\$//
  18114. t bsnlc
  18115. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18116. d
  18117. :bsnlc
  18118. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18119. b cont
  18120. ' <confdefs.h | sed '
  18121. s/'"$ac_delim"'/"\\\
  18122. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18123. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18124. for (key in D) D_is_set[key] = 1
  18125. FS = ""
  18126. }
  18127. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18128. line = \$ 0
  18129. split(line, arg, " ")
  18130. if (arg[1] == "#") {
  18131. defundef = arg[2]
  18132. mac1 = arg[3]
  18133. } else {
  18134. defundef = substr(arg[1], 2)
  18135. mac1 = arg[2]
  18136. }
  18137. split(mac1, mac2, "(") #)
  18138. macro = mac2[1]
  18139. prefix = substr(line, 1, index(line, defundef) - 1)
  18140. if (D_is_set[macro]) {
  18141. # Preserve the white space surrounding the "#".
  18142. print prefix "define", macro P[macro] D[macro]
  18143. next
  18144. } else {
  18145. # Replace #undef with comments. This is necessary, for example,
  18146. # in the case of _POSIX_SOURCE, which is predefined and required
  18147. # on some systems where configure will not decide to define it.
  18148. if (defundef == "undef") {
  18149. print "/*", prefix defundef, macro, "*/"
  18150. next
  18151. }
  18152. }
  18153. }
  18154. { print }
  18155. _ACAWK
  18156. _ACEOF
  18157. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18158. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  18159. fi # test -n "$CONFIG_HEADERS"
  18160. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  18161. shift
  18162. for ac_tag
  18163. do
  18164. case $ac_tag in
  18165. :[FHLC]) ac_mode=$ac_tag; continue;;
  18166. esac
  18167. case $ac_mode$ac_tag in
  18168. :[FHL]*:*);;
  18169. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  18170. :[FH]-) ac_tag=-:-;;
  18171. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18172. esac
  18173. ac_save_IFS=$IFS
  18174. IFS=:
  18175. set x $ac_tag
  18176. IFS=$ac_save_IFS
  18177. shift
  18178. ac_file=$1
  18179. shift
  18180. case $ac_mode in
  18181. :L) ac_source=$1;;
  18182. :[FH])
  18183. ac_file_inputs=
  18184. for ac_f
  18185. do
  18186. case $ac_f in
  18187. -) ac_f="$ac_tmp/stdin";;
  18188. *) # Look for the file first in the build tree, then in the source tree
  18189. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18190. # because $ac_f cannot contain `:'.
  18191. test -f "$ac_f" ||
  18192. case $ac_f in
  18193. [\\/$]*) false;;
  18194. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18195. esac ||
  18196. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  18197. esac
  18198. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  18199. as_fn_append ac_file_inputs " '$ac_f'"
  18200. done
  18201. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18202. # use $as_me), people would be surprised to read:
  18203. # /* config.h. Generated by config.status. */
  18204. configure_input='Generated from '`
  18205. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  18206. `' by configure.'
  18207. if test x"$ac_file" != x-; then
  18208. configure_input="$ac_file. $configure_input"
  18209. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  18210. $as_echo "$as_me: creating $ac_file" >&6;}
  18211. fi
  18212. # Neutralize special characters interpreted by sed in replacement strings.
  18213. case $configure_input in #(
  18214. *\&* | *\|* | *\\* )
  18215. ac_sed_conf_input=`$as_echo "$configure_input" |
  18216. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  18217. *) ac_sed_conf_input=$configure_input;;
  18218. esac
  18219. case $ac_tag in
  18220. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  18221. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  18222. esac
  18223. ;;
  18224. esac
  18225. ac_dir=`$as_dirname -- "$ac_file" ||
  18226. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18227. X"$ac_file" : 'X\(//\)[^/]' \| \
  18228. X"$ac_file" : 'X\(//\)$' \| \
  18229. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18230. $as_echo X"$ac_file" |
  18231. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18232. s//\1/
  18233. q
  18234. }
  18235. /^X\(\/\/\)[^/].*/{
  18236. s//\1/
  18237. q
  18238. }
  18239. /^X\(\/\/\)$/{
  18240. s//\1/
  18241. q
  18242. }
  18243. /^X\(\/\).*/{
  18244. s//\1/
  18245. q
  18246. }
  18247. s/.*/./; q'`
  18248. as_dir="$ac_dir"; as_fn_mkdir_p
  18249. ac_builddir=.
  18250. case "$ac_dir" in
  18251. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18252. *)
  18253. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  18254. # A ".." for each directory in $ac_dir_suffix.
  18255. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18256. case $ac_top_builddir_sub in
  18257. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18258. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18259. esac ;;
  18260. esac
  18261. ac_abs_top_builddir=$ac_pwd
  18262. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18263. # for backward compatibility:
  18264. ac_top_builddir=$ac_top_build_prefix
  18265. case $srcdir in
  18266. .) # We are building in place.
  18267. ac_srcdir=.
  18268. ac_top_srcdir=$ac_top_builddir_sub
  18269. ac_abs_top_srcdir=$ac_pwd ;;
  18270. [\\/]* | ?:[\\/]* ) # Absolute name.
  18271. ac_srcdir=$srcdir$ac_dir_suffix;
  18272. ac_top_srcdir=$srcdir
  18273. ac_abs_top_srcdir=$srcdir ;;
  18274. *) # Relative name.
  18275. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18276. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18277. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18278. esac
  18279. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18280. case $ac_mode in
  18281. :F)
  18282. #
  18283. # CONFIG_FILE
  18284. #
  18285. case $INSTALL in
  18286. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18287. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  18288. esac
  18289. ac_MKDIR_P=$MKDIR_P
  18290. case $MKDIR_P in
  18291. [\\/$]* | ?:[\\/]* ) ;;
  18292. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  18293. esac
  18294. _ACEOF
  18295. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18296. # If the template does not know about datarootdir, expand it.
  18297. # FIXME: This hack should be removed a few years after 2.60.
  18298. ac_datarootdir_hack=; ac_datarootdir_seen=
  18299. ac_sed_dataroot='
  18300. /datarootdir/ {
  18301. p
  18302. q
  18303. }
  18304. /@datadir@/p
  18305. /@docdir@/p
  18306. /@infodir@/p
  18307. /@localedir@/p
  18308. /@mandir@/p'
  18309. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  18310. *datarootdir*) ac_datarootdir_seen=yes;;
  18311. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  18312. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  18313. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  18314. _ACEOF
  18315. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18316. ac_datarootdir_hack='
  18317. s&@datadir@&$datadir&g
  18318. s&@docdir@&$docdir&g
  18319. s&@infodir@&$infodir&g
  18320. s&@localedir@&$localedir&g
  18321. s&@mandir@&$mandir&g
  18322. s&\\\${datarootdir}&$datarootdir&g' ;;
  18323. esac
  18324. _ACEOF
  18325. # Neutralize VPATH when `$srcdir' = `.'.
  18326. # Shell code in configure.ac might set extrasub.
  18327. # FIXME: do we really want to maintain this feature?
  18328. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18329. ac_sed_extra="$ac_vpsub
  18330. $extrasub
  18331. _ACEOF
  18332. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18333. :t
  18334. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18335. s|@configure_input@|$ac_sed_conf_input|;t t
  18336. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18337. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  18338. s&@srcdir@&$ac_srcdir&;t t
  18339. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18340. s&@top_srcdir@&$ac_top_srcdir&;t t
  18341. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18342. s&@builddir@&$ac_builddir&;t t
  18343. s&@abs_builddir@&$ac_abs_builddir&;t t
  18344. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18345. s&@INSTALL@&$ac_INSTALL&;t t
  18346. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  18347. $ac_datarootdir_hack
  18348. "
  18349. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  18350. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18351. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18352. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  18353. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  18354. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  18355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18356. which seems to be undefined. Please make sure it is defined" >&5
  18357. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18358. which seems to be undefined. Please make sure it is defined" >&2;}
  18359. rm -f "$ac_tmp/stdin"
  18360. case $ac_file in
  18361. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  18362. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  18363. esac \
  18364. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18365. ;;
  18366. :H)
  18367. #
  18368. # CONFIG_HEADER
  18369. #
  18370. if test x"$ac_file" != x-; then
  18371. {
  18372. $as_echo "/* $configure_input */" \
  18373. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  18374. } >"$ac_tmp/config.h" \
  18375. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18376. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  18377. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  18378. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  18379. else
  18380. rm -f "$ac_file"
  18381. mv "$ac_tmp/config.h" "$ac_file" \
  18382. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18383. fi
  18384. else
  18385. $as_echo "/* $configure_input */" \
  18386. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  18387. || as_fn_error $? "could not create -" "$LINENO" 5
  18388. fi
  18389. # Compute "$ac_file"'s index in $config_headers.
  18390. _am_arg="$ac_file"
  18391. _am_stamp_count=1
  18392. for _am_header in $config_headers :; do
  18393. case $_am_header in
  18394. $_am_arg | $_am_arg:* )
  18395. break ;;
  18396. * )
  18397. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  18398. esac
  18399. done
  18400. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  18401. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18402. X"$_am_arg" : 'X\(//\)[^/]' \| \
  18403. X"$_am_arg" : 'X\(//\)$' \| \
  18404. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  18405. $as_echo X"$_am_arg" |
  18406. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18407. s//\1/
  18408. q
  18409. }
  18410. /^X\(\/\/\)[^/].*/{
  18411. s//\1/
  18412. q
  18413. }
  18414. /^X\(\/\/\)$/{
  18415. s//\1/
  18416. q
  18417. }
  18418. /^X\(\/\).*/{
  18419. s//\1/
  18420. q
  18421. }
  18422. s/.*/./; q'`/stamp-h$_am_stamp_count
  18423. ;;
  18424. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  18425. $as_echo "$as_me: executing $ac_file commands" >&6;}
  18426. ;;
  18427. esac
  18428. case $ac_file$ac_mode in
  18429. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  18430. # Older Autoconf quotes --file arguments for eval, but not when files
  18431. # are listed without --file. Let's play safe and only enable the eval
  18432. # if we detect the quoting.
  18433. case $CONFIG_FILES in
  18434. *\'*) eval set x "$CONFIG_FILES" ;;
  18435. *) set x $CONFIG_FILES ;;
  18436. esac
  18437. shift
  18438. for mf
  18439. do
  18440. # Strip MF so we end up with the name of the file.
  18441. mf=`echo "$mf" | sed -e 's/:.*$//'`
  18442. # Check whether this is an Automake generated Makefile or not.
  18443. # We used to match only the files named 'Makefile.in', but
  18444. # some people rename them; so instead we look at the file content.
  18445. # Grep'ing the first line is not enough: some people post-process
  18446. # each Makefile.in and add a new line on top of each file to say so.
  18447. # Grep'ing the whole file is not good either: AIX grep has a line
  18448. # limit of 2048, but all sed's we know have understand at least 4000.
  18449. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  18450. dirpart=`$as_dirname -- "$mf" ||
  18451. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18452. X"$mf" : 'X\(//\)[^/]' \| \
  18453. X"$mf" : 'X\(//\)$' \| \
  18454. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  18455. $as_echo X"$mf" |
  18456. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18457. s//\1/
  18458. q
  18459. }
  18460. /^X\(\/\/\)[^/].*/{
  18461. s//\1/
  18462. q
  18463. }
  18464. /^X\(\/\/\)$/{
  18465. s//\1/
  18466. q
  18467. }
  18468. /^X\(\/\).*/{
  18469. s//\1/
  18470. q
  18471. }
  18472. s/.*/./; q'`
  18473. else
  18474. continue
  18475. fi
  18476. # Extract the definition of DEPDIR, am__include, and am__quote
  18477. # from the Makefile without running 'make'.
  18478. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  18479. test -z "$DEPDIR" && continue
  18480. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  18481. test -z "$am__include" && continue
  18482. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  18483. # Find all dependency output files, they are included files with
  18484. # $(DEPDIR) in their names. We invoke sed twice because it is the
  18485. # simplest approach to changing $(DEPDIR) to its actual value in the
  18486. # expansion.
  18487. for file in `sed -n "
  18488. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  18489. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  18490. # Make sure the directory exists.
  18491. test -f "$dirpart/$file" && continue
  18492. fdir=`$as_dirname -- "$file" ||
  18493. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18494. X"$file" : 'X\(//\)[^/]' \| \
  18495. X"$file" : 'X\(//\)$' \| \
  18496. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  18497. $as_echo X"$file" |
  18498. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18499. s//\1/
  18500. q
  18501. }
  18502. /^X\(\/\/\)[^/].*/{
  18503. s//\1/
  18504. q
  18505. }
  18506. /^X\(\/\/\)$/{
  18507. s//\1/
  18508. q
  18509. }
  18510. /^X\(\/\).*/{
  18511. s//\1/
  18512. q
  18513. }
  18514. s/.*/./; q'`
  18515. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  18516. # echo "creating $dirpart/$file"
  18517. echo '# dummy' > "$dirpart/$file"
  18518. done
  18519. done
  18520. }
  18521. ;;
  18522. "libtool":C)
  18523. # See if we are running on zsh, and set the options that allow our
  18524. # commands through without removal of \ escapes.
  18525. if test -n "${ZSH_VERSION+set}"; then
  18526. setopt NO_GLOB_SUBST
  18527. fi
  18528. cfgfile=${ofile}T
  18529. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  18530. $RM "$cfgfile"
  18531. cat <<_LT_EOF >> "$cfgfile"
  18532. #! $SHELL
  18533. # Generated automatically by $as_me ($PACKAGE) $VERSION
  18534. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18535. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  18536. # Provide generalized library-building support services.
  18537. # Written by Gordon Matzigkeit, 1996
  18538. # Copyright (C) 2014 Free Software Foundation, Inc.
  18539. # This is free software; see the source for copying conditions. There is NO
  18540. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  18541. # GNU Libtool is free software; you can redistribute it and/or modify
  18542. # it under the terms of the GNU General Public License as published by
  18543. # the Free Software Foundation; either version 2 of of the License, or
  18544. # (at your option) any later version.
  18545. #
  18546. # As a special exception to the GNU General Public License, if you
  18547. # distribute this file as part of a program or library that is built
  18548. # using GNU Libtool, you may include this file under the same
  18549. # distribution terms that you use for the rest of that program.
  18550. #
  18551. # GNU Libtool is distributed in the hope that it will be useful, but
  18552. # WITHOUT ANY WARRANTY; without even the implied warranty of
  18553. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18554. # GNU General Public License for more details.
  18555. #
  18556. # You should have received a copy of the GNU General Public License
  18557. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18558. # The names of the tagged configurations supported by this script.
  18559. available_tags=''
  18560. # Configured defaults for sys_lib_dlsearch_path munging.
  18561. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  18562. # ### BEGIN LIBTOOL CONFIG
  18563. # Whether or not to build static libraries.
  18564. build_old_libs=$enable_static
  18565. # Whether or not to build shared libraries.
  18566. build_libtool_libs=$enable_shared
  18567. # Assembler program.
  18568. AS=$lt_AS
  18569. # DLL creation program.
  18570. DLLTOOL=$lt_DLLTOOL
  18571. # Object dumper program.
  18572. OBJDUMP=$lt_OBJDUMP
  18573. # Which release of libtool.m4 was used?
  18574. macro_version=$macro_version
  18575. macro_revision=$macro_revision
  18576. # What type of objects to build.
  18577. pic_mode=$pic_mode
  18578. # Whether or not to optimize for fast installation.
  18579. fast_install=$enable_fast_install
  18580. # Shared archive member basename,for filename based shared library versioning on AIX.
  18581. shared_archive_member_spec=$shared_archive_member_spec
  18582. # Shell to use when invoking shell scripts.
  18583. SHELL=$lt_SHELL
  18584. # An echo program that protects backslashes.
  18585. ECHO=$lt_ECHO
  18586. # The PATH separator for the build system.
  18587. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  18588. # The host system.
  18589. host_alias=$host_alias
  18590. host=$host
  18591. host_os=$host_os
  18592. # The build system.
  18593. build_alias=$build_alias
  18594. build=$build
  18595. build_os=$build_os
  18596. # A sed program that does not truncate output.
  18597. SED=$lt_SED
  18598. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  18599. Xsed="\$SED -e 1s/^X//"
  18600. # A grep program that handles long lines.
  18601. GREP=$lt_GREP
  18602. # An ERE matcher.
  18603. EGREP=$lt_EGREP
  18604. # A literal string matcher.
  18605. FGREP=$lt_FGREP
  18606. # A BSD- or MS-compatible name lister.
  18607. NM=$lt_NM
  18608. # Whether we need soft or hard links.
  18609. LN_S=$lt_LN_S
  18610. # What is the maximum length of a command?
  18611. max_cmd_len=$max_cmd_len
  18612. # Object file suffix (normally "o").
  18613. objext=$ac_objext
  18614. # Executable file suffix (normally "").
  18615. exeext=$exeext
  18616. # whether the shell understands "unset".
  18617. lt_unset=$lt_unset
  18618. # turn spaces into newlines.
  18619. SP2NL=$lt_lt_SP2NL
  18620. # turn newlines into spaces.
  18621. NL2SP=$lt_lt_NL2SP
  18622. # convert \$build file names to \$host format.
  18623. to_host_file_cmd=$lt_cv_to_host_file_cmd
  18624. # convert \$build files to toolchain format.
  18625. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  18626. # Method to check whether dependent libraries are shared objects.
  18627. deplibs_check_method=$lt_deplibs_check_method
  18628. # Command to use when deplibs_check_method = "file_magic".
  18629. file_magic_cmd=$lt_file_magic_cmd
  18630. # How to find potential files when deplibs_check_method = "file_magic".
  18631. file_magic_glob=$lt_file_magic_glob
  18632. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  18633. want_nocaseglob=$lt_want_nocaseglob
  18634. # Command to associate shared and link libraries.
  18635. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  18636. # The archiver.
  18637. AR=$lt_AR
  18638. # Flags to create an archive.
  18639. AR_FLAGS=$lt_AR_FLAGS
  18640. # How to feed a file listing to the archiver.
  18641. archiver_list_spec=$lt_archiver_list_spec
  18642. # A symbol stripping program.
  18643. STRIP=$lt_STRIP
  18644. # Commands used to install an old-style archive.
  18645. RANLIB=$lt_RANLIB
  18646. old_postinstall_cmds=$lt_old_postinstall_cmds
  18647. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18648. # Whether to use a lock for old archive extraction.
  18649. lock_old_archive_extraction=$lock_old_archive_extraction
  18650. # A C compiler.
  18651. LTCC=$lt_CC
  18652. # LTCC compiler flags.
  18653. LTCFLAGS=$lt_CFLAGS
  18654. # Take the output of nm and produce a listing of raw symbols and C names.
  18655. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18656. # Transform the output of nm in a proper C declaration.
  18657. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18658. # Transform the output of nm into a list of symbols to manually relocate.
  18659. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  18660. # Transform the output of nm in a C name address pair.
  18661. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18662. # Transform the output of nm in a C name address pair when lib prefix is needed.
  18663. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  18664. # The name lister interface.
  18665. nm_interface=$lt_lt_cv_nm_interface
  18666. # Specify filename containing input files for \$NM.
  18667. nm_file_list_spec=$lt_nm_file_list_spec
  18668. # The root where to search for dependent libraries,and where our libraries should be installed.
  18669. lt_sysroot=$lt_sysroot
  18670. # Command to truncate a binary pipe.
  18671. lt_truncate_bin=$lt_lt_cv_truncate_bin
  18672. # The name of the directory that contains temporary libtool files.
  18673. objdir=$objdir
  18674. # Used to examine libraries when file_magic_cmd begins with "file".
  18675. MAGIC_CMD=$MAGIC_CMD
  18676. # Must we lock files when doing compilation?
  18677. need_locks=$lt_need_locks
  18678. # Manifest tool.
  18679. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  18680. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  18681. DSYMUTIL=$lt_DSYMUTIL
  18682. # Tool to change global to local symbols on Mac OS X.
  18683. NMEDIT=$lt_NMEDIT
  18684. # Tool to manipulate fat objects and archives on Mac OS X.
  18685. LIPO=$lt_LIPO
  18686. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  18687. OTOOL=$lt_OTOOL
  18688. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  18689. OTOOL64=$lt_OTOOL64
  18690. # Old archive suffix (normally "a").
  18691. libext=$libext
  18692. # Shared library suffix (normally ".so").
  18693. shrext_cmds=$lt_shrext_cmds
  18694. # The commands to extract the exported symbol list from a shared archive.
  18695. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18696. # Variables whose values should be saved in libtool wrapper scripts and
  18697. # restored at link time.
  18698. variables_saved_for_relink=$lt_variables_saved_for_relink
  18699. # Do we need the "lib" prefix for modules?
  18700. need_lib_prefix=$need_lib_prefix
  18701. # Do we need a version for libraries?
  18702. need_version=$need_version
  18703. # Library versioning type.
  18704. version_type=$version_type
  18705. # Shared library runtime path variable.
  18706. runpath_var=$runpath_var
  18707. # Shared library path variable.
  18708. shlibpath_var=$shlibpath_var
  18709. # Is shlibpath searched before the hard-coded library search path?
  18710. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18711. # Format of library name prefix.
  18712. libname_spec=$lt_libname_spec
  18713. # List of archive names. First name is the real one, the rest are links.
  18714. # The last name is the one that the linker finds with -lNAME
  18715. library_names_spec=$lt_library_names_spec
  18716. # The coded name of the library, if different from the real name.
  18717. soname_spec=$lt_soname_spec
  18718. # Permission mode override for installation of shared libraries.
  18719. install_override_mode=$lt_install_override_mode
  18720. # Command to use after installation of a shared archive.
  18721. postinstall_cmds=$lt_postinstall_cmds
  18722. # Command to use after uninstallation of a shared archive.
  18723. postuninstall_cmds=$lt_postuninstall_cmds
  18724. # Commands used to finish a libtool library installation in a directory.
  18725. finish_cmds=$lt_finish_cmds
  18726. # As "finish_cmds", except a single script fragment to be evaled but
  18727. # not shown.
  18728. finish_eval=$lt_finish_eval
  18729. # Whether we should hardcode library paths into libraries.
  18730. hardcode_into_libs=$hardcode_into_libs
  18731. # Compile-time system search path for libraries.
  18732. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18733. # Detected run-time system search path for libraries.
  18734. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  18735. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  18736. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  18737. # Whether dlopen is supported.
  18738. dlopen_support=$enable_dlopen
  18739. # Whether dlopen of programs is supported.
  18740. dlopen_self=$enable_dlopen_self
  18741. # Whether dlopen of statically linked programs is supported.
  18742. dlopen_self_static=$enable_dlopen_self_static
  18743. # Commands to strip libraries.
  18744. old_striplib=$lt_old_striplib
  18745. striplib=$lt_striplib
  18746. # The linker used to build libraries.
  18747. LD=$lt_LD
  18748. # How to create reloadable object files.
  18749. reload_flag=$lt_reload_flag
  18750. reload_cmds=$lt_reload_cmds
  18751. # Commands used to build an old-style archive.
  18752. old_archive_cmds=$lt_old_archive_cmds
  18753. # A language specific compiler.
  18754. CC=$lt_compiler
  18755. # Is the compiler the GNU compiler?
  18756. with_gcc=$GCC
  18757. # Compiler flag to turn off builtin functions.
  18758. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  18759. # Additional compiler flags for building library objects.
  18760. pic_flag=$lt_lt_prog_compiler_pic
  18761. # How to pass a linker flag through the compiler.
  18762. wl=$lt_lt_prog_compiler_wl
  18763. # Compiler flag to prevent dynamic linking.
  18764. link_static_flag=$lt_lt_prog_compiler_static
  18765. # Does compiler simultaneously support -c and -o options?
  18766. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  18767. # Whether or not to add -lc for building shared libraries.
  18768. build_libtool_need_lc=$archive_cmds_need_lc
  18769. # Whether or not to disallow shared libs when runtime libs are static.
  18770. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  18771. # Compiler flag to allow reflexive dlopens.
  18772. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  18773. # Compiler flag to generate shared objects directly from archives.
  18774. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  18775. # Whether the compiler copes with passing no objects directly.
  18776. compiler_needs_object=$lt_compiler_needs_object
  18777. # Create an old-style archive from a shared archive.
  18778. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  18779. # Create a temporary old-style archive to link instead of a shared archive.
  18780. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  18781. # Commands used to build a shared archive.
  18782. archive_cmds=$lt_archive_cmds
  18783. archive_expsym_cmds=$lt_archive_expsym_cmds
  18784. # Commands used to build a loadable module if different from building
  18785. # a shared archive.
  18786. module_cmds=$lt_module_cmds
  18787. module_expsym_cmds=$lt_module_expsym_cmds
  18788. # Whether we are building with GNU ld or not.
  18789. with_gnu_ld=$lt_with_gnu_ld
  18790. # Flag that allows shared libraries with undefined symbols to be built.
  18791. allow_undefined_flag=$lt_allow_undefined_flag
  18792. # Flag that enforces no undefined symbols.
  18793. no_undefined_flag=$lt_no_undefined_flag
  18794. # Flag to hardcode \$libdir into a binary during linking.
  18795. # This must work even if \$libdir does not exist
  18796. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  18797. # Whether we need a single "-rpath" flag with a separated argument.
  18798. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  18799. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  18800. # DIR into the resulting binary.
  18801. hardcode_direct=$hardcode_direct
  18802. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  18803. # DIR into the resulting binary and the resulting library dependency is
  18804. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  18805. # library is relocated.
  18806. hardcode_direct_absolute=$hardcode_direct_absolute
  18807. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  18808. # into the resulting binary.
  18809. hardcode_minus_L=$hardcode_minus_L
  18810. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  18811. # into the resulting binary.
  18812. hardcode_shlibpath_var=$hardcode_shlibpath_var
  18813. # Set to "yes" if building a shared library automatically hardcodes DIR
  18814. # into the library and all subsequent libraries and executables linked
  18815. # against it.
  18816. hardcode_automatic=$hardcode_automatic
  18817. # Set to yes if linker adds runtime paths of dependent libraries
  18818. # to runtime path list.
  18819. inherit_rpath=$inherit_rpath
  18820. # Whether libtool must link a program against all its dependency libraries.
  18821. link_all_deplibs=$link_all_deplibs
  18822. # Set to "yes" if exported symbols are required.
  18823. always_export_symbols=$always_export_symbols
  18824. # The commands to list exported symbols.
  18825. export_symbols_cmds=$lt_export_symbols_cmds
  18826. # Symbols that should not be listed in the preloaded symbols.
  18827. exclude_expsyms=$lt_exclude_expsyms
  18828. # Symbols that must always be exported.
  18829. include_expsyms=$lt_include_expsyms
  18830. # Commands necessary for linking programs (against libraries) with templates.
  18831. prelink_cmds=$lt_prelink_cmds
  18832. # Commands necessary for finishing linking programs.
  18833. postlink_cmds=$lt_postlink_cmds
  18834. # Specify filename containing input files.
  18835. file_list_spec=$lt_file_list_spec
  18836. # How to hardcode a shared library path into an executable.
  18837. hardcode_action=$hardcode_action
  18838. # ### END LIBTOOL CONFIG
  18839. _LT_EOF
  18840. cat <<'_LT_EOF' >> "$cfgfile"
  18841. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  18842. # func_munge_path_list VARIABLE PATH
  18843. # -----------------------------------
  18844. # VARIABLE is name of variable containing _space_ separated list of
  18845. # directories to be munged by the contents of PATH, which is string
  18846. # having a format:
  18847. # "DIR[:DIR]:"
  18848. # string "DIR[ DIR]" will be prepended to VARIABLE
  18849. # ":DIR[:DIR]"
  18850. # string "DIR[ DIR]" will be appended to VARIABLE
  18851. # "DIRP[:DIRP]::[DIRA:]DIRA"
  18852. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  18853. # "DIRA[ DIRA]" will be appended to VARIABLE
  18854. # "DIR[:DIR]"
  18855. # VARIABLE will be replaced by "DIR[ DIR]"
  18856. func_munge_path_list ()
  18857. {
  18858. case x$2 in
  18859. x)
  18860. ;;
  18861. *:)
  18862. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  18863. ;;
  18864. x:*)
  18865. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  18866. ;;
  18867. *::*)
  18868. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  18869. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  18870. ;;
  18871. *)
  18872. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  18873. ;;
  18874. esac
  18875. }
  18876. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  18877. func_cc_basename ()
  18878. {
  18879. for cc_temp in $*""; do
  18880. case $cc_temp in
  18881. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  18882. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  18883. \-*) ;;
  18884. *) break;;
  18885. esac
  18886. done
  18887. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  18888. }
  18889. # ### END FUNCTIONS SHARED WITH CONFIGURE
  18890. _LT_EOF
  18891. case $host_os in
  18892. aix3*)
  18893. cat <<\_LT_EOF >> "$cfgfile"
  18894. # AIX sometimes has problems with the GCC collect2 program. For some
  18895. # reason, if we set the COLLECT_NAMES environment variable, the problems
  18896. # vanish in a puff of smoke.
  18897. if test set != "${COLLECT_NAMES+set}"; then
  18898. COLLECT_NAMES=
  18899. export COLLECT_NAMES
  18900. fi
  18901. _LT_EOF
  18902. ;;
  18903. esac
  18904. ltmain=$ac_aux_dir/ltmain.sh
  18905. # We use sed instead of cat because bash on DJGPP gets confused if
  18906. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  18907. # text mode, it properly converts lines to CR/LF. This bash problem
  18908. # is reportedly fixed, but why not run on old versions too?
  18909. sed '$q' "$ltmain" >> "$cfgfile" \
  18910. || (rm -f "$cfgfile"; exit 1)
  18911. mv -f "$cfgfile" "$ofile" ||
  18912. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  18913. chmod +x "$ofile"
  18914. ;;
  18915. esac
  18916. done # for ac_tag
  18917. as_fn_exit 0
  18918. _ACEOF
  18919. ac_clean_files=$ac_clean_files_save
  18920. test $ac_write_fail = 0 ||
  18921. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  18922. # configure is writing to config.log, and then calls config.status.
  18923. # config.status does its own redirection, appending to config.log.
  18924. # Unfortunately, on DOS this fails, as config.log is still kept open
  18925. # by configure, so config.status won't be able to write to it; its
  18926. # output is simply discarded. So we exec the FD to /dev/null,
  18927. # effectively closing config.log, so it can be properly (re)opened and
  18928. # appended to by config.status. When coming back to configure, we
  18929. # need to make the FD available again.
  18930. if test "$no_create" != yes; then
  18931. ac_cs_success=:
  18932. ac_config_status_args=
  18933. test "$silent" = yes &&
  18934. ac_config_status_args="$ac_config_status_args --quiet"
  18935. exec 5>/dev/null
  18936. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  18937. exec 5>>config.log
  18938. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  18939. # would make configure fail if this is the last instruction.
  18940. $ac_cs_success || as_fn_exit 1
  18941. fi
  18942. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  18943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  18944. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  18945. fi
  18946. echo "
  18947. $PACKAGE_NAME $PACKAGE_VERSION
  18948. Install path ............ $prefix
  18949. CPU Optimization ........ $cpu_type
  18950. Compiler Optimization ... $with_optimization
  18951. Gapless Support ......... $gapless
  18952. Debugging ............... $debugging
  18953. Seek table size ......... $seektable
  18954. FIFO support ............ $fifo
  18955. Buffer .................. $buffer
  18956. Network (http streams) .. $network
  18957. Network Sockets ......... $network_type
  18958. IPv6 (getaddrinfo) ...... $ipv6"
  18959. if test x"$LARGEFILE_BITS" = x; then
  18960. echo " File offsets ............ default"
  18961. else
  18962. echo " File offsets ............ $LARGEFILE_BITS"
  18963. echo " The lib will (try to) support default offset size, too."
  18964. fi
  18965. echo " LFS alias symbols ....... $lfs_alias ($LFS_ALIAS_BITS)"
  18966. echo " LFS alias type .......... $lfs_alias_type"
  18967. if test x"$use_yasm_for_avx" = xyes; then
  18968. echo " Use yasm (for AVX only) . enabled"
  18969. else
  18970. echo " Use yasm (for AVX only) . disabled"
  18971. fi
  18972. echo "
  18973. Core libmpg123 features:
  18974. Layer I ................. $layer1
  18975. Layer II ................ $layer2
  18976. Layer III ............... $layer3
  18977. NtoM resampling ......... $ntom
  18978. downsampled decoding .... $downsample
  18979. Feeder/buffered input ... $feeder
  18980. ID3v2 parsing ........... $id3v2
  18981. String API .............. $string
  18982. ICY parsing/conversion .. $icy
  18983. Error/warning messages .. $messages
  18984. Win32 Unicode File Open.. $win32_unicode
  18985. Feature Report Function.. $feature_report
  18986. Output formats (nofpu will disable all but 16 or 8 bit!):
  18987. 8 bit integer ........... $int8
  18988. 16 bit integer .......... $int16
  18989. 32/24 bit integer ....... $int32
  18990. real (32 bit float) ..... $real
  18991. Equalizer ............... $equalizer
  18992. Optimization detail:
  18993. Integer conversion ...... $integers
  18994. IEEE 754 hackery ........ $ieee
  18995. New/old WRITE_SAMPLE .... $newoldwritesample
  18996. new Huffman scheme ...... $newhuff
  18997. 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."
  18998. # just an empty line
  18999. echo
  19000. echo " Modules ................. $modules"
  19001. echo " Checked audio modules ... $check_modules
  19002. Detected audio support ..$output_modules
  19003. Default output module ... $default_output_module
  19004. "
  19005. if test x"$modules" = xdisabled; then
  19006. echo "The _single_ active output module is being statically linked in.
  19007. "
  19008. fi
  19009. if test x"$with_optimization" = x0; then
  19010. echo "No optimization flags chosen, make sure you have something basic in your CFLAGS at least...
  19011. "
  19012. fi
  19013. if test x"$cpu_type" = xi486; then
  19014. echo "WARNING: You selected the i486 decoder. This is not recommened for regular use."
  19015. echo "It was designed for actual i486 CPUs a long time ago. Generic C code is likely"
  19016. echo "to perform better nowadays. Also, the decoder misses features like volume"
  19017. echo "scaling and has clipping issues. Continue if you are into software archeology"
  19018. echo "only."
  19019. fi
  19020. echo
  19021. echo " CPPFLAGS='$CPPFLAGS'"
  19022. echo " CFLAGS='$CFLAGS'"
  19023. echo " LIBS='$LIBS'"
  19024. echo
  19025. echo "Next type 'make' and then 'make install'."