configure 596 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for mpg123 1.17.0.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and
  259. $0: [email protected] about your system,
  260. $0: including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='mpg123'
  542. PACKAGE_TARNAME='mpg123'
  543. PACKAGE_VERSION='1.17.0'
  544. PACKAGE_STRING='mpg123 1.17.0'
  545. PACKAGE_BUGREPORT='[email protected]'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/mpg123.c"
  548. ac_unique_file="doc"
  549. # Factoring default headers for most tests.
  550. ac_includes_default="\
  551. #include <stdio.h>
  552. #ifdef HAVE_SYS_TYPES_H
  553. # include <sys/types.h>
  554. #endif
  555. #ifdef HAVE_SYS_STAT_H
  556. # include <sys/stat.h>
  557. #endif
  558. #ifdef STDC_HEADERS
  559. # include <stdlib.h>
  560. # include <stddef.h>
  561. #else
  562. # ifdef HAVE_STDLIB_H
  563. # include <stdlib.h>
  564. # endif
  565. #endif
  566. #ifdef HAVE_STRING_H
  567. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  568. # include <memory.h>
  569. # endif
  570. # include <string.h>
  571. #endif
  572. #ifdef HAVE_STRINGS_H
  573. # include <strings.h>
  574. #endif
  575. #ifdef HAVE_INTTYPES_H
  576. # include <inttypes.h>
  577. #endif
  578. #ifdef HAVE_STDINT_H
  579. # include <stdint.h>
  580. #endif
  581. #ifdef HAVE_UNISTD_H
  582. # include <unistd.h>
  583. #endif"
  584. ac_header_list=
  585. ac_subst_vars='am__EXEEXT_FALSE
  586. am__EXEEXT_TRUE
  587. LTLIBOBJS
  588. LIBOBJS
  589. WIN32_CODES_FALSE
  590. WIN32_CODES_TRUE
  591. OUTPUT_LDFLAGS
  592. OUTPUT_LIBS
  593. OUTPUT_CFLAGS
  594. OUTPUT_MOD
  595. OUTPUT_OBJ
  596. HAVE_DUMMY_FALSE
  597. HAVE_DUMMY_TRUE
  598. DUMMY_CFLAGS
  599. DUMMY_LDFLAGS
  600. DUMMY_LIBS
  601. HAVE_OPENAL_FALSE
  602. HAVE_OPENAL_TRUE
  603. OPENAL_CFLAGS
  604. OPENAL_LDFLAGS
  605. OPENAL_LIBS
  606. HAVE_MINT_FALSE
  607. HAVE_MINT_TRUE
  608. MINT_CFLAGS
  609. MINT_LDFLAGS
  610. MINT_LIBS
  611. HAVE_SGI_FALSE
  612. HAVE_SGI_TRUE
  613. SGI_CFLAGS
  614. SGI_LDFLAGS
  615. SGI_LIBS
  616. HAVE_OS2_FALSE
  617. HAVE_OS2_TRUE
  618. OS2_CFLAGS
  619. OS2_LDFLAGS
  620. OS2_LIBS
  621. HAVE_HP_FALSE
  622. HAVE_HP_TRUE
  623. HP_CFLAGS
  624. HP_LDFLAGS
  625. HP_LIBS
  626. HAVE_ARTS_FALSE
  627. HAVE_ARTS_TRUE
  628. ARTS_CFLAGS
  629. ARTS_LDFLAGS
  630. ARTS_LIBS
  631. HAVE_ALIB_FALSE
  632. HAVE_ALIB_TRUE
  633. ALIB_CFLAGS
  634. ALIB_LDFLAGS
  635. ALIB_LIBS
  636. HAVE_AIX_FALSE
  637. HAVE_AIX_TRUE
  638. AIX_CFLAGS
  639. AIX_LDFLAGS
  640. AIX_LIBS
  641. HAVE_NAS_FALSE
  642. HAVE_NAS_TRUE
  643. NAS_CFLAGS
  644. NAS_LDFLAGS
  645. NAS_LIBS
  646. HAVE_SDL_FALSE
  647. HAVE_SDL_TRUE
  648. SDL_LDFLAGS
  649. HAVE_PULSE_FALSE
  650. HAVE_PULSE_TRUE
  651. PULSE_LDFLAGS
  652. HAVE_PORTAUDIO_FALSE
  653. HAVE_PORTAUDIO_TRUE
  654. PORTAUDIO_CFLAGS
  655. PORTAUDIO_LDFLAGS
  656. PORTAUDIO_LIBS
  657. HAVE_JACK_FALSE
  658. HAVE_JACK_TRUE
  659. JACK_LDFLAGS
  660. HAVE_ESD_FALSE
  661. HAVE_ESD_TRUE
  662. ESD_LDFLAGS
  663. HAVE_WIN32_WASAPI_FALSE
  664. HAVE_WIN32_WASAPI_TRUE
  665. WIN32_WASAPI_CFLAGS
  666. WIN32_WASAPI_LDFLAGS
  667. WIN32_WASAPI_LIBS
  668. HAVE_WIN32_FALSE
  669. HAVE_WIN32_TRUE
  670. WIN32_CFLAGS
  671. WIN32_LDFLAGS
  672. WIN32_LIBS
  673. HAVE_SUN_FALSE
  674. HAVE_SUN_TRUE
  675. SUN_CFLAGS
  676. SUN_LDFLAGS
  677. SUN_LIBS
  678. HAVE_SNDIO_FALSE
  679. HAVE_SNDIO_TRUE
  680. SNDIO_CFLAGS
  681. SNDIO_LDFLAGS
  682. SNDIO_LIBS
  683. HAVE_COREAUDIO_FALSE
  684. HAVE_COREAUDIO_TRUE
  685. COREAUDIO_CFLAGS
  686. COREAUDIO_LDFLAGS
  687. COREAUDIO_LIBS
  688. HAVE_OSS_FALSE
  689. HAVE_OSS_TRUE
  690. OSS_CFLAGS
  691. OSS_LDFLAGS
  692. OSS_LIBS
  693. HAVE_QSA_FALSE
  694. HAVE_QSA_TRUE
  695. QSA_CFLAGS
  696. QSA_LDFLAGS
  697. QSA_LIBS
  698. HAVE_ALSA_FALSE
  699. HAVE_ALSA_TRUE
  700. ALSA_CFLAGS
  701. ALSA_LDFLAGS
  702. ALSA_LIBS
  703. HAVE_TINYALSA_FALSE
  704. HAVE_TINYALSA_TRUE
  705. TINYALSA_CFLAGS
  706. TINYALSA_LDFLAGS
  707. TINYALSA_LIBS
  708. SDL_LIBS
  709. SDL_CFLAGS
  710. ESD_LIBS
  711. ESD_CFLAGS
  712. PULSE_LIBS
  713. PULSE_CFLAGS
  714. JACK_LIBS
  715. JACK_CFLAGS
  716. PKG_CONFIG
  717. DECODER_LOBJ
  718. DECODER_OBJ
  719. YASM_FORMAT
  720. USE_YASM_FOR_AVX_FALSE
  721. USE_YASM_FOR_AVX_TRUE
  722. INCLUDE_SYS_TYPE_H
  723. INCLUDE_STDLIB_H
  724. INCLUDE_STDIO_H
  725. LFS_LOBJ
  726. YASMFLAGS
  727. YASM
  728. EXEC_LT_LDFLAGS
  729. LT_LDFLAGS
  730. MODULE_OBJ
  731. HAVE_MODULES_FALSE
  732. HAVE_MODULES_TRUE
  733. OTOOL64
  734. OTOOL
  735. LIPO
  736. NMEDIT
  737. DSYMUTIL
  738. MANIFEST_TOOL
  739. RANLIB
  740. ac_ct_AR
  741. AR
  742. LN_S
  743. NM
  744. ac_ct_DUMPBIN
  745. DUMPBIN
  746. LD
  747. FGREP
  748. SED
  749. LIBTOOL
  750. OBJDUMP
  751. DLLTOOL
  752. AS
  753. EGREP
  754. GREP
  755. CPP
  756. am__fastdepCCAS_FALSE
  757. am__fastdepCCAS_TRUE
  758. CCASDEPMODE
  759. CCASFLAGS
  760. CCAS
  761. am__fastdepCC_FALSE
  762. am__fastdepCC_TRUE
  763. CCDEPMODE
  764. am__nodep
  765. AMDEPBACKSLASH
  766. AMDEP_FALSE
  767. AMDEP_TRUE
  768. am__quote
  769. am__include
  770. DEPDIR
  771. OBJEXT
  772. EXEEXT
  773. ac_ct_CC
  774. CPPFLAGS
  775. LDFLAGS
  776. CFLAGS
  777. CC
  778. AM_BACKSLASH
  779. AM_DEFAULT_VERBOSITY
  780. AM_DEFAULT_V
  781. AM_V
  782. am__untar
  783. am__tar
  784. AMTAR
  785. am__leading_dot
  786. SET_MAKE
  787. AWK
  788. mkdir_p
  789. MKDIR_P
  790. INSTALL_STRIP_PROGRAM
  791. STRIP
  792. install_sh
  793. MAKEINFO
  794. AUTOHEADER
  795. AUTOMAKE
  796. AUTOCONF
  797. ACLOCAL
  798. VERSION
  799. PACKAGE
  800. CYGPATH_W
  801. am__isrc
  802. INSTALL_DATA
  803. INSTALL_SCRIPT
  804. INSTALL_PROGRAM
  805. host_os
  806. host_vendor
  807. host_cpu
  808. host
  809. build_os
  810. build_vendor
  811. build_cpu
  812. build
  813. API_VERSION
  814. LIBMPG123_VERSION
  815. target_alias
  816. host_alias
  817. build_alias
  818. LIBS
  819. ECHO_T
  820. ECHO_N
  821. ECHO_C
  822. DEFS
  823. mandir
  824. localedir
  825. libdir
  826. psdir
  827. pdfdir
  828. dvidir
  829. htmldir
  830. infodir
  831. docdir
  832. oldincludedir
  833. includedir
  834. localstatedir
  835. sharedstatedir
  836. sysconfdir
  837. datadir
  838. datarootdir
  839. libexecdir
  840. sbindir
  841. bindir
  842. program_transform_name
  843. prefix
  844. exec_prefix
  845. PACKAGE_URL
  846. PACKAGE_BUGREPORT
  847. PACKAGE_STRING
  848. PACKAGE_VERSION
  849. PACKAGE_TARNAME
  850. PACKAGE_NAME
  851. PATH_SEPARATOR
  852. SHELL'
  853. ac_subst_files=''
  854. ac_user_opts='
  855. enable_option_checking
  856. enable_silent_rules
  857. enable_dependency_tracking
  858. enable_modules
  859. enable_static
  860. enable_shared
  861. with_pic
  862. enable_fast_install
  863. with_gnu_ld
  864. with_sysroot
  865. enable_libtool_lock
  866. enable_debug
  867. enable_nagging
  868. enable_gapless
  869. enable_fifo
  870. enable_ipv6
  871. enable_network
  872. enable_id3v2
  873. enable_string
  874. enable_icy
  875. enable_ntom
  876. enable_downsample
  877. enable_feeder
  878. enable_messages
  879. enable_new_huffman
  880. enable_int_quality
  881. enable_16bit
  882. enable_8bit
  883. enable_32bit
  884. enable_real
  885. with_cpu
  886. enable_buffer
  887. enable_newoldwritesample
  888. enable_layer1
  889. enable_layer2
  890. enable_layer3
  891. with_audio
  892. with_default_audio
  893. with_optimization
  894. with_seektable
  895. with_module_suffix
  896. enable_largefile
  897. enable_lfs_alias
  898. enable_feature_report
  899. '
  900. ac_precious_vars='build_alias
  901. host_alias
  902. target_alias
  903. CC
  904. CFLAGS
  905. LDFLAGS
  906. LIBS
  907. CPPFLAGS
  908. CCAS
  909. CCASFLAGS
  910. CPP
  911. PKG_CONFIG
  912. JACK_CFLAGS
  913. JACK_LIBS
  914. PULSE_CFLAGS
  915. PULSE_LIBS
  916. ESD_CFLAGS
  917. ESD_LIBS
  918. SDL_CFLAGS
  919. SDL_LIBS'
  920. # Initialize some variables set by options.
  921. ac_init_help=
  922. ac_init_version=false
  923. ac_unrecognized_opts=
  924. ac_unrecognized_sep=
  925. # The variables have the same names as the options, with
  926. # dashes changed to underlines.
  927. cache_file=/dev/null
  928. exec_prefix=NONE
  929. no_create=
  930. no_recursion=
  931. prefix=NONE
  932. program_prefix=NONE
  933. program_suffix=NONE
  934. program_transform_name=s,x,x,
  935. silent=
  936. site=
  937. srcdir=
  938. verbose=
  939. x_includes=NONE
  940. x_libraries=NONE
  941. # Installation directory options.
  942. # These are left unexpanded so users can "make install exec_prefix=/foo"
  943. # and all the variables that are supposed to be based on exec_prefix
  944. # by default will actually change.
  945. # Use braces instead of parens because sh, perl, etc. also accept them.
  946. # (The list follows the same order as the GNU Coding Standards.)
  947. bindir='${exec_prefix}/bin'
  948. sbindir='${exec_prefix}/sbin'
  949. libexecdir='${exec_prefix}/libexec'
  950. datarootdir='${prefix}/share'
  951. datadir='${datarootdir}'
  952. sysconfdir='${prefix}/etc'
  953. sharedstatedir='${prefix}/com'
  954. localstatedir='${prefix}/var'
  955. includedir='${prefix}/include'
  956. oldincludedir='/usr/include'
  957. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  958. infodir='${datarootdir}/info'
  959. htmldir='${docdir}'
  960. dvidir='${docdir}'
  961. pdfdir='${docdir}'
  962. psdir='${docdir}'
  963. libdir='${exec_prefix}/lib'
  964. localedir='${datarootdir}/locale'
  965. mandir='${datarootdir}/man'
  966. ac_prev=
  967. ac_dashdash=
  968. for ac_option
  969. do
  970. # If the previous option needs an argument, assign it.
  971. if test -n "$ac_prev"; then
  972. eval $ac_prev=\$ac_option
  973. ac_prev=
  974. continue
  975. fi
  976. case $ac_option in
  977. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  978. *=) ac_optarg= ;;
  979. *) ac_optarg=yes ;;
  980. esac
  981. # Accept the important Cygnus configure options, so we can diagnose typos.
  982. case $ac_dashdash$ac_option in
  983. --)
  984. ac_dashdash=yes ;;
  985. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  986. ac_prev=bindir ;;
  987. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  988. bindir=$ac_optarg ;;
  989. -build | --build | --buil | --bui | --bu)
  990. ac_prev=build_alias ;;
  991. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  992. build_alias=$ac_optarg ;;
  993. -cache-file | --cache-file | --cache-fil | --cache-fi \
  994. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  995. ac_prev=cache_file ;;
  996. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  997. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  998. cache_file=$ac_optarg ;;
  999. --config-cache | -C)
  1000. cache_file=config.cache ;;
  1001. -datadir | --datadir | --datadi | --datad)
  1002. ac_prev=datadir ;;
  1003. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1004. datadir=$ac_optarg ;;
  1005. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1006. | --dataroo | --dataro | --datar)
  1007. ac_prev=datarootdir ;;
  1008. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1009. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1010. datarootdir=$ac_optarg ;;
  1011. -disable-* | --disable-*)
  1012. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1013. # Reject names that are not valid shell variable names.
  1014. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1015. as_fn_error $? "invalid feature name: $ac_useropt"
  1016. ac_useropt_orig=$ac_useropt
  1017. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1018. case $ac_user_opts in
  1019. *"
  1020. "enable_$ac_useropt"
  1021. "*) ;;
  1022. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1023. ac_unrecognized_sep=', ';;
  1024. esac
  1025. eval enable_$ac_useropt=no ;;
  1026. -docdir | --docdir | --docdi | --doc | --do)
  1027. ac_prev=docdir ;;
  1028. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1029. docdir=$ac_optarg ;;
  1030. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1031. ac_prev=dvidir ;;
  1032. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1033. dvidir=$ac_optarg ;;
  1034. -enable-* | --enable-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error $? "invalid feature name: $ac_useropt"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "enable_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval enable_$ac_useropt=\$ac_optarg ;;
  1049. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1050. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1051. | --exec | --exe | --ex)
  1052. ac_prev=exec_prefix ;;
  1053. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1054. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1055. | --exec=* | --exe=* | --ex=*)
  1056. exec_prefix=$ac_optarg ;;
  1057. -gas | --gas | --ga | --g)
  1058. # Obsolete; use --with-gas.
  1059. with_gas=yes ;;
  1060. -help | --help | --hel | --he | -h)
  1061. ac_init_help=long ;;
  1062. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1063. ac_init_help=recursive ;;
  1064. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1065. ac_init_help=short ;;
  1066. -host | --host | --hos | --ho)
  1067. ac_prev=host_alias ;;
  1068. -host=* | --host=* | --hos=* | --ho=*)
  1069. host_alias=$ac_optarg ;;
  1070. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1071. ac_prev=htmldir ;;
  1072. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1073. | --ht=*)
  1074. htmldir=$ac_optarg ;;
  1075. -includedir | --includedir | --includedi | --included | --include \
  1076. | --includ | --inclu | --incl | --inc)
  1077. ac_prev=includedir ;;
  1078. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1079. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1080. includedir=$ac_optarg ;;
  1081. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1082. ac_prev=infodir ;;
  1083. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1084. infodir=$ac_optarg ;;
  1085. -libdir | --libdir | --libdi | --libd)
  1086. ac_prev=libdir ;;
  1087. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1088. libdir=$ac_optarg ;;
  1089. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1090. | --libexe | --libex | --libe)
  1091. ac_prev=libexecdir ;;
  1092. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1093. | --libexe=* | --libex=* | --libe=*)
  1094. libexecdir=$ac_optarg ;;
  1095. -localedir | --localedir | --localedi | --localed | --locale)
  1096. ac_prev=localedir ;;
  1097. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1098. localedir=$ac_optarg ;;
  1099. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1100. | --localstate | --localstat | --localsta | --localst | --locals)
  1101. ac_prev=localstatedir ;;
  1102. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1103. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1104. localstatedir=$ac_optarg ;;
  1105. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1106. ac_prev=mandir ;;
  1107. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1108. mandir=$ac_optarg ;;
  1109. -nfp | --nfp | --nf)
  1110. # Obsolete; use --without-fp.
  1111. with_fp=no ;;
  1112. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1113. | --no-cr | --no-c | -n)
  1114. no_create=yes ;;
  1115. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1116. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1117. no_recursion=yes ;;
  1118. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1119. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1120. | --oldin | --oldi | --old | --ol | --o)
  1121. ac_prev=oldincludedir ;;
  1122. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1123. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1124. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1125. oldincludedir=$ac_optarg ;;
  1126. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1127. ac_prev=prefix ;;
  1128. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1129. prefix=$ac_optarg ;;
  1130. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1131. | --program-pre | --program-pr | --program-p)
  1132. ac_prev=program_prefix ;;
  1133. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1134. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1135. program_prefix=$ac_optarg ;;
  1136. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1137. | --program-suf | --program-su | --program-s)
  1138. ac_prev=program_suffix ;;
  1139. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1140. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1141. program_suffix=$ac_optarg ;;
  1142. -program-transform-name | --program-transform-name \
  1143. | --program-transform-nam | --program-transform-na \
  1144. | --program-transform-n | --program-transform- \
  1145. | --program-transform | --program-transfor \
  1146. | --program-transfo | --program-transf \
  1147. | --program-trans | --program-tran \
  1148. | --progr-tra | --program-tr | --program-t)
  1149. ac_prev=program_transform_name ;;
  1150. -program-transform-name=* | --program-transform-name=* \
  1151. | --program-transform-nam=* | --program-transform-na=* \
  1152. | --program-transform-n=* | --program-transform-=* \
  1153. | --program-transform=* | --program-transfor=* \
  1154. | --program-transfo=* | --program-transf=* \
  1155. | --program-trans=* | --program-tran=* \
  1156. | --progr-tra=* | --program-tr=* | --program-t=*)
  1157. program_transform_name=$ac_optarg ;;
  1158. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1159. ac_prev=pdfdir ;;
  1160. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1161. pdfdir=$ac_optarg ;;
  1162. -psdir | --psdir | --psdi | --psd | --ps)
  1163. ac_prev=psdir ;;
  1164. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1165. psdir=$ac_optarg ;;
  1166. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1167. | -silent | --silent | --silen | --sile | --sil)
  1168. silent=yes ;;
  1169. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1170. ac_prev=sbindir ;;
  1171. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1172. | --sbi=* | --sb=*)
  1173. sbindir=$ac_optarg ;;
  1174. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1175. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1176. | --sharedst | --shareds | --shared | --share | --shar \
  1177. | --sha | --sh)
  1178. ac_prev=sharedstatedir ;;
  1179. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1180. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1181. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1182. | --sha=* | --sh=*)
  1183. sharedstatedir=$ac_optarg ;;
  1184. -site | --site | --sit)
  1185. ac_prev=site ;;
  1186. -site=* | --site=* | --sit=*)
  1187. site=$ac_optarg ;;
  1188. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1189. ac_prev=srcdir ;;
  1190. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1191. srcdir=$ac_optarg ;;
  1192. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1193. | --syscon | --sysco | --sysc | --sys | --sy)
  1194. ac_prev=sysconfdir ;;
  1195. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1196. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1197. sysconfdir=$ac_optarg ;;
  1198. -target | --target | --targe | --targ | --tar | --ta | --t)
  1199. ac_prev=target_alias ;;
  1200. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1201. target_alias=$ac_optarg ;;
  1202. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1203. verbose=yes ;;
  1204. -version | --version | --versio | --versi | --vers | -V)
  1205. ac_init_version=: ;;
  1206. -with-* | --with-*)
  1207. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1208. # Reject names that are not valid shell variable names.
  1209. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1210. as_fn_error $? "invalid package name: $ac_useropt"
  1211. ac_useropt_orig=$ac_useropt
  1212. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1213. case $ac_user_opts in
  1214. *"
  1215. "with_$ac_useropt"
  1216. "*) ;;
  1217. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1218. ac_unrecognized_sep=', ';;
  1219. esac
  1220. eval with_$ac_useropt=\$ac_optarg ;;
  1221. -without-* | --without-*)
  1222. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1223. # Reject names that are not valid shell variable names.
  1224. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1225. as_fn_error $? "invalid package name: $ac_useropt"
  1226. ac_useropt_orig=$ac_useropt
  1227. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1228. case $ac_user_opts in
  1229. *"
  1230. "with_$ac_useropt"
  1231. "*) ;;
  1232. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1233. ac_unrecognized_sep=', ';;
  1234. esac
  1235. eval with_$ac_useropt=no ;;
  1236. --x)
  1237. # Obsolete; use --with-x.
  1238. with_x=yes ;;
  1239. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1240. | --x-incl | --x-inc | --x-in | --x-i)
  1241. ac_prev=x_includes ;;
  1242. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1243. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1244. x_includes=$ac_optarg ;;
  1245. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1246. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1247. ac_prev=x_libraries ;;
  1248. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1249. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1250. x_libraries=$ac_optarg ;;
  1251. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1252. Try \`$0 --help' for more information"
  1253. ;;
  1254. *=*)
  1255. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1256. # Reject names that are not valid shell variable names.
  1257. case $ac_envvar in #(
  1258. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1259. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1260. esac
  1261. eval $ac_envvar=\$ac_optarg
  1262. export $ac_envvar ;;
  1263. *)
  1264. # FIXME: should be removed in autoconf 3.0.
  1265. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1266. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1267. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1268. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1269. ;;
  1270. esac
  1271. done
  1272. if test -n "$ac_prev"; then
  1273. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1274. as_fn_error $? "missing argument to $ac_option"
  1275. fi
  1276. if test -n "$ac_unrecognized_opts"; then
  1277. case $enable_option_checking in
  1278. no) ;;
  1279. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1280. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1281. esac
  1282. fi
  1283. # Check all directory arguments for consistency.
  1284. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1285. datadir sysconfdir sharedstatedir localstatedir includedir \
  1286. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1287. libdir localedir mandir
  1288. do
  1289. eval ac_val=\$$ac_var
  1290. # Remove trailing slashes.
  1291. case $ac_val in
  1292. */ )
  1293. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1294. eval $ac_var=\$ac_val;;
  1295. esac
  1296. # Be sure to have absolute directory names.
  1297. case $ac_val in
  1298. [\\/$]* | ?:[\\/]* ) continue;;
  1299. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1300. esac
  1301. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1302. done
  1303. # There might be people who depend on the old broken behavior: `$host'
  1304. # used to hold the argument of --host etc.
  1305. # FIXME: To remove some day.
  1306. build=$build_alias
  1307. host=$host_alias
  1308. target=$target_alias
  1309. # FIXME: To remove some day.
  1310. if test "x$host_alias" != x; then
  1311. if test "x$build_alias" = x; then
  1312. cross_compiling=maybe
  1313. elif test "x$build_alias" != "x$host_alias"; then
  1314. cross_compiling=yes
  1315. fi
  1316. fi
  1317. ac_tool_prefix=
  1318. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1319. test "$silent" = yes && exec 6>/dev/null
  1320. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1321. ac_ls_di=`ls -di .` &&
  1322. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1323. as_fn_error $? "working directory cannot be determined"
  1324. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1325. as_fn_error $? "pwd does not report name of working directory"
  1326. # Find the source files, if location was not specified.
  1327. if test -z "$srcdir"; then
  1328. ac_srcdir_defaulted=yes
  1329. # Try the directory containing this script, then the parent directory.
  1330. ac_confdir=`$as_dirname -- "$as_myself" ||
  1331. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1332. X"$as_myself" : 'X\(//\)[^/]' \| \
  1333. X"$as_myself" : 'X\(//\)$' \| \
  1334. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1335. $as_echo X"$as_myself" |
  1336. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1337. s//\1/
  1338. q
  1339. }
  1340. /^X\(\/\/\)[^/].*/{
  1341. s//\1/
  1342. q
  1343. }
  1344. /^X\(\/\/\)$/{
  1345. s//\1/
  1346. q
  1347. }
  1348. /^X\(\/\).*/{
  1349. s//\1/
  1350. q
  1351. }
  1352. s/.*/./; q'`
  1353. srcdir=$ac_confdir
  1354. if test ! -r "$srcdir/$ac_unique_file"; then
  1355. srcdir=..
  1356. fi
  1357. else
  1358. ac_srcdir_defaulted=no
  1359. fi
  1360. if test ! -r "$srcdir/$ac_unique_file"; then
  1361. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1362. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1363. fi
  1364. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1365. ac_abs_confdir=`(
  1366. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1367. pwd)`
  1368. # When building in place, set srcdir=.
  1369. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1370. srcdir=.
  1371. fi
  1372. # Remove unnecessary trailing slashes from srcdir.
  1373. # Double slashes in file names in object file debugging info
  1374. # mess up M-x gdb in Emacs.
  1375. case $srcdir in
  1376. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1377. esac
  1378. for ac_var in $ac_precious_vars; do
  1379. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1380. eval ac_env_${ac_var}_value=\$${ac_var}
  1381. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1382. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1383. done
  1384. #
  1385. # Report the --help message.
  1386. #
  1387. if test "$ac_init_help" = "long"; then
  1388. # Omit some internal or obsolete options to make the list less imposing.
  1389. # This message is too long to be a string in the A/UX 3.1 sh.
  1390. cat <<_ACEOF
  1391. \`configure' configures mpg123 1.17.0 to adapt to many kinds of systems.
  1392. Usage: $0 [OPTION]... [VAR=VALUE]...
  1393. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1394. VAR=VALUE. See below for descriptions of some of the useful variables.
  1395. Defaults for the options are specified in brackets.
  1396. Configuration:
  1397. -h, --help display this help and exit
  1398. --help=short display options specific to this package
  1399. --help=recursive display the short help of all the included packages
  1400. -V, --version display version information and exit
  1401. -q, --quiet, --silent do not print \`checking ...' messages
  1402. --cache-file=FILE cache test results in FILE [disabled]
  1403. -C, --config-cache alias for \`--cache-file=config.cache'
  1404. -n, --no-create do not create output files
  1405. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1406. Installation directories:
  1407. --prefix=PREFIX install architecture-independent files in PREFIX
  1408. [$ac_default_prefix]
  1409. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1410. [PREFIX]
  1411. By default, \`make install' will install all the files in
  1412. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1413. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1414. for instance \`--prefix=\$HOME'.
  1415. For better control, use the options below.
  1416. Fine tuning of the installation directories:
  1417. --bindir=DIR user executables [EPREFIX/bin]
  1418. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1419. --libexecdir=DIR program executables [EPREFIX/libexec]
  1420. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1421. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1422. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1423. --libdir=DIR object code libraries [EPREFIX/lib]
  1424. --includedir=DIR C header files [PREFIX/include]
  1425. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1426. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1427. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1428. --infodir=DIR info documentation [DATAROOTDIR/info]
  1429. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1430. --mandir=DIR man documentation [DATAROOTDIR/man]
  1431. --docdir=DIR documentation root [DATAROOTDIR/doc/mpg123]
  1432. --htmldir=DIR html documentation [DOCDIR]
  1433. --dvidir=DIR dvi documentation [DOCDIR]
  1434. --pdfdir=DIR pdf documentation [DOCDIR]
  1435. --psdir=DIR ps documentation [DOCDIR]
  1436. _ACEOF
  1437. cat <<\_ACEOF
  1438. Program names:
  1439. --program-prefix=PREFIX prepend PREFIX to installed program names
  1440. --program-suffix=SUFFIX append SUFFIX to installed program names
  1441. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1442. System types:
  1443. --build=BUILD configure for building on BUILD [guessed]
  1444. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1445. _ACEOF
  1446. fi
  1447. if test -n "$ac_init_help"; then
  1448. case $ac_init_help in
  1449. short | recursive ) echo "Configuration of mpg123 1.17.0:";;
  1450. esac
  1451. cat <<\_ACEOF
  1452. Optional Features:
  1453. --disable-option-checking ignore unrecognized --enable/--with options
  1454. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1455. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1456. --enable-silent-rules less verbose build output (undo: "make V=1")
  1457. --disable-silent-rules verbose build output (undo: "make V=0")
  1458. --enable-dependency-tracking
  1459. do not reject slow dependency extractors
  1460. --disable-dependency-tracking
  1461. speeds up one-time build
  1462. --enable-modules=no/yes dynamically loadable output modules
  1463. --enable-static[=PKGS] build static libraries [default=no]
  1464. --enable-shared[=PKGS] build shared libraries [default=yes]
  1465. --enable-fast-install[=PKGS]
  1466. optimize for fast installation [default=yes]
  1467. --disable-libtool-lock avoid locking (might break parallel builds)
  1468. --enable-debug=no/yes turn on debugging
  1469. --enable-nagging=no/yes turn on GCC's pedantic nagging with error on warnings, also enables debugging
  1470. --enable-gapless=no/yes turn on gapless (enabled per default)
  1471. --enable-fifo=no/yes FIFO support for control interface (auto-enabled on linux)
  1472. --enable-ipv6=no/yes IPv6 support (actually any protocol your libc does with getaddrinfo)
  1473. --enable-network=no/yes network support (http streams / webradio)
  1474. --disable-id3v2=no/yes no ID3v2 parsing
  1475. --disable-string=no/yes no string API (this will disable ID3v2; main mpg123 won't build anymore)
  1476. --disable-icy=no/yes no ICY metainfo parsing/conversion (main mpg123 won't build!)
  1477. --disable-ntom=no/yes no flexible resampling
  1478. --disable-downsample=no/yes no downsampled decoding
  1479. --disable-feeder=no/yes no feeder decoding, no buffered readers
  1480. --disable-messages=no/yes no error/warning messages on the console
  1481. --enable-new-huffman=yes/no use new huffman decoding scheme by Taihei (faster on modern CPUs at least, so on by default)
  1482. --enable-int-quality=yes/no use rounding instead of fast truncation for integer output, where possible
  1483. --disable-16bit=no/yes no 16 bit integer output
  1484. --disable-8bit=no/yes no 8 bit integer output
  1485. --disable-32bit=no/yes no 32 bit integer output (also 24 bit)
  1486. --disable-real=no/yes no real (floating point) output
  1487. --enable-buffer=yes/no disable audio buffer code (default uses system whitelist... proper checks later)
  1488. --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)
  1489. --disable-layer1=no/yes no layer I decoding
  1490. --disable-layer2=no/yes no layer II decoding
  1491. --disable-layer3=no/yes no layer III decoding
  1492. --disable-largefile omit support for large files
  1493. --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!)
  1494. --disable-feature_report Disable feature report function
  1495. Optional Packages:
  1496. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1497. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1498. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1499. both]
  1500. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1501. --with-sysroot=DIR Search for dependent libraries within DIR
  1502. (or the compiler's sysroot if not specified).
  1503. --with-cpu=generic_fpu Use generic processor code with floating point arithmetic
  1504. --with-cpu=generic_float Plain alias to generic_fpu now... float output is a normal runtime option!
  1505. --with-cpu=generic_nofpu Use generic processor code with fixed point arithmetic (p.ex. ARM, experimental)
  1506. --with-cpu=generic_dither Use generic processor code with floating point arithmetic and dithering for 1to1 16bit decoding.
  1507. --with-cpu=i386_fpu Use code optimized for i386 processors with floating point arithmetic
  1508. --with-cpu=i386_nofpu Use code optimized for i386 processors with fixed point arithmetic (experimental)
  1509. --with-cpu=i486 Use code optimized for i486 processors (only usable alone!)
  1510. --with-cpu=i586 Use code optimized for i586 processors
  1511. --with-cpu=i586_dither Use code optimized for i586 processors with dithering (noise shaping), adds 256K to binary size
  1512. --with-cpu=3dnow Use code optimized for 3DNow processors
  1513. --with-cpu=3dnow_vintage Use code optimized for older 3DNow processors (K6 family)
  1514. --with-cpu=3dnowext Use code optimized for 3DNowExt processors (K6-3+, Athlon)
  1515. --with-cpu=3dnowext_alone Really only 3DNowExt decoder, without 3DNow fallback for flexible rate
  1516. --with-cpu=3dnow_vintage Use code optimized for older extended 3DNow processors (like K6-III+)
  1517. --with-cpu=mmx Use code optimized for MMX processors
  1518. --with-cpu=mmx_alone Really only MMX decoder, without i586 fallback for flexible rate
  1519. --with-cpu=sse Use code optimized for SSE processors
  1520. --with-cpu=sse_vintage Use code optimized for older SSE processors (plain C DCT36)
  1521. --with-cpu=sse_alone Really only SSE decoder, without i586 fallback for flexible rate
  1522. --with-cpu=avx Use code optimized for x86-64 with AVX processors
  1523. --with-cpu=x86 Pack all x86 opts into one binary (excluding i486, including dither)
  1524. --with-cpu=x86-64 Use code optimized for x86-64 processors (AMD64 and Intel64, including AVX and dithered generic)
  1525. --with-cpu=altivec Use code optimized for Altivec processors (PowerPC G4 and G5)
  1526. --with-cpu=ppc_nofpu Use code optimized for PowerPC processors with fixed point arithmetic (experimental)
  1527. --with-cpu=neon Use code optimized for ARM NEON SIMD engine (Cortex-A series)
  1528. --with-cpu=arm_nofpu Use code optimized for ARM processors with fixed point arithmetic (experimental)
  1529. --with-audio=<list of modules> Select a list (or only one) of audio output modules (comma or space separated list).
  1530. --with-default-audio=aix Use AIX as default audio output sub-system
  1531. --with-default-audio=alib Use Alib as default audio output sub-system (for HPUX)
  1532. --with-default-audio=alsa Use ALSA as default audio output sub-system (libasound)
  1533. --with-default-audio=tinyalsa Use ALSA as default audio output sub-system (tinyalsa)
  1534. --with-default-audio=arts Use aRts as default audio output sub-system (KDE sound server)
  1535. --with-default-audio=dummy Use dummy as default audio (when no sound card is available)
  1536. --with-default-audio=esd Use ESoundD as default audio output sub-system
  1537. --with-default-audio=hp Use HP as default audio output sub-system
  1538. --with-default-audio=jack Use JACK as default low-latency audio server
  1539. --with-default-audio=coreaudio Use Mac OS X as default audio output sub-system (CoreAudio)
  1540. --with-default-audio=mint Use MinT as default audio output sub-system (Atari)
  1541. --with-default-audio=nas Use NAS as default audio output (Network Audio System)
  1542. --with-default-audio=os2 Use OS2 as default audio output sub-system
  1543. --with-default-audio=oss Use OSS as default audio output sub-system (/dev/dsp)
  1544. --with-default-audio=portaudio Use PortAudio as default audio output sub-system
  1545. --with-default-audio=pulse Use Pulse audio server as default audio output sub-system
  1546. --with-default-audio=qsa Use QSA as default audio output sub-system
  1547. --with-default-audio=sdl Use SDL as default audio output sub-system (Simple DirectMedia Layer)
  1548. --with-default-audio=sgi Use SGI as default audio output sub-system (IRIX)
  1549. --with-default-audio=sndio Use OpenBSD's sndio as default audio output sub-system
  1550. --with-default-audio=sun Use Sun as default audio output sub-system (/dev/audio)
  1551. --with-default-audio=win32 Use Win32 audio as default audio output sub-system
  1552. --with-default-audio=win32_wasapi Use Win32 wasapi audio as default audio output sub-system
  1553. --with-optimization=0 No Optimization
  1554. --with-optimization=1 Limited Optimization (-O) (for gcc)
  1555. --with-optimization=2 Default Optimization (-O2 ...) (for gcc)
  1556. --with-optimization=3 More Optimize than default (-O3 ...) (for gcc)
  1557. --with-optimization=4 Optimize yet more (-O4 ...) (for gcc)
  1558. --with-seektable=<size> choose size of seek index table (0 disables it), default 1000
  1559. --with-module-suffix=.la (default) Use libtool's .la files for loading modules.
  1560. --with-module-suffix=.so|.dll|... Specify the native module file suffix to bypass .la files.
  1561. Some influential environment variables:
  1562. CC C compiler command
  1563. CFLAGS C compiler flags
  1564. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1565. nonstandard directory <lib dir>
  1566. LIBS libraries to pass to the linker, e.g. -l<library>
  1567. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1568. you have headers in a nonstandard directory <include dir>
  1569. CCAS assembler compiler command (defaults to CC)
  1570. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1571. CPP C preprocessor
  1572. PKG_CONFIG path to pkg-config utility
  1573. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1574. JACK_LIBS linker flags for JACK, overriding pkg-config
  1575. PULSE_CFLAGS
  1576. C compiler flags for PULSE, overriding pkg-config
  1577. PULSE_LIBS linker flags for PULSE, overriding pkg-config
  1578. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1579. ESD_LIBS linker flags for ESD, overriding pkg-config
  1580. SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
  1581. SDL_LIBS linker flags for SDL, overriding pkg-config
  1582. Use these variables to override the choices made by `configure' or to help
  1583. it to find libraries and programs with nonstandard names/locations.
  1584. Report bugs to <[email protected]>.
  1585. _ACEOF
  1586. ac_status=$?
  1587. fi
  1588. if test "$ac_init_help" = "recursive"; then
  1589. # If there are subdirs, report their specific --help.
  1590. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1591. test -d "$ac_dir" ||
  1592. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1593. continue
  1594. ac_builddir=.
  1595. case "$ac_dir" in
  1596. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1597. *)
  1598. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1599. # A ".." for each directory in $ac_dir_suffix.
  1600. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1601. case $ac_top_builddir_sub in
  1602. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1603. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1604. esac ;;
  1605. esac
  1606. ac_abs_top_builddir=$ac_pwd
  1607. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1608. # for backward compatibility:
  1609. ac_top_builddir=$ac_top_build_prefix
  1610. case $srcdir in
  1611. .) # We are building in place.
  1612. ac_srcdir=.
  1613. ac_top_srcdir=$ac_top_builddir_sub
  1614. ac_abs_top_srcdir=$ac_pwd ;;
  1615. [\\/]* | ?:[\\/]* ) # Absolute name.
  1616. ac_srcdir=$srcdir$ac_dir_suffix;
  1617. ac_top_srcdir=$srcdir
  1618. ac_abs_top_srcdir=$srcdir ;;
  1619. *) # Relative name.
  1620. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1621. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1622. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1623. esac
  1624. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1625. cd "$ac_dir" || { ac_status=$?; continue; }
  1626. # Check for guested configure.
  1627. if test -f "$ac_srcdir/configure.gnu"; then
  1628. echo &&
  1629. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1630. elif test -f "$ac_srcdir/configure"; then
  1631. echo &&
  1632. $SHELL "$ac_srcdir/configure" --help=recursive
  1633. else
  1634. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1635. fi || ac_status=$?
  1636. cd "$ac_pwd" || { ac_status=$?; break; }
  1637. done
  1638. fi
  1639. test -n "$ac_init_help" && exit $ac_status
  1640. if $ac_init_version; then
  1641. cat <<\_ACEOF
  1642. mpg123 configure 1.17.0
  1643. generated by GNU Autoconf 2.69
  1644. Copyright (C) 2012 Free Software Foundation, Inc.
  1645. This configure script is free software; the Free Software Foundation
  1646. gives unlimited permission to copy, distribute and modify it.
  1647. _ACEOF
  1648. exit
  1649. fi
  1650. ## ------------------------ ##
  1651. ## Autoconf initialization. ##
  1652. ## ------------------------ ##
  1653. # ac_fn_c_try_compile LINENO
  1654. # --------------------------
  1655. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1656. ac_fn_c_try_compile ()
  1657. {
  1658. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1659. rm -f conftest.$ac_objext
  1660. if { { ac_try="$ac_compile"
  1661. case "(($ac_try" in
  1662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1663. *) ac_try_echo=$ac_try;;
  1664. esac
  1665. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1666. $as_echo "$ac_try_echo"; } >&5
  1667. (eval "$ac_compile") 2>conftest.err
  1668. ac_status=$?
  1669. if test -s conftest.err; then
  1670. grep -v '^ *+' conftest.err >conftest.er1
  1671. cat conftest.er1 >&5
  1672. mv -f conftest.er1 conftest.err
  1673. fi
  1674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1675. test $ac_status = 0; } && {
  1676. test -z "$ac_c_werror_flag" ||
  1677. test ! -s conftest.err
  1678. } && test -s conftest.$ac_objext; then :
  1679. ac_retval=0
  1680. else
  1681. $as_echo "$as_me: failed program was:" >&5
  1682. sed 's/^/| /' conftest.$ac_ext >&5
  1683. ac_retval=1
  1684. fi
  1685. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1686. as_fn_set_status $ac_retval
  1687. } # ac_fn_c_try_compile
  1688. # ac_fn_c_try_cpp LINENO
  1689. # ----------------------
  1690. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1691. ac_fn_c_try_cpp ()
  1692. {
  1693. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1694. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1695. case "(($ac_try" in
  1696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1697. *) ac_try_echo=$ac_try;;
  1698. esac
  1699. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1700. $as_echo "$ac_try_echo"; } >&5
  1701. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1702. ac_status=$?
  1703. if test -s conftest.err; then
  1704. grep -v '^ *+' conftest.err >conftest.er1
  1705. cat conftest.er1 >&5
  1706. mv -f conftest.er1 conftest.err
  1707. fi
  1708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1709. test $ac_status = 0; } > conftest.i && {
  1710. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1711. test ! -s conftest.err
  1712. }; then :
  1713. ac_retval=0
  1714. else
  1715. $as_echo "$as_me: failed program was:" >&5
  1716. sed 's/^/| /' conftest.$ac_ext >&5
  1717. ac_retval=1
  1718. fi
  1719. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1720. as_fn_set_status $ac_retval
  1721. } # ac_fn_c_try_cpp
  1722. # ac_fn_c_try_run LINENO
  1723. # ----------------------
  1724. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1725. # that executables *can* be run.
  1726. ac_fn_c_try_run ()
  1727. {
  1728. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1729. if { { ac_try="$ac_link"
  1730. case "(($ac_try" in
  1731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1732. *) ac_try_echo=$ac_try;;
  1733. esac
  1734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1735. $as_echo "$ac_try_echo"; } >&5
  1736. (eval "$ac_link") 2>&5
  1737. ac_status=$?
  1738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1739. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1740. { { case "(($ac_try" in
  1741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1742. *) ac_try_echo=$ac_try;;
  1743. esac
  1744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1745. $as_echo "$ac_try_echo"; } >&5
  1746. (eval "$ac_try") 2>&5
  1747. ac_status=$?
  1748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1749. test $ac_status = 0; }; }; then :
  1750. ac_retval=0
  1751. else
  1752. $as_echo "$as_me: program exited with status $ac_status" >&5
  1753. $as_echo "$as_me: failed program was:" >&5
  1754. sed 's/^/| /' conftest.$ac_ext >&5
  1755. ac_retval=$ac_status
  1756. fi
  1757. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1758. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1759. as_fn_set_status $ac_retval
  1760. } # ac_fn_c_try_run
  1761. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1762. # -------------------------------------------------------
  1763. # Tests whether HEADER exists and can be compiled using the include files in
  1764. # INCLUDES, setting the cache variable VAR accordingly.
  1765. ac_fn_c_check_header_compile ()
  1766. {
  1767. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1769. $as_echo_n "checking for $2... " >&6; }
  1770. if eval \${$3+:} false; then :
  1771. $as_echo_n "(cached) " >&6
  1772. else
  1773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1774. /* end confdefs.h. */
  1775. $4
  1776. #include <$2>
  1777. _ACEOF
  1778. if ac_fn_c_try_compile "$LINENO"; then :
  1779. eval "$3=yes"
  1780. else
  1781. eval "$3=no"
  1782. fi
  1783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1784. fi
  1785. eval ac_res=\$$3
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1787. $as_echo "$ac_res" >&6; }
  1788. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1789. } # ac_fn_c_check_header_compile
  1790. # ac_fn_c_try_link LINENO
  1791. # -----------------------
  1792. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1793. ac_fn_c_try_link ()
  1794. {
  1795. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1796. rm -f conftest.$ac_objext conftest$ac_exeext
  1797. if { { ac_try="$ac_link"
  1798. case "(($ac_try" in
  1799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1800. *) ac_try_echo=$ac_try;;
  1801. esac
  1802. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1803. $as_echo "$ac_try_echo"; } >&5
  1804. (eval "$ac_link") 2>conftest.err
  1805. ac_status=$?
  1806. if test -s conftest.err; then
  1807. grep -v '^ *+' conftest.err >conftest.er1
  1808. cat conftest.er1 >&5
  1809. mv -f conftest.er1 conftest.err
  1810. fi
  1811. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1812. test $ac_status = 0; } && {
  1813. test -z "$ac_c_werror_flag" ||
  1814. test ! -s conftest.err
  1815. } && test -s conftest$ac_exeext && {
  1816. test "$cross_compiling" = yes ||
  1817. test -x conftest$ac_exeext
  1818. }; then :
  1819. ac_retval=0
  1820. else
  1821. $as_echo "$as_me: failed program was:" >&5
  1822. sed 's/^/| /' conftest.$ac_ext >&5
  1823. ac_retval=1
  1824. fi
  1825. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1826. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1827. # interfere with the next link command; also delete a directory that is
  1828. # left behind by Apple's compiler. We do this before executing the actions.
  1829. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. as_fn_set_status $ac_retval
  1832. } # ac_fn_c_try_link
  1833. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1834. # -------------------------------------------------------
  1835. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1836. # the include files in INCLUDES and setting the cache variable VAR
  1837. # accordingly.
  1838. ac_fn_c_check_header_mongrel ()
  1839. {
  1840. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1841. if eval \${$3+:} false; then :
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1843. $as_echo_n "checking for $2... " >&6; }
  1844. if eval \${$3+:} false; then :
  1845. $as_echo_n "(cached) " >&6
  1846. fi
  1847. eval ac_res=\$$3
  1848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1849. $as_echo "$ac_res" >&6; }
  1850. else
  1851. # Is the header compilable?
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1853. $as_echo_n "checking $2 usability... " >&6; }
  1854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1855. /* end confdefs.h. */
  1856. $4
  1857. #include <$2>
  1858. _ACEOF
  1859. if ac_fn_c_try_compile "$LINENO"; then :
  1860. ac_header_compiler=yes
  1861. else
  1862. ac_header_compiler=no
  1863. fi
  1864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1866. $as_echo "$ac_header_compiler" >&6; }
  1867. # Is the header present?
  1868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1869. $as_echo_n "checking $2 presence... " >&6; }
  1870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1871. /* end confdefs.h. */
  1872. #include <$2>
  1873. _ACEOF
  1874. if ac_fn_c_try_cpp "$LINENO"; then :
  1875. ac_header_preproc=yes
  1876. else
  1877. ac_header_preproc=no
  1878. fi
  1879. rm -f conftest.err conftest.i conftest.$ac_ext
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1881. $as_echo "$ac_header_preproc" >&6; }
  1882. # So? What about this header?
  1883. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1884. yes:no: )
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1886. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1888. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1889. ;;
  1890. no:yes:* )
  1891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1892. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1894. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1896. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1898. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1900. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1901. ( $as_echo "## ------------------------------------------------- ##
  1902. ## Report this to [email protected] ##
  1903. ## ------------------------------------------------- ##"
  1904. ) | sed "s/^/$as_me: WARNING: /" >&2
  1905. ;;
  1906. esac
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1908. $as_echo_n "checking for $2... " >&6; }
  1909. if eval \${$3+:} false; then :
  1910. $as_echo_n "(cached) " >&6
  1911. else
  1912. eval "$3=\$ac_header_compiler"
  1913. fi
  1914. eval ac_res=\$$3
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1916. $as_echo "$ac_res" >&6; }
  1917. fi
  1918. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1919. } # ac_fn_c_check_header_mongrel
  1920. # ac_fn_c_check_func LINENO FUNC VAR
  1921. # ----------------------------------
  1922. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1923. ac_fn_c_check_func ()
  1924. {
  1925. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1927. $as_echo_n "checking for $2... " >&6; }
  1928. if eval \${$3+:} false; then :
  1929. $as_echo_n "(cached) " >&6
  1930. else
  1931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1932. /* end confdefs.h. */
  1933. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1934. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1935. #define $2 innocuous_$2
  1936. /* System header to define __stub macros and hopefully few prototypes,
  1937. which can conflict with char $2 (); below.
  1938. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1939. <limits.h> exists even on freestanding compilers. */
  1940. #ifdef __STDC__
  1941. # include <limits.h>
  1942. #else
  1943. # include <assert.h>
  1944. #endif
  1945. #undef $2
  1946. /* Override any GCC internal prototype to avoid an error.
  1947. Use char because int might match the return type of a GCC
  1948. builtin and then its argument prototype would still apply. */
  1949. #ifdef __cplusplus
  1950. extern "C"
  1951. #endif
  1952. char $2 ();
  1953. /* The GNU C library defines this for functions which it implements
  1954. to always fail with ENOSYS. Some functions are actually named
  1955. something starting with __ and the normal name is an alias. */
  1956. #if defined __stub_$2 || defined __stub___$2
  1957. choke me
  1958. #endif
  1959. int
  1960. main ()
  1961. {
  1962. return $2 ();
  1963. ;
  1964. return 0;
  1965. }
  1966. _ACEOF
  1967. if ac_fn_c_try_link "$LINENO"; then :
  1968. eval "$3=yes"
  1969. else
  1970. eval "$3=no"
  1971. fi
  1972. rm -f core conftest.err conftest.$ac_objext \
  1973. conftest$ac_exeext conftest.$ac_ext
  1974. fi
  1975. eval ac_res=\$$3
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1977. $as_echo "$ac_res" >&6; }
  1978. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1979. } # ac_fn_c_check_func
  1980. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1981. # -------------------------------------------
  1982. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1983. # variable VAR accordingly.
  1984. ac_fn_c_check_type ()
  1985. {
  1986. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1988. $as_echo_n "checking for $2... " >&6; }
  1989. if eval \${$3+:} false; then :
  1990. $as_echo_n "(cached) " >&6
  1991. else
  1992. eval "$3=no"
  1993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1994. /* end confdefs.h. */
  1995. $4
  1996. int
  1997. main ()
  1998. {
  1999. if (sizeof ($2))
  2000. return 0;
  2001. ;
  2002. return 0;
  2003. }
  2004. _ACEOF
  2005. if ac_fn_c_try_compile "$LINENO"; then :
  2006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2007. /* end confdefs.h. */
  2008. $4
  2009. int
  2010. main ()
  2011. {
  2012. if (sizeof (($2)))
  2013. return 0;
  2014. ;
  2015. return 0;
  2016. }
  2017. _ACEOF
  2018. if ac_fn_c_try_compile "$LINENO"; then :
  2019. else
  2020. eval "$3=yes"
  2021. fi
  2022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2023. fi
  2024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2025. fi
  2026. eval ac_res=\$$3
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2028. $as_echo "$ac_res" >&6; }
  2029. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2030. } # ac_fn_c_check_type
  2031. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2032. # --------------------------------------------
  2033. # Tries to find the compile-time value of EXPR in a program that includes
  2034. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2035. # computed
  2036. ac_fn_c_compute_int ()
  2037. {
  2038. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2039. if test "$cross_compiling" = yes; then
  2040. # Depending upon the size, compute the lo and hi bounds.
  2041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2042. /* end confdefs.h. */
  2043. $4
  2044. int
  2045. main ()
  2046. {
  2047. static int test_array [1 - 2 * !(($2) >= 0)];
  2048. test_array [0] = 0;
  2049. return test_array [0];
  2050. ;
  2051. return 0;
  2052. }
  2053. _ACEOF
  2054. if ac_fn_c_try_compile "$LINENO"; then :
  2055. ac_lo=0 ac_mid=0
  2056. while :; do
  2057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2058. /* end confdefs.h. */
  2059. $4
  2060. int
  2061. main ()
  2062. {
  2063. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2064. test_array [0] = 0;
  2065. return test_array [0];
  2066. ;
  2067. return 0;
  2068. }
  2069. _ACEOF
  2070. if ac_fn_c_try_compile "$LINENO"; then :
  2071. ac_hi=$ac_mid; break
  2072. else
  2073. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2074. if test $ac_lo -le $ac_mid; then
  2075. ac_lo= ac_hi=
  2076. break
  2077. fi
  2078. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2079. fi
  2080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2081. done
  2082. else
  2083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2084. /* end confdefs.h. */
  2085. $4
  2086. int
  2087. main ()
  2088. {
  2089. static int test_array [1 - 2 * !(($2) < 0)];
  2090. test_array [0] = 0;
  2091. return test_array [0];
  2092. ;
  2093. return 0;
  2094. }
  2095. _ACEOF
  2096. if ac_fn_c_try_compile "$LINENO"; then :
  2097. ac_hi=-1 ac_mid=-1
  2098. while :; do
  2099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2100. /* end confdefs.h. */
  2101. $4
  2102. int
  2103. main ()
  2104. {
  2105. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2106. test_array [0] = 0;
  2107. return test_array [0];
  2108. ;
  2109. return 0;
  2110. }
  2111. _ACEOF
  2112. if ac_fn_c_try_compile "$LINENO"; then :
  2113. ac_lo=$ac_mid; break
  2114. else
  2115. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2116. if test $ac_mid -le $ac_hi; then
  2117. ac_lo= ac_hi=
  2118. break
  2119. fi
  2120. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2121. fi
  2122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2123. done
  2124. else
  2125. ac_lo= ac_hi=
  2126. fi
  2127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2128. fi
  2129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2130. # Binary search between lo and hi bounds.
  2131. while test "x$ac_lo" != "x$ac_hi"; do
  2132. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2134. /* end confdefs.h. */
  2135. $4
  2136. int
  2137. main ()
  2138. {
  2139. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2140. test_array [0] = 0;
  2141. return test_array [0];
  2142. ;
  2143. return 0;
  2144. }
  2145. _ACEOF
  2146. if ac_fn_c_try_compile "$LINENO"; then :
  2147. ac_hi=$ac_mid
  2148. else
  2149. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2150. fi
  2151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2152. done
  2153. case $ac_lo in #((
  2154. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2155. '') ac_retval=1 ;;
  2156. esac
  2157. else
  2158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2159. /* end confdefs.h. */
  2160. $4
  2161. static long int longval () { return $2; }
  2162. static unsigned long int ulongval () { return $2; }
  2163. #include <stdio.h>
  2164. #include <stdlib.h>
  2165. int
  2166. main ()
  2167. {
  2168. FILE *f = fopen ("conftest.val", "w");
  2169. if (! f)
  2170. return 1;
  2171. if (($2) < 0)
  2172. {
  2173. long int i = longval ();
  2174. if (i != ($2))
  2175. return 1;
  2176. fprintf (f, "%ld", i);
  2177. }
  2178. else
  2179. {
  2180. unsigned long int i = ulongval ();
  2181. if (i != ($2))
  2182. return 1;
  2183. fprintf (f, "%lu", i);
  2184. }
  2185. /* Do not output a trailing newline, as this causes \r\n confusion
  2186. on some platforms. */
  2187. return ferror (f) || fclose (f) != 0;
  2188. ;
  2189. return 0;
  2190. }
  2191. _ACEOF
  2192. if ac_fn_c_try_run "$LINENO"; then :
  2193. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2194. else
  2195. ac_retval=1
  2196. fi
  2197. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2198. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2199. rm -f conftest.val
  2200. fi
  2201. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2202. as_fn_set_status $ac_retval
  2203. } # ac_fn_c_compute_int
  2204. cat >config.log <<_ACEOF
  2205. This file contains any messages produced by compilers while
  2206. running configure, to aid debugging if configure makes a mistake.
  2207. It was created by mpg123 $as_me 1.17.0, which was
  2208. generated by GNU Autoconf 2.69. Invocation command line was
  2209. $ $0 $@
  2210. _ACEOF
  2211. exec 5>>config.log
  2212. {
  2213. cat <<_ASUNAME
  2214. ## --------- ##
  2215. ## Platform. ##
  2216. ## --------- ##
  2217. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2218. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2219. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2220. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2221. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2222. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2223. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2224. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2225. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2226. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2227. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2228. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2229. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2230. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2231. _ASUNAME
  2232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2233. for as_dir in $PATH
  2234. do
  2235. IFS=$as_save_IFS
  2236. test -z "$as_dir" && as_dir=.
  2237. $as_echo "PATH: $as_dir"
  2238. done
  2239. IFS=$as_save_IFS
  2240. } >&5
  2241. cat >&5 <<_ACEOF
  2242. ## ----------- ##
  2243. ## Core tests. ##
  2244. ## ----------- ##
  2245. _ACEOF
  2246. # Keep a trace of the command line.
  2247. # Strip out --no-create and --no-recursion so they do not pile up.
  2248. # Strip out --silent because we don't want to record it for future runs.
  2249. # Also quote any args containing shell meta-characters.
  2250. # Make two passes to allow for proper duplicate-argument suppression.
  2251. ac_configure_args=
  2252. ac_configure_args0=
  2253. ac_configure_args1=
  2254. ac_must_keep_next=false
  2255. for ac_pass in 1 2
  2256. do
  2257. for ac_arg
  2258. do
  2259. case $ac_arg in
  2260. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2261. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2262. | -silent | --silent | --silen | --sile | --sil)
  2263. continue ;;
  2264. *\'*)
  2265. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2266. esac
  2267. case $ac_pass in
  2268. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2269. 2)
  2270. as_fn_append ac_configure_args1 " '$ac_arg'"
  2271. if test $ac_must_keep_next = true; then
  2272. ac_must_keep_next=false # Got value, back to normal.
  2273. else
  2274. case $ac_arg in
  2275. *=* | --config-cache | -C | -disable-* | --disable-* \
  2276. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2277. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2278. | -with-* | --with-* | -without-* | --without-* | --x)
  2279. case "$ac_configure_args0 " in
  2280. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2281. esac
  2282. ;;
  2283. -* ) ac_must_keep_next=true ;;
  2284. esac
  2285. fi
  2286. as_fn_append ac_configure_args " '$ac_arg'"
  2287. ;;
  2288. esac
  2289. done
  2290. done
  2291. { ac_configure_args0=; unset ac_configure_args0;}
  2292. { ac_configure_args1=; unset ac_configure_args1;}
  2293. # When interrupted or exit'd, cleanup temporary files, and complete
  2294. # config.log. We remove comments because anyway the quotes in there
  2295. # would cause problems or look ugly.
  2296. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2297. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2298. trap 'exit_status=$?
  2299. # Save into config.log some information that might help in debugging.
  2300. {
  2301. echo
  2302. $as_echo "## ---------------- ##
  2303. ## Cache variables. ##
  2304. ## ---------------- ##"
  2305. echo
  2306. # The following way of writing the cache mishandles newlines in values,
  2307. (
  2308. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2309. eval ac_val=\$$ac_var
  2310. case $ac_val in #(
  2311. *${as_nl}*)
  2312. case $ac_var in #(
  2313. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2314. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2315. esac
  2316. case $ac_var in #(
  2317. _ | IFS | as_nl) ;; #(
  2318. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2319. *) { eval $ac_var=; unset $ac_var;} ;;
  2320. esac ;;
  2321. esac
  2322. done
  2323. (set) 2>&1 |
  2324. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2325. *${as_nl}ac_space=\ *)
  2326. sed -n \
  2327. "s/'\''/'\''\\\\'\'''\''/g;
  2328. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2329. ;; #(
  2330. *)
  2331. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2332. ;;
  2333. esac |
  2334. sort
  2335. )
  2336. echo
  2337. $as_echo "## ----------------- ##
  2338. ## Output variables. ##
  2339. ## ----------------- ##"
  2340. echo
  2341. for ac_var in $ac_subst_vars
  2342. do
  2343. eval ac_val=\$$ac_var
  2344. case $ac_val in
  2345. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2346. esac
  2347. $as_echo "$ac_var='\''$ac_val'\''"
  2348. done | sort
  2349. echo
  2350. if test -n "$ac_subst_files"; then
  2351. $as_echo "## ------------------- ##
  2352. ## File substitutions. ##
  2353. ## ------------------- ##"
  2354. echo
  2355. for ac_var in $ac_subst_files
  2356. do
  2357. eval ac_val=\$$ac_var
  2358. case $ac_val in
  2359. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2360. esac
  2361. $as_echo "$ac_var='\''$ac_val'\''"
  2362. done | sort
  2363. echo
  2364. fi
  2365. if test -s confdefs.h; then
  2366. $as_echo "## ----------- ##
  2367. ## confdefs.h. ##
  2368. ## ----------- ##"
  2369. echo
  2370. cat confdefs.h
  2371. echo
  2372. fi
  2373. test "$ac_signal" != 0 &&
  2374. $as_echo "$as_me: caught signal $ac_signal"
  2375. $as_echo "$as_me: exit $exit_status"
  2376. } >&5
  2377. rm -f core *.core core.conftest.* &&
  2378. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2379. exit $exit_status
  2380. ' 0
  2381. for ac_signal in 1 2 13 15; do
  2382. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2383. done
  2384. ac_signal=0
  2385. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2386. rm -f -r conftest* confdefs.h
  2387. $as_echo "/* confdefs.h */" > confdefs.h
  2388. # Predefined preprocessor variables.
  2389. cat >>confdefs.h <<_ACEOF
  2390. #define PACKAGE_NAME "$PACKAGE_NAME"
  2391. _ACEOF
  2392. cat >>confdefs.h <<_ACEOF
  2393. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2394. _ACEOF
  2395. cat >>confdefs.h <<_ACEOF
  2396. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2397. _ACEOF
  2398. cat >>confdefs.h <<_ACEOF
  2399. #define PACKAGE_STRING "$PACKAGE_STRING"
  2400. _ACEOF
  2401. cat >>confdefs.h <<_ACEOF
  2402. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2403. _ACEOF
  2404. cat >>confdefs.h <<_ACEOF
  2405. #define PACKAGE_URL "$PACKAGE_URL"
  2406. _ACEOF
  2407. # Let the site file select an alternate cache file if it wants to.
  2408. # Prefer an explicitly selected file to automatically selected ones.
  2409. ac_site_file1=NONE
  2410. ac_site_file2=NONE
  2411. if test -n "$CONFIG_SITE"; then
  2412. # We do not want a PATH search for config.site.
  2413. case $CONFIG_SITE in #((
  2414. -*) ac_site_file1=./$CONFIG_SITE;;
  2415. */*) ac_site_file1=$CONFIG_SITE;;
  2416. *) ac_site_file1=./$CONFIG_SITE;;
  2417. esac
  2418. elif test "x$prefix" != xNONE; then
  2419. ac_site_file1=$prefix/share/config.site
  2420. ac_site_file2=$prefix/etc/config.site
  2421. else
  2422. ac_site_file1=$ac_default_prefix/share/config.site
  2423. ac_site_file2=$ac_default_prefix/etc/config.site
  2424. fi
  2425. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2426. do
  2427. test "x$ac_site_file" = xNONE && continue
  2428. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2430. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2431. sed 's/^/| /' "$ac_site_file" >&5
  2432. . "$ac_site_file" \
  2433. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2434. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2435. as_fn_error $? "failed to load site script $ac_site_file
  2436. See \`config.log' for more details" "$LINENO" 5; }
  2437. fi
  2438. done
  2439. if test -r "$cache_file"; then
  2440. # Some versions of bash will fail to source /dev/null (special files
  2441. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2442. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2444. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2445. case $cache_file in
  2446. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2447. *) . "./$cache_file";;
  2448. esac
  2449. fi
  2450. else
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2452. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2453. >$cache_file
  2454. fi
  2455. as_fn_append ac_header_list " stdlib.h"
  2456. as_fn_append ac_header_list " unistd.h"
  2457. as_fn_append ac_header_list " sys/param.h"
  2458. # Check that the precious variables saved in the cache have kept the same
  2459. # value.
  2460. ac_cache_corrupted=false
  2461. for ac_var in $ac_precious_vars; do
  2462. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2463. eval ac_new_set=\$ac_env_${ac_var}_set
  2464. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2465. eval ac_new_val=\$ac_env_${ac_var}_value
  2466. case $ac_old_set,$ac_new_set in
  2467. set,)
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2469. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2470. ac_cache_corrupted=: ;;
  2471. ,set)
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2473. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2474. ac_cache_corrupted=: ;;
  2475. ,);;
  2476. *)
  2477. if test "x$ac_old_val" != "x$ac_new_val"; then
  2478. # differences in whitespace do not lead to failure.
  2479. ac_old_val_w=`echo x $ac_old_val`
  2480. ac_new_val_w=`echo x $ac_new_val`
  2481. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2483. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2484. ac_cache_corrupted=:
  2485. else
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2487. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2488. eval $ac_var=\$ac_old_val
  2489. fi
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2491. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2493. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2494. fi;;
  2495. esac
  2496. # Pass precious variables to config.status.
  2497. if test "$ac_new_set" = set; then
  2498. case $ac_new_val in
  2499. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2500. *) ac_arg=$ac_var=$ac_new_val ;;
  2501. esac
  2502. case " $ac_configure_args " in
  2503. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2504. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2505. esac
  2506. fi
  2507. done
  2508. if $ac_cache_corrupted; then
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2510. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2512. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2513. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2514. fi
  2515. ## -------------------- ##
  2516. ## Main body of script. ##
  2517. ## -------------------- ##
  2518. ac_ext=c
  2519. ac_cpp='$CPP $CPPFLAGS'
  2520. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2521. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2522. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2523. API_VERSION=38
  2524. LIB_PATCHLEVEL=4
  2525. LIBMPG123_VERSION=$API_VERSION:$LIB_PATCHLEVEL:$API_VERSION
  2526. ac_aux_dir=
  2527. for ac_dir in build "$srcdir"/build; do
  2528. if test -f "$ac_dir/install-sh"; then
  2529. ac_aux_dir=$ac_dir
  2530. ac_install_sh="$ac_aux_dir/install-sh -c"
  2531. break
  2532. elif test -f "$ac_dir/install.sh"; then
  2533. ac_aux_dir=$ac_dir
  2534. ac_install_sh="$ac_aux_dir/install.sh -c"
  2535. break
  2536. elif test -f "$ac_dir/shtool"; then
  2537. ac_aux_dir=$ac_dir
  2538. ac_install_sh="$ac_aux_dir/shtool install -c"
  2539. break
  2540. fi
  2541. done
  2542. if test -z "$ac_aux_dir"; then
  2543. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
  2544. fi
  2545. # These three variables are undocumented and unsupported,
  2546. # and are intended to be withdrawn in a future Autoconf release.
  2547. # They can cause serious problems if a builder's source tree is in a directory
  2548. # whose full name contains unusual characters.
  2549. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2550. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2551. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2552. # Make sure we can run config.sub.
  2553. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2554. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2556. $as_echo_n "checking build system type... " >&6; }
  2557. if ${ac_cv_build+:} false; then :
  2558. $as_echo_n "(cached) " >&6
  2559. else
  2560. ac_build_alias=$build_alias
  2561. test "x$ac_build_alias" = x &&
  2562. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2563. test "x$ac_build_alias" = x &&
  2564. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2565. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2566. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2567. fi
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2569. $as_echo "$ac_cv_build" >&6; }
  2570. case $ac_cv_build in
  2571. *-*-*) ;;
  2572. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2573. esac
  2574. build=$ac_cv_build
  2575. ac_save_IFS=$IFS; IFS='-'
  2576. set x $ac_cv_build
  2577. shift
  2578. build_cpu=$1
  2579. build_vendor=$2
  2580. shift; shift
  2581. # Remember, the first character of IFS is used to create $*,
  2582. # except with old shells:
  2583. build_os=$*
  2584. IFS=$ac_save_IFS
  2585. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2587. $as_echo_n "checking host system type... " >&6; }
  2588. if ${ac_cv_host+:} false; then :
  2589. $as_echo_n "(cached) " >&6
  2590. else
  2591. if test "x$host_alias" = x; then
  2592. ac_cv_host=$ac_cv_build
  2593. else
  2594. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2595. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2596. fi
  2597. fi
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2599. $as_echo "$ac_cv_host" >&6; }
  2600. case $ac_cv_host in
  2601. *-*-*) ;;
  2602. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2603. esac
  2604. host=$ac_cv_host
  2605. ac_save_IFS=$IFS; IFS='-'
  2606. set x $ac_cv_host
  2607. shift
  2608. host_cpu=$1
  2609. host_vendor=$2
  2610. shift; shift
  2611. # Remember, the first character of IFS is used to create $*,
  2612. # except with old shells:
  2613. host_os=$*
  2614. IFS=$ac_save_IFS
  2615. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2616. am__api_version='1.14'
  2617. # Find a good install program. We prefer a C program (faster),
  2618. # so one script is as good as another. But avoid the broken or
  2619. # incompatible versions:
  2620. # SysV /etc/install, /usr/sbin/install
  2621. # SunOS /usr/etc/install
  2622. # IRIX /sbin/install
  2623. # AIX /bin/install
  2624. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2625. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2626. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2627. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2628. # OS/2's system install, which has a completely different semantic
  2629. # ./install, which can be erroneously created by make from ./install.sh.
  2630. # Reject install programs that cannot install multiple files.
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2632. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2633. if test -z "$INSTALL"; then
  2634. if ${ac_cv_path_install+:} false; then :
  2635. $as_echo_n "(cached) " >&6
  2636. else
  2637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2638. for as_dir in $PATH
  2639. do
  2640. IFS=$as_save_IFS
  2641. test -z "$as_dir" && as_dir=.
  2642. # Account for people who put trailing slashes in PATH elements.
  2643. case $as_dir/ in #((
  2644. ./ | .// | /[cC]/* | \
  2645. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2646. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2647. /usr/ucb/* ) ;;
  2648. *)
  2649. # OSF1 and SCO ODT 3.0 have their own names for install.
  2650. # Don't use installbsd from OSF since it installs stuff as root
  2651. # by default.
  2652. for ac_prog in ginstall scoinst install; do
  2653. for ac_exec_ext in '' $ac_executable_extensions; do
  2654. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2655. if test $ac_prog = install &&
  2656. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2657. # AIX install. It has an incompatible calling convention.
  2658. :
  2659. elif test $ac_prog = install &&
  2660. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2661. # program-specific install script used by HP pwplus--don't use.
  2662. :
  2663. else
  2664. rm -rf conftest.one conftest.two conftest.dir
  2665. echo one > conftest.one
  2666. echo two > conftest.two
  2667. mkdir conftest.dir
  2668. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2669. test -s conftest.one && test -s conftest.two &&
  2670. test -s conftest.dir/conftest.one &&
  2671. test -s conftest.dir/conftest.two
  2672. then
  2673. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2674. break 3
  2675. fi
  2676. fi
  2677. fi
  2678. done
  2679. done
  2680. ;;
  2681. esac
  2682. done
  2683. IFS=$as_save_IFS
  2684. rm -rf conftest.one conftest.two conftest.dir
  2685. fi
  2686. if test "${ac_cv_path_install+set}" = set; then
  2687. INSTALL=$ac_cv_path_install
  2688. else
  2689. # As a last resort, use the slow shell script. Don't cache a
  2690. # value for INSTALL within a source directory, because that will
  2691. # break other packages using the cache if that directory is
  2692. # removed, or if the value is a relative name.
  2693. INSTALL=$ac_install_sh
  2694. fi
  2695. fi
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2697. $as_echo "$INSTALL" >&6; }
  2698. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2699. # It thinks the first close brace ends the variable substitution.
  2700. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2701. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2702. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2704. $as_echo_n "checking whether build environment is sane... " >&6; }
  2705. # Reject unsafe characters in $srcdir or the absolute working directory
  2706. # name. Accept space and tab only in the latter.
  2707. am_lf='
  2708. '
  2709. case `pwd` in
  2710. *[\\\"\#\$\&\'\`$am_lf]*)
  2711. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2712. esac
  2713. case $srcdir in
  2714. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2715. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2716. esac
  2717. # Do 'set' in a subshell so we don't clobber the current shell's
  2718. # arguments. Must try -L first in case configure is actually a
  2719. # symlink; some systems play weird games with the mod time of symlinks
  2720. # (eg FreeBSD returns the mod time of the symlink's containing
  2721. # directory).
  2722. if (
  2723. am_has_slept=no
  2724. for am_try in 1 2; do
  2725. echo "timestamp, slept: $am_has_slept" > conftest.file
  2726. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2727. if test "$*" = "X"; then
  2728. # -L didn't work.
  2729. set X `ls -t "$srcdir/configure" conftest.file`
  2730. fi
  2731. if test "$*" != "X $srcdir/configure conftest.file" \
  2732. && test "$*" != "X conftest.file $srcdir/configure"; then
  2733. # If neither matched, then we have a broken ls. This can happen
  2734. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2735. # broken ls alias from the environment. This has actually
  2736. # happened. Such a system could not be considered "sane".
  2737. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2738. alias in your environment" "$LINENO" 5
  2739. fi
  2740. if test "$2" = conftest.file || test $am_try -eq 2; then
  2741. break
  2742. fi
  2743. # Just in case.
  2744. sleep 1
  2745. am_has_slept=yes
  2746. done
  2747. test "$2" = conftest.file
  2748. )
  2749. then
  2750. # Ok.
  2751. :
  2752. else
  2753. as_fn_error $? "newly created file is older than distributed files!
  2754. Check your system clock" "$LINENO" 5
  2755. fi
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2757. $as_echo "yes" >&6; }
  2758. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2759. # generated files are strictly newer.
  2760. am_sleep_pid=
  2761. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2762. ( sleep 1 ) &
  2763. am_sleep_pid=$!
  2764. fi
  2765. rm -f conftest.file
  2766. test "$program_prefix" != NONE &&
  2767. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2768. # Use a double $ so make ignores it.
  2769. test "$program_suffix" != NONE &&
  2770. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2771. # Double any \ or $.
  2772. # By default was `s,x,x', remove it if useless.
  2773. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2774. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2775. # expand $ac_aux_dir to an absolute path
  2776. am_aux_dir=`cd $ac_aux_dir && pwd`
  2777. if test x"${MISSING+set}" != xset; then
  2778. case $am_aux_dir in
  2779. *\ * | *\ *)
  2780. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2781. *)
  2782. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2783. esac
  2784. fi
  2785. # Use eval to expand $SHELL
  2786. if eval "$MISSING --is-lightweight"; then
  2787. am_missing_run="$MISSING "
  2788. else
  2789. am_missing_run=
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2791. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2792. fi
  2793. if test x"${install_sh}" != xset; then
  2794. case $am_aux_dir in
  2795. *\ * | *\ *)
  2796. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2797. *)
  2798. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2799. esac
  2800. fi
  2801. # Installed binaries are usually stripped using 'strip' when the user
  2802. # run "make install-strip". However 'strip' might not be the right
  2803. # tool to use in cross-compilation environments, therefore Automake
  2804. # will honor the 'STRIP' environment variable to overrule this program.
  2805. if test "$cross_compiling" != no; then
  2806. if test -n "$ac_tool_prefix"; then
  2807. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2808. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2810. $as_echo_n "checking for $ac_word... " >&6; }
  2811. if ${ac_cv_prog_STRIP+:} false; then :
  2812. $as_echo_n "(cached) " >&6
  2813. else
  2814. if test -n "$STRIP"; then
  2815. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2816. else
  2817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2818. for as_dir in $PATH
  2819. do
  2820. IFS=$as_save_IFS
  2821. test -z "$as_dir" && as_dir=.
  2822. for ac_exec_ext in '' $ac_executable_extensions; do
  2823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2824. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2826. break 2
  2827. fi
  2828. done
  2829. done
  2830. IFS=$as_save_IFS
  2831. fi
  2832. fi
  2833. STRIP=$ac_cv_prog_STRIP
  2834. if test -n "$STRIP"; then
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2836. $as_echo "$STRIP" >&6; }
  2837. else
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2839. $as_echo "no" >&6; }
  2840. fi
  2841. fi
  2842. if test -z "$ac_cv_prog_STRIP"; then
  2843. ac_ct_STRIP=$STRIP
  2844. # Extract the first word of "strip", so it can be a program name with args.
  2845. set dummy strip; ac_word=$2
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2847. $as_echo_n "checking for $ac_word... " >&6; }
  2848. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2849. $as_echo_n "(cached) " >&6
  2850. else
  2851. if test -n "$ac_ct_STRIP"; then
  2852. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2853. else
  2854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2855. for as_dir in $PATH
  2856. do
  2857. IFS=$as_save_IFS
  2858. test -z "$as_dir" && as_dir=.
  2859. for ac_exec_ext in '' $ac_executable_extensions; do
  2860. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2861. ac_cv_prog_ac_ct_STRIP="strip"
  2862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2863. break 2
  2864. fi
  2865. done
  2866. done
  2867. IFS=$as_save_IFS
  2868. fi
  2869. fi
  2870. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2871. if test -n "$ac_ct_STRIP"; then
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2873. $as_echo "$ac_ct_STRIP" >&6; }
  2874. else
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2876. $as_echo "no" >&6; }
  2877. fi
  2878. if test "x$ac_ct_STRIP" = x; then
  2879. STRIP=":"
  2880. else
  2881. case $cross_compiling:$ac_tool_warned in
  2882. yes:)
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2884. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2885. ac_tool_warned=yes ;;
  2886. esac
  2887. STRIP=$ac_ct_STRIP
  2888. fi
  2889. else
  2890. STRIP="$ac_cv_prog_STRIP"
  2891. fi
  2892. fi
  2893. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2895. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2896. if test -z "$MKDIR_P"; then
  2897. if ${ac_cv_path_mkdir+:} false; then :
  2898. $as_echo_n "(cached) " >&6
  2899. else
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_prog in mkdir gmkdir; do
  2906. for ac_exec_ext in '' $ac_executable_extensions; do
  2907. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2908. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2909. 'mkdir (GNU coreutils) '* | \
  2910. 'mkdir (coreutils) '* | \
  2911. 'mkdir (fileutils) '4.1*)
  2912. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2913. break 3;;
  2914. esac
  2915. done
  2916. done
  2917. done
  2918. IFS=$as_save_IFS
  2919. fi
  2920. test -d ./--version && rmdir ./--version
  2921. if test "${ac_cv_path_mkdir+set}" = set; then
  2922. MKDIR_P="$ac_cv_path_mkdir -p"
  2923. else
  2924. # As a last resort, use the slow shell script. Don't cache a
  2925. # value for MKDIR_P within a source directory, because that will
  2926. # break other packages using the cache if that directory is
  2927. # removed, or if the value is a relative name.
  2928. MKDIR_P="$ac_install_sh -d"
  2929. fi
  2930. fi
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2932. $as_echo "$MKDIR_P" >&6; }
  2933. for ac_prog in gawk mawk nawk awk
  2934. do
  2935. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2936. set dummy $ac_prog; ac_word=$2
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2938. $as_echo_n "checking for $ac_word... " >&6; }
  2939. if ${ac_cv_prog_AWK+:} false; then :
  2940. $as_echo_n "(cached) " >&6
  2941. else
  2942. if test -n "$AWK"; then
  2943. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2944. else
  2945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2946. for as_dir in $PATH
  2947. do
  2948. IFS=$as_save_IFS
  2949. test -z "$as_dir" && as_dir=.
  2950. for ac_exec_ext in '' $ac_executable_extensions; do
  2951. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2952. ac_cv_prog_AWK="$ac_prog"
  2953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2954. break 2
  2955. fi
  2956. done
  2957. done
  2958. IFS=$as_save_IFS
  2959. fi
  2960. fi
  2961. AWK=$ac_cv_prog_AWK
  2962. if test -n "$AWK"; then
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2964. $as_echo "$AWK" >&6; }
  2965. else
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2967. $as_echo "no" >&6; }
  2968. fi
  2969. test -n "$AWK" && break
  2970. done
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2972. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2973. set x ${MAKE-make}
  2974. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2975. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2976. $as_echo_n "(cached) " >&6
  2977. else
  2978. cat >conftest.make <<\_ACEOF
  2979. SHELL = /bin/sh
  2980. all:
  2981. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2982. _ACEOF
  2983. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2984. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2985. *@@@%%%=?*=@@@%%%*)
  2986. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2987. *)
  2988. eval ac_cv_prog_make_${ac_make}_set=no;;
  2989. esac
  2990. rm -f conftest.make
  2991. fi
  2992. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2994. $as_echo "yes" >&6; }
  2995. SET_MAKE=
  2996. else
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2998. $as_echo "no" >&6; }
  2999. SET_MAKE="MAKE=${MAKE-make}"
  3000. fi
  3001. rm -rf .tst 2>/dev/null
  3002. mkdir .tst 2>/dev/null
  3003. if test -d .tst; then
  3004. am__leading_dot=.
  3005. else
  3006. am__leading_dot=_
  3007. fi
  3008. rmdir .tst 2>/dev/null
  3009. # Check whether --enable-silent-rules was given.
  3010. if test "${enable_silent_rules+set}" = set; then :
  3011. enableval=$enable_silent_rules;
  3012. fi
  3013. case $enable_silent_rules in # (((
  3014. yes) AM_DEFAULT_VERBOSITY=0;;
  3015. no) AM_DEFAULT_VERBOSITY=1;;
  3016. *) AM_DEFAULT_VERBOSITY=1;;
  3017. esac
  3018. am_make=${MAKE-make}
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3020. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3021. if ${am_cv_make_support_nested_variables+:} false; then :
  3022. $as_echo_n "(cached) " >&6
  3023. else
  3024. if $as_echo 'TRUE=$(BAR$(V))
  3025. BAR0=false
  3026. BAR1=true
  3027. V=1
  3028. am__doit:
  3029. @$(TRUE)
  3030. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3031. am_cv_make_support_nested_variables=yes
  3032. else
  3033. am_cv_make_support_nested_variables=no
  3034. fi
  3035. fi
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3037. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3038. if test $am_cv_make_support_nested_variables = yes; then
  3039. AM_V='$(V)'
  3040. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3041. else
  3042. AM_V=$AM_DEFAULT_VERBOSITY
  3043. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3044. fi
  3045. AM_BACKSLASH='\'
  3046. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3047. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3048. # is not polluted with repeated "-I."
  3049. am__isrc=' -I$(srcdir)'
  3050. # test to see if srcdir already configured
  3051. if test -f $srcdir/config.status; then
  3052. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3053. fi
  3054. fi
  3055. # test whether we have cygpath
  3056. if test -z "$CYGPATH_W"; then
  3057. if (cygpath --version) >/dev/null 2>/dev/null; then
  3058. CYGPATH_W='cygpath -w'
  3059. else
  3060. CYGPATH_W=echo
  3061. fi
  3062. fi
  3063. # Define the identity of the package.
  3064. PACKAGE='mpg123'
  3065. VERSION='1.17.0'
  3066. cat >>confdefs.h <<_ACEOF
  3067. #define PACKAGE "$PACKAGE"
  3068. _ACEOF
  3069. cat >>confdefs.h <<_ACEOF
  3070. #define VERSION "$VERSION"
  3071. _ACEOF
  3072. # Some tools Automake needs.
  3073. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3074. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3075. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3076. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3077. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3078. # For better backward compatibility. To be removed once Automake 1.9.x
  3079. # dies out for good. For more background, see:
  3080. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3081. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3082. mkdir_p='$(MKDIR_P)'
  3083. # We need awk for the "check" target. The system "awk" is bad on
  3084. # some platforms.
  3085. # Always define AMTAR for backward compatibility. Yes, it's still used
  3086. # in the wild :-( We should find a proper way to deprecate it ...
  3087. AMTAR='$${TAR-tar}'
  3088. # We'll loop over all known methods to create a tar archive until one works.
  3089. _am_tools='gnutar pax cpio none'
  3090. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3091. # POSIX will say in a future version that running "rm -f" with no argument
  3092. # is OK; and we want to be able to make that assumption in our Makefile
  3093. # recipes. So use an aggressive probe to check that the usage we want is
  3094. # actually supported "in the wild" to an acceptable degree.
  3095. # See automake bug#10828.
  3096. # To make any issue more visible, cause the running configure to be aborted
  3097. # by default if the 'rm' program in use doesn't match our expectations; the
  3098. # user can still override this though.
  3099. if rm -f && rm -fr && rm -rf; then : OK; else
  3100. cat >&2 <<'END'
  3101. Oops!
  3102. Your 'rm' program seems unable to run without file operands specified
  3103. on the command line, even when the '-f' option is present. This is contrary
  3104. to the behaviour of most rm programs out there, and not conforming with
  3105. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3106. Please tell [email protected] about your system, including the value
  3107. of your $PATH and any error possibly output before this message. This
  3108. can help us improve future automake versions.
  3109. END
  3110. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3111. echo 'Configuration will proceed anyway, since you have set the' >&2
  3112. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3113. echo >&2
  3114. else
  3115. cat >&2 <<'END'
  3116. Aborting the configuration process, to ensure you take notice of the issue.
  3117. You can download and install GNU coreutils to get an 'rm' implementation
  3118. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3119. If you want to complete the configuration process using your problematic
  3120. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3121. to "yes", and re-run configure.
  3122. END
  3123. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3124. fi
  3125. fi
  3126. ac_config_headers="$ac_config_headers src/config.h"
  3127. # You get strange symptoms like jack module build failing because the AC_C_CONST failed to detect the working const support.
  3128. # In that case, the test failed because -Werror, not because no const there...
  3129. # After looking again, there are possibly more tests being obscured by false failures.
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror in CFLAGS (It breaks tests)" >&5
  3131. $as_echo_n "checking for -Werror in CFLAGS (It breaks tests)... " >&6; }
  3132. if echo "$CFLAGS" | grep Werror; then
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3134. $as_echo "yes" >&6; }
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have -Werror in CFLAGS. That may break some tests and make this configure bogus.
  3136. If you want paranoid compilation, use --enable-nagging option, which adds -Werror for gcc.
  3137. Also note that you shall not run make distcheck after configuring with --enable-nagging.
  3138. distcheck uses the generated CFLAGS...
  3139. Anyhow, continuing at your own risk." >&5
  3140. $as_echo "$as_me: WARNING: You have -Werror in CFLAGS. That may break some tests and make this configure bogus.
  3141. If you want paranoid compilation, use --enable-nagging option, which adds -Werror for gcc.
  3142. Also note that you shall not run make distcheck after configuring with --enable-nagging.
  3143. distcheck uses the generated CFLAGS...
  3144. Anyhow, continuing at your own risk." >&2;}
  3145. else
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3147. $as_echo "no" >&6; }
  3148. fi
  3149. buffer=enabled # try to build with buffer by default
  3150. LT_LDFLAGS=-export-dynamic
  3151. EXEC_LT_LDFLAGS=
  3152. be_static=no
  3153. all_static=no
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are up to something totally static with LDFLAGS/CFLAGS" >&5
  3155. $as_echo_n "checking if you are up to something totally static with LDFLAGS/CFLAGS... " >&6; }
  3156. for f in $LDFLAGS $CFLAGS
  3157. do
  3158. case "$f" in
  3159. -all-static)
  3160. be_static=yes
  3161. all_static=yes
  3162. ;;
  3163. -static)
  3164. be_static=yes
  3165. ;;
  3166. esac
  3167. done
  3168. if test "x$be_static" = xyes; then
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3170. $as_echo "yes" >&6; }
  3171. LT_LDFLAGS=-all-static
  3172. EXEC_LT_LDFLAGS="$LT_LDFLAGS"
  3173. else
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3175. $as_echo "no" >&6; }
  3176. fi
  3177. if test "x$all_static" = xyes; then
  3178. { $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
  3179. $as_echo "$as_me: WARNING: Use -static in LDFLAGS for all-static linking! Your compiler may blow up on that -all-static. " >&2;}
  3180. fi
  3181. DEPDIR="${am__leading_dot}deps"
  3182. ac_config_commands="$ac_config_commands depfiles"
  3183. am_make=${MAKE-make}
  3184. cat > confinc << 'END'
  3185. am__doit:
  3186. @echo this is the am__doit target
  3187. .PHONY: am__doit
  3188. END
  3189. # If we don't find an include directive, just comment out the code.
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3191. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3192. am__include="#"
  3193. am__quote=
  3194. _am_result=none
  3195. # First try GNU make style include.
  3196. echo "include confinc" > confmf
  3197. # Ignore all kinds of additional output from 'make'.
  3198. case `$am_make -s -f confmf 2> /dev/null` in #(
  3199. *the\ am__doit\ target*)
  3200. am__include=include
  3201. am__quote=
  3202. _am_result=GNU
  3203. ;;
  3204. esac
  3205. # Now try BSD make style include.
  3206. if test "$am__include" = "#"; then
  3207. echo '.include "confinc"' > confmf
  3208. case `$am_make -s -f confmf 2> /dev/null` in #(
  3209. *the\ am__doit\ target*)
  3210. am__include=.include
  3211. am__quote="\""
  3212. _am_result=BSD
  3213. ;;
  3214. esac
  3215. fi
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3217. $as_echo "$_am_result" >&6; }
  3218. rm -f confinc confmf
  3219. # Check whether --enable-dependency-tracking was given.
  3220. if test "${enable_dependency_tracking+set}" = set; then :
  3221. enableval=$enable_dependency_tracking;
  3222. fi
  3223. if test "x$enable_dependency_tracking" != xno; then
  3224. am_depcomp="$ac_aux_dir/depcomp"
  3225. AMDEPBACKSLASH='\'
  3226. am__nodep='_no'
  3227. fi
  3228. if test "x$enable_dependency_tracking" != xno; then
  3229. AMDEP_TRUE=
  3230. AMDEP_FALSE='#'
  3231. else
  3232. AMDEP_TRUE='#'
  3233. AMDEP_FALSE=
  3234. fi
  3235. ac_ext=c
  3236. ac_cpp='$CPP $CPPFLAGS'
  3237. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3238. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3239. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3240. if test -n "$ac_tool_prefix"; then
  3241. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3242. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3244. $as_echo_n "checking for $ac_word... " >&6; }
  3245. if ${ac_cv_prog_CC+:} false; then :
  3246. $as_echo_n "(cached) " >&6
  3247. else
  3248. if test -n "$CC"; then
  3249. ac_cv_prog_CC="$CC" # Let the user override the test.
  3250. else
  3251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3252. for as_dir in $PATH
  3253. do
  3254. IFS=$as_save_IFS
  3255. test -z "$as_dir" && as_dir=.
  3256. for ac_exec_ext in '' $ac_executable_extensions; do
  3257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3258. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3260. break 2
  3261. fi
  3262. done
  3263. done
  3264. IFS=$as_save_IFS
  3265. fi
  3266. fi
  3267. CC=$ac_cv_prog_CC
  3268. if test -n "$CC"; then
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3270. $as_echo "$CC" >&6; }
  3271. else
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3273. $as_echo "no" >&6; }
  3274. fi
  3275. fi
  3276. if test -z "$ac_cv_prog_CC"; then
  3277. ac_ct_CC=$CC
  3278. # Extract the first word of "gcc", so it can be a program name with args.
  3279. set dummy gcc; ac_word=$2
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3281. $as_echo_n "checking for $ac_word... " >&6; }
  3282. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3283. $as_echo_n "(cached) " >&6
  3284. else
  3285. if test -n "$ac_ct_CC"; then
  3286. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3287. else
  3288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3289. for as_dir in $PATH
  3290. do
  3291. IFS=$as_save_IFS
  3292. test -z "$as_dir" && as_dir=.
  3293. for ac_exec_ext in '' $ac_executable_extensions; do
  3294. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3295. ac_cv_prog_ac_ct_CC="gcc"
  3296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3297. break 2
  3298. fi
  3299. done
  3300. done
  3301. IFS=$as_save_IFS
  3302. fi
  3303. fi
  3304. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3305. if test -n "$ac_ct_CC"; then
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3307. $as_echo "$ac_ct_CC" >&6; }
  3308. else
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3310. $as_echo "no" >&6; }
  3311. fi
  3312. if test "x$ac_ct_CC" = x; then
  3313. CC=""
  3314. else
  3315. case $cross_compiling:$ac_tool_warned in
  3316. yes:)
  3317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3318. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3319. ac_tool_warned=yes ;;
  3320. esac
  3321. CC=$ac_ct_CC
  3322. fi
  3323. else
  3324. CC="$ac_cv_prog_CC"
  3325. fi
  3326. if test -z "$CC"; then
  3327. if test -n "$ac_tool_prefix"; then
  3328. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3329. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3331. $as_echo_n "checking for $ac_word... " >&6; }
  3332. if ${ac_cv_prog_CC+:} false; then :
  3333. $as_echo_n "(cached) " >&6
  3334. else
  3335. if test -n "$CC"; then
  3336. ac_cv_prog_CC="$CC" # Let the user override the test.
  3337. else
  3338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3339. for as_dir in $PATH
  3340. do
  3341. IFS=$as_save_IFS
  3342. test -z "$as_dir" && as_dir=.
  3343. for ac_exec_ext in '' $ac_executable_extensions; do
  3344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3345. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3347. break 2
  3348. fi
  3349. done
  3350. done
  3351. IFS=$as_save_IFS
  3352. fi
  3353. fi
  3354. CC=$ac_cv_prog_CC
  3355. if test -n "$CC"; then
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3357. $as_echo "$CC" >&6; }
  3358. else
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3360. $as_echo "no" >&6; }
  3361. fi
  3362. fi
  3363. fi
  3364. if test -z "$CC"; then
  3365. # Extract the first word of "cc", so it can be a program name with args.
  3366. set dummy cc; ac_word=$2
  3367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3368. $as_echo_n "checking for $ac_word... " >&6; }
  3369. if ${ac_cv_prog_CC+:} false; then :
  3370. $as_echo_n "(cached) " >&6
  3371. else
  3372. if test -n "$CC"; then
  3373. ac_cv_prog_CC="$CC" # Let the user override the test.
  3374. else
  3375. ac_prog_rejected=no
  3376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3377. for as_dir in $PATH
  3378. do
  3379. IFS=$as_save_IFS
  3380. test -z "$as_dir" && as_dir=.
  3381. for ac_exec_ext in '' $ac_executable_extensions; do
  3382. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3383. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3384. ac_prog_rejected=yes
  3385. continue
  3386. fi
  3387. ac_cv_prog_CC="cc"
  3388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3389. break 2
  3390. fi
  3391. done
  3392. done
  3393. IFS=$as_save_IFS
  3394. if test $ac_prog_rejected = yes; then
  3395. # We found a bogon in the path, so make sure we never use it.
  3396. set dummy $ac_cv_prog_CC
  3397. shift
  3398. if test $# != 0; then
  3399. # We chose a different compiler from the bogus one.
  3400. # However, it has the same basename, so the bogon will be chosen
  3401. # first if we set CC to just the basename; use the full file name.
  3402. shift
  3403. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3404. fi
  3405. fi
  3406. fi
  3407. fi
  3408. CC=$ac_cv_prog_CC
  3409. if test -n "$CC"; then
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3411. $as_echo "$CC" >&6; }
  3412. else
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3414. $as_echo "no" >&6; }
  3415. fi
  3416. fi
  3417. if test -z "$CC"; then
  3418. if test -n "$ac_tool_prefix"; then
  3419. for ac_prog in cl.exe
  3420. do
  3421. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3422. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3424. $as_echo_n "checking for $ac_word... " >&6; }
  3425. if ${ac_cv_prog_CC+:} false; then :
  3426. $as_echo_n "(cached) " >&6
  3427. else
  3428. if test -n "$CC"; then
  3429. ac_cv_prog_CC="$CC" # Let the user override the test.
  3430. else
  3431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3432. for as_dir in $PATH
  3433. do
  3434. IFS=$as_save_IFS
  3435. test -z "$as_dir" && as_dir=.
  3436. for ac_exec_ext in '' $ac_executable_extensions; do
  3437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3438. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3440. break 2
  3441. fi
  3442. done
  3443. done
  3444. IFS=$as_save_IFS
  3445. fi
  3446. fi
  3447. CC=$ac_cv_prog_CC
  3448. if test -n "$CC"; then
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3450. $as_echo "$CC" >&6; }
  3451. else
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3453. $as_echo "no" >&6; }
  3454. fi
  3455. test -n "$CC" && break
  3456. done
  3457. fi
  3458. if test -z "$CC"; then
  3459. ac_ct_CC=$CC
  3460. for ac_prog in cl.exe
  3461. do
  3462. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3463. set dummy $ac_prog; ac_word=$2
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3465. $as_echo_n "checking for $ac_word... " >&6; }
  3466. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3467. $as_echo_n "(cached) " >&6
  3468. else
  3469. if test -n "$ac_ct_CC"; then
  3470. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3471. else
  3472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3473. for as_dir in $PATH
  3474. do
  3475. IFS=$as_save_IFS
  3476. test -z "$as_dir" && as_dir=.
  3477. for ac_exec_ext in '' $ac_executable_extensions; do
  3478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3479. ac_cv_prog_ac_ct_CC="$ac_prog"
  3480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3481. break 2
  3482. fi
  3483. done
  3484. done
  3485. IFS=$as_save_IFS
  3486. fi
  3487. fi
  3488. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3489. if test -n "$ac_ct_CC"; then
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3491. $as_echo "$ac_ct_CC" >&6; }
  3492. else
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3494. $as_echo "no" >&6; }
  3495. fi
  3496. test -n "$ac_ct_CC" && break
  3497. done
  3498. if test "x$ac_ct_CC" = x; then
  3499. CC=""
  3500. else
  3501. case $cross_compiling:$ac_tool_warned in
  3502. yes:)
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3504. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3505. ac_tool_warned=yes ;;
  3506. esac
  3507. CC=$ac_ct_CC
  3508. fi
  3509. fi
  3510. fi
  3511. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3512. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3513. as_fn_error $? "no acceptable C compiler found in \$PATH
  3514. See \`config.log' for more details" "$LINENO" 5; }
  3515. # Provide some information about the compiler.
  3516. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3517. set X $ac_compile
  3518. ac_compiler=$2
  3519. for ac_option in --version -v -V -qversion; do
  3520. { { ac_try="$ac_compiler $ac_option >&5"
  3521. case "(($ac_try" in
  3522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3523. *) ac_try_echo=$ac_try;;
  3524. esac
  3525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3526. $as_echo "$ac_try_echo"; } >&5
  3527. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3528. ac_status=$?
  3529. if test -s conftest.err; then
  3530. sed '10a\
  3531. ... rest of stderr output deleted ...
  3532. 10q' conftest.err >conftest.er1
  3533. cat conftest.er1 >&5
  3534. fi
  3535. rm -f conftest.er1 conftest.err
  3536. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3537. test $ac_status = 0; }
  3538. done
  3539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3540. /* end confdefs.h. */
  3541. int
  3542. main ()
  3543. {
  3544. ;
  3545. return 0;
  3546. }
  3547. _ACEOF
  3548. ac_clean_files_save=$ac_clean_files
  3549. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3550. # Try to create an executable without -o first, disregard a.out.
  3551. # It will help us diagnose broken compilers, and finding out an intuition
  3552. # of exeext.
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3554. $as_echo_n "checking whether the C compiler works... " >&6; }
  3555. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3556. # The possible output files:
  3557. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3558. ac_rmfiles=
  3559. for ac_file in $ac_files
  3560. do
  3561. case $ac_file in
  3562. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3563. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3564. esac
  3565. done
  3566. rm -f $ac_rmfiles
  3567. if { { ac_try="$ac_link_default"
  3568. case "(($ac_try" in
  3569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3570. *) ac_try_echo=$ac_try;;
  3571. esac
  3572. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3573. $as_echo "$ac_try_echo"; } >&5
  3574. (eval "$ac_link_default") 2>&5
  3575. ac_status=$?
  3576. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3577. test $ac_status = 0; }; then :
  3578. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3579. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3580. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3581. # so that the user can short-circuit this test for compilers unknown to
  3582. # Autoconf.
  3583. for ac_file in $ac_files ''
  3584. do
  3585. test -f "$ac_file" || continue
  3586. case $ac_file in
  3587. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3588. ;;
  3589. [ab].out )
  3590. # We found the default executable, but exeext='' is most
  3591. # certainly right.
  3592. break;;
  3593. *.* )
  3594. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3595. then :; else
  3596. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3597. fi
  3598. # We set ac_cv_exeext here because the later test for it is not
  3599. # safe: cross compilers may not add the suffix if given an `-o'
  3600. # argument, so we may need to know it at that point already.
  3601. # Even if this section looks crufty: it has the advantage of
  3602. # actually working.
  3603. break;;
  3604. * )
  3605. break;;
  3606. esac
  3607. done
  3608. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3609. else
  3610. ac_file=''
  3611. fi
  3612. if test -z "$ac_file"; then :
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3614. $as_echo "no" >&6; }
  3615. $as_echo "$as_me: failed program was:" >&5
  3616. sed 's/^/| /' conftest.$ac_ext >&5
  3617. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3618. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3619. as_fn_error 77 "C compiler cannot create executables
  3620. See \`config.log' for more details" "$LINENO" 5; }
  3621. else
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3623. $as_echo "yes" >&6; }
  3624. fi
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3626. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3628. $as_echo "$ac_file" >&6; }
  3629. ac_exeext=$ac_cv_exeext
  3630. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3631. ac_clean_files=$ac_clean_files_save
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3633. $as_echo_n "checking for suffix of executables... " >&6; }
  3634. if { { ac_try="$ac_link"
  3635. case "(($ac_try" in
  3636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3637. *) ac_try_echo=$ac_try;;
  3638. esac
  3639. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3640. $as_echo "$ac_try_echo"; } >&5
  3641. (eval "$ac_link") 2>&5
  3642. ac_status=$?
  3643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3644. test $ac_status = 0; }; then :
  3645. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3646. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3647. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3648. # `rm'.
  3649. for ac_file in conftest.exe conftest conftest.*; do
  3650. test -f "$ac_file" || continue
  3651. case $ac_file in
  3652. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3653. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3654. break;;
  3655. * ) break;;
  3656. esac
  3657. done
  3658. else
  3659. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3660. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3661. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3662. See \`config.log' for more details" "$LINENO" 5; }
  3663. fi
  3664. rm -f conftest conftest$ac_cv_exeext
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3666. $as_echo "$ac_cv_exeext" >&6; }
  3667. rm -f conftest.$ac_ext
  3668. EXEEXT=$ac_cv_exeext
  3669. ac_exeext=$EXEEXT
  3670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3671. /* end confdefs.h. */
  3672. #include <stdio.h>
  3673. int
  3674. main ()
  3675. {
  3676. FILE *f = fopen ("conftest.out", "w");
  3677. return ferror (f) || fclose (f) != 0;
  3678. ;
  3679. return 0;
  3680. }
  3681. _ACEOF
  3682. ac_clean_files="$ac_clean_files conftest.out"
  3683. # Check that the compiler produces executables we can run. If not, either
  3684. # the compiler is broken, or we cross compile.
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3686. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3687. if test "$cross_compiling" != yes; then
  3688. { { ac_try="$ac_link"
  3689. case "(($ac_try" in
  3690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3691. *) ac_try_echo=$ac_try;;
  3692. esac
  3693. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3694. $as_echo "$ac_try_echo"; } >&5
  3695. (eval "$ac_link") 2>&5
  3696. ac_status=$?
  3697. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3698. test $ac_status = 0; }
  3699. if { ac_try='./conftest$ac_cv_exeext'
  3700. { { case "(($ac_try" in
  3701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3702. *) ac_try_echo=$ac_try;;
  3703. esac
  3704. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3705. $as_echo "$ac_try_echo"; } >&5
  3706. (eval "$ac_try") 2>&5
  3707. ac_status=$?
  3708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3709. test $ac_status = 0; }; }; then
  3710. cross_compiling=no
  3711. else
  3712. if test "$cross_compiling" = maybe; then
  3713. cross_compiling=yes
  3714. else
  3715. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3716. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3717. as_fn_error $? "cannot run C compiled programs.
  3718. If you meant to cross compile, use \`--host'.
  3719. See \`config.log' for more details" "$LINENO" 5; }
  3720. fi
  3721. fi
  3722. fi
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3724. $as_echo "$cross_compiling" >&6; }
  3725. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3726. ac_clean_files=$ac_clean_files_save
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3728. $as_echo_n "checking for suffix of object files... " >&6; }
  3729. if ${ac_cv_objext+:} false; then :
  3730. $as_echo_n "(cached) " >&6
  3731. else
  3732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3733. /* end confdefs.h. */
  3734. int
  3735. main ()
  3736. {
  3737. ;
  3738. return 0;
  3739. }
  3740. _ACEOF
  3741. rm -f conftest.o conftest.obj
  3742. if { { ac_try="$ac_compile"
  3743. case "(($ac_try" in
  3744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3745. *) ac_try_echo=$ac_try;;
  3746. esac
  3747. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3748. $as_echo "$ac_try_echo"; } >&5
  3749. (eval "$ac_compile") 2>&5
  3750. ac_status=$?
  3751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3752. test $ac_status = 0; }; then :
  3753. for ac_file in conftest.o conftest.obj conftest.*; do
  3754. test -f "$ac_file" || continue;
  3755. case $ac_file in
  3756. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3757. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3758. break;;
  3759. esac
  3760. done
  3761. else
  3762. $as_echo "$as_me: failed program was:" >&5
  3763. sed 's/^/| /' conftest.$ac_ext >&5
  3764. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3765. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3766. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3767. See \`config.log' for more details" "$LINENO" 5; }
  3768. fi
  3769. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3770. fi
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3772. $as_echo "$ac_cv_objext" >&6; }
  3773. OBJEXT=$ac_cv_objext
  3774. ac_objext=$OBJEXT
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3776. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3777. if ${ac_cv_c_compiler_gnu+:} false; then :
  3778. $as_echo_n "(cached) " >&6
  3779. else
  3780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3781. /* end confdefs.h. */
  3782. int
  3783. main ()
  3784. {
  3785. #ifndef __GNUC__
  3786. choke me
  3787. #endif
  3788. ;
  3789. return 0;
  3790. }
  3791. _ACEOF
  3792. if ac_fn_c_try_compile "$LINENO"; then :
  3793. ac_compiler_gnu=yes
  3794. else
  3795. ac_compiler_gnu=no
  3796. fi
  3797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3798. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3799. fi
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3801. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3802. if test $ac_compiler_gnu = yes; then
  3803. GCC=yes
  3804. else
  3805. GCC=
  3806. fi
  3807. ac_test_CFLAGS=${CFLAGS+set}
  3808. ac_save_CFLAGS=$CFLAGS
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3810. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3811. if ${ac_cv_prog_cc_g+:} false; then :
  3812. $as_echo_n "(cached) " >&6
  3813. else
  3814. ac_save_c_werror_flag=$ac_c_werror_flag
  3815. ac_c_werror_flag=yes
  3816. ac_cv_prog_cc_g=no
  3817. CFLAGS="-g"
  3818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3819. /* end confdefs.h. */
  3820. int
  3821. main ()
  3822. {
  3823. ;
  3824. return 0;
  3825. }
  3826. _ACEOF
  3827. if ac_fn_c_try_compile "$LINENO"; then :
  3828. ac_cv_prog_cc_g=yes
  3829. else
  3830. CFLAGS=""
  3831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3832. /* end confdefs.h. */
  3833. int
  3834. main ()
  3835. {
  3836. ;
  3837. return 0;
  3838. }
  3839. _ACEOF
  3840. if ac_fn_c_try_compile "$LINENO"; then :
  3841. else
  3842. ac_c_werror_flag=$ac_save_c_werror_flag
  3843. CFLAGS="-g"
  3844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3845. /* end confdefs.h. */
  3846. int
  3847. main ()
  3848. {
  3849. ;
  3850. return 0;
  3851. }
  3852. _ACEOF
  3853. if ac_fn_c_try_compile "$LINENO"; then :
  3854. ac_cv_prog_cc_g=yes
  3855. fi
  3856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3857. fi
  3858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3859. fi
  3860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3861. ac_c_werror_flag=$ac_save_c_werror_flag
  3862. fi
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3864. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3865. if test "$ac_test_CFLAGS" = set; then
  3866. CFLAGS=$ac_save_CFLAGS
  3867. elif test $ac_cv_prog_cc_g = yes; then
  3868. if test "$GCC" = yes; then
  3869. CFLAGS="-g -O2"
  3870. else
  3871. CFLAGS="-g"
  3872. fi
  3873. else
  3874. if test "$GCC" = yes; then
  3875. CFLAGS="-O2"
  3876. else
  3877. CFLAGS=
  3878. fi
  3879. fi
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3881. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3882. if ${ac_cv_prog_cc_c89+:} false; then :
  3883. $as_echo_n "(cached) " >&6
  3884. else
  3885. ac_cv_prog_cc_c89=no
  3886. ac_save_CC=$CC
  3887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3888. /* end confdefs.h. */
  3889. #include <stdarg.h>
  3890. #include <stdio.h>
  3891. struct stat;
  3892. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3893. struct buf { int x; };
  3894. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3895. static char *e (p, i)
  3896. char **p;
  3897. int i;
  3898. {
  3899. return p[i];
  3900. }
  3901. static char *f (char * (*g) (char **, int), char **p, ...)
  3902. {
  3903. char *s;
  3904. va_list v;
  3905. va_start (v,p);
  3906. s = g (p, va_arg (v,int));
  3907. va_end (v);
  3908. return s;
  3909. }
  3910. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3911. function prototypes and stuff, but not '\xHH' hex character constants.
  3912. These don't provoke an error unfortunately, instead are silently treated
  3913. as 'x'. The following induces an error, until -std is added to get
  3914. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3915. array size at least. It's necessary to write '\x00'==0 to get something
  3916. that's true only with -std. */
  3917. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3918. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3919. inside strings and character constants. */
  3920. #define FOO(x) 'x'
  3921. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3922. int test (int i, double x);
  3923. struct s1 {int (*f) (int a);};
  3924. struct s2 {int (*f) (double a);};
  3925. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3926. int argc;
  3927. char **argv;
  3928. int
  3929. main ()
  3930. {
  3931. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3932. ;
  3933. return 0;
  3934. }
  3935. _ACEOF
  3936. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3937. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3938. do
  3939. CC="$ac_save_CC $ac_arg"
  3940. if ac_fn_c_try_compile "$LINENO"; then :
  3941. ac_cv_prog_cc_c89=$ac_arg
  3942. fi
  3943. rm -f core conftest.err conftest.$ac_objext
  3944. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3945. done
  3946. rm -f conftest.$ac_ext
  3947. CC=$ac_save_CC
  3948. fi
  3949. # AC_CACHE_VAL
  3950. case "x$ac_cv_prog_cc_c89" in
  3951. x)
  3952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3953. $as_echo "none needed" >&6; } ;;
  3954. xno)
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3956. $as_echo "unsupported" >&6; } ;;
  3957. *)
  3958. CC="$CC $ac_cv_prog_cc_c89"
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3960. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3961. esac
  3962. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3963. fi
  3964. ac_ext=c
  3965. ac_cpp='$CPP $CPPFLAGS'
  3966. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3967. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3968. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3969. ac_ext=c
  3970. ac_cpp='$CPP $CPPFLAGS'
  3971. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3972. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3973. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3975. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3976. if ${am_cv_prog_cc_c_o+:} false; then :
  3977. $as_echo_n "(cached) " >&6
  3978. else
  3979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3980. /* end confdefs.h. */
  3981. int
  3982. main ()
  3983. {
  3984. ;
  3985. return 0;
  3986. }
  3987. _ACEOF
  3988. # Make sure it works both with $CC and with simple cc.
  3989. # Following AC_PROG_CC_C_O, we do the test twice because some
  3990. # compilers refuse to overwrite an existing .o file with -o,
  3991. # though they will create one.
  3992. am_cv_prog_cc_c_o=yes
  3993. for am_i in 1 2; do
  3994. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3995. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3996. ac_status=$?
  3997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3998. (exit $ac_status); } \
  3999. && test -f conftest2.$ac_objext; then
  4000. : OK
  4001. else
  4002. am_cv_prog_cc_c_o=no
  4003. break
  4004. fi
  4005. done
  4006. rm -f core conftest*
  4007. unset am_i
  4008. fi
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4010. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4011. if test "$am_cv_prog_cc_c_o" != yes; then
  4012. # Losing compiler, so override with the script.
  4013. # FIXME: It is wrong to rewrite CC.
  4014. # But if we don't then we get into trouble of one sort or another.
  4015. # A longer-term fix would be to have automake use am__CC in this case,
  4016. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4017. CC="$am_aux_dir/compile $CC"
  4018. fi
  4019. ac_ext=c
  4020. ac_cpp='$CPP $CPPFLAGS'
  4021. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4022. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4023. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4024. depcc="$CC" am_compiler_list=
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4026. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4027. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4028. $as_echo_n "(cached) " >&6
  4029. else
  4030. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4031. # We make a subdir and do the tests there. Otherwise we can end up
  4032. # making bogus files that we don't know about and never remove. For
  4033. # instance it was reported that on HP-UX the gcc test will end up
  4034. # making a dummy file named 'D' -- because '-MD' means "put the output
  4035. # in D".
  4036. rm -rf conftest.dir
  4037. mkdir conftest.dir
  4038. # Copy depcomp to subdir because otherwise we won't find it if we're
  4039. # using a relative directory.
  4040. cp "$am_depcomp" conftest.dir
  4041. cd conftest.dir
  4042. # We will build objects and dependencies in a subdirectory because
  4043. # it helps to detect inapplicable dependency modes. For instance
  4044. # both Tru64's cc and ICC support -MD to output dependencies as a
  4045. # side effect of compilation, but ICC will put the dependencies in
  4046. # the current directory while Tru64 will put them in the object
  4047. # directory.
  4048. mkdir sub
  4049. am_cv_CC_dependencies_compiler_type=none
  4050. if test "$am_compiler_list" = ""; then
  4051. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4052. fi
  4053. am__universal=false
  4054. case " $depcc " in #(
  4055. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4056. esac
  4057. for depmode in $am_compiler_list; do
  4058. # Setup a source with many dependencies, because some compilers
  4059. # like to wrap large dependency lists on column 80 (with \), and
  4060. # we should not choose a depcomp mode which is confused by this.
  4061. #
  4062. # We need to recreate these files for each test, as the compiler may
  4063. # overwrite some of them when testing with obscure command lines.
  4064. # This happens at least with the AIX C compiler.
  4065. : > sub/conftest.c
  4066. for i in 1 2 3 4 5 6; do
  4067. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4068. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4069. # Solaris 10 /bin/sh.
  4070. echo '/* dummy */' > sub/conftst$i.h
  4071. done
  4072. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4073. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4074. # mode. It turns out that the SunPro C++ compiler does not properly
  4075. # handle '-M -o', and we need to detect this. Also, some Intel
  4076. # versions had trouble with output in subdirs.
  4077. am__obj=sub/conftest.${OBJEXT-o}
  4078. am__minus_obj="-o $am__obj"
  4079. case $depmode in
  4080. gcc)
  4081. # This depmode causes a compiler race in universal mode.
  4082. test "$am__universal" = false || continue
  4083. ;;
  4084. nosideeffect)
  4085. # After this tag, mechanisms are not by side-effect, so they'll
  4086. # only be used when explicitly requested.
  4087. if test "x$enable_dependency_tracking" = xyes; then
  4088. continue
  4089. else
  4090. break
  4091. fi
  4092. ;;
  4093. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4094. # This compiler won't grok '-c -o', but also, the minuso test has
  4095. # not run yet. These depmodes are late enough in the game, and
  4096. # so weak that their functioning should not be impacted.
  4097. am__obj=conftest.${OBJEXT-o}
  4098. am__minus_obj=
  4099. ;;
  4100. none) break ;;
  4101. esac
  4102. if depmode=$depmode \
  4103. source=sub/conftest.c object=$am__obj \
  4104. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4105. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4106. >/dev/null 2>conftest.err &&
  4107. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4108. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4109. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4110. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4111. # icc doesn't choke on unknown options, it will just issue warnings
  4112. # or remarks (even with -Werror). So we grep stderr for any message
  4113. # that says an option was ignored or not supported.
  4114. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4115. # icc: Command line warning: ignoring option '-M'; no argument required
  4116. # The diagnosis changed in icc 8.0:
  4117. # icc: Command line remark: option '-MP' not supported
  4118. if (grep 'ignoring option' conftest.err ||
  4119. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4120. am_cv_CC_dependencies_compiler_type=$depmode
  4121. break
  4122. fi
  4123. fi
  4124. done
  4125. cd ..
  4126. rm -rf conftest.dir
  4127. else
  4128. am_cv_CC_dependencies_compiler_type=none
  4129. fi
  4130. fi
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4132. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4133. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4134. if
  4135. test "x$enable_dependency_tracking" != xno \
  4136. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4137. am__fastdepCC_TRUE=
  4138. am__fastdepCC_FALSE='#'
  4139. else
  4140. am__fastdepCC_TRUE='#'
  4141. am__fastdepCC_FALSE=
  4142. fi
  4143. # By default we simply use the C compiler to build assembly code.
  4144. test "${CCAS+set}" = set || CCAS=$CC
  4145. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4146. depcc="$CCAS" am_compiler_list=
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4148. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4149. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4150. $as_echo_n "(cached) " >&6
  4151. else
  4152. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4153. # We make a subdir and do the tests there. Otherwise we can end up
  4154. # making bogus files that we don't know about and never remove. For
  4155. # instance it was reported that on HP-UX the gcc test will end up
  4156. # making a dummy file named 'D' -- because '-MD' means "put the output
  4157. # in D".
  4158. rm -rf conftest.dir
  4159. mkdir conftest.dir
  4160. # Copy depcomp to subdir because otherwise we won't find it if we're
  4161. # using a relative directory.
  4162. cp "$am_depcomp" conftest.dir
  4163. cd conftest.dir
  4164. # We will build objects and dependencies in a subdirectory because
  4165. # it helps to detect inapplicable dependency modes. For instance
  4166. # both Tru64's cc and ICC support -MD to output dependencies as a
  4167. # side effect of compilation, but ICC will put the dependencies in
  4168. # the current directory while Tru64 will put them in the object
  4169. # directory.
  4170. mkdir sub
  4171. am_cv_CCAS_dependencies_compiler_type=none
  4172. if test "$am_compiler_list" = ""; then
  4173. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4174. fi
  4175. am__universal=false
  4176. for depmode in $am_compiler_list; do
  4177. # Setup a source with many dependencies, because some compilers
  4178. # like to wrap large dependency lists on column 80 (with \), and
  4179. # we should not choose a depcomp mode which is confused by this.
  4180. #
  4181. # We need to recreate these files for each test, as the compiler may
  4182. # overwrite some of them when testing with obscure command lines.
  4183. # This happens at least with the AIX C compiler.
  4184. : > sub/conftest.c
  4185. for i in 1 2 3 4 5 6; do
  4186. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4187. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4188. # Solaris 10 /bin/sh.
  4189. echo '/* dummy */' > sub/conftst$i.h
  4190. done
  4191. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4192. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4193. # mode. It turns out that the SunPro C++ compiler does not properly
  4194. # handle '-M -o', and we need to detect this. Also, some Intel
  4195. # versions had trouble with output in subdirs.
  4196. am__obj=sub/conftest.${OBJEXT-o}
  4197. am__minus_obj="-o $am__obj"
  4198. case $depmode in
  4199. gcc)
  4200. # This depmode causes a compiler race in universal mode.
  4201. test "$am__universal" = false || continue
  4202. ;;
  4203. nosideeffect)
  4204. # After this tag, mechanisms are not by side-effect, so they'll
  4205. # only be used when explicitly requested.
  4206. if test "x$enable_dependency_tracking" = xyes; then
  4207. continue
  4208. else
  4209. break
  4210. fi
  4211. ;;
  4212. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4213. # This compiler won't grok '-c -o', but also, the minuso test has
  4214. # not run yet. These depmodes are late enough in the game, and
  4215. # so weak that their functioning should not be impacted.
  4216. am__obj=conftest.${OBJEXT-o}
  4217. am__minus_obj=
  4218. ;;
  4219. none) break ;;
  4220. esac
  4221. if depmode=$depmode \
  4222. source=sub/conftest.c object=$am__obj \
  4223. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4224. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4225. >/dev/null 2>conftest.err &&
  4226. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4227. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4228. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4229. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4230. # icc doesn't choke on unknown options, it will just issue warnings
  4231. # or remarks (even with -Werror). So we grep stderr for any message
  4232. # that says an option was ignored or not supported.
  4233. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4234. # icc: Command line warning: ignoring option '-M'; no argument required
  4235. # The diagnosis changed in icc 8.0:
  4236. # icc: Command line remark: option '-MP' not supported
  4237. if (grep 'ignoring option' conftest.err ||
  4238. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4239. am_cv_CCAS_dependencies_compiler_type=$depmode
  4240. break
  4241. fi
  4242. fi
  4243. done
  4244. cd ..
  4245. rm -rf conftest.dir
  4246. else
  4247. am_cv_CCAS_dependencies_compiler_type=none
  4248. fi
  4249. fi
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4251. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4252. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4253. if
  4254. test "x$enable_dependency_tracking" != xno \
  4255. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4256. am__fastdepCCAS_TRUE=
  4257. am__fastdepCCAS_FALSE='#'
  4258. else
  4259. am__fastdepCCAS_TRUE='#'
  4260. am__fastdepCCAS_FALSE=
  4261. fi
  4262. ac_ext=c
  4263. ac_cpp='$CPP $CPPFLAGS'
  4264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4267. if test -n "$ac_tool_prefix"; then
  4268. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4269. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4271. $as_echo_n "checking for $ac_word... " >&6; }
  4272. if ${ac_cv_prog_CC+:} false; then :
  4273. $as_echo_n "(cached) " >&6
  4274. else
  4275. if test -n "$CC"; then
  4276. ac_cv_prog_CC="$CC" # Let the user override the test.
  4277. else
  4278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4279. for as_dir in $PATH
  4280. do
  4281. IFS=$as_save_IFS
  4282. test -z "$as_dir" && as_dir=.
  4283. for ac_exec_ext in '' $ac_executable_extensions; do
  4284. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4285. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4287. break 2
  4288. fi
  4289. done
  4290. done
  4291. IFS=$as_save_IFS
  4292. fi
  4293. fi
  4294. CC=$ac_cv_prog_CC
  4295. if test -n "$CC"; then
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4297. $as_echo "$CC" >&6; }
  4298. else
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4300. $as_echo "no" >&6; }
  4301. fi
  4302. fi
  4303. if test -z "$ac_cv_prog_CC"; then
  4304. ac_ct_CC=$CC
  4305. # Extract the first word of "gcc", so it can be a program name with args.
  4306. set dummy gcc; ac_word=$2
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4308. $as_echo_n "checking for $ac_word... " >&6; }
  4309. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4310. $as_echo_n "(cached) " >&6
  4311. else
  4312. if test -n "$ac_ct_CC"; then
  4313. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4314. else
  4315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4316. for as_dir in $PATH
  4317. do
  4318. IFS=$as_save_IFS
  4319. test -z "$as_dir" && as_dir=.
  4320. for ac_exec_ext in '' $ac_executable_extensions; do
  4321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4322. ac_cv_prog_ac_ct_CC="gcc"
  4323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4324. break 2
  4325. fi
  4326. done
  4327. done
  4328. IFS=$as_save_IFS
  4329. fi
  4330. fi
  4331. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4332. if test -n "$ac_ct_CC"; then
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4334. $as_echo "$ac_ct_CC" >&6; }
  4335. else
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4337. $as_echo "no" >&6; }
  4338. fi
  4339. if test "x$ac_ct_CC" = x; then
  4340. CC=""
  4341. else
  4342. case $cross_compiling:$ac_tool_warned in
  4343. yes:)
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4346. ac_tool_warned=yes ;;
  4347. esac
  4348. CC=$ac_ct_CC
  4349. fi
  4350. else
  4351. CC="$ac_cv_prog_CC"
  4352. fi
  4353. if test -z "$CC"; then
  4354. if test -n "$ac_tool_prefix"; then
  4355. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4356. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4358. $as_echo_n "checking for $ac_word... " >&6; }
  4359. if ${ac_cv_prog_CC+:} false; then :
  4360. $as_echo_n "(cached) " >&6
  4361. else
  4362. if test -n "$CC"; then
  4363. ac_cv_prog_CC="$CC" # Let the user override the test.
  4364. else
  4365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4366. for as_dir in $PATH
  4367. do
  4368. IFS=$as_save_IFS
  4369. test -z "$as_dir" && as_dir=.
  4370. for ac_exec_ext in '' $ac_executable_extensions; do
  4371. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4372. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4374. break 2
  4375. fi
  4376. done
  4377. done
  4378. IFS=$as_save_IFS
  4379. fi
  4380. fi
  4381. CC=$ac_cv_prog_CC
  4382. if test -n "$CC"; then
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4384. $as_echo "$CC" >&6; }
  4385. else
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4387. $as_echo "no" >&6; }
  4388. fi
  4389. fi
  4390. fi
  4391. if test -z "$CC"; then
  4392. # Extract the first word of "cc", so it can be a program name with args.
  4393. set dummy cc; ac_word=$2
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4395. $as_echo_n "checking for $ac_word... " >&6; }
  4396. if ${ac_cv_prog_CC+:} false; then :
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. if test -n "$CC"; then
  4400. ac_cv_prog_CC="$CC" # Let the user override the test.
  4401. else
  4402. ac_prog_rejected=no
  4403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4404. for as_dir in $PATH
  4405. do
  4406. IFS=$as_save_IFS
  4407. test -z "$as_dir" && as_dir=.
  4408. for ac_exec_ext in '' $ac_executable_extensions; do
  4409. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4410. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4411. ac_prog_rejected=yes
  4412. continue
  4413. fi
  4414. ac_cv_prog_CC="cc"
  4415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4416. break 2
  4417. fi
  4418. done
  4419. done
  4420. IFS=$as_save_IFS
  4421. if test $ac_prog_rejected = yes; then
  4422. # We found a bogon in the path, so make sure we never use it.
  4423. set dummy $ac_cv_prog_CC
  4424. shift
  4425. if test $# != 0; then
  4426. # We chose a different compiler from the bogus one.
  4427. # However, it has the same basename, so the bogon will be chosen
  4428. # first if we set CC to just the basename; use the full file name.
  4429. shift
  4430. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4431. fi
  4432. fi
  4433. fi
  4434. fi
  4435. CC=$ac_cv_prog_CC
  4436. if test -n "$CC"; then
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4438. $as_echo "$CC" >&6; }
  4439. else
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4441. $as_echo "no" >&6; }
  4442. fi
  4443. fi
  4444. if test -z "$CC"; then
  4445. if test -n "$ac_tool_prefix"; then
  4446. for ac_prog in cl.exe
  4447. do
  4448. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4449. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4451. $as_echo_n "checking for $ac_word... " >&6; }
  4452. if ${ac_cv_prog_CC+:} false; then :
  4453. $as_echo_n "(cached) " >&6
  4454. else
  4455. if test -n "$CC"; then
  4456. ac_cv_prog_CC="$CC" # Let the user override the test.
  4457. else
  4458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4459. for as_dir in $PATH
  4460. do
  4461. IFS=$as_save_IFS
  4462. test -z "$as_dir" && as_dir=.
  4463. for ac_exec_ext in '' $ac_executable_extensions; do
  4464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4465. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4467. break 2
  4468. fi
  4469. done
  4470. done
  4471. IFS=$as_save_IFS
  4472. fi
  4473. fi
  4474. CC=$ac_cv_prog_CC
  4475. if test -n "$CC"; then
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4477. $as_echo "$CC" >&6; }
  4478. else
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4480. $as_echo "no" >&6; }
  4481. fi
  4482. test -n "$CC" && break
  4483. done
  4484. fi
  4485. if test -z "$CC"; then
  4486. ac_ct_CC=$CC
  4487. for ac_prog in cl.exe
  4488. do
  4489. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4490. set dummy $ac_prog; ac_word=$2
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4492. $as_echo_n "checking for $ac_word... " >&6; }
  4493. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4494. $as_echo_n "(cached) " >&6
  4495. else
  4496. if test -n "$ac_ct_CC"; then
  4497. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4498. else
  4499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4500. for as_dir in $PATH
  4501. do
  4502. IFS=$as_save_IFS
  4503. test -z "$as_dir" && as_dir=.
  4504. for ac_exec_ext in '' $ac_executable_extensions; do
  4505. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4506. ac_cv_prog_ac_ct_CC="$ac_prog"
  4507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4508. break 2
  4509. fi
  4510. done
  4511. done
  4512. IFS=$as_save_IFS
  4513. fi
  4514. fi
  4515. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4516. if test -n "$ac_ct_CC"; then
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4518. $as_echo "$ac_ct_CC" >&6; }
  4519. else
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4521. $as_echo "no" >&6; }
  4522. fi
  4523. test -n "$ac_ct_CC" && break
  4524. done
  4525. if test "x$ac_ct_CC" = x; then
  4526. CC=""
  4527. else
  4528. case $cross_compiling:$ac_tool_warned in
  4529. yes:)
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4531. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4532. ac_tool_warned=yes ;;
  4533. esac
  4534. CC=$ac_ct_CC
  4535. fi
  4536. fi
  4537. fi
  4538. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4539. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4540. as_fn_error $? "no acceptable C compiler found in \$PATH
  4541. See \`config.log' for more details" "$LINENO" 5; }
  4542. # Provide some information about the compiler.
  4543. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4544. set X $ac_compile
  4545. ac_compiler=$2
  4546. for ac_option in --version -v -V -qversion; do
  4547. { { ac_try="$ac_compiler $ac_option >&5"
  4548. case "(($ac_try" in
  4549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4550. *) ac_try_echo=$ac_try;;
  4551. esac
  4552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4553. $as_echo "$ac_try_echo"; } >&5
  4554. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4555. ac_status=$?
  4556. if test -s conftest.err; then
  4557. sed '10a\
  4558. ... rest of stderr output deleted ...
  4559. 10q' conftest.err >conftest.er1
  4560. cat conftest.er1 >&5
  4561. fi
  4562. rm -f conftest.er1 conftest.err
  4563. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4564. test $ac_status = 0; }
  4565. done
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4567. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4568. if ${ac_cv_c_compiler_gnu+:} false; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4572. /* end confdefs.h. */
  4573. int
  4574. main ()
  4575. {
  4576. #ifndef __GNUC__
  4577. choke me
  4578. #endif
  4579. ;
  4580. return 0;
  4581. }
  4582. _ACEOF
  4583. if ac_fn_c_try_compile "$LINENO"; then :
  4584. ac_compiler_gnu=yes
  4585. else
  4586. ac_compiler_gnu=no
  4587. fi
  4588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4589. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4590. fi
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4592. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4593. if test $ac_compiler_gnu = yes; then
  4594. GCC=yes
  4595. else
  4596. GCC=
  4597. fi
  4598. ac_test_CFLAGS=${CFLAGS+set}
  4599. ac_save_CFLAGS=$CFLAGS
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4601. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4602. if ${ac_cv_prog_cc_g+:} false; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. ac_save_c_werror_flag=$ac_c_werror_flag
  4606. ac_c_werror_flag=yes
  4607. ac_cv_prog_cc_g=no
  4608. CFLAGS="-g"
  4609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4610. /* end confdefs.h. */
  4611. int
  4612. main ()
  4613. {
  4614. ;
  4615. return 0;
  4616. }
  4617. _ACEOF
  4618. if ac_fn_c_try_compile "$LINENO"; then :
  4619. ac_cv_prog_cc_g=yes
  4620. else
  4621. CFLAGS=""
  4622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4623. /* end confdefs.h. */
  4624. int
  4625. main ()
  4626. {
  4627. ;
  4628. return 0;
  4629. }
  4630. _ACEOF
  4631. if ac_fn_c_try_compile "$LINENO"; then :
  4632. else
  4633. ac_c_werror_flag=$ac_save_c_werror_flag
  4634. CFLAGS="-g"
  4635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4636. /* end confdefs.h. */
  4637. int
  4638. main ()
  4639. {
  4640. ;
  4641. return 0;
  4642. }
  4643. _ACEOF
  4644. if ac_fn_c_try_compile "$LINENO"; then :
  4645. ac_cv_prog_cc_g=yes
  4646. fi
  4647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4648. fi
  4649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4650. fi
  4651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4652. ac_c_werror_flag=$ac_save_c_werror_flag
  4653. fi
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4655. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4656. if test "$ac_test_CFLAGS" = set; then
  4657. CFLAGS=$ac_save_CFLAGS
  4658. elif test $ac_cv_prog_cc_g = yes; then
  4659. if test "$GCC" = yes; then
  4660. CFLAGS="-g -O2"
  4661. else
  4662. CFLAGS="-g"
  4663. fi
  4664. else
  4665. if test "$GCC" = yes; then
  4666. CFLAGS="-O2"
  4667. else
  4668. CFLAGS=
  4669. fi
  4670. fi
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4672. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4673. if ${ac_cv_prog_cc_c89+:} false; then :
  4674. $as_echo_n "(cached) " >&6
  4675. else
  4676. ac_cv_prog_cc_c89=no
  4677. ac_save_CC=$CC
  4678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4679. /* end confdefs.h. */
  4680. #include <stdarg.h>
  4681. #include <stdio.h>
  4682. struct stat;
  4683. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4684. struct buf { int x; };
  4685. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4686. static char *e (p, i)
  4687. char **p;
  4688. int i;
  4689. {
  4690. return p[i];
  4691. }
  4692. static char *f (char * (*g) (char **, int), char **p, ...)
  4693. {
  4694. char *s;
  4695. va_list v;
  4696. va_start (v,p);
  4697. s = g (p, va_arg (v,int));
  4698. va_end (v);
  4699. return s;
  4700. }
  4701. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4702. function prototypes and stuff, but not '\xHH' hex character constants.
  4703. These don't provoke an error unfortunately, instead are silently treated
  4704. as 'x'. The following induces an error, until -std is added to get
  4705. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4706. array size at least. It's necessary to write '\x00'==0 to get something
  4707. that's true only with -std. */
  4708. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4709. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4710. inside strings and character constants. */
  4711. #define FOO(x) 'x'
  4712. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4713. int test (int i, double x);
  4714. struct s1 {int (*f) (int a);};
  4715. struct s2 {int (*f) (double a);};
  4716. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4717. int argc;
  4718. char **argv;
  4719. int
  4720. main ()
  4721. {
  4722. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4723. ;
  4724. return 0;
  4725. }
  4726. _ACEOF
  4727. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4728. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4729. do
  4730. CC="$ac_save_CC $ac_arg"
  4731. if ac_fn_c_try_compile "$LINENO"; then :
  4732. ac_cv_prog_cc_c89=$ac_arg
  4733. fi
  4734. rm -f core conftest.err conftest.$ac_objext
  4735. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4736. done
  4737. rm -f conftest.$ac_ext
  4738. CC=$ac_save_CC
  4739. fi
  4740. # AC_CACHE_VAL
  4741. case "x$ac_cv_prog_cc_c89" in
  4742. x)
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4744. $as_echo "none needed" >&6; } ;;
  4745. xno)
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4747. $as_echo "unsupported" >&6; } ;;
  4748. *)
  4749. CC="$CC $ac_cv_prog_cc_c89"
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4751. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4752. esac
  4753. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4754. fi
  4755. ac_ext=c
  4756. ac_cpp='$CPP $CPPFLAGS'
  4757. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4758. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4759. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4760. ac_ext=c
  4761. ac_cpp='$CPP $CPPFLAGS'
  4762. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4763. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4764. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4766. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4767. if ${am_cv_prog_cc_c_o+:} false; then :
  4768. $as_echo_n "(cached) " >&6
  4769. else
  4770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4771. /* end confdefs.h. */
  4772. int
  4773. main ()
  4774. {
  4775. ;
  4776. return 0;
  4777. }
  4778. _ACEOF
  4779. # Make sure it works both with $CC and with simple cc.
  4780. # Following AC_PROG_CC_C_O, we do the test twice because some
  4781. # compilers refuse to overwrite an existing .o file with -o,
  4782. # though they will create one.
  4783. am_cv_prog_cc_c_o=yes
  4784. for am_i in 1 2; do
  4785. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4786. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4787. ac_status=$?
  4788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4789. (exit $ac_status); } \
  4790. && test -f conftest2.$ac_objext; then
  4791. : OK
  4792. else
  4793. am_cv_prog_cc_c_o=no
  4794. break
  4795. fi
  4796. done
  4797. rm -f core conftest*
  4798. unset am_i
  4799. fi
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4801. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4802. if test "$am_cv_prog_cc_c_o" != yes; then
  4803. # Losing compiler, so override with the script.
  4804. # FIXME: It is wrong to rewrite CC.
  4805. # But if we don't then we get into trouble of one sort or another.
  4806. # A longer-term fix would be to have automake use am__CC in this case,
  4807. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4808. CC="$am_aux_dir/compile $CC"
  4809. fi
  4810. ac_ext=c
  4811. ac_cpp='$CPP $CPPFLAGS'
  4812. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4813. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4814. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4815. depcc="$CC" am_compiler_list=
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4817. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4818. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4819. $as_echo_n "(cached) " >&6
  4820. else
  4821. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4822. # We make a subdir and do the tests there. Otherwise we can end up
  4823. # making bogus files that we don't know about and never remove. For
  4824. # instance it was reported that on HP-UX the gcc test will end up
  4825. # making a dummy file named 'D' -- because '-MD' means "put the output
  4826. # in D".
  4827. rm -rf conftest.dir
  4828. mkdir conftest.dir
  4829. # Copy depcomp to subdir because otherwise we won't find it if we're
  4830. # using a relative directory.
  4831. cp "$am_depcomp" conftest.dir
  4832. cd conftest.dir
  4833. # We will build objects and dependencies in a subdirectory because
  4834. # it helps to detect inapplicable dependency modes. For instance
  4835. # both Tru64's cc and ICC support -MD to output dependencies as a
  4836. # side effect of compilation, but ICC will put the dependencies in
  4837. # the current directory while Tru64 will put them in the object
  4838. # directory.
  4839. mkdir sub
  4840. am_cv_CC_dependencies_compiler_type=none
  4841. if test "$am_compiler_list" = ""; then
  4842. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4843. fi
  4844. am__universal=false
  4845. case " $depcc " in #(
  4846. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4847. esac
  4848. for depmode in $am_compiler_list; do
  4849. # Setup a source with many dependencies, because some compilers
  4850. # like to wrap large dependency lists on column 80 (with \), and
  4851. # we should not choose a depcomp mode which is confused by this.
  4852. #
  4853. # We need to recreate these files for each test, as the compiler may
  4854. # overwrite some of them when testing with obscure command lines.
  4855. # This happens at least with the AIX C compiler.
  4856. : > sub/conftest.c
  4857. for i in 1 2 3 4 5 6; do
  4858. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4859. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4860. # Solaris 10 /bin/sh.
  4861. echo '/* dummy */' > sub/conftst$i.h
  4862. done
  4863. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4864. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4865. # mode. It turns out that the SunPro C++ compiler does not properly
  4866. # handle '-M -o', and we need to detect this. Also, some Intel
  4867. # versions had trouble with output in subdirs.
  4868. am__obj=sub/conftest.${OBJEXT-o}
  4869. am__minus_obj="-o $am__obj"
  4870. case $depmode in
  4871. gcc)
  4872. # This depmode causes a compiler race in universal mode.
  4873. test "$am__universal" = false || continue
  4874. ;;
  4875. nosideeffect)
  4876. # After this tag, mechanisms are not by side-effect, so they'll
  4877. # only be used when explicitly requested.
  4878. if test "x$enable_dependency_tracking" = xyes; then
  4879. continue
  4880. else
  4881. break
  4882. fi
  4883. ;;
  4884. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4885. # This compiler won't grok '-c -o', but also, the minuso test has
  4886. # not run yet. These depmodes are late enough in the game, and
  4887. # so weak that their functioning should not be impacted.
  4888. am__obj=conftest.${OBJEXT-o}
  4889. am__minus_obj=
  4890. ;;
  4891. none) break ;;
  4892. esac
  4893. if depmode=$depmode \
  4894. source=sub/conftest.c object=$am__obj \
  4895. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4896. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4897. >/dev/null 2>conftest.err &&
  4898. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4899. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4900. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4901. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4902. # icc doesn't choke on unknown options, it will just issue warnings
  4903. # or remarks (even with -Werror). So we grep stderr for any message
  4904. # that says an option was ignored or not supported.
  4905. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4906. # icc: Command line warning: ignoring option '-M'; no argument required
  4907. # The diagnosis changed in icc 8.0:
  4908. # icc: Command line remark: option '-MP' not supported
  4909. if (grep 'ignoring option' conftest.err ||
  4910. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4911. am_cv_CC_dependencies_compiler_type=$depmode
  4912. break
  4913. fi
  4914. fi
  4915. done
  4916. cd ..
  4917. rm -rf conftest.dir
  4918. else
  4919. am_cv_CC_dependencies_compiler_type=none
  4920. fi
  4921. fi
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4923. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4924. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4925. if
  4926. test "x$enable_dependency_tracking" != xno \
  4927. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4928. am__fastdepCC_TRUE=
  4929. am__fastdepCC_FALSE='#'
  4930. else
  4931. am__fastdepCC_TRUE='#'
  4932. am__fastdepCC_FALSE=
  4933. fi
  4934. ac_ext=c
  4935. ac_cpp='$CPP $CPPFLAGS'
  4936. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4937. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4938. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4940. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4941. # On Suns, sometimes $CPP names a directory.
  4942. if test -n "$CPP" && test -d "$CPP"; then
  4943. CPP=
  4944. fi
  4945. if test -z "$CPP"; then
  4946. if ${ac_cv_prog_CPP+:} false; then :
  4947. $as_echo_n "(cached) " >&6
  4948. else
  4949. # Double quotes because CPP needs to be expanded
  4950. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4951. do
  4952. ac_preproc_ok=false
  4953. for ac_c_preproc_warn_flag in '' yes
  4954. do
  4955. # Use a header file that comes with gcc, so configuring glibc
  4956. # with a fresh cross-compiler works.
  4957. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4958. # <limits.h> exists even on freestanding compilers.
  4959. # On the NeXT, cc -E runs the code through the compiler's parser,
  4960. # not just through cpp. "Syntax error" is here to catch this case.
  4961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4962. /* end confdefs.h. */
  4963. #ifdef __STDC__
  4964. # include <limits.h>
  4965. #else
  4966. # include <assert.h>
  4967. #endif
  4968. Syntax error
  4969. _ACEOF
  4970. if ac_fn_c_try_cpp "$LINENO"; then :
  4971. else
  4972. # Broken: fails on valid input.
  4973. continue
  4974. fi
  4975. rm -f conftest.err conftest.i conftest.$ac_ext
  4976. # OK, works on sane cases. Now check whether nonexistent headers
  4977. # can be detected and how.
  4978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4979. /* end confdefs.h. */
  4980. #include <ac_nonexistent.h>
  4981. _ACEOF
  4982. if ac_fn_c_try_cpp "$LINENO"; then :
  4983. # Broken: success on invalid input.
  4984. continue
  4985. else
  4986. # Passes both tests.
  4987. ac_preproc_ok=:
  4988. break
  4989. fi
  4990. rm -f conftest.err conftest.i conftest.$ac_ext
  4991. done
  4992. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4993. rm -f conftest.i conftest.err conftest.$ac_ext
  4994. if $ac_preproc_ok; then :
  4995. break
  4996. fi
  4997. done
  4998. ac_cv_prog_CPP=$CPP
  4999. fi
  5000. CPP=$ac_cv_prog_CPP
  5001. else
  5002. ac_cv_prog_CPP=$CPP
  5003. fi
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5005. $as_echo "$CPP" >&6; }
  5006. ac_preproc_ok=false
  5007. for ac_c_preproc_warn_flag in '' yes
  5008. do
  5009. # Use a header file that comes with gcc, so configuring glibc
  5010. # with a fresh cross-compiler works.
  5011. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5012. # <limits.h> exists even on freestanding compilers.
  5013. # On the NeXT, cc -E runs the code through the compiler's parser,
  5014. # not just through cpp. "Syntax error" is here to catch this case.
  5015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5016. /* end confdefs.h. */
  5017. #ifdef __STDC__
  5018. # include <limits.h>
  5019. #else
  5020. # include <assert.h>
  5021. #endif
  5022. Syntax error
  5023. _ACEOF
  5024. if ac_fn_c_try_cpp "$LINENO"; then :
  5025. else
  5026. # Broken: fails on valid input.
  5027. continue
  5028. fi
  5029. rm -f conftest.err conftest.i conftest.$ac_ext
  5030. # OK, works on sane cases. Now check whether nonexistent headers
  5031. # can be detected and how.
  5032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5033. /* end confdefs.h. */
  5034. #include <ac_nonexistent.h>
  5035. _ACEOF
  5036. if ac_fn_c_try_cpp "$LINENO"; then :
  5037. # Broken: success on invalid input.
  5038. continue
  5039. else
  5040. # Passes both tests.
  5041. ac_preproc_ok=:
  5042. break
  5043. fi
  5044. rm -f conftest.err conftest.i conftest.$ac_ext
  5045. done
  5046. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5047. rm -f conftest.i conftest.err conftest.$ac_ext
  5048. if $ac_preproc_ok; then :
  5049. else
  5050. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5051. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5052. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5053. See \`config.log' for more details" "$LINENO" 5; }
  5054. fi
  5055. ac_ext=c
  5056. ac_cpp='$CPP $CPPFLAGS'
  5057. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5058. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5059. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5061. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5062. if ${ac_cv_path_GREP+:} false; then :
  5063. $as_echo_n "(cached) " >&6
  5064. else
  5065. if test -z "$GREP"; then
  5066. ac_path_GREP_found=false
  5067. # Loop through the user's path and test for each of PROGNAME-LIST
  5068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5069. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5070. do
  5071. IFS=$as_save_IFS
  5072. test -z "$as_dir" && as_dir=.
  5073. for ac_prog in grep ggrep; do
  5074. for ac_exec_ext in '' $ac_executable_extensions; do
  5075. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5076. as_fn_executable_p "$ac_path_GREP" || continue
  5077. # Check for GNU ac_path_GREP and select it if it is found.
  5078. # Check for GNU $ac_path_GREP
  5079. case `"$ac_path_GREP" --version 2>&1` in
  5080. *GNU*)
  5081. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5082. *)
  5083. ac_count=0
  5084. $as_echo_n 0123456789 >"conftest.in"
  5085. while :
  5086. do
  5087. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5088. mv "conftest.tmp" "conftest.in"
  5089. cp "conftest.in" "conftest.nl"
  5090. $as_echo 'GREP' >> "conftest.nl"
  5091. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5092. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5093. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5094. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5095. # Best one so far, save it but keep looking for a better one
  5096. ac_cv_path_GREP="$ac_path_GREP"
  5097. ac_path_GREP_max=$ac_count
  5098. fi
  5099. # 10*(2^10) chars as input seems more than enough
  5100. test $ac_count -gt 10 && break
  5101. done
  5102. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5103. esac
  5104. $ac_path_GREP_found && break 3
  5105. done
  5106. done
  5107. done
  5108. IFS=$as_save_IFS
  5109. if test -z "$ac_cv_path_GREP"; then
  5110. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5111. fi
  5112. else
  5113. ac_cv_path_GREP=$GREP
  5114. fi
  5115. fi
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5117. $as_echo "$ac_cv_path_GREP" >&6; }
  5118. GREP="$ac_cv_path_GREP"
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5120. $as_echo_n "checking for egrep... " >&6; }
  5121. if ${ac_cv_path_EGREP+:} false; then :
  5122. $as_echo_n "(cached) " >&6
  5123. else
  5124. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5125. then ac_cv_path_EGREP="$GREP -E"
  5126. else
  5127. if test -z "$EGREP"; then
  5128. ac_path_EGREP_found=false
  5129. # Loop through the user's path and test for each of PROGNAME-LIST
  5130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5131. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5132. do
  5133. IFS=$as_save_IFS
  5134. test -z "$as_dir" && as_dir=.
  5135. for ac_prog in egrep; do
  5136. for ac_exec_ext in '' $ac_executable_extensions; do
  5137. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5138. as_fn_executable_p "$ac_path_EGREP" || continue
  5139. # Check for GNU ac_path_EGREP and select it if it is found.
  5140. # Check for GNU $ac_path_EGREP
  5141. case `"$ac_path_EGREP" --version 2>&1` in
  5142. *GNU*)
  5143. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5144. *)
  5145. ac_count=0
  5146. $as_echo_n 0123456789 >"conftest.in"
  5147. while :
  5148. do
  5149. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5150. mv "conftest.tmp" "conftest.in"
  5151. cp "conftest.in" "conftest.nl"
  5152. $as_echo 'EGREP' >> "conftest.nl"
  5153. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5154. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5155. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5156. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5157. # Best one so far, save it but keep looking for a better one
  5158. ac_cv_path_EGREP="$ac_path_EGREP"
  5159. ac_path_EGREP_max=$ac_count
  5160. fi
  5161. # 10*(2^10) chars as input seems more than enough
  5162. test $ac_count -gt 10 && break
  5163. done
  5164. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5165. esac
  5166. $ac_path_EGREP_found && break 3
  5167. done
  5168. done
  5169. done
  5170. IFS=$as_save_IFS
  5171. if test -z "$ac_cv_path_EGREP"; then
  5172. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5173. fi
  5174. else
  5175. ac_cv_path_EGREP=$EGREP
  5176. fi
  5177. fi
  5178. fi
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5180. $as_echo "$ac_cv_path_EGREP" >&6; }
  5181. EGREP="$ac_cv_path_EGREP"
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  5183. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  5184. if ${ac_cv_c_const+:} false; then :
  5185. $as_echo_n "(cached) " >&6
  5186. else
  5187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5188. /* end confdefs.h. */
  5189. int
  5190. main ()
  5191. {
  5192. #ifndef __cplusplus
  5193. /* Ultrix mips cc rejects this sort of thing. */
  5194. typedef int charset[2];
  5195. const charset cs = { 0, 0 };
  5196. /* SunOS 4.1.1 cc rejects this. */
  5197. char const *const *pcpcc;
  5198. char **ppc;
  5199. /* NEC SVR4.0.2 mips cc rejects this. */
  5200. struct point {int x, y;};
  5201. static struct point const zero = {0,0};
  5202. /* AIX XL C 1.02.0.0 rejects this.
  5203. It does not let you subtract one const X* pointer from another in
  5204. an arm of an if-expression whose if-part is not a constant
  5205. expression */
  5206. const char *g = "string";
  5207. pcpcc = &g + (g ? g-g : 0);
  5208. /* HPUX 7.0 cc rejects these. */
  5209. ++pcpcc;
  5210. ppc = (char**) pcpcc;
  5211. pcpcc = (char const *const *) ppc;
  5212. { /* SCO 3.2v4 cc rejects this sort of thing. */
  5213. char tx;
  5214. char *t = &tx;
  5215. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5216. *t++ = 0;
  5217. if (s) return 0;
  5218. }
  5219. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5220. int x[] = {25, 17};
  5221. const int *foo = &x[0];
  5222. ++foo;
  5223. }
  5224. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5225. typedef const int *iptr;
  5226. iptr p = 0;
  5227. ++p;
  5228. }
  5229. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  5230. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5231. struct s { int j; const int *ap[3]; } bx;
  5232. struct s *b = &bx; b->j = 5;
  5233. }
  5234. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5235. const int foo = 10;
  5236. if (!foo) return 0;
  5237. }
  5238. return !cs[0] && !zero.x;
  5239. #endif
  5240. ;
  5241. return 0;
  5242. }
  5243. _ACEOF
  5244. if ac_fn_c_try_compile "$LINENO"; then :
  5245. ac_cv_c_const=yes
  5246. else
  5247. ac_cv_c_const=no
  5248. fi
  5249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5250. fi
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  5252. $as_echo "$ac_cv_c_const" >&6; }
  5253. if test $ac_cv_c_const = no; then
  5254. $as_echo "#define const /**/" >>confdefs.h
  5255. fi
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  5257. $as_echo_n "checking for inline... " >&6; }
  5258. if ${ac_cv_c_inline+:} false; then :
  5259. $as_echo_n "(cached) " >&6
  5260. else
  5261. ac_cv_c_inline=no
  5262. for ac_kw in inline __inline__ __inline; do
  5263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5264. /* end confdefs.h. */
  5265. #ifndef __cplusplus
  5266. typedef int foo_t;
  5267. static $ac_kw foo_t static_foo () {return 0; }
  5268. $ac_kw foo_t foo () {return 0; }
  5269. #endif
  5270. _ACEOF
  5271. if ac_fn_c_try_compile "$LINENO"; then :
  5272. ac_cv_c_inline=$ac_kw
  5273. fi
  5274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5275. test "$ac_cv_c_inline" != no && break
  5276. done
  5277. fi
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  5279. $as_echo "$ac_cv_c_inline" >&6; }
  5280. case $ac_cv_c_inline in
  5281. inline | yes) ;;
  5282. *)
  5283. case $ac_cv_c_inline in
  5284. no) ac_val=;;
  5285. *) ac_val=$ac_cv_c_inline;;
  5286. esac
  5287. cat >>confdefs.h <<_ACEOF
  5288. #ifndef __cplusplus
  5289. #define inline $ac_val
  5290. #endif
  5291. _ACEOF
  5292. ;;
  5293. esac
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5295. $as_echo_n "checking for ANSI C header files... " >&6; }
  5296. if ${ac_cv_header_stdc+:} false; then :
  5297. $as_echo_n "(cached) " >&6
  5298. else
  5299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5300. /* end confdefs.h. */
  5301. #include <stdlib.h>
  5302. #include <stdarg.h>
  5303. #include <string.h>
  5304. #include <float.h>
  5305. int
  5306. main ()
  5307. {
  5308. ;
  5309. return 0;
  5310. }
  5311. _ACEOF
  5312. if ac_fn_c_try_compile "$LINENO"; then :
  5313. ac_cv_header_stdc=yes
  5314. else
  5315. ac_cv_header_stdc=no
  5316. fi
  5317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5318. if test $ac_cv_header_stdc = yes; then
  5319. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5321. /* end confdefs.h. */
  5322. #include <string.h>
  5323. _ACEOF
  5324. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5325. $EGREP "memchr" >/dev/null 2>&1; then :
  5326. else
  5327. ac_cv_header_stdc=no
  5328. fi
  5329. rm -f conftest*
  5330. fi
  5331. if test $ac_cv_header_stdc = yes; then
  5332. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5334. /* end confdefs.h. */
  5335. #include <stdlib.h>
  5336. _ACEOF
  5337. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5338. $EGREP "free" >/dev/null 2>&1; then :
  5339. else
  5340. ac_cv_header_stdc=no
  5341. fi
  5342. rm -f conftest*
  5343. fi
  5344. if test $ac_cv_header_stdc = yes; then
  5345. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5346. if test "$cross_compiling" = yes; then :
  5347. :
  5348. else
  5349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5350. /* end confdefs.h. */
  5351. #include <ctype.h>
  5352. #include <stdlib.h>
  5353. #if ((' ' & 0x0FF) == 0x020)
  5354. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5355. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5356. #else
  5357. # define ISLOWER(c) \
  5358. (('a' <= (c) && (c) <= 'i') \
  5359. || ('j' <= (c) && (c) <= 'r') \
  5360. || ('s' <= (c) && (c) <= 'z'))
  5361. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5362. #endif
  5363. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5364. int
  5365. main ()
  5366. {
  5367. int i;
  5368. for (i = 0; i < 256; i++)
  5369. if (XOR (islower (i), ISLOWER (i))
  5370. || toupper (i) != TOUPPER (i))
  5371. return 2;
  5372. return 0;
  5373. }
  5374. _ACEOF
  5375. if ac_fn_c_try_run "$LINENO"; then :
  5376. else
  5377. ac_cv_header_stdc=no
  5378. fi
  5379. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5380. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5381. fi
  5382. fi
  5383. fi
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5385. $as_echo "$ac_cv_header_stdc" >&6; }
  5386. if test $ac_cv_header_stdc = yes; then
  5387. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5388. fi
  5389. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5390. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5391. inttypes.h stdint.h unistd.h
  5392. do :
  5393. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5394. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5395. "
  5396. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5397. cat >>confdefs.h <<_ACEOF
  5398. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5399. _ACEOF
  5400. fi
  5401. done
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5403. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5404. if ${ac_cv_c_bigendian+:} false; then :
  5405. $as_echo_n "(cached) " >&6
  5406. else
  5407. ac_cv_c_bigendian=unknown
  5408. # See if we're dealing with a universal compiler.
  5409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5410. /* end confdefs.h. */
  5411. #ifndef __APPLE_CC__
  5412. not a universal capable compiler
  5413. #endif
  5414. typedef int dummy;
  5415. _ACEOF
  5416. if ac_fn_c_try_compile "$LINENO"; then :
  5417. # Check for potential -arch flags. It is not universal unless
  5418. # there are at least two -arch flags with different values.
  5419. ac_arch=
  5420. ac_prev=
  5421. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5422. if test -n "$ac_prev"; then
  5423. case $ac_word in
  5424. i?86 | x86_64 | ppc | ppc64)
  5425. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5426. ac_arch=$ac_word
  5427. else
  5428. ac_cv_c_bigendian=universal
  5429. break
  5430. fi
  5431. ;;
  5432. esac
  5433. ac_prev=
  5434. elif test "x$ac_word" = "x-arch"; then
  5435. ac_prev=arch
  5436. fi
  5437. done
  5438. fi
  5439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5440. if test $ac_cv_c_bigendian = unknown; then
  5441. # See if sys/param.h defines the BYTE_ORDER macro.
  5442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5443. /* end confdefs.h. */
  5444. #include <sys/types.h>
  5445. #include <sys/param.h>
  5446. int
  5447. main ()
  5448. {
  5449. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5450. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5451. && LITTLE_ENDIAN)
  5452. bogus endian macros
  5453. #endif
  5454. ;
  5455. return 0;
  5456. }
  5457. _ACEOF
  5458. if ac_fn_c_try_compile "$LINENO"; then :
  5459. # It does; now see whether it defined to BIG_ENDIAN or not.
  5460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5461. /* end confdefs.h. */
  5462. #include <sys/types.h>
  5463. #include <sys/param.h>
  5464. int
  5465. main ()
  5466. {
  5467. #if BYTE_ORDER != BIG_ENDIAN
  5468. not big endian
  5469. #endif
  5470. ;
  5471. return 0;
  5472. }
  5473. _ACEOF
  5474. if ac_fn_c_try_compile "$LINENO"; then :
  5475. ac_cv_c_bigendian=yes
  5476. else
  5477. ac_cv_c_bigendian=no
  5478. fi
  5479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5480. fi
  5481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5482. fi
  5483. if test $ac_cv_c_bigendian = unknown; then
  5484. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5486. /* end confdefs.h. */
  5487. #include <limits.h>
  5488. int
  5489. main ()
  5490. {
  5491. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5492. bogus endian macros
  5493. #endif
  5494. ;
  5495. return 0;
  5496. }
  5497. _ACEOF
  5498. if ac_fn_c_try_compile "$LINENO"; then :
  5499. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5501. /* end confdefs.h. */
  5502. #include <limits.h>
  5503. int
  5504. main ()
  5505. {
  5506. #ifndef _BIG_ENDIAN
  5507. not big endian
  5508. #endif
  5509. ;
  5510. return 0;
  5511. }
  5512. _ACEOF
  5513. if ac_fn_c_try_compile "$LINENO"; then :
  5514. ac_cv_c_bigendian=yes
  5515. else
  5516. ac_cv_c_bigendian=no
  5517. fi
  5518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5519. fi
  5520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5521. fi
  5522. if test $ac_cv_c_bigendian = unknown; then
  5523. # Compile a test program.
  5524. if test "$cross_compiling" = yes; then :
  5525. # Try to guess by grepping values from an object file.
  5526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5527. /* end confdefs.h. */
  5528. short int ascii_mm[] =
  5529. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5530. short int ascii_ii[] =
  5531. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5532. int use_ascii (int i) {
  5533. return ascii_mm[i] + ascii_ii[i];
  5534. }
  5535. short int ebcdic_ii[] =
  5536. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5537. short int ebcdic_mm[] =
  5538. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5539. int use_ebcdic (int i) {
  5540. return ebcdic_mm[i] + ebcdic_ii[i];
  5541. }
  5542. extern int foo;
  5543. int
  5544. main ()
  5545. {
  5546. return use_ascii (foo) == use_ebcdic (foo);
  5547. ;
  5548. return 0;
  5549. }
  5550. _ACEOF
  5551. if ac_fn_c_try_compile "$LINENO"; then :
  5552. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5553. ac_cv_c_bigendian=yes
  5554. fi
  5555. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5556. if test "$ac_cv_c_bigendian" = unknown; then
  5557. ac_cv_c_bigendian=no
  5558. else
  5559. # finding both strings is unlikely to happen, but who knows?
  5560. ac_cv_c_bigendian=unknown
  5561. fi
  5562. fi
  5563. fi
  5564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5565. else
  5566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5567. /* end confdefs.h. */
  5568. $ac_includes_default
  5569. int
  5570. main ()
  5571. {
  5572. /* Are we little or big endian? From Harbison&Steele. */
  5573. union
  5574. {
  5575. long int l;
  5576. char c[sizeof (long int)];
  5577. } u;
  5578. u.l = 1;
  5579. return u.c[sizeof (long int) - 1] == 1;
  5580. ;
  5581. return 0;
  5582. }
  5583. _ACEOF
  5584. if ac_fn_c_try_run "$LINENO"; then :
  5585. ac_cv_c_bigendian=no
  5586. else
  5587. ac_cv_c_bigendian=yes
  5588. fi
  5589. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5590. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5591. fi
  5592. fi
  5593. fi
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5595. $as_echo "$ac_cv_c_bigendian" >&6; }
  5596. case $ac_cv_c_bigendian in #(
  5597. yes)
  5598. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  5599. ;; #(
  5600. no)
  5601. ;; #(
  5602. universal)
  5603. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5604. ;; #(
  5605. *)
  5606. as_fn_error $? "unknown endianness
  5607. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5608. esac
  5609. modules=auto
  5610. OUTPUT_OBJ="module.\$(OBJEXT)"
  5611. # Check whether --enable-modules was given.
  5612. if test "${enable_modules+set}" = set; then :
  5613. enableval=$enable_modules;
  5614. if test "x$enableval" = xyes
  5615. then
  5616. modules=enabled
  5617. else
  5618. modules=disabled
  5619. fi
  5620. else
  5621. if test "x$be_static" = "xyes"; then
  5622. modules=disabled
  5623. else
  5624. modules=auto
  5625. fi
  5626. fi
  5627. # Check whether --enable-static was given.
  5628. if test "${enable_static+set}" = set; then :
  5629. enableval=$enable_static; p=${PACKAGE-default}
  5630. case $enableval in
  5631. yes) enable_static=yes ;;
  5632. no) enable_static=no ;;
  5633. *)
  5634. enable_static=no
  5635. # Look at the argument we got. We use all the common list separators.
  5636. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5637. for pkg in $enableval; do
  5638. IFS="$lt_save_ifs"
  5639. if test "X$pkg" = "X$p"; then
  5640. enable_static=yes
  5641. fi
  5642. done
  5643. IFS="$lt_save_ifs"
  5644. ;;
  5645. esac
  5646. else
  5647. enable_static=no
  5648. fi
  5649. # Check whether --enable-shared was given.
  5650. if test "${enable_shared+set}" = set; then :
  5651. enableval=$enable_shared; p=${PACKAGE-default}
  5652. case $enableval in
  5653. yes) enable_shared=yes ;;
  5654. no) enable_shared=no ;;
  5655. *)
  5656. enable_shared=no
  5657. # Look at the argument we got. We use all the common list separators.
  5658. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5659. for pkg in $enableval; do
  5660. IFS="$lt_save_ifs"
  5661. if test "X$pkg" = "X$p"; then
  5662. enable_shared=yes
  5663. fi
  5664. done
  5665. IFS="$lt_save_ifs"
  5666. ;;
  5667. esac
  5668. else
  5669. enable_shared=yes
  5670. fi
  5671. if test x"$enable_shared" = xno; then
  5672. modules=disabled
  5673. LT_LDFLAGS=
  5674. else
  5675. $as_echo "#define DYNAMIC_BUILD 1" >>confdefs.h
  5676. fi
  5677. if test x"$modules" = xdisabled
  5678. then
  5679. echo "Modules disabled, not checking for libltdl."
  5680. else
  5681. have_ltdl=no
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
  5683. $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
  5684. if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
  5685. $as_echo_n "(cached) " >&6
  5686. else
  5687. ac_check_lib_save_LIBS=$LIBS
  5688. LIBS="-lltdl $LIBS"
  5689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5690. /* end confdefs.h. */
  5691. /* Override any GCC internal prototype to avoid an error.
  5692. Use char because int might match the return type of a GCC
  5693. builtin and then its argument prototype would still apply. */
  5694. #ifdef __cplusplus
  5695. extern "C"
  5696. #endif
  5697. char lt_dlinit ();
  5698. int
  5699. main ()
  5700. {
  5701. return lt_dlinit ();
  5702. ;
  5703. return 0;
  5704. }
  5705. _ACEOF
  5706. if ac_fn_c_try_link "$LINENO"; then :
  5707. ac_cv_lib_ltdl_lt_dlinit=yes
  5708. else
  5709. ac_cv_lib_ltdl_lt_dlinit=no
  5710. fi
  5711. rm -f core conftest.err conftest.$ac_objext \
  5712. conftest$ac_exeext conftest.$ac_ext
  5713. LIBS=$ac_check_lib_save_LIBS
  5714. fi
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
  5716. $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
  5717. if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
  5718. ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
  5719. if test "x$ac_cv_header_ltdl_h" = xyes; then :
  5720. have_ltdl=yes
  5721. $as_echo "#define HAVE_LTDL 1" >>confdefs.h
  5722. else
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found ltdl library but NOT the header file on your system" >&5
  5724. $as_echo "$as_me: WARNING: Found ltdl library but NOT the header file on your system" >&2;}
  5725. fi
  5726. else
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ltdl library not found" >&5
  5728. $as_echo "$as_me: WARNING: ltdl library not found" >&2;}
  5729. fi
  5730. if test x"$modules" = xenabled -a x"$have_ltdl" = xno; then
  5731. as_fn_error $? "Modules enabled but no libltdl found! This will not work..." "$LINENO" 5
  5732. fi
  5733. if test x"$modules" = xauto; then
  5734. if test x"$have_ltdl" = xyes; then
  5735. modules=enabled
  5736. echo "We found libltdl: Modules enabled."
  5737. else
  5738. echo "We did not find libltdl: Modules disabled."
  5739. modules=disabled
  5740. fi
  5741. fi
  5742. fi
  5743. if test x"$modules" = xdisabled
  5744. then
  5745. echo "Modules disabled."
  5746. else
  5747. # Enable module support in source code
  5748. $as_echo "#define USE_MODULES 1" >>confdefs.h
  5749. fi
  5750. enable_win32_dll=yes
  5751. case $host in
  5752. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  5753. if test -n "$ac_tool_prefix"; then
  5754. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  5755. set dummy ${ac_tool_prefix}as; ac_word=$2
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5757. $as_echo_n "checking for $ac_word... " >&6; }
  5758. if ${ac_cv_prog_AS+:} false; then :
  5759. $as_echo_n "(cached) " >&6
  5760. else
  5761. if test -n "$AS"; then
  5762. ac_cv_prog_AS="$AS" # Let the user override the test.
  5763. else
  5764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5765. for as_dir in $PATH
  5766. do
  5767. IFS=$as_save_IFS
  5768. test -z "$as_dir" && as_dir=.
  5769. for ac_exec_ext in '' $ac_executable_extensions; do
  5770. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5771. ac_cv_prog_AS="${ac_tool_prefix}as"
  5772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5773. break 2
  5774. fi
  5775. done
  5776. done
  5777. IFS=$as_save_IFS
  5778. fi
  5779. fi
  5780. AS=$ac_cv_prog_AS
  5781. if test -n "$AS"; then
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  5783. $as_echo "$AS" >&6; }
  5784. else
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5786. $as_echo "no" >&6; }
  5787. fi
  5788. fi
  5789. if test -z "$ac_cv_prog_AS"; then
  5790. ac_ct_AS=$AS
  5791. # Extract the first word of "as", so it can be a program name with args.
  5792. set dummy as; ac_word=$2
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5794. $as_echo_n "checking for $ac_word... " >&6; }
  5795. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  5796. $as_echo_n "(cached) " >&6
  5797. else
  5798. if test -n "$ac_ct_AS"; then
  5799. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  5800. else
  5801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5802. for as_dir in $PATH
  5803. do
  5804. IFS=$as_save_IFS
  5805. test -z "$as_dir" && as_dir=.
  5806. for ac_exec_ext in '' $ac_executable_extensions; do
  5807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5808. ac_cv_prog_ac_ct_AS="as"
  5809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5810. break 2
  5811. fi
  5812. done
  5813. done
  5814. IFS=$as_save_IFS
  5815. fi
  5816. fi
  5817. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  5818. if test -n "$ac_ct_AS"; then
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  5820. $as_echo "$ac_ct_AS" >&6; }
  5821. else
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. $as_echo "no" >&6; }
  5824. fi
  5825. if test "x$ac_ct_AS" = x; then
  5826. AS="false"
  5827. else
  5828. case $cross_compiling:$ac_tool_warned in
  5829. yes:)
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5831. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5832. ac_tool_warned=yes ;;
  5833. esac
  5834. AS=$ac_ct_AS
  5835. fi
  5836. else
  5837. AS="$ac_cv_prog_AS"
  5838. fi
  5839. if test -n "$ac_tool_prefix"; then
  5840. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5841. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5843. $as_echo_n "checking for $ac_word... " >&6; }
  5844. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5845. $as_echo_n "(cached) " >&6
  5846. else
  5847. if test -n "$DLLTOOL"; then
  5848. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5849. else
  5850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5851. for as_dir in $PATH
  5852. do
  5853. IFS=$as_save_IFS
  5854. test -z "$as_dir" && as_dir=.
  5855. for ac_exec_ext in '' $ac_executable_extensions; do
  5856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5857. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5859. break 2
  5860. fi
  5861. done
  5862. done
  5863. IFS=$as_save_IFS
  5864. fi
  5865. fi
  5866. DLLTOOL=$ac_cv_prog_DLLTOOL
  5867. if test -n "$DLLTOOL"; then
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5869. $as_echo "$DLLTOOL" >&6; }
  5870. else
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5872. $as_echo "no" >&6; }
  5873. fi
  5874. fi
  5875. if test -z "$ac_cv_prog_DLLTOOL"; then
  5876. ac_ct_DLLTOOL=$DLLTOOL
  5877. # Extract the first word of "dlltool", so it can be a program name with args.
  5878. set dummy dlltool; ac_word=$2
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5880. $as_echo_n "checking for $ac_word... " >&6; }
  5881. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5882. $as_echo_n "(cached) " >&6
  5883. else
  5884. if test -n "$ac_ct_DLLTOOL"; then
  5885. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5886. else
  5887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5888. for as_dir in $PATH
  5889. do
  5890. IFS=$as_save_IFS
  5891. test -z "$as_dir" && as_dir=.
  5892. for ac_exec_ext in '' $ac_executable_extensions; do
  5893. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5894. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5896. break 2
  5897. fi
  5898. done
  5899. done
  5900. IFS=$as_save_IFS
  5901. fi
  5902. fi
  5903. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5904. if test -n "$ac_ct_DLLTOOL"; then
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5906. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5907. else
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5909. $as_echo "no" >&6; }
  5910. fi
  5911. if test "x$ac_ct_DLLTOOL" = x; then
  5912. DLLTOOL="false"
  5913. else
  5914. case $cross_compiling:$ac_tool_warned in
  5915. yes:)
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5917. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5918. ac_tool_warned=yes ;;
  5919. esac
  5920. DLLTOOL=$ac_ct_DLLTOOL
  5921. fi
  5922. else
  5923. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5924. fi
  5925. if test -n "$ac_tool_prefix"; then
  5926. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5927. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5929. $as_echo_n "checking for $ac_word... " >&6; }
  5930. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5931. $as_echo_n "(cached) " >&6
  5932. else
  5933. if test -n "$OBJDUMP"; then
  5934. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5935. else
  5936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5937. for as_dir in $PATH
  5938. do
  5939. IFS=$as_save_IFS
  5940. test -z "$as_dir" && as_dir=.
  5941. for ac_exec_ext in '' $ac_executable_extensions; do
  5942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5943. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5945. break 2
  5946. fi
  5947. done
  5948. done
  5949. IFS=$as_save_IFS
  5950. fi
  5951. fi
  5952. OBJDUMP=$ac_cv_prog_OBJDUMP
  5953. if test -n "$OBJDUMP"; then
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5955. $as_echo "$OBJDUMP" >&6; }
  5956. else
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5958. $as_echo "no" >&6; }
  5959. fi
  5960. fi
  5961. if test -z "$ac_cv_prog_OBJDUMP"; then
  5962. ac_ct_OBJDUMP=$OBJDUMP
  5963. # Extract the first word of "objdump", so it can be a program name with args.
  5964. set dummy objdump; ac_word=$2
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5966. $as_echo_n "checking for $ac_word... " >&6; }
  5967. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5968. $as_echo_n "(cached) " >&6
  5969. else
  5970. if test -n "$ac_ct_OBJDUMP"; then
  5971. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5972. else
  5973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5974. for as_dir in $PATH
  5975. do
  5976. IFS=$as_save_IFS
  5977. test -z "$as_dir" && as_dir=.
  5978. for ac_exec_ext in '' $ac_executable_extensions; do
  5979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5980. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5982. break 2
  5983. fi
  5984. done
  5985. done
  5986. IFS=$as_save_IFS
  5987. fi
  5988. fi
  5989. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5990. if test -n "$ac_ct_OBJDUMP"; then
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5992. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5993. else
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5995. $as_echo "no" >&6; }
  5996. fi
  5997. if test "x$ac_ct_OBJDUMP" = x; then
  5998. OBJDUMP="false"
  5999. else
  6000. case $cross_compiling:$ac_tool_warned in
  6001. yes:)
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6003. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6004. ac_tool_warned=yes ;;
  6005. esac
  6006. OBJDUMP=$ac_ct_OBJDUMP
  6007. fi
  6008. else
  6009. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6010. fi
  6011. ;;
  6012. esac
  6013. test -z "$AS" && AS=as
  6014. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6015. test -z "$OBJDUMP" && OBJDUMP=objdump
  6016. case `pwd` in
  6017. *\ * | *\ *)
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6019. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6020. esac
  6021. macro_version='2.4.2'
  6022. macro_revision='1.3337'
  6023. ltmain="$ac_aux_dir/ltmain.sh"
  6024. # Backslashify metacharacters that are still active within
  6025. # double-quoted strings.
  6026. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6027. # Same as above, but do not quote variable references.
  6028. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6029. # Sed substitution to delay expansion of an escaped shell variable in a
  6030. # double_quote_subst'ed string.
  6031. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6032. # Sed substitution to delay expansion of an escaped single quote.
  6033. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6034. # Sed substitution to avoid accidental globbing in evaled expressions
  6035. no_glob_subst='s/\*/\\\*/g'
  6036. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6037. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6038. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6040. $as_echo_n "checking how to print strings... " >&6; }
  6041. # Test print first, because it will be a builtin if present.
  6042. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  6043. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6044. ECHO='print -r --'
  6045. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6046. ECHO='printf %s\n'
  6047. else
  6048. # Use this function as a fallback that always works.
  6049. func_fallback_echo ()
  6050. {
  6051. eval 'cat <<_LTECHO_EOF
  6052. $1
  6053. _LTECHO_EOF'
  6054. }
  6055. ECHO='func_fallback_echo'
  6056. fi
  6057. # func_echo_all arg...
  6058. # Invoke $ECHO with all args, space-separated.
  6059. func_echo_all ()
  6060. {
  6061. $ECHO ""
  6062. }
  6063. case "$ECHO" in
  6064. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  6065. $as_echo "printf" >&6; } ;;
  6066. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  6067. $as_echo "print -r" >&6; } ;;
  6068. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  6069. $as_echo "cat" >&6; } ;;
  6070. esac
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6072. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6073. if ${ac_cv_path_SED+:} false; then :
  6074. $as_echo_n "(cached) " >&6
  6075. else
  6076. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6077. for ac_i in 1 2 3 4 5 6 7; do
  6078. ac_script="$ac_script$as_nl$ac_script"
  6079. done
  6080. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6081. { ac_script=; unset ac_script;}
  6082. if test -z "$SED"; then
  6083. ac_path_SED_found=false
  6084. # Loop through the user's path and test for each of PROGNAME-LIST
  6085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6086. for as_dir in $PATH
  6087. do
  6088. IFS=$as_save_IFS
  6089. test -z "$as_dir" && as_dir=.
  6090. for ac_prog in sed gsed; do
  6091. for ac_exec_ext in '' $ac_executable_extensions; do
  6092. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6093. as_fn_executable_p "$ac_path_SED" || continue
  6094. # Check for GNU ac_path_SED and select it if it is found.
  6095. # Check for GNU $ac_path_SED
  6096. case `"$ac_path_SED" --version 2>&1` in
  6097. *GNU*)
  6098. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6099. *)
  6100. ac_count=0
  6101. $as_echo_n 0123456789 >"conftest.in"
  6102. while :
  6103. do
  6104. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6105. mv "conftest.tmp" "conftest.in"
  6106. cp "conftest.in" "conftest.nl"
  6107. $as_echo '' >> "conftest.nl"
  6108. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6109. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6110. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6111. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6112. # Best one so far, save it but keep looking for a better one
  6113. ac_cv_path_SED="$ac_path_SED"
  6114. ac_path_SED_max=$ac_count
  6115. fi
  6116. # 10*(2^10) chars as input seems more than enough
  6117. test $ac_count -gt 10 && break
  6118. done
  6119. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6120. esac
  6121. $ac_path_SED_found && break 3
  6122. done
  6123. done
  6124. done
  6125. IFS=$as_save_IFS
  6126. if test -z "$ac_cv_path_SED"; then
  6127. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6128. fi
  6129. else
  6130. ac_cv_path_SED=$SED
  6131. fi
  6132. fi
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6134. $as_echo "$ac_cv_path_SED" >&6; }
  6135. SED="$ac_cv_path_SED"
  6136. rm -f conftest.sed
  6137. test -z "$SED" && SED=sed
  6138. Xsed="$SED -e 1s/^X//"
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  6140. $as_echo_n "checking for fgrep... " >&6; }
  6141. if ${ac_cv_path_FGREP+:} false; then :
  6142. $as_echo_n "(cached) " >&6
  6143. else
  6144. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6145. then ac_cv_path_FGREP="$GREP -F"
  6146. else
  6147. if test -z "$FGREP"; then
  6148. ac_path_FGREP_found=false
  6149. # Loop through the user's path and test for each of PROGNAME-LIST
  6150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6151. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6152. do
  6153. IFS=$as_save_IFS
  6154. test -z "$as_dir" && as_dir=.
  6155. for ac_prog in fgrep; do
  6156. for ac_exec_ext in '' $ac_executable_extensions; do
  6157. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  6158. as_fn_executable_p "$ac_path_FGREP" || continue
  6159. # Check for GNU ac_path_FGREP and select it if it is found.
  6160. # Check for GNU $ac_path_FGREP
  6161. case `"$ac_path_FGREP" --version 2>&1` in
  6162. *GNU*)
  6163. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6164. *)
  6165. ac_count=0
  6166. $as_echo_n 0123456789 >"conftest.in"
  6167. while :
  6168. do
  6169. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6170. mv "conftest.tmp" "conftest.in"
  6171. cp "conftest.in" "conftest.nl"
  6172. $as_echo 'FGREP' >> "conftest.nl"
  6173. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6174. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6175. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6176. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6177. # Best one so far, save it but keep looking for a better one
  6178. ac_cv_path_FGREP="$ac_path_FGREP"
  6179. ac_path_FGREP_max=$ac_count
  6180. fi
  6181. # 10*(2^10) chars as input seems more than enough
  6182. test $ac_count -gt 10 && break
  6183. done
  6184. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6185. esac
  6186. $ac_path_FGREP_found && break 3
  6187. done
  6188. done
  6189. done
  6190. IFS=$as_save_IFS
  6191. if test -z "$ac_cv_path_FGREP"; then
  6192. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6193. fi
  6194. else
  6195. ac_cv_path_FGREP=$FGREP
  6196. fi
  6197. fi
  6198. fi
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  6200. $as_echo "$ac_cv_path_FGREP" >&6; }
  6201. FGREP="$ac_cv_path_FGREP"
  6202. test -z "$GREP" && GREP=grep
  6203. # Check whether --with-gnu-ld was given.
  6204. if test "${with_gnu_ld+set}" = set; then :
  6205. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  6206. else
  6207. with_gnu_ld=no
  6208. fi
  6209. ac_prog=ld
  6210. if test "$GCC" = yes; then
  6211. # Check if gcc -print-prog-name=ld gives a path.
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  6213. $as_echo_n "checking for ld used by $CC... " >&6; }
  6214. case $host in
  6215. *-*-mingw*)
  6216. # gcc leaves a trailing carriage return which upsets mingw
  6217. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6218. *)
  6219. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6220. esac
  6221. case $ac_prog in
  6222. # Accept absolute paths.
  6223. [\\/]* | ?:[\\/]*)
  6224. re_direlt='/[^/][^/]*/\.\./'
  6225. # Canonicalize the pathname of ld
  6226. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6227. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6228. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6229. done
  6230. test -z "$LD" && LD="$ac_prog"
  6231. ;;
  6232. "")
  6233. # If it fails, then pretend we aren't using GCC.
  6234. ac_prog=ld
  6235. ;;
  6236. *)
  6237. # If it is relative, then search for the first ld in PATH.
  6238. with_gnu_ld=unknown
  6239. ;;
  6240. esac
  6241. elif test "$with_gnu_ld" = yes; then
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6243. $as_echo_n "checking for GNU ld... " >&6; }
  6244. else
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6246. $as_echo_n "checking for non-GNU ld... " >&6; }
  6247. fi
  6248. if ${lt_cv_path_LD+:} false; then :
  6249. $as_echo_n "(cached) " >&6
  6250. else
  6251. if test -z "$LD"; then
  6252. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6253. for ac_dir in $PATH; do
  6254. IFS="$lt_save_ifs"
  6255. test -z "$ac_dir" && ac_dir=.
  6256. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6257. lt_cv_path_LD="$ac_dir/$ac_prog"
  6258. # Check to see if the program is GNU ld. I'd rather use --version,
  6259. # but apparently some variants of GNU ld only accept -v.
  6260. # Break only if it was the GNU/non-GNU ld that we prefer.
  6261. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6262. *GNU* | *'with BFD'*)
  6263. test "$with_gnu_ld" != no && break
  6264. ;;
  6265. *)
  6266. test "$with_gnu_ld" != yes && break
  6267. ;;
  6268. esac
  6269. fi
  6270. done
  6271. IFS="$lt_save_ifs"
  6272. else
  6273. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  6274. fi
  6275. fi
  6276. LD="$lt_cv_path_LD"
  6277. if test -n "$LD"; then
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6279. $as_echo "$LD" >&6; }
  6280. else
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6282. $as_echo "no" >&6; }
  6283. fi
  6284. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6286. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6287. if ${lt_cv_prog_gnu_ld+:} false; then :
  6288. $as_echo_n "(cached) " >&6
  6289. else
  6290. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6291. case `$LD -v 2>&1 </dev/null` in
  6292. *GNU* | *'with BFD'*)
  6293. lt_cv_prog_gnu_ld=yes
  6294. ;;
  6295. *)
  6296. lt_cv_prog_gnu_ld=no
  6297. ;;
  6298. esac
  6299. fi
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6301. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6302. with_gnu_ld=$lt_cv_prog_gnu_ld
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6304. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6305. if ${lt_cv_path_NM+:} false; then :
  6306. $as_echo_n "(cached) " >&6
  6307. else
  6308. if test -n "$NM"; then
  6309. # Let the user override the test.
  6310. lt_cv_path_NM="$NM"
  6311. else
  6312. lt_nm_to_check="${ac_tool_prefix}nm"
  6313. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6314. lt_nm_to_check="$lt_nm_to_check nm"
  6315. fi
  6316. for lt_tmp_nm in $lt_nm_to_check; do
  6317. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6318. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6319. IFS="$lt_save_ifs"
  6320. test -z "$ac_dir" && ac_dir=.
  6321. tmp_nm="$ac_dir/$lt_tmp_nm"
  6322. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6323. # Check to see if the nm accepts a BSD-compat flag.
  6324. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6325. # nm: unknown option "B" ignored
  6326. # Tru64's nm complains that /dev/null is an invalid object file
  6327. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6328. */dev/null* | *'Invalid file or object type'*)
  6329. lt_cv_path_NM="$tmp_nm -B"
  6330. break
  6331. ;;
  6332. *)
  6333. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6334. */dev/null*)
  6335. lt_cv_path_NM="$tmp_nm -p"
  6336. break
  6337. ;;
  6338. *)
  6339. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6340. continue # so that we can try to find one that supports BSD flags
  6341. ;;
  6342. esac
  6343. ;;
  6344. esac
  6345. fi
  6346. done
  6347. IFS="$lt_save_ifs"
  6348. done
  6349. : ${lt_cv_path_NM=no}
  6350. fi
  6351. fi
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6353. $as_echo "$lt_cv_path_NM" >&6; }
  6354. if test "$lt_cv_path_NM" != "no"; then
  6355. NM="$lt_cv_path_NM"
  6356. else
  6357. # Didn't find any BSD compatible name lister, look for dumpbin.
  6358. if test -n "$DUMPBIN"; then :
  6359. # Let the user override the test.
  6360. else
  6361. if test -n "$ac_tool_prefix"; then
  6362. for ac_prog in dumpbin "link -dump"
  6363. do
  6364. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6365. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6367. $as_echo_n "checking for $ac_word... " >&6; }
  6368. if ${ac_cv_prog_DUMPBIN+:} false; then :
  6369. $as_echo_n "(cached) " >&6
  6370. else
  6371. if test -n "$DUMPBIN"; then
  6372. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6373. else
  6374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6375. for as_dir in $PATH
  6376. do
  6377. IFS=$as_save_IFS
  6378. test -z "$as_dir" && as_dir=.
  6379. for ac_exec_ext in '' $ac_executable_extensions; do
  6380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6381. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6383. break 2
  6384. fi
  6385. done
  6386. done
  6387. IFS=$as_save_IFS
  6388. fi
  6389. fi
  6390. DUMPBIN=$ac_cv_prog_DUMPBIN
  6391. if test -n "$DUMPBIN"; then
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6393. $as_echo "$DUMPBIN" >&6; }
  6394. else
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6396. $as_echo "no" >&6; }
  6397. fi
  6398. test -n "$DUMPBIN" && break
  6399. done
  6400. fi
  6401. if test -z "$DUMPBIN"; then
  6402. ac_ct_DUMPBIN=$DUMPBIN
  6403. for ac_prog in dumpbin "link -dump"
  6404. do
  6405. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6406. set dummy $ac_prog; ac_word=$2
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6408. $as_echo_n "checking for $ac_word... " >&6; }
  6409. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  6410. $as_echo_n "(cached) " >&6
  6411. else
  6412. if test -n "$ac_ct_DUMPBIN"; then
  6413. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6414. else
  6415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6416. for as_dir in $PATH
  6417. do
  6418. IFS=$as_save_IFS
  6419. test -z "$as_dir" && as_dir=.
  6420. for ac_exec_ext in '' $ac_executable_extensions; do
  6421. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6422. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6424. break 2
  6425. fi
  6426. done
  6427. done
  6428. IFS=$as_save_IFS
  6429. fi
  6430. fi
  6431. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6432. if test -n "$ac_ct_DUMPBIN"; then
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6434. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6435. else
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6437. $as_echo "no" >&6; }
  6438. fi
  6439. test -n "$ac_ct_DUMPBIN" && break
  6440. done
  6441. if test "x$ac_ct_DUMPBIN" = x; then
  6442. DUMPBIN=":"
  6443. else
  6444. case $cross_compiling:$ac_tool_warned in
  6445. yes:)
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6447. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6448. ac_tool_warned=yes ;;
  6449. esac
  6450. DUMPBIN=$ac_ct_DUMPBIN
  6451. fi
  6452. fi
  6453. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  6454. *COFF*)
  6455. DUMPBIN="$DUMPBIN -symbols"
  6456. ;;
  6457. *)
  6458. DUMPBIN=:
  6459. ;;
  6460. esac
  6461. fi
  6462. if test "$DUMPBIN" != ":"; then
  6463. NM="$DUMPBIN"
  6464. fi
  6465. fi
  6466. test -z "$NM" && NM=nm
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6468. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6469. if ${lt_cv_nm_interface+:} false; then :
  6470. $as_echo_n "(cached) " >&6
  6471. else
  6472. lt_cv_nm_interface="BSD nm"
  6473. echo "int some_variable = 0;" > conftest.$ac_ext
  6474. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6475. (eval "$ac_compile" 2>conftest.err)
  6476. cat conftest.err >&5
  6477. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6478. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6479. cat conftest.err >&5
  6480. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6481. cat conftest.out >&5
  6482. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6483. lt_cv_nm_interface="MS dumpbin"
  6484. fi
  6485. rm -f conftest*
  6486. fi
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6488. $as_echo "$lt_cv_nm_interface" >&6; }
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6490. $as_echo_n "checking whether ln -s works... " >&6; }
  6491. LN_S=$as_ln_s
  6492. if test "$LN_S" = "ln -s"; then
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6494. $as_echo "yes" >&6; }
  6495. else
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6497. $as_echo "no, using $LN_S" >&6; }
  6498. fi
  6499. # find the maximum length of command line arguments
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6501. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6502. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6503. $as_echo_n "(cached) " >&6
  6504. else
  6505. i=0
  6506. teststring="ABCD"
  6507. case $build_os in
  6508. msdosdjgpp*)
  6509. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6510. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6511. # during glob expansion). Even if it were fixed, the result of this
  6512. # check would be larger than it should be.
  6513. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6514. ;;
  6515. gnu*)
  6516. # Under GNU Hurd, this test is not required because there is
  6517. # no limit to the length of command line arguments.
  6518. # Libtool will interpret -1 as no limit whatsoever
  6519. lt_cv_sys_max_cmd_len=-1;
  6520. ;;
  6521. cygwin* | mingw* | cegcc*)
  6522. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6523. # about 5 minutes as the teststring grows exponentially.
  6524. # Worse, since 9x/ME are not pre-emptively multitasking,
  6525. # you end up with a "frozen" computer, even though with patience
  6526. # the test eventually succeeds (with a max line length of 256k).
  6527. # Instead, let's just punt: use the minimum linelength reported by
  6528. # all of the supported platforms: 8192 (on NT/2K/XP).
  6529. lt_cv_sys_max_cmd_len=8192;
  6530. ;;
  6531. mint*)
  6532. # On MiNT this can take a long time and run out of memory.
  6533. lt_cv_sys_max_cmd_len=8192;
  6534. ;;
  6535. amigaos*)
  6536. # On AmigaOS with pdksh, this test takes hours, literally.
  6537. # So we just punt and use a minimum line length of 8192.
  6538. lt_cv_sys_max_cmd_len=8192;
  6539. ;;
  6540. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6541. # This has been around since 386BSD, at least. Likely further.
  6542. if test -x /sbin/sysctl; then
  6543. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6544. elif test -x /usr/sbin/sysctl; then
  6545. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6546. else
  6547. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6548. fi
  6549. # And add a safety zone
  6550. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6551. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6552. ;;
  6553. interix*)
  6554. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6555. lt_cv_sys_max_cmd_len=196608
  6556. ;;
  6557. os2*)
  6558. # The test takes a long time on OS/2.
  6559. lt_cv_sys_max_cmd_len=8192
  6560. ;;
  6561. osf*)
  6562. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6563. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6564. # nice to cause kernel panics so lets avoid the loop below.
  6565. # First set a reasonable default.
  6566. lt_cv_sys_max_cmd_len=16384
  6567. #
  6568. if test -x /sbin/sysconfig; then
  6569. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6570. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6571. esac
  6572. fi
  6573. ;;
  6574. sco3.2v5*)
  6575. lt_cv_sys_max_cmd_len=102400
  6576. ;;
  6577. sysv5* | sco5v6* | sysv4.2uw2*)
  6578. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6579. if test -n "$kargmax"; then
  6580. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6581. else
  6582. lt_cv_sys_max_cmd_len=32768
  6583. fi
  6584. ;;
  6585. *)
  6586. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6587. if test -n "$lt_cv_sys_max_cmd_len"; then
  6588. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6589. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6590. else
  6591. # Make teststring a little bigger before we do anything with it.
  6592. # a 1K string should be a reasonable start.
  6593. for i in 1 2 3 4 5 6 7 8 ; do
  6594. teststring=$teststring$teststring
  6595. done
  6596. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6597. # If test is not a shell built-in, we'll probably end up computing a
  6598. # maximum length that is only half of the actual maximum length, but
  6599. # we can't tell.
  6600. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  6601. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6602. test $i != 17 # 1/2 MB should be enough
  6603. do
  6604. i=`expr $i + 1`
  6605. teststring=$teststring$teststring
  6606. done
  6607. # Only check the string length outside the loop.
  6608. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6609. teststring=
  6610. # Add a significant safety factor because C++ compilers can tack on
  6611. # massive amounts of additional arguments before passing them to the
  6612. # linker. It appears as though 1/2 is a usable value.
  6613. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6614. fi
  6615. ;;
  6616. esac
  6617. fi
  6618. if test -n $lt_cv_sys_max_cmd_len ; then
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6620. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6621. else
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6623. $as_echo "none" >&6; }
  6624. fi
  6625. max_cmd_len=$lt_cv_sys_max_cmd_len
  6626. : ${CP="cp -f"}
  6627. : ${MV="mv -f"}
  6628. : ${RM="rm -f"}
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  6630. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  6631. # Try some XSI features
  6632. xsi_shell=no
  6633. ( _lt_dummy="a/b/c"
  6634. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  6635. = c,a/b,b/c, \
  6636. && eval 'test $(( 1 + 1 )) -eq 2 \
  6637. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6638. && xsi_shell=yes
  6639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6640. $as_echo "$xsi_shell" >&6; }
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6642. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6643. lt_shell_append=no
  6644. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6645. >/dev/null 2>&1 \
  6646. && lt_shell_append=yes
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6648. $as_echo "$lt_shell_append" >&6; }
  6649. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6650. lt_unset=unset
  6651. else
  6652. lt_unset=false
  6653. fi
  6654. # test EBCDIC or ASCII
  6655. case `echo X|tr X '\101'` in
  6656. A) # ASCII based system
  6657. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6658. lt_SP2NL='tr \040 \012'
  6659. lt_NL2SP='tr \015\012 \040\040'
  6660. ;;
  6661. *) # EBCDIC based system
  6662. lt_SP2NL='tr \100 \n'
  6663. lt_NL2SP='tr \r\n \100\100'
  6664. ;;
  6665. esac
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6667. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  6668. if ${lt_cv_to_host_file_cmd+:} false; then :
  6669. $as_echo_n "(cached) " >&6
  6670. else
  6671. case $host in
  6672. *-*-mingw* )
  6673. case $build in
  6674. *-*-mingw* ) # actually msys
  6675. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6676. ;;
  6677. *-*-cygwin* )
  6678. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6679. ;;
  6680. * ) # otherwise, assume *nix
  6681. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6682. ;;
  6683. esac
  6684. ;;
  6685. *-*-cygwin* )
  6686. case $build in
  6687. *-*-mingw* ) # actually msys
  6688. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6689. ;;
  6690. *-*-cygwin* )
  6691. lt_cv_to_host_file_cmd=func_convert_file_noop
  6692. ;;
  6693. * ) # otherwise, assume *nix
  6694. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6695. ;;
  6696. esac
  6697. ;;
  6698. * ) # unhandled hosts (and "normal" native builds)
  6699. lt_cv_to_host_file_cmd=func_convert_file_noop
  6700. ;;
  6701. esac
  6702. fi
  6703. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6705. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6707. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  6708. if ${lt_cv_to_tool_file_cmd+:} false; then :
  6709. $as_echo_n "(cached) " >&6
  6710. else
  6711. #assume ordinary cross tools, or native build.
  6712. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6713. case $host in
  6714. *-*-mingw* )
  6715. case $build in
  6716. *-*-mingw* ) # actually msys
  6717. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6718. ;;
  6719. esac
  6720. ;;
  6721. esac
  6722. fi
  6723. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6725. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6727. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6728. if ${lt_cv_ld_reload_flag+:} false; then :
  6729. $as_echo_n "(cached) " >&6
  6730. else
  6731. lt_cv_ld_reload_flag='-r'
  6732. fi
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6734. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6735. reload_flag=$lt_cv_ld_reload_flag
  6736. case $reload_flag in
  6737. "" | " "*) ;;
  6738. *) reload_flag=" $reload_flag" ;;
  6739. esac
  6740. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6741. case $host_os in
  6742. cygwin* | mingw* | pw32* | cegcc*)
  6743. if test "$GCC" != yes; then
  6744. reload_cmds=false
  6745. fi
  6746. ;;
  6747. darwin*)
  6748. if test "$GCC" = yes; then
  6749. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6750. else
  6751. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6752. fi
  6753. ;;
  6754. esac
  6755. if test -n "$ac_tool_prefix"; then
  6756. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6757. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6759. $as_echo_n "checking for $ac_word... " >&6; }
  6760. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6761. $as_echo_n "(cached) " >&6
  6762. else
  6763. if test -n "$OBJDUMP"; then
  6764. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6765. else
  6766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6767. for as_dir in $PATH
  6768. do
  6769. IFS=$as_save_IFS
  6770. test -z "$as_dir" && as_dir=.
  6771. for ac_exec_ext in '' $ac_executable_extensions; do
  6772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6773. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6775. break 2
  6776. fi
  6777. done
  6778. done
  6779. IFS=$as_save_IFS
  6780. fi
  6781. fi
  6782. OBJDUMP=$ac_cv_prog_OBJDUMP
  6783. if test -n "$OBJDUMP"; then
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6785. $as_echo "$OBJDUMP" >&6; }
  6786. else
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6788. $as_echo "no" >&6; }
  6789. fi
  6790. fi
  6791. if test -z "$ac_cv_prog_OBJDUMP"; then
  6792. ac_ct_OBJDUMP=$OBJDUMP
  6793. # Extract the first word of "objdump", so it can be a program name with args.
  6794. set dummy objdump; ac_word=$2
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6796. $as_echo_n "checking for $ac_word... " >&6; }
  6797. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6798. $as_echo_n "(cached) " >&6
  6799. else
  6800. if test -n "$ac_ct_OBJDUMP"; then
  6801. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6802. else
  6803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6804. for as_dir in $PATH
  6805. do
  6806. IFS=$as_save_IFS
  6807. test -z "$as_dir" && as_dir=.
  6808. for ac_exec_ext in '' $ac_executable_extensions; do
  6809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6810. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6812. break 2
  6813. fi
  6814. done
  6815. done
  6816. IFS=$as_save_IFS
  6817. fi
  6818. fi
  6819. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6820. if test -n "$ac_ct_OBJDUMP"; then
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6822. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6823. else
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6825. $as_echo "no" >&6; }
  6826. fi
  6827. if test "x$ac_ct_OBJDUMP" = x; then
  6828. OBJDUMP="false"
  6829. else
  6830. case $cross_compiling:$ac_tool_warned in
  6831. yes:)
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6833. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6834. ac_tool_warned=yes ;;
  6835. esac
  6836. OBJDUMP=$ac_ct_OBJDUMP
  6837. fi
  6838. else
  6839. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6840. fi
  6841. test -z "$OBJDUMP" && OBJDUMP=objdump
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6843. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6844. if ${lt_cv_deplibs_check_method+:} false; then :
  6845. $as_echo_n "(cached) " >&6
  6846. else
  6847. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6848. lt_cv_file_magic_test_file=
  6849. lt_cv_deplibs_check_method='unknown'
  6850. # Need to set the preceding variable on all platforms that support
  6851. # interlibrary dependencies.
  6852. # 'none' -- dependencies not supported.
  6853. # `unknown' -- same as none, but documents that we really don't know.
  6854. # 'pass_all' -- all dependencies passed with no checks.
  6855. # 'test_compile' -- check by making test program.
  6856. # 'file_magic [[regex]]' -- check by looking for files in library path
  6857. # which responds to the $file_magic_cmd with a given extended regex.
  6858. # If you have `file' or equivalent on your system and you're not sure
  6859. # whether `pass_all' will *always* work, you probably want this one.
  6860. case $host_os in
  6861. aix[4-9]*)
  6862. lt_cv_deplibs_check_method=pass_all
  6863. ;;
  6864. beos*)
  6865. lt_cv_deplibs_check_method=pass_all
  6866. ;;
  6867. bsdi[45]*)
  6868. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6869. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6870. lt_cv_file_magic_test_file=/shlib/libc.so
  6871. ;;
  6872. cygwin*)
  6873. # func_win32_libid is a shell function defined in ltmain.sh
  6874. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6875. lt_cv_file_magic_cmd='func_win32_libid'
  6876. ;;
  6877. mingw* | pw32*)
  6878. # Base MSYS/MinGW do not provide the 'file' command needed by
  6879. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6880. # unless we find 'file', for example because we are cross-compiling.
  6881. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6882. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6883. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6884. lt_cv_file_magic_cmd='func_win32_libid'
  6885. else
  6886. # Keep this pattern in sync with the one in func_win32_libid.
  6887. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6888. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6889. fi
  6890. ;;
  6891. cegcc*)
  6892. # use the weaker test based on 'objdump'. See mingw*.
  6893. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6894. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6895. ;;
  6896. darwin* | rhapsody*)
  6897. lt_cv_deplibs_check_method=pass_all
  6898. ;;
  6899. freebsd* | dragonfly*)
  6900. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6901. case $host_cpu in
  6902. i*86 )
  6903. # Not sure whether the presence of OpenBSD here was a mistake.
  6904. # Let's accept both of them until this is cleared up.
  6905. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6906. lt_cv_file_magic_cmd=/usr/bin/file
  6907. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6908. ;;
  6909. esac
  6910. else
  6911. lt_cv_deplibs_check_method=pass_all
  6912. fi
  6913. ;;
  6914. gnu*)
  6915. lt_cv_deplibs_check_method=pass_all
  6916. ;;
  6917. haiku*)
  6918. lt_cv_deplibs_check_method=pass_all
  6919. ;;
  6920. hpux10.20* | hpux11*)
  6921. lt_cv_file_magic_cmd=/usr/bin/file
  6922. case $host_cpu in
  6923. ia64*)
  6924. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6925. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6926. ;;
  6927. hppa*64*)
  6928. 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]'
  6929. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6930. ;;
  6931. *)
  6932. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6933. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6934. ;;
  6935. esac
  6936. ;;
  6937. interix[3-9]*)
  6938. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6939. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6940. ;;
  6941. irix5* | irix6* | nonstopux*)
  6942. case $LD in
  6943. *-32|*"-32 ") libmagic=32-bit;;
  6944. *-n32|*"-n32 ") libmagic=N32;;
  6945. *-64|*"-64 ") libmagic=64-bit;;
  6946. *) libmagic=never-match;;
  6947. esac
  6948. lt_cv_deplibs_check_method=pass_all
  6949. ;;
  6950. # This must be glibc/ELF.
  6951. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6952. lt_cv_deplibs_check_method=pass_all
  6953. ;;
  6954. netbsd*)
  6955. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6956. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6957. else
  6958. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6959. fi
  6960. ;;
  6961. newos6*)
  6962. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6963. lt_cv_file_magic_cmd=/usr/bin/file
  6964. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6965. ;;
  6966. *nto* | *qnx*)
  6967. lt_cv_deplibs_check_method=pass_all
  6968. ;;
  6969. openbsd*)
  6970. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6971. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6972. else
  6973. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6974. fi
  6975. ;;
  6976. osf3* | osf4* | osf5*)
  6977. lt_cv_deplibs_check_method=pass_all
  6978. ;;
  6979. rdos*)
  6980. lt_cv_deplibs_check_method=pass_all
  6981. ;;
  6982. solaris*)
  6983. lt_cv_deplibs_check_method=pass_all
  6984. ;;
  6985. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6986. lt_cv_deplibs_check_method=pass_all
  6987. ;;
  6988. sysv4 | sysv4.3*)
  6989. case $host_vendor in
  6990. motorola)
  6991. 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]'
  6992. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6993. ;;
  6994. ncr)
  6995. lt_cv_deplibs_check_method=pass_all
  6996. ;;
  6997. sequent)
  6998. lt_cv_file_magic_cmd='/bin/file'
  6999. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7000. ;;
  7001. sni)
  7002. lt_cv_file_magic_cmd='/bin/file'
  7003. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7004. lt_cv_file_magic_test_file=/lib/libc.so
  7005. ;;
  7006. siemens)
  7007. lt_cv_deplibs_check_method=pass_all
  7008. ;;
  7009. pc)
  7010. lt_cv_deplibs_check_method=pass_all
  7011. ;;
  7012. esac
  7013. ;;
  7014. tpf*)
  7015. lt_cv_deplibs_check_method=pass_all
  7016. ;;
  7017. esac
  7018. fi
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7020. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7021. file_magic_glob=
  7022. want_nocaseglob=no
  7023. if test "$build" = "$host"; then
  7024. case $host_os in
  7025. mingw* | pw32*)
  7026. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7027. want_nocaseglob=yes
  7028. else
  7029. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7030. fi
  7031. ;;
  7032. esac
  7033. fi
  7034. file_magic_cmd=$lt_cv_file_magic_cmd
  7035. deplibs_check_method=$lt_cv_deplibs_check_method
  7036. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7037. if test -n "$ac_tool_prefix"; then
  7038. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7039. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7041. $as_echo_n "checking for $ac_word... " >&6; }
  7042. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7043. $as_echo_n "(cached) " >&6
  7044. else
  7045. if test -n "$DLLTOOL"; then
  7046. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7047. else
  7048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7049. for as_dir in $PATH
  7050. do
  7051. IFS=$as_save_IFS
  7052. test -z "$as_dir" && as_dir=.
  7053. for ac_exec_ext in '' $ac_executable_extensions; do
  7054. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7055. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7056. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7057. break 2
  7058. fi
  7059. done
  7060. done
  7061. IFS=$as_save_IFS
  7062. fi
  7063. fi
  7064. DLLTOOL=$ac_cv_prog_DLLTOOL
  7065. if test -n "$DLLTOOL"; then
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7067. $as_echo "$DLLTOOL" >&6; }
  7068. else
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7070. $as_echo "no" >&6; }
  7071. fi
  7072. fi
  7073. if test -z "$ac_cv_prog_DLLTOOL"; then
  7074. ac_ct_DLLTOOL=$DLLTOOL
  7075. # Extract the first word of "dlltool", so it can be a program name with args.
  7076. set dummy dlltool; ac_word=$2
  7077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7078. $as_echo_n "checking for $ac_word... " >&6; }
  7079. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7080. $as_echo_n "(cached) " >&6
  7081. else
  7082. if test -n "$ac_ct_DLLTOOL"; then
  7083. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7084. else
  7085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7086. for as_dir in $PATH
  7087. do
  7088. IFS=$as_save_IFS
  7089. test -z "$as_dir" && as_dir=.
  7090. for ac_exec_ext in '' $ac_executable_extensions; do
  7091. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7092. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7094. break 2
  7095. fi
  7096. done
  7097. done
  7098. IFS=$as_save_IFS
  7099. fi
  7100. fi
  7101. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7102. if test -n "$ac_ct_DLLTOOL"; then
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7104. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7105. else
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7107. $as_echo "no" >&6; }
  7108. fi
  7109. if test "x$ac_ct_DLLTOOL" = x; then
  7110. DLLTOOL="false"
  7111. else
  7112. case $cross_compiling:$ac_tool_warned in
  7113. yes:)
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7115. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7116. ac_tool_warned=yes ;;
  7117. esac
  7118. DLLTOOL=$ac_ct_DLLTOOL
  7119. fi
  7120. else
  7121. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7122. fi
  7123. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7125. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  7126. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  7127. $as_echo_n "(cached) " >&6
  7128. else
  7129. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7130. case $host_os in
  7131. cygwin* | mingw* | pw32* | cegcc*)
  7132. # two different shell functions defined in ltmain.sh
  7133. # decide which to use based on capabilities of $DLLTOOL
  7134. case `$DLLTOOL --help 2>&1` in
  7135. *--identify-strict*)
  7136. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7137. ;;
  7138. *)
  7139. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7140. ;;
  7141. esac
  7142. ;;
  7143. *)
  7144. # fallback: assume linklib IS sharedlib
  7145. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  7146. ;;
  7147. esac
  7148. fi
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7150. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7151. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7152. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7153. if test -n "$ac_tool_prefix"; then
  7154. for ac_prog in ar
  7155. do
  7156. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7157. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7159. $as_echo_n "checking for $ac_word... " >&6; }
  7160. if ${ac_cv_prog_AR+:} false; then :
  7161. $as_echo_n "(cached) " >&6
  7162. else
  7163. if test -n "$AR"; then
  7164. ac_cv_prog_AR="$AR" # Let the user override the test.
  7165. else
  7166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7167. for as_dir in $PATH
  7168. do
  7169. IFS=$as_save_IFS
  7170. test -z "$as_dir" && as_dir=.
  7171. for ac_exec_ext in '' $ac_executable_extensions; do
  7172. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7173. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7175. break 2
  7176. fi
  7177. done
  7178. done
  7179. IFS=$as_save_IFS
  7180. fi
  7181. fi
  7182. AR=$ac_cv_prog_AR
  7183. if test -n "$AR"; then
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7185. $as_echo "$AR" >&6; }
  7186. else
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7188. $as_echo "no" >&6; }
  7189. fi
  7190. test -n "$AR" && break
  7191. done
  7192. fi
  7193. if test -z "$AR"; then
  7194. ac_ct_AR=$AR
  7195. for ac_prog in ar
  7196. do
  7197. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7198. set dummy $ac_prog; ac_word=$2
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7200. $as_echo_n "checking for $ac_word... " >&6; }
  7201. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  7202. $as_echo_n "(cached) " >&6
  7203. else
  7204. if test -n "$ac_ct_AR"; then
  7205. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7206. else
  7207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7208. for as_dir in $PATH
  7209. do
  7210. IFS=$as_save_IFS
  7211. test -z "$as_dir" && as_dir=.
  7212. for ac_exec_ext in '' $ac_executable_extensions; do
  7213. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7214. ac_cv_prog_ac_ct_AR="$ac_prog"
  7215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7216. break 2
  7217. fi
  7218. done
  7219. done
  7220. IFS=$as_save_IFS
  7221. fi
  7222. fi
  7223. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7224. if test -n "$ac_ct_AR"; then
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7226. $as_echo "$ac_ct_AR" >&6; }
  7227. else
  7228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7229. $as_echo "no" >&6; }
  7230. fi
  7231. test -n "$ac_ct_AR" && break
  7232. done
  7233. if test "x$ac_ct_AR" = x; then
  7234. AR="false"
  7235. else
  7236. case $cross_compiling:$ac_tool_warned in
  7237. yes:)
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7239. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7240. ac_tool_warned=yes ;;
  7241. esac
  7242. AR=$ac_ct_AR
  7243. fi
  7244. fi
  7245. : ${AR=ar}
  7246. : ${AR_FLAGS=cru}
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  7248. $as_echo_n "checking for archiver @FILE support... " >&6; }
  7249. if ${lt_cv_ar_at_file+:} false; then :
  7250. $as_echo_n "(cached) " >&6
  7251. else
  7252. lt_cv_ar_at_file=no
  7253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7254. /* end confdefs.h. */
  7255. int
  7256. main ()
  7257. {
  7258. ;
  7259. return 0;
  7260. }
  7261. _ACEOF
  7262. if ac_fn_c_try_compile "$LINENO"; then :
  7263. echo conftest.$ac_objext > conftest.lst
  7264. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  7265. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7266. (eval $lt_ar_try) 2>&5
  7267. ac_status=$?
  7268. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7269. test $ac_status = 0; }
  7270. if test "$ac_status" -eq 0; then
  7271. # Ensure the archiver fails upon bogus file names.
  7272. rm -f conftest.$ac_objext libconftest.a
  7273. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7274. (eval $lt_ar_try) 2>&5
  7275. ac_status=$?
  7276. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7277. test $ac_status = 0; }
  7278. if test "$ac_status" -ne 0; then
  7279. lt_cv_ar_at_file=@
  7280. fi
  7281. fi
  7282. rm -f conftest.* libconftest.a
  7283. fi
  7284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7285. fi
  7286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  7287. $as_echo "$lt_cv_ar_at_file" >&6; }
  7288. if test "x$lt_cv_ar_at_file" = xno; then
  7289. archiver_list_spec=
  7290. else
  7291. archiver_list_spec=$lt_cv_ar_at_file
  7292. fi
  7293. if test -n "$ac_tool_prefix"; then
  7294. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7295. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7297. $as_echo_n "checking for $ac_word... " >&6; }
  7298. if ${ac_cv_prog_STRIP+:} false; then :
  7299. $as_echo_n "(cached) " >&6
  7300. else
  7301. if test -n "$STRIP"; then
  7302. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7303. else
  7304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7305. for as_dir in $PATH
  7306. do
  7307. IFS=$as_save_IFS
  7308. test -z "$as_dir" && as_dir=.
  7309. for ac_exec_ext in '' $ac_executable_extensions; do
  7310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7311. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7313. break 2
  7314. fi
  7315. done
  7316. done
  7317. IFS=$as_save_IFS
  7318. fi
  7319. fi
  7320. STRIP=$ac_cv_prog_STRIP
  7321. if test -n "$STRIP"; then
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7323. $as_echo "$STRIP" >&6; }
  7324. else
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7326. $as_echo "no" >&6; }
  7327. fi
  7328. fi
  7329. if test -z "$ac_cv_prog_STRIP"; then
  7330. ac_ct_STRIP=$STRIP
  7331. # Extract the first word of "strip", so it can be a program name with args.
  7332. set dummy strip; ac_word=$2
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7334. $as_echo_n "checking for $ac_word... " >&6; }
  7335. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  7336. $as_echo_n "(cached) " >&6
  7337. else
  7338. if test -n "$ac_ct_STRIP"; then
  7339. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7340. else
  7341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7342. for as_dir in $PATH
  7343. do
  7344. IFS=$as_save_IFS
  7345. test -z "$as_dir" && as_dir=.
  7346. for ac_exec_ext in '' $ac_executable_extensions; do
  7347. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7348. ac_cv_prog_ac_ct_STRIP="strip"
  7349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7350. break 2
  7351. fi
  7352. done
  7353. done
  7354. IFS=$as_save_IFS
  7355. fi
  7356. fi
  7357. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7358. if test -n "$ac_ct_STRIP"; then
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7360. $as_echo "$ac_ct_STRIP" >&6; }
  7361. else
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7363. $as_echo "no" >&6; }
  7364. fi
  7365. if test "x$ac_ct_STRIP" = x; then
  7366. STRIP=":"
  7367. else
  7368. case $cross_compiling:$ac_tool_warned in
  7369. yes:)
  7370. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7371. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7372. ac_tool_warned=yes ;;
  7373. esac
  7374. STRIP=$ac_ct_STRIP
  7375. fi
  7376. else
  7377. STRIP="$ac_cv_prog_STRIP"
  7378. fi
  7379. test -z "$STRIP" && STRIP=:
  7380. if test -n "$ac_tool_prefix"; then
  7381. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7382. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7384. $as_echo_n "checking for $ac_word... " >&6; }
  7385. if ${ac_cv_prog_RANLIB+:} false; then :
  7386. $as_echo_n "(cached) " >&6
  7387. else
  7388. if test -n "$RANLIB"; then
  7389. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7390. else
  7391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7392. for as_dir in $PATH
  7393. do
  7394. IFS=$as_save_IFS
  7395. test -z "$as_dir" && as_dir=.
  7396. for ac_exec_ext in '' $ac_executable_extensions; do
  7397. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7398. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7400. break 2
  7401. fi
  7402. done
  7403. done
  7404. IFS=$as_save_IFS
  7405. fi
  7406. fi
  7407. RANLIB=$ac_cv_prog_RANLIB
  7408. if test -n "$RANLIB"; then
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7410. $as_echo "$RANLIB" >&6; }
  7411. else
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7413. $as_echo "no" >&6; }
  7414. fi
  7415. fi
  7416. if test -z "$ac_cv_prog_RANLIB"; then
  7417. ac_ct_RANLIB=$RANLIB
  7418. # Extract the first word of "ranlib", so it can be a program name with args.
  7419. set dummy ranlib; ac_word=$2
  7420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7421. $as_echo_n "checking for $ac_word... " >&6; }
  7422. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7423. $as_echo_n "(cached) " >&6
  7424. else
  7425. if test -n "$ac_ct_RANLIB"; then
  7426. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7427. else
  7428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7429. for as_dir in $PATH
  7430. do
  7431. IFS=$as_save_IFS
  7432. test -z "$as_dir" && as_dir=.
  7433. for ac_exec_ext in '' $ac_executable_extensions; do
  7434. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7435. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7437. break 2
  7438. fi
  7439. done
  7440. done
  7441. IFS=$as_save_IFS
  7442. fi
  7443. fi
  7444. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7445. if test -n "$ac_ct_RANLIB"; then
  7446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7447. $as_echo "$ac_ct_RANLIB" >&6; }
  7448. else
  7449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7450. $as_echo "no" >&6; }
  7451. fi
  7452. if test "x$ac_ct_RANLIB" = x; then
  7453. RANLIB=":"
  7454. else
  7455. case $cross_compiling:$ac_tool_warned in
  7456. yes:)
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7458. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7459. ac_tool_warned=yes ;;
  7460. esac
  7461. RANLIB=$ac_ct_RANLIB
  7462. fi
  7463. else
  7464. RANLIB="$ac_cv_prog_RANLIB"
  7465. fi
  7466. test -z "$RANLIB" && RANLIB=:
  7467. # Determine commands to create old-style static archives.
  7468. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7469. old_postinstall_cmds='chmod 644 $oldlib'
  7470. old_postuninstall_cmds=
  7471. if test -n "$RANLIB"; then
  7472. case $host_os in
  7473. openbsd*)
  7474. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7475. ;;
  7476. *)
  7477. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7478. ;;
  7479. esac
  7480. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7481. fi
  7482. case $host_os in
  7483. darwin*)
  7484. lock_old_archive_extraction=yes ;;
  7485. *)
  7486. lock_old_archive_extraction=no ;;
  7487. esac
  7488. # If no C compiler was specified, use CC.
  7489. LTCC=${LTCC-"$CC"}
  7490. # If no C compiler flags were specified, use CFLAGS.
  7491. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7492. # Allow CC to be a program name with arguments.
  7493. compiler=$CC
  7494. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7496. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7497. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  7498. $as_echo_n "(cached) " >&6
  7499. else
  7500. # These are sane defaults that work on at least a few old systems.
  7501. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7502. # Character class describing NM global symbol codes.
  7503. symcode='[BCDEGRST]'
  7504. # Regexp to match symbols that can be accessed directly from C.
  7505. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7506. # Define system-specific variables.
  7507. case $host_os in
  7508. aix*)
  7509. symcode='[BCDT]'
  7510. ;;
  7511. cygwin* | mingw* | pw32* | cegcc*)
  7512. symcode='[ABCDGISTW]'
  7513. ;;
  7514. hpux*)
  7515. if test "$host_cpu" = ia64; then
  7516. symcode='[ABCDEGRST]'
  7517. fi
  7518. ;;
  7519. irix* | nonstopux*)
  7520. symcode='[BCDEGRST]'
  7521. ;;
  7522. osf*)
  7523. symcode='[BCDEGQRST]'
  7524. ;;
  7525. solaris*)
  7526. symcode='[BDRT]'
  7527. ;;
  7528. sco3.2v5*)
  7529. symcode='[DT]'
  7530. ;;
  7531. sysv4.2uw2*)
  7532. symcode='[DT]'
  7533. ;;
  7534. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7535. symcode='[ABDT]'
  7536. ;;
  7537. sysv4)
  7538. symcode='[DFNSTU]'
  7539. ;;
  7540. esac
  7541. # If we're using GNU nm, then use its standard symbol codes.
  7542. case `$NM -V 2>&1` in
  7543. *GNU* | *'with BFD'*)
  7544. symcode='[ABCDGIRSTW]' ;;
  7545. esac
  7546. # Transform an extracted symbol line into a proper C declaration.
  7547. # Some systems (esp. on ia64) link data and code symbols differently,
  7548. # so use this general approach.
  7549. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7550. # Transform an extracted symbol line into symbol name and symbol address
  7551. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  7552. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  7553. # Handle CRLF in mingw tool chain
  7554. opt_cr=
  7555. case $build_os in
  7556. mingw*)
  7557. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7558. ;;
  7559. esac
  7560. # Try without a prefix underscore, then with it.
  7561. for ac_symprfx in "" "_"; do
  7562. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7563. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7564. # Write the raw and C identifiers.
  7565. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7566. # Fake it for dumpbin and say T for any non-static function
  7567. # and D for any global variable.
  7568. # Also find C++ and __fastcall symbols from MSVC++,
  7569. # which start with @ or ?.
  7570. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7571. " {last_section=section; section=\$ 3};"\
  7572. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7573. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7574. " \$ 0!~/External *\|/{next};"\
  7575. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7576. " {if(hide[section]) next};"\
  7577. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  7578. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  7579. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  7580. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  7581. " ' prfx=^$ac_symprfx"
  7582. else
  7583. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7584. fi
  7585. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  7586. # Check to see that the pipe works correctly.
  7587. pipe_works=no
  7588. rm -f conftest*
  7589. cat > conftest.$ac_ext <<_LT_EOF
  7590. #ifdef __cplusplus
  7591. extern "C" {
  7592. #endif
  7593. char nm_test_var;
  7594. void nm_test_func(void);
  7595. void nm_test_func(void){}
  7596. #ifdef __cplusplus
  7597. }
  7598. #endif
  7599. int main(){nm_test_var='a';nm_test_func();return(0);}
  7600. _LT_EOF
  7601. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7602. (eval $ac_compile) 2>&5
  7603. ac_status=$?
  7604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7605. test $ac_status = 0; }; then
  7606. # Now try to grab the symbols.
  7607. nlist=conftest.nm
  7608. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7609. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7610. ac_status=$?
  7611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7612. test $ac_status = 0; } && test -s "$nlist"; then
  7613. # Try sorting and uniquifying the output.
  7614. if sort "$nlist" | uniq > "$nlist"T; then
  7615. mv -f "$nlist"T "$nlist"
  7616. else
  7617. rm -f "$nlist"T
  7618. fi
  7619. # Make sure that we snagged all the symbols we need.
  7620. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7621. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7622. cat <<_LT_EOF > conftest.$ac_ext
  7623. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7624. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  7625. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  7626. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7627. # define LT_DLSYM_CONST
  7628. #elif defined(__osf__)
  7629. /* This system does not cope well with relocations in const data. */
  7630. # define LT_DLSYM_CONST
  7631. #else
  7632. # define LT_DLSYM_CONST const
  7633. #endif
  7634. #ifdef __cplusplus
  7635. extern "C" {
  7636. #endif
  7637. _LT_EOF
  7638. # Now generate the symbol file.
  7639. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7640. cat <<_LT_EOF >> conftest.$ac_ext
  7641. /* The mapping between symbol names and symbols. */
  7642. LT_DLSYM_CONST struct {
  7643. const char *name;
  7644. void *address;
  7645. }
  7646. lt__PROGRAM__LTX_preloaded_symbols[] =
  7647. {
  7648. { "@PROGRAM@", (void *) 0 },
  7649. _LT_EOF
  7650. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7651. cat <<\_LT_EOF >> conftest.$ac_ext
  7652. {0, (void *) 0}
  7653. };
  7654. /* This works around a problem in FreeBSD linker */
  7655. #ifdef FREEBSD_WORKAROUND
  7656. static const void *lt_preloaded_setup() {
  7657. return lt__PROGRAM__LTX_preloaded_symbols;
  7658. }
  7659. #endif
  7660. #ifdef __cplusplus
  7661. }
  7662. #endif
  7663. _LT_EOF
  7664. # Now try linking the two files.
  7665. mv conftest.$ac_objext conftstm.$ac_objext
  7666. lt_globsym_save_LIBS=$LIBS
  7667. lt_globsym_save_CFLAGS=$CFLAGS
  7668. LIBS="conftstm.$ac_objext"
  7669. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7670. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7671. (eval $ac_link) 2>&5
  7672. ac_status=$?
  7673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7674. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  7675. pipe_works=yes
  7676. fi
  7677. LIBS=$lt_globsym_save_LIBS
  7678. CFLAGS=$lt_globsym_save_CFLAGS
  7679. else
  7680. echo "cannot find nm_test_func in $nlist" >&5
  7681. fi
  7682. else
  7683. echo "cannot find nm_test_var in $nlist" >&5
  7684. fi
  7685. else
  7686. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7687. fi
  7688. else
  7689. echo "$progname: failed program was:" >&5
  7690. cat conftest.$ac_ext >&5
  7691. fi
  7692. rm -rf conftest* conftst*
  7693. # Do not use the global_symbol_pipe unless it works.
  7694. if test "$pipe_works" = yes; then
  7695. break
  7696. else
  7697. lt_cv_sys_global_symbol_pipe=
  7698. fi
  7699. done
  7700. fi
  7701. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7702. lt_cv_sys_global_symbol_to_cdecl=
  7703. fi
  7704. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7706. $as_echo "failed" >&6; }
  7707. else
  7708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7709. $as_echo "ok" >&6; }
  7710. fi
  7711. # Response file support.
  7712. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7713. nm_file_list_spec='@'
  7714. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7715. nm_file_list_spec='@'
  7716. fi
  7717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7718. $as_echo_n "checking for sysroot... " >&6; }
  7719. # Check whether --with-sysroot was given.
  7720. if test "${with_sysroot+set}" = set; then :
  7721. withval=$with_sysroot;
  7722. else
  7723. with_sysroot=no
  7724. fi
  7725. lt_sysroot=
  7726. case ${with_sysroot} in #(
  7727. yes)
  7728. if test "$GCC" = yes; then
  7729. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7730. fi
  7731. ;; #(
  7732. /*)
  7733. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7734. ;; #(
  7735. no|'')
  7736. ;; #(
  7737. *)
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  7739. $as_echo "${with_sysroot}" >&6; }
  7740. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7741. ;;
  7742. esac
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7744. $as_echo "${lt_sysroot:-no}" >&6; }
  7745. # Check whether --enable-libtool-lock was given.
  7746. if test "${enable_libtool_lock+set}" = set; then :
  7747. enableval=$enable_libtool_lock;
  7748. fi
  7749. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7750. # Some flags need to be propagated to the compiler or linker for good
  7751. # libtool support.
  7752. case $host in
  7753. ia64-*-hpux*)
  7754. # Find out which ABI we are using.
  7755. echo 'int i;' > conftest.$ac_ext
  7756. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7757. (eval $ac_compile) 2>&5
  7758. ac_status=$?
  7759. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7760. test $ac_status = 0; }; then
  7761. case `/usr/bin/file conftest.$ac_objext` in
  7762. *ELF-32*)
  7763. HPUX_IA64_MODE="32"
  7764. ;;
  7765. *ELF-64*)
  7766. HPUX_IA64_MODE="64"
  7767. ;;
  7768. esac
  7769. fi
  7770. rm -rf conftest*
  7771. ;;
  7772. *-*-irix6*)
  7773. # Find out which ABI we are using.
  7774. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7775. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7776. (eval $ac_compile) 2>&5
  7777. ac_status=$?
  7778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7779. test $ac_status = 0; }; then
  7780. if test "$lt_cv_prog_gnu_ld" = yes; then
  7781. case `/usr/bin/file conftest.$ac_objext` in
  7782. *32-bit*)
  7783. LD="${LD-ld} -melf32bsmip"
  7784. ;;
  7785. *N32*)
  7786. LD="${LD-ld} -melf32bmipn32"
  7787. ;;
  7788. *64-bit*)
  7789. LD="${LD-ld} -melf64bmip"
  7790. ;;
  7791. esac
  7792. else
  7793. case `/usr/bin/file conftest.$ac_objext` in
  7794. *32-bit*)
  7795. LD="${LD-ld} -32"
  7796. ;;
  7797. *N32*)
  7798. LD="${LD-ld} -n32"
  7799. ;;
  7800. *64-bit*)
  7801. LD="${LD-ld} -64"
  7802. ;;
  7803. esac
  7804. fi
  7805. fi
  7806. rm -rf conftest*
  7807. ;;
  7808. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  7809. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7810. # Find out which ABI we are using.
  7811. echo 'int i;' > conftest.$ac_ext
  7812. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7813. (eval $ac_compile) 2>&5
  7814. ac_status=$?
  7815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7816. test $ac_status = 0; }; then
  7817. case `/usr/bin/file conftest.o` in
  7818. *32-bit*)
  7819. case $host in
  7820. x86_64-*kfreebsd*-gnu)
  7821. LD="${LD-ld} -m elf_i386_fbsd"
  7822. ;;
  7823. x86_64-*linux*)
  7824. LD="${LD-ld} -m elf_i386"
  7825. ;;
  7826. ppc64-*linux*|powerpc64-*linux*)
  7827. LD="${LD-ld} -m elf32ppclinux"
  7828. ;;
  7829. s390x-*linux*)
  7830. LD="${LD-ld} -m elf_s390"
  7831. ;;
  7832. sparc64-*linux*)
  7833. LD="${LD-ld} -m elf32_sparc"
  7834. ;;
  7835. esac
  7836. ;;
  7837. *64-bit*)
  7838. case $host in
  7839. x86_64-*kfreebsd*-gnu)
  7840. LD="${LD-ld} -m elf_x86_64_fbsd"
  7841. ;;
  7842. x86_64-*linux*)
  7843. LD="${LD-ld} -m elf_x86_64"
  7844. ;;
  7845. ppc*-*linux*|powerpc*-*linux*)
  7846. LD="${LD-ld} -m elf64ppc"
  7847. ;;
  7848. s390*-*linux*|s390*-*tpf*)
  7849. LD="${LD-ld} -m elf64_s390"
  7850. ;;
  7851. sparc*-*linux*)
  7852. LD="${LD-ld} -m elf64_sparc"
  7853. ;;
  7854. esac
  7855. ;;
  7856. esac
  7857. fi
  7858. rm -rf conftest*
  7859. ;;
  7860. *-*-sco3.2v5*)
  7861. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7862. SAVE_CFLAGS="$CFLAGS"
  7863. CFLAGS="$CFLAGS -belf"
  7864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7865. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7866. if ${lt_cv_cc_needs_belf+:} false; then :
  7867. $as_echo_n "(cached) " >&6
  7868. else
  7869. ac_ext=c
  7870. ac_cpp='$CPP $CPPFLAGS'
  7871. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7872. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7873. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7875. /* end confdefs.h. */
  7876. int
  7877. main ()
  7878. {
  7879. ;
  7880. return 0;
  7881. }
  7882. _ACEOF
  7883. if ac_fn_c_try_link "$LINENO"; then :
  7884. lt_cv_cc_needs_belf=yes
  7885. else
  7886. lt_cv_cc_needs_belf=no
  7887. fi
  7888. rm -f core conftest.err conftest.$ac_objext \
  7889. conftest$ac_exeext conftest.$ac_ext
  7890. ac_ext=c
  7891. ac_cpp='$CPP $CPPFLAGS'
  7892. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7893. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7894. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7895. fi
  7896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7897. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7898. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7899. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7900. CFLAGS="$SAVE_CFLAGS"
  7901. fi
  7902. ;;
  7903. *-*solaris*)
  7904. # Find out which ABI we are using.
  7905. echo 'int i;' > conftest.$ac_ext
  7906. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7907. (eval $ac_compile) 2>&5
  7908. ac_status=$?
  7909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7910. test $ac_status = 0; }; then
  7911. case `/usr/bin/file conftest.o` in
  7912. *64-bit*)
  7913. case $lt_cv_prog_gnu_ld in
  7914. yes*)
  7915. case $host in
  7916. i?86-*-solaris*)
  7917. LD="${LD-ld} -m elf_x86_64"
  7918. ;;
  7919. sparc*-*-solaris*)
  7920. LD="${LD-ld} -m elf64_sparc"
  7921. ;;
  7922. esac
  7923. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7924. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7925. LD="${LD-ld}_sol2"
  7926. fi
  7927. ;;
  7928. *)
  7929. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7930. LD="${LD-ld} -64"
  7931. fi
  7932. ;;
  7933. esac
  7934. ;;
  7935. esac
  7936. fi
  7937. rm -rf conftest*
  7938. ;;
  7939. esac
  7940. need_locks="$enable_libtool_lock"
  7941. if test -n "$ac_tool_prefix"; then
  7942. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7943. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7945. $as_echo_n "checking for $ac_word... " >&6; }
  7946. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7947. $as_echo_n "(cached) " >&6
  7948. else
  7949. if test -n "$MANIFEST_TOOL"; then
  7950. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7951. else
  7952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7953. for as_dir in $PATH
  7954. do
  7955. IFS=$as_save_IFS
  7956. test -z "$as_dir" && as_dir=.
  7957. for ac_exec_ext in '' $ac_executable_extensions; do
  7958. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7959. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7961. break 2
  7962. fi
  7963. done
  7964. done
  7965. IFS=$as_save_IFS
  7966. fi
  7967. fi
  7968. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7969. if test -n "$MANIFEST_TOOL"; then
  7970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7971. $as_echo "$MANIFEST_TOOL" >&6; }
  7972. else
  7973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7974. $as_echo "no" >&6; }
  7975. fi
  7976. fi
  7977. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7978. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7979. # Extract the first word of "mt", so it can be a program name with args.
  7980. set dummy mt; ac_word=$2
  7981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7982. $as_echo_n "checking for $ac_word... " >&6; }
  7983. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7984. $as_echo_n "(cached) " >&6
  7985. else
  7986. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7987. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7988. else
  7989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7990. for as_dir in $PATH
  7991. do
  7992. IFS=$as_save_IFS
  7993. test -z "$as_dir" && as_dir=.
  7994. for ac_exec_ext in '' $ac_executable_extensions; do
  7995. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7996. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7998. break 2
  7999. fi
  8000. done
  8001. done
  8002. IFS=$as_save_IFS
  8003. fi
  8004. fi
  8005. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8006. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8008. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  8009. else
  8010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8011. $as_echo "no" >&6; }
  8012. fi
  8013. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8014. MANIFEST_TOOL=":"
  8015. else
  8016. case $cross_compiling:$ac_tool_warned in
  8017. yes:)
  8018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8019. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8020. ac_tool_warned=yes ;;
  8021. esac
  8022. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8023. fi
  8024. else
  8025. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8026. fi
  8027. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8029. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8030. if ${lt_cv_path_mainfest_tool+:} false; then :
  8031. $as_echo_n "(cached) " >&6
  8032. else
  8033. lt_cv_path_mainfest_tool=no
  8034. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8035. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8036. cat conftest.err >&5
  8037. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8038. lt_cv_path_mainfest_tool=yes
  8039. fi
  8040. rm -f conftest*
  8041. fi
  8042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8043. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8044. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  8045. MANIFEST_TOOL=:
  8046. fi
  8047. case $host_os in
  8048. rhapsody* | darwin*)
  8049. if test -n "$ac_tool_prefix"; then
  8050. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8051. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8053. $as_echo_n "checking for $ac_word... " >&6; }
  8054. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8055. $as_echo_n "(cached) " >&6
  8056. else
  8057. if test -n "$DSYMUTIL"; then
  8058. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8059. else
  8060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8061. for as_dir in $PATH
  8062. do
  8063. IFS=$as_save_IFS
  8064. test -z "$as_dir" && as_dir=.
  8065. for ac_exec_ext in '' $ac_executable_extensions; do
  8066. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8067. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8068. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8069. break 2
  8070. fi
  8071. done
  8072. done
  8073. IFS=$as_save_IFS
  8074. fi
  8075. fi
  8076. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8077. if test -n "$DSYMUTIL"; then
  8078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8079. $as_echo "$DSYMUTIL" >&6; }
  8080. else
  8081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8082. $as_echo "no" >&6; }
  8083. fi
  8084. fi
  8085. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8086. ac_ct_DSYMUTIL=$DSYMUTIL
  8087. # Extract the first word of "dsymutil", so it can be a program name with args.
  8088. set dummy dsymutil; ac_word=$2
  8089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8090. $as_echo_n "checking for $ac_word... " >&6; }
  8091. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8092. $as_echo_n "(cached) " >&6
  8093. else
  8094. if test -n "$ac_ct_DSYMUTIL"; then
  8095. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8096. else
  8097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8098. for as_dir in $PATH
  8099. do
  8100. IFS=$as_save_IFS
  8101. test -z "$as_dir" && as_dir=.
  8102. for ac_exec_ext in '' $ac_executable_extensions; do
  8103. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8104. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8106. break 2
  8107. fi
  8108. done
  8109. done
  8110. IFS=$as_save_IFS
  8111. fi
  8112. fi
  8113. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8114. if test -n "$ac_ct_DSYMUTIL"; then
  8115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8116. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8117. else
  8118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8119. $as_echo "no" >&6; }
  8120. fi
  8121. if test "x$ac_ct_DSYMUTIL" = x; then
  8122. DSYMUTIL=":"
  8123. else
  8124. case $cross_compiling:$ac_tool_warned in
  8125. yes:)
  8126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8127. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8128. ac_tool_warned=yes ;;
  8129. esac
  8130. DSYMUTIL=$ac_ct_DSYMUTIL
  8131. fi
  8132. else
  8133. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8134. fi
  8135. if test -n "$ac_tool_prefix"; then
  8136. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8137. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8139. $as_echo_n "checking for $ac_word... " >&6; }
  8140. if ${ac_cv_prog_NMEDIT+:} false; then :
  8141. $as_echo_n "(cached) " >&6
  8142. else
  8143. if test -n "$NMEDIT"; then
  8144. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8145. else
  8146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8147. for as_dir in $PATH
  8148. do
  8149. IFS=$as_save_IFS
  8150. test -z "$as_dir" && as_dir=.
  8151. for ac_exec_ext in '' $ac_executable_extensions; do
  8152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8153. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8155. break 2
  8156. fi
  8157. done
  8158. done
  8159. IFS=$as_save_IFS
  8160. fi
  8161. fi
  8162. NMEDIT=$ac_cv_prog_NMEDIT
  8163. if test -n "$NMEDIT"; then
  8164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8165. $as_echo "$NMEDIT" >&6; }
  8166. else
  8167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8168. $as_echo "no" >&6; }
  8169. fi
  8170. fi
  8171. if test -z "$ac_cv_prog_NMEDIT"; then
  8172. ac_ct_NMEDIT=$NMEDIT
  8173. # Extract the first word of "nmedit", so it can be a program name with args.
  8174. set dummy nmedit; ac_word=$2
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8176. $as_echo_n "checking for $ac_word... " >&6; }
  8177. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8178. $as_echo_n "(cached) " >&6
  8179. else
  8180. if test -n "$ac_ct_NMEDIT"; then
  8181. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8182. else
  8183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8184. for as_dir in $PATH
  8185. do
  8186. IFS=$as_save_IFS
  8187. test -z "$as_dir" && as_dir=.
  8188. for ac_exec_ext in '' $ac_executable_extensions; do
  8189. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8190. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8191. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8192. break 2
  8193. fi
  8194. done
  8195. done
  8196. IFS=$as_save_IFS
  8197. fi
  8198. fi
  8199. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8200. if test -n "$ac_ct_NMEDIT"; then
  8201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8202. $as_echo "$ac_ct_NMEDIT" >&6; }
  8203. else
  8204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8205. $as_echo "no" >&6; }
  8206. fi
  8207. if test "x$ac_ct_NMEDIT" = x; then
  8208. NMEDIT=":"
  8209. else
  8210. case $cross_compiling:$ac_tool_warned in
  8211. yes:)
  8212. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8213. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8214. ac_tool_warned=yes ;;
  8215. esac
  8216. NMEDIT=$ac_ct_NMEDIT
  8217. fi
  8218. else
  8219. NMEDIT="$ac_cv_prog_NMEDIT"
  8220. fi
  8221. if test -n "$ac_tool_prefix"; then
  8222. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8223. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8225. $as_echo_n "checking for $ac_word... " >&6; }
  8226. if ${ac_cv_prog_LIPO+:} false; then :
  8227. $as_echo_n "(cached) " >&6
  8228. else
  8229. if test -n "$LIPO"; then
  8230. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8231. else
  8232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8233. for as_dir in $PATH
  8234. do
  8235. IFS=$as_save_IFS
  8236. test -z "$as_dir" && as_dir=.
  8237. for ac_exec_ext in '' $ac_executable_extensions; do
  8238. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8239. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8240. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8241. break 2
  8242. fi
  8243. done
  8244. done
  8245. IFS=$as_save_IFS
  8246. fi
  8247. fi
  8248. LIPO=$ac_cv_prog_LIPO
  8249. if test -n "$LIPO"; then
  8250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8251. $as_echo "$LIPO" >&6; }
  8252. else
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8254. $as_echo "no" >&6; }
  8255. fi
  8256. fi
  8257. if test -z "$ac_cv_prog_LIPO"; then
  8258. ac_ct_LIPO=$LIPO
  8259. # Extract the first word of "lipo", so it can be a program name with args.
  8260. set dummy lipo; ac_word=$2
  8261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8262. $as_echo_n "checking for $ac_word... " >&6; }
  8263. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  8264. $as_echo_n "(cached) " >&6
  8265. else
  8266. if test -n "$ac_ct_LIPO"; then
  8267. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8268. else
  8269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8270. for as_dir in $PATH
  8271. do
  8272. IFS=$as_save_IFS
  8273. test -z "$as_dir" && as_dir=.
  8274. for ac_exec_ext in '' $ac_executable_extensions; do
  8275. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8276. ac_cv_prog_ac_ct_LIPO="lipo"
  8277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8278. break 2
  8279. fi
  8280. done
  8281. done
  8282. IFS=$as_save_IFS
  8283. fi
  8284. fi
  8285. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8286. if test -n "$ac_ct_LIPO"; then
  8287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8288. $as_echo "$ac_ct_LIPO" >&6; }
  8289. else
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8291. $as_echo "no" >&6; }
  8292. fi
  8293. if test "x$ac_ct_LIPO" = x; then
  8294. LIPO=":"
  8295. else
  8296. case $cross_compiling:$ac_tool_warned in
  8297. yes:)
  8298. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8299. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8300. ac_tool_warned=yes ;;
  8301. esac
  8302. LIPO=$ac_ct_LIPO
  8303. fi
  8304. else
  8305. LIPO="$ac_cv_prog_LIPO"
  8306. fi
  8307. if test -n "$ac_tool_prefix"; then
  8308. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8309. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8311. $as_echo_n "checking for $ac_word... " >&6; }
  8312. if ${ac_cv_prog_OTOOL+:} false; then :
  8313. $as_echo_n "(cached) " >&6
  8314. else
  8315. if test -n "$OTOOL"; then
  8316. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8317. else
  8318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8319. for as_dir in $PATH
  8320. do
  8321. IFS=$as_save_IFS
  8322. test -z "$as_dir" && as_dir=.
  8323. for ac_exec_ext in '' $ac_executable_extensions; do
  8324. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8325. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8327. break 2
  8328. fi
  8329. done
  8330. done
  8331. IFS=$as_save_IFS
  8332. fi
  8333. fi
  8334. OTOOL=$ac_cv_prog_OTOOL
  8335. if test -n "$OTOOL"; then
  8336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8337. $as_echo "$OTOOL" >&6; }
  8338. else
  8339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8340. $as_echo "no" >&6; }
  8341. fi
  8342. fi
  8343. if test -z "$ac_cv_prog_OTOOL"; then
  8344. ac_ct_OTOOL=$OTOOL
  8345. # Extract the first word of "otool", so it can be a program name with args.
  8346. set dummy otool; ac_word=$2
  8347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8348. $as_echo_n "checking for $ac_word... " >&6; }
  8349. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  8350. $as_echo_n "(cached) " >&6
  8351. else
  8352. if test -n "$ac_ct_OTOOL"; then
  8353. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8354. else
  8355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8356. for as_dir in $PATH
  8357. do
  8358. IFS=$as_save_IFS
  8359. test -z "$as_dir" && as_dir=.
  8360. for ac_exec_ext in '' $ac_executable_extensions; do
  8361. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8362. ac_cv_prog_ac_ct_OTOOL="otool"
  8363. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8364. break 2
  8365. fi
  8366. done
  8367. done
  8368. IFS=$as_save_IFS
  8369. fi
  8370. fi
  8371. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8372. if test -n "$ac_ct_OTOOL"; then
  8373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8374. $as_echo "$ac_ct_OTOOL" >&6; }
  8375. else
  8376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8377. $as_echo "no" >&6; }
  8378. fi
  8379. if test "x$ac_ct_OTOOL" = x; then
  8380. OTOOL=":"
  8381. else
  8382. case $cross_compiling:$ac_tool_warned in
  8383. yes:)
  8384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8385. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8386. ac_tool_warned=yes ;;
  8387. esac
  8388. OTOOL=$ac_ct_OTOOL
  8389. fi
  8390. else
  8391. OTOOL="$ac_cv_prog_OTOOL"
  8392. fi
  8393. if test -n "$ac_tool_prefix"; then
  8394. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8395. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8397. $as_echo_n "checking for $ac_word... " >&6; }
  8398. if ${ac_cv_prog_OTOOL64+:} false; then :
  8399. $as_echo_n "(cached) " >&6
  8400. else
  8401. if test -n "$OTOOL64"; then
  8402. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8403. else
  8404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8405. for as_dir in $PATH
  8406. do
  8407. IFS=$as_save_IFS
  8408. test -z "$as_dir" && as_dir=.
  8409. for ac_exec_ext in '' $ac_executable_extensions; do
  8410. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8411. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8412. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8413. break 2
  8414. fi
  8415. done
  8416. done
  8417. IFS=$as_save_IFS
  8418. fi
  8419. fi
  8420. OTOOL64=$ac_cv_prog_OTOOL64
  8421. if test -n "$OTOOL64"; then
  8422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8423. $as_echo "$OTOOL64" >&6; }
  8424. else
  8425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8426. $as_echo "no" >&6; }
  8427. fi
  8428. fi
  8429. if test -z "$ac_cv_prog_OTOOL64"; then
  8430. ac_ct_OTOOL64=$OTOOL64
  8431. # Extract the first word of "otool64", so it can be a program name with args.
  8432. set dummy otool64; ac_word=$2
  8433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8434. $as_echo_n "checking for $ac_word... " >&6; }
  8435. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  8436. $as_echo_n "(cached) " >&6
  8437. else
  8438. if test -n "$ac_ct_OTOOL64"; then
  8439. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8440. else
  8441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8442. for as_dir in $PATH
  8443. do
  8444. IFS=$as_save_IFS
  8445. test -z "$as_dir" && as_dir=.
  8446. for ac_exec_ext in '' $ac_executable_extensions; do
  8447. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8448. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8450. break 2
  8451. fi
  8452. done
  8453. done
  8454. IFS=$as_save_IFS
  8455. fi
  8456. fi
  8457. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8458. if test -n "$ac_ct_OTOOL64"; then
  8459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8460. $as_echo "$ac_ct_OTOOL64" >&6; }
  8461. else
  8462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8463. $as_echo "no" >&6; }
  8464. fi
  8465. if test "x$ac_ct_OTOOL64" = x; then
  8466. OTOOL64=":"
  8467. else
  8468. case $cross_compiling:$ac_tool_warned in
  8469. yes:)
  8470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8471. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8472. ac_tool_warned=yes ;;
  8473. esac
  8474. OTOOL64=$ac_ct_OTOOL64
  8475. fi
  8476. else
  8477. OTOOL64="$ac_cv_prog_OTOOL64"
  8478. fi
  8479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8480. $as_echo_n "checking for -single_module linker flag... " >&6; }
  8481. if ${lt_cv_apple_cc_single_mod+:} false; then :
  8482. $as_echo_n "(cached) " >&6
  8483. else
  8484. lt_cv_apple_cc_single_mod=no
  8485. if test -z "${LT_MULTI_MODULE}"; then
  8486. # By default we will add the -single_module flag. You can override
  8487. # by either setting the environment variable LT_MULTI_MODULE
  8488. # non-empty at configure time, or by adding -multi_module to the
  8489. # link flags.
  8490. rm -rf libconftest.dylib*
  8491. echo "int foo(void){return 1;}" > conftest.c
  8492. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8493. -dynamiclib -Wl,-single_module conftest.c" >&5
  8494. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8495. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8496. _lt_result=$?
  8497. # If there is a non-empty error log, and "single_module"
  8498. # appears in it, assume the flag caused a linker warning
  8499. if test -s conftest.err && $GREP single_module conftest.err; then
  8500. cat conftest.err >&5
  8501. # Otherwise, if the output was created with a 0 exit code from
  8502. # the compiler, it worked.
  8503. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  8504. lt_cv_apple_cc_single_mod=yes
  8505. else
  8506. cat conftest.err >&5
  8507. fi
  8508. rm -rf libconftest.dylib*
  8509. rm -f conftest.*
  8510. fi
  8511. fi
  8512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8513. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8515. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8516. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  8517. $as_echo_n "(cached) " >&6
  8518. else
  8519. lt_cv_ld_exported_symbols_list=no
  8520. save_LDFLAGS=$LDFLAGS
  8521. echo "_main" > conftest.sym
  8522. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8524. /* end confdefs.h. */
  8525. int
  8526. main ()
  8527. {
  8528. ;
  8529. return 0;
  8530. }
  8531. _ACEOF
  8532. if ac_fn_c_try_link "$LINENO"; then :
  8533. lt_cv_ld_exported_symbols_list=yes
  8534. else
  8535. lt_cv_ld_exported_symbols_list=no
  8536. fi
  8537. rm -f core conftest.err conftest.$ac_objext \
  8538. conftest$ac_exeext conftest.$ac_ext
  8539. LDFLAGS="$save_LDFLAGS"
  8540. fi
  8541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8542. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8544. $as_echo_n "checking for -force_load linker flag... " >&6; }
  8545. if ${lt_cv_ld_force_load+:} false; then :
  8546. $as_echo_n "(cached) " >&6
  8547. else
  8548. lt_cv_ld_force_load=no
  8549. cat > conftest.c << _LT_EOF
  8550. int forced_loaded() { return 2;}
  8551. _LT_EOF
  8552. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8553. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8554. echo "$AR cru libconftest.a conftest.o" >&5
  8555. $AR cru libconftest.a conftest.o 2>&5
  8556. echo "$RANLIB libconftest.a" >&5
  8557. $RANLIB libconftest.a 2>&5
  8558. cat > conftest.c << _LT_EOF
  8559. int main() { return 0;}
  8560. _LT_EOF
  8561. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8562. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8563. _lt_result=$?
  8564. if test -s conftest.err && $GREP force_load conftest.err; then
  8565. cat conftest.err >&5
  8566. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  8567. lt_cv_ld_force_load=yes
  8568. else
  8569. cat conftest.err >&5
  8570. fi
  8571. rm -f conftest.err libconftest.a conftest conftest.c
  8572. rm -rf conftest.dSYM
  8573. fi
  8574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8575. $as_echo "$lt_cv_ld_force_load" >&6; }
  8576. case $host_os in
  8577. rhapsody* | darwin1.[012])
  8578. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  8579. darwin1.*)
  8580. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8581. darwin*) # darwin 5.x on
  8582. # if running on 10.5 or later, the deployment target defaults
  8583. # to the OS version, if on x86, and 10.4, the deployment
  8584. # target defaults to 10.4. Don't you love it?
  8585. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8586. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  8587. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8588. 10.[012]*)
  8589. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8590. 10.*)
  8591. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8592. esac
  8593. ;;
  8594. esac
  8595. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  8596. _lt_dar_single_mod='$single_module'
  8597. fi
  8598. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  8599. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  8600. else
  8601. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8602. fi
  8603. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  8604. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8605. else
  8606. _lt_dsymutil=
  8607. fi
  8608. ;;
  8609. esac
  8610. for ac_header in dlfcn.h
  8611. do :
  8612. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8613. "
  8614. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8615. cat >>confdefs.h <<_ACEOF
  8616. #define HAVE_DLFCN_H 1
  8617. _ACEOF
  8618. fi
  8619. done
  8620. # Set options
  8621. enable_dlopen=no
  8622. # Check whether --with-pic was given.
  8623. if test "${with_pic+set}" = set; then :
  8624. withval=$with_pic; lt_p=${PACKAGE-default}
  8625. case $withval in
  8626. yes|no) pic_mode=$withval ;;
  8627. *)
  8628. pic_mode=default
  8629. # Look at the argument we got. We use all the common list separators.
  8630. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8631. for lt_pkg in $withval; do
  8632. IFS="$lt_save_ifs"
  8633. if test "X$lt_pkg" = "X$lt_p"; then
  8634. pic_mode=yes
  8635. fi
  8636. done
  8637. IFS="$lt_save_ifs"
  8638. ;;
  8639. esac
  8640. else
  8641. pic_mode=default
  8642. fi
  8643. test -z "$pic_mode" && pic_mode=default
  8644. # Check whether --enable-fast-install was given.
  8645. if test "${enable_fast_install+set}" = set; then :
  8646. enableval=$enable_fast_install; p=${PACKAGE-default}
  8647. case $enableval in
  8648. yes) enable_fast_install=yes ;;
  8649. no) enable_fast_install=no ;;
  8650. *)
  8651. enable_fast_install=no
  8652. # Look at the argument we got. We use all the common list separators.
  8653. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8654. for pkg in $enableval; do
  8655. IFS="$lt_save_ifs"
  8656. if test "X$pkg" = "X$p"; then
  8657. enable_fast_install=yes
  8658. fi
  8659. done
  8660. IFS="$lt_save_ifs"
  8661. ;;
  8662. esac
  8663. else
  8664. enable_fast_install=yes
  8665. fi
  8666. # This can be used to rebuild libtool when needed
  8667. LIBTOOL_DEPS="$ltmain"
  8668. # Always use our own libtool.
  8669. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8670. test -z "$LN_S" && LN_S="ln -s"
  8671. if test -n "${ZSH_VERSION+set}" ; then
  8672. setopt NO_GLOB_SUBST
  8673. fi
  8674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8675. $as_echo_n "checking for objdir... " >&6; }
  8676. if ${lt_cv_objdir+:} false; then :
  8677. $as_echo_n "(cached) " >&6
  8678. else
  8679. rm -f .libs 2>/dev/null
  8680. mkdir .libs 2>/dev/null
  8681. if test -d .libs; then
  8682. lt_cv_objdir=.libs
  8683. else
  8684. # MS-DOS does not allow filenames that begin with a dot.
  8685. lt_cv_objdir=_libs
  8686. fi
  8687. rmdir .libs 2>/dev/null
  8688. fi
  8689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8690. $as_echo "$lt_cv_objdir" >&6; }
  8691. objdir=$lt_cv_objdir
  8692. cat >>confdefs.h <<_ACEOF
  8693. #define LT_OBJDIR "$lt_cv_objdir/"
  8694. _ACEOF
  8695. case $host_os in
  8696. aix3*)
  8697. # AIX sometimes has problems with the GCC collect2 program. For some
  8698. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8699. # vanish in a puff of smoke.
  8700. if test "X${COLLECT_NAMES+set}" != Xset; then
  8701. COLLECT_NAMES=
  8702. export COLLECT_NAMES
  8703. fi
  8704. ;;
  8705. esac
  8706. # Global variables:
  8707. ofile=libtool
  8708. can_build_shared=yes
  8709. # All known linkers require a `.a' archive for static linking (except MSVC,
  8710. # which needs '.lib').
  8711. libext=a
  8712. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8713. old_CC="$CC"
  8714. old_CFLAGS="$CFLAGS"
  8715. # Set sane defaults for various variables
  8716. test -z "$CC" && CC=cc
  8717. test -z "$LTCC" && LTCC=$CC
  8718. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8719. test -z "$LD" && LD=ld
  8720. test -z "$ac_objext" && ac_objext=o
  8721. for cc_temp in $compiler""; do
  8722. case $cc_temp in
  8723. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8724. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8725. \-*) ;;
  8726. *) break;;
  8727. esac
  8728. done
  8729. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8730. # Only perform the check for file, if the check method requires it
  8731. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8732. case $deplibs_check_method in
  8733. file_magic*)
  8734. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8736. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8737. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8738. $as_echo_n "(cached) " >&6
  8739. else
  8740. case $MAGIC_CMD in
  8741. [\\/*] | ?:[\\/]*)
  8742. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8743. ;;
  8744. *)
  8745. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8746. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8747. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8748. for ac_dir in $ac_dummy; do
  8749. IFS="$lt_save_ifs"
  8750. test -z "$ac_dir" && ac_dir=.
  8751. if test -f $ac_dir/${ac_tool_prefix}file; then
  8752. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8753. if test -n "$file_magic_test_file"; then
  8754. case $deplibs_check_method in
  8755. "file_magic "*)
  8756. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8757. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8758. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8759. $EGREP "$file_magic_regex" > /dev/null; then
  8760. :
  8761. else
  8762. cat <<_LT_EOF 1>&2
  8763. *** Warning: the command libtool uses to detect shared libraries,
  8764. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8765. *** The result is that libtool may fail to recognize shared libraries
  8766. *** as such. This will affect the creation of libtool libraries that
  8767. *** depend on shared libraries, but programs linked with such libtool
  8768. *** libraries will work regardless of this problem. Nevertheless, you
  8769. *** may want to report the problem to your system manager and/or to
  8770. *** [email protected]
  8771. _LT_EOF
  8772. fi ;;
  8773. esac
  8774. fi
  8775. break
  8776. fi
  8777. done
  8778. IFS="$lt_save_ifs"
  8779. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8780. ;;
  8781. esac
  8782. fi
  8783. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8784. if test -n "$MAGIC_CMD"; then
  8785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8786. $as_echo "$MAGIC_CMD" >&6; }
  8787. else
  8788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8789. $as_echo "no" >&6; }
  8790. fi
  8791. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8792. if test -n "$ac_tool_prefix"; then
  8793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8794. $as_echo_n "checking for file... " >&6; }
  8795. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8796. $as_echo_n "(cached) " >&6
  8797. else
  8798. case $MAGIC_CMD in
  8799. [\\/*] | ?:[\\/]*)
  8800. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8801. ;;
  8802. *)
  8803. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8804. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8805. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8806. for ac_dir in $ac_dummy; do
  8807. IFS="$lt_save_ifs"
  8808. test -z "$ac_dir" && ac_dir=.
  8809. if test -f $ac_dir/file; then
  8810. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8811. if test -n "$file_magic_test_file"; then
  8812. case $deplibs_check_method in
  8813. "file_magic "*)
  8814. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8815. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8816. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8817. $EGREP "$file_magic_regex" > /dev/null; then
  8818. :
  8819. else
  8820. cat <<_LT_EOF 1>&2
  8821. *** Warning: the command libtool uses to detect shared libraries,
  8822. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8823. *** The result is that libtool may fail to recognize shared libraries
  8824. *** as such. This will affect the creation of libtool libraries that
  8825. *** depend on shared libraries, but programs linked with such libtool
  8826. *** libraries will work regardless of this problem. Nevertheless, you
  8827. *** may want to report the problem to your system manager and/or to
  8828. *** [email protected]
  8829. _LT_EOF
  8830. fi ;;
  8831. esac
  8832. fi
  8833. break
  8834. fi
  8835. done
  8836. IFS="$lt_save_ifs"
  8837. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8838. ;;
  8839. esac
  8840. fi
  8841. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8842. if test -n "$MAGIC_CMD"; then
  8843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8844. $as_echo "$MAGIC_CMD" >&6; }
  8845. else
  8846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8847. $as_echo "no" >&6; }
  8848. fi
  8849. else
  8850. MAGIC_CMD=:
  8851. fi
  8852. fi
  8853. fi
  8854. ;;
  8855. esac
  8856. # Use C for the default configuration in the libtool script
  8857. lt_save_CC="$CC"
  8858. ac_ext=c
  8859. ac_cpp='$CPP $CPPFLAGS'
  8860. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8861. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8862. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8863. # Source file extension for C test sources.
  8864. ac_ext=c
  8865. # Object file extension for compiled C test sources.
  8866. objext=o
  8867. objext=$objext
  8868. # Code to be used in simple compile tests
  8869. lt_simple_compile_test_code="int some_variable = 0;"
  8870. # Code to be used in simple link tests
  8871. lt_simple_link_test_code='int main(){return(0);}'
  8872. # If no C compiler was specified, use CC.
  8873. LTCC=${LTCC-"$CC"}
  8874. # If no C compiler flags were specified, use CFLAGS.
  8875. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8876. # Allow CC to be a program name with arguments.
  8877. compiler=$CC
  8878. # Save the default compiler, since it gets overwritten when the other
  8879. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8880. compiler_DEFAULT=$CC
  8881. # save warnings/boilerplate of simple test code
  8882. ac_outfile=conftest.$ac_objext
  8883. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8884. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8885. _lt_compiler_boilerplate=`cat conftest.err`
  8886. $RM conftest*
  8887. ac_outfile=conftest.$ac_objext
  8888. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8889. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8890. _lt_linker_boilerplate=`cat conftest.err`
  8891. $RM -r conftest*
  8892. ## CAVEAT EMPTOR:
  8893. ## There is no encapsulation within the following macros, do not change
  8894. ## the running order or otherwise move them around unless you know exactly
  8895. ## what you are doing...
  8896. if test -n "$compiler"; then
  8897. lt_prog_compiler_no_builtin_flag=
  8898. if test "$GCC" = yes; then
  8899. case $cc_basename in
  8900. nvcc*)
  8901. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8902. *)
  8903. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8904. esac
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8906. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8907. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8908. $as_echo_n "(cached) " >&6
  8909. else
  8910. lt_cv_prog_compiler_rtti_exceptions=no
  8911. ac_outfile=conftest.$ac_objext
  8912. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8913. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8914. # Insert the option either (1) after the last *FLAGS variable, or
  8915. # (2) before a word containing "conftest.", or (3) at the end.
  8916. # Note that $ac_compile itself does not contain backslashes and begins
  8917. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8918. # The option is referenced via a variable to avoid confusing sed.
  8919. lt_compile=`echo "$ac_compile" | $SED \
  8920. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8921. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8922. -e 's:$: $lt_compiler_flag:'`
  8923. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8924. (eval "$lt_compile" 2>conftest.err)
  8925. ac_status=$?
  8926. cat conftest.err >&5
  8927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8928. if (exit $ac_status) && test -s "$ac_outfile"; then
  8929. # The compiler can only warn and ignore the option if not recognized
  8930. # So say no if there are warnings other than the usual output.
  8931. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8932. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8933. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8934. lt_cv_prog_compiler_rtti_exceptions=yes
  8935. fi
  8936. fi
  8937. $RM conftest*
  8938. fi
  8939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8940. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8941. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8942. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8943. else
  8944. :
  8945. fi
  8946. fi
  8947. lt_prog_compiler_wl=
  8948. lt_prog_compiler_pic=
  8949. lt_prog_compiler_static=
  8950. if test "$GCC" = yes; then
  8951. lt_prog_compiler_wl='-Wl,'
  8952. lt_prog_compiler_static='-static'
  8953. case $host_os in
  8954. aix*)
  8955. # All AIX code is PIC.
  8956. if test "$host_cpu" = ia64; then
  8957. # AIX 5 now supports IA64 processor
  8958. lt_prog_compiler_static='-Bstatic'
  8959. fi
  8960. ;;
  8961. amigaos*)
  8962. case $host_cpu in
  8963. powerpc)
  8964. # see comment about AmigaOS4 .so support
  8965. lt_prog_compiler_pic='-fPIC'
  8966. ;;
  8967. m68k)
  8968. # FIXME: we need at least 68020 code to build shared libraries, but
  8969. # adding the `-m68020' flag to GCC prevents building anything better,
  8970. # like `-m68040'.
  8971. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8972. ;;
  8973. esac
  8974. ;;
  8975. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8976. # PIC is the default for these OSes.
  8977. ;;
  8978. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8979. # This hack is so that the source file can tell whether it is being
  8980. # built for inclusion in a dll (and should export symbols for example).
  8981. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8982. # (--disable-auto-import) libraries
  8983. lt_prog_compiler_pic='-DDLL_EXPORT'
  8984. ;;
  8985. darwin* | rhapsody*)
  8986. # PIC is the default on this platform
  8987. # Common symbols not allowed in MH_DYLIB files
  8988. lt_prog_compiler_pic='-fno-common'
  8989. ;;
  8990. haiku*)
  8991. # PIC is the default for Haiku.
  8992. # The "-static" flag exists, but is broken.
  8993. lt_prog_compiler_static=
  8994. ;;
  8995. hpux*)
  8996. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8997. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8998. # sets the default TLS model and affects inlining.
  8999. case $host_cpu in
  9000. hppa*64*)
  9001. # +Z the default
  9002. ;;
  9003. *)
  9004. lt_prog_compiler_pic='-fPIC'
  9005. ;;
  9006. esac
  9007. ;;
  9008. interix[3-9]*)
  9009. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9010. # Instead, we relocate shared libraries at runtime.
  9011. ;;
  9012. msdosdjgpp*)
  9013. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9014. # on systems that don't support them.
  9015. lt_prog_compiler_can_build_shared=no
  9016. enable_shared=no
  9017. ;;
  9018. *nto* | *qnx*)
  9019. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9020. # it will coredump.
  9021. lt_prog_compiler_pic='-fPIC -shared'
  9022. ;;
  9023. sysv4*MP*)
  9024. if test -d /usr/nec; then
  9025. lt_prog_compiler_pic=-Kconform_pic
  9026. fi
  9027. ;;
  9028. *)
  9029. lt_prog_compiler_pic='-fPIC'
  9030. ;;
  9031. esac
  9032. case $cc_basename in
  9033. nvcc*) # Cuda Compiler Driver 2.2
  9034. lt_prog_compiler_wl='-Xlinker '
  9035. if test -n "$lt_prog_compiler_pic"; then
  9036. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  9037. fi
  9038. ;;
  9039. esac
  9040. else
  9041. # PORTME Check for flag to pass linker flags through the system compiler.
  9042. case $host_os in
  9043. aix*)
  9044. lt_prog_compiler_wl='-Wl,'
  9045. if test "$host_cpu" = ia64; then
  9046. # AIX 5 now supports IA64 processor
  9047. lt_prog_compiler_static='-Bstatic'
  9048. else
  9049. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9050. fi
  9051. ;;
  9052. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9053. # This hack is so that the source file can tell whether it is being
  9054. # built for inclusion in a dll (and should export symbols for example).
  9055. lt_prog_compiler_pic='-DDLL_EXPORT'
  9056. ;;
  9057. hpux9* | hpux10* | hpux11*)
  9058. lt_prog_compiler_wl='-Wl,'
  9059. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9060. # not for PA HP-UX.
  9061. case $host_cpu in
  9062. hppa*64*|ia64*)
  9063. # +Z the default
  9064. ;;
  9065. *)
  9066. lt_prog_compiler_pic='+Z'
  9067. ;;
  9068. esac
  9069. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9070. lt_prog_compiler_static='${wl}-a ${wl}archive'
  9071. ;;
  9072. irix5* | irix6* | nonstopux*)
  9073. lt_prog_compiler_wl='-Wl,'
  9074. # PIC (with -KPIC) is the default.
  9075. lt_prog_compiler_static='-non_shared'
  9076. ;;
  9077. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9078. case $cc_basename in
  9079. # old Intel for x86_64 which still supported -KPIC.
  9080. ecc*)
  9081. lt_prog_compiler_wl='-Wl,'
  9082. lt_prog_compiler_pic='-KPIC'
  9083. lt_prog_compiler_static='-static'
  9084. ;;
  9085. # icc used to be incompatible with GCC.
  9086. # ICC 10 doesn't accept -KPIC any more.
  9087. icc* | ifort*)
  9088. lt_prog_compiler_wl='-Wl,'
  9089. lt_prog_compiler_pic='-fPIC'
  9090. lt_prog_compiler_static='-static'
  9091. ;;
  9092. # Lahey Fortran 8.1.
  9093. lf95*)
  9094. lt_prog_compiler_wl='-Wl,'
  9095. lt_prog_compiler_pic='--shared'
  9096. lt_prog_compiler_static='--static'
  9097. ;;
  9098. nagfor*)
  9099. # NAG Fortran compiler
  9100. lt_prog_compiler_wl='-Wl,-Wl,,'
  9101. lt_prog_compiler_pic='-PIC'
  9102. lt_prog_compiler_static='-Bstatic'
  9103. ;;
  9104. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9105. # Portland Group compilers (*not* the Pentium gcc compiler,
  9106. # which looks to be a dead project)
  9107. lt_prog_compiler_wl='-Wl,'
  9108. lt_prog_compiler_pic='-fpic'
  9109. lt_prog_compiler_static='-Bstatic'
  9110. ;;
  9111. ccc*)
  9112. lt_prog_compiler_wl='-Wl,'
  9113. # All Alpha code is PIC.
  9114. lt_prog_compiler_static='-non_shared'
  9115. ;;
  9116. xl* | bgxl* | bgf* | mpixl*)
  9117. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9118. lt_prog_compiler_wl='-Wl,'
  9119. lt_prog_compiler_pic='-qpic'
  9120. lt_prog_compiler_static='-qstaticlink'
  9121. ;;
  9122. *)
  9123. case `$CC -V 2>&1 | sed 5q` in
  9124. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9125. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9126. lt_prog_compiler_pic='-KPIC'
  9127. lt_prog_compiler_static='-Bstatic'
  9128. lt_prog_compiler_wl=''
  9129. ;;
  9130. *Sun\ F* | *Sun*Fortran*)
  9131. lt_prog_compiler_pic='-KPIC'
  9132. lt_prog_compiler_static='-Bstatic'
  9133. lt_prog_compiler_wl='-Qoption ld '
  9134. ;;
  9135. *Sun\ C*)
  9136. # Sun C 5.9
  9137. lt_prog_compiler_pic='-KPIC'
  9138. lt_prog_compiler_static='-Bstatic'
  9139. lt_prog_compiler_wl='-Wl,'
  9140. ;;
  9141. *Intel*\ [CF]*Compiler*)
  9142. lt_prog_compiler_wl='-Wl,'
  9143. lt_prog_compiler_pic='-fPIC'
  9144. lt_prog_compiler_static='-static'
  9145. ;;
  9146. *Portland\ Group*)
  9147. lt_prog_compiler_wl='-Wl,'
  9148. lt_prog_compiler_pic='-fpic'
  9149. lt_prog_compiler_static='-Bstatic'
  9150. ;;
  9151. esac
  9152. ;;
  9153. esac
  9154. ;;
  9155. newsos6)
  9156. lt_prog_compiler_pic='-KPIC'
  9157. lt_prog_compiler_static='-Bstatic'
  9158. ;;
  9159. *nto* | *qnx*)
  9160. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9161. # it will coredump.
  9162. lt_prog_compiler_pic='-fPIC -shared'
  9163. ;;
  9164. osf3* | osf4* | osf5*)
  9165. lt_prog_compiler_wl='-Wl,'
  9166. # All OSF/1 code is PIC.
  9167. lt_prog_compiler_static='-non_shared'
  9168. ;;
  9169. rdos*)
  9170. lt_prog_compiler_static='-non_shared'
  9171. ;;
  9172. solaris*)
  9173. lt_prog_compiler_pic='-KPIC'
  9174. lt_prog_compiler_static='-Bstatic'
  9175. case $cc_basename in
  9176. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9177. lt_prog_compiler_wl='-Qoption ld ';;
  9178. *)
  9179. lt_prog_compiler_wl='-Wl,';;
  9180. esac
  9181. ;;
  9182. sunos4*)
  9183. lt_prog_compiler_wl='-Qoption ld '
  9184. lt_prog_compiler_pic='-PIC'
  9185. lt_prog_compiler_static='-Bstatic'
  9186. ;;
  9187. sysv4 | sysv4.2uw2* | sysv4.3*)
  9188. lt_prog_compiler_wl='-Wl,'
  9189. lt_prog_compiler_pic='-KPIC'
  9190. lt_prog_compiler_static='-Bstatic'
  9191. ;;
  9192. sysv4*MP*)
  9193. if test -d /usr/nec ;then
  9194. lt_prog_compiler_pic='-Kconform_pic'
  9195. lt_prog_compiler_static='-Bstatic'
  9196. fi
  9197. ;;
  9198. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9199. lt_prog_compiler_wl='-Wl,'
  9200. lt_prog_compiler_pic='-KPIC'
  9201. lt_prog_compiler_static='-Bstatic'
  9202. ;;
  9203. unicos*)
  9204. lt_prog_compiler_wl='-Wl,'
  9205. lt_prog_compiler_can_build_shared=no
  9206. ;;
  9207. uts4*)
  9208. lt_prog_compiler_pic='-pic'
  9209. lt_prog_compiler_static='-Bstatic'
  9210. ;;
  9211. *)
  9212. lt_prog_compiler_can_build_shared=no
  9213. ;;
  9214. esac
  9215. fi
  9216. case $host_os in
  9217. # For platforms which do not support PIC, -DPIC is meaningless:
  9218. *djgpp*)
  9219. lt_prog_compiler_pic=
  9220. ;;
  9221. *)
  9222. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9223. ;;
  9224. esac
  9225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9226. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9227. if ${lt_cv_prog_compiler_pic+:} false; then :
  9228. $as_echo_n "(cached) " >&6
  9229. else
  9230. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9231. fi
  9232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9233. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  9234. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9235. #
  9236. # Check to make sure the PIC flag actually works.
  9237. #
  9238. if test -n "$lt_prog_compiler_pic"; then
  9239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9240. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9241. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  9242. $as_echo_n "(cached) " >&6
  9243. else
  9244. lt_cv_prog_compiler_pic_works=no
  9245. ac_outfile=conftest.$ac_objext
  9246. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9247. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  9248. # Insert the option either (1) after the last *FLAGS variable, or
  9249. # (2) before a word containing "conftest.", or (3) at the end.
  9250. # Note that $ac_compile itself does not contain backslashes and begins
  9251. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9252. # The option is referenced via a variable to avoid confusing sed.
  9253. lt_compile=`echo "$ac_compile" | $SED \
  9254. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9255. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9256. -e 's:$: $lt_compiler_flag:'`
  9257. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9258. (eval "$lt_compile" 2>conftest.err)
  9259. ac_status=$?
  9260. cat conftest.err >&5
  9261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9262. if (exit $ac_status) && test -s "$ac_outfile"; then
  9263. # The compiler can only warn and ignore the option if not recognized
  9264. # So say no if there are warnings other than the usual output.
  9265. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9266. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9267. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9268. lt_cv_prog_compiler_pic_works=yes
  9269. fi
  9270. fi
  9271. $RM conftest*
  9272. fi
  9273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9274. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9275. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  9276. case $lt_prog_compiler_pic in
  9277. "" | " "*) ;;
  9278. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9279. esac
  9280. else
  9281. lt_prog_compiler_pic=
  9282. lt_prog_compiler_can_build_shared=no
  9283. fi
  9284. fi
  9285. #
  9286. # Check to make sure the static flag actually works.
  9287. #
  9288. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9290. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9291. if ${lt_cv_prog_compiler_static_works+:} false; then :
  9292. $as_echo_n "(cached) " >&6
  9293. else
  9294. lt_cv_prog_compiler_static_works=no
  9295. save_LDFLAGS="$LDFLAGS"
  9296. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9297. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9298. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9299. # The linker can only warn and ignore the option if not recognized
  9300. # So say no if there are warnings
  9301. if test -s conftest.err; then
  9302. # Append any errors to the config.log.
  9303. cat conftest.err 1>&5
  9304. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9305. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9306. if diff conftest.exp conftest.er2 >/dev/null; then
  9307. lt_cv_prog_compiler_static_works=yes
  9308. fi
  9309. else
  9310. lt_cv_prog_compiler_static_works=yes
  9311. fi
  9312. fi
  9313. $RM -r conftest*
  9314. LDFLAGS="$save_LDFLAGS"
  9315. fi
  9316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9317. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9318. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  9319. :
  9320. else
  9321. lt_prog_compiler_static=
  9322. fi
  9323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9324. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9325. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9326. $as_echo_n "(cached) " >&6
  9327. else
  9328. lt_cv_prog_compiler_c_o=no
  9329. $RM -r conftest 2>/dev/null
  9330. mkdir conftest
  9331. cd conftest
  9332. mkdir out
  9333. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9334. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9335. # Insert the option either (1) after the last *FLAGS variable, or
  9336. # (2) before a word containing "conftest.", or (3) at the end.
  9337. # Note that $ac_compile itself does not contain backslashes and begins
  9338. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9339. lt_compile=`echo "$ac_compile" | $SED \
  9340. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9341. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9342. -e 's:$: $lt_compiler_flag:'`
  9343. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9344. (eval "$lt_compile" 2>out/conftest.err)
  9345. ac_status=$?
  9346. cat out/conftest.err >&5
  9347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9348. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9349. then
  9350. # The compiler can only warn and ignore the option if not recognized
  9351. # So say no if there are warnings
  9352. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9353. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9354. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9355. lt_cv_prog_compiler_c_o=yes
  9356. fi
  9357. fi
  9358. chmod u+w . 2>&5
  9359. $RM conftest*
  9360. # SGI C++ compiler will create directory out/ii_files/ for
  9361. # template instantiation
  9362. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9363. $RM out/* && rmdir out
  9364. cd ..
  9365. $RM -r conftest
  9366. $RM conftest*
  9367. fi
  9368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9369. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9371. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9372. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9373. $as_echo_n "(cached) " >&6
  9374. else
  9375. lt_cv_prog_compiler_c_o=no
  9376. $RM -r conftest 2>/dev/null
  9377. mkdir conftest
  9378. cd conftest
  9379. mkdir out
  9380. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9381. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9382. # Insert the option either (1) after the last *FLAGS variable, or
  9383. # (2) before a word containing "conftest.", or (3) at the end.
  9384. # Note that $ac_compile itself does not contain backslashes and begins
  9385. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9386. lt_compile=`echo "$ac_compile" | $SED \
  9387. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9388. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9389. -e 's:$: $lt_compiler_flag:'`
  9390. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9391. (eval "$lt_compile" 2>out/conftest.err)
  9392. ac_status=$?
  9393. cat out/conftest.err >&5
  9394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9395. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9396. then
  9397. # The compiler can only warn and ignore the option if not recognized
  9398. # So say no if there are warnings
  9399. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9400. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9401. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9402. lt_cv_prog_compiler_c_o=yes
  9403. fi
  9404. fi
  9405. chmod u+w . 2>&5
  9406. $RM conftest*
  9407. # SGI C++ compiler will create directory out/ii_files/ for
  9408. # template instantiation
  9409. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9410. $RM out/* && rmdir out
  9411. cd ..
  9412. $RM -r conftest
  9413. $RM conftest*
  9414. fi
  9415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9416. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9417. hard_links="nottested"
  9418. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  9419. # do not overwrite the value of need_locks provided by the user
  9420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9421. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9422. hard_links=yes
  9423. $RM conftest*
  9424. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9425. touch conftest.a
  9426. ln conftest.a conftest.b 2>&5 || hard_links=no
  9427. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9429. $as_echo "$hard_links" >&6; }
  9430. if test "$hard_links" = no; then
  9431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9432. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9433. need_locks=warn
  9434. fi
  9435. else
  9436. need_locks=no
  9437. fi
  9438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9439. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9440. runpath_var=
  9441. allow_undefined_flag=
  9442. always_export_symbols=no
  9443. archive_cmds=
  9444. archive_expsym_cmds=
  9445. compiler_needs_object=no
  9446. enable_shared_with_static_runtimes=no
  9447. export_dynamic_flag_spec=
  9448. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9449. hardcode_automatic=no
  9450. hardcode_direct=no
  9451. hardcode_direct_absolute=no
  9452. hardcode_libdir_flag_spec=
  9453. hardcode_libdir_separator=
  9454. hardcode_minus_L=no
  9455. hardcode_shlibpath_var=unsupported
  9456. inherit_rpath=no
  9457. link_all_deplibs=unknown
  9458. module_cmds=
  9459. module_expsym_cmds=
  9460. old_archive_from_new_cmds=
  9461. old_archive_from_expsyms_cmds=
  9462. thread_safe_flag_spec=
  9463. whole_archive_flag_spec=
  9464. # include_expsyms should be a list of space-separated symbols to be *always*
  9465. # included in the symbol list
  9466. include_expsyms=
  9467. # exclude_expsyms can be an extended regexp of symbols to exclude
  9468. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9469. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9470. # as well as any symbol that contains `d'.
  9471. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9472. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9473. # platforms (ab)use it in PIC code, but their linkers get confused if
  9474. # the symbol is explicitly referenced. Since portable code cannot
  9475. # rely on this symbol name, it's probably fine to never include it in
  9476. # preloaded symbol tables.
  9477. # Exclude shared library initialization/finalization symbols.
  9478. extract_expsyms_cmds=
  9479. case $host_os in
  9480. cygwin* | mingw* | pw32* | cegcc*)
  9481. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9482. # When not using gcc, we currently assume that we are using
  9483. # Microsoft Visual C++.
  9484. if test "$GCC" != yes; then
  9485. with_gnu_ld=no
  9486. fi
  9487. ;;
  9488. interix*)
  9489. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9490. with_gnu_ld=yes
  9491. ;;
  9492. openbsd*)
  9493. with_gnu_ld=no
  9494. ;;
  9495. esac
  9496. ld_shlibs=yes
  9497. # On some targets, GNU ld is compatible enough with the native linker
  9498. # that we're better off using the native interface for both.
  9499. lt_use_gnu_ld_interface=no
  9500. if test "$with_gnu_ld" = yes; then
  9501. case $host_os in
  9502. aix*)
  9503. # The AIX port of GNU ld has always aspired to compatibility
  9504. # with the native linker. However, as the warning in the GNU ld
  9505. # block says, versions before 2.19.5* couldn't really create working
  9506. # shared libraries, regardless of the interface used.
  9507. case `$LD -v 2>&1` in
  9508. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9509. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9510. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9511. *)
  9512. lt_use_gnu_ld_interface=yes
  9513. ;;
  9514. esac
  9515. ;;
  9516. *)
  9517. lt_use_gnu_ld_interface=yes
  9518. ;;
  9519. esac
  9520. fi
  9521. if test "$lt_use_gnu_ld_interface" = yes; then
  9522. # If archive_cmds runs LD, not CC, wlarc should be empty
  9523. wlarc='${wl}'
  9524. # Set some defaults for GNU ld with shared library support. These
  9525. # are reset later if shared libraries are not supported. Putting them
  9526. # here allows them to be overridden if necessary.
  9527. runpath_var=LD_RUN_PATH
  9528. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9529. export_dynamic_flag_spec='${wl}--export-dynamic'
  9530. # ancient GNU ld didn't support --whole-archive et. al.
  9531. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9532. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9533. else
  9534. whole_archive_flag_spec=
  9535. fi
  9536. supports_anon_versioning=no
  9537. case `$LD -v 2>&1` in
  9538. *GNU\ gold*) supports_anon_versioning=yes ;;
  9539. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9540. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9541. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9542. *\ 2.11.*) ;; # other 2.11 versions
  9543. *) supports_anon_versioning=yes ;;
  9544. esac
  9545. # See if GNU ld supports shared libraries.
  9546. case $host_os in
  9547. aix[3-9]*)
  9548. # On AIX/PPC, the GNU linker is very broken
  9549. if test "$host_cpu" != ia64; then
  9550. ld_shlibs=no
  9551. cat <<_LT_EOF 1>&2
  9552. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9553. *** to be unable to reliably create shared libraries on AIX.
  9554. *** Therefore, libtool is disabling shared libraries support. If you
  9555. *** really care for shared libraries, you may want to install binutils
  9556. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9557. *** You will then need to restart the configuration process.
  9558. _LT_EOF
  9559. fi
  9560. ;;
  9561. amigaos*)
  9562. case $host_cpu in
  9563. powerpc)
  9564. # see comment about AmigaOS4 .so support
  9565. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9566. archive_expsym_cmds=''
  9567. ;;
  9568. m68k)
  9569. 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)'
  9570. hardcode_libdir_flag_spec='-L$libdir'
  9571. hardcode_minus_L=yes
  9572. ;;
  9573. esac
  9574. ;;
  9575. beos*)
  9576. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9577. allow_undefined_flag=unsupported
  9578. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9579. # support --undefined. This deserves some investigation. FIXME
  9580. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9581. else
  9582. ld_shlibs=no
  9583. fi
  9584. ;;
  9585. cygwin* | mingw* | pw32* | cegcc*)
  9586. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9587. # as there is no search path for DLLs.
  9588. hardcode_libdir_flag_spec='-L$libdir'
  9589. export_dynamic_flag_spec='${wl}--export-all-symbols'
  9590. allow_undefined_flag=unsupported
  9591. always_export_symbols=no
  9592. enable_shared_with_static_runtimes=yes
  9593. 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'
  9594. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9595. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9596. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9597. # If the export-symbols file already is a .def file (1st line
  9598. # is EXPORTS), use it as is; otherwise, prepend...
  9599. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9600. cp $export_symbols $output_objdir/$soname.def;
  9601. else
  9602. echo EXPORTS > $output_objdir/$soname.def;
  9603. cat $export_symbols >> $output_objdir/$soname.def;
  9604. fi~
  9605. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9606. else
  9607. ld_shlibs=no
  9608. fi
  9609. ;;
  9610. haiku*)
  9611. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9612. link_all_deplibs=yes
  9613. ;;
  9614. interix[3-9]*)
  9615. hardcode_direct=no
  9616. hardcode_shlibpath_var=no
  9617. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9618. export_dynamic_flag_spec='${wl}-E'
  9619. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9620. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9621. # default) and relocated if they conflict, which is a slow very memory
  9622. # consuming and fragmenting process. To avoid this, we pick a random,
  9623. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9624. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9625. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9626. 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'
  9627. ;;
  9628. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9629. tmp_diet=no
  9630. if test "$host_os" = linux-dietlibc; then
  9631. case $cc_basename in
  9632. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9633. esac
  9634. fi
  9635. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9636. && test "$tmp_diet" = no
  9637. then
  9638. tmp_addflag=' $pic_flag'
  9639. tmp_sharedflag='-shared'
  9640. case $cc_basename,$host_cpu in
  9641. pgcc*) # Portland Group C compiler
  9642. 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'
  9643. tmp_addflag=' $pic_flag'
  9644. ;;
  9645. pgf77* | pgf90* | pgf95* | pgfortran*)
  9646. # Portland Group f77 and f90 compilers
  9647. 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'
  9648. tmp_addflag=' $pic_flag -Mnomain' ;;
  9649. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9650. tmp_addflag=' -i_dynamic' ;;
  9651. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9652. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9653. ifc* | ifort*) # Intel Fortran compiler
  9654. tmp_addflag=' -nofor_main' ;;
  9655. lf95*) # Lahey Fortran 8.1
  9656. whole_archive_flag_spec=
  9657. tmp_sharedflag='--shared' ;;
  9658. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9659. tmp_sharedflag='-qmkshrobj'
  9660. tmp_addflag= ;;
  9661. nvcc*) # Cuda Compiler Driver 2.2
  9662. 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'
  9663. compiler_needs_object=yes
  9664. ;;
  9665. esac
  9666. case `$CC -V 2>&1 | sed 5q` in
  9667. *Sun\ C*) # Sun C 5.9
  9668. 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'
  9669. compiler_needs_object=yes
  9670. tmp_sharedflag='-G' ;;
  9671. *Sun\ F*) # Sun Fortran 8.3
  9672. tmp_sharedflag='-G' ;;
  9673. esac
  9674. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9675. if test "x$supports_anon_versioning" = xyes; then
  9676. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9677. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9678. echo "local: *; };" >> $output_objdir/$libname.ver~
  9679. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9680. fi
  9681. case $cc_basename in
  9682. xlf* | bgf* | bgxlf* | mpixlf*)
  9683. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9684. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9685. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9686. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9687. if test "x$supports_anon_versioning" = xyes; then
  9688. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9689. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9690. echo "local: *; };" >> $output_objdir/$libname.ver~
  9691. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9692. fi
  9693. ;;
  9694. esac
  9695. else
  9696. ld_shlibs=no
  9697. fi
  9698. ;;
  9699. netbsd*)
  9700. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9701. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9702. wlarc=
  9703. else
  9704. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9705. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9706. fi
  9707. ;;
  9708. solaris*)
  9709. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9710. ld_shlibs=no
  9711. cat <<_LT_EOF 1>&2
  9712. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9713. *** create shared libraries on Solaris systems. Therefore, libtool
  9714. *** is disabling shared libraries support. We urge you to upgrade GNU
  9715. *** binutils to release 2.9.1 or newer. Another option is to modify
  9716. *** your PATH or compiler configuration so that the native linker is
  9717. *** used, and then restart.
  9718. _LT_EOF
  9719. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9720. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9721. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9722. else
  9723. ld_shlibs=no
  9724. fi
  9725. ;;
  9726. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9727. case `$LD -v 2>&1` in
  9728. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9729. ld_shlibs=no
  9730. cat <<_LT_EOF 1>&2
  9731. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9732. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9733. *** is disabling shared libraries support. We urge you to upgrade GNU
  9734. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9735. *** your PATH or compiler configuration so that the native linker is
  9736. *** used, and then restart.
  9737. _LT_EOF
  9738. ;;
  9739. *)
  9740. # For security reasons, it is highly recommended that you always
  9741. # use absolute paths for naming shared libraries, and exclude the
  9742. # DT_RUNPATH tag from executables and libraries. But doing so
  9743. # requires that you compile everything twice, which is a pain.
  9744. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9745. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9746. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9747. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9748. else
  9749. ld_shlibs=no
  9750. fi
  9751. ;;
  9752. esac
  9753. ;;
  9754. sunos4*)
  9755. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9756. wlarc=
  9757. hardcode_direct=yes
  9758. hardcode_shlibpath_var=no
  9759. ;;
  9760. *)
  9761. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9762. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9763. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9764. else
  9765. ld_shlibs=no
  9766. fi
  9767. ;;
  9768. esac
  9769. if test "$ld_shlibs" = no; then
  9770. runpath_var=
  9771. hardcode_libdir_flag_spec=
  9772. export_dynamic_flag_spec=
  9773. whole_archive_flag_spec=
  9774. fi
  9775. else
  9776. # PORTME fill in a description of your system's linker (not GNU ld)
  9777. case $host_os in
  9778. aix3*)
  9779. allow_undefined_flag=unsupported
  9780. always_export_symbols=yes
  9781. 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'
  9782. # Note: this linker hardcodes the directories in LIBPATH if there
  9783. # are no directories specified by -L.
  9784. hardcode_minus_L=yes
  9785. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9786. # Neither direct hardcoding nor static linking is supported with a
  9787. # broken collect2.
  9788. hardcode_direct=unsupported
  9789. fi
  9790. ;;
  9791. aix[4-9]*)
  9792. if test "$host_cpu" = ia64; then
  9793. # On IA64, the linker does run time linking by default, so we don't
  9794. # have to do anything special.
  9795. aix_use_runtimelinking=no
  9796. exp_sym_flag='-Bexport'
  9797. no_entry_flag=""
  9798. else
  9799. # If we're using GNU nm, then we don't want the "-C" option.
  9800. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9801. # Also, AIX nm treats weak defined symbols like other global
  9802. # defined symbols, whereas GNU nm marks them as "W".
  9803. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9804. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  9805. else
  9806. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  9807. fi
  9808. aix_use_runtimelinking=no
  9809. # Test if we are trying to use run time linking or normal
  9810. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9811. # need to do runtime linking.
  9812. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9813. for ld_flag in $LDFLAGS; do
  9814. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9815. aix_use_runtimelinking=yes
  9816. break
  9817. fi
  9818. done
  9819. ;;
  9820. esac
  9821. exp_sym_flag='-bexport'
  9822. no_entry_flag='-bnoentry'
  9823. fi
  9824. # When large executables or shared objects are built, AIX ld can
  9825. # have problems creating the table of contents. If linking a library
  9826. # or program results in "error TOC overflow" add -mminimal-toc to
  9827. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9828. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9829. archive_cmds=''
  9830. hardcode_direct=yes
  9831. hardcode_direct_absolute=yes
  9832. hardcode_libdir_separator=':'
  9833. link_all_deplibs=yes
  9834. file_list_spec='${wl}-f,'
  9835. if test "$GCC" = yes; then
  9836. case $host_os in aix4.[012]|aix4.[012].*)
  9837. # We only want to do this on AIX 4.2 and lower, the check
  9838. # below for broken collect2 doesn't work under 4.3+
  9839. collect2name=`${CC} -print-prog-name=collect2`
  9840. if test -f "$collect2name" &&
  9841. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9842. then
  9843. # We have reworked collect2
  9844. :
  9845. else
  9846. # We have old collect2
  9847. hardcode_direct=unsupported
  9848. # It fails to find uninstalled libraries when the uninstalled
  9849. # path is not listed in the libpath. Setting hardcode_minus_L
  9850. # to unsupported forces relinking
  9851. hardcode_minus_L=yes
  9852. hardcode_libdir_flag_spec='-L$libdir'
  9853. hardcode_libdir_separator=
  9854. fi
  9855. ;;
  9856. esac
  9857. shared_flag='-shared'
  9858. if test "$aix_use_runtimelinking" = yes; then
  9859. shared_flag="$shared_flag "'${wl}-G'
  9860. fi
  9861. else
  9862. # not using gcc
  9863. if test "$host_cpu" = ia64; then
  9864. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9865. # chokes on -Wl,-G. The following line is correct:
  9866. shared_flag='-G'
  9867. else
  9868. if test "$aix_use_runtimelinking" = yes; then
  9869. shared_flag='${wl}-G'
  9870. else
  9871. shared_flag='${wl}-bM:SRE'
  9872. fi
  9873. fi
  9874. fi
  9875. export_dynamic_flag_spec='${wl}-bexpall'
  9876. # It seems that -bexpall does not export symbols beginning with
  9877. # underscore (_), so it is better to generate a list of symbols to export.
  9878. always_export_symbols=yes
  9879. if test "$aix_use_runtimelinking" = yes; then
  9880. # Warning - without using the other runtime loading flags (-brtl),
  9881. # -berok will link without error, but may produce a broken library.
  9882. allow_undefined_flag='-berok'
  9883. # Determine the default libpath from the value encoded in an
  9884. # empty executable.
  9885. if test "${lt_cv_aix_libpath+set}" = set; then
  9886. aix_libpath=$lt_cv_aix_libpath
  9887. else
  9888. if ${lt_cv_aix_libpath_+:} false; then :
  9889. $as_echo_n "(cached) " >&6
  9890. else
  9891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9892. /* end confdefs.h. */
  9893. int
  9894. main ()
  9895. {
  9896. ;
  9897. return 0;
  9898. }
  9899. _ACEOF
  9900. if ac_fn_c_try_link "$LINENO"; then :
  9901. lt_aix_libpath_sed='
  9902. /Import File Strings/,/^$/ {
  9903. /^0/ {
  9904. s/^0 *\([^ ]*\) *$/\1/
  9905. p
  9906. }
  9907. }'
  9908. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9909. # Check for a 64-bit object if we didn't find anything.
  9910. if test -z "$lt_cv_aix_libpath_"; then
  9911. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9912. fi
  9913. fi
  9914. rm -f core conftest.err conftest.$ac_objext \
  9915. conftest$ac_exeext conftest.$ac_ext
  9916. if test -z "$lt_cv_aix_libpath_"; then
  9917. lt_cv_aix_libpath_="/usr/lib:/lib"
  9918. fi
  9919. fi
  9920. aix_libpath=$lt_cv_aix_libpath_
  9921. fi
  9922. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9923. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9924. else
  9925. if test "$host_cpu" = ia64; then
  9926. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9927. allow_undefined_flag="-z nodefs"
  9928. 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"
  9929. else
  9930. # Determine the default libpath from the value encoded in an
  9931. # empty executable.
  9932. if test "${lt_cv_aix_libpath+set}" = set; then
  9933. aix_libpath=$lt_cv_aix_libpath
  9934. else
  9935. if ${lt_cv_aix_libpath_+:} false; then :
  9936. $as_echo_n "(cached) " >&6
  9937. else
  9938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9939. /* end confdefs.h. */
  9940. int
  9941. main ()
  9942. {
  9943. ;
  9944. return 0;
  9945. }
  9946. _ACEOF
  9947. if ac_fn_c_try_link "$LINENO"; then :
  9948. lt_aix_libpath_sed='
  9949. /Import File Strings/,/^$/ {
  9950. /^0/ {
  9951. s/^0 *\([^ ]*\) *$/\1/
  9952. p
  9953. }
  9954. }'
  9955. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9956. # Check for a 64-bit object if we didn't find anything.
  9957. if test -z "$lt_cv_aix_libpath_"; then
  9958. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9959. fi
  9960. fi
  9961. rm -f core conftest.err conftest.$ac_objext \
  9962. conftest$ac_exeext conftest.$ac_ext
  9963. if test -z "$lt_cv_aix_libpath_"; then
  9964. lt_cv_aix_libpath_="/usr/lib:/lib"
  9965. fi
  9966. fi
  9967. aix_libpath=$lt_cv_aix_libpath_
  9968. fi
  9969. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9970. # Warning - without using the other run time loading flags,
  9971. # -berok will link without error, but may produce a broken library.
  9972. no_undefined_flag=' ${wl}-bernotok'
  9973. allow_undefined_flag=' ${wl}-berok'
  9974. if test "$with_gnu_ld" = yes; then
  9975. # We only use this code for GNU lds that support --whole-archive.
  9976. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9977. else
  9978. # Exported symbols can be pulled into shared objects from archives
  9979. whole_archive_flag_spec='$convenience'
  9980. fi
  9981. archive_cmds_need_lc=yes
  9982. # This is similar to how AIX traditionally builds its shared libraries.
  9983. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9984. fi
  9985. fi
  9986. ;;
  9987. amigaos*)
  9988. case $host_cpu in
  9989. powerpc)
  9990. # see comment about AmigaOS4 .so support
  9991. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9992. archive_expsym_cmds=''
  9993. ;;
  9994. m68k)
  9995. 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)'
  9996. hardcode_libdir_flag_spec='-L$libdir'
  9997. hardcode_minus_L=yes
  9998. ;;
  9999. esac
  10000. ;;
  10001. bsdi[45]*)
  10002. export_dynamic_flag_spec=-rdynamic
  10003. ;;
  10004. cygwin* | mingw* | pw32* | cegcc*)
  10005. # When not using gcc, we currently assume that we are using
  10006. # Microsoft Visual C++.
  10007. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10008. # no search path for DLLs.
  10009. case $cc_basename in
  10010. cl*)
  10011. # Native MSVC
  10012. hardcode_libdir_flag_spec=' '
  10013. allow_undefined_flag=unsupported
  10014. always_export_symbols=yes
  10015. file_list_spec='@'
  10016. # Tell ltmain to make .lib files, not .a files.
  10017. libext=lib
  10018. # Tell ltmain to make .dll files, not .so files.
  10019. shrext_cmds=".dll"
  10020. # FIXME: Setting linknames here is a bad hack.
  10021. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10022. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10023. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10024. else
  10025. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10026. fi~
  10027. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10028. linknames='
  10029. # The linker will not automatically build a static lib if we build a DLL.
  10030. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10031. enable_shared_with_static_runtimes=yes
  10032. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10033. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10034. # Don't use ranlib
  10035. old_postinstall_cmds='chmod 644 $oldlib'
  10036. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10037. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10038. case $lt_outputfile in
  10039. *.exe|*.EXE) ;;
  10040. *)
  10041. lt_outputfile="$lt_outputfile.exe"
  10042. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10043. ;;
  10044. esac~
  10045. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10046. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10047. $RM "$lt_outputfile.manifest";
  10048. fi'
  10049. ;;
  10050. *)
  10051. # Assume MSVC wrapper
  10052. hardcode_libdir_flag_spec=' '
  10053. allow_undefined_flag=unsupported
  10054. # Tell ltmain to make .lib files, not .a files.
  10055. libext=lib
  10056. # Tell ltmain to make .dll files, not .so files.
  10057. shrext_cmds=".dll"
  10058. # FIXME: Setting linknames here is a bad hack.
  10059. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10060. # The linker will automatically build a .lib file if we build a DLL.
  10061. old_archive_from_new_cmds='true'
  10062. # FIXME: Should let the user specify the lib program.
  10063. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10064. enable_shared_with_static_runtimes=yes
  10065. ;;
  10066. esac
  10067. ;;
  10068. darwin* | rhapsody*)
  10069. archive_cmds_need_lc=no
  10070. hardcode_direct=no
  10071. hardcode_automatic=yes
  10072. hardcode_shlibpath_var=unsupported
  10073. if test "$lt_cv_ld_force_load" = "yes"; then
  10074. 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\"`'
  10075. else
  10076. whole_archive_flag_spec=''
  10077. fi
  10078. link_all_deplibs=yes
  10079. allow_undefined_flag="$_lt_dar_allow_undefined"
  10080. case $cc_basename in
  10081. ifort*) _lt_dar_can_shared=yes ;;
  10082. *) _lt_dar_can_shared=$GCC ;;
  10083. esac
  10084. if test "$_lt_dar_can_shared" = "yes"; then
  10085. output_verbose_link_cmd=func_echo_all
  10086. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10087. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10088. 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}"
  10089. 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}"
  10090. else
  10091. ld_shlibs=no
  10092. fi
  10093. ;;
  10094. dgux*)
  10095. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10096. hardcode_libdir_flag_spec='-L$libdir'
  10097. hardcode_shlibpath_var=no
  10098. ;;
  10099. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10100. # support. Future versions do this automatically, but an explicit c++rt0.o
  10101. # does not break anything, and helps significantly (at the cost of a little
  10102. # extra space).
  10103. freebsd2.2*)
  10104. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10105. hardcode_libdir_flag_spec='-R$libdir'
  10106. hardcode_direct=yes
  10107. hardcode_shlibpath_var=no
  10108. ;;
  10109. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10110. freebsd2.*)
  10111. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10112. hardcode_direct=yes
  10113. hardcode_minus_L=yes
  10114. hardcode_shlibpath_var=no
  10115. ;;
  10116. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10117. freebsd* | dragonfly*)
  10118. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10119. hardcode_libdir_flag_spec='-R$libdir'
  10120. hardcode_direct=yes
  10121. hardcode_shlibpath_var=no
  10122. ;;
  10123. hpux9*)
  10124. if test "$GCC" = yes; then
  10125. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10126. else
  10127. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10128. fi
  10129. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10130. hardcode_libdir_separator=:
  10131. hardcode_direct=yes
  10132. # hardcode_minus_L: Not really in the search PATH,
  10133. # but as the default location of the library.
  10134. hardcode_minus_L=yes
  10135. export_dynamic_flag_spec='${wl}-E'
  10136. ;;
  10137. hpux10*)
  10138. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  10139. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10140. else
  10141. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10142. fi
  10143. if test "$with_gnu_ld" = no; then
  10144. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10145. hardcode_libdir_separator=:
  10146. hardcode_direct=yes
  10147. hardcode_direct_absolute=yes
  10148. export_dynamic_flag_spec='${wl}-E'
  10149. # hardcode_minus_L: Not really in the search PATH,
  10150. # but as the default location of the library.
  10151. hardcode_minus_L=yes
  10152. fi
  10153. ;;
  10154. hpux11*)
  10155. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  10156. case $host_cpu in
  10157. hppa*64*)
  10158. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10159. ;;
  10160. ia64*)
  10161. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10162. ;;
  10163. *)
  10164. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10165. ;;
  10166. esac
  10167. else
  10168. case $host_cpu in
  10169. hppa*64*)
  10170. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10171. ;;
  10172. ia64*)
  10173. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10174. ;;
  10175. *)
  10176. # Older versions of the 11.00 compiler do not understand -b yet
  10177. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10179. $as_echo_n "checking if $CC understands -b... " >&6; }
  10180. if ${lt_cv_prog_compiler__b+:} false; then :
  10181. $as_echo_n "(cached) " >&6
  10182. else
  10183. lt_cv_prog_compiler__b=no
  10184. save_LDFLAGS="$LDFLAGS"
  10185. LDFLAGS="$LDFLAGS -b"
  10186. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10187. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10188. # The linker can only warn and ignore the option if not recognized
  10189. # So say no if there are warnings
  10190. if test -s conftest.err; then
  10191. # Append any errors to the config.log.
  10192. cat conftest.err 1>&5
  10193. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10194. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10195. if diff conftest.exp conftest.er2 >/dev/null; then
  10196. lt_cv_prog_compiler__b=yes
  10197. fi
  10198. else
  10199. lt_cv_prog_compiler__b=yes
  10200. fi
  10201. fi
  10202. $RM -r conftest*
  10203. LDFLAGS="$save_LDFLAGS"
  10204. fi
  10205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10206. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  10207. if test x"$lt_cv_prog_compiler__b" = xyes; then
  10208. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10209. else
  10210. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10211. fi
  10212. ;;
  10213. esac
  10214. fi
  10215. if test "$with_gnu_ld" = no; then
  10216. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10217. hardcode_libdir_separator=:
  10218. case $host_cpu in
  10219. hppa*64*|ia64*)
  10220. hardcode_direct=no
  10221. hardcode_shlibpath_var=no
  10222. ;;
  10223. *)
  10224. hardcode_direct=yes
  10225. hardcode_direct_absolute=yes
  10226. export_dynamic_flag_spec='${wl}-E'
  10227. # hardcode_minus_L: Not really in the search PATH,
  10228. # but as the default location of the library.
  10229. hardcode_minus_L=yes
  10230. ;;
  10231. esac
  10232. fi
  10233. ;;
  10234. irix5* | irix6* | nonstopux*)
  10235. if test "$GCC" = yes; then
  10236. 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'
  10237. # Try to use the -exported_symbol ld option, if it does not
  10238. # work, assume that -exports_file does not work either and
  10239. # implicitly export all symbols.
  10240. # This should be the same for all languages, so no per-tag cache variable.
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10242. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10243. if ${lt_cv_irix_exported_symbol+:} false; then :
  10244. $as_echo_n "(cached) " >&6
  10245. else
  10246. save_LDFLAGS="$LDFLAGS"
  10247. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  10248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10249. /* end confdefs.h. */
  10250. int foo (void) { return 0; }
  10251. _ACEOF
  10252. if ac_fn_c_try_link "$LINENO"; then :
  10253. lt_cv_irix_exported_symbol=yes
  10254. else
  10255. lt_cv_irix_exported_symbol=no
  10256. fi
  10257. rm -f core conftest.err conftest.$ac_objext \
  10258. conftest$ac_exeext conftest.$ac_ext
  10259. LDFLAGS="$save_LDFLAGS"
  10260. fi
  10261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10262. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  10263. if test "$lt_cv_irix_exported_symbol" = yes; then
  10264. 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'
  10265. fi
  10266. else
  10267. 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'
  10268. 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'
  10269. fi
  10270. archive_cmds_need_lc='no'
  10271. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10272. hardcode_libdir_separator=:
  10273. inherit_rpath=yes
  10274. link_all_deplibs=yes
  10275. ;;
  10276. netbsd*)
  10277. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10278. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10279. else
  10280. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10281. fi
  10282. hardcode_libdir_flag_spec='-R$libdir'
  10283. hardcode_direct=yes
  10284. hardcode_shlibpath_var=no
  10285. ;;
  10286. newsos6)
  10287. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10288. hardcode_direct=yes
  10289. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10290. hardcode_libdir_separator=:
  10291. hardcode_shlibpath_var=no
  10292. ;;
  10293. *nto* | *qnx*)
  10294. ;;
  10295. openbsd*)
  10296. if test -f /usr/libexec/ld.so; then
  10297. hardcode_direct=yes
  10298. hardcode_shlibpath_var=no
  10299. hardcode_direct_absolute=yes
  10300. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10301. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10302. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10303. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10304. export_dynamic_flag_spec='${wl}-E'
  10305. else
  10306. case $host_os in
  10307. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  10308. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10309. hardcode_libdir_flag_spec='-R$libdir'
  10310. ;;
  10311. *)
  10312. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10313. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10314. ;;
  10315. esac
  10316. fi
  10317. else
  10318. ld_shlibs=no
  10319. fi
  10320. ;;
  10321. os2*)
  10322. hardcode_libdir_flag_spec='-L$libdir'
  10323. hardcode_minus_L=yes
  10324. allow_undefined_flag=unsupported
  10325. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  10326. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10327. ;;
  10328. osf3*)
  10329. if test "$GCC" = yes; then
  10330. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10331. 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'
  10332. else
  10333. allow_undefined_flag=' -expect_unresolved \*'
  10334. 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'
  10335. fi
  10336. archive_cmds_need_lc='no'
  10337. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10338. hardcode_libdir_separator=:
  10339. ;;
  10340. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10341. if test "$GCC" = yes; then
  10342. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10343. 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'
  10344. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10345. else
  10346. allow_undefined_flag=' -expect_unresolved \*'
  10347. 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'
  10348. 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~
  10349. $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'
  10350. # Both c and cxx compiler support -rpath directly
  10351. hardcode_libdir_flag_spec='-rpath $libdir'
  10352. fi
  10353. archive_cmds_need_lc='no'
  10354. hardcode_libdir_separator=:
  10355. ;;
  10356. solaris*)
  10357. no_undefined_flag=' -z defs'
  10358. if test "$GCC" = yes; then
  10359. wlarc='${wl}'
  10360. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10361. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10362. $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'
  10363. else
  10364. case `$CC -V 2>&1` in
  10365. *"Compilers 5.0"*)
  10366. wlarc=''
  10367. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10368. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10369. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10370. ;;
  10371. *)
  10372. wlarc='${wl}'
  10373. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10374. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10375. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10376. ;;
  10377. esac
  10378. fi
  10379. hardcode_libdir_flag_spec='-R$libdir'
  10380. hardcode_shlibpath_var=no
  10381. case $host_os in
  10382. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10383. *)
  10384. # The compiler driver will combine and reorder linker options,
  10385. # but understands `-z linker_flag'. GCC discards it without `$wl',
  10386. # but is careful enough not to reorder.
  10387. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10388. if test "$GCC" = yes; then
  10389. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10390. else
  10391. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10392. fi
  10393. ;;
  10394. esac
  10395. link_all_deplibs=yes
  10396. ;;
  10397. sunos4*)
  10398. if test "x$host_vendor" = xsequent; then
  10399. # Use $CC to link under sequent, because it throws in some extra .o
  10400. # files that make .init and .fini sections work.
  10401. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10402. else
  10403. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10404. fi
  10405. hardcode_libdir_flag_spec='-L$libdir'
  10406. hardcode_direct=yes
  10407. hardcode_minus_L=yes
  10408. hardcode_shlibpath_var=no
  10409. ;;
  10410. sysv4)
  10411. case $host_vendor in
  10412. sni)
  10413. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10414. hardcode_direct=yes # is this really true???
  10415. ;;
  10416. siemens)
  10417. ## LD is ld it makes a PLAMLIB
  10418. ## CC just makes a GrossModule.
  10419. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10420. reload_cmds='$CC -r -o $output$reload_objs'
  10421. hardcode_direct=no
  10422. ;;
  10423. motorola)
  10424. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10425. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10426. ;;
  10427. esac
  10428. runpath_var='LD_RUN_PATH'
  10429. hardcode_shlibpath_var=no
  10430. ;;
  10431. sysv4.3*)
  10432. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10433. hardcode_shlibpath_var=no
  10434. export_dynamic_flag_spec='-Bexport'
  10435. ;;
  10436. sysv4*MP*)
  10437. if test -d /usr/nec; then
  10438. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10439. hardcode_shlibpath_var=no
  10440. runpath_var=LD_RUN_PATH
  10441. hardcode_runpath_var=yes
  10442. ld_shlibs=yes
  10443. fi
  10444. ;;
  10445. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10446. no_undefined_flag='${wl}-z,text'
  10447. archive_cmds_need_lc=no
  10448. hardcode_shlibpath_var=no
  10449. runpath_var='LD_RUN_PATH'
  10450. if test "$GCC" = yes; then
  10451. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10452. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10453. else
  10454. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10455. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10456. fi
  10457. ;;
  10458. sysv5* | sco3.2v5* | sco5v6*)
  10459. # Note: We can NOT use -z defs as we might desire, because we do not
  10460. # link with -lc, and that would cause any symbols used from libc to
  10461. # always be unresolved, which means just about no library would
  10462. # ever link correctly. If we're not using GNU ld we use -z text
  10463. # though, which does catch some bad symbols but isn't as heavy-handed
  10464. # as -z defs.
  10465. no_undefined_flag='${wl}-z,text'
  10466. allow_undefined_flag='${wl}-z,nodefs'
  10467. archive_cmds_need_lc=no
  10468. hardcode_shlibpath_var=no
  10469. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  10470. hardcode_libdir_separator=':'
  10471. link_all_deplibs=yes
  10472. export_dynamic_flag_spec='${wl}-Bexport'
  10473. runpath_var='LD_RUN_PATH'
  10474. if test "$GCC" = yes; then
  10475. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10476. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10477. else
  10478. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10479. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10480. fi
  10481. ;;
  10482. uts4*)
  10483. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10484. hardcode_libdir_flag_spec='-L$libdir'
  10485. hardcode_shlibpath_var=no
  10486. ;;
  10487. *)
  10488. ld_shlibs=no
  10489. ;;
  10490. esac
  10491. if test x$host_vendor = xsni; then
  10492. case $host in
  10493. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10494. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10495. ;;
  10496. esac
  10497. fi
  10498. fi
  10499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10500. $as_echo "$ld_shlibs" >&6; }
  10501. test "$ld_shlibs" = no && can_build_shared=no
  10502. with_gnu_ld=$with_gnu_ld
  10503. #
  10504. # Do we need to explicitly link libc?
  10505. #
  10506. case "x$archive_cmds_need_lc" in
  10507. x|xyes)
  10508. # Assume -lc should be added
  10509. archive_cmds_need_lc=yes
  10510. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10511. case $archive_cmds in
  10512. *'~'*)
  10513. # FIXME: we may have to deal with multi-command sequences.
  10514. ;;
  10515. '$CC '*)
  10516. # Test whether the compiler implicitly links with -lc since on some
  10517. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10518. # to ld, don't add -lc before -lgcc.
  10519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10520. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10521. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10522. $as_echo_n "(cached) " >&6
  10523. else
  10524. $RM conftest*
  10525. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10526. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10527. (eval $ac_compile) 2>&5
  10528. ac_status=$?
  10529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10530. test $ac_status = 0; } 2>conftest.err; then
  10531. soname=conftest
  10532. lib=conftest
  10533. libobjs=conftest.$ac_objext
  10534. deplibs=
  10535. wl=$lt_prog_compiler_wl
  10536. pic_flag=$lt_prog_compiler_pic
  10537. compiler_flags=-v
  10538. linker_flags=-v
  10539. verstring=
  10540. output_objdir=.
  10541. libname=conftest
  10542. lt_save_allow_undefined_flag=$allow_undefined_flag
  10543. allow_undefined_flag=
  10544. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10545. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10546. ac_status=$?
  10547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10548. test $ac_status = 0; }
  10549. then
  10550. lt_cv_archive_cmds_need_lc=no
  10551. else
  10552. lt_cv_archive_cmds_need_lc=yes
  10553. fi
  10554. allow_undefined_flag=$lt_save_allow_undefined_flag
  10555. else
  10556. cat conftest.err 1>&5
  10557. fi
  10558. $RM conftest*
  10559. fi
  10560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10561. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10562. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10563. ;;
  10564. esac
  10565. fi
  10566. ;;
  10567. esac
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10569. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10570. if test "$GCC" = yes; then
  10571. case $host_os in
  10572. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  10573. *) lt_awk_arg="/^libraries:/" ;;
  10574. esac
  10575. case $host_os in
  10576. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  10577. *) lt_sed_strip_eq="s,=/,/,g" ;;
  10578. esac
  10579. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10580. case $lt_search_path_spec in
  10581. *\;*)
  10582. # if the path contains ";" then we assume it to be the separator
  10583. # otherwise default to the standard path separator (i.e. ":") - it is
  10584. # assumed that no part of a normal pathname contains ";" but that should
  10585. # okay in the real world where ";" in dirpaths is itself problematic.
  10586. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10587. ;;
  10588. *)
  10589. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10590. ;;
  10591. esac
  10592. # Ok, now we have the path, separated by spaces, we can step through it
  10593. # and add multilib dir if necessary.
  10594. lt_tmp_lt_search_path_spec=
  10595. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10596. for lt_sys_path in $lt_search_path_spec; do
  10597. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  10598. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  10599. else
  10600. test -d "$lt_sys_path" && \
  10601. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10602. fi
  10603. done
  10604. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10605. BEGIN {RS=" "; FS="/|\n";} {
  10606. lt_foo="";
  10607. lt_count=0;
  10608. for (lt_i = NF; lt_i > 0; lt_i--) {
  10609. if ($lt_i != "" && $lt_i != ".") {
  10610. if ($lt_i == "..") {
  10611. lt_count++;
  10612. } else {
  10613. if (lt_count == 0) {
  10614. lt_foo="/" $lt_i lt_foo;
  10615. } else {
  10616. lt_count--;
  10617. }
  10618. }
  10619. }
  10620. }
  10621. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10622. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10623. }'`
  10624. # AWK program above erroneously prepends '/' to C:/dos/paths
  10625. # for these hosts.
  10626. case $host_os in
  10627. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10628. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  10629. esac
  10630. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10631. else
  10632. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10633. fi
  10634. library_names_spec=
  10635. libname_spec='lib$name'
  10636. soname_spec=
  10637. shrext_cmds=".so"
  10638. postinstall_cmds=
  10639. postuninstall_cmds=
  10640. finish_cmds=
  10641. finish_eval=
  10642. shlibpath_var=
  10643. shlibpath_overrides_runpath=unknown
  10644. version_type=none
  10645. dynamic_linker="$host_os ld.so"
  10646. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10647. need_lib_prefix=unknown
  10648. hardcode_into_libs=no
  10649. # when you set need_version to no, make sure it does not cause -set_version
  10650. # flags to be left without arguments
  10651. need_version=unknown
  10652. case $host_os in
  10653. aix3*)
  10654. version_type=linux # correct to gnu/linux during the next big refactor
  10655. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10656. shlibpath_var=LIBPATH
  10657. # AIX 3 has no versioning support, so we append a major version to the name.
  10658. soname_spec='${libname}${release}${shared_ext}$major'
  10659. ;;
  10660. aix[4-9]*)
  10661. version_type=linux # correct to gnu/linux during the next big refactor
  10662. need_lib_prefix=no
  10663. need_version=no
  10664. hardcode_into_libs=yes
  10665. if test "$host_cpu" = ia64; then
  10666. # AIX 5 supports IA64
  10667. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10668. shlibpath_var=LD_LIBRARY_PATH
  10669. else
  10670. # With GCC up to 2.95.x, collect2 would create an import file
  10671. # for dependence libraries. The import file would start with
  10672. # the line `#! .'. This would cause the generated library to
  10673. # depend on `.', always an invalid library. This was fixed in
  10674. # development snapshots of GCC prior to 3.0.
  10675. case $host_os in
  10676. aix4 | aix4.[01] | aix4.[01].*)
  10677. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10678. echo ' yes '
  10679. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10680. :
  10681. else
  10682. can_build_shared=no
  10683. fi
  10684. ;;
  10685. esac
  10686. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10687. # soname into executable. Probably we can add versioning support to
  10688. # collect2, so additional links can be useful in future.
  10689. if test "$aix_use_runtimelinking" = yes; then
  10690. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10691. # instead of lib<name>.a to let people know that these are not
  10692. # typical AIX shared libraries.
  10693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10694. else
  10695. # We preserve .a as extension for shared libraries through AIX4.2
  10696. # and later when we are not doing run time linking.
  10697. library_names_spec='${libname}${release}.a $libname.a'
  10698. soname_spec='${libname}${release}${shared_ext}$major'
  10699. fi
  10700. shlibpath_var=LIBPATH
  10701. fi
  10702. ;;
  10703. amigaos*)
  10704. case $host_cpu in
  10705. powerpc)
  10706. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10707. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10709. ;;
  10710. m68k)
  10711. library_names_spec='$libname.ixlibrary $libname.a'
  10712. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10713. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10714. ;;
  10715. esac
  10716. ;;
  10717. beos*)
  10718. library_names_spec='${libname}${shared_ext}'
  10719. dynamic_linker="$host_os ld.so"
  10720. shlibpath_var=LIBRARY_PATH
  10721. ;;
  10722. bsdi[45]*)
  10723. version_type=linux # correct to gnu/linux during the next big refactor
  10724. need_version=no
  10725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10726. soname_spec='${libname}${release}${shared_ext}$major'
  10727. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10728. shlibpath_var=LD_LIBRARY_PATH
  10729. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10730. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10731. # the default ld.so.conf also contains /usr/contrib/lib and
  10732. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10733. # libtool to hard-code these into programs
  10734. ;;
  10735. cygwin* | mingw* | pw32* | cegcc*)
  10736. version_type=windows
  10737. shrext_cmds=".dll"
  10738. need_version=no
  10739. need_lib_prefix=no
  10740. case $GCC,$cc_basename in
  10741. yes,*)
  10742. # gcc
  10743. library_names_spec='$libname.dll.a'
  10744. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10745. postinstall_cmds='base_file=`basename \${file}`~
  10746. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10747. dldir=$destdir/`dirname \$dlpath`~
  10748. test -d \$dldir || mkdir -p \$dldir~
  10749. $install_prog $dir/$dlname \$dldir/$dlname~
  10750. chmod a+x \$dldir/$dlname~
  10751. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10752. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10753. fi'
  10754. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10755. dlpath=$dir/\$dldll~
  10756. $RM \$dlpath'
  10757. shlibpath_overrides_runpath=yes
  10758. case $host_os in
  10759. cygwin*)
  10760. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10761. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10762. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10763. ;;
  10764. mingw* | cegcc*)
  10765. # MinGW DLLs use traditional 'lib' prefix
  10766. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10767. ;;
  10768. pw32*)
  10769. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10770. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10771. ;;
  10772. esac
  10773. dynamic_linker='Win32 ld.exe'
  10774. ;;
  10775. *,cl*)
  10776. # Native MSVC
  10777. libname_spec='$name'
  10778. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10779. library_names_spec='${libname}.dll.lib'
  10780. case $build_os in
  10781. mingw*)
  10782. sys_lib_search_path_spec=
  10783. lt_save_ifs=$IFS
  10784. IFS=';'
  10785. for lt_path in $LIB
  10786. do
  10787. IFS=$lt_save_ifs
  10788. # Let DOS variable expansion print the short 8.3 style file name.
  10789. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10790. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10791. done
  10792. IFS=$lt_save_ifs
  10793. # Convert to MSYS style.
  10794. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10795. ;;
  10796. cygwin*)
  10797. # Convert to unix form, then to dos form, then back to unix form
  10798. # but this time dos style (no spaces!) so that the unix form looks
  10799. # like /cygdrive/c/PROGRA~1:/cygdr...
  10800. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10801. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10802. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10803. ;;
  10804. *)
  10805. sys_lib_search_path_spec="$LIB"
  10806. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10807. # It is most probably a Windows format PATH.
  10808. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10809. else
  10810. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10811. fi
  10812. # FIXME: find the short name or the path components, as spaces are
  10813. # common. (e.g. "Program Files" -> "PROGRA~1")
  10814. ;;
  10815. esac
  10816. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10817. postinstall_cmds='base_file=`basename \${file}`~
  10818. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10819. dldir=$destdir/`dirname \$dlpath`~
  10820. test -d \$dldir || mkdir -p \$dldir~
  10821. $install_prog $dir/$dlname \$dldir/$dlname'
  10822. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10823. dlpath=$dir/\$dldll~
  10824. $RM \$dlpath'
  10825. shlibpath_overrides_runpath=yes
  10826. dynamic_linker='Win32 link.exe'
  10827. ;;
  10828. *)
  10829. # Assume MSVC wrapper
  10830. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10831. dynamic_linker='Win32 ld.exe'
  10832. ;;
  10833. esac
  10834. # FIXME: first we should search . and the directory the executable is in
  10835. shlibpath_var=PATH
  10836. ;;
  10837. darwin* | rhapsody*)
  10838. dynamic_linker="$host_os dyld"
  10839. version_type=darwin
  10840. need_lib_prefix=no
  10841. need_version=no
  10842. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10843. soname_spec='${libname}${release}${major}$shared_ext'
  10844. shlibpath_overrides_runpath=yes
  10845. shlibpath_var=DYLD_LIBRARY_PATH
  10846. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10847. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10848. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10849. ;;
  10850. dgux*)
  10851. version_type=linux # correct to gnu/linux during the next big refactor
  10852. need_lib_prefix=no
  10853. need_version=no
  10854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10855. soname_spec='${libname}${release}${shared_ext}$major'
  10856. shlibpath_var=LD_LIBRARY_PATH
  10857. ;;
  10858. freebsd* | dragonfly*)
  10859. # DragonFly does not have aout. When/if they implement a new
  10860. # versioning mechanism, adjust this.
  10861. if test -x /usr/bin/objformat; then
  10862. objformat=`/usr/bin/objformat`
  10863. else
  10864. case $host_os in
  10865. freebsd[23].*) objformat=aout ;;
  10866. *) objformat=elf ;;
  10867. esac
  10868. fi
  10869. version_type=freebsd-$objformat
  10870. case $version_type in
  10871. freebsd-elf*)
  10872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10873. need_version=no
  10874. need_lib_prefix=no
  10875. ;;
  10876. freebsd-*)
  10877. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10878. need_version=yes
  10879. ;;
  10880. esac
  10881. shlibpath_var=LD_LIBRARY_PATH
  10882. case $host_os in
  10883. freebsd2.*)
  10884. shlibpath_overrides_runpath=yes
  10885. ;;
  10886. freebsd3.[01]* | freebsdelf3.[01]*)
  10887. shlibpath_overrides_runpath=yes
  10888. hardcode_into_libs=yes
  10889. ;;
  10890. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10891. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10892. shlibpath_overrides_runpath=no
  10893. hardcode_into_libs=yes
  10894. ;;
  10895. *) # from 4.6 on, and DragonFly
  10896. shlibpath_overrides_runpath=yes
  10897. hardcode_into_libs=yes
  10898. ;;
  10899. esac
  10900. ;;
  10901. gnu*)
  10902. version_type=linux # correct to gnu/linux during the next big refactor
  10903. need_lib_prefix=no
  10904. need_version=no
  10905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10906. soname_spec='${libname}${release}${shared_ext}$major'
  10907. shlibpath_var=LD_LIBRARY_PATH
  10908. shlibpath_overrides_runpath=no
  10909. hardcode_into_libs=yes
  10910. ;;
  10911. haiku*)
  10912. version_type=linux # correct to gnu/linux during the next big refactor
  10913. need_lib_prefix=no
  10914. need_version=no
  10915. dynamic_linker="$host_os runtime_loader"
  10916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10917. soname_spec='${libname}${release}${shared_ext}$major'
  10918. shlibpath_var=LIBRARY_PATH
  10919. shlibpath_overrides_runpath=yes
  10920. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10921. hardcode_into_libs=yes
  10922. ;;
  10923. hpux9* | hpux10* | hpux11*)
  10924. # Give a soname corresponding to the major version so that dld.sl refuses to
  10925. # link against other versions.
  10926. version_type=sunos
  10927. need_lib_prefix=no
  10928. need_version=no
  10929. case $host_cpu in
  10930. ia64*)
  10931. shrext_cmds='.so'
  10932. hardcode_into_libs=yes
  10933. dynamic_linker="$host_os dld.so"
  10934. shlibpath_var=LD_LIBRARY_PATH
  10935. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10937. soname_spec='${libname}${release}${shared_ext}$major'
  10938. if test "X$HPUX_IA64_MODE" = X32; then
  10939. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10940. else
  10941. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10942. fi
  10943. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10944. ;;
  10945. hppa*64*)
  10946. shrext_cmds='.sl'
  10947. hardcode_into_libs=yes
  10948. dynamic_linker="$host_os dld.sl"
  10949. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10950. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10951. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10952. soname_spec='${libname}${release}${shared_ext}$major'
  10953. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10954. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10955. ;;
  10956. *)
  10957. shrext_cmds='.sl'
  10958. dynamic_linker="$host_os dld.sl"
  10959. shlibpath_var=SHLIB_PATH
  10960. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10962. soname_spec='${libname}${release}${shared_ext}$major'
  10963. ;;
  10964. esac
  10965. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10966. postinstall_cmds='chmod 555 $lib'
  10967. # or fails outright, so override atomically:
  10968. install_override_mode=555
  10969. ;;
  10970. interix[3-9]*)
  10971. version_type=linux # correct to gnu/linux during the next big refactor
  10972. need_lib_prefix=no
  10973. need_version=no
  10974. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10975. soname_spec='${libname}${release}${shared_ext}$major'
  10976. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10977. shlibpath_var=LD_LIBRARY_PATH
  10978. shlibpath_overrides_runpath=no
  10979. hardcode_into_libs=yes
  10980. ;;
  10981. irix5* | irix6* | nonstopux*)
  10982. case $host_os in
  10983. nonstopux*) version_type=nonstopux ;;
  10984. *)
  10985. if test "$lt_cv_prog_gnu_ld" = yes; then
  10986. version_type=linux # correct to gnu/linux during the next big refactor
  10987. else
  10988. version_type=irix
  10989. fi ;;
  10990. esac
  10991. need_lib_prefix=no
  10992. need_version=no
  10993. soname_spec='${libname}${release}${shared_ext}$major'
  10994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10995. case $host_os in
  10996. irix5* | nonstopux*)
  10997. libsuff= shlibsuff=
  10998. ;;
  10999. *)
  11000. case $LD in # libtool.m4 will add one of these switches to LD
  11001. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11002. libsuff= shlibsuff= libmagic=32-bit;;
  11003. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11004. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11005. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11006. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11007. *) libsuff= shlibsuff= libmagic=never-match;;
  11008. esac
  11009. ;;
  11010. esac
  11011. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11012. shlibpath_overrides_runpath=no
  11013. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11014. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11015. hardcode_into_libs=yes
  11016. ;;
  11017. # No shared lib support for Linux oldld, aout, or coff.
  11018. linux*oldld* | linux*aout* | linux*coff*)
  11019. dynamic_linker=no
  11020. ;;
  11021. # This must be glibc/ELF.
  11022. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11023. version_type=linux # correct to gnu/linux during the next big refactor
  11024. need_lib_prefix=no
  11025. need_version=no
  11026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11027. soname_spec='${libname}${release}${shared_ext}$major'
  11028. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11029. shlibpath_var=LD_LIBRARY_PATH
  11030. shlibpath_overrides_runpath=no
  11031. # Some binutils ld are patched to set DT_RUNPATH
  11032. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  11033. $as_echo_n "(cached) " >&6
  11034. else
  11035. lt_cv_shlibpath_overrides_runpath=no
  11036. save_LDFLAGS=$LDFLAGS
  11037. save_libdir=$libdir
  11038. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11039. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11041. /* end confdefs.h. */
  11042. int
  11043. main ()
  11044. {
  11045. ;
  11046. return 0;
  11047. }
  11048. _ACEOF
  11049. if ac_fn_c_try_link "$LINENO"; then :
  11050. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11051. lt_cv_shlibpath_overrides_runpath=yes
  11052. fi
  11053. fi
  11054. rm -f core conftest.err conftest.$ac_objext \
  11055. conftest$ac_exeext conftest.$ac_ext
  11056. LDFLAGS=$save_LDFLAGS
  11057. libdir=$save_libdir
  11058. fi
  11059. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11060. # This implies no fast_install, which is unacceptable.
  11061. # Some rework will be needed to allow for fast_install
  11062. # before this can be enabled.
  11063. hardcode_into_libs=yes
  11064. # Append ld.so.conf contents to the search path
  11065. if test -f /etc/ld.so.conf; then
  11066. 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' ' '`
  11067. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11068. fi
  11069. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11070. # powerpc, because MkLinux only supported shared libraries with the
  11071. # GNU dynamic linker. Since this was broken with cross compilers,
  11072. # most powerpc-linux boxes support dynamic linking these days and
  11073. # people can always --disable-shared, the test was removed, and we
  11074. # assume the GNU/Linux dynamic linker is in use.
  11075. dynamic_linker='GNU/Linux ld.so'
  11076. ;;
  11077. netbsd*)
  11078. version_type=sunos
  11079. need_lib_prefix=no
  11080. need_version=no
  11081. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11083. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11084. dynamic_linker='NetBSD (a.out) ld.so'
  11085. else
  11086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11087. soname_spec='${libname}${release}${shared_ext}$major'
  11088. dynamic_linker='NetBSD ld.elf_so'
  11089. fi
  11090. shlibpath_var=LD_LIBRARY_PATH
  11091. shlibpath_overrides_runpath=yes
  11092. hardcode_into_libs=yes
  11093. ;;
  11094. newsos6)
  11095. version_type=linux # correct to gnu/linux during the next big refactor
  11096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11097. shlibpath_var=LD_LIBRARY_PATH
  11098. shlibpath_overrides_runpath=yes
  11099. ;;
  11100. *nto* | *qnx*)
  11101. version_type=qnx
  11102. need_lib_prefix=no
  11103. need_version=no
  11104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11105. soname_spec='${libname}${release}${shared_ext}$major'
  11106. shlibpath_var=LD_LIBRARY_PATH
  11107. shlibpath_overrides_runpath=no
  11108. hardcode_into_libs=yes
  11109. dynamic_linker='ldqnx.so'
  11110. ;;
  11111. openbsd*)
  11112. version_type=sunos
  11113. sys_lib_dlsearch_path_spec="/usr/lib"
  11114. need_lib_prefix=no
  11115. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11116. case $host_os in
  11117. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11118. *) need_version=no ;;
  11119. esac
  11120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11121. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11122. shlibpath_var=LD_LIBRARY_PATH
  11123. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11124. case $host_os in
  11125. openbsd2.[89] | openbsd2.[89].*)
  11126. shlibpath_overrides_runpath=no
  11127. ;;
  11128. *)
  11129. shlibpath_overrides_runpath=yes
  11130. ;;
  11131. esac
  11132. else
  11133. shlibpath_overrides_runpath=yes
  11134. fi
  11135. ;;
  11136. os2*)
  11137. libname_spec='$name'
  11138. shrext_cmds=".dll"
  11139. need_lib_prefix=no
  11140. library_names_spec='$libname${shared_ext} $libname.a'
  11141. dynamic_linker='OS/2 ld.exe'
  11142. shlibpath_var=LIBPATH
  11143. ;;
  11144. osf3* | osf4* | osf5*)
  11145. version_type=osf
  11146. need_lib_prefix=no
  11147. need_version=no
  11148. soname_spec='${libname}${release}${shared_ext}$major'
  11149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11150. shlibpath_var=LD_LIBRARY_PATH
  11151. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11152. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11153. ;;
  11154. rdos*)
  11155. dynamic_linker=no
  11156. ;;
  11157. solaris*)
  11158. version_type=linux # correct to gnu/linux during the next big refactor
  11159. need_lib_prefix=no
  11160. need_version=no
  11161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11162. soname_spec='${libname}${release}${shared_ext}$major'
  11163. shlibpath_var=LD_LIBRARY_PATH
  11164. shlibpath_overrides_runpath=yes
  11165. hardcode_into_libs=yes
  11166. # ldd complains unless libraries are executable
  11167. postinstall_cmds='chmod +x $lib'
  11168. ;;
  11169. sunos4*)
  11170. version_type=sunos
  11171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11172. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11173. shlibpath_var=LD_LIBRARY_PATH
  11174. shlibpath_overrides_runpath=yes
  11175. if test "$with_gnu_ld" = yes; then
  11176. need_lib_prefix=no
  11177. fi
  11178. need_version=yes
  11179. ;;
  11180. sysv4 | sysv4.3*)
  11181. version_type=linux # correct to gnu/linux during the next big refactor
  11182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11183. soname_spec='${libname}${release}${shared_ext}$major'
  11184. shlibpath_var=LD_LIBRARY_PATH
  11185. case $host_vendor in
  11186. sni)
  11187. shlibpath_overrides_runpath=no
  11188. need_lib_prefix=no
  11189. runpath_var=LD_RUN_PATH
  11190. ;;
  11191. siemens)
  11192. need_lib_prefix=no
  11193. ;;
  11194. motorola)
  11195. need_lib_prefix=no
  11196. need_version=no
  11197. shlibpath_overrides_runpath=no
  11198. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11199. ;;
  11200. esac
  11201. ;;
  11202. sysv4*MP*)
  11203. if test -d /usr/nec ;then
  11204. version_type=linux # correct to gnu/linux during the next big refactor
  11205. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11206. soname_spec='$libname${shared_ext}.$major'
  11207. shlibpath_var=LD_LIBRARY_PATH
  11208. fi
  11209. ;;
  11210. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11211. version_type=freebsd-elf
  11212. need_lib_prefix=no
  11213. need_version=no
  11214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11215. soname_spec='${libname}${release}${shared_ext}$major'
  11216. shlibpath_var=LD_LIBRARY_PATH
  11217. shlibpath_overrides_runpath=yes
  11218. hardcode_into_libs=yes
  11219. if test "$with_gnu_ld" = yes; then
  11220. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11221. else
  11222. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11223. case $host_os in
  11224. sco3.2v5*)
  11225. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11226. ;;
  11227. esac
  11228. fi
  11229. sys_lib_dlsearch_path_spec='/usr/lib'
  11230. ;;
  11231. tpf*)
  11232. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11233. version_type=linux # correct to gnu/linux during the next big refactor
  11234. need_lib_prefix=no
  11235. need_version=no
  11236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11237. shlibpath_var=LD_LIBRARY_PATH
  11238. shlibpath_overrides_runpath=no
  11239. hardcode_into_libs=yes
  11240. ;;
  11241. uts4*)
  11242. version_type=linux # correct to gnu/linux during the next big refactor
  11243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11244. soname_spec='${libname}${release}${shared_ext}$major'
  11245. shlibpath_var=LD_LIBRARY_PATH
  11246. ;;
  11247. *)
  11248. dynamic_linker=no
  11249. ;;
  11250. esac
  11251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11252. $as_echo "$dynamic_linker" >&6; }
  11253. test "$dynamic_linker" = no && can_build_shared=no
  11254. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11255. if test "$GCC" = yes; then
  11256. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11257. fi
  11258. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11259. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11260. fi
  11261. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11262. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11263. fi
  11264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11265. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11266. hardcode_action=
  11267. if test -n "$hardcode_libdir_flag_spec" ||
  11268. test -n "$runpath_var" ||
  11269. test "X$hardcode_automatic" = "Xyes" ; then
  11270. # We can hardcode non-existent directories.
  11271. if test "$hardcode_direct" != no &&
  11272. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11273. # have to relink, otherwise we might link with an installed library
  11274. # when we should be linking with a yet-to-be-installed one
  11275. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  11276. test "$hardcode_minus_L" != no; then
  11277. # Linking always hardcodes the temporary library directory.
  11278. hardcode_action=relink
  11279. else
  11280. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11281. hardcode_action=immediate
  11282. fi
  11283. else
  11284. # We cannot hardcode anything, or else we can only hardcode existing
  11285. # directories.
  11286. hardcode_action=unsupported
  11287. fi
  11288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11289. $as_echo "$hardcode_action" >&6; }
  11290. if test "$hardcode_action" = relink ||
  11291. test "$inherit_rpath" = yes; then
  11292. # Fast installation is not supported
  11293. enable_fast_install=no
  11294. elif test "$shlibpath_overrides_runpath" = yes ||
  11295. test "$enable_shared" = no; then
  11296. # Fast installation is not necessary
  11297. enable_fast_install=needless
  11298. fi
  11299. if test "x$enable_dlopen" != xyes; then
  11300. enable_dlopen=unknown
  11301. enable_dlopen_self=unknown
  11302. enable_dlopen_self_static=unknown
  11303. else
  11304. lt_cv_dlopen=no
  11305. lt_cv_dlopen_libs=
  11306. case $host_os in
  11307. beos*)
  11308. lt_cv_dlopen="load_add_on"
  11309. lt_cv_dlopen_libs=
  11310. lt_cv_dlopen_self=yes
  11311. ;;
  11312. mingw* | pw32* | cegcc*)
  11313. lt_cv_dlopen="LoadLibrary"
  11314. lt_cv_dlopen_libs=
  11315. ;;
  11316. cygwin*)
  11317. lt_cv_dlopen="dlopen"
  11318. lt_cv_dlopen_libs=
  11319. ;;
  11320. darwin*)
  11321. # if libdl is installed we need to link against it
  11322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11323. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11324. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11325. $as_echo_n "(cached) " >&6
  11326. else
  11327. ac_check_lib_save_LIBS=$LIBS
  11328. LIBS="-ldl $LIBS"
  11329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11330. /* end confdefs.h. */
  11331. /* Override any GCC internal prototype to avoid an error.
  11332. Use char because int might match the return type of a GCC
  11333. builtin and then its argument prototype would still apply. */
  11334. #ifdef __cplusplus
  11335. extern "C"
  11336. #endif
  11337. char dlopen ();
  11338. int
  11339. main ()
  11340. {
  11341. return dlopen ();
  11342. ;
  11343. return 0;
  11344. }
  11345. _ACEOF
  11346. if ac_fn_c_try_link "$LINENO"; then :
  11347. ac_cv_lib_dl_dlopen=yes
  11348. else
  11349. ac_cv_lib_dl_dlopen=no
  11350. fi
  11351. rm -f core conftest.err conftest.$ac_objext \
  11352. conftest$ac_exeext conftest.$ac_ext
  11353. LIBS=$ac_check_lib_save_LIBS
  11354. fi
  11355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11356. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11357. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11358. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11359. else
  11360. lt_cv_dlopen="dyld"
  11361. lt_cv_dlopen_libs=
  11362. lt_cv_dlopen_self=yes
  11363. fi
  11364. ;;
  11365. *)
  11366. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11367. if test "x$ac_cv_func_shl_load" = xyes; then :
  11368. lt_cv_dlopen="shl_load"
  11369. else
  11370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11371. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11372. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11373. $as_echo_n "(cached) " >&6
  11374. else
  11375. ac_check_lib_save_LIBS=$LIBS
  11376. LIBS="-ldld $LIBS"
  11377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11378. /* end confdefs.h. */
  11379. /* Override any GCC internal prototype to avoid an error.
  11380. Use char because int might match the return type of a GCC
  11381. builtin and then its argument prototype would still apply. */
  11382. #ifdef __cplusplus
  11383. extern "C"
  11384. #endif
  11385. char shl_load ();
  11386. int
  11387. main ()
  11388. {
  11389. return shl_load ();
  11390. ;
  11391. return 0;
  11392. }
  11393. _ACEOF
  11394. if ac_fn_c_try_link "$LINENO"; then :
  11395. ac_cv_lib_dld_shl_load=yes
  11396. else
  11397. ac_cv_lib_dld_shl_load=no
  11398. fi
  11399. rm -f core conftest.err conftest.$ac_objext \
  11400. conftest$ac_exeext conftest.$ac_ext
  11401. LIBS=$ac_check_lib_save_LIBS
  11402. fi
  11403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11404. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11405. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11406. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  11407. else
  11408. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11409. if test "x$ac_cv_func_dlopen" = xyes; then :
  11410. lt_cv_dlopen="dlopen"
  11411. else
  11412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11413. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11414. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11415. $as_echo_n "(cached) " >&6
  11416. else
  11417. ac_check_lib_save_LIBS=$LIBS
  11418. LIBS="-ldl $LIBS"
  11419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11420. /* end confdefs.h. */
  11421. /* Override any GCC internal prototype to avoid an error.
  11422. Use char because int might match the return type of a GCC
  11423. builtin and then its argument prototype would still apply. */
  11424. #ifdef __cplusplus
  11425. extern "C"
  11426. #endif
  11427. char dlopen ();
  11428. int
  11429. main ()
  11430. {
  11431. return dlopen ();
  11432. ;
  11433. return 0;
  11434. }
  11435. _ACEOF
  11436. if ac_fn_c_try_link "$LINENO"; then :
  11437. ac_cv_lib_dl_dlopen=yes
  11438. else
  11439. ac_cv_lib_dl_dlopen=no
  11440. fi
  11441. rm -f core conftest.err conftest.$ac_objext \
  11442. conftest$ac_exeext conftest.$ac_ext
  11443. LIBS=$ac_check_lib_save_LIBS
  11444. fi
  11445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11446. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11447. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11448. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11449. else
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11451. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11452. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11453. $as_echo_n "(cached) " >&6
  11454. else
  11455. ac_check_lib_save_LIBS=$LIBS
  11456. LIBS="-lsvld $LIBS"
  11457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11458. /* end confdefs.h. */
  11459. /* Override any GCC internal prototype to avoid an error.
  11460. Use char because int might match the return type of a GCC
  11461. builtin and then its argument prototype would still apply. */
  11462. #ifdef __cplusplus
  11463. extern "C"
  11464. #endif
  11465. char dlopen ();
  11466. int
  11467. main ()
  11468. {
  11469. return dlopen ();
  11470. ;
  11471. return 0;
  11472. }
  11473. _ACEOF
  11474. if ac_fn_c_try_link "$LINENO"; then :
  11475. ac_cv_lib_svld_dlopen=yes
  11476. else
  11477. ac_cv_lib_svld_dlopen=no
  11478. fi
  11479. rm -f core conftest.err conftest.$ac_objext \
  11480. conftest$ac_exeext conftest.$ac_ext
  11481. LIBS=$ac_check_lib_save_LIBS
  11482. fi
  11483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11484. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11485. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11486. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11487. else
  11488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11489. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11490. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11491. $as_echo_n "(cached) " >&6
  11492. else
  11493. ac_check_lib_save_LIBS=$LIBS
  11494. LIBS="-ldld $LIBS"
  11495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11496. /* end confdefs.h. */
  11497. /* Override any GCC internal prototype to avoid an error.
  11498. Use char because int might match the return type of a GCC
  11499. builtin and then its argument prototype would still apply. */
  11500. #ifdef __cplusplus
  11501. extern "C"
  11502. #endif
  11503. char dld_link ();
  11504. int
  11505. main ()
  11506. {
  11507. return dld_link ();
  11508. ;
  11509. return 0;
  11510. }
  11511. _ACEOF
  11512. if ac_fn_c_try_link "$LINENO"; then :
  11513. ac_cv_lib_dld_dld_link=yes
  11514. else
  11515. ac_cv_lib_dld_dld_link=no
  11516. fi
  11517. rm -f core conftest.err conftest.$ac_objext \
  11518. conftest$ac_exeext conftest.$ac_ext
  11519. LIBS=$ac_check_lib_save_LIBS
  11520. fi
  11521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11522. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11523. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11524. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11525. fi
  11526. fi
  11527. fi
  11528. fi
  11529. fi
  11530. fi
  11531. ;;
  11532. esac
  11533. if test "x$lt_cv_dlopen" != xno; then
  11534. enable_dlopen=yes
  11535. else
  11536. enable_dlopen=no
  11537. fi
  11538. case $lt_cv_dlopen in
  11539. dlopen)
  11540. save_CPPFLAGS="$CPPFLAGS"
  11541. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11542. save_LDFLAGS="$LDFLAGS"
  11543. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11544. save_LIBS="$LIBS"
  11545. LIBS="$lt_cv_dlopen_libs $LIBS"
  11546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11547. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11548. if ${lt_cv_dlopen_self+:} false; then :
  11549. $as_echo_n "(cached) " >&6
  11550. else
  11551. if test "$cross_compiling" = yes; then :
  11552. lt_cv_dlopen_self=cross
  11553. else
  11554. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11555. lt_status=$lt_dlunknown
  11556. cat > conftest.$ac_ext <<_LT_EOF
  11557. #line $LINENO "configure"
  11558. #include "confdefs.h"
  11559. #if HAVE_DLFCN_H
  11560. #include <dlfcn.h>
  11561. #endif
  11562. #include <stdio.h>
  11563. #ifdef RTLD_GLOBAL
  11564. # define LT_DLGLOBAL RTLD_GLOBAL
  11565. #else
  11566. # ifdef DL_GLOBAL
  11567. # define LT_DLGLOBAL DL_GLOBAL
  11568. # else
  11569. # define LT_DLGLOBAL 0
  11570. # endif
  11571. #endif
  11572. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11573. find out it does not work in some platform. */
  11574. #ifndef LT_DLLAZY_OR_NOW
  11575. # ifdef RTLD_LAZY
  11576. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11577. # else
  11578. # ifdef DL_LAZY
  11579. # define LT_DLLAZY_OR_NOW DL_LAZY
  11580. # else
  11581. # ifdef RTLD_NOW
  11582. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11583. # else
  11584. # ifdef DL_NOW
  11585. # define LT_DLLAZY_OR_NOW DL_NOW
  11586. # else
  11587. # define LT_DLLAZY_OR_NOW 0
  11588. # endif
  11589. # endif
  11590. # endif
  11591. # endif
  11592. #endif
  11593. /* When -fvisbility=hidden is used, assume the code has been annotated
  11594. correspondingly for the symbols needed. */
  11595. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11596. int fnord () __attribute__((visibility("default")));
  11597. #endif
  11598. int fnord () { return 42; }
  11599. int main ()
  11600. {
  11601. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11602. int status = $lt_dlunknown;
  11603. if (self)
  11604. {
  11605. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11606. else
  11607. {
  11608. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11609. else puts (dlerror ());
  11610. }
  11611. /* dlclose (self); */
  11612. }
  11613. else
  11614. puts (dlerror ());
  11615. return status;
  11616. }
  11617. _LT_EOF
  11618. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11619. (eval $ac_link) 2>&5
  11620. ac_status=$?
  11621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11622. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11623. (./conftest; exit; ) >&5 2>/dev/null
  11624. lt_status=$?
  11625. case x$lt_status in
  11626. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11627. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11628. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11629. esac
  11630. else :
  11631. # compilation failed
  11632. lt_cv_dlopen_self=no
  11633. fi
  11634. fi
  11635. rm -fr conftest*
  11636. fi
  11637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11638. $as_echo "$lt_cv_dlopen_self" >&6; }
  11639. if test "x$lt_cv_dlopen_self" = xyes; then
  11640. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11642. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11643. if ${lt_cv_dlopen_self_static+:} false; then :
  11644. $as_echo_n "(cached) " >&6
  11645. else
  11646. if test "$cross_compiling" = yes; then :
  11647. lt_cv_dlopen_self_static=cross
  11648. else
  11649. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11650. lt_status=$lt_dlunknown
  11651. cat > conftest.$ac_ext <<_LT_EOF
  11652. #line $LINENO "configure"
  11653. #include "confdefs.h"
  11654. #if HAVE_DLFCN_H
  11655. #include <dlfcn.h>
  11656. #endif
  11657. #include <stdio.h>
  11658. #ifdef RTLD_GLOBAL
  11659. # define LT_DLGLOBAL RTLD_GLOBAL
  11660. #else
  11661. # ifdef DL_GLOBAL
  11662. # define LT_DLGLOBAL DL_GLOBAL
  11663. # else
  11664. # define LT_DLGLOBAL 0
  11665. # endif
  11666. #endif
  11667. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11668. find out it does not work in some platform. */
  11669. #ifndef LT_DLLAZY_OR_NOW
  11670. # ifdef RTLD_LAZY
  11671. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11672. # else
  11673. # ifdef DL_LAZY
  11674. # define LT_DLLAZY_OR_NOW DL_LAZY
  11675. # else
  11676. # ifdef RTLD_NOW
  11677. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11678. # else
  11679. # ifdef DL_NOW
  11680. # define LT_DLLAZY_OR_NOW DL_NOW
  11681. # else
  11682. # define LT_DLLAZY_OR_NOW 0
  11683. # endif
  11684. # endif
  11685. # endif
  11686. # endif
  11687. #endif
  11688. /* When -fvisbility=hidden is used, assume the code has been annotated
  11689. correspondingly for the symbols needed. */
  11690. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11691. int fnord () __attribute__((visibility("default")));
  11692. #endif
  11693. int fnord () { return 42; }
  11694. int main ()
  11695. {
  11696. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11697. int status = $lt_dlunknown;
  11698. if (self)
  11699. {
  11700. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11701. else
  11702. {
  11703. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11704. else puts (dlerror ());
  11705. }
  11706. /* dlclose (self); */
  11707. }
  11708. else
  11709. puts (dlerror ());
  11710. return status;
  11711. }
  11712. _LT_EOF
  11713. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11714. (eval $ac_link) 2>&5
  11715. ac_status=$?
  11716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11717. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11718. (./conftest; exit; ) >&5 2>/dev/null
  11719. lt_status=$?
  11720. case x$lt_status in
  11721. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11722. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11723. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11724. esac
  11725. else :
  11726. # compilation failed
  11727. lt_cv_dlopen_self_static=no
  11728. fi
  11729. fi
  11730. rm -fr conftest*
  11731. fi
  11732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11733. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11734. fi
  11735. CPPFLAGS="$save_CPPFLAGS"
  11736. LDFLAGS="$save_LDFLAGS"
  11737. LIBS="$save_LIBS"
  11738. ;;
  11739. esac
  11740. case $lt_cv_dlopen_self in
  11741. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11742. *) enable_dlopen_self=unknown ;;
  11743. esac
  11744. case $lt_cv_dlopen_self_static in
  11745. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11746. *) enable_dlopen_self_static=unknown ;;
  11747. esac
  11748. fi
  11749. striplib=
  11750. old_striplib=
  11751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11752. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11753. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11754. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11755. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11757. $as_echo "yes" >&6; }
  11758. else
  11759. # FIXME - insert some real tests, host_os isn't really good enough
  11760. case $host_os in
  11761. darwin*)
  11762. if test -n "$STRIP" ; then
  11763. striplib="$STRIP -x"
  11764. old_striplib="$STRIP -S"
  11765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11766. $as_echo "yes" >&6; }
  11767. else
  11768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11769. $as_echo "no" >&6; }
  11770. fi
  11771. ;;
  11772. *)
  11773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11774. $as_echo "no" >&6; }
  11775. ;;
  11776. esac
  11777. fi
  11778. # Report which library types will actually be built
  11779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11780. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11782. $as_echo "$can_build_shared" >&6; }
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11784. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11785. test "$can_build_shared" = "no" && enable_shared=no
  11786. # On AIX, shared libraries and static libraries use the same namespace, and
  11787. # are all built from PIC.
  11788. case $host_os in
  11789. aix3*)
  11790. test "$enable_shared" = yes && enable_static=no
  11791. if test -n "$RANLIB"; then
  11792. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11793. postinstall_cmds='$RANLIB $lib'
  11794. fi
  11795. ;;
  11796. aix[4-9]*)
  11797. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11798. test "$enable_shared" = yes && enable_static=no
  11799. fi
  11800. ;;
  11801. esac
  11802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11803. $as_echo "$enable_shared" >&6; }
  11804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11805. $as_echo_n "checking whether to build static libraries... " >&6; }
  11806. # Make sure either enable_shared or enable_static is yes.
  11807. test "$enable_shared" = yes || enable_static=yes
  11808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11809. $as_echo "$enable_static" >&6; }
  11810. fi
  11811. ac_ext=c
  11812. ac_cpp='$CPP $CPPFLAGS'
  11813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11816. CC="$lt_save_CC"
  11817. ac_config_commands="$ac_config_commands libtool"
  11818. # Only expand once:
  11819. if test x"$modules" = xdisabled
  11820. then
  11821. echo "Modules still disabled..."
  11822. MODULE_OBJ="legacy_module.\$(OBJEXT)"
  11823. else
  11824. MODULE_OBJ="module.\$(OBJEXT)"
  11825. fi
  11826. if test "x$modules" = xenabled ; then
  11827. HAVE_MODULES_TRUE=
  11828. HAVE_MODULES_FALSE='#'
  11829. else
  11830. HAVE_MODULES_TRUE='#'
  11831. HAVE_MODULES_FALSE=
  11832. fi
  11833. # Check whether --enable-debug was given.
  11834. if test "${enable_debug+set}" = set; then :
  11835. enableval=$enable_debug;
  11836. if test "x$enableval" = xyes
  11837. then
  11838. debugging="enabled"
  11839. else
  11840. debugging="disabled"
  11841. fi
  11842. else
  11843. debugging="disabled"
  11844. fi
  11845. # Check whether --enable-nagging was given.
  11846. if test "${enable_nagging+set}" = set; then :
  11847. enableval=$enable_nagging;
  11848. if test "x$enableval" = xyes
  11849. then
  11850. nagging="enabled"
  11851. debugging="enabled"
  11852. else
  11853. nagging="disabled"
  11854. fi
  11855. else
  11856. nagging="disabled"
  11857. fi
  11858. if test x"$debugging" = xenabled; then
  11859. $as_echo "#define DEBUG 1" >>confdefs.h
  11860. fi
  11861. # Check whether --enable-gapless was given.
  11862. if test "${enable_gapless+set}" = set; then :
  11863. enableval=$enable_gapless;
  11864. if test "x$enableval" = xyes
  11865. then
  11866. gapless="enabled"
  11867. $as_echo "#define GAPLESS 1" >>confdefs.h
  11868. else
  11869. gapless="disabled"
  11870. fi
  11871. else
  11872. gapless="enabled"
  11873. $as_echo "#define GAPLESS 1" >>confdefs.h
  11874. fi
  11875. # Check whether --enable-fifo was given.
  11876. if test "${enable_fifo+set}" = set; then :
  11877. enableval=$enable_fifo;
  11878. if test "x$enableval" = xyes
  11879. then
  11880. fifo="enabled"
  11881. else
  11882. fifo="disabled"
  11883. fi
  11884. else
  11885. fifo="auto"
  11886. fi
  11887. # Check whether --enable-ipv6 was given.
  11888. if test "${enable_ipv6+set}" = set; then :
  11889. enableval=$enable_ipv6;
  11890. if test "x$enableval" = xyes
  11891. then
  11892. ipv6="enabled"
  11893. else
  11894. ipv6="disabled"
  11895. fi
  11896. else
  11897. ipv6="auto"
  11898. fi
  11899. # Check whether --enable-network was given.
  11900. if test "${enable_network+set}" = set; then :
  11901. enableval=$enable_network;
  11902. if test "x$enableval" = xyes
  11903. then
  11904. network="enabled"
  11905. else
  11906. network="disabled"
  11907. fi
  11908. else
  11909. network="auto"
  11910. fi
  11911. s_fpu=
  11912. DECODER_OBJ=
  11913. DECODER_LOBJ=
  11914. id3v2=enabled
  11915. # Check whether --enable-id3v2 was given.
  11916. if test "${enable_id3v2+set}" = set; then :
  11917. enableval=$enable_id3v2;
  11918. if test "x$enableval" = xno; then
  11919. id3v2="disabled"
  11920. fi
  11921. fi
  11922. # id3v2 depends on strings... so check that in between.
  11923. string=enabled
  11924. # Check whether --enable-string was given.
  11925. if test "${enable_string+set}" = set; then :
  11926. enableval=$enable_string;
  11927. if test "x$enableval" = xno; then
  11928. string="disabled"
  11929. fi
  11930. fi
  11931. if test "x$string" = "xdisabled"; then
  11932. $as_echo "#define NO_STRING 1" >>confdefs.h
  11933. id3v2=disabled
  11934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ID3v2 support disabled because of string API being disabled." >&5
  11935. $as_echo "$as_me: WARNING: ID3v2 support disabled because of string API being disabled." >&2;}
  11936. else
  11937. DECODER_OBJ="$DECODER_OBJ stringbuf.\$(OBJEXT)"
  11938. DECODER_LOBJ="$DECODER_LOBJ stringbuf.lo"
  11939. fi
  11940. if test "x$id3v2" = "xdisabled"; then
  11941. $as_echo "#define NO_ID3V2 1" >>confdefs.h
  11942. fi
  11943. icy=enabled
  11944. # Check whether --enable-icy was given.
  11945. if test "${enable_icy+set}" = set; then :
  11946. enableval=$enable_icy;
  11947. if test "x$enableval" = xno; then
  11948. icy="disabled"
  11949. fi
  11950. fi
  11951. if test "x$icy" = "xdisabled"; then
  11952. $as_echo "#define NO_ICY 1" >>confdefs.h
  11953. else
  11954. DECODER_OBJ="$DECODER_OBJ icy.\$(OBJEXT) icy2utf8.\$(OBJEXT)"
  11955. DECODER_LOBJ="$DECODER_LOBJ icy.lo icy2utf8.lo"
  11956. fi
  11957. ntom=enabled
  11958. # Check whether --enable-ntom was given.
  11959. if test "${enable_ntom+set}" = set; then :
  11960. enableval=$enable_ntom;
  11961. if test "x$enableval" = xno; then
  11962. ntom="disabled"
  11963. fi
  11964. fi
  11965. if test "x$ntom" = "xdisabled"; then
  11966. $as_echo "#define NO_NTOM 1" >>confdefs.h
  11967. else
  11968. DECODER_OBJ="$DECODER_OBJ ntom.\$(OBJEXT)"
  11969. DECODER_LOBJ="$DECODER_LOBJ ntom.lo"
  11970. fi
  11971. downsample=enabled
  11972. # Check whether --enable-downsample was given.
  11973. if test "${enable_downsample+set}" = set; then :
  11974. enableval=$enable_downsample;
  11975. if test "x$enableval" = xno; then
  11976. downsample="disabled"
  11977. fi
  11978. fi
  11979. if test "x$downsample" = "xdisabled"; then
  11980. $as_echo "#define NO_DOWNSAMPLE 1" >>confdefs.h
  11981. fi
  11982. feeder=enabled
  11983. # Check whether --enable-feeder was given.
  11984. if test "${enable_feeder+set}" = set; then :
  11985. enableval=$enable_feeder;
  11986. if test "x$enableval" = xno; then
  11987. feeder="disabled"
  11988. fi
  11989. fi
  11990. if test "x$feeder" = "xdisabled"; then
  11991. $as_echo "#define NO_FEEDER 1" >>confdefs.h
  11992. fi
  11993. messages=enabled
  11994. # Check whether --enable-messages was given.
  11995. if test "${enable_messages+set}" = set; then :
  11996. enableval=$enable_messages;
  11997. if test "x$enableval" = xno; then
  11998. messages="disabled"
  11999. fi
  12000. fi
  12001. if test "x$messages" = "xdisabled"; then
  12002. $as_echo "#define NO_WARNING 1" >>confdefs.h
  12003. $as_echo "#define NO_ERRORMSG 1" >>confdefs.h
  12004. $as_echo "#define NO_ERETURN 1" >>confdefs.h
  12005. fi
  12006. newhuff=enabled
  12007. # Check whether --enable-new-huffman was given.
  12008. if test "${enable_new_huffman+set}" = set; then :
  12009. enableval=$enable_new_huffman;
  12010. if test "x$enableval" = xno; then
  12011. newhuff=disabled
  12012. fi
  12013. fi
  12014. if test "x$newhuff" = "xenabled"; then
  12015. $as_echo "#define USE_NEW_HUFFTABLE 1" >>confdefs.h
  12016. fi
  12017. integers=fast
  12018. # Check whether --enable-int-quality was given.
  12019. if test "${enable_int_quality+set}" = set; then :
  12020. enableval=$enable_int_quality;
  12021. if test "x$enableval" = xyes; then
  12022. integers=quality
  12023. $as_echo "#define ACCURATE_ROUNDING 1" >>confdefs.h
  12024. fi
  12025. fi
  12026. int16=enabled
  12027. # Check whether --enable-16bit was given.
  12028. if test "${enable_16bit+set}" = set; then :
  12029. enableval=$enable_16bit;
  12030. if test "x$enableval" = xno; then
  12031. int16="disabled"
  12032. fi
  12033. fi
  12034. int8=enabled
  12035. # Check whether --enable-8bit was given.
  12036. if test "${enable_8bit+set}" = set; then :
  12037. enableval=$enable_8bit;
  12038. if test "x$enableval" = xno; then
  12039. int8="disabled"
  12040. fi
  12041. fi
  12042. int32=enabled
  12043. # Check whether --enable-32bit was given.
  12044. if test "${enable_32bit+set}" = set; then :
  12045. enableval=$enable_32bit;
  12046. if test "x$enableval" = xno; then
  12047. int32="disabled"
  12048. fi
  12049. fi
  12050. real=enabled
  12051. # Check whether --enable-real was given.
  12052. if test "${enable_real+set}" = set; then :
  12053. enableval=$enable_real;
  12054. if test "x$enableval" = xno; then
  12055. real="disabled"
  12056. fi
  12057. fi
  12058. # Check whether --with-cpu was given.
  12059. if test "${with_cpu+set}" = set; then :
  12060. withval=$with_cpu;
  12061. fi
  12062. # opt-in for IEEE754 floating point action
  12063. # We want to make sure not to apply hacks relying on IEEE754 storage format on platforms where we did not make sure that this actually is valid.
  12064. # It _should_ be fine for about all computers still out there, but we play safe.
  12065. ieee=no
  12066. case $host in
  12067. i?86-*|x86_64-*|powerpc*|sparc*)
  12068. ieee=yes
  12069. ;;
  12070. esac
  12071. if test "x$ieee" = xyes; then
  12072. echo "We assume IEEE754 floating point format."
  12073. $as_echo "#define IEEE_FLOAT 1" >>confdefs.h
  12074. fi
  12075. newoldwritesample=disabled
  12076. case $host in
  12077. arm*-*-linux*)
  12078. # check that... perhaps we are better off on arm with kernel math emulation
  12079. cpu_type="arm_nofpu"
  12080. ;;
  12081. i386-*-linux*|i386-*-kfreebsd*-gnu)
  12082. cpu_type="i386_fpu"
  12083. newoldwritesample=enabled
  12084. ;;
  12085. i486-*-linux*|i486-*-kfreebsd*-gnu)
  12086. cpu_type="i486"
  12087. newoldwritesample=enabled
  12088. ;;
  12089. i586-*-linux*|i586-*-kfreebsd*-gnu)
  12090. cpu_type="x86"
  12091. newoldwritesample=enabled
  12092. ;;
  12093. i686-*-linux*|i686-*-kfreebsd*-gnu)
  12094. cpu_type="x86"
  12095. newoldwritesample=enabled
  12096. ;;
  12097. x86_64-*-linux*|x86_64-*-kfreebsd*-gnu)
  12098. cpu_type="x86-64"
  12099. ;;
  12100. *-*-linux*|*-*-kfreebsd*-gnu)
  12101. cpu_type="generic_fpu"
  12102. ;;
  12103. i386-apple-darwin10*)
  12104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CPU type supports x86-64" >&5
  12105. $as_echo_n "checking if CPU type supports x86-64... " >&6; }
  12106. case `sysctl -n hw.optional.x86_64` in
  12107. 1)
  12108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12109. $as_echo "yes" >&6; }
  12110. cpu_type="x86-64"
  12111. ;;
  12112. *)
  12113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12114. $as_echo "no" >&6; }
  12115. cpu_type="x86"
  12116. newoldwritesample=enabled
  12117. ;;
  12118. esac
  12119. ;;
  12120. i386-apple-darwin*)
  12121. cpu_type="x86"
  12122. newoldwritesample=enabled
  12123. ;;
  12124. x86_64-apple-darwin*)
  12125. cpu_type="x86-64"
  12126. ;;
  12127. *-apple-darwin*)
  12128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CPU type supports AltiVec" >&5
  12129. $as_echo_n "checking if CPU type supports AltiVec... " >&6; }
  12130. case `machine` in
  12131. ppc7400 | ppc7450 | ppc970)
  12132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12133. $as_echo "yes" >&6; }
  12134. cpu_type="altivec"
  12135. ;;
  12136. *)
  12137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12138. $as_echo "no" >&6; }
  12139. cpu_type="generic_fpu"
  12140. ;;
  12141. esac
  12142. ;;
  12143. i?86-*-dragonfly* | i?86-*-freebsd* | i?86-*-midnightbsd* | i?86-*-mirbsd* | i?86-*-netbsd* | i?86-*-openbsd*)
  12144. cpu_type="x86"
  12145. newoldwritesample=enabled
  12146. ;;
  12147. x86_64-*-dragonfly* | x86_64-*-freebsd* | x86_64-*-midnightbsd* | x86_64-*-mirbsd* | x86_64-*-netbsd* | x86_64-*-openbsd*)
  12148. cpu_type="x86-64"
  12149. ;;
  12150. *-*-dragonfly* | *-*-freebsd* | *-*-midnightbsd* | *-*-mirbsd* | *-*-netbsd* | *-*-openbsd*)
  12151. cpu_type="generic_fpu"
  12152. ;;
  12153. i386-*-solaris*)
  12154. cpu_type=x86
  12155. newoldwritesample=enabled
  12156. ;;
  12157. x86_64-*-solaris*)
  12158. cpu_type=x86-64
  12159. ;;
  12160. *-*-solaris*)
  12161. cpu_type="generic_fpu"
  12162. ;;
  12163. # os2-emx = OS/2 with some Unix fun; so p.ex. buffer works.
  12164. # Till we sorted out the assembler troubles, generic CPU is default.
  12165. i386-pc-os2-emx)
  12166. cpu_type=generic_fpu
  12167. newoldwritesample=enabled
  12168. ;;
  12169. x86_64-pc-os2-emx)
  12170. # We are optimistic hat the future knows OS/2 on x86-64;-)
  12171. cpu_type=generic_fpu
  12172. ;;
  12173. *-pc-os2-emx)
  12174. cpu_type="generic_fpu"
  12175. ;;
  12176. *-dec-osf*)
  12177. cpu_type="generic_fpu"
  12178. ;;
  12179. x86_64-*-cygwin*)
  12180. cpu_type="x86-64"
  12181. ;;
  12182. i686-*-cygwin*)
  12183. cpu_type="x86"
  12184. newoldwritesample=enabled
  12185. ;;
  12186. i586-*-cygwin*)
  12187. cpu_type="x86"
  12188. newoldwritesample=enabled
  12189. ;;
  12190. i486-*-cygwin*)
  12191. cpu_type="i486"
  12192. newoldwritesample=enabled
  12193. ;;
  12194. i386-*-cygwin*)
  12195. cpu_type="i386"
  12196. newoldwritesample=enabled
  12197. ;;
  12198. *-cygwin*)
  12199. cpu_type="generic_fpu"
  12200. ;;
  12201. i[3-7]86-*-mingw32*)
  12202. LIBS="$LIBS"
  12203. buffer=disabled
  12204. cpu_type="x86"
  12205. newoldwritesample=enabled
  12206. ;;
  12207. x86_64-*-mingw32*)
  12208. LIBS="$LIBS"
  12209. buffer=disabled
  12210. cpu_type="x86-64"
  12211. ;;
  12212. i386-*-nto-qnx*)
  12213. cpu_type="x86"
  12214. newoldwritesample=enabled
  12215. ;;
  12216. i386-*)
  12217. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12218. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12219. cpu_type="i386"
  12220. buffer=disabled
  12221. ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
  12222. newoldwritesample=enabled
  12223. ;;
  12224. i486-*)
  12225. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12226. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12227. cpu_type="i486"
  12228. buffer=disabled
  12229. ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
  12230. newoldwritesample=enabled
  12231. ;;
  12232. i586-*)
  12233. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12234. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12235. cpu_type="x86"
  12236. buffer=disabled
  12237. ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
  12238. newoldwritesample=enabled
  12239. ;;
  12240. i686-*)
  12241. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12242. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12243. cpu_type="x86"
  12244. buffer=disabled
  12245. ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
  12246. newoldwritesample=enabled
  12247. ;;
  12248. x86_64-*)
  12249. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12250. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12251. cpu_type="x86-64"
  12252. buffer=disabled
  12253. ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
  12254. ;;
  12255. *)
  12256. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
  12257. $as_echo "$as_me: WARNING: Unknown host operating system" >&2;}
  12258. cpu_type="generic_fpu"
  12259. buffer=disabled
  12260. ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
  12261. ;;
  12262. esac
  12263. # Check whether --enable-buffer was given.
  12264. if test "${enable_buffer+set}" = set; then :
  12265. enableval=$enable_buffer;
  12266. if test "x$enableval" = xyes
  12267. then
  12268. echo "Note: Enabling buffer per request... perhaps it will not build anyway."
  12269. buffer="enabled"
  12270. else
  12271. echo "Note: Disabling buffer per request."
  12272. buffer="disabled"
  12273. fi
  12274. fi
  12275. # Check whether --enable-newoldwritesample was given.
  12276. if test "${enable_newoldwritesample+set}" = set; then :
  12277. enableval=$enable_newoldwritesample;
  12278. if test "x$enableval" = xyes
  12279. then
  12280. newoldwritesample=enabled
  12281. else
  12282. newoldwritesample=disabled
  12283. fi
  12284. fi
  12285. if test "x$with_cpu" != "x"; then
  12286. cpu_type=$with_cpu
  12287. fi
  12288. if test "x$cpu_type" = "xgeneric_nofpu"; then
  12289. real=disabled
  12290. int32=disabled
  12291. fi
  12292. if test "x$cpu_type" = "xi386_nofpu"; then
  12293. real=disabled
  12294. int32=disabled
  12295. fi
  12296. if test "x$cpu_type" = "xppc_nofpu"; then
  12297. real=disabled
  12298. int32=disabled
  12299. fi
  12300. if test "x$cpu_type" = "xarm_nofpu"; then
  12301. real=disabled
  12302. int32=disabled
  12303. fi
  12304. if test "x$int16" = "xdisabled"; then
  12305. $as_echo "#define NO_16BIT 1" >>confdefs.h
  12306. else
  12307. DECODER_OBJ="$DECODER_OBJ synth.\$(OBJEXT)"
  12308. DECODER_LOBJ="$DECODER_LOBJ synth.lo"
  12309. fi
  12310. # 8bit works only through 16bit
  12311. if test "x$int16" = "xdisabled"; then
  12312. int8=disabled
  12313. fi
  12314. if test "x$int8" = "xdisabled"; then
  12315. $as_echo "#define NO_8BIT 1" >>confdefs.h
  12316. else
  12317. DECODER_OBJ="$DECODER_OBJ synth_8bit.\$(OBJEXT)"
  12318. DECODER_LOBJ="$DECODER_LOBJ synth_8bit.lo"
  12319. fi
  12320. if test "x$int32" = "xdisabled"; then
  12321. $as_echo "#define NO_32BIT 1" >>confdefs.h
  12322. else
  12323. s_fpu="$s_fpu synth_s32"
  12324. fi
  12325. if test "x$real" = "xdisabled"; then
  12326. $as_echo "#define NO_REAL 1" >>confdefs.h
  12327. else
  12328. s_fpu="$s_fpu synth_real"
  12329. fi
  12330. layer1=enabled
  12331. # Check whether --enable-layer1 was given.
  12332. if test "${enable_layer1+set}" = set; then :
  12333. enableval=$enable_layer1;
  12334. if test "x$enableval" = xno; then
  12335. layer1="disabled"
  12336. fi
  12337. fi
  12338. if test "x$layer1" = "xdisabled"; then
  12339. $as_echo "#define NO_LAYER1 1" >>confdefs.h
  12340. else
  12341. # layer1 needs code in layer2
  12342. DECODER_OBJ="$DECODER_OBJ layer1.\$(OBJEXT) layer2.\$(OBJEXT)"
  12343. DECODER_LOBJ="$DECODER_LOBJ layer1.lo layer2.lo"
  12344. fi
  12345. layer2=enabled
  12346. # Check whether --enable-layer2 was given.
  12347. if test "${enable_layer2+set}" = set; then :
  12348. enableval=$enable_layer2;
  12349. if test "x$enableval" = xno; then
  12350. layer2="disabled"
  12351. fi
  12352. fi
  12353. if test "x$layer2" = "xdisabled"; then
  12354. $as_echo "#define NO_LAYER2 1" >>confdefs.h
  12355. else
  12356. # layer1 may have added the objects already
  12357. if test "x$layer1" = "xdisabled"; then
  12358. DECODER_OBJ="$DECODER_OBJ layer2.\$(OBJEXT)"
  12359. DECODER_LOBJ="$DECODER_LOBJ layer2.lo"
  12360. fi
  12361. fi
  12362. layer3=enabled
  12363. # Check whether --enable-layer3 was given.
  12364. if test "${enable_layer3+set}" = set; then :
  12365. enableval=$enable_layer3;
  12366. if test "x$enableval" = xno; then
  12367. layer3="disabled"
  12368. fi
  12369. fi
  12370. if test "x$layer3" = "xdisabled"; then
  12371. $as_echo "#define NO_LAYER3 1" >>confdefs.h
  12372. else
  12373. DECODER_OBJ="$DECODER_OBJ layer3.\$(OBJEXT)"
  12374. DECODER_LOBJ="$DECODER_LOBJ layer3.lo"
  12375. fi
  12376. # Check whether --with-audio was given.
  12377. if test "${with_audio+set}" = set; then :
  12378. withval=$with_audio;
  12379. fi
  12380. # Check whether --with-default-audio was given.
  12381. if test "${with_default_audio+set}" = set; then :
  12382. withval=$with_default_audio;
  12383. fi
  12384. # Check whether --with-optimization was given.
  12385. if test "${with_optimization+set}" = set; then :
  12386. withval=$with_optimization;
  12387. fi
  12388. # Check whether --with-seektable was given.
  12389. if test "${with_seektable+set}" = set; then :
  12390. withval=$with_seektable;
  12391. fi
  12392. # Dummy audio output module is always supported
  12393. output_modules="dummy"
  12394. # Decide on module file suffix. Setting it != .la allows removal of .la files.
  12395. # Check whether --with-module-suffix was given.
  12396. if test "${with_module_suffix+set}" = set; then :
  12397. withval=$with_module_suffix;
  12398. fi
  12399. if test x"$with_module_suffix" = x; then
  12400. with_module_suffix=.la
  12401. fi
  12402. cat >>confdefs.h <<_ACEOF
  12403. #define MODULE_FILE_SUFFIX "$with_module_suffix"
  12404. _ACEOF
  12405. # based on posting from John Dalgliesh <[email protected]> on ffmpeg (LGPL) mailing list
  12406. # extended to use balign if present
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .balign is present" >&5
  12408. $as_echo_n "checking if .balign is present... " >&6; }
  12409. echo '.balign 4' > conftest.s
  12410. if $CCAS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
  12411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12412. $as_echo "yes" >&6; }
  12413. $as_echo "#define ASMALIGN_BALIGN 1" >>confdefs.h
  12414. else
  12415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12416. $as_echo "no" >&6; }
  12417. # find if .align arg is power-of-two or not
  12418. asmalign_exp="unknown"
  12419. if test x"$asmalign_exp" = xunknown; then
  12420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align takes 2-exponent" >&5
  12421. $as_echo_n "checking if .align takes 2-exponent... " >&6; }
  12422. asmalign_exp="no"
  12423. echo '.align 3' > conftest.s
  12424. if $CCAS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
  12425. asmalign_exp="yes"
  12426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12427. $as_echo "yes" >&6; }
  12428. else
  12429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12430. $as_echo "no" >&6; }
  12431. fi
  12432. rm -f conftest.o conftest.s
  12433. fi
  12434. if test x"$asmalign_exp" = xyes; then
  12435. $as_echo "#define ASMALIGN_EXP 1" >>confdefs.h
  12436. else
  12437. $as_echo "#define ASMALIGN_BYTE 1" >>confdefs.h
  12438. fi
  12439. fi
  12440. ccalign="unknown"
  12441. if test x"$ccalign" = xunknown; then
  12442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((aligned(16)))" >&5
  12443. $as_echo_n "checking __attribute__((aligned(16)))... " >&6; }
  12444. ccalign="no"
  12445. echo '__attribute__((aligned(16))) float var;' > conftest.c
  12446. if $CC -c -o conftest.o conftest.c >/dev/null 2>&1; then
  12447. ccalign="yes"
  12448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12449. $as_echo "yes" >&6; }
  12450. else
  12451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12452. $as_echo "no" >&6; }
  12453. fi
  12454. rm -f conftest.o conftest.c
  12455. fi
  12456. avx_support="unknown"
  12457. if test x"$avx_support" = xunknown; then
  12458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports AVX instructions" >&5
  12459. $as_echo_n "checking if assembler supports AVX instructions... " >&6; }
  12460. avx_support="no"
  12461. echo '.text' > conftest.s
  12462. echo 'vaddps %ymm0,%ymm0,%ymm0' >> conftest.s
  12463. if $CCAS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
  12464. avx_support="yes"
  12465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12466. $as_echo "yes" >&6; }
  12467. else
  12468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12469. $as_echo "no" >&6; }
  12470. fi
  12471. rm -f conftest.o conftest.s
  12472. fi
  12473. if test x"$avx_support" = xno; then
  12474. for ac_prog in yasm
  12475. do
  12476. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12477. set dummy $ac_prog; ac_word=$2
  12478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12479. $as_echo_n "checking for $ac_word... " >&6; }
  12480. if ${ac_cv_prog_YASM+:} false; then :
  12481. $as_echo_n "(cached) " >&6
  12482. else
  12483. if test -n "$YASM"; then
  12484. ac_cv_prog_YASM="$YASM" # Let the user override the test.
  12485. else
  12486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12487. for as_dir in $PATH
  12488. do
  12489. IFS=$as_save_IFS
  12490. test -z "$as_dir" && as_dir=.
  12491. for ac_exec_ext in '' $ac_executable_extensions; do
  12492. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12493. ac_cv_prog_YASM="$ac_prog"
  12494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12495. break 2
  12496. fi
  12497. done
  12498. done
  12499. IFS=$as_save_IFS
  12500. fi
  12501. fi
  12502. YASM=$ac_cv_prog_YASM
  12503. if test -n "$YASM"; then
  12504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YASM" >&5
  12505. $as_echo "$YASM" >&6; }
  12506. else
  12507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12508. $as_echo "no" >&6; }
  12509. fi
  12510. test -n "$YASM" && break
  12511. done
  12512. test -n "$YASM" || YASM="no"
  12513. if test x"$YASM" != xno; then
  12514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $YASM supports GAS syntax and AVX instructions" >&5
  12515. $as_echo_n "checking if $YASM supports GAS syntax and AVX instructions... " >&6; }
  12516. echo '.text' > conftest.s
  12517. echo 'vaddps %ymm0,%ymm0,%ymm0' >> conftest.s
  12518. if $YASM -pgas -rcpp -o conftest.o conftest.s 1>/dev/null 2>&1; then
  12519. avx_support="yes"
  12520. YASMFLAGS="-pgas -rgas -mamd64"
  12521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12522. $as_echo "yes" >&6; }
  12523. else
  12524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12525. $as_echo "no" >&6; }
  12526. fi
  12527. rm -f conftest.o conftest.s
  12528. fi
  12529. else
  12530. YASM="no"
  12531. fi
  12532. if test "x$cpu_type" = "xavx"; then
  12533. if test "x$avx_support" != "xyes"; then
  12534. as_fn_error $? "Assembler doesn't understand AVX instructions." "$LINENO" 5
  12535. fi
  12536. fi
  12537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12538. $as_echo_n "checking for ANSI C header files... " >&6; }
  12539. if ${ac_cv_header_stdc+:} false; then :
  12540. $as_echo_n "(cached) " >&6
  12541. else
  12542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12543. /* end confdefs.h. */
  12544. #include <stdlib.h>
  12545. #include <stdarg.h>
  12546. #include <string.h>
  12547. #include <float.h>
  12548. int
  12549. main ()
  12550. {
  12551. ;
  12552. return 0;
  12553. }
  12554. _ACEOF
  12555. if ac_fn_c_try_compile "$LINENO"; then :
  12556. ac_cv_header_stdc=yes
  12557. else
  12558. ac_cv_header_stdc=no
  12559. fi
  12560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12561. if test $ac_cv_header_stdc = yes; then
  12562. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12564. /* end confdefs.h. */
  12565. #include <string.h>
  12566. _ACEOF
  12567. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12568. $EGREP "memchr" >/dev/null 2>&1; then :
  12569. else
  12570. ac_cv_header_stdc=no
  12571. fi
  12572. rm -f conftest*
  12573. fi
  12574. if test $ac_cv_header_stdc = yes; then
  12575. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12577. /* end confdefs.h. */
  12578. #include <stdlib.h>
  12579. _ACEOF
  12580. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12581. $EGREP "free" >/dev/null 2>&1; then :
  12582. else
  12583. ac_cv_header_stdc=no
  12584. fi
  12585. rm -f conftest*
  12586. fi
  12587. if test $ac_cv_header_stdc = yes; then
  12588. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12589. if test "$cross_compiling" = yes; then :
  12590. :
  12591. else
  12592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12593. /* end confdefs.h. */
  12594. #include <ctype.h>
  12595. #include <stdlib.h>
  12596. #if ((' ' & 0x0FF) == 0x020)
  12597. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12598. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12599. #else
  12600. # define ISLOWER(c) \
  12601. (('a' <= (c) && (c) <= 'i') \
  12602. || ('j' <= (c) && (c) <= 'r') \
  12603. || ('s' <= (c) && (c) <= 'z'))
  12604. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12605. #endif
  12606. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12607. int
  12608. main ()
  12609. {
  12610. int i;
  12611. for (i = 0; i < 256; i++)
  12612. if (XOR (islower (i), ISLOWER (i))
  12613. || toupper (i) != TOUPPER (i))
  12614. return 2;
  12615. return 0;
  12616. }
  12617. _ACEOF
  12618. if ac_fn_c_try_run "$LINENO"; then :
  12619. else
  12620. ac_cv_header_stdc=no
  12621. fi
  12622. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12623. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12624. fi
  12625. fi
  12626. fi
  12627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12628. $as_echo "$ac_cv_header_stdc" >&6; }
  12629. if test $ac_cv_header_stdc = yes; then
  12630. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12631. fi
  12632. 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
  12633. do :
  12634. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12635. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12636. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12637. cat >>confdefs.h <<_ACEOF
  12638. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12639. _ACEOF
  12640. fi
  12641. done
  12642. # Check whether --enable-largefile was given.
  12643. if test "${enable_largefile+set}" = set; then :
  12644. enableval=$enable_largefile;
  12645. fi
  12646. if test "$enable_largefile" != no; then
  12647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  12648. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  12649. if ${ac_cv_sys_largefile_CC+:} false; then :
  12650. $as_echo_n "(cached) " >&6
  12651. else
  12652. ac_cv_sys_largefile_CC=no
  12653. if test "$GCC" != yes; then
  12654. ac_save_CC=$CC
  12655. while :; do
  12656. # IRIX 6.2 and later do not support large files by default,
  12657. # so use the C compiler's -n32 option if that helps.
  12658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12659. /* end confdefs.h. */
  12660. #include <sys/types.h>
  12661. /* Check that off_t can represent 2**63 - 1 correctly.
  12662. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12663. since some C++ compilers masquerading as C compilers
  12664. incorrectly reject 9223372036854775807. */
  12665. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12666. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12667. && LARGE_OFF_T % 2147483647 == 1)
  12668. ? 1 : -1];
  12669. int
  12670. main ()
  12671. {
  12672. ;
  12673. return 0;
  12674. }
  12675. _ACEOF
  12676. if ac_fn_c_try_compile "$LINENO"; then :
  12677. break
  12678. fi
  12679. rm -f core conftest.err conftest.$ac_objext
  12680. CC="$CC -n32"
  12681. if ac_fn_c_try_compile "$LINENO"; then :
  12682. ac_cv_sys_largefile_CC=' -n32'; break
  12683. fi
  12684. rm -f core conftest.err conftest.$ac_objext
  12685. break
  12686. done
  12687. CC=$ac_save_CC
  12688. rm -f conftest.$ac_ext
  12689. fi
  12690. fi
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12692. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12693. if test "$ac_cv_sys_largefile_CC" != no; then
  12694. CC=$CC$ac_cv_sys_largefile_CC
  12695. fi
  12696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12697. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12698. if ${ac_cv_sys_file_offset_bits+:} false; then :
  12699. $as_echo_n "(cached) " >&6
  12700. else
  12701. while :; do
  12702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12703. /* end confdefs.h. */
  12704. #include <sys/types.h>
  12705. /* Check that off_t can represent 2**63 - 1 correctly.
  12706. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12707. since some C++ compilers masquerading as C compilers
  12708. incorrectly reject 9223372036854775807. */
  12709. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12710. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12711. && LARGE_OFF_T % 2147483647 == 1)
  12712. ? 1 : -1];
  12713. int
  12714. main ()
  12715. {
  12716. ;
  12717. return 0;
  12718. }
  12719. _ACEOF
  12720. if ac_fn_c_try_compile "$LINENO"; then :
  12721. ac_cv_sys_file_offset_bits=no; break
  12722. fi
  12723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12725. /* end confdefs.h. */
  12726. #define _FILE_OFFSET_BITS 64
  12727. #include <sys/types.h>
  12728. /* Check that off_t can represent 2**63 - 1 correctly.
  12729. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12730. since some C++ compilers masquerading as C compilers
  12731. incorrectly reject 9223372036854775807. */
  12732. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12733. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12734. && LARGE_OFF_T % 2147483647 == 1)
  12735. ? 1 : -1];
  12736. int
  12737. main ()
  12738. {
  12739. ;
  12740. return 0;
  12741. }
  12742. _ACEOF
  12743. if ac_fn_c_try_compile "$LINENO"; then :
  12744. ac_cv_sys_file_offset_bits=64; break
  12745. fi
  12746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12747. ac_cv_sys_file_offset_bits=unknown
  12748. break
  12749. done
  12750. fi
  12751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  12752. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  12753. case $ac_cv_sys_file_offset_bits in #(
  12754. no | unknown) ;;
  12755. *)
  12756. cat >>confdefs.h <<_ACEOF
  12757. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  12758. _ACEOF
  12759. ;;
  12760. esac
  12761. rm -rf conftest*
  12762. if test $ac_cv_sys_file_offset_bits = unknown; then
  12763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  12764. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  12765. if ${ac_cv_sys_large_files+:} false; then :
  12766. $as_echo_n "(cached) " >&6
  12767. else
  12768. while :; do
  12769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12770. /* end confdefs.h. */
  12771. #include <sys/types.h>
  12772. /* Check that off_t can represent 2**63 - 1 correctly.
  12773. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12774. since some C++ compilers masquerading as C compilers
  12775. incorrectly reject 9223372036854775807. */
  12776. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12777. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12778. && LARGE_OFF_T % 2147483647 == 1)
  12779. ? 1 : -1];
  12780. int
  12781. main ()
  12782. {
  12783. ;
  12784. return 0;
  12785. }
  12786. _ACEOF
  12787. if ac_fn_c_try_compile "$LINENO"; then :
  12788. ac_cv_sys_large_files=no; break
  12789. fi
  12790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12792. /* end confdefs.h. */
  12793. #define _LARGE_FILES 1
  12794. #include <sys/types.h>
  12795. /* Check that off_t can represent 2**63 - 1 correctly.
  12796. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12797. since some C++ compilers masquerading as C compilers
  12798. incorrectly reject 9223372036854775807. */
  12799. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12800. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12801. && LARGE_OFF_T % 2147483647 == 1)
  12802. ? 1 : -1];
  12803. int
  12804. main ()
  12805. {
  12806. ;
  12807. return 0;
  12808. }
  12809. _ACEOF
  12810. if ac_fn_c_try_compile "$LINENO"; then :
  12811. ac_cv_sys_large_files=1; break
  12812. fi
  12813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12814. ac_cv_sys_large_files=unknown
  12815. break
  12816. done
  12817. fi
  12818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  12819. $as_echo "$ac_cv_sys_large_files" >&6; }
  12820. case $ac_cv_sys_large_files in #(
  12821. no | unknown) ;;
  12822. *)
  12823. cat >>confdefs.h <<_ACEOF
  12824. #define _LARGE_FILES $ac_cv_sys_large_files
  12825. _ACEOF
  12826. ;;
  12827. esac
  12828. rm -rf conftest*
  12829. fi
  12830. fi
  12831. if test "x$ac_cv_sys_file_offset_bits" = x || echo "$ac_cv_sys_file_offset_bits" | $GREP '[^0-9]' > /dev/null; then
  12832. LFS_LOBJ=
  12833. largefile_sensitive=no
  12834. else
  12835. # Add dual-mode wrapper code.
  12836. LFS_LOBJ=lfs_wrap.lo
  12837. largefile_sensitive=yes
  12838. fi
  12839. # Using the lower level macros instead of AC_TYPE_* for compatibility with not freshest autoconf.
  12840. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  12841. if test "x$ac_cv_type_size_t" = xyes; then :
  12842. else
  12843. cat >>confdefs.h <<_ACEOF
  12844. #define size_t unsigned long
  12845. _ACEOF
  12846. fi
  12847. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  12848. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  12849. else
  12850. cat >>confdefs.h <<_ACEOF
  12851. #define uintptr_t unsigned long
  12852. _ACEOF
  12853. fi
  12854. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  12855. if test "x$ac_cv_type_ssize_t" = xyes; then :
  12856. else
  12857. cat >>confdefs.h <<_ACEOF
  12858. #define ssize_t long
  12859. _ACEOF
  12860. fi
  12861. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  12862. if test "x$ac_cv_type_off_t" = xyes; then :
  12863. else
  12864. cat >>confdefs.h <<_ACEOF
  12865. #define off_t long int
  12866. _ACEOF
  12867. fi
  12868. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  12869. if test "x$ac_cv_type_int32_t" = xyes; then :
  12870. else
  12871. cat >>confdefs.h <<_ACEOF
  12872. #define int32_t int
  12873. _ACEOF
  12874. fi
  12875. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  12876. if test "x$ac_cv_type_uint32_t" = xyes; then :
  12877. else
  12878. cat >>confdefs.h <<_ACEOF
  12879. #define uint32_t unsigned int
  12880. _ACEOF
  12881. fi
  12882. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  12883. if test "x$ac_cv_type_int16_t" = xyes; then :
  12884. else
  12885. cat >>confdefs.h <<_ACEOF
  12886. #define int16_t short
  12887. _ACEOF
  12888. fi
  12889. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  12890. if test "x$ac_cv_type_uint16_t" = xyes; then :
  12891. else
  12892. cat >>confdefs.h <<_ACEOF
  12893. #define uint16_t unsigned short
  12894. _ACEOF
  12895. fi
  12896. # The cast to long int works around a bug in the HP C Compiler
  12897. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12898. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12899. # This bug is HP SR number 8606223364.
  12900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  12901. $as_echo_n "checking size of size_t... " >&6; }
  12902. if ${ac_cv_sizeof_size_t+:} false; then :
  12903. $as_echo_n "(cached) " >&6
  12904. else
  12905. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  12906. else
  12907. if test "$ac_cv_type_size_t" = yes; then
  12908. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12909. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12910. as_fn_error 77 "cannot compute sizeof (size_t)
  12911. See \`config.log' for more details" "$LINENO" 5; }
  12912. else
  12913. ac_cv_sizeof_size_t=0
  12914. fi
  12915. fi
  12916. fi
  12917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  12918. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  12919. cat >>confdefs.h <<_ACEOF
  12920. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  12921. _ACEOF
  12922. # The cast to long int works around a bug in the HP C Compiler
  12923. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12924. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12925. # This bug is HP SR number 8606223364.
  12926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
  12927. $as_echo_n "checking size of ssize_t... " >&6; }
  12928. if ${ac_cv_sizeof_ssize_t+:} false; then :
  12929. $as_echo_n "(cached) " >&6
  12930. else
  12931. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
  12932. else
  12933. if test "$ac_cv_type_ssize_t" = yes; then
  12934. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12935. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12936. as_fn_error 77 "cannot compute sizeof (ssize_t)
  12937. See \`config.log' for more details" "$LINENO" 5; }
  12938. else
  12939. ac_cv_sizeof_ssize_t=0
  12940. fi
  12941. fi
  12942. fi
  12943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
  12944. $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
  12945. cat >>confdefs.h <<_ACEOF
  12946. #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
  12947. _ACEOF
  12948. # The cast to long int works around a bug in the HP C Compiler
  12949. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12950. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12951. # This bug is HP SR number 8606223364.
  12952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  12953. $as_echo_n "checking size of off_t... " >&6; }
  12954. if ${ac_cv_sizeof_off_t+:} false; then :
  12955. $as_echo_n "(cached) " >&6
  12956. else
  12957. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  12958. else
  12959. if test "$ac_cv_type_off_t" = yes; then
  12960. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12961. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12962. as_fn_error 77 "cannot compute sizeof (off_t)
  12963. See \`config.log' for more details" "$LINENO" 5; }
  12964. else
  12965. ac_cv_sizeof_off_t=0
  12966. fi
  12967. fi
  12968. fi
  12969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  12970. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  12971. cat >>confdefs.h <<_ACEOF
  12972. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  12973. _ACEOF
  12974. # The cast to long int works around a bug in the HP C Compiler
  12975. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12976. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12977. # This bug is HP SR number 8606223364.
  12978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
  12979. $as_echo_n "checking size of int32_t... " >&6; }
  12980. if ${ac_cv_sizeof_int32_t+:} false; then :
  12981. $as_echo_n "(cached) " >&6
  12982. else
  12983. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
  12984. else
  12985. if test "$ac_cv_type_int32_t" = yes; then
  12986. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12987. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12988. as_fn_error 77 "cannot compute sizeof (int32_t)
  12989. See \`config.log' for more details" "$LINENO" 5; }
  12990. else
  12991. ac_cv_sizeof_int32_t=0
  12992. fi
  12993. fi
  12994. fi
  12995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
  12996. $as_echo "$ac_cv_sizeof_int32_t" >&6; }
  12997. cat >>confdefs.h <<_ACEOF
  12998. #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
  12999. _ACEOF
  13000. # The cast to long int works around a bug in the HP C Compiler
  13001. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13002. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13003. # This bug is HP SR number 8606223364.
  13004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13005. $as_echo_n "checking size of long... " >&6; }
  13006. if ${ac_cv_sizeof_long+:} false; then :
  13007. $as_echo_n "(cached) " >&6
  13008. else
  13009. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13010. else
  13011. if test "$ac_cv_type_long" = yes; then
  13012. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13013. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13014. as_fn_error 77 "cannot compute sizeof (long)
  13015. See \`config.log' for more details" "$LINENO" 5; }
  13016. else
  13017. ac_cv_sizeof_long=0
  13018. fi
  13019. fi
  13020. fi
  13021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13022. $as_echo "$ac_cv_sizeof_long" >&6; }
  13023. cat >>confdefs.h <<_ACEOF
  13024. #define SIZEOF_LONG $ac_cv_sizeof_long
  13025. _ACEOF
  13026. if test "x$largefile_sensitive" = xyes; then
  13027. lfs_alias_type=long
  13028. lfs_alias_size=$ac_cv_sizeof_long
  13029. else
  13030. lfs_alias_type=off_t
  13031. lfs_alias_size=$ac_cv_sizeof_off_t
  13032. fi
  13033. if test "x$lfs_alias_size" = "x"; then
  13034. as_fn_error $? "Cannot determine sizeof(lfs_alias_t)?" "$LINENO" 5
  13035. else
  13036. LFS_ALIAS_BITS=`expr "$lfs_alias_size" "*" "8"`
  13037. cat >>confdefs.h <<_ACEOF
  13038. #define lfs_alias_t $lfs_alias_type
  13039. _ACEOF
  13040. cat >>confdefs.h <<_ACEOF
  13041. #define LFS_ALIAS_BITS $LFS_ALIAS_BITS
  13042. _ACEOF
  13043. fi
  13044. lfs_alias=enabled
  13045. # Check whether --enable-lfs-alias was given.
  13046. if test "${enable_lfs_alias+set}" = set; then :
  13047. enableval=$enable_lfs_alias;
  13048. if test "x$enableval" = xno; then
  13049. lfs_alias="disabled"
  13050. fi
  13051. else
  13052. case $host in
  13053. *-cygwin*)
  13054. lfs_alias="disabled"
  13055. { $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
  13056. $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;}
  13057. ;;
  13058. esac
  13059. fi
  13060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable alias wrappers for largefile" >&5
  13061. $as_echo_n "checking if we want to enable alias wrappers for largefile... " >&6; }
  13062. if test "x$lfs_alias" = "xenabled"; then
  13063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13064. $as_echo "yes" >&6; }
  13065. LFS_LOBJ="$LFS_LOBJ lfs_alias.lo"
  13066. else
  13067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13068. $as_echo "no" >&6; }
  13069. fi
  13070. for ac_header in $ac_header_list
  13071. do :
  13072. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13073. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  13074. "
  13075. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13076. cat >>confdefs.h <<_ACEOF
  13077. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13078. _ACEOF
  13079. fi
  13080. done
  13081. for ac_func in getpagesize
  13082. do :
  13083. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  13084. if test "x$ac_cv_func_getpagesize" = xyes; then :
  13085. cat >>confdefs.h <<_ACEOF
  13086. #define HAVE_GETPAGESIZE 1
  13087. _ACEOF
  13088. fi
  13089. done
  13090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  13091. $as_echo_n "checking for working mmap... " >&6; }
  13092. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  13093. $as_echo_n "(cached) " >&6
  13094. else
  13095. if test "$cross_compiling" = yes; then :
  13096. ac_cv_func_mmap_fixed_mapped=no
  13097. else
  13098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13099. /* end confdefs.h. */
  13100. $ac_includes_default
  13101. /* malloc might have been renamed as rpl_malloc. */
  13102. #undef malloc
  13103. /* Thanks to Mike Haertel and Jim Avera for this test.
  13104. Here is a matrix of mmap possibilities:
  13105. mmap private not fixed
  13106. mmap private fixed at somewhere currently unmapped
  13107. mmap private fixed at somewhere already mapped
  13108. mmap shared not fixed
  13109. mmap shared fixed at somewhere currently unmapped
  13110. mmap shared fixed at somewhere already mapped
  13111. For private mappings, we should verify that changes cannot be read()
  13112. back from the file, nor mmap's back from the file at a different
  13113. address. (There have been systems where private was not correctly
  13114. implemented like the infamous i386 svr4.0, and systems where the
  13115. VM page cache was not coherent with the file system buffer cache
  13116. like early versions of FreeBSD and possibly contemporary NetBSD.)
  13117. For shared mappings, we should conversely verify that changes get
  13118. propagated back to all the places they're supposed to be.
  13119. Grep wants private fixed already mapped.
  13120. The main things grep needs to know about mmap are:
  13121. * does it exist and is it safe to write into the mmap'd area
  13122. * how to use it (BSD variants) */
  13123. #include <fcntl.h>
  13124. #include <sys/mman.h>
  13125. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  13126. char *malloc ();
  13127. #endif
  13128. /* This mess was copied from the GNU getpagesize.h. */
  13129. #ifndef HAVE_GETPAGESIZE
  13130. # ifdef _SC_PAGESIZE
  13131. # define getpagesize() sysconf(_SC_PAGESIZE)
  13132. # else /* no _SC_PAGESIZE */
  13133. # ifdef HAVE_SYS_PARAM_H
  13134. # include <sys/param.h>
  13135. # ifdef EXEC_PAGESIZE
  13136. # define getpagesize() EXEC_PAGESIZE
  13137. # else /* no EXEC_PAGESIZE */
  13138. # ifdef NBPG
  13139. # define getpagesize() NBPG * CLSIZE
  13140. # ifndef CLSIZE
  13141. # define CLSIZE 1
  13142. # endif /* no CLSIZE */
  13143. # else /* no NBPG */
  13144. # ifdef NBPC
  13145. # define getpagesize() NBPC
  13146. # else /* no NBPC */
  13147. # ifdef PAGESIZE
  13148. # define getpagesize() PAGESIZE
  13149. # endif /* PAGESIZE */
  13150. # endif /* no NBPC */
  13151. # endif /* no NBPG */
  13152. # endif /* no EXEC_PAGESIZE */
  13153. # else /* no HAVE_SYS_PARAM_H */
  13154. # define getpagesize() 8192 /* punt totally */
  13155. # endif /* no HAVE_SYS_PARAM_H */
  13156. # endif /* no _SC_PAGESIZE */
  13157. #endif /* no HAVE_GETPAGESIZE */
  13158. int
  13159. main ()
  13160. {
  13161. char *data, *data2, *data3;
  13162. const char *cdata2;
  13163. int i, pagesize;
  13164. int fd, fd2;
  13165. pagesize = getpagesize ();
  13166. /* First, make a file with some known garbage in it. */
  13167. data = (char *) malloc (pagesize);
  13168. if (!data)
  13169. return 1;
  13170. for (i = 0; i < pagesize; ++i)
  13171. *(data + i) = rand ();
  13172. umask (0);
  13173. fd = creat ("conftest.mmap", 0600);
  13174. if (fd < 0)
  13175. return 2;
  13176. if (write (fd, data, pagesize) != pagesize)
  13177. return 3;
  13178. close (fd);
  13179. /* Next, check that the tail of a page is zero-filled. File must have
  13180. non-zero length, otherwise we risk SIGBUS for entire page. */
  13181. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  13182. if (fd2 < 0)
  13183. return 4;
  13184. cdata2 = "";
  13185. if (write (fd2, cdata2, 1) != 1)
  13186. return 5;
  13187. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  13188. if (data2 == MAP_FAILED)
  13189. return 6;
  13190. for (i = 0; i < pagesize; ++i)
  13191. if (*(data2 + i))
  13192. return 7;
  13193. close (fd2);
  13194. if (munmap (data2, pagesize))
  13195. return 8;
  13196. /* Next, try to mmap the file at a fixed address which already has
  13197. something else allocated at it. If we can, also make sure that
  13198. we see the same garbage. */
  13199. fd = open ("conftest.mmap", O_RDWR);
  13200. if (fd < 0)
  13201. return 9;
  13202. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  13203. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  13204. return 10;
  13205. for (i = 0; i < pagesize; ++i)
  13206. if (*(data + i) != *(data2 + i))
  13207. return 11;
  13208. /* Finally, make sure that changes to the mapped area do not
  13209. percolate back to the file as seen by read(). (This is a bug on
  13210. some variants of i386 svr4.0.) */
  13211. for (i = 0; i < pagesize; ++i)
  13212. *(data2 + i) = *(data2 + i) + 1;
  13213. data3 = (char *) malloc (pagesize);
  13214. if (!data3)
  13215. return 12;
  13216. if (read (fd, data3, pagesize) != pagesize)
  13217. return 13;
  13218. for (i = 0; i < pagesize; ++i)
  13219. if (*(data + i) != *(data3 + i))
  13220. return 14;
  13221. close (fd);
  13222. return 0;
  13223. }
  13224. _ACEOF
  13225. if ac_fn_c_try_run "$LINENO"; then :
  13226. ac_cv_func_mmap_fixed_mapped=yes
  13227. else
  13228. ac_cv_func_mmap_fixed_mapped=no
  13229. fi
  13230. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13231. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13232. fi
  13233. fi
  13234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  13235. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  13236. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  13237. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  13238. fi
  13239. rm -f conftest.mmap conftest.txt
  13240. # Check if system supports termios
  13241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
  13242. $as_echo_n "checking POSIX termios... " >&6; }
  13243. if ${ac_cv_sys_posix_termios+:} false; then :
  13244. $as_echo_n "(cached) " >&6
  13245. else
  13246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13247. /* end confdefs.h. */
  13248. #include <sys/types.h>
  13249. #include <unistd.h>
  13250. #include <termios.h>
  13251. int
  13252. main ()
  13253. {
  13254. /* SunOS 4.0.3 has termios.h but not the library calls. */
  13255. tcgetattr(0, 0);
  13256. ;
  13257. return 0;
  13258. }
  13259. _ACEOF
  13260. if ac_fn_c_try_link "$LINENO"; then :
  13261. ac_cv_sys_posix_termios=yes
  13262. else
  13263. ac_cv_sys_posix_termios=no
  13264. fi
  13265. rm -f core conftest.err conftest.$ac_objext \
  13266. conftest$ac_exeext conftest.$ac_ext
  13267. fi
  13268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
  13269. $as_echo "$ac_cv_sys_posix_termios" >&6; }
  13270. if test "x$ac_cv_sys_posix_termios" = "xyes"; then
  13271. cat >>confdefs.h <<_ACEOF
  13272. #define HAVE_TERMIOS 1
  13273. _ACEOF
  13274. fi
  13275. for ac_func in random
  13276. do :
  13277. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13278. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13279. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13280. cat >>confdefs.h <<_ACEOF
  13281. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13282. _ACEOF
  13283. fi
  13284. done
  13285. # Check for sched_setscheduler
  13286. for ac_func in sched_setscheduler setuid getuid
  13287. do :
  13288. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13289. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13290. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13291. cat >>confdefs.h <<_ACEOF
  13292. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13293. _ACEOF
  13294. fi
  13295. done
  13296. # Check for setpriority
  13297. for ac_func in setpriority
  13298. do :
  13299. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13300. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13301. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13302. cat >>confdefs.h <<_ACEOF
  13303. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13304. _ACEOF
  13305. fi
  13306. done
  13307. for ac_func in strerror
  13308. do :
  13309. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13310. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13311. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13312. cat >>confdefs.h <<_ACEOF
  13313. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13314. _ACEOF
  13315. fi
  13316. done
  13317. for ac_func in setlocale nl_langinfo
  13318. do :
  13319. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13320. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13321. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13322. cat >>confdefs.h <<_ACEOF
  13323. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13324. _ACEOF
  13325. fi
  13326. done
  13327. for ac_func in strdup
  13328. do :
  13329. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13330. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13331. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13332. cat >>confdefs.h <<_ACEOF
  13333. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13334. _ACEOF
  13335. fi
  13336. done
  13337. for ac_func in atoll
  13338. do :
  13339. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13340. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13341. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13342. cat >>confdefs.h <<_ACEOF
  13343. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13344. _ACEOF
  13345. fi
  13346. done
  13347. for ac_func in mkfifo
  13348. do :
  13349. ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
  13350. if test "x$ac_cv_func_mkfifo" = xyes; then :
  13351. cat >>confdefs.h <<_ACEOF
  13352. #define HAVE_MKFIFO 1
  13353. _ACEOF
  13354. have_mkfifo=yes
  13355. else
  13356. have_mkfifo=no
  13357. fi
  13358. done
  13359. # locale headers
  13360. for ac_header in locale.h langinfo.h
  13361. do :
  13362. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13363. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13364. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13365. cat >>confdefs.h <<_ACEOF
  13366. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13367. _ACEOF
  13368. fi
  13369. done
  13370. # Headers for network (http) stuff
  13371. network_type=Unknown
  13372. for ac_header in netdb.h sys/param.h sys/socket.h netinet/in.h arpa/inet.h
  13373. do :
  13374. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13375. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13376. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13377. cat >>confdefs.h <<_ACEOF
  13378. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13379. _ACEOF
  13380. fi
  13381. done
  13382. if test "x$ac_cv_header_netdb_h" = "xyes" &&
  13383. test "x$ac_cv_header_sys_param_h" = "xyes" &&
  13384. test "x$ac_cv_header_sys_socket_h" = "xyes" &&
  13385. test "x$ac_cv_header_netinet_in_h" = "xyes" &&
  13386. test "x$ac_cv_header_arpa_inet_h" = "xyes"; then
  13387. have_network=yes
  13388. network_type=Posix
  13389. else
  13390. have_network=no
  13391. fi
  13392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  13393. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  13394. if ${ac_cv_search_gethostbyname+:} false; then :
  13395. $as_echo_n "(cached) " >&6
  13396. else
  13397. ac_func_search_save_LIBS=$LIBS
  13398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13399. /* end confdefs.h. */
  13400. /* Override any GCC internal prototype to avoid an error.
  13401. Use char because int might match the return type of a GCC
  13402. builtin and then its argument prototype would still apply. */
  13403. #ifdef __cplusplus
  13404. extern "C"
  13405. #endif
  13406. char gethostbyname ();
  13407. int
  13408. main ()
  13409. {
  13410. return gethostbyname ();
  13411. ;
  13412. return 0;
  13413. }
  13414. _ACEOF
  13415. for ac_lib in '' nsl socket; do
  13416. if test -z "$ac_lib"; then
  13417. ac_res="none required"
  13418. else
  13419. ac_res=-l$ac_lib
  13420. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13421. fi
  13422. if ac_fn_c_try_link "$LINENO"; then :
  13423. ac_cv_search_gethostbyname=$ac_res
  13424. fi
  13425. rm -f core conftest.err conftest.$ac_objext \
  13426. conftest$ac_exeext
  13427. if ${ac_cv_search_gethostbyname+:} false; then :
  13428. break
  13429. fi
  13430. done
  13431. if ${ac_cv_search_gethostbyname+:} false; then :
  13432. else
  13433. ac_cv_search_gethostbyname=no
  13434. fi
  13435. rm conftest.$ac_ext
  13436. LIBS=$ac_func_search_save_LIBS
  13437. fi
  13438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  13439. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  13440. ac_res=$ac_cv_search_gethostbyname
  13441. if test "$ac_res" != no; then :
  13442. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13443. fi
  13444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  13445. $as_echo_n "checking for library containing socket... " >&6; }
  13446. if ${ac_cv_search_socket+:} false; then :
  13447. $as_echo_n "(cached) " >&6
  13448. else
  13449. ac_func_search_save_LIBS=$LIBS
  13450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13451. /* end confdefs.h. */
  13452. /* Override any GCC internal prototype to avoid an error.
  13453. Use char because int might match the return type of a GCC
  13454. builtin and then its argument prototype would still apply. */
  13455. #ifdef __cplusplus
  13456. extern "C"
  13457. #endif
  13458. char socket ();
  13459. int
  13460. main ()
  13461. {
  13462. return socket ();
  13463. ;
  13464. return 0;
  13465. }
  13466. _ACEOF
  13467. for ac_lib in '' socket; do
  13468. if test -z "$ac_lib"; then
  13469. ac_res="none required"
  13470. else
  13471. ac_res=-l$ac_lib
  13472. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13473. fi
  13474. if ac_fn_c_try_link "$LINENO"; then :
  13475. ac_cv_search_socket=$ac_res
  13476. fi
  13477. rm -f core conftest.err conftest.$ac_objext \
  13478. conftest$ac_exeext
  13479. if ${ac_cv_search_socket+:} false; then :
  13480. break
  13481. fi
  13482. done
  13483. if ${ac_cv_search_socket+:} false; then :
  13484. else
  13485. ac_cv_search_socket=no
  13486. fi
  13487. rm conftest.$ac_ext
  13488. LIBS=$ac_func_search_save_LIBS
  13489. fi
  13490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  13491. $as_echo "$ac_cv_search_socket" >&6; }
  13492. ac_res=$ac_cv_search_socket
  13493. if test "$ac_res" != no; then :
  13494. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13495. fi
  13496. for ac_func in getaddrinfo
  13497. do :
  13498. ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13499. if test "x$ac_cv_func_getaddrinfo" = xyes; then :
  13500. cat >>confdefs.h <<_ACEOF
  13501. #define HAVE_GETADDRINFO 1
  13502. _ACEOF
  13503. have_ipv6=yes
  13504. else
  13505. have_ipv6=no
  13506. fi
  13507. done
  13508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
  13509. $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
  13510. if ${apr_cv_gai_addrconfig+:} false; then :
  13511. $as_echo_n "(cached) " >&6
  13512. else
  13513. if test "$cross_compiling" = yes; then :
  13514. apr_cv_gai_addrconfig=no
  13515. else
  13516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13517. /* end confdefs.h. */
  13518. #ifdef HAVE_NETDB_H
  13519. #include <netdb.h>
  13520. #endif
  13521. #ifdef HAVE_STRING_H
  13522. #include <string.h>
  13523. #endif
  13524. #ifdef HAVE_SYS_TYPES_H
  13525. #include <sys/types.h>
  13526. #endif
  13527. #ifdef HAVE_SYS_SOCKET_H
  13528. #include <sys/socket.h>
  13529. #endif
  13530. int main(int argc, char **argv) {
  13531. struct addrinfo hints, *ai;
  13532. memset(&hints, 0, sizeof(hints));
  13533. hints.ai_family = AF_UNSPEC;
  13534. hints.ai_socktype = SOCK_STREAM;
  13535. hints.ai_flags = AI_ADDRCONFIG;
  13536. return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
  13537. }
  13538. _ACEOF
  13539. if ac_fn_c_try_run "$LINENO"; then :
  13540. apr_cv_gai_addrconfig=yes
  13541. else
  13542. apr_cv_gai_addrconfig=no
  13543. fi
  13544. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13545. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13546. fi
  13547. fi
  13548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
  13549. $as_echo "$apr_cv_gai_addrconfig" >&6; }
  13550. if test $apr_cv_gai_addrconfig = yes; then
  13551. $as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
  13552. fi
  13553. # Substitutions for the installable mpg123.h header
  13554. if test "x$ac_cv_header_stdio_h" = "xyes"; then
  13555. INCLUDE_STDIO_H="#include <stdio.h>"
  13556. else
  13557. INCLUDE_STDIO_H="/* #include <stdio.h> is not available on this system */"
  13558. fi
  13559. if test "x$ac_cv_header_stdlib_h" = "xyes"; then
  13560. INCLUDE_STDLIB_H="#include <stdlib.h>"
  13561. else
  13562. INCLUDE_STDLIB_H="/* #include <stdlib.h> is not available on this system */"
  13563. fi
  13564. if test "x$ac_cv_header_sys_types_h" = "xyes"; then
  13565. INCLUDE_SYS_TYPE_H="#include <sys/types.h>"
  13566. else
  13567. INCLUDE_SYS_TYPE_H="/* #include <sys/types.h> is not available on this system */"
  13568. fi
  13569. # Checks for maths libraries.
  13570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  13571. $as_echo_n "checking for sqrt in -lm... " >&6; }
  13572. if ${ac_cv_lib_m_sqrt+:} false; then :
  13573. $as_echo_n "(cached) " >&6
  13574. else
  13575. ac_check_lib_save_LIBS=$LIBS
  13576. LIBS="-lm $LIBS"
  13577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13578. /* end confdefs.h. */
  13579. /* Override any GCC internal prototype to avoid an error.
  13580. Use char because int might match the return type of a GCC
  13581. builtin and then its argument prototype would still apply. */
  13582. #ifdef __cplusplus
  13583. extern "C"
  13584. #endif
  13585. char sqrt ();
  13586. int
  13587. main ()
  13588. {
  13589. return sqrt ();
  13590. ;
  13591. return 0;
  13592. }
  13593. _ACEOF
  13594. if ac_fn_c_try_link "$LINENO"; then :
  13595. ac_cv_lib_m_sqrt=yes
  13596. else
  13597. ac_cv_lib_m_sqrt=no
  13598. fi
  13599. rm -f core conftest.err conftest.$ac_objext \
  13600. conftest$ac_exeext conftest.$ac_ext
  13601. LIBS=$ac_check_lib_save_LIBS
  13602. fi
  13603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  13604. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  13605. if test "x$ac_cv_lib_m_sqrt" = xyes; then :
  13606. cat >>confdefs.h <<_ACEOF
  13607. #define HAVE_LIBM 1
  13608. _ACEOF
  13609. LIBS="-lm $LIBS"
  13610. fi
  13611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf in -lmx" >&5
  13612. $as_echo_n "checking for powf in -lmx... " >&6; }
  13613. if ${ac_cv_lib_mx_powf+:} false; then :
  13614. $as_echo_n "(cached) " >&6
  13615. else
  13616. ac_check_lib_save_LIBS=$LIBS
  13617. LIBS="-lmx $LIBS"
  13618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13619. /* end confdefs.h. */
  13620. /* Override any GCC internal prototype to avoid an error.
  13621. Use char because int might match the return type of a GCC
  13622. builtin and then its argument prototype would still apply. */
  13623. #ifdef __cplusplus
  13624. extern "C"
  13625. #endif
  13626. char powf ();
  13627. int
  13628. main ()
  13629. {
  13630. return powf ();
  13631. ;
  13632. return 0;
  13633. }
  13634. _ACEOF
  13635. if ac_fn_c_try_link "$LINENO"; then :
  13636. ac_cv_lib_mx_powf=yes
  13637. else
  13638. ac_cv_lib_mx_powf=no
  13639. fi
  13640. rm -f core conftest.err conftest.$ac_objext \
  13641. conftest$ac_exeext conftest.$ac_ext
  13642. LIBS=$ac_check_lib_save_LIBS
  13643. fi
  13644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mx_powf" >&5
  13645. $as_echo "$ac_cv_lib_mx_powf" >&6; }
  13646. if test "x$ac_cv_lib_mx_powf" = xyes; then :
  13647. cat >>confdefs.h <<_ACEOF
  13648. #define HAVE_LIBMX 1
  13649. _ACEOF
  13650. LIBS="-lmx $LIBS"
  13651. fi
  13652. # attempt to make the signal stuff work... also with GENERIC - later
  13653. #if test x"$ac_cv_header_sys_signal_h" = xyes; then
  13654. # AC_CHECK_FUNCS( sigemptyset sigaddset sigprocmask sigaction )
  13655. # if test x"$ac_cv_func_sigemptyset" = xyes &&
  13656. # test x"$ac_cv_func_sigaddset" = xyes &&
  13657. # test x"$ac_cv_func_sigprocmask" = xyes &&
  13658. # test x"$ac_cv_func_sigaction" = xyes; then
  13659. # AC_DEFINE(
  13660. #fi
  13661. # do not assume gcc here, so no flags by default
  13662. ADD_CFLAGS=""
  13663. ADD_CPPFLAGS=""
  13664. ADD_LDFLAGS=""
  13665. LIBS="$LIBS"
  13666. # Consider moving that stuff.
  13667. ac_fn_c_check_header_mongrel "$LINENO" "os2.h" "ac_cv_header_os2_h" "$ac_includes_default"
  13668. if test "x$ac_cv_header_os2_h" = xyes; then :
  13669. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOS2"
  13670. fi
  13671. # On OS/2, we need to link to os2term to make terminal control actually work.
  13672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcsetattr in -los2term" >&5
  13673. $as_echo_n "checking for tcsetattr in -los2term... " >&6; }
  13674. if ${ac_cv_lib_os2term_tcsetattr+:} false; then :
  13675. $as_echo_n "(cached) " >&6
  13676. else
  13677. ac_check_lib_save_LIBS=$LIBS
  13678. LIBS="-los2term $LIBS"
  13679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13680. /* end confdefs.h. */
  13681. /* Override any GCC internal prototype to avoid an error.
  13682. Use char because int might match the return type of a GCC
  13683. builtin and then its argument prototype would still apply. */
  13684. #ifdef __cplusplus
  13685. extern "C"
  13686. #endif
  13687. char tcsetattr ();
  13688. int
  13689. main ()
  13690. {
  13691. return tcsetattr ();
  13692. ;
  13693. return 0;
  13694. }
  13695. _ACEOF
  13696. if ac_fn_c_try_link "$LINENO"; then :
  13697. ac_cv_lib_os2term_tcsetattr=yes
  13698. else
  13699. ac_cv_lib_os2term_tcsetattr=no
  13700. fi
  13701. rm -f core conftest.err conftest.$ac_objext \
  13702. conftest$ac_exeext conftest.$ac_ext
  13703. LIBS=$ac_check_lib_save_LIBS
  13704. fi
  13705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_os2term_tcsetattr" >&5
  13706. $as_echo "$ac_cv_lib_os2term_tcsetattr" >&6; }
  13707. if test "x$ac_cv_lib_os2term_tcsetattr" = xyes; then :
  13708. ADD_LDFLAGS="$ADD_LDFLAGS -los2term"
  13709. fi
  13710. # If debugging is enabled then make warnings errors
  13711. if test x"$debugging" = xenabled; then
  13712. ADD_CFLAGS="-g"
  13713. # gcc specific...
  13714. if test x"$GCC" = xyes; then
  13715. ADD_CFLAGS="$ADD_CFLAGS -Wall -fno-strict-aliasing"
  13716. if test x"$nagging" = xenabled; then
  13717. ADD_CFLAGS="$ADD_CFLAGS -Werror -pedantic -DPLAIN_C89"
  13718. fi
  13719. fi
  13720. fi
  13721. case $host in
  13722. i?86-*)
  13723. $as_echo "#define ABI_ALIGN_FUN 1" >>confdefs.h
  13724. ;;
  13725. esac
  13726. s_altivec="synth_altivec dct64_altivec"
  13727. s_i386="dct64_i386"
  13728. s_i486="$s_i386 synth_i486 dct64_i486"
  13729. s_i586="$s_i386 synth_i586"
  13730. s_i586d="$s_i386 synth_i586_dither"
  13731. s_3dnow="$s_i386 synth_3dnow dct64_3dnow equalizer_3dnow"
  13732. s_3dnowext="$s_i386 dct64_3dnowext tabinit_mmx synth_3dnowext"
  13733. s_3dnow_vintage=$s_3dnow
  13734. s_3dnowext_vintage=$s_3dnowext
  13735. if test "x$layer3" = "xenabled"; then
  13736. s_3dnow_vintage="$s_3dnow_vintage dct36_3dnow"
  13737. s_3dnowext_vintage="$s_3dnowext_vintage dct36_3dnowext"
  13738. fi
  13739. s_mmx="$s_i386 dct64_mmx tabinit_mmx synth_mmx"
  13740. s_sse_vintage="$s_i386 tabinit_mmx dct64_sse dct64_sse_float synth_sse_float synth_stereo_sse_float synth_sse_s32 synth_stereo_sse_s32 "
  13741. s_sse="$s_sse_vintage dct36_sse"
  13742. s_x86_64="dct36_x86_64 dct64_x86_64 dct64_x86_64_float synth_x86_64_float synth_x86_64_s32 synth_stereo_x86_64_float synth_stereo_x86_64_s32"
  13743. s_x86_64_mono_synths="synth_x86_64_float synth_x86_64_s32"
  13744. s_x86_64_avx="dct36_avx dct64_avx dct64_avx_float synth_stereo_avx_float synth_stereo_avx_s32"
  13745. s_x86multi="getcpuflags"
  13746. s_x86_64_multi="getcpuflags_x86_64"
  13747. s_dither="dither"
  13748. s_neon="dct64_neon dct64_neon_float synth_neon_float synth_neon_s32 synth_stereo_neon_float synth_stereo_neon_s32"
  13749. # choose optimized 16bit decoder for SSE, quality or fast
  13750. # note: supporting deactivation of output formats for these decoders would need more logic here
  13751. if test "x$integers" = "xquality"; then
  13752. s_sse="$s_sse synth_sse_accurate synth_stereo_sse_accurate"
  13753. s_sse_vintage="$s_sse_vintage synth_sse_accurate synth_stereo_sse_accurate"
  13754. s_x86_64="$s_x86_64 synth_x86_64_accurate synth_stereo_x86_64_accurate"
  13755. s_x86_64_mono_synths="$s_x86_64_mono_synths synth_x86_64_accurate"
  13756. s_x86_64_avx="$s_x86_64_avx synth_stereo_avx_accurate"
  13757. s_arm="synth_arm_accurate"
  13758. s_neon="$s_neon synth_neon_accurate synth_stereo_neon_accurate"
  13759. else
  13760. s_sse="$s_sse synth_sse" # no stereo
  13761. s_sse_vintage="$s_sse_vintage synth_sse" # no stereo
  13762. s_x86_64="$s_x86_64 synth_x86_64 synth_stereo_x86_64"
  13763. s_x86_64_mono_synths="$s_x86_64_mono_synths synth_x86_64"
  13764. s_x86_64_avx="$s_x86_64_avx synth_stereo_avx"
  13765. s_arm="synth_arm"
  13766. s_neon="$s_neon synth_neon synth_stereo_neon"
  13767. fi
  13768. case $cpu_type in
  13769. generic)
  13770. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FLOAT"
  13771. more_sources="$s_fpu"
  13772. ccalign=no
  13773. ;;
  13774. generic_dither)
  13775. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
  13776. more_sources="$s_fpu $s_dither"
  13777. ccalign=no
  13778. ;;
  13779. generic_fpu | generic_float)
  13780. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FLOAT"
  13781. more_sources="$s_fpu"
  13782. ccalign=no
  13783. ;;
  13784. generic_nofpu)
  13785. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FIXED"
  13786. more_sources=
  13787. ccalign=no
  13788. ;;
  13789. ppc_nofpu)
  13790. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_PPC -DREAL_IS_FIXED"
  13791. more_sources=
  13792. ccalign=no
  13793. ;;
  13794. arm_nofpu)
  13795. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_ARM -DREAL_IS_FIXED"
  13796. more_sources="$s_arm"
  13797. ccalign=no
  13798. ;;
  13799. altivec)
  13800. ADD_CFLAGS="$ADD_CFLAGS -maltivec"
  13801. ADD_CPPFLAGS="$ADD_CPPFLAGS -DREAL_IS_FLOAT -DOPT_ALTIVEC"
  13802. more_sources="$s_altivec $s_fpu"
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -faltivec" >&5
  13804. $as_echo_n "checking if $CC accepts -faltivec... " >&6; }
  13805. touch conftest.c
  13806. if $CC -faltivec -c -o conftest.o conftest.c >/dev/null 2>&1; then
  13807. ADD_CFLAGS="$ADD_CFLAGS -faltivec"
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13809. $as_echo "yes" >&6; }
  13810. else
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13812. $as_echo "no" >&6; }
  13813. fi
  13814. rm -f conftest.o conftest.c
  13815. ;;
  13816. neon)
  13817. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_NEON -DREAL_IS_FLOAT"
  13818. more_sources="$s_neon $s_fpu"
  13819. ;;
  13820. i386)
  13821. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FLOAT"
  13822. more_sources="$s_fpu $s_i386"
  13823. ccalign=no
  13824. ;;
  13825. i386_fpu)
  13826. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FLOAT"
  13827. more_sources="$s_fpu $s_i386"
  13828. ccalign=no
  13829. ;;
  13830. i386_nofpu)
  13831. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FIXED"
  13832. more_sources="$s_i386"
  13833. ccalign=no
  13834. ;;
  13835. i486)
  13836. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I486 -DREAL_IS_FLOAT"
  13837. more_sources="$s_fpu $s_i486"
  13838. ccalign=no
  13839. ;;
  13840. i586)
  13841. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I586 -DREAL_IS_FLOAT"
  13842. more_sources="$s_fpu $s_i586"
  13843. ;;
  13844. i586_dither)
  13845. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I586_DITHER -DREAL_IS_FLOAT"
  13846. more_sources="$s_fpu $s_i586d $s_dither"
  13847. ;;
  13848. 3dnow)
  13849. # legacy 3dnow had the 3dnow paired with i586...
  13850. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_I586 -DOPT_3DNOW -DREAL_IS_FLOAT"
  13851. more_sources="$s_fpu $s_i586 $s_3dnow $s_x86multi "
  13852. ;;
  13853. 3dnow_vintage)
  13854. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_I586 -DOPT_3DNOW_VINTAGE -DREAL_IS_FLOAT"
  13855. more_sources="$s_fpu $s_i586 $s_3dnow_vintage $s_x86multi "
  13856. ;;
  13857. 3dnow_alone)
  13858. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_3DNOW -DREAL_IS_FLOAT"
  13859. more_sources="$s_fpu $s_3dnow"
  13860. ;;
  13861. 3dnowext_alone)
  13862. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_3DNOWEXT -DREAL_IS_FLOAT"
  13863. more_sources="$s_fpu $s_3dnowext"
  13864. ;;
  13865. 3dnowext_vintage)
  13866. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_3DNOW -DOPT_3DNOWEXT_VINTAGE -DREAL_IS_FLOAT"
  13867. more_sources="$s_fpu $s_3dnowext_vintage $s_3dnow $s_x86multi"
  13868. ;;
  13869. 3dnowext)
  13870. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_3DNOW -DOPT_3DNOWEXT -DREAL_IS_FLOAT"
  13871. more_sources="$s_fpu $s_3dnowext $s_3dnow $s_x86multi"
  13872. ;;
  13873. mmx_alone|mmx)
  13874. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MMX -DREAL_IS_FLOAT"
  13875. more_sources="$s_fpu $s_mmx"
  13876. ;;
  13877. sse_alone|sse)
  13878. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_SSE -DREAL_IS_FLOAT"
  13879. more_sources="$s_fpu $s_sse"
  13880. ;;
  13881. sse_vintage)
  13882. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_SSE_VINTAGE -DREAL_IS_FLOAT"
  13883. more_sources="$s_fpu $s_sse_vintage"
  13884. ;;
  13885. avx)
  13886. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_AVX -DREAL_IS_FLOAT"
  13887. more_sources="$s_fpu $s_x86_64_avx $s_x86_64_mono_synths"
  13888. if test "x$YASM" != "xno"; then
  13889. use_yasm_for_avx="yes"
  13890. fi
  13891. ;;
  13892. x86|x86_dither)
  13893. # plain C dct36 always there, for vintage/non-vintage
  13894. # Selection of non-/vintage sources implies that
  13895. # $s_3dnow_vintage contains $s_3dnow,
  13896. # $s_sse contains $s_sse_vintage.
  13897. 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"
  13898. more_sources="$s_fpu $s_i386 $s_i586 $s_i586d $s_mmx $s_3dnow_vintage $s_3dnowext_vintage $s_sse $s_x86multi $s_dither"
  13899. ;;
  13900. x86-64_alone)
  13901. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_X86_64 -DREAL_IS_FLOAT"
  13902. more_sources="$s_fpu $s_x86_64"
  13903. ;;
  13904. x86-64|x86-64_all|x86-64_dither)
  13905. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_X86_64 -DOPT_GENERIC -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
  13906. more_sources="$s_fpu $s_x86_64 $s_dither $s_x86_64_multi"
  13907. if test "x$avx_support" = "xyes"; then
  13908. ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_AVX"
  13909. more_sources="$more_sources $s_x86_64_avx"
  13910. if test "x$YASM" != "xno"; then
  13911. use_yasm_for_avx="yes"
  13912. fi
  13913. fi
  13914. ;;
  13915. *)
  13916. as_fn_error $? "Unknown CPU type '$cpu_type'" "$LINENO" 5
  13917. ;;
  13918. esac
  13919. # Mac OS X specific linker flags
  13920. case $cpu_type in
  13921. 3dnow|3dnow_vintage|3dnow_alone|3dnowext|3dnowext_vintage|3dnowext_alone|mmx|mmx_alone|sse|sse_vintage|sse_alone|x86|x86_dither)
  13922. case $host in
  13923. i386-apple-darwin8*|*-apple-darwin10*)
  13924. ADD_LDFLAGS="$ADD_LDFLAGS -Wl,-read_only_relocs,suppress"
  13925. ;;
  13926. i386-apple-darwin9*)
  13927. ADD_CFLAGS="$ADD_CFLAGS -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
  13928. ADD_LDFLAGS="$ADD_LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -Wl,-classic_linker -Wl,-read_only_relocs,suppress"
  13929. ;;
  13930. esac
  13931. ;;
  13932. esac
  13933. # Use yasm instead of the default assembler for AVX sources
  13934. if test "x$use_yasm_for_avx" = "xyes"; then
  13935. case $host_os in
  13936. *cygwin*|*mingw*)
  13937. YASM_FORMAT="-f win64"
  13938. ;;
  13939. *darwin*)
  13940. YASM_FORMAT="-f macho"
  13941. ;;
  13942. *)
  13943. YASM_FORMAT="-f elf"
  13944. ;;
  13945. esac
  13946. $as_echo "#define USE_YASM_FOR_AVX 1" >>confdefs.h
  13947. fi
  13948. if test "x$use_yasm_for_avx" = xyes ; then
  13949. USE_YASM_FOR_AVX_TRUE=
  13950. USE_YASM_FOR_AVX_FALSE='#'
  13951. else
  13952. USE_YASM_FOR_AVX_TRUE='#'
  13953. USE_YASM_FOR_AVX_FALSE=
  13954. fi
  13955. # Check if we want feature report function.
  13956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want feature report function" >&5
  13957. $as_echo_n "checking if we want feature report function... " >&6; }
  13958. feature_report=enabled
  13959. # Check whether --enable-feature_report was given.
  13960. if test "${enable_feature_report+set}" = set; then :
  13961. enableval=$enable_feature_report;
  13962. if test "x$enableval" = xno; then
  13963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13964. $as_echo "no" >&6; }
  13965. feature_report=disabled
  13966. else
  13967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13968. $as_echo "yes" >&6; }
  13969. fi
  13970. else
  13971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13972. $as_echo "yes" >&6; }
  13973. fi
  13974. if test "x$feature_report" = xenabled; then
  13975. more_sources="$more_sources feature"
  13976. fi
  13977. # Return 0 if first arg appears in list of following arguments.
  13978. # Return 1 otherwise.
  13979. word_in_list() {
  13980. word=$1
  13981. shift
  13982. # Avoid naming conflict with the outside!
  13983. # Is local not POSIX sh?
  13984. for given_word in "$@"
  13985. do
  13986. if test "x$word" = "x$given_word"; then
  13987. return 0
  13988. fi
  13989. done
  13990. return 1
  13991. }
  13992. for i in $more_sources
  13993. do
  13994. # Make sure every file is only once in the list.
  13995. word_in_list "$i.\$(OBJEXT)" $DECODER_OBJ || DECODER_OBJ="$DECODER_OBJ $i.\$(OBJEXT)"
  13996. word_in_list "$i.lo" $DECODER_LOBJ || DECODER_LOBJ="$DECODER_LOBJ $i.lo"
  13997. done
  13998. if test x"$ccalign" = xyes; then
  13999. $as_echo "#define CCALIGN 1" >>confdefs.h
  14000. fi
  14001. # The full list of supported modules to check, first come, first serve.
  14002. check_modules="alsa tinyalsa oss coreaudio sndio sun win32 win32_wasapi os2 esd jack portaudio pulse sdl nas arts openal dummy"
  14003. # Only check qsa before all else on QNX.
  14004. # It would mask ALSA otherwise.
  14005. case $host in
  14006. *-nto-qnx*)
  14007. check_modules="qsa $check_modules"
  14008. ;;
  14009. esac
  14010. # The final list.
  14011. output_modules=
  14012. check_forced=no
  14013. check_failed=no
  14014. if test "x$with_audio" != "x"; then
  14015. check_modules="`echo $with_audio|tr , ' '` dummy"
  14016. echo "Limiting outputs to build according to your preference: $check_modules"
  14017. check_forced=yes
  14018. fi
  14019. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14020. if test -n "$ac_tool_prefix"; then
  14021. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14022. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14024. $as_echo_n "checking for $ac_word... " >&6; }
  14025. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14026. $as_echo_n "(cached) " >&6
  14027. else
  14028. case $PKG_CONFIG in
  14029. [\\/]* | ?:[\\/]*)
  14030. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14031. ;;
  14032. *)
  14033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14034. for as_dir in $PATH
  14035. do
  14036. IFS=$as_save_IFS
  14037. test -z "$as_dir" && as_dir=.
  14038. for ac_exec_ext in '' $ac_executable_extensions; do
  14039. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14040. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14042. break 2
  14043. fi
  14044. done
  14045. done
  14046. IFS=$as_save_IFS
  14047. ;;
  14048. esac
  14049. fi
  14050. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14051. if test -n "$PKG_CONFIG"; then
  14052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14053. $as_echo "$PKG_CONFIG" >&6; }
  14054. else
  14055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14056. $as_echo "no" >&6; }
  14057. fi
  14058. fi
  14059. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14060. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14061. # Extract the first word of "pkg-config", so it can be a program name with args.
  14062. set dummy pkg-config; ac_word=$2
  14063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14064. $as_echo_n "checking for $ac_word... " >&6; }
  14065. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14066. $as_echo_n "(cached) " >&6
  14067. else
  14068. case $ac_pt_PKG_CONFIG in
  14069. [\\/]* | ?:[\\/]*)
  14070. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14071. ;;
  14072. *)
  14073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14074. for as_dir in $PATH
  14075. do
  14076. IFS=$as_save_IFS
  14077. test -z "$as_dir" && as_dir=.
  14078. for ac_exec_ext in '' $ac_executable_extensions; do
  14079. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14080. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14081. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14082. break 2
  14083. fi
  14084. done
  14085. done
  14086. IFS=$as_save_IFS
  14087. ;;
  14088. esac
  14089. fi
  14090. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14091. if test -n "$ac_pt_PKG_CONFIG"; then
  14092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14093. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14094. else
  14095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14096. $as_echo "no" >&6; }
  14097. fi
  14098. if test "x$ac_pt_PKG_CONFIG" = x; then
  14099. PKG_CONFIG=""
  14100. else
  14101. case $cross_compiling:$ac_tool_warned in
  14102. yes:)
  14103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14104. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14105. ac_tool_warned=yes ;;
  14106. esac
  14107. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14108. fi
  14109. else
  14110. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14111. fi
  14112. fi
  14113. if test -n "$PKG_CONFIG"; then
  14114. _pkg_min_version=0.9.0
  14115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14116. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14117. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14119. $as_echo "yes" >&6; }
  14120. else
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14122. $as_echo "no" >&6; }
  14123. PKG_CONFIG=""
  14124. fi
  14125. fi
  14126. # Now go through the modules to check and do the chores.
  14127. for m in $check_modules
  14128. do
  14129. case "$m" in
  14130. dummy)
  14131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are too dumbing dumb for the dummy" >&5
  14132. $as_echo_n "checking if you are too dumbing dumb for the dummy... " >&6; }
  14133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14134. $as_echo "no" >&6; }
  14135. output_modules="$output_modules dummy"
  14136. HAVE_DUMMY=yes
  14137. ;;
  14138. oss)
  14139. for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h
  14140. do :
  14141. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14142. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14143. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14144. cat >>confdefs.h <<_ACEOF
  14145. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14146. _ACEOF
  14147. fi
  14148. done
  14149. if test "x${ac_cv_header_sys_soundcard_h}" = "xyes" \
  14150. -o "x${ac_cv_header_linux_soundcard_h}" = "xyes" \
  14151. -o "x${ac_cv_header_machine_soundcard_h}" = "xyes";
  14152. then
  14153. output_modules="$output_modules oss"
  14154. HAVE_OSS="yes"
  14155. else
  14156. check_failed=yes
  14157. fi
  14158. ;;
  14159. tinyalsa)
  14160. TINYALSA_LIBS="-ltinyalsa"
  14161. # Check for ALSA
  14162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcm_open in -ltinyalsa" >&5
  14163. $as_echo_n "checking for pcm_open in -ltinyalsa... " >&6; }
  14164. if ${ac_cv_lib_tinyalsa_pcm_open+:} false; then :
  14165. $as_echo_n "(cached) " >&6
  14166. else
  14167. ac_check_lib_save_LIBS=$LIBS
  14168. LIBS="-ltinyalsa $LIBS"
  14169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14170. /* end confdefs.h. */
  14171. /* Override any GCC internal prototype to avoid an error.
  14172. Use char because int might match the return type of a GCC
  14173. builtin and then its argument prototype would still apply. */
  14174. #ifdef __cplusplus
  14175. extern "C"
  14176. #endif
  14177. char pcm_open ();
  14178. int
  14179. main ()
  14180. {
  14181. return pcm_open ();
  14182. ;
  14183. return 0;
  14184. }
  14185. _ACEOF
  14186. if ac_fn_c_try_link "$LINENO"; then :
  14187. ac_cv_lib_tinyalsa_pcm_open=yes
  14188. else
  14189. ac_cv_lib_tinyalsa_pcm_open=no
  14190. fi
  14191. rm -f core conftest.err conftest.$ac_objext \
  14192. conftest$ac_exeext conftest.$ac_ext
  14193. LIBS=$ac_check_lib_save_LIBS
  14194. fi
  14195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinyalsa_pcm_open" >&5
  14196. $as_echo "$ac_cv_lib_tinyalsa_pcm_open" >&6; }
  14197. if test "x$ac_cv_lib_tinyalsa_pcm_open" = xyes; then :
  14198. ac_fn_c_check_header_mongrel "$LINENO" "tinyalsa/asoundlib.h" "ac_cv_header_tinyalsa_asoundlib_h" "$ac_includes_default"
  14199. if test "x$ac_cv_header_tinyalsa_asoundlib_h" = xyes; then :
  14200. output_modules="$output_modules tinyalsa" HAVE_TINYALSA="yes"
  14201. else
  14202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found TINYALSA library but NOT header files on your system" >&5
  14203. $as_echo "$as_me: WARNING: Found TINYALSA library but NOT header files on your system" >&2;}
  14204. fi
  14205. fi
  14206. if test "x$HAVE_TINYALSA" != xyes; then
  14207. check_failed=yes
  14208. fi
  14209. ;;
  14210. # QSA and ALSA are not distinguishable in these tests, need to block
  14211. # each other and play with test order depending on platform.
  14212. alsa)
  14213. if test "x$HAVE_QSA" = xyes; then
  14214. HAVE_ALSA=no
  14215. else
  14216. ALSA_LIBS="-lasound"
  14217. # Check for ALSA
  14218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
  14219. $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
  14220. if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
  14221. $as_echo_n "(cached) " >&6
  14222. else
  14223. ac_check_lib_save_LIBS=$LIBS
  14224. LIBS="-lasound $LIBS"
  14225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14226. /* end confdefs.h. */
  14227. /* Override any GCC internal prototype to avoid an error.
  14228. Use char because int might match the return type of a GCC
  14229. builtin and then its argument prototype would still apply. */
  14230. #ifdef __cplusplus
  14231. extern "C"
  14232. #endif
  14233. char snd_pcm_open ();
  14234. int
  14235. main ()
  14236. {
  14237. return snd_pcm_open ();
  14238. ;
  14239. return 0;
  14240. }
  14241. _ACEOF
  14242. if ac_fn_c_try_link "$LINENO"; then :
  14243. ac_cv_lib_asound_snd_pcm_open=yes
  14244. else
  14245. ac_cv_lib_asound_snd_pcm_open=no
  14246. fi
  14247. rm -f core conftest.err conftest.$ac_objext \
  14248. conftest$ac_exeext conftest.$ac_ext
  14249. LIBS=$ac_check_lib_save_LIBS
  14250. fi
  14251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
  14252. $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
  14253. if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
  14254. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  14255. if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
  14256. output_modules="$output_modules alsa" HAVE_ALSA="yes"
  14257. else
  14258. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found ALSA library but NOT header files on your system" >&5
  14259. $as_echo "$as_me: WARNING: Found ALSA library but NOT header files on your system" >&2;}
  14260. fi
  14261. fi
  14262. if test "x$HAVE_ALSA" != xyes; then
  14263. check_failed=yes
  14264. fi
  14265. fi # HAVE_QSA
  14266. ;;
  14267. qsa)
  14268. if test "x$HAVE_ALSA" = xyes; then
  14269. HAVE_QSA=no
  14270. else
  14271. QSA_LIBS="-lasound"
  14272. # Check for QSA
  14273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
  14274. $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
  14275. if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
  14276. $as_echo_n "(cached) " >&6
  14277. else
  14278. ac_check_lib_save_LIBS=$LIBS
  14279. LIBS="-lasound $LIBS"
  14280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14281. /* end confdefs.h. */
  14282. /* Override any GCC internal prototype to avoid an error.
  14283. Use char because int might match the return type of a GCC
  14284. builtin and then its argument prototype would still apply. */
  14285. #ifdef __cplusplus
  14286. extern "C"
  14287. #endif
  14288. char snd_pcm_open ();
  14289. int
  14290. main ()
  14291. {
  14292. return snd_pcm_open ();
  14293. ;
  14294. return 0;
  14295. }
  14296. _ACEOF
  14297. if ac_fn_c_try_link "$LINENO"; then :
  14298. ac_cv_lib_asound_snd_pcm_open=yes
  14299. else
  14300. ac_cv_lib_asound_snd_pcm_open=no
  14301. fi
  14302. rm -f core conftest.err conftest.$ac_objext \
  14303. conftest$ac_exeext conftest.$ac_ext
  14304. LIBS=$ac_check_lib_save_LIBS
  14305. fi
  14306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
  14307. $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
  14308. if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
  14309. ac_fn_c_check_header_mongrel "$LINENO" "sys/asoundlib.h" "ac_cv_header_sys_asoundlib_h" "$ac_includes_default"
  14310. if test "x$ac_cv_header_sys_asoundlib_h" = xyes; then :
  14311. output_modules="$output_modules qsa" HAVE_QSA="yes"
  14312. else
  14313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found QSA library but NOT header files on your system" >&5
  14314. $as_echo "$as_me: WARNING: Found QSA library but NOT header files on your system" >&2;}
  14315. fi
  14316. fi
  14317. if test "x$HAVE_QSA" != xyes; then
  14318. check_failed=yes
  14319. fi
  14320. fi # HAVE_ALSA
  14321. ;;
  14322. jack)
  14323. pkg_failed=no
  14324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  14325. $as_echo_n "checking for JACK... " >&6; }
  14326. if test -n "$JACK_CFLAGS"; then
  14327. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  14328. elif test -n "$PKG_CONFIG"; then
  14329. if test -n "$PKG_CONFIG" && \
  14330. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
  14331. ($PKG_CONFIG --exists --print-errors "jack") 2>&5
  14332. ac_status=$?
  14333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14334. test $ac_status = 0; }; then
  14335. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null`
  14336. else
  14337. pkg_failed=yes
  14338. fi
  14339. else
  14340. pkg_failed=untried
  14341. fi
  14342. if test -n "$JACK_LIBS"; then
  14343. pkg_cv_JACK_LIBS="$JACK_LIBS"
  14344. elif test -n "$PKG_CONFIG"; then
  14345. if test -n "$PKG_CONFIG" && \
  14346. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
  14347. ($PKG_CONFIG --exists --print-errors "jack") 2>&5
  14348. ac_status=$?
  14349. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14350. test $ac_status = 0; }; then
  14351. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null`
  14352. else
  14353. pkg_failed=yes
  14354. fi
  14355. else
  14356. pkg_failed=untried
  14357. fi
  14358. if test $pkg_failed = yes; then
  14359. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14360. _pkg_short_errors_supported=yes
  14361. else
  14362. _pkg_short_errors_supported=no
  14363. fi
  14364. if test $_pkg_short_errors_supported = yes; then
  14365. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack" 2>&1`
  14366. else
  14367. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack" 2>&1`
  14368. fi
  14369. # Put the nasty error message in config.log where it belongs
  14370. echo "$JACK_PKG_ERRORS" >&5
  14371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14372. $as_echo "no" >&6; }
  14373. HAVE_JACK="no" check_failed=yes
  14374. elif test $pkg_failed = untried; then
  14375. HAVE_JACK="no" check_failed=yes
  14376. else
  14377. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  14378. JACK_LIBS=$pkg_cv_JACK_LIBS
  14379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14380. $as_echo "yes" >&6; }
  14381. output_modules="$output_modules jack" HAVE_JACK="yes"
  14382. fi
  14383. ;;
  14384. pulse)
  14385. pkg_failed=no
  14386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSE" >&5
  14387. $as_echo_n "checking for PULSE... " >&6; }
  14388. if test -n "$PULSE_CFLAGS"; then
  14389. pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
  14390. elif test -n "$PKG_CONFIG"; then
  14391. if test -n "$PKG_CONFIG" && \
  14392. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
  14393. ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  14394. ac_status=$?
  14395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14396. test $ac_status = 0; }; then
  14397. pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
  14398. else
  14399. pkg_failed=yes
  14400. fi
  14401. else
  14402. pkg_failed=untried
  14403. fi
  14404. if test -n "$PULSE_LIBS"; then
  14405. pkg_cv_PULSE_LIBS="$PULSE_LIBS"
  14406. elif test -n "$PKG_CONFIG"; then
  14407. if test -n "$PKG_CONFIG" && \
  14408. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
  14409. ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
  14410. ac_status=$?
  14411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14412. test $ac_status = 0; }; then
  14413. pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
  14414. else
  14415. pkg_failed=yes
  14416. fi
  14417. else
  14418. pkg_failed=untried
  14419. fi
  14420. if test $pkg_failed = yes; then
  14421. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14422. _pkg_short_errors_supported=yes
  14423. else
  14424. _pkg_short_errors_supported=no
  14425. fi
  14426. if test $_pkg_short_errors_supported = yes; then
  14427. PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
  14428. else
  14429. PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
  14430. fi
  14431. # Put the nasty error message in config.log where it belongs
  14432. echo "$PULSE_PKG_ERRORS" >&5
  14433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14434. $as_echo "no" >&6; }
  14435. HAVE_PULSE="no" check_failed=yes
  14436. elif test $pkg_failed = untried; then
  14437. HAVE_PULSE="no" check_failed=yes
  14438. else
  14439. PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
  14440. PULSE_LIBS=$pkg_cv_PULSE_LIBS
  14441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14442. $as_echo "yes" >&6; }
  14443. output_modules="$output_modules pulse" HAVE_PULSE="yes"
  14444. fi
  14445. ;;
  14446. esd)
  14447. pkg_failed=no
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD" >&5
  14449. $as_echo_n "checking for ESD... " >&6; }
  14450. if test -n "$ESD_CFLAGS"; then
  14451. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  14452. elif test -n "$PKG_CONFIG"; then
  14453. if test -n "$PKG_CONFIG" && \
  14454. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound\""; } >&5
  14455. ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  14456. ac_status=$?
  14457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14458. test $ac_status = 0; }; then
  14459. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
  14460. else
  14461. pkg_failed=yes
  14462. fi
  14463. else
  14464. pkg_failed=untried
  14465. fi
  14466. if test -n "$ESD_LIBS"; then
  14467. pkg_cv_ESD_LIBS="$ESD_LIBS"
  14468. elif test -n "$PKG_CONFIG"; then
  14469. if test -n "$PKG_CONFIG" && \
  14470. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound\""; } >&5
  14471. ($PKG_CONFIG --exists --print-errors "esound") 2>&5
  14472. ac_status=$?
  14473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14474. test $ac_status = 0; }; then
  14475. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
  14476. else
  14477. pkg_failed=yes
  14478. fi
  14479. else
  14480. pkg_failed=untried
  14481. fi
  14482. if test $pkg_failed = yes; then
  14483. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14484. _pkg_short_errors_supported=yes
  14485. else
  14486. _pkg_short_errors_supported=no
  14487. fi
  14488. if test $_pkg_short_errors_supported = yes; then
  14489. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
  14490. else
  14491. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
  14492. fi
  14493. # Put the nasty error message in config.log where it belongs
  14494. echo "$ESD_PKG_ERRORS" >&5
  14495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14496. $as_echo "no" >&6; }
  14497. HAVE_ESD="no" check_failed=yes
  14498. elif test $pkg_failed = untried; then
  14499. HAVE_ESD="no" check_failed=yes
  14500. else
  14501. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  14502. ESD_LIBS=$pkg_cv_ESD_LIBS
  14503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14504. $as_echo "yes" >&6; }
  14505. output_modules="$output_modules esd" HAVE_ESD="yes"
  14506. fi
  14507. ;;
  14508. portaudio)
  14509. # Remember: This looks only insane because you chose an insane tab width!
  14510. PORTAUDIO_LIBS="-lportaudio"
  14511. PORTAUDIO_CFLAGS=
  14512. case $host in
  14513. *-*-mingw32)
  14514. # We tested portaudio with MME
  14515. if test "x$HAVE_PORTAUDIO" != "xyes"; then
  14516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_Initialize in -lportaudio" >&5
  14517. $as_echo_n "checking for Pa_Initialize in -lportaudio... " >&6; }
  14518. if ${ac_cv_lib_portaudio_Pa_Initialize+:} false; then :
  14519. $as_echo_n "(cached) " >&6
  14520. else
  14521. ac_check_lib_save_LIBS=$LIBS
  14522. LIBS="-lportaudio -lwinmm
  14523. $LIBS"
  14524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14525. /* end confdefs.h. */
  14526. /* Override any GCC internal prototype to avoid an error.
  14527. Use char because int might match the return type of a GCC
  14528. builtin and then its argument prototype would still apply. */
  14529. #ifdef __cplusplus
  14530. extern "C"
  14531. #endif
  14532. char Pa_Initialize ();
  14533. int
  14534. main ()
  14535. {
  14536. return Pa_Initialize ();
  14537. ;
  14538. return 0;
  14539. }
  14540. _ACEOF
  14541. if ac_fn_c_try_link "$LINENO"; then :
  14542. ac_cv_lib_portaudio_Pa_Initialize=yes
  14543. else
  14544. ac_cv_lib_portaudio_Pa_Initialize=no
  14545. fi
  14546. rm -f core conftest.err conftest.$ac_objext \
  14547. conftest$ac_exeext conftest.$ac_ext
  14548. LIBS=$ac_check_lib_save_LIBS
  14549. fi
  14550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
  14551. $as_echo "$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
  14552. if test "x$ac_cv_lib_portaudio_Pa_Initialize" = xyes; then :
  14553. ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
  14554. if test "x$ac_cv_header_portaudio_h" = xyes; then :
  14555. output_modules="$output_modules portaudio" HAVE_PORTAUDIO_WINMM="yes" HAVE_PORTAUDIO="yes"
  14556. else
  14557. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found PortAudio library but NOT header files on your system" >&5
  14558. $as_echo "$as_me: WARNING: Found PortAudio library but NOT header files on your system" >&2;}
  14559. fi
  14560. PORTAUDIO_LIBS="$PORTAUDIO_LIBS -lwinmm"
  14561. else
  14562. HAVE_PORTAUDIO="no"
  14563. fi
  14564. fi
  14565. ;;
  14566. *)
  14567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_Initialize in -lportaudio" >&5
  14568. $as_echo_n "checking for Pa_Initialize in -lportaudio... " >&6; }
  14569. if ${ac_cv_lib_portaudio_Pa_Initialize+:} false; then :
  14570. $as_echo_n "(cached) " >&6
  14571. else
  14572. ac_check_lib_save_LIBS=$LIBS
  14573. LIBS="-lportaudio $LIBS"
  14574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14575. /* end confdefs.h. */
  14576. /* Override any GCC internal prototype to avoid an error.
  14577. Use char because int might match the return type of a GCC
  14578. builtin and then its argument prototype would still apply. */
  14579. #ifdef __cplusplus
  14580. extern "C"
  14581. #endif
  14582. char Pa_Initialize ();
  14583. int
  14584. main ()
  14585. {
  14586. return Pa_Initialize ();
  14587. ;
  14588. return 0;
  14589. }
  14590. _ACEOF
  14591. if ac_fn_c_try_link "$LINENO"; then :
  14592. ac_cv_lib_portaudio_Pa_Initialize=yes
  14593. else
  14594. ac_cv_lib_portaudio_Pa_Initialize=no
  14595. fi
  14596. rm -f core conftest.err conftest.$ac_objext \
  14597. conftest$ac_exeext conftest.$ac_ext
  14598. LIBS=$ac_check_lib_save_LIBS
  14599. fi
  14600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
  14601. $as_echo "$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
  14602. if test "x$ac_cv_lib_portaudio_Pa_Initialize" = xyes; then :
  14603. ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
  14604. if test "x$ac_cv_header_portaudio_h" = xyes; then :
  14605. output_modules="$output_modules portaudio" HAVE_PORTAUDIO="yes"
  14606. else
  14607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found PortAudio library but NOT header files on your system" >&5
  14608. $as_echo "$as_me: WARNING: Found PortAudio library but NOT header files on your system" >&2;}
  14609. fi
  14610. fi
  14611. ;;
  14612. esac
  14613. if test "x$HAVE_PORTAUDIO" != xyes; then
  14614. check_failed=yes
  14615. else
  14616. # See if we have v19 or v18
  14617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_GetVersion in -lportaudio" >&5
  14618. $as_echo_n "checking for Pa_GetVersion in -lportaudio... " >&6; }
  14619. if ${ac_cv_lib_portaudio_Pa_GetVersion+:} false; then :
  14620. $as_echo_n "(cached) " >&6
  14621. else
  14622. ac_check_lib_save_LIBS=$LIBS
  14623. LIBS="-lportaudio $PORTAUDIO_LIBS $LIBS"
  14624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14625. /* end confdefs.h. */
  14626. /* Override any GCC internal prototype to avoid an error.
  14627. Use char because int might match the return type of a GCC
  14628. builtin and then its argument prototype would still apply. */
  14629. #ifdef __cplusplus
  14630. extern "C"
  14631. #endif
  14632. char Pa_GetVersion ();
  14633. int
  14634. main ()
  14635. {
  14636. return Pa_GetVersion ();
  14637. ;
  14638. return 0;
  14639. }
  14640. _ACEOF
  14641. if ac_fn_c_try_link "$LINENO"; then :
  14642. ac_cv_lib_portaudio_Pa_GetVersion=yes
  14643. else
  14644. ac_cv_lib_portaudio_Pa_GetVersion=no
  14645. fi
  14646. rm -f core conftest.err conftest.$ac_objext \
  14647. conftest$ac_exeext conftest.$ac_ext
  14648. LIBS=$ac_check_lib_save_LIBS
  14649. fi
  14650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_GetVersion" >&5
  14651. $as_echo "$ac_cv_lib_portaudio_Pa_GetVersion" >&6; }
  14652. if test "x$ac_cv_lib_portaudio_Pa_GetVersion" = xyes; then :
  14653. :
  14654. else
  14655. $as_echo "#define PORTAUDIO18 1" >>confdefs.h
  14656. fi
  14657. fi
  14658. ;;
  14659. sdl)
  14660. pkg_failed=no
  14661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
  14662. $as_echo_n "checking for SDL... " >&6; }
  14663. if test -n "$SDL_CFLAGS"; then
  14664. pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  14665. elif test -n "$PKG_CONFIG"; then
  14666. if test -n "$PKG_CONFIG" && \
  14667. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
  14668. ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
  14669. ac_status=$?
  14670. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14671. test $ac_status = 0; }; then
  14672. pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
  14673. else
  14674. pkg_failed=yes
  14675. fi
  14676. else
  14677. pkg_failed=untried
  14678. fi
  14679. if test -n "$SDL_LIBS"; then
  14680. pkg_cv_SDL_LIBS="$SDL_LIBS"
  14681. elif test -n "$PKG_CONFIG"; then
  14682. if test -n "$PKG_CONFIG" && \
  14683. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
  14684. ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
  14685. ac_status=$?
  14686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14687. test $ac_status = 0; }; then
  14688. pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
  14689. else
  14690. pkg_failed=yes
  14691. fi
  14692. else
  14693. pkg_failed=untried
  14694. fi
  14695. if test $pkg_failed = yes; then
  14696. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14697. _pkg_short_errors_supported=yes
  14698. else
  14699. _pkg_short_errors_supported=no
  14700. fi
  14701. if test $_pkg_short_errors_supported = yes; then
  14702. SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
  14703. else
  14704. SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
  14705. fi
  14706. # Put the nasty error message in config.log where it belongs
  14707. echo "$SDL_PKG_ERRORS" >&5
  14708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14709. $as_echo "no" >&6; }
  14710. HAVE_SDL="no" check_failed=yes
  14711. elif test $pkg_failed = untried; then
  14712. HAVE_SDL="no" check_failed=yes
  14713. else
  14714. SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  14715. SDL_LIBS=$pkg_cv_SDL_LIBS
  14716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14717. $as_echo "yes" >&6; }
  14718. output_modules="$output_modules sdl" HAVE_SDL="yes"
  14719. fi
  14720. ;;
  14721. nas)
  14722. NAS_LIBS=-laudio
  14723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  14724. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  14725. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  14726. $as_echo_n "(cached) " >&6
  14727. else
  14728. ac_check_lib_save_LIBS=$LIBS
  14729. LIBS="-laudio $LIBS"
  14730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14731. /* end confdefs.h. */
  14732. /* Override any GCC internal prototype to avoid an error.
  14733. Use char because int might match the return type of a GCC
  14734. builtin and then its argument prototype would still apply. */
  14735. #ifdef __cplusplus
  14736. extern "C"
  14737. #endif
  14738. char AuOpenServer ();
  14739. int
  14740. main ()
  14741. {
  14742. return AuOpenServer ();
  14743. ;
  14744. return 0;
  14745. }
  14746. _ACEOF
  14747. if ac_fn_c_try_link "$LINENO"; then :
  14748. ac_cv_lib_audio_AuOpenServer=yes
  14749. else
  14750. ac_cv_lib_audio_AuOpenServer=no
  14751. fi
  14752. rm -f core conftest.err conftest.$ac_objext \
  14753. conftest$ac_exeext conftest.$ac_ext
  14754. LIBS=$ac_check_lib_save_LIBS
  14755. fi
  14756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  14757. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  14758. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  14759. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  14760. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  14761. output_modules="$output_modules nas" HAVE_NAS="yes"
  14762. else
  14763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found NAS library but NOT header files on your system" >&5
  14764. $as_echo "$as_me: WARNING: Found NAS library but NOT header files on your system" >&2;}
  14765. fi
  14766. fi
  14767. if test "x$HAVE_NAS" != xyes; then
  14768. check_failed=yes
  14769. fi
  14770. ;;
  14771. win32)
  14772. # Check for windows ... and win32 audio
  14773. # Does not work... instead just check for header
  14774. # AC_CHECK_LIB( [winmm], [waveOutOpen] )
  14775. WIN32_LIBS=-lwinmm
  14776. for ac_header in windows.h
  14777. do :
  14778. ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  14779. if test "x$ac_cv_header_windows_h" = xyes; then :
  14780. cat >>confdefs.h <<_ACEOF
  14781. #define HAVE_WINDOWS_H 1
  14782. _ACEOF
  14783. output_modules="$output_modules win32" HAVE_WIN32=yes
  14784. else
  14785. HAVE_WIN32=no check_failed=yes
  14786. fi
  14787. done
  14788. ;;
  14789. win32_wasapi)
  14790. # Check for windows ... and win32 wasapi audio
  14791. # Does not work... instead just check for header
  14792. # AC_CHECK_LIB( [avrt], [] )
  14793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have wasapi headers" >&5
  14794. $as_echo_n "checking if we have wasapi headers... " >&6; }
  14795. OLD_LIBS=$LIBS
  14796. LIBS="$LIBS -lole32 -lavrt"
  14797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14798. /* end confdefs.h. */
  14799. #define COBJMACROS 1
  14800. #define _WIN32_WINNT 0x601
  14801. #include <initguid.h>
  14802. #include <audioclient.h>
  14803. #include <mmdeviceapi.h>
  14804. #include <avrt.h>
  14805. int main(){
  14806. /* UUID Checks */
  14807. GUID *IDs = {
  14808. &CLSID_MMDeviceEnumerator,
  14809. &IID_IMMDeviceEnumerator,
  14810. &IID_IAudioClient,
  14811. &IID_IAudioRenderClient
  14812. };
  14813. return 0;
  14814. }
  14815. _ACEOF
  14816. if ac_fn_c_try_link "$LINENO"; then :
  14817. HAVE_WIN32_WASAPI=yes
  14818. else
  14819. HAVE_WIN32_WASAPI=no
  14820. fi
  14821. rm -f core conftest.err conftest.$ac_objext \
  14822. conftest$ac_exeext conftest.$ac_ext
  14823. LIBS=$OLD_LIBS
  14824. WIN32_WASAPI_LIBS="-lole32 -lavrt"
  14825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WIN32_WASAPI" >&5
  14826. $as_echo "$HAVE_WIN32_WASAPI" >&6; }
  14827. if test "x$HAVE_WIN32_WASAPI" = xyes; then
  14828. output_modules="$output_modules win32_wasapi"
  14829. else
  14830. check_failed=yes
  14831. fi
  14832. ;;
  14833. sndio)
  14834. SNDIO_LIBS=-lsndio
  14835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  14836. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  14837. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  14838. $as_echo_n "(cached) " >&6
  14839. else
  14840. ac_check_lib_save_LIBS=$LIBS
  14841. LIBS="-lsndio $LIBS"
  14842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14843. /* end confdefs.h. */
  14844. /* Override any GCC internal prototype to avoid an error.
  14845. Use char because int might match the return type of a GCC
  14846. builtin and then its argument prototype would still apply. */
  14847. #ifdef __cplusplus
  14848. extern "C"
  14849. #endif
  14850. char sio_open ();
  14851. int
  14852. main ()
  14853. {
  14854. return sio_open ();
  14855. ;
  14856. return 0;
  14857. }
  14858. _ACEOF
  14859. if ac_fn_c_try_link "$LINENO"; then :
  14860. ac_cv_lib_sndio_sio_open=yes
  14861. else
  14862. ac_cv_lib_sndio_sio_open=no
  14863. fi
  14864. rm -f core conftest.err conftest.$ac_objext \
  14865. conftest$ac_exeext conftest.$ac_ext
  14866. LIBS=$ac_check_lib_save_LIBS
  14867. fi
  14868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  14869. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  14870. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  14871. for ac_header in sndio.h
  14872. do :
  14873. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  14874. if test "x$ac_cv_header_sndio_h" = xyes; then :
  14875. cat >>confdefs.h <<_ACEOF
  14876. #define HAVE_SNDIO_H 1
  14877. _ACEOF
  14878. output_modules="$output_modules sndio" HAVE_SNDIO="yes"
  14879. fi
  14880. done
  14881. fi
  14882. if test "x$HAVE_SNDIO" != xyes; then
  14883. check_failed=yes
  14884. fi
  14885. ;;
  14886. sun)
  14887. for ac_header in sun/audioio.h sys/audioio.h asm/audioio.h sys/audio.h
  14888. do :
  14889. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14890. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14891. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14892. cat >>confdefs.h <<_ACEOF
  14893. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14894. _ACEOF
  14895. fi
  14896. done
  14897. if test "x${ac_cv_header_sun_audioio_h}" = "xyes" \
  14898. -o "x${ac_cv_header_sys_audioio_h}" = "xyes" \
  14899. -o "x${ac_cv_header_asm_audioio_h}" = "xyes";
  14900. then
  14901. output_modules="$output_modules sun"
  14902. HAVE_SUN="yes"
  14903. else
  14904. check_failed=yes
  14905. fi
  14906. ;;
  14907. coreaudio)
  14908. COREAUDIO_LIBS="-framework AudioToolbox -framework AudioUnit -framework CoreServices"
  14909. for ac_header in AudioUnit/AudioUnit.h CoreServices/CoreServices.h AudioToolbox/AudioToolbox.h
  14910. do :
  14911. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14912. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14913. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14914. cat >>confdefs.h <<_ACEOF
  14915. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14916. _ACEOF
  14917. fi
  14918. done
  14919. if test "x${ac_cv_header_AudioUnit_AudioUnit_h}" = "xyes" \
  14920. -a "x${ac_cv_header_CoreServices_CoreServices_h}" = "xyes" \
  14921. -a "x${ac_cv_header_AudioToolbox_AudioToolbox_h}" = "xyes";
  14922. then
  14923. if test x"$modules" = xdisabled; then
  14924. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling buffer because of directly linked CoreAudio! Use the module if you need the buffer." >&5
  14925. $as_echo "$as_me: WARNING: Disabling buffer because of directly linked CoreAudio! Use the module if you need the buffer." >&2;}
  14926. buffer=disabled
  14927. fi
  14928. output_modules="$output_modules coreaudio"
  14929. HAVE_COREAUDIO="yes"
  14930. else
  14931. check_failed=yes
  14932. fi
  14933. ;;
  14934. arts)
  14935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for artsc" >&5
  14936. $as_echo_n "checking for artsc... " >&6; }
  14937. if artsc-config; then
  14938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14939. $as_echo "yes" >&6; }
  14940. output_modules="$output_modules arts"
  14941. HAVE_ARTS=yes
  14942. ARTS_LIBS=`artsc-config --libs`
  14943. ARTS_CFLAGS=`artsc-config --cflags`
  14944. else
  14945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14946. $as_echo "no" >&6; }
  14947. check_failed=yes
  14948. fi
  14949. ;;
  14950. openal)
  14951. for ac_header in OpenAL/al.h OpenAL/alc.h AL/al.h AL/alc.h al.h alc.h
  14952. do :
  14953. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14954. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14955. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14956. cat >>confdefs.h <<_ACEOF
  14957. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14958. _ACEOF
  14959. fi
  14960. done
  14961. if test "x${ac_cv_header_OpenAL_al_h}" = "xyes" \
  14962. -a "x${ac_cv_header_OpenAL_alc_h}" = "xyes";
  14963. then #Mac OS X
  14964. output_modules="$output_modules openal"
  14965. OPENAL_LIBS="-framework OpenAL"
  14966. OPENAL_CFLAGS="-DOPENAL_SUBDIR_OPENAL"
  14967. HAVE_OPENAL="yes"
  14968. elif test "x${ac_cv_header_AL_al_h}" = "xyes" \
  14969. -a "x${ac_cv_header_AL_alc_h}" = "xyes";
  14970. then #Linux
  14971. output_modules="$output_modules openal"
  14972. OPENAL_LIBS="-lopenal"
  14973. OPENAL_CFLAGS="-DOPENAL_SUBDIR_AL"
  14974. HAVE_OPENAL="yes"
  14975. elif test "x${ac_cv_header_al_h}" = "xyes" \
  14976. -a "x${ac_cv_header_alc_h}" = "xyes";
  14977. then #Windows?
  14978. output_modules="$output_modules openal"
  14979. OPENAL_LIBS="-lopenal"
  14980. OPENAL_CFLAGS=""
  14981. HAVE_OPENAL="yes"
  14982. else
  14983. check_failed=yes
  14984. fi
  14985. ;;
  14986. os2)
  14987. OS2_LIBS="-los2me -lmmpm2 -lsocket"
  14988. for ac_header in os2.h
  14989. do :
  14990. ac_fn_c_check_header_mongrel "$LINENO" "os2.h" "ac_cv_header_os2_h" "$ac_includes_default"
  14991. if test "x$ac_cv_header_os2_h" = xyes; then :
  14992. cat >>confdefs.h <<_ACEOF
  14993. #define HAVE_OS2_H 1
  14994. _ACEOF
  14995. fi
  14996. done
  14997. # os2me.h depends on os2.h
  14998. # Yes, that way of coding it is ugly.
  14999. if test "x${ac_cv_header_os2_h}" = xyes
  15000. then
  15001. # We mimick exactly the way how the header will be used.
  15002. # It seems to be picky...
  15003. for ac_header in os2me.h
  15004. do :
  15005. ac_fn_c_check_header_compile "$LINENO" "os2me.h" "ac_cv_header_os2me_h" "#define INCL_OS2MM
  15006. #define INCL_DOS
  15007. #define INCL_VIO
  15008. #define INCL_KBD
  15009. #include <os2.h>
  15010. #
  15011. "
  15012. if test "x$ac_cv_header_os2me_h" = xyes; then :
  15013. cat >>confdefs.h <<_ACEOF
  15014. #define HAVE_OS2ME_H 1
  15015. _ACEOF
  15016. fi
  15017. done
  15018. fi
  15019. if test "x${ac_cv_header_os2_h}" = xyes \
  15020. -a "x${ac_cv_header_os2me_h}" = xyes
  15021. then
  15022. output_modules="$output_modules os2"
  15023. HAVE_OS2=yes
  15024. else
  15025. check_failed=yes
  15026. fi
  15027. ;;
  15028. # from here on only forced tests, untested code
  15029. hp)
  15030. # What's the deal with that and alib?
  15031. UNSUPPORTED_AUDIO=yes
  15032. ac_fn_c_check_header_mongrel "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default"
  15033. if test "x$ac_cv_header_sys_audio_h" = xyes; then :
  15034. output_modules="$output_modules hp" HAVE_HP=yes
  15035. else
  15036. check_failed=yes
  15037. fi
  15038. ;;
  15039. alib)
  15040. UNSUPPORTED_AUDIO=yes
  15041. # ALIB_CFLAGS="-I/opt/audio/include"
  15042. ALIB_LIBS=-lAlib
  15043. # These headers may not be all about audio but they are used.
  15044. for ac_header in Alib.h CUlib.h netdb.h netinet/in.h netinet/tcp.h
  15045. do :
  15046. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15047. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15048. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15049. cat >>confdefs.h <<_ACEOF
  15050. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15051. _ACEOF
  15052. fi
  15053. done
  15054. if test "x${ac_cv_header_Alib_h}" = xyes \
  15055. -a "x${ac_cv_header_CUlib_h}" = xyes \
  15056. -a "x${ac_cv_header_netdb_h}" = xyes \
  15057. -a "x${ac_cv_header_netinet_in_h}" = xyes \
  15058. -a "x${ac_cv_header_netinet_tcp_h}" = xyes
  15059. then
  15060. output_modules="$output_modules alib"
  15061. HAVE_ALIB=yes
  15062. else
  15063. check_failed=yes
  15064. fi
  15065. ;;
  15066. mint)
  15067. UNSUPPORTED_AUDIO=yes
  15068. for ac_header in audios.h
  15069. do :
  15070. ac_fn_c_check_header_mongrel "$LINENO" "audios.h" "ac_cv_header_audios_h" "$ac_includes_default"
  15071. if test "x$ac_cv_header_audios_h" = xyes; then :
  15072. cat >>confdefs.h <<_ACEOF
  15073. #define HAVE_AUDIOS_H 1
  15074. _ACEOF
  15075. output_modules="$output_modules mint" HAVE_MINT=yes
  15076. else
  15077. check_failes=yes
  15078. fi
  15079. done
  15080. ;;
  15081. aix)
  15082. UNSUPPORTED_AUDIO=yes
  15083. for ac_header in sys/audio.h
  15084. do :
  15085. ac_fn_c_check_header_mongrel "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default"
  15086. if test "x$ac_cv_header_sys_audio_h" = xyes; then :
  15087. cat >>confdefs.h <<_ACEOF
  15088. #define HAVE_SYS_AUDIO_H 1
  15089. _ACEOF
  15090. output_modules="$output_modules aix" HAVE_AIX=yes
  15091. else
  15092. check_failed=yes
  15093. fi
  15094. done
  15095. ;;
  15096. sgi)
  15097. UNSUPPORTED_AUDIO=yes
  15098. SGI_LIBS=-laudio
  15099. ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default"
  15100. if test "x$ac_cv_header_dmedia_audio_h" = xyes; then :
  15101. output_modules="$output_modules sgi" HAVE_SGI=yes
  15102. else
  15103. check_failed=yes
  15104. fi
  15105. ;;
  15106. *)
  15107. as_fn_error $? "Unsupported/-known output '$m' demanded!" "$LINENO" 5
  15108. ;;
  15109. esac
  15110. done
  15111. if test "x$check_forced" = xyes -a "x$UNSUPPORTED_AUDIO" = xyes; then
  15112. { $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
  15113. $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;}
  15114. fi
  15115. if test "x$check_forced" = xyes -a "x$check_failed" = "xyes"; then
  15116. as_fn_error $? "One/some of your requested audio modules failed the test!" "$LINENO" 5
  15117. fi
  15118. # When you extend check_modules, you should extend this:
  15119. #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
  15120. #do echo $i; done |
  15121. #perl -ne 'chomp; $big = uc($_); print <<EOT;
  15122. #AC_SUBST(${big}_LIBS)
  15123. #AC_SUBST(${big}_LDFLAGS)
  15124. #AC_SUBST(${big}_CFLAGS)
  15125. #AM_CONDITIONAL( [HAVE_$big], [test "x\$HAVE_$big" = xyes] )
  15126. #EOT
  15127. #'
  15128. if test "x$HAVE_TINYALSA" = xyes ; then
  15129. HAVE_TINYALSA_TRUE=
  15130. HAVE_TINYALSA_FALSE='#'
  15131. else
  15132. HAVE_TINYALSA_TRUE='#'
  15133. HAVE_TINYALSA_FALSE=
  15134. fi
  15135. if test "x$HAVE_ALSA" = xyes ; then
  15136. HAVE_ALSA_TRUE=
  15137. HAVE_ALSA_FALSE='#'
  15138. else
  15139. HAVE_ALSA_TRUE='#'
  15140. HAVE_ALSA_FALSE=
  15141. fi
  15142. if test "x$HAVE_QSA" = xyes ; then
  15143. HAVE_QSA_TRUE=
  15144. HAVE_QSA_FALSE='#'
  15145. else
  15146. HAVE_QSA_TRUE='#'
  15147. HAVE_QSA_FALSE=
  15148. fi
  15149. if test "x$HAVE_OSS" = xyes ; then
  15150. HAVE_OSS_TRUE=
  15151. HAVE_OSS_FALSE='#'
  15152. else
  15153. HAVE_OSS_TRUE='#'
  15154. HAVE_OSS_FALSE=
  15155. fi
  15156. if test "x$HAVE_COREAUDIO" = xyes ; then
  15157. HAVE_COREAUDIO_TRUE=
  15158. HAVE_COREAUDIO_FALSE='#'
  15159. else
  15160. HAVE_COREAUDIO_TRUE='#'
  15161. HAVE_COREAUDIO_FALSE=
  15162. fi
  15163. if test "x$HAVE_SNDIO" = xyes ; then
  15164. HAVE_SNDIO_TRUE=
  15165. HAVE_SNDIO_FALSE='#'
  15166. else
  15167. HAVE_SNDIO_TRUE='#'
  15168. HAVE_SNDIO_FALSE=
  15169. fi
  15170. if test "x$HAVE_SUN" = xyes ; then
  15171. HAVE_SUN_TRUE=
  15172. HAVE_SUN_FALSE='#'
  15173. else
  15174. HAVE_SUN_TRUE='#'
  15175. HAVE_SUN_FALSE=
  15176. fi
  15177. if test "x$HAVE_WIN32" = xyes ; then
  15178. HAVE_WIN32_TRUE=
  15179. HAVE_WIN32_FALSE='#'
  15180. else
  15181. HAVE_WIN32_TRUE='#'
  15182. HAVE_WIN32_FALSE=
  15183. fi
  15184. if test "x$HAVE_WIN32_WASAPI" = xyes ; then
  15185. HAVE_WIN32_WASAPI_TRUE=
  15186. HAVE_WIN32_WASAPI_FALSE='#'
  15187. else
  15188. HAVE_WIN32_WASAPI_TRUE='#'
  15189. HAVE_WIN32_WASAPI_FALSE=
  15190. fi
  15191. if test "x$HAVE_ESD" = xyes ; then
  15192. HAVE_ESD_TRUE=
  15193. HAVE_ESD_FALSE='#'
  15194. else
  15195. HAVE_ESD_TRUE='#'
  15196. HAVE_ESD_FALSE=
  15197. fi
  15198. if test "x$HAVE_JACK" = xyes ; then
  15199. HAVE_JACK_TRUE=
  15200. HAVE_JACK_FALSE='#'
  15201. else
  15202. HAVE_JACK_TRUE='#'
  15203. HAVE_JACK_FALSE=
  15204. fi
  15205. if test "x$HAVE_PORTAUDIO" = xyes ; then
  15206. HAVE_PORTAUDIO_TRUE=
  15207. HAVE_PORTAUDIO_FALSE='#'
  15208. else
  15209. HAVE_PORTAUDIO_TRUE='#'
  15210. HAVE_PORTAUDIO_FALSE=
  15211. fi
  15212. if test "x$HAVE_PULSE" = xyes ; then
  15213. HAVE_PULSE_TRUE=
  15214. HAVE_PULSE_FALSE='#'
  15215. else
  15216. HAVE_PULSE_TRUE='#'
  15217. HAVE_PULSE_FALSE=
  15218. fi
  15219. if test "x$HAVE_SDL" = xyes ; then
  15220. HAVE_SDL_TRUE=
  15221. HAVE_SDL_FALSE='#'
  15222. else
  15223. HAVE_SDL_TRUE='#'
  15224. HAVE_SDL_FALSE=
  15225. fi
  15226. if test "x$HAVE_NAS" = xyes ; then
  15227. HAVE_NAS_TRUE=
  15228. HAVE_NAS_FALSE='#'
  15229. else
  15230. HAVE_NAS_TRUE='#'
  15231. HAVE_NAS_FALSE=
  15232. fi
  15233. if test "x$HAVE_AIX" = xyes ; then
  15234. HAVE_AIX_TRUE=
  15235. HAVE_AIX_FALSE='#'
  15236. else
  15237. HAVE_AIX_TRUE='#'
  15238. HAVE_AIX_FALSE=
  15239. fi
  15240. if test "x$HAVE_ALIB" = xyes ; then
  15241. HAVE_ALIB_TRUE=
  15242. HAVE_ALIB_FALSE='#'
  15243. else
  15244. HAVE_ALIB_TRUE='#'
  15245. HAVE_ALIB_FALSE=
  15246. fi
  15247. if test "x$HAVE_ARTS" = xyes ; then
  15248. HAVE_ARTS_TRUE=
  15249. HAVE_ARTS_FALSE='#'
  15250. else
  15251. HAVE_ARTS_TRUE='#'
  15252. HAVE_ARTS_FALSE=
  15253. fi
  15254. if test "x$HAVE_HP" = xyes ; then
  15255. HAVE_HP_TRUE=
  15256. HAVE_HP_FALSE='#'
  15257. else
  15258. HAVE_HP_TRUE='#'
  15259. HAVE_HP_FALSE=
  15260. fi
  15261. if test "x$HAVE_OS2" = xyes ; then
  15262. HAVE_OS2_TRUE=
  15263. HAVE_OS2_FALSE='#'
  15264. else
  15265. HAVE_OS2_TRUE='#'
  15266. HAVE_OS2_FALSE=
  15267. fi
  15268. if test "x$HAVE_SGI" = xyes ; then
  15269. HAVE_SGI_TRUE=
  15270. HAVE_SGI_FALSE='#'
  15271. else
  15272. HAVE_SGI_TRUE='#'
  15273. HAVE_SGI_FALSE=
  15274. fi
  15275. if test "x$HAVE_MINT" = xyes ; then
  15276. HAVE_MINT_TRUE=
  15277. HAVE_MINT_FALSE='#'
  15278. else
  15279. HAVE_MINT_TRUE='#'
  15280. HAVE_MINT_FALSE=
  15281. fi
  15282. if test "x$HAVE_OPENAL" = xyes ; then
  15283. HAVE_OPENAL_TRUE=
  15284. HAVE_OPENAL_FALSE='#'
  15285. else
  15286. HAVE_OPENAL_TRUE='#'
  15287. HAVE_OPENAL_FALSE=
  15288. fi
  15289. if test "x$HAVE_DUMMY" = xyes ; then
  15290. HAVE_DUMMY_TRUE=
  15291. HAVE_DUMMY_FALSE='#'
  15292. else
  15293. HAVE_DUMMY_TRUE='#'
  15294. HAVE_DUMMY_FALSE=
  15295. fi
  15296. # Did user choose default audio subsystem ?
  15297. if test "x$with_default_audio" != "x"; then
  15298. default_output_module=$with_default_audio
  15299. else
  15300. default_output_module=`echo "$output_modules" | $AWK '{ print $1 }'`
  15301. fi
  15302. # That's (beginning of) the list for mpg123's internal default.
  15303. default_output_modules=$default_output_module
  15304. OUTPUT_OBJ=
  15305. OUTPUT_MOD=
  15306. OUTPUT_CFLAGS=
  15307. OUTPUT_LIBS=
  15308. OUTPUT_LDFLAGS=
  15309. # Setup the static build.
  15310. if test "x$modules" = xdisabled
  15311. then
  15312. echo "Preparing static output $default_output_module"
  15313. OUTPUT_MOD="$default_output_module"
  15314. OUTPUT_OBJ="output/$default_output_module.\$(OBJEXT)"
  15315. OUTPUT_CFLAGS=
  15316. OUTPUT_LIBS=
  15317. # That feels stupid... what about hashed arrays?
  15318. case $OUTPUT_MOD in
  15319. # Here's a script for that tedious list, perhaps to be outsourced together with the one in src/output/Makefile.am
  15320. #for i in tinyalsa alsa qsa coreaudio esd jack nas oss portaudio pulse sdl sndio sun win32 win32_wasapi aix alib arts hp os2 sgi mint openal
  15321. #do echo $i; done |
  15322. #perl -ne 'chomp; $big = uc($_); print <<EOT;
  15323. # $_)
  15324. # OUTPUT_LIBS="\$${big}_LIBS"
  15325. # OUTPUT_LDFLAGS="\$${big}_LDFLAGS"
  15326. # OUTPUT_CFLAGS="\$${big}_CFLAGS"
  15327. # ;;
  15328. #EOT
  15329. #'
  15330. tinyalsa)
  15331. OUTPUT_LIBS="$TINYALSA_LIBS"
  15332. OUTPUT_LDFLAGS="$TINYALSA_LDFLAGS"
  15333. OUTPUT_CFLAGS="$TINYALSA_CFLAGS"
  15334. ;;
  15335. alsa)
  15336. OUTPUT_LIBS="$ALSA_LIBS"
  15337. OUTPUT_LDFLAGS="$ALSA_LDFLAGS"
  15338. OUTPUT_CFLAGS="$ALSA_CFLAGS"
  15339. ;;
  15340. qsa)
  15341. OUTPUT_LIBS="$QSA_LIBS"
  15342. OUTPUT_LDFLAGS="$QSA_LDFLAGS"
  15343. OUTPUT_CFLAGS="$QSA_CFLAGS"
  15344. ;;
  15345. coreaudio)
  15346. OUTPUT_LIBS="$COREAUDIO_LIBS"
  15347. OUTPUT_LDFLAGS="$COREAUDIO_LDFLAGS"
  15348. OUTPUT_CFLAGS="$COREAUDIO_CFLAGS"
  15349. ;;
  15350. esd)
  15351. OUTPUT_LIBS="$ESD_LIBS"
  15352. OUTPUT_LDFLAGS="$ESD_LDFLAGS"
  15353. OUTPUT_CFLAGS="$ESD_CFLAGS"
  15354. ;;
  15355. jack)
  15356. OUTPUT_LIBS="$JACK_LIBS"
  15357. OUTPUT_LDFLAGS="$JACK_LDFLAGS"
  15358. OUTPUT_CFLAGS="$JACK_CFLAGS"
  15359. ;;
  15360. nas)
  15361. OUTPUT_LIBS="$NAS_LIBS"
  15362. OUTPUT_LDFLAGS="$NAS_LDFLAGS"
  15363. OUTPUT_CFLAGS="$NAS_CFLAGS"
  15364. ;;
  15365. oss)
  15366. OUTPUT_LIBS="$OSS_LIBS"
  15367. OUTPUT_LDFLAGS="$OSS_LDFLAGS"
  15368. OUTPUT_CFLAGS="$OSS_CFLAGS"
  15369. ;;
  15370. portaudio)
  15371. OUTPUT_LIBS="$PORTAUDIO_LIBS"
  15372. OUTPUT_LDFLAGS="$PORTAUDIO_LDFLAGS"
  15373. OUTPUT_CFLAGS="$PORTAUDIO_CFLAGS"
  15374. ;;
  15375. pulse)
  15376. OUTPUT_LIBS="$PULSE_LIBS"
  15377. OUTPUT_LDFLAGS="$PULSE_LDFLAGS"
  15378. OUTPUT_CFLAGS="$PULSE_CFLAGS"
  15379. ;;
  15380. sdl)
  15381. OUTPUT_LIBS="$SDL_LIBS"
  15382. OUTPUT_LDFLAGS="$SDL_LDFLAGS"
  15383. OUTPUT_CFLAGS="$SDL_CFLAGS"
  15384. ;;
  15385. sndio)
  15386. OUTPUT_LIBS="$SNDIO_LIBS"
  15387. OUTPUT_LDFLAGS="$SNDIO_LDFLAGS"
  15388. OUTPUT_CFLAGS="$SNDIO_CFLAGS"
  15389. ;;
  15390. sun)
  15391. OUTPUT_LIBS="$SUN_LIBS"
  15392. OUTPUT_LDFLAGS="$SUN_LDFLAGS"
  15393. OUTPUT_CFLAGS="$SUN_CFLAGS"
  15394. ;;
  15395. win32)
  15396. OUTPUT_LIBS="$WIN32_LIBS"
  15397. OUTPUT_LDFLAGS="$WIN32_LDFLAGS"
  15398. OUTPUT_CFLAGS="$WIN32_CFLAGS"
  15399. ;;
  15400. win32_wasapi)
  15401. OUTPUT_LIBS="$WIN32_WASAPI_LIBS"
  15402. OUTPUT_LDFLAGS="$WIN32_WASAPI_LDFLAGS"
  15403. OUTPUT_CFLAGS="$WIN32_WASAPI_CFLAGS"
  15404. ;;
  15405. aix)
  15406. OUTPUT_LIBS="$AIX_LIBS"
  15407. OUTPUT_LDFLAGS="$AIX_LDFLAGS"
  15408. OUTPUT_CFLAGS="$AIX_CFLAGS"
  15409. ;;
  15410. alib)
  15411. OUTPUT_LIBS="$ALIB_LIBS"
  15412. OUTPUT_LDFLAGS="$ALIB_LDFLAGS"
  15413. OUTPUT_CFLAGS="$ALIB_CFLAGS"
  15414. ;;
  15415. arts)
  15416. OUTPUT_LIBS="$ARTS_LIBS"
  15417. OUTPUT_LDFLAGS="$ARTS_LDFLAGS"
  15418. OUTPUT_CFLAGS="$ARTS_CFLAGS"
  15419. ;;
  15420. hp)
  15421. OUTPUT_LIBS="$HP_LIBS"
  15422. OUTPUT_LDFLAGS="$HP_LDFLAGS"
  15423. OUTPUT_CFLAGS="$HP_CFLAGS"
  15424. ;;
  15425. os2)
  15426. OUTPUT_LIBS="$OS2_LIBS"
  15427. OUTPUT_LDFLAGS="$OS2_LDFLAGS"
  15428. OUTPUT_CFLAGS="$OS2_CFLAGS"
  15429. ;;
  15430. sgi)
  15431. OUTPUT_LIBS="$SGI_LIBS"
  15432. OUTPUT_LDFLAGS="$SGI_LDFLAGS"
  15433. OUTPUT_CFLAGS="$SGI_CFLAGS"
  15434. ;;
  15435. mint)
  15436. OUTPUT_LIBS="$MINT_LIBS"
  15437. OUTPUT_LDFLAGS="$MINT_LDFLAGS"
  15438. OUTPUT_CFLAGS="$MINT_CFLAGS"
  15439. ;;
  15440. openal)
  15441. OUTPUT_LIBS="$OPENAL_LIBS"
  15442. OUTPUT_LDFLAGS="$OPENAL_LDFLAGS"
  15443. OUTPUT_CFLAGS="$OPENAL_CFLAGS"
  15444. ;;
  15445. esac
  15446. else
  15447. # Now make a comma-separated list again... eliminating the possible duplicate and dummy.
  15448. for i in $output_modules
  15449. do
  15450. if test $i != $default_output_module && test $i != dummy; then
  15451. default_output_modules=$default_output_modules,$i
  15452. fi
  15453. done
  15454. fi
  15455. cat >>confdefs.h <<_ACEOF
  15456. #define DEFAULT_OUTPUT_MODULE "$default_output_modules"
  15457. _ACEOF
  15458. CFLAGS="$ADD_CFLAGS $CFLAGS"
  15459. if test x"$buffer" = xdisabled; then
  15460. ADD_CPPFLAGS="$ADD_CPPFLAGS -DNOXFERMEM"
  15461. fi
  15462. if test x"$newoldwritesample" = xenabled; then
  15463. ADD_CPPFLAGS="$ADD_CPPFLAGS -DNEWOLD_WRITE_SAMPLE"
  15464. fi
  15465. CPPFLAGS="$ADD_CPPFLAGS $CPPFLAGS"
  15466. LDFLAGS="$ADD_LDFLAGS $LDFLAGS"
  15467. # None chosen?
  15468. if test "x$with_optimization" = "x"; then
  15469. if test x"$debugging" = xenabled; then
  15470. with_optimization="0"
  15471. else
  15472. # enable (gcc specific) default opts only with gcc
  15473. if test "x$GCC" = xyes; then
  15474. with_optimization="2"
  15475. else
  15476. with_optimization="0"
  15477. fi
  15478. fi
  15479. fi
  15480. case $with_optimization in
  15481. 0)
  15482. # No Optimizations
  15483. CFLAGS="$CFLAGS"
  15484. ;;
  15485. 1)
  15486. CFLAGS="-O $CFLAGS"
  15487. ;;
  15488. 2)
  15489. CFLAGS="-O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
  15490. ;;
  15491. 3)
  15492. CFLAGS="-O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
  15493. ;;
  15494. 4)
  15495. CFLAGS="-O4 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
  15496. ;;
  15497. *)
  15498. as_fn_error $? "Unknown optimizations level '$with_optimization'" "$LINENO" 5
  15499. ;;
  15500. esac
  15501. if test "x$GCC" = xyes && echo "$CFLAGS" | $GREP 'mpreferred-stack-boundary=' > /dev/null; then
  15502. case $cpu_type in
  15503. x86 | i586* | mmx | sse | 3dnow* | altivec)
  15504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are trying to mess with stack alignment. I know better. " >&5
  15505. $as_echo "$as_me: WARNING: You are trying to mess with stack alignment. I know better. " >&2;}
  15506. CFLAGS="$CFLAGS -mpreferred-stack-boundary=4"
  15507. ;;
  15508. esac
  15509. fi
  15510. if test "x$with_seektable" = "x"; then
  15511. seektable=1000
  15512. else
  15513. seektable=$with_seektable
  15514. fi
  15515. if test "$seektable" -gt 0; then
  15516. $as_echo "#define FRAME_INDEX 1" >>confdefs.h
  15517. fi
  15518. # Define that always... also without frame index enabled.
  15519. cat >>confdefs.h <<_ACEOF
  15520. #define INDEX_SIZE $seektable
  15521. _ACEOF
  15522. # Check if we want Unicode for Win32. Cygwin does not need _wopen
  15523. win32_specific_codes=disabled
  15524. win32_unicode=unneeded
  15525. win32_sockets=disabled
  15526. win32_sockets_working=no
  15527. win32_wide_working=no
  15528. win32_winver_bump=no
  15529. for ac_header in windows.h
  15530. do :
  15531. ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  15532. if test "x$ac_cv_header_windows_h" = xyes; then :
  15533. cat >>confdefs.h <<_ACEOF
  15534. #define HAVE_WINDOWS_H 1
  15535. _ACEOF
  15536. win32_specific_codes=enabled
  15537. fi
  15538. done
  15539. if test "x$win32_specific_codes" = xenabled && test "x$host_os" != "xcygwin"; then
  15540. #### Check for Wide functions
  15541. ac_fn_c_check_func "$LINENO" "_wopen" "ac_cv_func__wopen"
  15542. if test "x$ac_cv_func__wopen" = xyes; then :
  15543. win32_unicode=enabled
  15544. else
  15545. win32_unicode=disabled
  15546. fi
  15547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want Unicode File Open for Win32" >&5
  15548. $as_echo_n "checking if we want Unicode File Open for Win32... " >&6; }
  15549. if test "x$win32_unicode" = xenabled; then
  15550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15551. $as_echo "yes" >&6; }
  15552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Unicode functions working" >&5
  15553. $as_echo_n "checking if Unicode functions working... " >&6; }
  15554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15555. /* end confdefs.h. */
  15556. #include <windows.h>
  15557. #include <stdlib.h>
  15558. int main()
  15559. {
  15560. MultiByteToWideChar (0, 0, NULL, 0, NULL, 0);
  15561. WideCharToMultiByte (0, 0, NULL, 0, NULL, 0, NULL, NULL);
  15562. return 0;
  15563. }
  15564. _ACEOF
  15565. if ac_fn_c_try_link "$LINENO"; then :
  15566. win32_wide_working=yes
  15567. else
  15568. win32_winver_bump=yes
  15569. fi
  15570. rm -f core conftest.err conftest.$ac_objext \
  15571. conftest$ac_exeext conftest.$ac_ext
  15572. if test "x$win32_wide_working" = xno; then
  15573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15574. /* end confdefs.h. */
  15575. #define WINVER 0x501
  15576. #define _WIN32_WINNT 0x501
  15577. #include <windows.h>
  15578. #include <stdlib.h>
  15579. int main()
  15580. {
  15581. MultiByteToWideChar (0, 0, NULL, 0, NULL, 0);
  15582. WideCharToMultiByte (0, 0, NULL, 0, NULL, 0, NULL, NULL);
  15583. return 0;
  15584. }
  15585. _ACEOF
  15586. if ac_fn_c_try_link "$LINENO"; then :
  15587. win32_wide_working=yes
  15588. else
  15589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15590. $as_echo "no" >&6; }
  15591. fi
  15592. rm -f core conftest.err conftest.$ac_objext \
  15593. conftest$ac_exeext conftest.$ac_ext
  15594. fi
  15595. if test "x$win32_wide_working" = xyes; then
  15596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15597. $as_echo "yes" >&6; }
  15598. $as_echo "#define WANT_WIN32_UNICODE 1" >>confdefs.h
  15599. fi
  15600. else
  15601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unicode File Open for Win32 disabled" >&5
  15602. $as_echo "$as_me: WARNING: Unicode File Open for Win32 disabled" >&2;}
  15603. fi
  15604. #### Check for Network functions
  15605. for ac_header in ws2tcpip.h
  15606. do :
  15607. ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
  15608. if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
  15609. cat >>confdefs.h <<_ACEOF
  15610. #define HAVE_WS2TCPIP_H 1
  15611. _ACEOF
  15612. win32_sockets=enabled
  15613. else
  15614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please update your headers to support winsock 2.2." >&5
  15615. $as_echo "$as_me: WARNING: Please update your headers to support winsock 2.2." >&2;}
  15616. fi
  15617. done
  15618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want Win32 sockets" >&5
  15619. $as_echo_n "checking if we want Win32 sockets... " >&6; }
  15620. if test "x$win32_sockets" = "xenabled" && test "x$network" != "xdisabled"; then
  15621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15622. $as_echo "yes" >&6; }
  15623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if winsock2 API is available" >&5
  15624. $as_echo_n "checking if winsock2 API is available... " >&6; }
  15625. wsoldlibs="$LIBS"
  15626. LIBS="$LIBS -lws2_32"
  15627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15628. /* end confdefs.h. */
  15629. #include <winsock2.h>
  15630. #include <ws2tcpip.h>
  15631. #include <stdlib.h>
  15632. int main()
  15633. {
  15634. getaddrinfo(NULL, NULL, NULL, NULL);
  15635. freeaddrinfo(NULL);
  15636. return 0;
  15637. }
  15638. _ACEOF
  15639. if ac_fn_c_try_link "$LINENO"; then :
  15640. win32_sockets_working=yes
  15641. else
  15642. win32_winver_bump=yes
  15643. fi
  15644. rm -f core conftest.err conftest.$ac_objext \
  15645. conftest$ac_exeext conftest.$ac_ext
  15646. if test "x$win32_sockets_working" = "xno"; then
  15647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper if winsock2 API is available" >&5
  15648. $as_echo_n "checking deeper if winsock2 API is available... " >&6; }
  15649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15650. /* end confdefs.h. */
  15651. #define WINVER 0x501
  15652. #define _WIN32_WINNT 0x501
  15653. #include <winsock2.h>
  15654. #include <ws2tcpip.h>
  15655. #include <stdlib.h>
  15656. int main()
  15657. {
  15658. getaddrinfo(NULL, NULL, NULL, NULL);
  15659. freeaddrinfo(NULL);
  15660. return 0;
  15661. }
  15662. _ACEOF
  15663. if ac_fn_c_try_link "$LINENO"; then :
  15664. win32_sockets_working=yes
  15665. else
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15667. $as_echo "no" >&6; }
  15668. fi
  15669. rm -f core conftest.err conftest.$ac_objext \
  15670. conftest$ac_exeext conftest.$ac_ext
  15671. fi
  15672. if test "x$win32_sockets_working" = "xyes"; then
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15674. $as_echo "yes" >&6; }
  15675. $as_echo "#define WANT_WIN32_SOCKETS 1" >>confdefs.h
  15676. network_type=Winsock2
  15677. have_network=yes
  15678. have_ipv6=yes
  15679. else
  15680. LIBS="$wsoldlibs"
  15681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please update your headers to support winsock 2.2." >&5
  15682. $as_echo "$as_me: WARNING: Please update your headers to support winsock 2.2." >&2;}
  15683. fi
  15684. else
  15685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15686. $as_echo "no" >&6; }
  15687. fi
  15688. #### Check for Win32 Named Pipe functions
  15689. win32_fifo_working=no
  15690. if test x$win32_specific_codes = xenabled; then
  15691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have Named Pipes" >&5
  15692. $as_echo_n "checking if we have Named Pipes... " >&6; }
  15693. if test "x$fifo" != "xdisabled"; then
  15694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15695. /* end confdefs.h. */
  15696. #include <windows.h>
  15697. int main(){
  15698. CreateNamedPipeA(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
  15699. CreateNamedPipeW(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
  15700. return 0;
  15701. }
  15702. _ACEOF
  15703. if ac_fn_c_try_link "$LINENO"; then :
  15704. win32_fifo_working=yes
  15705. else
  15706. win32_winver_bump=yes
  15707. fi
  15708. rm -f core conftest.err conftest.$ac_objext \
  15709. conftest$ac_exeext conftest.$ac_ext
  15710. if test "x$win32_fifo_working" != "xyes"; then
  15711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15712. /* end confdefs.h. */
  15713. #define WINVER 0x501
  15714. #define _WIN32_WINNT 0x501
  15715. #include <windows.h>
  15716. int main(){
  15717. CreateNamedPipeA(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
  15718. CreateNamedPipeW(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
  15719. return 0;
  15720. }
  15721. _ACEOF
  15722. if ac_fn_c_try_link "$LINENO"; then :
  15723. win32_fifo_working=yes
  15724. else
  15725. win32_fifo_working=no
  15726. fi
  15727. rm -f core conftest.err conftest.$ac_objext \
  15728. conftest$ac_exeext conftest.$ac_ext
  15729. fi
  15730. fi
  15731. have_mkfifo=$win32_fifo_working
  15732. if test "x$win32_fifo_working" = "xyes"; then
  15733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15734. $as_echo "yes" >&6; }
  15735. $as_echo "#define WANT_WIN32_FIFO 1" >>confdefs.h
  15736. else
  15737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15738. $as_echo "no" >&6; }
  15739. fi
  15740. fi
  15741. #### WINVER Bump
  15742. if test x$win32_specific_codes = xenabled; then
  15743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WINVER and _WIN32_WINNT needs version bumps" >&5
  15744. $as_echo_n "checking if WINVER and _WIN32_WINNT needs version bumps... " >&6; }
  15745. if test "x$win32_winver_bump" = "xyes"; then
  15746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15747. $as_echo "yes" >&6; }
  15748. $as_echo "#define WINVER 0x0501" >>confdefs.h
  15749. $as_echo "#define _WIN32_WINNT 0x0501" >>confdefs.h
  15750. # getaddrinfo and freeaddrinfo are available for Win2K and above
  15751. # Bug: MinGW.org w32api ws2tcpip.h incorrectly wants (_WIN32_WINNT >= 0x0501) for getaddrinfo and freeaddrinfo
  15752. # MultiByteToWideChar and WideCharToMultiByte are available for Win2K and above
  15753. else
  15754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15755. $as_echo "no" >&6; }
  15756. fi
  15757. fi
  15758. fi #END OF WIN32 CHECKS
  15759. #### Check mingw.org for EOVERFLOW
  15760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have EOVERFLOW macro" >&5
  15761. $as_echo_n "checking if we have EOVERFLOW macro... " >&6; }
  15762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15763. /* end confdefs.h. */
  15764. #include <errno.h>
  15765. int i = (EOVERFLOW) + 0;
  15766. _ACEOF
  15767. if ac_fn_c_try_compile "$LINENO"; then :
  15768. eoverflow_present=yes
  15769. else
  15770. eoverflow_present=no
  15771. fi
  15772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $eoverflow_present" >&5
  15774. $as_echo "$eoverflow_present" >&6; }
  15775. if test "x$eoverflow_present" = "xyes"; then :
  15776. else
  15777. $as_echo "#define EOVERFLOW EFBIG" >>confdefs.h
  15778. fi
  15779. #### Use Win32 support codes
  15780. if test "x$win32_specific_codes" = xenabled ; then
  15781. WIN32_CODES_TRUE=
  15782. WIN32_CODES_FALSE='#'
  15783. else
  15784. WIN32_CODES_TRUE='#'
  15785. WIN32_CODES_FALSE=
  15786. fi
  15787. if test x"$network" = xauto; then
  15788. if test x"$have_network" = xyes; then
  15789. network=enabled
  15790. else
  15791. network=disabled
  15792. fi
  15793. fi
  15794. if test x"$ipv6" = xauto; then
  15795. if test x"$have_ipv6" = xyes; then
  15796. ipv6=enabled
  15797. else
  15798. ipv6=disabled
  15799. fi
  15800. fi
  15801. if test x"$fifo" = xauto; then
  15802. if test x"$have_mkfifo" = xyes; then
  15803. fifo=enabled
  15804. else
  15805. fifo=disabled
  15806. fi
  15807. fi
  15808. if test x"$fifo" = xenabled; then
  15809. $as_echo "#define FIFO 1" >>confdefs.h
  15810. if test x"$have_mkfifo" = xno; then
  15811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You forced FIFO code while I think there is no mkfifo() available! " >&5
  15812. $as_echo "$as_me: WARNING: You forced FIFO code while I think there is no mkfifo() available! " >&2;}
  15813. fi
  15814. fi
  15815. if test x"$network" = xenabled; then
  15816. $as_echo "#define NETWORK 1" >>confdefs.h
  15817. if test x"$have_network" = xno; then
  15818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You forced network code while I think there is support missing! " >&5
  15819. $as_echo "$as_me: WARNING: You forced network code while I think there is support missing! " >&2;}
  15820. fi
  15821. fi
  15822. if test x"$ipv6" = xenabled; then
  15823. $as_echo "#define IPV6 1" >>confdefs.h
  15824. if test x"$have_ipv6" = xno; then
  15825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You forced IPv6 code while I think there is no getaddrinfo() available! " >&5
  15826. $as_echo "$as_me: WARNING: You forced IPv6 code while I think there is no getaddrinfo() available! " >&2;}
  15827. fi
  15828. fi
  15829. # Do that here to prevent the above tests usign -lltdl...
  15830. if test "x$modules" = xenabled; then
  15831. LIBS="-lltdl $LIBS"
  15832. fi
  15833. ac_config_files="$ac_config_files Makefile libmpg123.pc mpg123.spec doc/Makefile src/Makefile src/output/Makefile src/libmpg123/Makefile src/libmpg123/mpg123.h"
  15834. cat >confcache <<\_ACEOF
  15835. # This file is a shell script that caches the results of configure
  15836. # tests run on this system so they can be shared between configure
  15837. # scripts and configure runs, see configure's option --config-cache.
  15838. # It is not useful on other systems. If it contains results you don't
  15839. # want to keep, you may remove or edit it.
  15840. #
  15841. # config.status only pays attention to the cache file if you give it
  15842. # the --recheck option to rerun configure.
  15843. #
  15844. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15845. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15846. # following values.
  15847. _ACEOF
  15848. # The following way of writing the cache mishandles newlines in values,
  15849. # but we know of no workaround that is simple, portable, and efficient.
  15850. # So, we kill variables containing newlines.
  15851. # Ultrix sh set writes to stderr and can't be redirected directly,
  15852. # and sets the high bit in the cache file unless we assign to the vars.
  15853. (
  15854. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15855. eval ac_val=\$$ac_var
  15856. case $ac_val in #(
  15857. *${as_nl}*)
  15858. case $ac_var in #(
  15859. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15860. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15861. esac
  15862. case $ac_var in #(
  15863. _ | IFS | as_nl) ;; #(
  15864. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15865. *) { eval $ac_var=; unset $ac_var;} ;;
  15866. esac ;;
  15867. esac
  15868. done
  15869. (set) 2>&1 |
  15870. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15871. *${as_nl}ac_space=\ *)
  15872. # `set' does not quote correctly, so add quotes: double-quote
  15873. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15874. sed -n \
  15875. "s/'/'\\\\''/g;
  15876. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15877. ;; #(
  15878. *)
  15879. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15880. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15881. ;;
  15882. esac |
  15883. sort
  15884. ) |
  15885. sed '
  15886. /^ac_cv_env_/b end
  15887. t clear
  15888. :clear
  15889. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15890. t end
  15891. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15892. :end' >>confcache
  15893. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15894. if test -w "$cache_file"; then
  15895. if test "x$cache_file" != "x/dev/null"; then
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15897. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15898. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15899. cat confcache >"$cache_file"
  15900. else
  15901. case $cache_file in #(
  15902. */* | ?:*)
  15903. mv -f confcache "$cache_file"$$ &&
  15904. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15905. *)
  15906. mv -f confcache "$cache_file" ;;
  15907. esac
  15908. fi
  15909. fi
  15910. else
  15911. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15912. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15913. fi
  15914. fi
  15915. rm -f confcache
  15916. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15917. # Let make expand exec_prefix.
  15918. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15919. DEFS=-DHAVE_CONFIG_H
  15920. ac_libobjs=
  15921. ac_ltlibobjs=
  15922. U=
  15923. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15924. # 1. Remove the extension, and $U if already installed.
  15925. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15926. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15927. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15928. # will be set to the directory where LIBOBJS objects are built.
  15929. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15930. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15931. done
  15932. LIBOBJS=$ac_libobjs
  15933. LTLIBOBJS=$ac_ltlibobjs
  15934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15935. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  15936. if test -n "$am_sleep_pid"; then
  15937. # Hide warnings about reused PIDs.
  15938. wait $am_sleep_pid 2>/dev/null
  15939. fi
  15940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15941. $as_echo "done" >&6; }
  15942. if test -n "$EXEEXT"; then
  15943. am__EXEEXT_TRUE=
  15944. am__EXEEXT_FALSE='#'
  15945. else
  15946. am__EXEEXT_TRUE='#'
  15947. am__EXEEXT_FALSE=
  15948. fi
  15949. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15950. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15951. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15952. fi
  15953. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15954. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15955. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15956. fi
  15957. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  15958. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  15959. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15960. fi
  15961. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15962. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15963. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15964. fi
  15965. if test -z "${HAVE_MODULES_TRUE}" && test -z "${HAVE_MODULES_FALSE}"; then
  15966. as_fn_error $? "conditional \"HAVE_MODULES\" was never defined.
  15967. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15968. fi
  15969. if test -z "${USE_YASM_FOR_AVX_TRUE}" && test -z "${USE_YASM_FOR_AVX_FALSE}"; then
  15970. as_fn_error $? "conditional \"USE_YASM_FOR_AVX\" was never defined.
  15971. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15972. fi
  15973. if test -z "${HAVE_TINYALSA_TRUE}" && test -z "${HAVE_TINYALSA_FALSE}"; then
  15974. as_fn_error $? "conditional \"HAVE_TINYALSA\" was never defined.
  15975. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15976. fi
  15977. if test -z "${HAVE_ALSA_TRUE}" && test -z "${HAVE_ALSA_FALSE}"; then
  15978. as_fn_error $? "conditional \"HAVE_ALSA\" was never defined.
  15979. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15980. fi
  15981. if test -z "${HAVE_QSA_TRUE}" && test -z "${HAVE_QSA_FALSE}"; then
  15982. as_fn_error $? "conditional \"HAVE_QSA\" was never defined.
  15983. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15984. fi
  15985. if test -z "${HAVE_OSS_TRUE}" && test -z "${HAVE_OSS_FALSE}"; then
  15986. as_fn_error $? "conditional \"HAVE_OSS\" was never defined.
  15987. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15988. fi
  15989. if test -z "${HAVE_COREAUDIO_TRUE}" && test -z "${HAVE_COREAUDIO_FALSE}"; then
  15990. as_fn_error $? "conditional \"HAVE_COREAUDIO\" was never defined.
  15991. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15992. fi
  15993. if test -z "${HAVE_SNDIO_TRUE}" && test -z "${HAVE_SNDIO_FALSE}"; then
  15994. as_fn_error $? "conditional \"HAVE_SNDIO\" was never defined.
  15995. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15996. fi
  15997. if test -z "${HAVE_SUN_TRUE}" && test -z "${HAVE_SUN_FALSE}"; then
  15998. as_fn_error $? "conditional \"HAVE_SUN\" was never defined.
  15999. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16000. fi
  16001. if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then
  16002. as_fn_error $? "conditional \"HAVE_WIN32\" was never defined.
  16003. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16004. fi
  16005. if test -z "${HAVE_WIN32_WASAPI_TRUE}" && test -z "${HAVE_WIN32_WASAPI_FALSE}"; then
  16006. as_fn_error $? "conditional \"HAVE_WIN32_WASAPI\" was never defined.
  16007. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16008. fi
  16009. if test -z "${HAVE_ESD_TRUE}" && test -z "${HAVE_ESD_FALSE}"; then
  16010. as_fn_error $? "conditional \"HAVE_ESD\" was never defined.
  16011. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16012. fi
  16013. if test -z "${HAVE_JACK_TRUE}" && test -z "${HAVE_JACK_FALSE}"; then
  16014. as_fn_error $? "conditional \"HAVE_JACK\" was never defined.
  16015. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16016. fi
  16017. if test -z "${HAVE_PORTAUDIO_TRUE}" && test -z "${HAVE_PORTAUDIO_FALSE}"; then
  16018. as_fn_error $? "conditional \"HAVE_PORTAUDIO\" was never defined.
  16019. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16020. fi
  16021. if test -z "${HAVE_PULSE_TRUE}" && test -z "${HAVE_PULSE_FALSE}"; then
  16022. as_fn_error $? "conditional \"HAVE_PULSE\" was never defined.
  16023. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16024. fi
  16025. if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
  16026. as_fn_error $? "conditional \"HAVE_SDL\" was never defined.
  16027. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16028. fi
  16029. if test -z "${HAVE_NAS_TRUE}" && test -z "${HAVE_NAS_FALSE}"; then
  16030. as_fn_error $? "conditional \"HAVE_NAS\" was never defined.
  16031. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16032. fi
  16033. if test -z "${HAVE_AIX_TRUE}" && test -z "${HAVE_AIX_FALSE}"; then
  16034. as_fn_error $? "conditional \"HAVE_AIX\" was never defined.
  16035. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16036. fi
  16037. if test -z "${HAVE_ALIB_TRUE}" && test -z "${HAVE_ALIB_FALSE}"; then
  16038. as_fn_error $? "conditional \"HAVE_ALIB\" was never defined.
  16039. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16040. fi
  16041. if test -z "${HAVE_ARTS_TRUE}" && test -z "${HAVE_ARTS_FALSE}"; then
  16042. as_fn_error $? "conditional \"HAVE_ARTS\" was never defined.
  16043. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16044. fi
  16045. if test -z "${HAVE_HP_TRUE}" && test -z "${HAVE_HP_FALSE}"; then
  16046. as_fn_error $? "conditional \"HAVE_HP\" was never defined.
  16047. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16048. fi
  16049. if test -z "${HAVE_OS2_TRUE}" && test -z "${HAVE_OS2_FALSE}"; then
  16050. as_fn_error $? "conditional \"HAVE_OS2\" was never defined.
  16051. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16052. fi
  16053. if test -z "${HAVE_SGI_TRUE}" && test -z "${HAVE_SGI_FALSE}"; then
  16054. as_fn_error $? "conditional \"HAVE_SGI\" was never defined.
  16055. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16056. fi
  16057. if test -z "${HAVE_MINT_TRUE}" && test -z "${HAVE_MINT_FALSE}"; then
  16058. as_fn_error $? "conditional \"HAVE_MINT\" was never defined.
  16059. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16060. fi
  16061. if test -z "${HAVE_OPENAL_TRUE}" && test -z "${HAVE_OPENAL_FALSE}"; then
  16062. as_fn_error $? "conditional \"HAVE_OPENAL\" was never defined.
  16063. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16064. fi
  16065. if test -z "${HAVE_DUMMY_TRUE}" && test -z "${HAVE_DUMMY_FALSE}"; then
  16066. as_fn_error $? "conditional \"HAVE_DUMMY\" was never defined.
  16067. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16068. fi
  16069. if test -z "${WIN32_CODES_TRUE}" && test -z "${WIN32_CODES_FALSE}"; then
  16070. as_fn_error $? "conditional \"WIN32_CODES\" was never defined.
  16071. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16072. fi
  16073. : "${CONFIG_STATUS=./config.status}"
  16074. ac_write_fail=0
  16075. ac_clean_files_save=$ac_clean_files
  16076. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  16077. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  16078. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  16079. as_write_fail=0
  16080. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  16081. #! $SHELL
  16082. # Generated by $as_me.
  16083. # Run this file to recreate the current configuration.
  16084. # Compiler output produced by configure, useful for debugging
  16085. # configure, is in config.log if it exists.
  16086. debug=false
  16087. ac_cs_recheck=false
  16088. ac_cs_silent=false
  16089. SHELL=\${CONFIG_SHELL-$SHELL}
  16090. export SHELL
  16091. _ASEOF
  16092. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  16093. ## -------------------- ##
  16094. ## M4sh Initialization. ##
  16095. ## -------------------- ##
  16096. # Be more Bourne compatible
  16097. DUALCASE=1; export DUALCASE # for MKS sh
  16098. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  16099. emulate sh
  16100. NULLCMD=:
  16101. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  16102. # is contrary to our usage. Disable this feature.
  16103. alias -g '${1+"$@"}'='"$@"'
  16104. setopt NO_GLOB_SUBST
  16105. else
  16106. case `(set -o) 2>/dev/null` in #(
  16107. *posix*) :
  16108. set -o posix ;; #(
  16109. *) :
  16110. ;;
  16111. esac
  16112. fi
  16113. as_nl='
  16114. '
  16115. export as_nl
  16116. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  16117. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  16118. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  16119. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  16120. # Prefer a ksh shell builtin over an external printf program on Solaris,
  16121. # but without wasting forks for bash or zsh.
  16122. if test -z "$BASH_VERSION$ZSH_VERSION" \
  16123. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  16124. as_echo='print -r --'
  16125. as_echo_n='print -rn --'
  16126. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  16127. as_echo='printf %s\n'
  16128. as_echo_n='printf %s'
  16129. else
  16130. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  16131. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  16132. as_echo_n='/usr/ucb/echo -n'
  16133. else
  16134. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  16135. as_echo_n_body='eval
  16136. arg=$1;
  16137. case $arg in #(
  16138. *"$as_nl"*)
  16139. expr "X$arg" : "X\\(.*\\)$as_nl";
  16140. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  16141. esac;
  16142. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  16143. '
  16144. export as_echo_n_body
  16145. as_echo_n='sh -c $as_echo_n_body as_echo'
  16146. fi
  16147. export as_echo_body
  16148. as_echo='sh -c $as_echo_body as_echo'
  16149. fi
  16150. # The user is always right.
  16151. if test "${PATH_SEPARATOR+set}" != set; then
  16152. PATH_SEPARATOR=:
  16153. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  16154. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  16155. PATH_SEPARATOR=';'
  16156. }
  16157. fi
  16158. # IFS
  16159. # We need space, tab and new line, in precisely that order. Quoting is
  16160. # there to prevent editors from complaining about space-tab.
  16161. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16162. # splitting by setting IFS to empty value.)
  16163. IFS=" "" $as_nl"
  16164. # Find who we are. Look in the path if we contain no directory separator.
  16165. as_myself=
  16166. case $0 in #((
  16167. *[\\/]* ) as_myself=$0 ;;
  16168. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16169. for as_dir in $PATH
  16170. do
  16171. IFS=$as_save_IFS
  16172. test -z "$as_dir" && as_dir=.
  16173. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16174. done
  16175. IFS=$as_save_IFS
  16176. ;;
  16177. esac
  16178. # We did not find ourselves, most probably we were run as `sh COMMAND'
  16179. # in which case we are not to be found in the path.
  16180. if test "x$as_myself" = x; then
  16181. as_myself=$0
  16182. fi
  16183. if test ! -f "$as_myself"; then
  16184. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16185. exit 1
  16186. fi
  16187. # Unset variables that we do not need and which cause bugs (e.g. in
  16188. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  16189. # suppresses any "Segmentation fault" message there. '((' could
  16190. # trigger a bug in pdksh 5.2.14.
  16191. for as_var in BASH_ENV ENV MAIL MAILPATH
  16192. do eval test x\${$as_var+set} = xset \
  16193. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  16194. done
  16195. PS1='$ '
  16196. PS2='> '
  16197. PS4='+ '
  16198. # NLS nuisances.
  16199. LC_ALL=C
  16200. export LC_ALL
  16201. LANGUAGE=C
  16202. export LANGUAGE
  16203. # CDPATH.
  16204. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16205. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  16206. # ----------------------------------------
  16207. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16208. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16209. # script with STATUS, using 1 if that was 0.
  16210. as_fn_error ()
  16211. {
  16212. as_status=$1; test $as_status -eq 0 && as_status=1
  16213. if test "$4"; then
  16214. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16215. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  16216. fi
  16217. $as_echo "$as_me: error: $2" >&2
  16218. as_fn_exit $as_status
  16219. } # as_fn_error
  16220. # as_fn_set_status STATUS
  16221. # -----------------------
  16222. # Set $? to STATUS, without forking.
  16223. as_fn_set_status ()
  16224. {
  16225. return $1
  16226. } # as_fn_set_status
  16227. # as_fn_exit STATUS
  16228. # -----------------
  16229. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16230. as_fn_exit ()
  16231. {
  16232. set +e
  16233. as_fn_set_status $1
  16234. exit $1
  16235. } # as_fn_exit
  16236. # as_fn_unset VAR
  16237. # ---------------
  16238. # Portably unset VAR.
  16239. as_fn_unset ()
  16240. {
  16241. { eval $1=; unset $1;}
  16242. }
  16243. as_unset=as_fn_unset
  16244. # as_fn_append VAR VALUE
  16245. # ----------------------
  16246. # Append the text in VALUE to the end of the definition contained in VAR. Take
  16247. # advantage of any shell optimizations that allow amortized linear growth over
  16248. # repeated appends, instead of the typical quadratic growth present in naive
  16249. # implementations.
  16250. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16251. eval 'as_fn_append ()
  16252. {
  16253. eval $1+=\$2
  16254. }'
  16255. else
  16256. as_fn_append ()
  16257. {
  16258. eval $1=\$$1\$2
  16259. }
  16260. fi # as_fn_append
  16261. # as_fn_arith ARG...
  16262. # ------------------
  16263. # Perform arithmetic evaluation on the ARGs, and store the result in the
  16264. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  16265. # must be portable across $(()) and expr.
  16266. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16267. eval 'as_fn_arith ()
  16268. {
  16269. as_val=$(( $* ))
  16270. }'
  16271. else
  16272. as_fn_arith ()
  16273. {
  16274. as_val=`expr "$@" || test $? -eq 1`
  16275. }
  16276. fi # as_fn_arith
  16277. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16278. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16279. as_expr=expr
  16280. else
  16281. as_expr=false
  16282. fi
  16283. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16284. as_basename=basename
  16285. else
  16286. as_basename=false
  16287. fi
  16288. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16289. as_dirname=dirname
  16290. else
  16291. as_dirname=false
  16292. fi
  16293. as_me=`$as_basename -- "$0" ||
  16294. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16295. X"$0" : 'X\(//\)$' \| \
  16296. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16297. $as_echo X/"$0" |
  16298. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16299. s//\1/
  16300. q
  16301. }
  16302. /^X\/\(\/\/\)$/{
  16303. s//\1/
  16304. q
  16305. }
  16306. /^X\/\(\/\).*/{
  16307. s//\1/
  16308. q
  16309. }
  16310. s/.*/./; q'`
  16311. # Avoid depending upon Character Ranges.
  16312. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16313. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16314. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16315. as_cr_digits='0123456789'
  16316. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16317. ECHO_C= ECHO_N= ECHO_T=
  16318. case `echo -n x` in #(((((
  16319. -n*)
  16320. case `echo 'xy\c'` in
  16321. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16322. xy) ECHO_C='\c';;
  16323. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16324. ECHO_T=' ';;
  16325. esac;;
  16326. *)
  16327. ECHO_N='-n';;
  16328. esac
  16329. rm -f conf$$ conf$$.exe conf$$.file
  16330. if test -d conf$$.dir; then
  16331. rm -f conf$$.dir/conf$$.file
  16332. else
  16333. rm -f conf$$.dir
  16334. mkdir conf$$.dir 2>/dev/null
  16335. fi
  16336. if (echo >conf$$.file) 2>/dev/null; then
  16337. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16338. as_ln_s='ln -s'
  16339. # ... but there are two gotchas:
  16340. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16341. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16342. # In both cases, we have to default to `cp -pR'.
  16343. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16344. as_ln_s='cp -pR'
  16345. elif ln conf$$.file conf$$ 2>/dev/null; then
  16346. as_ln_s=ln
  16347. else
  16348. as_ln_s='cp -pR'
  16349. fi
  16350. else
  16351. as_ln_s='cp -pR'
  16352. fi
  16353. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16354. rmdir conf$$.dir 2>/dev/null
  16355. # as_fn_mkdir_p
  16356. # -------------
  16357. # Create "$as_dir" as a directory, including parents if necessary.
  16358. as_fn_mkdir_p ()
  16359. {
  16360. case $as_dir in #(
  16361. -*) as_dir=./$as_dir;;
  16362. esac
  16363. test -d "$as_dir" || eval $as_mkdir_p || {
  16364. as_dirs=
  16365. while :; do
  16366. case $as_dir in #(
  16367. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16368. *) as_qdir=$as_dir;;
  16369. esac
  16370. as_dirs="'$as_qdir' $as_dirs"
  16371. as_dir=`$as_dirname -- "$as_dir" ||
  16372. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16373. X"$as_dir" : 'X\(//\)[^/]' \| \
  16374. X"$as_dir" : 'X\(//\)$' \| \
  16375. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16376. $as_echo X"$as_dir" |
  16377. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16378. s//\1/
  16379. q
  16380. }
  16381. /^X\(\/\/\)[^/].*/{
  16382. s//\1/
  16383. q
  16384. }
  16385. /^X\(\/\/\)$/{
  16386. s//\1/
  16387. q
  16388. }
  16389. /^X\(\/\).*/{
  16390. s//\1/
  16391. q
  16392. }
  16393. s/.*/./; q'`
  16394. test -d "$as_dir" && break
  16395. done
  16396. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16397. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  16398. } # as_fn_mkdir_p
  16399. if mkdir -p . 2>/dev/null; then
  16400. as_mkdir_p='mkdir -p "$as_dir"'
  16401. else
  16402. test -d ./-p && rmdir ./-p
  16403. as_mkdir_p=false
  16404. fi
  16405. # as_fn_executable_p FILE
  16406. # -----------------------
  16407. # Test if FILE is an executable regular file.
  16408. as_fn_executable_p ()
  16409. {
  16410. test -f "$1" && test -x "$1"
  16411. } # as_fn_executable_p
  16412. as_test_x='test -x'
  16413. as_executable_p=as_fn_executable_p
  16414. # Sed expression to map a string onto a valid CPP name.
  16415. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16416. # Sed expression to map a string onto a valid variable name.
  16417. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16418. exec 6>&1
  16419. ## ----------------------------------- ##
  16420. ## Main body of $CONFIG_STATUS script. ##
  16421. ## ----------------------------------- ##
  16422. _ASEOF
  16423. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  16424. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16425. # Save the log message, to keep $0 and so on meaningful, and to
  16426. # report actual input values of CONFIG_FILES etc. instead of their
  16427. # values after options handling.
  16428. ac_log="
  16429. This file was extended by mpg123 $as_me 1.17.0, which was
  16430. generated by GNU Autoconf 2.69. Invocation command line was
  16431. CONFIG_FILES = $CONFIG_FILES
  16432. CONFIG_HEADERS = $CONFIG_HEADERS
  16433. CONFIG_LINKS = $CONFIG_LINKS
  16434. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16435. $ $0 $@
  16436. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16437. "
  16438. _ACEOF
  16439. case $ac_config_files in *"
  16440. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16441. esac
  16442. case $ac_config_headers in *"
  16443. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  16444. esac
  16445. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16446. # Files that config.status was made for.
  16447. config_files="$ac_config_files"
  16448. config_headers="$ac_config_headers"
  16449. config_commands="$ac_config_commands"
  16450. _ACEOF
  16451. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16452. ac_cs_usage="\
  16453. \`$as_me' instantiates files and other configuration actions
  16454. from templates according to the current configuration. Unless the files
  16455. and actions are specified as TAGs, all are instantiated by default.
  16456. Usage: $0 [OPTION]... [TAG]...
  16457. -h, --help print this help, then exit
  16458. -V, --version print version number and configuration settings, then exit
  16459. --config print configuration, then exit
  16460. -q, --quiet, --silent
  16461. do not print progress messages
  16462. -d, --debug don't remove temporary files
  16463. --recheck update $as_me by reconfiguring in the same conditions
  16464. --file=FILE[:TEMPLATE]
  16465. instantiate the configuration file FILE
  16466. --header=FILE[:TEMPLATE]
  16467. instantiate the configuration header FILE
  16468. Configuration files:
  16469. $config_files
  16470. Configuration headers:
  16471. $config_headers
  16472. Configuration commands:
  16473. $config_commands
  16474. Report bugs to <[email protected]>."
  16475. _ACEOF
  16476. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16477. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  16478. ac_cs_version="\\
  16479. mpg123 config.status 1.17.0
  16480. configured by $0, generated by GNU Autoconf 2.69,
  16481. with options \\"\$ac_cs_config\\"
  16482. Copyright (C) 2012 Free Software Foundation, Inc.
  16483. This config.status script is free software; the Free Software Foundation
  16484. gives unlimited permission to copy, distribute and modify it."
  16485. ac_pwd='$ac_pwd'
  16486. srcdir='$srcdir'
  16487. INSTALL='$INSTALL'
  16488. MKDIR_P='$MKDIR_P'
  16489. AWK='$AWK'
  16490. test -n "\$AWK" || AWK=awk
  16491. _ACEOF
  16492. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16493. # The default lists apply if the user does not specify any file.
  16494. ac_need_defaults=:
  16495. while test $# != 0
  16496. do
  16497. case $1 in
  16498. --*=?*)
  16499. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16500. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16501. ac_shift=:
  16502. ;;
  16503. --*=)
  16504. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16505. ac_optarg=
  16506. ac_shift=:
  16507. ;;
  16508. *)
  16509. ac_option=$1
  16510. ac_optarg=$2
  16511. ac_shift=shift
  16512. ;;
  16513. esac
  16514. case $ac_option in
  16515. # Handling of the options.
  16516. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16517. ac_cs_recheck=: ;;
  16518. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16519. $as_echo "$ac_cs_version"; exit ;;
  16520. --config | --confi | --conf | --con | --co | --c )
  16521. $as_echo "$ac_cs_config"; exit ;;
  16522. --debug | --debu | --deb | --de | --d | -d )
  16523. debug=: ;;
  16524. --file | --fil | --fi | --f )
  16525. $ac_shift
  16526. case $ac_optarg in
  16527. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16528. '') as_fn_error $? "missing file argument" ;;
  16529. esac
  16530. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16531. ac_need_defaults=false;;
  16532. --header | --heade | --head | --hea )
  16533. $ac_shift
  16534. case $ac_optarg in
  16535. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16536. esac
  16537. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  16538. ac_need_defaults=false;;
  16539. --he | --h)
  16540. # Conflict between --help and --header
  16541. as_fn_error $? "ambiguous option: \`$1'
  16542. Try \`$0 --help' for more information.";;
  16543. --help | --hel | -h )
  16544. $as_echo "$ac_cs_usage"; exit ;;
  16545. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16546. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16547. ac_cs_silent=: ;;
  16548. # This is an error.
  16549. -*) as_fn_error $? "unrecognized option: \`$1'
  16550. Try \`$0 --help' for more information." ;;
  16551. *) as_fn_append ac_config_targets " $1"
  16552. ac_need_defaults=false ;;
  16553. esac
  16554. shift
  16555. done
  16556. ac_configure_extra_args=
  16557. if $ac_cs_silent; then
  16558. exec 6>/dev/null
  16559. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16560. fi
  16561. _ACEOF
  16562. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16563. if \$ac_cs_recheck; then
  16564. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16565. shift
  16566. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16567. CONFIG_SHELL='$SHELL'
  16568. export CONFIG_SHELL
  16569. exec "\$@"
  16570. fi
  16571. _ACEOF
  16572. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16573. exec 5>>config.log
  16574. {
  16575. echo
  16576. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16577. ## Running $as_me. ##
  16578. _ASBOX
  16579. $as_echo "$ac_log"
  16580. } >&5
  16581. _ACEOF
  16582. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16583. #
  16584. # INIT-COMMANDS
  16585. #
  16586. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16587. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16588. # if CDPATH is set.
  16589. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16590. sed_quote_subst='$sed_quote_subst'
  16591. double_quote_subst='$double_quote_subst'
  16592. delay_variable_subst='$delay_variable_subst'
  16593. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16594. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16595. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  16596. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16597. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16598. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16599. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16600. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16601. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16602. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16603. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16604. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  16605. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16606. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16607. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16608. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16609. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16610. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16611. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16612. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16613. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16614. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16615. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16616. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16617. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16618. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16619. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16620. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16621. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16622. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16623. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16624. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16625. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  16626. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  16627. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16628. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16629. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16630. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16631. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  16632. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  16633. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  16634. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16635. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16636. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  16637. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16638. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16639. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16640. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16641. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16642. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16643. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16644. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16645. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16646. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16647. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16648. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16649. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16650. 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"`'
  16651. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  16652. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  16653. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16654. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16655. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16656. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16657. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16658. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16659. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16660. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16661. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  16662. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16663. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16664. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16665. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16666. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16667. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16668. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16669. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16670. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16671. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16672. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16673. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16674. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16675. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16676. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16677. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16678. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16679. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16680. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16681. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16682. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16683. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16684. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16685. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16686. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16687. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16688. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16689. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16690. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16691. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16692. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16693. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16694. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16695. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16696. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16697. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16698. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  16699. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16700. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16701. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16702. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16703. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16704. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16705. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16706. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16707. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16708. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16709. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16710. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16711. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16712. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16713. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16714. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16715. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16716. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16717. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  16718. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16719. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16720. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16721. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16722. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16723. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16724. LTCC='$LTCC'
  16725. LTCFLAGS='$LTCFLAGS'
  16726. compiler='$compiler_DEFAULT'
  16727. # A function that is used when there is no print builtin or printf.
  16728. func_fallback_echo ()
  16729. {
  16730. eval 'cat <<_LTECHO_EOF
  16731. \$1
  16732. _LTECHO_EOF'
  16733. }
  16734. # Quote evaled strings.
  16735. for var in AS \
  16736. DLLTOOL \
  16737. OBJDUMP \
  16738. SHELL \
  16739. ECHO \
  16740. PATH_SEPARATOR \
  16741. SED \
  16742. GREP \
  16743. EGREP \
  16744. FGREP \
  16745. LD \
  16746. NM \
  16747. LN_S \
  16748. lt_SP2NL \
  16749. lt_NL2SP \
  16750. reload_flag \
  16751. deplibs_check_method \
  16752. file_magic_cmd \
  16753. file_magic_glob \
  16754. want_nocaseglob \
  16755. sharedlib_from_linklib_cmd \
  16756. AR \
  16757. AR_FLAGS \
  16758. archiver_list_spec \
  16759. STRIP \
  16760. RANLIB \
  16761. CC \
  16762. CFLAGS \
  16763. compiler \
  16764. lt_cv_sys_global_symbol_pipe \
  16765. lt_cv_sys_global_symbol_to_cdecl \
  16766. lt_cv_sys_global_symbol_to_c_name_address \
  16767. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16768. nm_file_list_spec \
  16769. lt_prog_compiler_no_builtin_flag \
  16770. lt_prog_compiler_pic \
  16771. lt_prog_compiler_wl \
  16772. lt_prog_compiler_static \
  16773. lt_cv_prog_compiler_c_o \
  16774. need_locks \
  16775. MANIFEST_TOOL \
  16776. DSYMUTIL \
  16777. NMEDIT \
  16778. LIPO \
  16779. OTOOL \
  16780. OTOOL64 \
  16781. shrext_cmds \
  16782. export_dynamic_flag_spec \
  16783. whole_archive_flag_spec \
  16784. compiler_needs_object \
  16785. with_gnu_ld \
  16786. allow_undefined_flag \
  16787. no_undefined_flag \
  16788. hardcode_libdir_flag_spec \
  16789. hardcode_libdir_separator \
  16790. exclude_expsyms \
  16791. include_expsyms \
  16792. file_list_spec \
  16793. variables_saved_for_relink \
  16794. libname_spec \
  16795. library_names_spec \
  16796. soname_spec \
  16797. install_override_mode \
  16798. finish_eval \
  16799. old_striplib \
  16800. striplib; do
  16801. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16802. *[\\\\\\\`\\"\\\$]*)
  16803. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16804. ;;
  16805. *)
  16806. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16807. ;;
  16808. esac
  16809. done
  16810. # Double-quote double-evaled strings.
  16811. for var in reload_cmds \
  16812. old_postinstall_cmds \
  16813. old_postuninstall_cmds \
  16814. old_archive_cmds \
  16815. extract_expsyms_cmds \
  16816. old_archive_from_new_cmds \
  16817. old_archive_from_expsyms_cmds \
  16818. archive_cmds \
  16819. archive_expsym_cmds \
  16820. module_cmds \
  16821. module_expsym_cmds \
  16822. export_symbols_cmds \
  16823. prelink_cmds \
  16824. postlink_cmds \
  16825. postinstall_cmds \
  16826. postuninstall_cmds \
  16827. finish_cmds \
  16828. sys_lib_search_path_spec \
  16829. sys_lib_dlsearch_path_spec; do
  16830. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16831. *[\\\\\\\`\\"\\\$]*)
  16832. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16833. ;;
  16834. *)
  16835. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16836. ;;
  16837. esac
  16838. done
  16839. ac_aux_dir='$ac_aux_dir'
  16840. xsi_shell='$xsi_shell'
  16841. lt_shell_append='$lt_shell_append'
  16842. # See if we are running on zsh, and set the options which allow our
  16843. # commands through without removal of \ escapes INIT.
  16844. if test -n "\${ZSH_VERSION+set}" ; then
  16845. setopt NO_GLOB_SUBST
  16846. fi
  16847. PACKAGE='$PACKAGE'
  16848. VERSION='$VERSION'
  16849. TIMESTAMP='$TIMESTAMP'
  16850. RM='$RM'
  16851. ofile='$ofile'
  16852. _ACEOF
  16853. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16854. # Handling of arguments.
  16855. for ac_config_target in $ac_config_targets
  16856. do
  16857. case $ac_config_target in
  16858. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  16859. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16860. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16861. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16862. "libmpg123.pc") CONFIG_FILES="$CONFIG_FILES libmpg123.pc" ;;
  16863. "mpg123.spec") CONFIG_FILES="$CONFIG_FILES mpg123.spec" ;;
  16864. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  16865. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  16866. "src/output/Makefile") CONFIG_FILES="$CONFIG_FILES src/output/Makefile" ;;
  16867. "src/libmpg123/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmpg123/Makefile" ;;
  16868. "src/libmpg123/mpg123.h") CONFIG_FILES="$CONFIG_FILES src/libmpg123/mpg123.h" ;;
  16869. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16870. esac
  16871. done
  16872. # If the user did not use the arguments to specify the items to instantiate,
  16873. # then the envvar interface is used. Set only those that are not.
  16874. # We use the long form for the default assignment because of an extremely
  16875. # bizarre bug on SunOS 4.1.3.
  16876. if $ac_need_defaults; then
  16877. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16878. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16879. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16880. fi
  16881. # Have a temporary directory for convenience. Make it in the build tree
  16882. # simply because there is no reason against having it here, and in addition,
  16883. # creating and moving files from /tmp can sometimes cause problems.
  16884. # Hook for its removal unless debugging.
  16885. # Note that there is a small window in which the directory will not be cleaned:
  16886. # after its creation but before its name has been assigned to `$tmp'.
  16887. $debug ||
  16888. {
  16889. tmp= ac_tmp=
  16890. trap 'exit_status=$?
  16891. : "${ac_tmp:=$tmp}"
  16892. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16893. ' 0
  16894. trap 'as_fn_exit 1' 1 2 13 15
  16895. }
  16896. # Create a (secure) tmp directory for tmp files.
  16897. {
  16898. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16899. test -d "$tmp"
  16900. } ||
  16901. {
  16902. tmp=./conf$$-$RANDOM
  16903. (umask 077 && mkdir "$tmp")
  16904. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16905. ac_tmp=$tmp
  16906. # Set up the scripts for CONFIG_FILES section.
  16907. # No need to generate them if there are no CONFIG_FILES.
  16908. # This happens for instance with `./config.status config.h'.
  16909. if test -n "$CONFIG_FILES"; then
  16910. ac_cr=`echo X | tr X '\015'`
  16911. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16912. # But we know of no other shell where ac_cr would be empty at this
  16913. # point, so we can use a bashism as a fallback.
  16914. if test "x$ac_cr" = x; then
  16915. eval ac_cr=\$\'\\r\'
  16916. fi
  16917. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16918. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16919. ac_cs_awk_cr='\\r'
  16920. else
  16921. ac_cs_awk_cr=$ac_cr
  16922. fi
  16923. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16924. _ACEOF
  16925. {
  16926. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16927. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16928. echo "_ACEOF"
  16929. } >conf$$subs.sh ||
  16930. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16931. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16932. ac_delim='%!_!# '
  16933. for ac_last_try in false false false false false :; do
  16934. . ./conf$$subs.sh ||
  16935. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16936. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16937. if test $ac_delim_n = $ac_delim_num; then
  16938. break
  16939. elif $ac_last_try; then
  16940. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16941. else
  16942. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16943. fi
  16944. done
  16945. rm -f conf$$subs.sh
  16946. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16947. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16948. _ACEOF
  16949. sed -n '
  16950. h
  16951. s/^/S["/; s/!.*/"]=/
  16952. p
  16953. g
  16954. s/^[^!]*!//
  16955. :repl
  16956. t repl
  16957. s/'"$ac_delim"'$//
  16958. t delim
  16959. :nl
  16960. h
  16961. s/\(.\{148\}\)..*/\1/
  16962. t more1
  16963. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16964. p
  16965. n
  16966. b repl
  16967. :more1
  16968. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16969. p
  16970. g
  16971. s/.\{148\}//
  16972. t nl
  16973. :delim
  16974. h
  16975. s/\(.\{148\}\)..*/\1/
  16976. t more2
  16977. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16978. p
  16979. b
  16980. :more2
  16981. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16982. p
  16983. g
  16984. s/.\{148\}//
  16985. t delim
  16986. ' <conf$$subs.awk | sed '
  16987. /^[^""]/{
  16988. N
  16989. s/\n//
  16990. }
  16991. ' >>$CONFIG_STATUS || ac_write_fail=1
  16992. rm -f conf$$subs.awk
  16993. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16994. _ACAWK
  16995. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16996. for (key in S) S_is_set[key] = 1
  16997. FS = ""
  16998. }
  16999. {
  17000. line = $ 0
  17001. nfields = split(line, field, "@")
  17002. substed = 0
  17003. len = length(field[1])
  17004. for (i = 2; i < nfields; i++) {
  17005. key = field[i]
  17006. keylen = length(key)
  17007. if (S_is_set[key]) {
  17008. value = S[key]
  17009. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  17010. len += length(value) + length(field[++i])
  17011. substed = 1
  17012. } else
  17013. len += 1 + keylen
  17014. }
  17015. print line
  17016. }
  17017. _ACAWK
  17018. _ACEOF
  17019. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17020. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  17021. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  17022. else
  17023. cat
  17024. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  17025. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  17026. _ACEOF
  17027. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  17028. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  17029. # trailing colons and then remove the whole line if VPATH becomes empty
  17030. # (actually we leave an empty line to preserve line numbers).
  17031. if test "x$srcdir" = x.; then
  17032. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  17033. h
  17034. s///
  17035. s/^/:/
  17036. s/[ ]*$/:/
  17037. s/:\$(srcdir):/:/g
  17038. s/:\${srcdir}:/:/g
  17039. s/:@srcdir@:/:/g
  17040. s/^:*//
  17041. s/:*$//
  17042. x
  17043. s/\(=[ ]*\).*/\1/
  17044. G
  17045. s/\n//
  17046. s/^[^=]*=[ ]*$//
  17047. }'
  17048. fi
  17049. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17050. fi # test -n "$CONFIG_FILES"
  17051. # Set up the scripts for CONFIG_HEADERS section.
  17052. # No need to generate them if there are no CONFIG_HEADERS.
  17053. # This happens for instance with `./config.status Makefile'.
  17054. if test -n "$CONFIG_HEADERS"; then
  17055. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  17056. BEGIN {
  17057. _ACEOF
  17058. # Transform confdefs.h into an awk script `defines.awk', embedded as
  17059. # here-document in config.status, that substitutes the proper values into
  17060. # config.h.in to produce config.h.
  17061. # Create a delimiter string that does not exist in confdefs.h, to ease
  17062. # handling of long lines.
  17063. ac_delim='%!_!# '
  17064. for ac_last_try in false false :; do
  17065. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  17066. if test -z "$ac_tt"; then
  17067. break
  17068. elif $ac_last_try; then
  17069. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  17070. else
  17071. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17072. fi
  17073. done
  17074. # For the awk script, D is an array of macro values keyed by name,
  17075. # likewise P contains macro parameters if any. Preserve backslash
  17076. # newline sequences.
  17077. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  17078. sed -n '
  17079. s/.\{148\}/&'"$ac_delim"'/g
  17080. t rset
  17081. :rset
  17082. s/^[ ]*#[ ]*define[ ][ ]*/ /
  17083. t def
  17084. d
  17085. :def
  17086. s/\\$//
  17087. t bsnl
  17088. s/["\\]/\\&/g
  17089. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  17090. D["\1"]=" \3"/p
  17091. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  17092. d
  17093. :bsnl
  17094. s/["\\]/\\&/g
  17095. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  17096. D["\1"]=" \3\\\\\\n"\\/p
  17097. t cont
  17098. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  17099. t cont
  17100. d
  17101. :cont
  17102. n
  17103. s/.\{148\}/&'"$ac_delim"'/g
  17104. t clear
  17105. :clear
  17106. s/\\$//
  17107. t bsnlc
  17108. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  17109. d
  17110. :bsnlc
  17111. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  17112. b cont
  17113. ' <confdefs.h | sed '
  17114. s/'"$ac_delim"'/"\\\
  17115. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  17116. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17117. for (key in D) D_is_set[key] = 1
  17118. FS = ""
  17119. }
  17120. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  17121. line = \$ 0
  17122. split(line, arg, " ")
  17123. if (arg[1] == "#") {
  17124. defundef = arg[2]
  17125. mac1 = arg[3]
  17126. } else {
  17127. defundef = substr(arg[1], 2)
  17128. mac1 = arg[2]
  17129. }
  17130. split(mac1, mac2, "(") #)
  17131. macro = mac2[1]
  17132. prefix = substr(line, 1, index(line, defundef) - 1)
  17133. if (D_is_set[macro]) {
  17134. # Preserve the white space surrounding the "#".
  17135. print prefix "define", macro P[macro] D[macro]
  17136. next
  17137. } else {
  17138. # Replace #undef with comments. This is necessary, for example,
  17139. # in the case of _POSIX_SOURCE, which is predefined and required
  17140. # on some systems where configure will not decide to define it.
  17141. if (defundef == "undef") {
  17142. print "/*", prefix defundef, macro, "*/"
  17143. next
  17144. }
  17145. }
  17146. }
  17147. { print }
  17148. _ACAWK
  17149. _ACEOF
  17150. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17151. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  17152. fi # test -n "$CONFIG_HEADERS"
  17153. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  17154. shift
  17155. for ac_tag
  17156. do
  17157. case $ac_tag in
  17158. :[FHLC]) ac_mode=$ac_tag; continue;;
  17159. esac
  17160. case $ac_mode$ac_tag in
  17161. :[FHL]*:*);;
  17162. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  17163. :[FH]-) ac_tag=-:-;;
  17164. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  17165. esac
  17166. ac_save_IFS=$IFS
  17167. IFS=:
  17168. set x $ac_tag
  17169. IFS=$ac_save_IFS
  17170. shift
  17171. ac_file=$1
  17172. shift
  17173. case $ac_mode in
  17174. :L) ac_source=$1;;
  17175. :[FH])
  17176. ac_file_inputs=
  17177. for ac_f
  17178. do
  17179. case $ac_f in
  17180. -) ac_f="$ac_tmp/stdin";;
  17181. *) # Look for the file first in the build tree, then in the source tree
  17182. # (if the path is not absolute). The absolute path cannot be DOS-style,
  17183. # because $ac_f cannot contain `:'.
  17184. test -f "$ac_f" ||
  17185. case $ac_f in
  17186. [\\/$]*) false;;
  17187. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  17188. esac ||
  17189. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  17190. esac
  17191. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  17192. as_fn_append ac_file_inputs " '$ac_f'"
  17193. done
  17194. # Let's still pretend it is `configure' which instantiates (i.e., don't
  17195. # use $as_me), people would be surprised to read:
  17196. # /* config.h. Generated by config.status. */
  17197. configure_input='Generated from '`
  17198. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  17199. `' by configure.'
  17200. if test x"$ac_file" != x-; then
  17201. configure_input="$ac_file. $configure_input"
  17202. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  17203. $as_echo "$as_me: creating $ac_file" >&6;}
  17204. fi
  17205. # Neutralize special characters interpreted by sed in replacement strings.
  17206. case $configure_input in #(
  17207. *\&* | *\|* | *\\* )
  17208. ac_sed_conf_input=`$as_echo "$configure_input" |
  17209. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  17210. *) ac_sed_conf_input=$configure_input;;
  17211. esac
  17212. case $ac_tag in
  17213. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  17214. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  17215. esac
  17216. ;;
  17217. esac
  17218. ac_dir=`$as_dirname -- "$ac_file" ||
  17219. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17220. X"$ac_file" : 'X\(//\)[^/]' \| \
  17221. X"$ac_file" : 'X\(//\)$' \| \
  17222. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  17223. $as_echo X"$ac_file" |
  17224. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17225. s//\1/
  17226. q
  17227. }
  17228. /^X\(\/\/\)[^/].*/{
  17229. s//\1/
  17230. q
  17231. }
  17232. /^X\(\/\/\)$/{
  17233. s//\1/
  17234. q
  17235. }
  17236. /^X\(\/\).*/{
  17237. s//\1/
  17238. q
  17239. }
  17240. s/.*/./; q'`
  17241. as_dir="$ac_dir"; as_fn_mkdir_p
  17242. ac_builddir=.
  17243. case "$ac_dir" in
  17244. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17245. *)
  17246. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17247. # A ".." for each directory in $ac_dir_suffix.
  17248. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17249. case $ac_top_builddir_sub in
  17250. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17251. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17252. esac ;;
  17253. esac
  17254. ac_abs_top_builddir=$ac_pwd
  17255. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17256. # for backward compatibility:
  17257. ac_top_builddir=$ac_top_build_prefix
  17258. case $srcdir in
  17259. .) # We are building in place.
  17260. ac_srcdir=.
  17261. ac_top_srcdir=$ac_top_builddir_sub
  17262. ac_abs_top_srcdir=$ac_pwd ;;
  17263. [\\/]* | ?:[\\/]* ) # Absolute name.
  17264. ac_srcdir=$srcdir$ac_dir_suffix;
  17265. ac_top_srcdir=$srcdir
  17266. ac_abs_top_srcdir=$srcdir ;;
  17267. *) # Relative name.
  17268. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17269. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17270. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17271. esac
  17272. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17273. case $ac_mode in
  17274. :F)
  17275. #
  17276. # CONFIG_FILE
  17277. #
  17278. case $INSTALL in
  17279. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17280. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17281. esac
  17282. ac_MKDIR_P=$MKDIR_P
  17283. case $MKDIR_P in
  17284. [\\/$]* | ?:[\\/]* ) ;;
  17285. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  17286. esac
  17287. _ACEOF
  17288. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17289. # If the template does not know about datarootdir, expand it.
  17290. # FIXME: This hack should be removed a few years after 2.60.
  17291. ac_datarootdir_hack=; ac_datarootdir_seen=
  17292. ac_sed_dataroot='
  17293. /datarootdir/ {
  17294. p
  17295. q
  17296. }
  17297. /@datadir@/p
  17298. /@docdir@/p
  17299. /@infodir@/p
  17300. /@localedir@/p
  17301. /@mandir@/p'
  17302. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  17303. *datarootdir*) ac_datarootdir_seen=yes;;
  17304. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17305. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17306. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17307. _ACEOF
  17308. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17309. ac_datarootdir_hack='
  17310. s&@datadir@&$datadir&g
  17311. s&@docdir@&$docdir&g
  17312. s&@infodir@&$infodir&g
  17313. s&@localedir@&$localedir&g
  17314. s&@mandir@&$mandir&g
  17315. s&\\\${datarootdir}&$datarootdir&g' ;;
  17316. esac
  17317. _ACEOF
  17318. # Neutralize VPATH when `$srcdir' = `.'.
  17319. # Shell code in configure.ac might set extrasub.
  17320. # FIXME: do we really want to maintain this feature?
  17321. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17322. ac_sed_extra="$ac_vpsub
  17323. $extrasub
  17324. _ACEOF
  17325. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17326. :t
  17327. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17328. s|@configure_input@|$ac_sed_conf_input|;t t
  17329. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17330. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  17331. s&@srcdir@&$ac_srcdir&;t t
  17332. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17333. s&@top_srcdir@&$ac_top_srcdir&;t t
  17334. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17335. s&@builddir@&$ac_builddir&;t t
  17336. s&@abs_builddir@&$ac_abs_builddir&;t t
  17337. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17338. s&@INSTALL@&$ac_INSTALL&;t t
  17339. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  17340. $ac_datarootdir_hack
  17341. "
  17342. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  17343. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17344. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17345. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  17346. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  17347. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  17348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17349. which seems to be undefined. Please make sure it is defined" >&5
  17350. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17351. which seems to be undefined. Please make sure it is defined" >&2;}
  17352. rm -f "$ac_tmp/stdin"
  17353. case $ac_file in
  17354. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  17355. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  17356. esac \
  17357. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17358. ;;
  17359. :H)
  17360. #
  17361. # CONFIG_HEADER
  17362. #
  17363. if test x"$ac_file" != x-; then
  17364. {
  17365. $as_echo "/* $configure_input */" \
  17366. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  17367. } >"$ac_tmp/config.h" \
  17368. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17369. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  17370. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  17371. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  17372. else
  17373. rm -f "$ac_file"
  17374. mv "$ac_tmp/config.h" "$ac_file" \
  17375. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17376. fi
  17377. else
  17378. $as_echo "/* $configure_input */" \
  17379. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  17380. || as_fn_error $? "could not create -" "$LINENO" 5
  17381. fi
  17382. # Compute "$ac_file"'s index in $config_headers.
  17383. _am_arg="$ac_file"
  17384. _am_stamp_count=1
  17385. for _am_header in $config_headers :; do
  17386. case $_am_header in
  17387. $_am_arg | $_am_arg:* )
  17388. break ;;
  17389. * )
  17390. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  17391. esac
  17392. done
  17393. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  17394. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17395. X"$_am_arg" : 'X\(//\)[^/]' \| \
  17396. X"$_am_arg" : 'X\(//\)$' \| \
  17397. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  17398. $as_echo X"$_am_arg" |
  17399. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17400. s//\1/
  17401. q
  17402. }
  17403. /^X\(\/\/\)[^/].*/{
  17404. s//\1/
  17405. q
  17406. }
  17407. /^X\(\/\/\)$/{
  17408. s//\1/
  17409. q
  17410. }
  17411. /^X\(\/\).*/{
  17412. s//\1/
  17413. q
  17414. }
  17415. s/.*/./; q'`/stamp-h$_am_stamp_count
  17416. ;;
  17417. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  17418. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17419. ;;
  17420. esac
  17421. case $ac_file$ac_mode in
  17422. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17423. # Older Autoconf quotes --file arguments for eval, but not when files
  17424. # are listed without --file. Let's play safe and only enable the eval
  17425. # if we detect the quoting.
  17426. case $CONFIG_FILES in
  17427. *\'*) eval set x "$CONFIG_FILES" ;;
  17428. *) set x $CONFIG_FILES ;;
  17429. esac
  17430. shift
  17431. for mf
  17432. do
  17433. # Strip MF so we end up with the name of the file.
  17434. mf=`echo "$mf" | sed -e 's/:.*$//'`
  17435. # Check whether this is an Automake generated Makefile or not.
  17436. # We used to match only the files named 'Makefile.in', but
  17437. # some people rename them; so instead we look at the file content.
  17438. # Grep'ing the first line is not enough: some people post-process
  17439. # each Makefile.in and add a new line on top of each file to say so.
  17440. # Grep'ing the whole file is not good either: AIX grep has a line
  17441. # limit of 2048, but all sed's we know have understand at least 4000.
  17442. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  17443. dirpart=`$as_dirname -- "$mf" ||
  17444. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17445. X"$mf" : 'X\(//\)[^/]' \| \
  17446. X"$mf" : 'X\(//\)$' \| \
  17447. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17448. $as_echo X"$mf" |
  17449. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17450. s//\1/
  17451. q
  17452. }
  17453. /^X\(\/\/\)[^/].*/{
  17454. s//\1/
  17455. q
  17456. }
  17457. /^X\(\/\/\)$/{
  17458. s//\1/
  17459. q
  17460. }
  17461. /^X\(\/\).*/{
  17462. s//\1/
  17463. q
  17464. }
  17465. s/.*/./; q'`
  17466. else
  17467. continue
  17468. fi
  17469. # Extract the definition of DEPDIR, am__include, and am__quote
  17470. # from the Makefile without running 'make'.
  17471. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17472. test -z "$DEPDIR" && continue
  17473. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17474. test -z "$am__include" && continue
  17475. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17476. # Find all dependency output files, they are included files with
  17477. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17478. # simplest approach to changing $(DEPDIR) to its actual value in the
  17479. # expansion.
  17480. for file in `sed -n "
  17481. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17482. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  17483. # Make sure the directory exists.
  17484. test -f "$dirpart/$file" && continue
  17485. fdir=`$as_dirname -- "$file" ||
  17486. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17487. X"$file" : 'X\(//\)[^/]' \| \
  17488. X"$file" : 'X\(//\)$' \| \
  17489. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17490. $as_echo X"$file" |
  17491. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17492. s//\1/
  17493. q
  17494. }
  17495. /^X\(\/\/\)[^/].*/{
  17496. s//\1/
  17497. q
  17498. }
  17499. /^X\(\/\/\)$/{
  17500. s//\1/
  17501. q
  17502. }
  17503. /^X\(\/\).*/{
  17504. s//\1/
  17505. q
  17506. }
  17507. s/.*/./; q'`
  17508. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  17509. # echo "creating $dirpart/$file"
  17510. echo '# dummy' > "$dirpart/$file"
  17511. done
  17512. done
  17513. }
  17514. ;;
  17515. "libtool":C)
  17516. # See if we are running on zsh, and set the options which allow our
  17517. # commands through without removal of \ escapes.
  17518. if test -n "${ZSH_VERSION+set}" ; then
  17519. setopt NO_GLOB_SUBST
  17520. fi
  17521. cfgfile="${ofile}T"
  17522. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17523. $RM "$cfgfile"
  17524. cat <<_LT_EOF >> "$cfgfile"
  17525. #! $SHELL
  17526. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  17527. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  17528. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17529. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17530. #
  17531. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  17532. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  17533. # Foundation, Inc.
  17534. # Written by Gordon Matzigkeit, 1996
  17535. #
  17536. # This file is part of GNU Libtool.
  17537. #
  17538. # GNU Libtool is free software; you can redistribute it and/or
  17539. # modify it under the terms of the GNU General Public License as
  17540. # published by the Free Software Foundation; either version 2 of
  17541. # the License, or (at your option) any later version.
  17542. #
  17543. # As a special exception to the GNU General Public License,
  17544. # if you distribute this file as part of a program or library that
  17545. # is built using GNU Libtool, you may include this file under the
  17546. # same distribution terms that you use for the rest of that program.
  17547. #
  17548. # GNU Libtool is distributed in the hope that it will be useful,
  17549. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17550. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17551. # GNU General Public License for more details.
  17552. #
  17553. # You should have received a copy of the GNU General Public License
  17554. # along with GNU Libtool; see the file COPYING. If not, a copy
  17555. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  17556. # obtained by writing to the Free Software Foundation, Inc.,
  17557. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17558. # The names of the tagged configurations supported by this script.
  17559. available_tags=""
  17560. # ### BEGIN LIBTOOL CONFIG
  17561. # Whether or not to build static libraries.
  17562. build_old_libs=$enable_static
  17563. # Whether or not to build shared libraries.
  17564. build_libtool_libs=$enable_shared
  17565. # Assembler program.
  17566. AS=$lt_AS
  17567. # DLL creation program.
  17568. DLLTOOL=$lt_DLLTOOL
  17569. # Object dumper program.
  17570. OBJDUMP=$lt_OBJDUMP
  17571. # Which release of libtool.m4 was used?
  17572. macro_version=$macro_version
  17573. macro_revision=$macro_revision
  17574. # What type of objects to build.
  17575. pic_mode=$pic_mode
  17576. # Whether or not to optimize for fast installation.
  17577. fast_install=$enable_fast_install
  17578. # Shell to use when invoking shell scripts.
  17579. SHELL=$lt_SHELL
  17580. # An echo program that protects backslashes.
  17581. ECHO=$lt_ECHO
  17582. # The PATH separator for the build system.
  17583. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  17584. # The host system.
  17585. host_alias=$host_alias
  17586. host=$host
  17587. host_os=$host_os
  17588. # The build system.
  17589. build_alias=$build_alias
  17590. build=$build
  17591. build_os=$build_os
  17592. # A sed program that does not truncate output.
  17593. SED=$lt_SED
  17594. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17595. Xsed="\$SED -e 1s/^X//"
  17596. # A grep program that handles long lines.
  17597. GREP=$lt_GREP
  17598. # An ERE matcher.
  17599. EGREP=$lt_EGREP
  17600. # A literal string matcher.
  17601. FGREP=$lt_FGREP
  17602. # A BSD- or MS-compatible name lister.
  17603. NM=$lt_NM
  17604. # Whether we need soft or hard links.
  17605. LN_S=$lt_LN_S
  17606. # What is the maximum length of a command?
  17607. max_cmd_len=$max_cmd_len
  17608. # Object file suffix (normally "o").
  17609. objext=$ac_objext
  17610. # Executable file suffix (normally "").
  17611. exeext=$exeext
  17612. # whether the shell understands "unset".
  17613. lt_unset=$lt_unset
  17614. # turn spaces into newlines.
  17615. SP2NL=$lt_lt_SP2NL
  17616. # turn newlines into spaces.
  17617. NL2SP=$lt_lt_NL2SP
  17618. # convert \$build file names to \$host format.
  17619. to_host_file_cmd=$lt_cv_to_host_file_cmd
  17620. # convert \$build files to toolchain format.
  17621. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17622. # Method to check whether dependent libraries are shared objects.
  17623. deplibs_check_method=$lt_deplibs_check_method
  17624. # Command to use when deplibs_check_method = "file_magic".
  17625. file_magic_cmd=$lt_file_magic_cmd
  17626. # How to find potential files when deplibs_check_method = "file_magic".
  17627. file_magic_glob=$lt_file_magic_glob
  17628. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  17629. want_nocaseglob=$lt_want_nocaseglob
  17630. # Command to associate shared and link libraries.
  17631. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  17632. # The archiver.
  17633. AR=$lt_AR
  17634. # Flags to create an archive.
  17635. AR_FLAGS=$lt_AR_FLAGS
  17636. # How to feed a file listing to the archiver.
  17637. archiver_list_spec=$lt_archiver_list_spec
  17638. # A symbol stripping program.
  17639. STRIP=$lt_STRIP
  17640. # Commands used to install an old-style archive.
  17641. RANLIB=$lt_RANLIB
  17642. old_postinstall_cmds=$lt_old_postinstall_cmds
  17643. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17644. # Whether to use a lock for old archive extraction.
  17645. lock_old_archive_extraction=$lock_old_archive_extraction
  17646. # A C compiler.
  17647. LTCC=$lt_CC
  17648. # LTCC compiler flags.
  17649. LTCFLAGS=$lt_CFLAGS
  17650. # Take the output of nm and produce a listing of raw symbols and C names.
  17651. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17652. # Transform the output of nm in a proper C declaration.
  17653. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17654. # Transform the output of nm in a C name address pair.
  17655. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17656. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17657. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17658. # Specify filename containing input files for \$NM.
  17659. nm_file_list_spec=$lt_nm_file_list_spec
  17660. # The root where to search for dependent libraries,and in which our libraries should be installed.
  17661. lt_sysroot=$lt_sysroot
  17662. # The name of the directory that contains temporary libtool files.
  17663. objdir=$objdir
  17664. # Used to examine libraries when file_magic_cmd begins with "file".
  17665. MAGIC_CMD=$MAGIC_CMD
  17666. # Must we lock files when doing compilation?
  17667. need_locks=$lt_need_locks
  17668. # Manifest tool.
  17669. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17670. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17671. DSYMUTIL=$lt_DSYMUTIL
  17672. # Tool to change global to local symbols on Mac OS X.
  17673. NMEDIT=$lt_NMEDIT
  17674. # Tool to manipulate fat objects and archives on Mac OS X.
  17675. LIPO=$lt_LIPO
  17676. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17677. OTOOL=$lt_OTOOL
  17678. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17679. OTOOL64=$lt_OTOOL64
  17680. # Old archive suffix (normally "a").
  17681. libext=$libext
  17682. # Shared library suffix (normally ".so").
  17683. shrext_cmds=$lt_shrext_cmds
  17684. # The commands to extract the exported symbol list from a shared archive.
  17685. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17686. # Variables whose values should be saved in libtool wrapper scripts and
  17687. # restored at link time.
  17688. variables_saved_for_relink=$lt_variables_saved_for_relink
  17689. # Do we need the "lib" prefix for modules?
  17690. need_lib_prefix=$need_lib_prefix
  17691. # Do we need a version for libraries?
  17692. need_version=$need_version
  17693. # Library versioning type.
  17694. version_type=$version_type
  17695. # Shared library runtime path variable.
  17696. runpath_var=$runpath_var
  17697. # Shared library path variable.
  17698. shlibpath_var=$shlibpath_var
  17699. # Is shlibpath searched before the hard-coded library search path?
  17700. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17701. # Format of library name prefix.
  17702. libname_spec=$lt_libname_spec
  17703. # List of archive names. First name is the real one, the rest are links.
  17704. # The last name is the one that the linker finds with -lNAME
  17705. library_names_spec=$lt_library_names_spec
  17706. # The coded name of the library, if different from the real name.
  17707. soname_spec=$lt_soname_spec
  17708. # Permission mode override for installation of shared libraries.
  17709. install_override_mode=$lt_install_override_mode
  17710. # Command to use after installation of a shared archive.
  17711. postinstall_cmds=$lt_postinstall_cmds
  17712. # Command to use after uninstallation of a shared archive.
  17713. postuninstall_cmds=$lt_postuninstall_cmds
  17714. # Commands used to finish a libtool library installation in a directory.
  17715. finish_cmds=$lt_finish_cmds
  17716. # As "finish_cmds", except a single script fragment to be evaled but
  17717. # not shown.
  17718. finish_eval=$lt_finish_eval
  17719. # Whether we should hardcode library paths into libraries.
  17720. hardcode_into_libs=$hardcode_into_libs
  17721. # Compile-time system search path for libraries.
  17722. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17723. # Run-time system search path for libraries.
  17724. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17725. # Whether dlopen is supported.
  17726. dlopen_support=$enable_dlopen
  17727. # Whether dlopen of programs is supported.
  17728. dlopen_self=$enable_dlopen_self
  17729. # Whether dlopen of statically linked programs is supported.
  17730. dlopen_self_static=$enable_dlopen_self_static
  17731. # Commands to strip libraries.
  17732. old_striplib=$lt_old_striplib
  17733. striplib=$lt_striplib
  17734. # The linker used to build libraries.
  17735. LD=$lt_LD
  17736. # How to create reloadable object files.
  17737. reload_flag=$lt_reload_flag
  17738. reload_cmds=$lt_reload_cmds
  17739. # Commands used to build an old-style archive.
  17740. old_archive_cmds=$lt_old_archive_cmds
  17741. # A language specific compiler.
  17742. CC=$lt_compiler
  17743. # Is the compiler the GNU compiler?
  17744. with_gcc=$GCC
  17745. # Compiler flag to turn off builtin functions.
  17746. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17747. # Additional compiler flags for building library objects.
  17748. pic_flag=$lt_lt_prog_compiler_pic
  17749. # How to pass a linker flag through the compiler.
  17750. wl=$lt_lt_prog_compiler_wl
  17751. # Compiler flag to prevent dynamic linking.
  17752. link_static_flag=$lt_lt_prog_compiler_static
  17753. # Does compiler simultaneously support -c and -o options?
  17754. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17755. # Whether or not to add -lc for building shared libraries.
  17756. build_libtool_need_lc=$archive_cmds_need_lc
  17757. # Whether or not to disallow shared libs when runtime libs are static.
  17758. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17759. # Compiler flag to allow reflexive dlopens.
  17760. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17761. # Compiler flag to generate shared objects directly from archives.
  17762. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17763. # Whether the compiler copes with passing no objects directly.
  17764. compiler_needs_object=$lt_compiler_needs_object
  17765. # Create an old-style archive from a shared archive.
  17766. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17767. # Create a temporary old-style archive to link instead of a shared archive.
  17768. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17769. # Commands used to build a shared archive.
  17770. archive_cmds=$lt_archive_cmds
  17771. archive_expsym_cmds=$lt_archive_expsym_cmds
  17772. # Commands used to build a loadable module if different from building
  17773. # a shared archive.
  17774. module_cmds=$lt_module_cmds
  17775. module_expsym_cmds=$lt_module_expsym_cmds
  17776. # Whether we are building with GNU ld or not.
  17777. with_gnu_ld=$lt_with_gnu_ld
  17778. # Flag that allows shared libraries with undefined symbols to be built.
  17779. allow_undefined_flag=$lt_allow_undefined_flag
  17780. # Flag that enforces no undefined symbols.
  17781. no_undefined_flag=$lt_no_undefined_flag
  17782. # Flag to hardcode \$libdir into a binary during linking.
  17783. # This must work even if \$libdir does not exist
  17784. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17785. # Whether we need a single "-rpath" flag with a separated argument.
  17786. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17787. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17788. # DIR into the resulting binary.
  17789. hardcode_direct=$hardcode_direct
  17790. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17791. # DIR into the resulting binary and the resulting library dependency is
  17792. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17793. # library is relocated.
  17794. hardcode_direct_absolute=$hardcode_direct_absolute
  17795. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17796. # into the resulting binary.
  17797. hardcode_minus_L=$hardcode_minus_L
  17798. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17799. # into the resulting binary.
  17800. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17801. # Set to "yes" if building a shared library automatically hardcodes DIR
  17802. # into the library and all subsequent libraries and executables linked
  17803. # against it.
  17804. hardcode_automatic=$hardcode_automatic
  17805. # Set to yes if linker adds runtime paths of dependent libraries
  17806. # to runtime path list.
  17807. inherit_rpath=$inherit_rpath
  17808. # Whether libtool must link a program against all its dependency libraries.
  17809. link_all_deplibs=$link_all_deplibs
  17810. # Set to "yes" if exported symbols are required.
  17811. always_export_symbols=$always_export_symbols
  17812. # The commands to list exported symbols.
  17813. export_symbols_cmds=$lt_export_symbols_cmds
  17814. # Symbols that should not be listed in the preloaded symbols.
  17815. exclude_expsyms=$lt_exclude_expsyms
  17816. # Symbols that must always be exported.
  17817. include_expsyms=$lt_include_expsyms
  17818. # Commands necessary for linking programs (against libraries) with templates.
  17819. prelink_cmds=$lt_prelink_cmds
  17820. # Commands necessary for finishing linking programs.
  17821. postlink_cmds=$lt_postlink_cmds
  17822. # Specify filename containing input files.
  17823. file_list_spec=$lt_file_list_spec
  17824. # How to hardcode a shared library path into an executable.
  17825. hardcode_action=$hardcode_action
  17826. # ### END LIBTOOL CONFIG
  17827. _LT_EOF
  17828. case $host_os in
  17829. aix3*)
  17830. cat <<\_LT_EOF >> "$cfgfile"
  17831. # AIX sometimes has problems with the GCC collect2 program. For some
  17832. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17833. # vanish in a puff of smoke.
  17834. if test "X${COLLECT_NAMES+set}" != Xset; then
  17835. COLLECT_NAMES=
  17836. export COLLECT_NAMES
  17837. fi
  17838. _LT_EOF
  17839. ;;
  17840. esac
  17841. ltmain="$ac_aux_dir/ltmain.sh"
  17842. # We use sed instead of cat because bash on DJGPP gets confused if
  17843. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17844. # text mode, it properly converts lines to CR/LF. This bash problem
  17845. # is reportedly fixed, but why not run on old versions too?
  17846. sed '$q' "$ltmain" >> "$cfgfile" \
  17847. || (rm -f "$cfgfile"; exit 1)
  17848. if test x"$xsi_shell" = xyes; then
  17849. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  17850. func_dirname ()\
  17851. {\
  17852. \ case ${1} in\
  17853. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17854. \ * ) func_dirname_result="${3}" ;;\
  17855. \ esac\
  17856. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  17857. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17858. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17859. test 0 -eq $? || _lt_function_replace_fail=:
  17860. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  17861. func_basename ()\
  17862. {\
  17863. \ func_basename_result="${1##*/}"\
  17864. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17865. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17866. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17867. test 0 -eq $? || _lt_function_replace_fail=:
  17868. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  17869. func_dirname_and_basename ()\
  17870. {\
  17871. \ case ${1} in\
  17872. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17873. \ * ) func_dirname_result="${3}" ;;\
  17874. \ esac\
  17875. \ func_basename_result="${1##*/}"\
  17876. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17877. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17878. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17879. test 0 -eq $? || _lt_function_replace_fail=:
  17880. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  17881. func_stripname ()\
  17882. {\
  17883. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  17884. \ # positional parameters, so assign one to ordinary parameter first.\
  17885. \ func_stripname_result=${3}\
  17886. \ func_stripname_result=${func_stripname_result#"${1}"}\
  17887. \ func_stripname_result=${func_stripname_result%"${2}"}\
  17888. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  17889. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17890. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17891. test 0 -eq $? || _lt_function_replace_fail=:
  17892. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  17893. func_split_long_opt ()\
  17894. {\
  17895. \ func_split_long_opt_name=${1%%=*}\
  17896. \ func_split_long_opt_arg=${1#*=}\
  17897. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17898. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17899. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17900. test 0 -eq $? || _lt_function_replace_fail=:
  17901. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  17902. func_split_short_opt ()\
  17903. {\
  17904. \ func_split_short_opt_arg=${1#??}\
  17905. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  17906. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17907. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17908. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17909. test 0 -eq $? || _lt_function_replace_fail=:
  17910. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  17911. func_lo2o ()\
  17912. {\
  17913. \ case ${1} in\
  17914. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  17915. \ *) func_lo2o_result=${1} ;;\
  17916. \ esac\
  17917. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  17918. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17919. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17920. test 0 -eq $? || _lt_function_replace_fail=:
  17921. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  17922. func_xform ()\
  17923. {\
  17924. func_xform_result=${1%.*}.lo\
  17925. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  17926. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17927. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17928. test 0 -eq $? || _lt_function_replace_fail=:
  17929. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  17930. func_arith ()\
  17931. {\
  17932. func_arith_result=$(( $* ))\
  17933. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  17934. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17935. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17936. test 0 -eq $? || _lt_function_replace_fail=:
  17937. sed -e '/^func_len ()$/,/^} # func_len /c\
  17938. func_len ()\
  17939. {\
  17940. func_len_result=${#1}\
  17941. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  17942. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17943. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17944. test 0 -eq $? || _lt_function_replace_fail=:
  17945. fi
  17946. if test x"$lt_shell_append" = xyes; then
  17947. sed -e '/^func_append ()$/,/^} # func_append /c\
  17948. func_append ()\
  17949. {\
  17950. eval "${1}+=\\${2}"\
  17951. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  17952. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17953. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17954. test 0 -eq $? || _lt_function_replace_fail=:
  17955. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  17956. func_append_quoted ()\
  17957. {\
  17958. \ func_quote_for_eval "${2}"\
  17959. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  17960. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  17961. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17962. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17963. test 0 -eq $? || _lt_function_replace_fail=:
  17964. # Save a `func_append' function call where possible by direct use of '+='
  17965. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  17966. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17967. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17968. test 0 -eq $? || _lt_function_replace_fail=:
  17969. else
  17970. # Save a `func_append' function call even when '+=' is not available
  17971. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  17972. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17973. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17974. test 0 -eq $? || _lt_function_replace_fail=:
  17975. fi
  17976. if test x"$_lt_function_replace_fail" = x":"; then
  17977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  17978. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  17979. fi
  17980. mv -f "$cfgfile" "$ofile" ||
  17981. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17982. chmod +x "$ofile"
  17983. ;;
  17984. esac
  17985. done # for ac_tag
  17986. as_fn_exit 0
  17987. _ACEOF
  17988. ac_clean_files=$ac_clean_files_save
  17989. test $ac_write_fail = 0 ||
  17990. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17991. # configure is writing to config.log, and then calls config.status.
  17992. # config.status does its own redirection, appending to config.log.
  17993. # Unfortunately, on DOS this fails, as config.log is still kept open
  17994. # by configure, so config.status won't be able to write to it; its
  17995. # output is simply discarded. So we exec the FD to /dev/null,
  17996. # effectively closing config.log, so it can be properly (re)opened and
  17997. # appended to by config.status. When coming back to configure, we
  17998. # need to make the FD available again.
  17999. if test "$no_create" != yes; then
  18000. ac_cs_success=:
  18001. ac_config_status_args=
  18002. test "$silent" = yes &&
  18003. ac_config_status_args="$ac_config_status_args --quiet"
  18004. exec 5>/dev/null
  18005. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  18006. exec 5>>config.log
  18007. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  18008. # would make configure fail if this is the last instruction.
  18009. $ac_cs_success || as_fn_exit 1
  18010. fi
  18011. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  18012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  18013. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  18014. fi
  18015. echo "
  18016. $PACKAGE_NAME $PACKAGE_VERSION
  18017. Install path ............ $prefix
  18018. CPU Optimization ........ $cpu_type
  18019. Compiler Optimization ... $with_optimization
  18020. Gapless Support ......... $gapless
  18021. Debugging ............... $debugging
  18022. Seek table size ......... $seektable
  18023. FIFO support ............ $fifo
  18024. Buffer .................. $buffer
  18025. Network (http streams) .. $network
  18026. Network Sockets ......... $network_type
  18027. IPv6 (getaddrinfo) ...... $ipv6"
  18028. if test x"$LARGEFILE_BITS" = x; then
  18029. echo " File offsets ............ default"
  18030. else
  18031. echo " File offsets ............ $LARGEFILE_BITS"
  18032. echo " The lib will (try to) support default offset size, too."
  18033. fi
  18034. echo " LFS alias symbols ....... $lfs_alias ($LFS_ALIAS_BITS)"
  18035. echo " LFS alias type .......... $lfs_alias_type"
  18036. echo -n "
  18037. Core libmpg123 features:
  18038. Layer I ................. $layer1
  18039. Layer II ................ $layer2
  18040. Layer III ............... $layer3
  18041. NtoM resampling ......... $ntom
  18042. downsampled decoding .... $downsample
  18043. Feeder/buffered input ... $feeder
  18044. ID3v2 parsing ........... $id3v2
  18045. String API .............. $string
  18046. ICY parsing/conversion .. $icy
  18047. Error/warning messages .. $messages
  18048. Win32 Unicode File Open.. $win32_unicode
  18049. Feature Report Function.. $feature_report
  18050. Output formats (nofpu will disable all but 16 or 8 bit!):
  18051. 8 bit integer ........... $int8
  18052. 16 bit integer .......... $int16
  18053. 32/24 bit integer ....... $int32
  18054. real (32 bit float) ..... $real
  18055. Optimization detail:
  18056. Integer conversion ...... $integers
  18057. New/old WRITE_SAMPLE .... $newoldwritesample
  18058. new Huffman scheme ...... $newhuff
  18059. 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.
  18060. "
  18061. # just an empty line
  18062. echo
  18063. echo " Modules ................. $modules"
  18064. echo " Module suffix ........... $with_module_suffix"
  18065. echo " Checked audio modules ... $check_modules
  18066. Detected audio support ..$output_modules
  18067. Default output module ... $default_output_module
  18068. "
  18069. if test x"$modules" = xdisabled; then
  18070. echo "The _single_ active output module is being statically linked in.
  18071. "
  18072. fi
  18073. if test x"$with_optimization" = x0; then
  18074. echo "No optimization flags chosen, make sure you have something basic in your CFLAGS at least...
  18075. "
  18076. fi
  18077. if test x"$debugging" = xenabled; then
  18078. echo "CFLAGS='$CFLAGS'"
  18079. echo "LIBS='$LIBS'"
  18080. else
  18081. echo "Next type 'make' and then 'make install'."
  18082. fi