configure 588 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for lame 3.100.
  4. #
  5. # Report bugs to <lame-dev@lists.sf.net>.
  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 bug-autoconf@gnu.org and
  259. $0: lame-dev@lists.sf.net about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='lame'
  542. PACKAGE_TARNAME='lame'
  543. PACKAGE_VERSION='3.100'
  544. PACKAGE_STRING='lame 3.100'
  545. PACKAGE_BUGREPORT='lame-dev@lists.sf.net'
  546. PACKAGE_URL=''
  547. ac_unique_file="libmp3lame/lame.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. CONFIG_DEFS
  588. CPUCCODE
  589. CPUTYPE
  590. WITH_MP3RTP
  591. WITH_MP3X
  592. WITH_FRONTEND
  593. RM_F
  594. MAKEDEP
  595. NASM_FORMAT
  596. LIB_MINOR_VERSION
  597. LIB_MAJOR_VERSION
  598. LDADD
  599. CONFIG_MATH_LIB
  600. FRONTEND_LDADD
  601. FRONTEND_CFLAGS
  602. FRONTEND_LDFLAGS
  603. INCLUDES
  604. HAVE_NASM_FALSE
  605. HAVE_NASM_TRUE
  606. NASM
  607. WITH_VECTOR_FALSE
  608. WITH_VECTOR_TRUE
  609. WITH_XMM_FALSE
  610. WITH_XMM_TRUE
  611. LIB_WITH_DECODER_FALSE
  612. LIB_WITH_DECODER_TRUE
  613. SNDFILE_LIBS
  614. SNDFILE_CFLAGS
  615. PKG_CONFIG_LIBDIR
  616. PKG_CONFIG_PATH
  617. PKG_CONFIG
  618. GTK_LIBS
  619. GTK_CFLAGS
  620. GTK_CONFIG
  621. LTLIBICONV
  622. LIBICONV
  623. ALLOCA
  624. LIBTOOL_DEPS
  625. LT_SYS_LIBRARY_PATH
  626. OTOOL64
  627. OTOOL
  628. LIPO
  629. NMEDIT
  630. DSYMUTIL
  631. MANIFEST_TOOL
  632. RANLIB
  633. ac_ct_AR
  634. AR
  635. DLLTOOL
  636. OBJDUMP
  637. LN_S
  638. NM
  639. ac_ct_DUMPBIN
  640. DUMPBIN
  641. LD
  642. FGREP
  643. SED
  644. LIBTOOL
  645. EGREP
  646. GREP
  647. CPP
  648. am__fastdepCC_FALSE
  649. am__fastdepCC_TRUE
  650. CCDEPMODE
  651. am__nodep
  652. AMDEPBACKSLASH
  653. AMDEP_FALSE
  654. AMDEP_TRUE
  655. DEPDIR
  656. OBJEXT
  657. EXEEXT
  658. ac_ct_CC
  659. CPPFLAGS
  660. LDFLAGS
  661. CFLAGS
  662. CC
  663. am__quote
  664. am__include
  665. MAINT
  666. MAINTAINER_MODE_FALSE
  667. MAINTAINER_MODE_TRUE
  668. AM_BACKSLASH
  669. AM_DEFAULT_VERBOSITY
  670. AM_DEFAULT_V
  671. AM_V
  672. am__untar
  673. am__tar
  674. AMTAR
  675. am__leading_dot
  676. SET_MAKE
  677. AWK
  678. mkdir_p
  679. MKDIR_P
  680. INSTALL_STRIP_PROGRAM
  681. STRIP
  682. install_sh
  683. MAKEINFO
  684. AUTOHEADER
  685. AUTOMAKE
  686. AUTOCONF
  687. ACLOCAL
  688. VERSION
  689. PACKAGE
  690. CYGPATH_W
  691. am__isrc
  692. INSTALL_DATA
  693. INSTALL_SCRIPT
  694. INSTALL_PROGRAM
  695. host_os
  696. host_vendor
  697. host_cpu
  698. host
  699. build_os
  700. build_vendor
  701. build_cpu
  702. build
  703. target_alias
  704. host_alias
  705. build_alias
  706. LIBS
  707. ECHO_T
  708. ECHO_N
  709. ECHO_C
  710. DEFS
  711. mandir
  712. localedir
  713. libdir
  714. psdir
  715. pdfdir
  716. dvidir
  717. htmldir
  718. infodir
  719. docdir
  720. oldincludedir
  721. includedir
  722. localstatedir
  723. sharedstatedir
  724. sysconfdir
  725. datadir
  726. datarootdir
  727. libexecdir
  728. sbindir
  729. bindir
  730. program_transform_name
  731. prefix
  732. exec_prefix
  733. PACKAGE_URL
  734. PACKAGE_BUGREPORT
  735. PACKAGE_STRING
  736. PACKAGE_VERSION
  737. PACKAGE_TARNAME
  738. PACKAGE_NAME
  739. PATH_SEPARATOR
  740. SHELL'
  741. ac_subst_files=''
  742. ac_user_opts='
  743. enable_option_checking
  744. enable_silent_rules
  745. enable_maintainer_mode
  746. enable_dependency_tracking
  747. enable_shared
  748. enable_static
  749. with_pic
  750. enable_fast_install
  751. with_aix_soname
  752. with_gnu_ld
  753. with_sysroot
  754. enable_libtool_lock
  755. with_dmalloc
  756. enable_largefile
  757. enable_nasm
  758. enable_rpath
  759. with_libiconv_prefix
  760. enable_cpml
  761. with_gtk_prefix
  762. with_gtk_exec_prefix
  763. enable_gtktest
  764. enable_efence
  765. with_fileio
  766. enable_analyzer_hooks
  767. enable_decoder
  768. enable_frontend
  769. enable_mp3x
  770. enable_mp3rtp
  771. enable_dynamic_frontends
  772. enable_expopt
  773. enable_debug
  774. '
  775. ac_precious_vars='build_alias
  776. host_alias
  777. target_alias
  778. CC
  779. CFLAGS
  780. LDFLAGS
  781. LIBS
  782. CPPFLAGS
  783. CPP
  784. LT_SYS_LIBRARY_PATH
  785. PKG_CONFIG
  786. PKG_CONFIG_PATH
  787. PKG_CONFIG_LIBDIR
  788. SNDFILE_CFLAGS
  789. SNDFILE_LIBS'
  790. # Initialize some variables set by options.
  791. ac_init_help=
  792. ac_init_version=false
  793. ac_unrecognized_opts=
  794. ac_unrecognized_sep=
  795. # The variables have the same names as the options, with
  796. # dashes changed to underlines.
  797. cache_file=/dev/null
  798. exec_prefix=NONE
  799. no_create=
  800. no_recursion=
  801. prefix=NONE
  802. program_prefix=NONE
  803. program_suffix=NONE
  804. program_transform_name=s,x,x,
  805. silent=
  806. site=
  807. srcdir=
  808. verbose=
  809. x_includes=NONE
  810. x_libraries=NONE
  811. # Installation directory options.
  812. # These are left unexpanded so users can "make install exec_prefix=/foo"
  813. # and all the variables that are supposed to be based on exec_prefix
  814. # by default will actually change.
  815. # Use braces instead of parens because sh, perl, etc. also accept them.
  816. # (The list follows the same order as the GNU Coding Standards.)
  817. bindir='${exec_prefix}/bin'
  818. sbindir='${exec_prefix}/sbin'
  819. libexecdir='${exec_prefix}/libexec'
  820. datarootdir='${prefix}/share'
  821. datadir='${datarootdir}'
  822. sysconfdir='${prefix}/etc'
  823. sharedstatedir='${prefix}/com'
  824. localstatedir='${prefix}/var'
  825. includedir='${prefix}/include'
  826. oldincludedir='/usr/include'
  827. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  828. infodir='${datarootdir}/info'
  829. htmldir='${docdir}'
  830. dvidir='${docdir}'
  831. pdfdir='${docdir}'
  832. psdir='${docdir}'
  833. libdir='${exec_prefix}/lib'
  834. localedir='${datarootdir}/locale'
  835. mandir='${datarootdir}/man'
  836. ac_prev=
  837. ac_dashdash=
  838. for ac_option
  839. do
  840. # If the previous option needs an argument, assign it.
  841. if test -n "$ac_prev"; then
  842. eval $ac_prev=\$ac_option
  843. ac_prev=
  844. continue
  845. fi
  846. case $ac_option in
  847. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  848. *=) ac_optarg= ;;
  849. *) ac_optarg=yes ;;
  850. esac
  851. # Accept the important Cygnus configure options, so we can diagnose typos.
  852. case $ac_dashdash$ac_option in
  853. --)
  854. ac_dashdash=yes ;;
  855. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  856. ac_prev=bindir ;;
  857. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  858. bindir=$ac_optarg ;;
  859. -build | --build | --buil | --bui | --bu)
  860. ac_prev=build_alias ;;
  861. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  862. build_alias=$ac_optarg ;;
  863. -cache-file | --cache-file | --cache-fil | --cache-fi \
  864. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  865. ac_prev=cache_file ;;
  866. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  867. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  868. cache_file=$ac_optarg ;;
  869. --config-cache | -C)
  870. cache_file=config.cache ;;
  871. -datadir | --datadir | --datadi | --datad)
  872. ac_prev=datadir ;;
  873. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  874. datadir=$ac_optarg ;;
  875. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  876. | --dataroo | --dataro | --datar)
  877. ac_prev=datarootdir ;;
  878. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  879. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  880. datarootdir=$ac_optarg ;;
  881. -disable-* | --disable-*)
  882. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  883. # Reject names that are not valid shell variable names.
  884. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  885. as_fn_error $? "invalid feature name: $ac_useropt"
  886. ac_useropt_orig=$ac_useropt
  887. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  888. case $ac_user_opts in
  889. *"
  890. "enable_$ac_useropt"
  891. "*) ;;
  892. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  893. ac_unrecognized_sep=', ';;
  894. esac
  895. eval enable_$ac_useropt=no ;;
  896. -docdir | --docdir | --docdi | --doc | --do)
  897. ac_prev=docdir ;;
  898. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  899. docdir=$ac_optarg ;;
  900. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  901. ac_prev=dvidir ;;
  902. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  903. dvidir=$ac_optarg ;;
  904. -enable-* | --enable-*)
  905. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  906. # Reject names that are not valid shell variable names.
  907. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  908. as_fn_error $? "invalid feature name: $ac_useropt"
  909. ac_useropt_orig=$ac_useropt
  910. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  911. case $ac_user_opts in
  912. *"
  913. "enable_$ac_useropt"
  914. "*) ;;
  915. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  916. ac_unrecognized_sep=', ';;
  917. esac
  918. eval enable_$ac_useropt=\$ac_optarg ;;
  919. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  920. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  921. | --exec | --exe | --ex)
  922. ac_prev=exec_prefix ;;
  923. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  924. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  925. | --exec=* | --exe=* | --ex=*)
  926. exec_prefix=$ac_optarg ;;
  927. -gas | --gas | --ga | --g)
  928. # Obsolete; use --with-gas.
  929. with_gas=yes ;;
  930. -help | --help | --hel | --he | -h)
  931. ac_init_help=long ;;
  932. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  933. ac_init_help=recursive ;;
  934. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  935. ac_init_help=short ;;
  936. -host | --host | --hos | --ho)
  937. ac_prev=host_alias ;;
  938. -host=* | --host=* | --hos=* | --ho=*)
  939. host_alias=$ac_optarg ;;
  940. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  941. ac_prev=htmldir ;;
  942. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  943. | --ht=*)
  944. htmldir=$ac_optarg ;;
  945. -includedir | --includedir | --includedi | --included | --include \
  946. | --includ | --inclu | --incl | --inc)
  947. ac_prev=includedir ;;
  948. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  949. | --includ=* | --inclu=* | --incl=* | --inc=*)
  950. includedir=$ac_optarg ;;
  951. -infodir | --infodir | --infodi | --infod | --info | --inf)
  952. ac_prev=infodir ;;
  953. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  954. infodir=$ac_optarg ;;
  955. -libdir | --libdir | --libdi | --libd)
  956. ac_prev=libdir ;;
  957. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  958. libdir=$ac_optarg ;;
  959. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  960. | --libexe | --libex | --libe)
  961. ac_prev=libexecdir ;;
  962. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  963. | --libexe=* | --libex=* | --libe=*)
  964. libexecdir=$ac_optarg ;;
  965. -localedir | --localedir | --localedi | --localed | --locale)
  966. ac_prev=localedir ;;
  967. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  968. localedir=$ac_optarg ;;
  969. -localstatedir | --localstatedir | --localstatedi | --localstated \
  970. | --localstate | --localstat | --localsta | --localst | --locals)
  971. ac_prev=localstatedir ;;
  972. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  973. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  974. localstatedir=$ac_optarg ;;
  975. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  976. ac_prev=mandir ;;
  977. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  978. mandir=$ac_optarg ;;
  979. -nfp | --nfp | --nf)
  980. # Obsolete; use --without-fp.
  981. with_fp=no ;;
  982. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  983. | --no-cr | --no-c | -n)
  984. no_create=yes ;;
  985. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  986. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  987. no_recursion=yes ;;
  988. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  989. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  990. | --oldin | --oldi | --old | --ol | --o)
  991. ac_prev=oldincludedir ;;
  992. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  993. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  994. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  995. oldincludedir=$ac_optarg ;;
  996. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  997. ac_prev=prefix ;;
  998. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  999. prefix=$ac_optarg ;;
  1000. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1001. | --program-pre | --program-pr | --program-p)
  1002. ac_prev=program_prefix ;;
  1003. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1004. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1005. program_prefix=$ac_optarg ;;
  1006. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1007. | --program-suf | --program-su | --program-s)
  1008. ac_prev=program_suffix ;;
  1009. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1010. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1011. program_suffix=$ac_optarg ;;
  1012. -program-transform-name | --program-transform-name \
  1013. | --program-transform-nam | --program-transform-na \
  1014. | --program-transform-n | --program-transform- \
  1015. | --program-transform | --program-transfor \
  1016. | --program-transfo | --program-transf \
  1017. | --program-trans | --program-tran \
  1018. | --progr-tra | --program-tr | --program-t)
  1019. ac_prev=program_transform_name ;;
  1020. -program-transform-name=* | --program-transform-name=* \
  1021. | --program-transform-nam=* | --program-transform-na=* \
  1022. | --program-transform-n=* | --program-transform-=* \
  1023. | --program-transform=* | --program-transfor=* \
  1024. | --program-transfo=* | --program-transf=* \
  1025. | --program-trans=* | --program-tran=* \
  1026. | --progr-tra=* | --program-tr=* | --program-t=*)
  1027. program_transform_name=$ac_optarg ;;
  1028. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1029. ac_prev=pdfdir ;;
  1030. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1031. pdfdir=$ac_optarg ;;
  1032. -psdir | --psdir | --psdi | --psd | --ps)
  1033. ac_prev=psdir ;;
  1034. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1035. psdir=$ac_optarg ;;
  1036. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1037. | -silent | --silent | --silen | --sile | --sil)
  1038. silent=yes ;;
  1039. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1040. ac_prev=sbindir ;;
  1041. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1042. | --sbi=* | --sb=*)
  1043. sbindir=$ac_optarg ;;
  1044. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1045. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1046. | --sharedst | --shareds | --shared | --share | --shar \
  1047. | --sha | --sh)
  1048. ac_prev=sharedstatedir ;;
  1049. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1050. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1051. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1052. | --sha=* | --sh=*)
  1053. sharedstatedir=$ac_optarg ;;
  1054. -site | --site | --sit)
  1055. ac_prev=site ;;
  1056. -site=* | --site=* | --sit=*)
  1057. site=$ac_optarg ;;
  1058. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1059. ac_prev=srcdir ;;
  1060. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1061. srcdir=$ac_optarg ;;
  1062. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1063. | --syscon | --sysco | --sysc | --sys | --sy)
  1064. ac_prev=sysconfdir ;;
  1065. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1066. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1067. sysconfdir=$ac_optarg ;;
  1068. -target | --target | --targe | --targ | --tar | --ta | --t)
  1069. ac_prev=target_alias ;;
  1070. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1071. target_alias=$ac_optarg ;;
  1072. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1073. verbose=yes ;;
  1074. -version | --version | --versio | --versi | --vers | -V)
  1075. ac_init_version=: ;;
  1076. -with-* | --with-*)
  1077. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1078. # Reject names that are not valid shell variable names.
  1079. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1080. as_fn_error $? "invalid package name: $ac_useropt"
  1081. ac_useropt_orig=$ac_useropt
  1082. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1083. case $ac_user_opts in
  1084. *"
  1085. "with_$ac_useropt"
  1086. "*) ;;
  1087. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1088. ac_unrecognized_sep=', ';;
  1089. esac
  1090. eval with_$ac_useropt=\$ac_optarg ;;
  1091. -without-* | --without-*)
  1092. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1093. # Reject names that are not valid shell variable names.
  1094. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1095. as_fn_error $? "invalid package name: $ac_useropt"
  1096. ac_useropt_orig=$ac_useropt
  1097. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1098. case $ac_user_opts in
  1099. *"
  1100. "with_$ac_useropt"
  1101. "*) ;;
  1102. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1103. ac_unrecognized_sep=', ';;
  1104. esac
  1105. eval with_$ac_useropt=no ;;
  1106. --x)
  1107. # Obsolete; use --with-x.
  1108. with_x=yes ;;
  1109. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1110. | --x-incl | --x-inc | --x-in | --x-i)
  1111. ac_prev=x_includes ;;
  1112. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1113. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1114. x_includes=$ac_optarg ;;
  1115. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1116. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1117. ac_prev=x_libraries ;;
  1118. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1119. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1120. x_libraries=$ac_optarg ;;
  1121. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1122. Try \`$0 --help' for more information"
  1123. ;;
  1124. *=*)
  1125. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1126. # Reject names that are not valid shell variable names.
  1127. case $ac_envvar in #(
  1128. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1129. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1130. esac
  1131. eval $ac_envvar=\$ac_optarg
  1132. export $ac_envvar ;;
  1133. *)
  1134. # FIXME: should be removed in autoconf 3.0.
  1135. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1136. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1137. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1138. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1139. ;;
  1140. esac
  1141. done
  1142. if test -n "$ac_prev"; then
  1143. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1144. as_fn_error $? "missing argument to $ac_option"
  1145. fi
  1146. if test -n "$ac_unrecognized_opts"; then
  1147. case $enable_option_checking in
  1148. no) ;;
  1149. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1150. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1151. esac
  1152. fi
  1153. # Check all directory arguments for consistency.
  1154. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1155. datadir sysconfdir sharedstatedir localstatedir includedir \
  1156. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1157. libdir localedir mandir
  1158. do
  1159. eval ac_val=\$$ac_var
  1160. # Remove trailing slashes.
  1161. case $ac_val in
  1162. */ )
  1163. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1164. eval $ac_var=\$ac_val;;
  1165. esac
  1166. # Be sure to have absolute directory names.
  1167. case $ac_val in
  1168. [\\/$]* | ?:[\\/]* ) continue;;
  1169. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1170. esac
  1171. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1172. done
  1173. # There might be people who depend on the old broken behavior: `$host'
  1174. # used to hold the argument of --host etc.
  1175. # FIXME: To remove some day.
  1176. build=$build_alias
  1177. host=$host_alias
  1178. target=$target_alias
  1179. # FIXME: To remove some day.
  1180. if test "x$host_alias" != x; then
  1181. if test "x$build_alias" = x; then
  1182. cross_compiling=maybe
  1183. elif test "x$build_alias" != "x$host_alias"; then
  1184. cross_compiling=yes
  1185. fi
  1186. fi
  1187. ac_tool_prefix=
  1188. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1189. test "$silent" = yes && exec 6>/dev/null
  1190. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1191. ac_ls_di=`ls -di .` &&
  1192. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1193. as_fn_error $? "working directory cannot be determined"
  1194. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1195. as_fn_error $? "pwd does not report name of working directory"
  1196. # Find the source files, if location was not specified.
  1197. if test -z "$srcdir"; then
  1198. ac_srcdir_defaulted=yes
  1199. # Try the directory containing this script, then the parent directory.
  1200. ac_confdir=`$as_dirname -- "$as_myself" ||
  1201. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1202. X"$as_myself" : 'X\(//\)[^/]' \| \
  1203. X"$as_myself" : 'X\(//\)$' \| \
  1204. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1205. $as_echo X"$as_myself" |
  1206. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1207. s//\1/
  1208. q
  1209. }
  1210. /^X\(\/\/\)[^/].*/{
  1211. s//\1/
  1212. q
  1213. }
  1214. /^X\(\/\/\)$/{
  1215. s//\1/
  1216. q
  1217. }
  1218. /^X\(\/\).*/{
  1219. s//\1/
  1220. q
  1221. }
  1222. s/.*/./; q'`
  1223. srcdir=$ac_confdir
  1224. if test ! -r "$srcdir/$ac_unique_file"; then
  1225. srcdir=..
  1226. fi
  1227. else
  1228. ac_srcdir_defaulted=no
  1229. fi
  1230. if test ! -r "$srcdir/$ac_unique_file"; then
  1231. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1232. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1233. fi
  1234. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1235. ac_abs_confdir=`(
  1236. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1237. pwd)`
  1238. # When building in place, set srcdir=.
  1239. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1240. srcdir=.
  1241. fi
  1242. # Remove unnecessary trailing slashes from srcdir.
  1243. # Double slashes in file names in object file debugging info
  1244. # mess up M-x gdb in Emacs.
  1245. case $srcdir in
  1246. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1247. esac
  1248. for ac_var in $ac_precious_vars; do
  1249. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1250. eval ac_env_${ac_var}_value=\$${ac_var}
  1251. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1252. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1253. done
  1254. #
  1255. # Report the --help message.
  1256. #
  1257. if test "$ac_init_help" = "long"; then
  1258. # Omit some internal or obsolete options to make the list less imposing.
  1259. # This message is too long to be a string in the A/UX 3.1 sh.
  1260. cat <<_ACEOF
  1261. \`configure' configures lame 3.100 to adapt to many kinds of systems.
  1262. Usage: $0 [OPTION]... [VAR=VALUE]...
  1263. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1264. VAR=VALUE. See below for descriptions of some of the useful variables.
  1265. Defaults for the options are specified in brackets.
  1266. Configuration:
  1267. -h, --help display this help and exit
  1268. --help=short display options specific to this package
  1269. --help=recursive display the short help of all the included packages
  1270. -V, --version display version information and exit
  1271. -q, --quiet, --silent do not print \`checking ...' messages
  1272. --cache-file=FILE cache test results in FILE [disabled]
  1273. -C, --config-cache alias for \`--cache-file=config.cache'
  1274. -n, --no-create do not create output files
  1275. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1276. Installation directories:
  1277. --prefix=PREFIX install architecture-independent files in PREFIX
  1278. [$ac_default_prefix]
  1279. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1280. [PREFIX]
  1281. By default, \`make install' will install all the files in
  1282. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1283. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1284. for instance \`--prefix=\$HOME'.
  1285. For better control, use the options below.
  1286. Fine tuning of the installation directories:
  1287. --bindir=DIR user executables [EPREFIX/bin]
  1288. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1289. --libexecdir=DIR program executables [EPREFIX/libexec]
  1290. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1291. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1292. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1293. --libdir=DIR object code libraries [EPREFIX/lib]
  1294. --includedir=DIR C header files [PREFIX/include]
  1295. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1296. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1297. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1298. --infodir=DIR info documentation [DATAROOTDIR/info]
  1299. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1300. --mandir=DIR man documentation [DATAROOTDIR/man]
  1301. --docdir=DIR documentation root [DATAROOTDIR/doc/lame]
  1302. --htmldir=DIR html documentation [DOCDIR]
  1303. --dvidir=DIR dvi documentation [DOCDIR]
  1304. --pdfdir=DIR pdf documentation [DOCDIR]
  1305. --psdir=DIR ps documentation [DOCDIR]
  1306. _ACEOF
  1307. cat <<\_ACEOF
  1308. Program names:
  1309. --program-prefix=PREFIX prepend PREFIX to installed program names
  1310. --program-suffix=SUFFIX append SUFFIX to installed program names
  1311. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1312. System types:
  1313. --build=BUILD configure for building on BUILD [guessed]
  1314. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1315. _ACEOF
  1316. fi
  1317. if test -n "$ac_init_help"; then
  1318. case $ac_init_help in
  1319. short | recursive ) echo "Configuration of lame 3.100:";;
  1320. esac
  1321. cat <<\_ACEOF
  1322. Optional Features:
  1323. --disable-option-checking ignore unrecognized --enable/--with options
  1324. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1325. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1326. --enable-silent-rules less verbose build output (undo: "make V=1")
  1327. --disable-silent-rules verbose build output (undo: "make V=0")
  1328. --enable-maintainer-mode
  1329. enable make rules and dependencies not useful (and
  1330. sometimes confusing) to the casual installer
  1331. --enable-dependency-tracking
  1332. do not reject slow dependency extractors
  1333. --disable-dependency-tracking
  1334. speeds up one-time build
  1335. --enable-shared[=PKGS] build shared libraries [default=yes]
  1336. --enable-static[=PKGS] build static libraries [default=yes]
  1337. --enable-fast-install[=PKGS]
  1338. optimize for fast installation [default=yes]
  1339. --disable-libtool-lock avoid locking (might break parallel builds)
  1340. --disable-largefile omit support for large files
  1341. --enable-nasm Allow the use of nasm if available
  1342. --disable-rpath do not hardcode runtime library paths
  1343. --disable-cpml Do not use Compaq's fast Math Library
  1344. --disable-gtktest Do not try to compile and run a test GTK program
  1345. --enable-efence Use ElectricFence for malloc debugging
  1346. --disable-analyzer-hooks Exclude analyzer hooks
  1347. --disable-decoder Exclude mpg123 decoder
  1348. --disable-frontend Do not build the lame executable default=build
  1349. --enable-mp3x Build GTK frame analyzer default=no
  1350. --enable-mp3rtp Build mp3rtp default=no
  1351. --enable-dynamic-frontends Link frontends against shared libraries default=no
  1352. --enable-expopt=full,norm Whether to enable experimental optimizations
  1353. default=no
  1354. --enable-debug=alot,norm Enable debugging (disables optimizations)
  1355. default=no
  1356. Optional Packages:
  1357. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1358. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1359. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1360. both]
  1361. --with-aix-soname=aix|svr4|both
  1362. shared library versioning (aka "SONAME") variant to
  1363. provide on AIX, [default=aix].
  1364. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1365. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1366. compiler's sysroot if not specified).
  1367. --with-dmalloc use dmalloc, as in http://www.dmalloc.com
  1368. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1369. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1370. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1371. --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
  1372. --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
  1373. --with-fileio=lame Use lame's internal file io routines default
  1374. =sndfile Use Erik de Castro Lopo's libsndfile
  1375. (no stdin possible currently)
  1376. Some influential environment variables:
  1377. CC C compiler command
  1378. CFLAGS C compiler flags
  1379. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1380. nonstandard directory <lib dir>
  1381. LIBS libraries to pass to the linker, e.g. -l<library>
  1382. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1383. you have headers in a nonstandard directory <include dir>
  1384. CPP C preprocessor
  1385. LT_SYS_LIBRARY_PATH
  1386. User-defined run-time library search path.
  1387. PKG_CONFIG path to pkg-config utility
  1388. PKG_CONFIG_PATH
  1389. directories to add to pkg-config's search path
  1390. PKG_CONFIG_LIBDIR
  1391. path overriding pkg-config's built-in search path
  1392. SNDFILE_CFLAGS
  1393. C compiler flags for SNDFILE, overriding pkg-config
  1394. SNDFILE_LIBS
  1395. linker flags for SNDFILE, overriding pkg-config
  1396. Use these variables to override the choices made by `configure' or to help
  1397. it to find libraries and programs with nonstandard names/locations.
  1398. Report bugs to <lame-dev@lists.sf.net>.
  1399. _ACEOF
  1400. ac_status=$?
  1401. fi
  1402. if test "$ac_init_help" = "recursive"; then
  1403. # If there are subdirs, report their specific --help.
  1404. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1405. test -d "$ac_dir" ||
  1406. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1407. continue
  1408. ac_builddir=.
  1409. case "$ac_dir" in
  1410. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1411. *)
  1412. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1413. # A ".." for each directory in $ac_dir_suffix.
  1414. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1415. case $ac_top_builddir_sub in
  1416. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1417. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1418. esac ;;
  1419. esac
  1420. ac_abs_top_builddir=$ac_pwd
  1421. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1422. # for backward compatibility:
  1423. ac_top_builddir=$ac_top_build_prefix
  1424. case $srcdir in
  1425. .) # We are building in place.
  1426. ac_srcdir=.
  1427. ac_top_srcdir=$ac_top_builddir_sub
  1428. ac_abs_top_srcdir=$ac_pwd ;;
  1429. [\\/]* | ?:[\\/]* ) # Absolute name.
  1430. ac_srcdir=$srcdir$ac_dir_suffix;
  1431. ac_top_srcdir=$srcdir
  1432. ac_abs_top_srcdir=$srcdir ;;
  1433. *) # Relative name.
  1434. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1435. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1436. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1437. esac
  1438. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1439. cd "$ac_dir" || { ac_status=$?; continue; }
  1440. # Check for guested configure.
  1441. if test -f "$ac_srcdir/configure.gnu"; then
  1442. echo &&
  1443. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1444. elif test -f "$ac_srcdir/configure"; then
  1445. echo &&
  1446. $SHELL "$ac_srcdir/configure" --help=recursive
  1447. else
  1448. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1449. fi || ac_status=$?
  1450. cd "$ac_pwd" || { ac_status=$?; break; }
  1451. done
  1452. fi
  1453. test -n "$ac_init_help" && exit $ac_status
  1454. if $ac_init_version; then
  1455. cat <<\_ACEOF
  1456. lame configure 3.100
  1457. generated by GNU Autoconf 2.69
  1458. Copyright (C) 2012 Free Software Foundation, Inc.
  1459. This configure script is free software; the Free Software Foundation
  1460. gives unlimited permission to copy, distribute and modify it.
  1461. _ACEOF
  1462. exit
  1463. fi
  1464. ## ------------------------ ##
  1465. ## Autoconf initialization. ##
  1466. ## ------------------------ ##
  1467. # ac_fn_c_try_compile LINENO
  1468. # --------------------------
  1469. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1470. ac_fn_c_try_compile ()
  1471. {
  1472. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1473. rm -f conftest.$ac_objext
  1474. if { { ac_try="$ac_compile"
  1475. case "(($ac_try" in
  1476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1477. *) ac_try_echo=$ac_try;;
  1478. esac
  1479. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1480. $as_echo "$ac_try_echo"; } >&5
  1481. (eval "$ac_compile") 2>conftest.err
  1482. ac_status=$?
  1483. if test -s conftest.err; then
  1484. grep -v '^ *+' conftest.err >conftest.er1
  1485. cat conftest.er1 >&5
  1486. mv -f conftest.er1 conftest.err
  1487. fi
  1488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1489. test $ac_status = 0; } && {
  1490. test -z "$ac_c_werror_flag" ||
  1491. test ! -s conftest.err
  1492. } && test -s conftest.$ac_objext; then :
  1493. ac_retval=0
  1494. else
  1495. $as_echo "$as_me: failed program was:" >&5
  1496. sed 's/^/| /' conftest.$ac_ext >&5
  1497. ac_retval=1
  1498. fi
  1499. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1500. as_fn_set_status $ac_retval
  1501. } # ac_fn_c_try_compile
  1502. # ac_fn_c_try_cpp LINENO
  1503. # ----------------------
  1504. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1505. ac_fn_c_try_cpp ()
  1506. {
  1507. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1508. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1509. case "(($ac_try" in
  1510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1511. *) ac_try_echo=$ac_try;;
  1512. esac
  1513. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1514. $as_echo "$ac_try_echo"; } >&5
  1515. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1516. ac_status=$?
  1517. if test -s conftest.err; then
  1518. grep -v '^ *+' conftest.err >conftest.er1
  1519. cat conftest.er1 >&5
  1520. mv -f conftest.er1 conftest.err
  1521. fi
  1522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1523. test $ac_status = 0; } > conftest.i && {
  1524. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1525. test ! -s conftest.err
  1526. }; then :
  1527. ac_retval=0
  1528. else
  1529. $as_echo "$as_me: failed program was:" >&5
  1530. sed 's/^/| /' conftest.$ac_ext >&5
  1531. ac_retval=1
  1532. fi
  1533. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1534. as_fn_set_status $ac_retval
  1535. } # ac_fn_c_try_cpp
  1536. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1537. # -------------------------------------------------------
  1538. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1539. # the include files in INCLUDES and setting the cache variable VAR
  1540. # accordingly.
  1541. ac_fn_c_check_header_mongrel ()
  1542. {
  1543. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1544. if eval \${$3+:} false; then :
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1546. $as_echo_n "checking for $2... " >&6; }
  1547. if eval \${$3+:} false; then :
  1548. $as_echo_n "(cached) " >&6
  1549. fi
  1550. eval ac_res=\$$3
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1552. $as_echo "$ac_res" >&6; }
  1553. else
  1554. # Is the header compilable?
  1555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1556. $as_echo_n "checking $2 usability... " >&6; }
  1557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1558. /* end confdefs.h. */
  1559. $4
  1560. #include <$2>
  1561. _ACEOF
  1562. if ac_fn_c_try_compile "$LINENO"; then :
  1563. ac_header_compiler=yes
  1564. else
  1565. ac_header_compiler=no
  1566. fi
  1567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1569. $as_echo "$ac_header_compiler" >&6; }
  1570. # Is the header present?
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1572. $as_echo_n "checking $2 presence... " >&6; }
  1573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1574. /* end confdefs.h. */
  1575. #include <$2>
  1576. _ACEOF
  1577. if ac_fn_c_try_cpp "$LINENO"; then :
  1578. ac_header_preproc=yes
  1579. else
  1580. ac_header_preproc=no
  1581. fi
  1582. rm -f conftest.err conftest.i conftest.$ac_ext
  1583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1584. $as_echo "$ac_header_preproc" >&6; }
  1585. # So? What about this header?
  1586. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1587. yes:no: )
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1589. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1591. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1592. ;;
  1593. no:yes:* )
  1594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1595. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1597. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1599. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1601. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1603. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1604. ( $as_echo "## ------------------------------------ ##
  1605. ## Report this to lame-dev@lists.sf.net ##
  1606. ## ------------------------------------ ##"
  1607. ) | sed "s/^/$as_me: WARNING: /" >&2
  1608. ;;
  1609. esac
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1611. $as_echo_n "checking for $2... " >&6; }
  1612. if eval \${$3+:} false; then :
  1613. $as_echo_n "(cached) " >&6
  1614. else
  1615. eval "$3=\$ac_header_compiler"
  1616. fi
  1617. eval ac_res=\$$3
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1619. $as_echo "$ac_res" >&6; }
  1620. fi
  1621. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1622. } # ac_fn_c_check_header_mongrel
  1623. # ac_fn_c_try_run LINENO
  1624. # ----------------------
  1625. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1626. # that executables *can* be run.
  1627. ac_fn_c_try_run ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. if { { ac_try="$ac_link"
  1631. case "(($ac_try" in
  1632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1633. *) ac_try_echo=$ac_try;;
  1634. esac
  1635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1636. $as_echo "$ac_try_echo"; } >&5
  1637. (eval "$ac_link") 2>&5
  1638. ac_status=$?
  1639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1640. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1641. { { case "(($ac_try" in
  1642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1643. *) ac_try_echo=$ac_try;;
  1644. esac
  1645. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1646. $as_echo "$ac_try_echo"; } >&5
  1647. (eval "$ac_try") 2>&5
  1648. ac_status=$?
  1649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1650. test $ac_status = 0; }; }; then :
  1651. ac_retval=0
  1652. else
  1653. $as_echo "$as_me: program exited with status $ac_status" >&5
  1654. $as_echo "$as_me: failed program was:" >&5
  1655. sed 's/^/| /' conftest.$ac_ext >&5
  1656. ac_retval=$ac_status
  1657. fi
  1658. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1659. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1660. as_fn_set_status $ac_retval
  1661. } # ac_fn_c_try_run
  1662. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1663. # -------------------------------------------------------
  1664. # Tests whether HEADER exists and can be compiled using the include files in
  1665. # INCLUDES, setting the cache variable VAR accordingly.
  1666. ac_fn_c_check_header_compile ()
  1667. {
  1668. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1670. $as_echo_n "checking for $2... " >&6; }
  1671. if eval \${$3+:} false; then :
  1672. $as_echo_n "(cached) " >&6
  1673. else
  1674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1675. /* end confdefs.h. */
  1676. $4
  1677. #include <$2>
  1678. _ACEOF
  1679. if ac_fn_c_try_compile "$LINENO"; then :
  1680. eval "$3=yes"
  1681. else
  1682. eval "$3=no"
  1683. fi
  1684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1685. fi
  1686. eval ac_res=\$$3
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1688. $as_echo "$ac_res" >&6; }
  1689. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1690. } # ac_fn_c_check_header_compile
  1691. # ac_fn_c_try_link LINENO
  1692. # -----------------------
  1693. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1694. ac_fn_c_try_link ()
  1695. {
  1696. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1697. rm -f conftest.$ac_objext conftest$ac_exeext
  1698. if { { ac_try="$ac_link"
  1699. case "(($ac_try" in
  1700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1701. *) ac_try_echo=$ac_try;;
  1702. esac
  1703. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1704. $as_echo "$ac_try_echo"; } >&5
  1705. (eval "$ac_link") 2>conftest.err
  1706. ac_status=$?
  1707. if test -s conftest.err; then
  1708. grep -v '^ *+' conftest.err >conftest.er1
  1709. cat conftest.er1 >&5
  1710. mv -f conftest.er1 conftest.err
  1711. fi
  1712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1713. test $ac_status = 0; } && {
  1714. test -z "$ac_c_werror_flag" ||
  1715. test ! -s conftest.err
  1716. } && test -s conftest$ac_exeext && {
  1717. test "$cross_compiling" = yes ||
  1718. test -x conftest$ac_exeext
  1719. }; then :
  1720. ac_retval=0
  1721. else
  1722. $as_echo "$as_me: failed program was:" >&5
  1723. sed 's/^/| /' conftest.$ac_ext >&5
  1724. ac_retval=1
  1725. fi
  1726. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1727. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1728. # interfere with the next link command; also delete a directory that is
  1729. # left behind by Apple's compiler. We do this before executing the actions.
  1730. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1731. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1732. as_fn_set_status $ac_retval
  1733. } # ac_fn_c_try_link
  1734. # ac_fn_c_check_func LINENO FUNC VAR
  1735. # ----------------------------------
  1736. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1737. ac_fn_c_check_func ()
  1738. {
  1739. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1741. $as_echo_n "checking for $2... " >&6; }
  1742. if eval \${$3+:} false; then :
  1743. $as_echo_n "(cached) " >&6
  1744. else
  1745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1746. /* end confdefs.h. */
  1747. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1748. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1749. #define $2 innocuous_$2
  1750. /* System header to define __stub macros and hopefully few prototypes,
  1751. which can conflict with char $2 (); below.
  1752. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1753. <limits.h> exists even on freestanding compilers. */
  1754. #ifdef __STDC__
  1755. # include <limits.h>
  1756. #else
  1757. # include <assert.h>
  1758. #endif
  1759. #undef $2
  1760. /* Override any GCC internal prototype to avoid an error.
  1761. Use char because int might match the return type of a GCC
  1762. builtin and then its argument prototype would still apply. */
  1763. #ifdef __cplusplus
  1764. extern "C"
  1765. #endif
  1766. char $2 ();
  1767. /* The GNU C library defines this for functions which it implements
  1768. to always fail with ENOSYS. Some functions are actually named
  1769. something starting with __ and the normal name is an alias. */
  1770. #if defined __stub_$2 || defined __stub___$2
  1771. choke me
  1772. #endif
  1773. int
  1774. main ()
  1775. {
  1776. return $2 ();
  1777. ;
  1778. return 0;
  1779. }
  1780. _ACEOF
  1781. if ac_fn_c_try_link "$LINENO"; then :
  1782. eval "$3=yes"
  1783. else
  1784. eval "$3=no"
  1785. fi
  1786. rm -f core conftest.err conftest.$ac_objext \
  1787. conftest$ac_exeext conftest.$ac_ext
  1788. fi
  1789. eval ac_res=\$$3
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1791. $as_echo "$ac_res" >&6; }
  1792. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1793. } # ac_fn_c_check_func
  1794. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1795. # --------------------------------------------
  1796. # Tries to find the compile-time value of EXPR in a program that includes
  1797. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1798. # computed
  1799. ac_fn_c_compute_int ()
  1800. {
  1801. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1802. if test "$cross_compiling" = yes; then
  1803. # Depending upon the size, compute the lo and hi bounds.
  1804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1805. /* end confdefs.h. */
  1806. $4
  1807. int
  1808. main ()
  1809. {
  1810. static int test_array [1 - 2 * !(($2) >= 0)];
  1811. test_array [0] = 0;
  1812. return test_array [0];
  1813. ;
  1814. return 0;
  1815. }
  1816. _ACEOF
  1817. if ac_fn_c_try_compile "$LINENO"; then :
  1818. ac_lo=0 ac_mid=0
  1819. while :; do
  1820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1821. /* end confdefs.h. */
  1822. $4
  1823. int
  1824. main ()
  1825. {
  1826. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1827. test_array [0] = 0;
  1828. return test_array [0];
  1829. ;
  1830. return 0;
  1831. }
  1832. _ACEOF
  1833. if ac_fn_c_try_compile "$LINENO"; then :
  1834. ac_hi=$ac_mid; break
  1835. else
  1836. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1837. if test $ac_lo -le $ac_mid; then
  1838. ac_lo= ac_hi=
  1839. break
  1840. fi
  1841. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1842. fi
  1843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1844. done
  1845. else
  1846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1847. /* end confdefs.h. */
  1848. $4
  1849. int
  1850. main ()
  1851. {
  1852. static int test_array [1 - 2 * !(($2) < 0)];
  1853. test_array [0] = 0;
  1854. return test_array [0];
  1855. ;
  1856. return 0;
  1857. }
  1858. _ACEOF
  1859. if ac_fn_c_try_compile "$LINENO"; then :
  1860. ac_hi=-1 ac_mid=-1
  1861. while :; do
  1862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1863. /* end confdefs.h. */
  1864. $4
  1865. int
  1866. main ()
  1867. {
  1868. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1869. test_array [0] = 0;
  1870. return test_array [0];
  1871. ;
  1872. return 0;
  1873. }
  1874. _ACEOF
  1875. if ac_fn_c_try_compile "$LINENO"; then :
  1876. ac_lo=$ac_mid; break
  1877. else
  1878. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1879. if test $ac_mid -le $ac_hi; then
  1880. ac_lo= ac_hi=
  1881. break
  1882. fi
  1883. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1884. fi
  1885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1886. done
  1887. else
  1888. ac_lo= ac_hi=
  1889. fi
  1890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1891. fi
  1892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1893. # Binary search between lo and hi bounds.
  1894. while test "x$ac_lo" != "x$ac_hi"; do
  1895. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1897. /* end confdefs.h. */
  1898. $4
  1899. int
  1900. main ()
  1901. {
  1902. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1903. test_array [0] = 0;
  1904. return test_array [0];
  1905. ;
  1906. return 0;
  1907. }
  1908. _ACEOF
  1909. if ac_fn_c_try_compile "$LINENO"; then :
  1910. ac_hi=$ac_mid
  1911. else
  1912. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1913. fi
  1914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1915. done
  1916. case $ac_lo in #((
  1917. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1918. '') ac_retval=1 ;;
  1919. esac
  1920. else
  1921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1922. /* end confdefs.h. */
  1923. $4
  1924. static long int longval () { return $2; }
  1925. static unsigned long int ulongval () { return $2; }
  1926. #include <stdio.h>
  1927. #include <stdlib.h>
  1928. int
  1929. main ()
  1930. {
  1931. FILE *f = fopen ("conftest.val", "w");
  1932. if (! f)
  1933. return 1;
  1934. if (($2) < 0)
  1935. {
  1936. long int i = longval ();
  1937. if (i != ($2))
  1938. return 1;
  1939. fprintf (f, "%ld", i);
  1940. }
  1941. else
  1942. {
  1943. unsigned long int i = ulongval ();
  1944. if (i != ($2))
  1945. return 1;
  1946. fprintf (f, "%lu", i);
  1947. }
  1948. /* Do not output a trailing newline, as this causes \r\n confusion
  1949. on some platforms. */
  1950. return ferror (f) || fclose (f) != 0;
  1951. ;
  1952. return 0;
  1953. }
  1954. _ACEOF
  1955. if ac_fn_c_try_run "$LINENO"; then :
  1956. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1957. else
  1958. ac_retval=1
  1959. fi
  1960. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1961. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1962. rm -f conftest.val
  1963. fi
  1964. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1965. as_fn_set_status $ac_retval
  1966. } # ac_fn_c_compute_int
  1967. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1968. # -------------------------------------------
  1969. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1970. # variable VAR accordingly.
  1971. ac_fn_c_check_type ()
  1972. {
  1973. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1975. $as_echo_n "checking for $2... " >&6; }
  1976. if eval \${$3+:} false; then :
  1977. $as_echo_n "(cached) " >&6
  1978. else
  1979. eval "$3=no"
  1980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1981. /* end confdefs.h. */
  1982. $4
  1983. int
  1984. main ()
  1985. {
  1986. if (sizeof ($2))
  1987. return 0;
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. if ac_fn_c_try_compile "$LINENO"; then :
  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. else
  2007. eval "$3=yes"
  2008. fi
  2009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2010. fi
  2011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2012. fi
  2013. eval ac_res=\$$3
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2015. $as_echo "$ac_res" >&6; }
  2016. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2017. } # ac_fn_c_check_type
  2018. cat >config.log <<_ACEOF
  2019. This file contains any messages produced by compilers while
  2020. running configure, to aid debugging if configure makes a mistake.
  2021. It was created by lame $as_me 3.100, which was
  2022. generated by GNU Autoconf 2.69. Invocation command line was
  2023. $ $0 $@
  2024. _ACEOF
  2025. exec 5>>config.log
  2026. {
  2027. cat <<_ASUNAME
  2028. ## --------- ##
  2029. ## Platform. ##
  2030. ## --------- ##
  2031. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2032. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2033. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2034. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2035. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2036. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2037. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2038. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2039. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2040. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2041. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2042. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2043. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2044. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2045. _ASUNAME
  2046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2047. for as_dir in $PATH
  2048. do
  2049. IFS=$as_save_IFS
  2050. test -z "$as_dir" && as_dir=.
  2051. $as_echo "PATH: $as_dir"
  2052. done
  2053. IFS=$as_save_IFS
  2054. } >&5
  2055. cat >&5 <<_ACEOF
  2056. ## ----------- ##
  2057. ## Core tests. ##
  2058. ## ----------- ##
  2059. _ACEOF
  2060. # Keep a trace of the command line.
  2061. # Strip out --no-create and --no-recursion so they do not pile up.
  2062. # Strip out --silent because we don't want to record it for future runs.
  2063. # Also quote any args containing shell meta-characters.
  2064. # Make two passes to allow for proper duplicate-argument suppression.
  2065. ac_configure_args=
  2066. ac_configure_args0=
  2067. ac_configure_args1=
  2068. ac_must_keep_next=false
  2069. for ac_pass in 1 2
  2070. do
  2071. for ac_arg
  2072. do
  2073. case $ac_arg in
  2074. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2075. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2076. | -silent | --silent | --silen | --sile | --sil)
  2077. continue ;;
  2078. *\'*)
  2079. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2080. esac
  2081. case $ac_pass in
  2082. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2083. 2)
  2084. as_fn_append ac_configure_args1 " '$ac_arg'"
  2085. if test $ac_must_keep_next = true; then
  2086. ac_must_keep_next=false # Got value, back to normal.
  2087. else
  2088. case $ac_arg in
  2089. *=* | --config-cache | -C | -disable-* | --disable-* \
  2090. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2091. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2092. | -with-* | --with-* | -without-* | --without-* | --x)
  2093. case "$ac_configure_args0 " in
  2094. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2095. esac
  2096. ;;
  2097. -* ) ac_must_keep_next=true ;;
  2098. esac
  2099. fi
  2100. as_fn_append ac_configure_args " '$ac_arg'"
  2101. ;;
  2102. esac
  2103. done
  2104. done
  2105. { ac_configure_args0=; unset ac_configure_args0;}
  2106. { ac_configure_args1=; unset ac_configure_args1;}
  2107. # When interrupted or exit'd, cleanup temporary files, and complete
  2108. # config.log. We remove comments because anyway the quotes in there
  2109. # would cause problems or look ugly.
  2110. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2111. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2112. trap 'exit_status=$?
  2113. # Save into config.log some information that might help in debugging.
  2114. {
  2115. echo
  2116. $as_echo "## ---------------- ##
  2117. ## Cache variables. ##
  2118. ## ---------------- ##"
  2119. echo
  2120. # The following way of writing the cache mishandles newlines in values,
  2121. (
  2122. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2123. eval ac_val=\$$ac_var
  2124. case $ac_val in #(
  2125. *${as_nl}*)
  2126. case $ac_var in #(
  2127. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2128. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2129. esac
  2130. case $ac_var in #(
  2131. _ | IFS | as_nl) ;; #(
  2132. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2133. *) { eval $ac_var=; unset $ac_var;} ;;
  2134. esac ;;
  2135. esac
  2136. done
  2137. (set) 2>&1 |
  2138. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2139. *${as_nl}ac_space=\ *)
  2140. sed -n \
  2141. "s/'\''/'\''\\\\'\'''\''/g;
  2142. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2143. ;; #(
  2144. *)
  2145. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2146. ;;
  2147. esac |
  2148. sort
  2149. )
  2150. echo
  2151. $as_echo "## ----------------- ##
  2152. ## Output variables. ##
  2153. ## ----------------- ##"
  2154. echo
  2155. for ac_var in $ac_subst_vars
  2156. do
  2157. eval ac_val=\$$ac_var
  2158. case $ac_val in
  2159. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2160. esac
  2161. $as_echo "$ac_var='\''$ac_val'\''"
  2162. done | sort
  2163. echo
  2164. if test -n "$ac_subst_files"; then
  2165. $as_echo "## ------------------- ##
  2166. ## File substitutions. ##
  2167. ## ------------------- ##"
  2168. echo
  2169. for ac_var in $ac_subst_files
  2170. do
  2171. eval ac_val=\$$ac_var
  2172. case $ac_val in
  2173. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2174. esac
  2175. $as_echo "$ac_var='\''$ac_val'\''"
  2176. done | sort
  2177. echo
  2178. fi
  2179. if test -s confdefs.h; then
  2180. $as_echo "## ----------- ##
  2181. ## confdefs.h. ##
  2182. ## ----------- ##"
  2183. echo
  2184. cat confdefs.h
  2185. echo
  2186. fi
  2187. test "$ac_signal" != 0 &&
  2188. $as_echo "$as_me: caught signal $ac_signal"
  2189. $as_echo "$as_me: exit $exit_status"
  2190. } >&5
  2191. rm -f core *.core core.conftest.* &&
  2192. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2193. exit $exit_status
  2194. ' 0
  2195. for ac_signal in 1 2 13 15; do
  2196. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2197. done
  2198. ac_signal=0
  2199. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2200. rm -f -r conftest* confdefs.h
  2201. $as_echo "/* confdefs.h */" > confdefs.h
  2202. # Predefined preprocessor variables.
  2203. cat >>confdefs.h <<_ACEOF
  2204. #define PACKAGE_NAME "$PACKAGE_NAME"
  2205. _ACEOF
  2206. cat >>confdefs.h <<_ACEOF
  2207. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2208. _ACEOF
  2209. cat >>confdefs.h <<_ACEOF
  2210. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2211. _ACEOF
  2212. cat >>confdefs.h <<_ACEOF
  2213. #define PACKAGE_STRING "$PACKAGE_STRING"
  2214. _ACEOF
  2215. cat >>confdefs.h <<_ACEOF
  2216. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2217. _ACEOF
  2218. cat >>confdefs.h <<_ACEOF
  2219. #define PACKAGE_URL "$PACKAGE_URL"
  2220. _ACEOF
  2221. # Let the site file select an alternate cache file if it wants to.
  2222. # Prefer an explicitly selected file to automatically selected ones.
  2223. ac_site_file1=NONE
  2224. ac_site_file2=NONE
  2225. if test -n "$CONFIG_SITE"; then
  2226. # We do not want a PATH search for config.site.
  2227. case $CONFIG_SITE in #((
  2228. -*) ac_site_file1=./$CONFIG_SITE;;
  2229. */*) ac_site_file1=$CONFIG_SITE;;
  2230. *) ac_site_file1=./$CONFIG_SITE;;
  2231. esac
  2232. elif test "x$prefix" != xNONE; then
  2233. ac_site_file1=$prefix/share/config.site
  2234. ac_site_file2=$prefix/etc/config.site
  2235. else
  2236. ac_site_file1=$ac_default_prefix/share/config.site
  2237. ac_site_file2=$ac_default_prefix/etc/config.site
  2238. fi
  2239. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2240. do
  2241. test "x$ac_site_file" = xNONE && continue
  2242. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2244. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2245. sed 's/^/| /' "$ac_site_file" >&5
  2246. . "$ac_site_file" \
  2247. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2248. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2249. as_fn_error $? "failed to load site script $ac_site_file
  2250. See \`config.log' for more details" "$LINENO" 5; }
  2251. fi
  2252. done
  2253. if test -r "$cache_file"; then
  2254. # Some versions of bash will fail to source /dev/null (special files
  2255. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2256. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2257. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2258. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2259. case $cache_file in
  2260. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2261. *) . "./$cache_file";;
  2262. esac
  2263. fi
  2264. else
  2265. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2266. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2267. >$cache_file
  2268. fi
  2269. # Check that the precious variables saved in the cache have kept the same
  2270. # value.
  2271. ac_cache_corrupted=false
  2272. for ac_var in $ac_precious_vars; do
  2273. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2274. eval ac_new_set=\$ac_env_${ac_var}_set
  2275. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2276. eval ac_new_val=\$ac_env_${ac_var}_value
  2277. case $ac_old_set,$ac_new_set in
  2278. set,)
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2280. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2281. ac_cache_corrupted=: ;;
  2282. ,set)
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2284. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2285. ac_cache_corrupted=: ;;
  2286. ,);;
  2287. *)
  2288. if test "x$ac_old_val" != "x$ac_new_val"; then
  2289. # differences in whitespace do not lead to failure.
  2290. ac_old_val_w=`echo x $ac_old_val`
  2291. ac_new_val_w=`echo x $ac_new_val`
  2292. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2294. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2295. ac_cache_corrupted=:
  2296. else
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2298. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2299. eval $ac_var=\$ac_old_val
  2300. fi
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2302. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2303. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2304. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2305. fi;;
  2306. esac
  2307. # Pass precious variables to config.status.
  2308. if test "$ac_new_set" = set; then
  2309. case $ac_new_val in
  2310. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2311. *) ac_arg=$ac_var=$ac_new_val ;;
  2312. esac
  2313. case " $ac_configure_args " in
  2314. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2315. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2316. esac
  2317. fi
  2318. done
  2319. if $ac_cache_corrupted; then
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2321. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2323. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2324. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2325. fi
  2326. ## -------------------- ##
  2327. ## Main body of script. ##
  2328. ## -------------------- ##
  2329. ac_ext=c
  2330. ac_cpp='$CPP $CPPFLAGS'
  2331. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2332. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2333. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2334. ac_ext=c
  2335. ac_cpp='$CPP $CPPFLAGS'
  2336. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2337. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2338. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2339. ac_aux_dir=
  2340. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2341. if test -f "$ac_dir/install-sh"; then
  2342. ac_aux_dir=$ac_dir
  2343. ac_install_sh="$ac_aux_dir/install-sh -c"
  2344. break
  2345. elif test -f "$ac_dir/install.sh"; then
  2346. ac_aux_dir=$ac_dir
  2347. ac_install_sh="$ac_aux_dir/install.sh -c"
  2348. break
  2349. elif test -f "$ac_dir/shtool"; then
  2350. ac_aux_dir=$ac_dir
  2351. ac_install_sh="$ac_aux_dir/shtool install -c"
  2352. break
  2353. fi
  2354. done
  2355. if test -z "$ac_aux_dir"; then
  2356. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2357. fi
  2358. # These three variables are undocumented and unsupported,
  2359. # and are intended to be withdrawn in a future Autoconf release.
  2360. # They can cause serious problems if a builder's source tree is in a directory
  2361. # whose full name contains unusual characters.
  2362. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2363. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2364. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2365. # Make sure we can run config.sub.
  2366. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2367. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2369. $as_echo_n "checking build system type... " >&6; }
  2370. if ${ac_cv_build+:} false; then :
  2371. $as_echo_n "(cached) " >&6
  2372. else
  2373. ac_build_alias=$build_alias
  2374. test "x$ac_build_alias" = x &&
  2375. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2376. test "x$ac_build_alias" = x &&
  2377. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2378. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2379. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2380. fi
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2382. $as_echo "$ac_cv_build" >&6; }
  2383. case $ac_cv_build in
  2384. *-*-*) ;;
  2385. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2386. esac
  2387. build=$ac_cv_build
  2388. ac_save_IFS=$IFS; IFS='-'
  2389. set x $ac_cv_build
  2390. shift
  2391. build_cpu=$1
  2392. build_vendor=$2
  2393. shift; shift
  2394. # Remember, the first character of IFS is used to create $*,
  2395. # except with old shells:
  2396. build_os=$*
  2397. IFS=$ac_save_IFS
  2398. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2400. $as_echo_n "checking host system type... " >&6; }
  2401. if ${ac_cv_host+:} false; then :
  2402. $as_echo_n "(cached) " >&6
  2403. else
  2404. if test "x$host_alias" = x; then
  2405. ac_cv_host=$ac_cv_build
  2406. else
  2407. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2408. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2409. fi
  2410. fi
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2412. $as_echo "$ac_cv_host" >&6; }
  2413. case $ac_cv_host in
  2414. *-*-*) ;;
  2415. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2416. esac
  2417. host=$ac_cv_host
  2418. ac_save_IFS=$IFS; IFS='-'
  2419. set x $ac_cv_host
  2420. shift
  2421. host_cpu=$1
  2422. host_vendor=$2
  2423. shift; shift
  2424. # Remember, the first character of IFS is used to create $*,
  2425. # except with old shells:
  2426. host_os=$*
  2427. IFS=$ac_save_IFS
  2428. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2429. am__api_version='1.15'
  2430. # Find a good install program. We prefer a C program (faster),
  2431. # so one script is as good as another. But avoid the broken or
  2432. # incompatible versions:
  2433. # SysV /etc/install, /usr/sbin/install
  2434. # SunOS /usr/etc/install
  2435. # IRIX /sbin/install
  2436. # AIX /bin/install
  2437. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2438. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2439. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2440. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2441. # OS/2's system install, which has a completely different semantic
  2442. # ./install, which can be erroneously created by make from ./install.sh.
  2443. # Reject install programs that cannot install multiple files.
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2445. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2446. if test -z "$INSTALL"; then
  2447. if ${ac_cv_path_install+:} false; then :
  2448. $as_echo_n "(cached) " >&6
  2449. else
  2450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2451. for as_dir in $PATH
  2452. do
  2453. IFS=$as_save_IFS
  2454. test -z "$as_dir" && as_dir=.
  2455. # Account for people who put trailing slashes in PATH elements.
  2456. case $as_dir/ in #((
  2457. ./ | .// | /[cC]/* | \
  2458. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2459. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2460. /usr/ucb/* ) ;;
  2461. *)
  2462. # OSF1 and SCO ODT 3.0 have their own names for install.
  2463. # Don't use installbsd from OSF since it installs stuff as root
  2464. # by default.
  2465. for ac_prog in ginstall scoinst install; do
  2466. for ac_exec_ext in '' $ac_executable_extensions; do
  2467. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2468. if test $ac_prog = install &&
  2469. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2470. # AIX install. It has an incompatible calling convention.
  2471. :
  2472. elif test $ac_prog = install &&
  2473. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2474. # program-specific install script used by HP pwplus--don't use.
  2475. :
  2476. else
  2477. rm -rf conftest.one conftest.two conftest.dir
  2478. echo one > conftest.one
  2479. echo two > conftest.two
  2480. mkdir conftest.dir
  2481. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2482. test -s conftest.one && test -s conftest.two &&
  2483. test -s conftest.dir/conftest.one &&
  2484. test -s conftest.dir/conftest.two
  2485. then
  2486. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2487. break 3
  2488. fi
  2489. fi
  2490. fi
  2491. done
  2492. done
  2493. ;;
  2494. esac
  2495. done
  2496. IFS=$as_save_IFS
  2497. rm -rf conftest.one conftest.two conftest.dir
  2498. fi
  2499. if test "${ac_cv_path_install+set}" = set; then
  2500. INSTALL=$ac_cv_path_install
  2501. else
  2502. # As a last resort, use the slow shell script. Don't cache a
  2503. # value for INSTALL within a source directory, because that will
  2504. # break other packages using the cache if that directory is
  2505. # removed, or if the value is a relative name.
  2506. INSTALL=$ac_install_sh
  2507. fi
  2508. fi
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2510. $as_echo "$INSTALL" >&6; }
  2511. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2512. # It thinks the first close brace ends the variable substitution.
  2513. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2514. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2515. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2517. $as_echo_n "checking whether build environment is sane... " >&6; }
  2518. # Reject unsafe characters in $srcdir or the absolute working directory
  2519. # name. Accept space and tab only in the latter.
  2520. am_lf='
  2521. '
  2522. case `pwd` in
  2523. *[\\\"\#\$\&\'\`$am_lf]*)
  2524. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2525. esac
  2526. case $srcdir in
  2527. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2528. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2529. esac
  2530. # Do 'set' in a subshell so we don't clobber the current shell's
  2531. # arguments. Must try -L first in case configure is actually a
  2532. # symlink; some systems play weird games with the mod time of symlinks
  2533. # (eg FreeBSD returns the mod time of the symlink's containing
  2534. # directory).
  2535. if (
  2536. am_has_slept=no
  2537. for am_try in 1 2; do
  2538. echo "timestamp, slept: $am_has_slept" > conftest.file
  2539. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2540. if test "$*" = "X"; then
  2541. # -L didn't work.
  2542. set X `ls -t "$srcdir/configure" conftest.file`
  2543. fi
  2544. if test "$*" != "X $srcdir/configure conftest.file" \
  2545. && test "$*" != "X conftest.file $srcdir/configure"; then
  2546. # If neither matched, then we have a broken ls. This can happen
  2547. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2548. # broken ls alias from the environment. This has actually
  2549. # happened. Such a system could not be considered "sane".
  2550. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2551. alias in your environment" "$LINENO" 5
  2552. fi
  2553. if test "$2" = conftest.file || test $am_try -eq 2; then
  2554. break
  2555. fi
  2556. # Just in case.
  2557. sleep 1
  2558. am_has_slept=yes
  2559. done
  2560. test "$2" = conftest.file
  2561. )
  2562. then
  2563. # Ok.
  2564. :
  2565. else
  2566. as_fn_error $? "newly created file is older than distributed files!
  2567. Check your system clock" "$LINENO" 5
  2568. fi
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2570. $as_echo "yes" >&6; }
  2571. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2572. # generated files are strictly newer.
  2573. am_sleep_pid=
  2574. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2575. ( sleep 1 ) &
  2576. am_sleep_pid=$!
  2577. fi
  2578. rm -f conftest.file
  2579. test "$program_prefix" != NONE &&
  2580. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2581. # Use a double $ so make ignores it.
  2582. test "$program_suffix" != NONE &&
  2583. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2584. # Double any \ or $.
  2585. # By default was `s,x,x', remove it if useless.
  2586. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2587. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2588. # Expand $ac_aux_dir to an absolute path.
  2589. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2590. if test x"${MISSING+set}" != xset; then
  2591. case $am_aux_dir in
  2592. *\ * | *\ *)
  2593. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2594. *)
  2595. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2596. esac
  2597. fi
  2598. # Use eval to expand $SHELL
  2599. if eval "$MISSING --is-lightweight"; then
  2600. am_missing_run="$MISSING "
  2601. else
  2602. am_missing_run=
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2604. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2605. fi
  2606. if test x"${install_sh+set}" != xset; then
  2607. case $am_aux_dir in
  2608. *\ * | *\ *)
  2609. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2610. *)
  2611. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2612. esac
  2613. fi
  2614. # Installed binaries are usually stripped using 'strip' when the user
  2615. # run "make install-strip". However 'strip' might not be the right
  2616. # tool to use in cross-compilation environments, therefore Automake
  2617. # will honor the 'STRIP' environment variable to overrule this program.
  2618. if test "$cross_compiling" != no; then
  2619. if test -n "$ac_tool_prefix"; then
  2620. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2621. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2623. $as_echo_n "checking for $ac_word... " >&6; }
  2624. if ${ac_cv_prog_STRIP+:} false; then :
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. if test -n "$STRIP"; then
  2628. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2629. else
  2630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2631. for as_dir in $PATH
  2632. do
  2633. IFS=$as_save_IFS
  2634. test -z "$as_dir" && as_dir=.
  2635. for ac_exec_ext in '' $ac_executable_extensions; do
  2636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2637. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2639. break 2
  2640. fi
  2641. done
  2642. done
  2643. IFS=$as_save_IFS
  2644. fi
  2645. fi
  2646. STRIP=$ac_cv_prog_STRIP
  2647. if test -n "$STRIP"; then
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2649. $as_echo "$STRIP" >&6; }
  2650. else
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2652. $as_echo "no" >&6; }
  2653. fi
  2654. fi
  2655. if test -z "$ac_cv_prog_STRIP"; then
  2656. ac_ct_STRIP=$STRIP
  2657. # Extract the first word of "strip", so it can be a program name with args.
  2658. set dummy strip; ac_word=$2
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2660. $as_echo_n "checking for $ac_word... " >&6; }
  2661. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2662. $as_echo_n "(cached) " >&6
  2663. else
  2664. if test -n "$ac_ct_STRIP"; then
  2665. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2666. else
  2667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2668. for as_dir in $PATH
  2669. do
  2670. IFS=$as_save_IFS
  2671. test -z "$as_dir" && as_dir=.
  2672. for ac_exec_ext in '' $ac_executable_extensions; do
  2673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2674. ac_cv_prog_ac_ct_STRIP="strip"
  2675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2676. break 2
  2677. fi
  2678. done
  2679. done
  2680. IFS=$as_save_IFS
  2681. fi
  2682. fi
  2683. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2684. if test -n "$ac_ct_STRIP"; then
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2686. $as_echo "$ac_ct_STRIP" >&6; }
  2687. else
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2689. $as_echo "no" >&6; }
  2690. fi
  2691. if test "x$ac_ct_STRIP" = x; then
  2692. STRIP=":"
  2693. else
  2694. case $cross_compiling:$ac_tool_warned in
  2695. yes:)
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2697. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2698. ac_tool_warned=yes ;;
  2699. esac
  2700. STRIP=$ac_ct_STRIP
  2701. fi
  2702. else
  2703. STRIP="$ac_cv_prog_STRIP"
  2704. fi
  2705. fi
  2706. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2708. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2709. if test -z "$MKDIR_P"; then
  2710. if ${ac_cv_path_mkdir+:} false; then :
  2711. $as_echo_n "(cached) " >&6
  2712. else
  2713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2714. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2715. do
  2716. IFS=$as_save_IFS
  2717. test -z "$as_dir" && as_dir=.
  2718. for ac_prog in mkdir gmkdir; do
  2719. for ac_exec_ext in '' $ac_executable_extensions; do
  2720. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2721. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2722. 'mkdir (GNU coreutils) '* | \
  2723. 'mkdir (coreutils) '* | \
  2724. 'mkdir (fileutils) '4.1*)
  2725. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2726. break 3;;
  2727. esac
  2728. done
  2729. done
  2730. done
  2731. IFS=$as_save_IFS
  2732. fi
  2733. test -d ./--version && rmdir ./--version
  2734. if test "${ac_cv_path_mkdir+set}" = set; then
  2735. MKDIR_P="$ac_cv_path_mkdir -p"
  2736. else
  2737. # As a last resort, use the slow shell script. Don't cache a
  2738. # value for MKDIR_P within a source directory, because that will
  2739. # break other packages using the cache if that directory is
  2740. # removed, or if the value is a relative name.
  2741. MKDIR_P="$ac_install_sh -d"
  2742. fi
  2743. fi
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2745. $as_echo "$MKDIR_P" >&6; }
  2746. for ac_prog in gawk mawk nawk awk
  2747. do
  2748. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2749. set dummy $ac_prog; ac_word=$2
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2751. $as_echo_n "checking for $ac_word... " >&6; }
  2752. if ${ac_cv_prog_AWK+:} false; then :
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. if test -n "$AWK"; then
  2756. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2757. else
  2758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2759. for as_dir in $PATH
  2760. do
  2761. IFS=$as_save_IFS
  2762. test -z "$as_dir" && as_dir=.
  2763. for ac_exec_ext in '' $ac_executable_extensions; do
  2764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2765. ac_cv_prog_AWK="$ac_prog"
  2766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2767. break 2
  2768. fi
  2769. done
  2770. done
  2771. IFS=$as_save_IFS
  2772. fi
  2773. fi
  2774. AWK=$ac_cv_prog_AWK
  2775. if test -n "$AWK"; then
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2777. $as_echo "$AWK" >&6; }
  2778. else
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2780. $as_echo "no" >&6; }
  2781. fi
  2782. test -n "$AWK" && break
  2783. done
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2785. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2786. set x ${MAKE-make}
  2787. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2788. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2789. $as_echo_n "(cached) " >&6
  2790. else
  2791. cat >conftest.make <<\_ACEOF
  2792. SHELL = /bin/sh
  2793. all:
  2794. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2795. _ACEOF
  2796. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2797. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2798. *@@@%%%=?*=@@@%%%*)
  2799. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2800. *)
  2801. eval ac_cv_prog_make_${ac_make}_set=no;;
  2802. esac
  2803. rm -f conftest.make
  2804. fi
  2805. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2807. $as_echo "yes" >&6; }
  2808. SET_MAKE=
  2809. else
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2811. $as_echo "no" >&6; }
  2812. SET_MAKE="MAKE=${MAKE-make}"
  2813. fi
  2814. rm -rf .tst 2>/dev/null
  2815. mkdir .tst 2>/dev/null
  2816. if test -d .tst; then
  2817. am__leading_dot=.
  2818. else
  2819. am__leading_dot=_
  2820. fi
  2821. rmdir .tst 2>/dev/null
  2822. # Check whether --enable-silent-rules was given.
  2823. if test "${enable_silent_rules+set}" = set; then :
  2824. enableval=$enable_silent_rules;
  2825. fi
  2826. case $enable_silent_rules in # (((
  2827. yes) AM_DEFAULT_VERBOSITY=0;;
  2828. no) AM_DEFAULT_VERBOSITY=1;;
  2829. *) AM_DEFAULT_VERBOSITY=1;;
  2830. esac
  2831. am_make=${MAKE-make}
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2833. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2834. if ${am_cv_make_support_nested_variables+:} false; then :
  2835. $as_echo_n "(cached) " >&6
  2836. else
  2837. if $as_echo 'TRUE=$(BAR$(V))
  2838. BAR0=false
  2839. BAR1=true
  2840. V=1
  2841. am__doit:
  2842. @$(TRUE)
  2843. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2844. am_cv_make_support_nested_variables=yes
  2845. else
  2846. am_cv_make_support_nested_variables=no
  2847. fi
  2848. fi
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2850. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2851. if test $am_cv_make_support_nested_variables = yes; then
  2852. AM_V='$(V)'
  2853. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2854. else
  2855. AM_V=$AM_DEFAULT_VERBOSITY
  2856. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2857. fi
  2858. AM_BACKSLASH='\'
  2859. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2860. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2861. # is not polluted with repeated "-I."
  2862. am__isrc=' -I$(srcdir)'
  2863. # test to see if srcdir already configured
  2864. if test -f $srcdir/config.status; then
  2865. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2866. fi
  2867. fi
  2868. # test whether we have cygpath
  2869. if test -z "$CYGPATH_W"; then
  2870. if (cygpath --version) >/dev/null 2>/dev/null; then
  2871. CYGPATH_W='cygpath -w'
  2872. else
  2873. CYGPATH_W=echo
  2874. fi
  2875. fi
  2876. # Define the identity of the package.
  2877. PACKAGE='lame'
  2878. VERSION='3.100'
  2879. cat >>confdefs.h <<_ACEOF
  2880. #define PACKAGE "$PACKAGE"
  2881. _ACEOF
  2882. cat >>confdefs.h <<_ACEOF
  2883. #define VERSION "$VERSION"
  2884. _ACEOF
  2885. # Some tools Automake needs.
  2886. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2887. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2888. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2889. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2890. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2891. # For better backward compatibility. To be removed once Automake 1.9.x
  2892. # dies out for good. For more background, see:
  2893. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2894. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2895. mkdir_p='$(MKDIR_P)'
  2896. # We need awk for the "check" target (and possibly the TAP driver). The
  2897. # system "awk" is bad on some platforms.
  2898. # Always define AMTAR for backward compatibility. Yes, it's still used
  2899. # in the wild :-( We should find a proper way to deprecate it ...
  2900. AMTAR='$${TAR-tar}'
  2901. # We'll loop over all known methods to create a tar archive until one works.
  2902. _am_tools='gnutar pax cpio none'
  2903. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2904. # POSIX will say in a future version that running "rm -f" with no argument
  2905. # is OK; and we want to be able to make that assumption in our Makefile
  2906. # recipes. So use an aggressive probe to check that the usage we want is
  2907. # actually supported "in the wild" to an acceptable degree.
  2908. # See automake bug#10828.
  2909. # To make any issue more visible, cause the running configure to be aborted
  2910. # by default if the 'rm' program in use doesn't match our expectations; the
  2911. # user can still override this though.
  2912. if rm -f && rm -fr && rm -rf; then : OK; else
  2913. cat >&2 <<'END'
  2914. Oops!
  2915. Your 'rm' program seems unable to run without file operands specified
  2916. on the command line, even when the '-f' option is present. This is contrary
  2917. to the behaviour of most rm programs out there, and not conforming with
  2918. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2919. Please tell bug-automake@gnu.org about your system, including the value
  2920. of your $PATH and any error possibly output before this message. This
  2921. can help us improve future automake versions.
  2922. END
  2923. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2924. echo 'Configuration will proceed anyway, since you have set the' >&2
  2925. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2926. echo >&2
  2927. else
  2928. cat >&2 <<'END'
  2929. Aborting the configuration process, to ensure you take notice of the issue.
  2930. You can download and install GNU coreutils to get an 'rm' implementation
  2931. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2932. If you want to complete the configuration process using your problematic
  2933. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2934. to "yes", and re-run configure.
  2935. END
  2936. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2937. fi
  2938. fi
  2939. ac_config_headers="$ac_config_headers config.h"
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2941. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2942. # Check whether --enable-maintainer-mode was given.
  2943. if test "${enable_maintainer_mode+set}" = set; then :
  2944. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2945. else
  2946. USE_MAINTAINER_MODE=no
  2947. fi
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2949. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2950. if test $USE_MAINTAINER_MODE = yes; then
  2951. MAINTAINER_MODE_TRUE=
  2952. MAINTAINER_MODE_FALSE='#'
  2953. else
  2954. MAINTAINER_MODE_TRUE='#'
  2955. MAINTAINER_MODE_FALSE=
  2956. fi
  2957. MAINT=$MAINTAINER_MODE_TRUE
  2958. am_make=${MAKE-make}
  2959. cat > confinc << 'END'
  2960. am__doit:
  2961. @echo this is the am__doit target
  2962. .PHONY: am__doit
  2963. END
  2964. # If we don't find an include directive, just comment out the code.
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2966. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2967. am__include="#"
  2968. am__quote=
  2969. _am_result=none
  2970. # First try GNU make style include.
  2971. echo "include confinc" > confmf
  2972. # Ignore all kinds of additional output from 'make'.
  2973. case `$am_make -s -f confmf 2> /dev/null` in #(
  2974. *the\ am__doit\ target*)
  2975. am__include=include
  2976. am__quote=
  2977. _am_result=GNU
  2978. ;;
  2979. esac
  2980. # Now try BSD make style include.
  2981. if test "$am__include" = "#"; then
  2982. echo '.include "confinc"' > confmf
  2983. case `$am_make -s -f confmf 2> /dev/null` in #(
  2984. *the\ am__doit\ target*)
  2985. am__include=.include
  2986. am__quote="\""
  2987. _am_result=BSD
  2988. ;;
  2989. esac
  2990. fi
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2992. $as_echo "$_am_result" >&6; }
  2993. rm -f confinc confmf
  2994. DEPDIR="${am__leading_dot}deps"
  2995. ac_config_commands="$ac_config_commands depfiles"
  2996. # Check whether --enable-dependency-tracking was given.
  2997. if test "${enable_dependency_tracking+set}" = set; then :
  2998. enableval=$enable_dependency_tracking;
  2999. fi
  3000. if test "x$enable_dependency_tracking" != xno; then
  3001. am_depcomp="$ac_aux_dir/depcomp"
  3002. AMDEPBACKSLASH='\'
  3003. am__nodep='_no'
  3004. fi
  3005. if test "x$enable_dependency_tracking" != xno; then
  3006. AMDEP_TRUE=
  3007. AMDEP_FALSE='#'
  3008. else
  3009. AMDEP_TRUE='#'
  3010. AMDEP_FALSE=
  3011. fi
  3012. ac_ext=c
  3013. ac_cpp='$CPP $CPPFLAGS'
  3014. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3015. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3016. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3017. if test -n "$ac_tool_prefix"; then
  3018. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3019. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3021. $as_echo_n "checking for $ac_word... " >&6; }
  3022. if ${ac_cv_prog_CC+:} false; then :
  3023. $as_echo_n "(cached) " >&6
  3024. else
  3025. if test -n "$CC"; then
  3026. ac_cv_prog_CC="$CC" # Let the user override the test.
  3027. else
  3028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3029. for as_dir in $PATH
  3030. do
  3031. IFS=$as_save_IFS
  3032. test -z "$as_dir" && as_dir=.
  3033. for ac_exec_ext in '' $ac_executable_extensions; do
  3034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3035. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3037. break 2
  3038. fi
  3039. done
  3040. done
  3041. IFS=$as_save_IFS
  3042. fi
  3043. fi
  3044. CC=$ac_cv_prog_CC
  3045. if test -n "$CC"; then
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3047. $as_echo "$CC" >&6; }
  3048. else
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3050. $as_echo "no" >&6; }
  3051. fi
  3052. fi
  3053. if test -z "$ac_cv_prog_CC"; then
  3054. ac_ct_CC=$CC
  3055. # Extract the first word of "gcc", so it can be a program name with args.
  3056. set dummy gcc; ac_word=$2
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3058. $as_echo_n "checking for $ac_word... " >&6; }
  3059. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3060. $as_echo_n "(cached) " >&6
  3061. else
  3062. if test -n "$ac_ct_CC"; then
  3063. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3064. else
  3065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3066. for as_dir in $PATH
  3067. do
  3068. IFS=$as_save_IFS
  3069. test -z "$as_dir" && as_dir=.
  3070. for ac_exec_ext in '' $ac_executable_extensions; do
  3071. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3072. ac_cv_prog_ac_ct_CC="gcc"
  3073. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3074. break 2
  3075. fi
  3076. done
  3077. done
  3078. IFS=$as_save_IFS
  3079. fi
  3080. fi
  3081. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3082. if test -n "$ac_ct_CC"; then
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3084. $as_echo "$ac_ct_CC" >&6; }
  3085. else
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3087. $as_echo "no" >&6; }
  3088. fi
  3089. if test "x$ac_ct_CC" = x; then
  3090. CC=""
  3091. else
  3092. case $cross_compiling:$ac_tool_warned in
  3093. yes:)
  3094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3095. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3096. ac_tool_warned=yes ;;
  3097. esac
  3098. CC=$ac_ct_CC
  3099. fi
  3100. else
  3101. CC="$ac_cv_prog_CC"
  3102. fi
  3103. if test -z "$CC"; then
  3104. if test -n "$ac_tool_prefix"; then
  3105. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3106. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3108. $as_echo_n "checking for $ac_word... " >&6; }
  3109. if ${ac_cv_prog_CC+:} false; then :
  3110. $as_echo_n "(cached) " >&6
  3111. else
  3112. if test -n "$CC"; then
  3113. ac_cv_prog_CC="$CC" # Let the user override the test.
  3114. else
  3115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3116. for as_dir in $PATH
  3117. do
  3118. IFS=$as_save_IFS
  3119. test -z "$as_dir" && as_dir=.
  3120. for ac_exec_ext in '' $ac_executable_extensions; do
  3121. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3122. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3123. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3124. break 2
  3125. fi
  3126. done
  3127. done
  3128. IFS=$as_save_IFS
  3129. fi
  3130. fi
  3131. CC=$ac_cv_prog_CC
  3132. if test -n "$CC"; then
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3134. $as_echo "$CC" >&6; }
  3135. else
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3137. $as_echo "no" >&6; }
  3138. fi
  3139. fi
  3140. fi
  3141. if test -z "$CC"; then
  3142. # Extract the first word of "cc", so it can be a program name with args.
  3143. set dummy cc; ac_word=$2
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3145. $as_echo_n "checking for $ac_word... " >&6; }
  3146. if ${ac_cv_prog_CC+:} false; then :
  3147. $as_echo_n "(cached) " >&6
  3148. else
  3149. if test -n "$CC"; then
  3150. ac_cv_prog_CC="$CC" # Let the user override the test.
  3151. else
  3152. ac_prog_rejected=no
  3153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3154. for as_dir in $PATH
  3155. do
  3156. IFS=$as_save_IFS
  3157. test -z "$as_dir" && as_dir=.
  3158. for ac_exec_ext in '' $ac_executable_extensions; do
  3159. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3160. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3161. ac_prog_rejected=yes
  3162. continue
  3163. fi
  3164. ac_cv_prog_CC="cc"
  3165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3166. break 2
  3167. fi
  3168. done
  3169. done
  3170. IFS=$as_save_IFS
  3171. if test $ac_prog_rejected = yes; then
  3172. # We found a bogon in the path, so make sure we never use it.
  3173. set dummy $ac_cv_prog_CC
  3174. shift
  3175. if test $# != 0; then
  3176. # We chose a different compiler from the bogus one.
  3177. # However, it has the same basename, so the bogon will be chosen
  3178. # first if we set CC to just the basename; use the full file name.
  3179. shift
  3180. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3181. fi
  3182. fi
  3183. fi
  3184. fi
  3185. CC=$ac_cv_prog_CC
  3186. if test -n "$CC"; then
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3188. $as_echo "$CC" >&6; }
  3189. else
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3191. $as_echo "no" >&6; }
  3192. fi
  3193. fi
  3194. if test -z "$CC"; then
  3195. if test -n "$ac_tool_prefix"; then
  3196. for ac_prog in cl.exe
  3197. do
  3198. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3199. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3201. $as_echo_n "checking for $ac_word... " >&6; }
  3202. if ${ac_cv_prog_CC+:} false; then :
  3203. $as_echo_n "(cached) " >&6
  3204. else
  3205. if test -n "$CC"; then
  3206. ac_cv_prog_CC="$CC" # Let the user override the test.
  3207. else
  3208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3209. for as_dir in $PATH
  3210. do
  3211. IFS=$as_save_IFS
  3212. test -z "$as_dir" && as_dir=.
  3213. for ac_exec_ext in '' $ac_executable_extensions; do
  3214. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3215. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3217. break 2
  3218. fi
  3219. done
  3220. done
  3221. IFS=$as_save_IFS
  3222. fi
  3223. fi
  3224. CC=$ac_cv_prog_CC
  3225. if test -n "$CC"; then
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3227. $as_echo "$CC" >&6; }
  3228. else
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3230. $as_echo "no" >&6; }
  3231. fi
  3232. test -n "$CC" && break
  3233. done
  3234. fi
  3235. if test -z "$CC"; then
  3236. ac_ct_CC=$CC
  3237. for ac_prog in cl.exe
  3238. do
  3239. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3240. set dummy $ac_prog; ac_word=$2
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3242. $as_echo_n "checking for $ac_word... " >&6; }
  3243. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3244. $as_echo_n "(cached) " >&6
  3245. else
  3246. if test -n "$ac_ct_CC"; then
  3247. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3248. else
  3249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3250. for as_dir in $PATH
  3251. do
  3252. IFS=$as_save_IFS
  3253. test -z "$as_dir" && as_dir=.
  3254. for ac_exec_ext in '' $ac_executable_extensions; do
  3255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3256. ac_cv_prog_ac_ct_CC="$ac_prog"
  3257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3258. break 2
  3259. fi
  3260. done
  3261. done
  3262. IFS=$as_save_IFS
  3263. fi
  3264. fi
  3265. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3266. if test -n "$ac_ct_CC"; then
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3268. $as_echo "$ac_ct_CC" >&6; }
  3269. else
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3271. $as_echo "no" >&6; }
  3272. fi
  3273. test -n "$ac_ct_CC" && break
  3274. done
  3275. if test "x$ac_ct_CC" = x; then
  3276. CC=""
  3277. else
  3278. case $cross_compiling:$ac_tool_warned in
  3279. yes:)
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3281. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3282. ac_tool_warned=yes ;;
  3283. esac
  3284. CC=$ac_ct_CC
  3285. fi
  3286. fi
  3287. fi
  3288. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3289. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3290. as_fn_error $? "no acceptable C compiler found in \$PATH
  3291. See \`config.log' for more details" "$LINENO" 5; }
  3292. # Provide some information about the compiler.
  3293. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3294. set X $ac_compile
  3295. ac_compiler=$2
  3296. for ac_option in --version -v -V -qversion; do
  3297. { { ac_try="$ac_compiler $ac_option >&5"
  3298. case "(($ac_try" in
  3299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3300. *) ac_try_echo=$ac_try;;
  3301. esac
  3302. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3303. $as_echo "$ac_try_echo"; } >&5
  3304. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3305. ac_status=$?
  3306. if test -s conftest.err; then
  3307. sed '10a\
  3308. ... rest of stderr output deleted ...
  3309. 10q' conftest.err >conftest.er1
  3310. cat conftest.er1 >&5
  3311. fi
  3312. rm -f conftest.er1 conftest.err
  3313. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3314. test $ac_status = 0; }
  3315. done
  3316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3317. /* end confdefs.h. */
  3318. int
  3319. main ()
  3320. {
  3321. ;
  3322. return 0;
  3323. }
  3324. _ACEOF
  3325. ac_clean_files_save=$ac_clean_files
  3326. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3327. # Try to create an executable without -o first, disregard a.out.
  3328. # It will help us diagnose broken compilers, and finding out an intuition
  3329. # of exeext.
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3331. $as_echo_n "checking whether the C compiler works... " >&6; }
  3332. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3333. # The possible output files:
  3334. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3335. ac_rmfiles=
  3336. for ac_file in $ac_files
  3337. do
  3338. case $ac_file in
  3339. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3340. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3341. esac
  3342. done
  3343. rm -f $ac_rmfiles
  3344. if { { ac_try="$ac_link_default"
  3345. case "(($ac_try" in
  3346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3347. *) ac_try_echo=$ac_try;;
  3348. esac
  3349. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3350. $as_echo "$ac_try_echo"; } >&5
  3351. (eval "$ac_link_default") 2>&5
  3352. ac_status=$?
  3353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3354. test $ac_status = 0; }; then :
  3355. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3356. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3357. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3358. # so that the user can short-circuit this test for compilers unknown to
  3359. # Autoconf.
  3360. for ac_file in $ac_files ''
  3361. do
  3362. test -f "$ac_file" || continue
  3363. case $ac_file in
  3364. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3365. ;;
  3366. [ab].out )
  3367. # We found the default executable, but exeext='' is most
  3368. # certainly right.
  3369. break;;
  3370. *.* )
  3371. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3372. then :; else
  3373. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3374. fi
  3375. # We set ac_cv_exeext here because the later test for it is not
  3376. # safe: cross compilers may not add the suffix if given an `-o'
  3377. # argument, so we may need to know it at that point already.
  3378. # Even if this section looks crufty: it has the advantage of
  3379. # actually working.
  3380. break;;
  3381. * )
  3382. break;;
  3383. esac
  3384. done
  3385. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3386. else
  3387. ac_file=''
  3388. fi
  3389. if test -z "$ac_file"; then :
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3391. $as_echo "no" >&6; }
  3392. $as_echo "$as_me: failed program was:" >&5
  3393. sed 's/^/| /' conftest.$ac_ext >&5
  3394. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3395. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3396. as_fn_error 77 "C compiler cannot create executables
  3397. See \`config.log' for more details" "$LINENO" 5; }
  3398. else
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3400. $as_echo "yes" >&6; }
  3401. fi
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3403. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3405. $as_echo "$ac_file" >&6; }
  3406. ac_exeext=$ac_cv_exeext
  3407. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3408. ac_clean_files=$ac_clean_files_save
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3410. $as_echo_n "checking for suffix of executables... " >&6; }
  3411. if { { ac_try="$ac_link"
  3412. case "(($ac_try" in
  3413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3414. *) ac_try_echo=$ac_try;;
  3415. esac
  3416. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3417. $as_echo "$ac_try_echo"; } >&5
  3418. (eval "$ac_link") 2>&5
  3419. ac_status=$?
  3420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3421. test $ac_status = 0; }; then :
  3422. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3423. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3424. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3425. # `rm'.
  3426. for ac_file in conftest.exe conftest conftest.*; do
  3427. test -f "$ac_file" || continue
  3428. case $ac_file in
  3429. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3430. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3431. break;;
  3432. * ) break;;
  3433. esac
  3434. done
  3435. else
  3436. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3437. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3438. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3439. See \`config.log' for more details" "$LINENO" 5; }
  3440. fi
  3441. rm -f conftest conftest$ac_cv_exeext
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3443. $as_echo "$ac_cv_exeext" >&6; }
  3444. rm -f conftest.$ac_ext
  3445. EXEEXT=$ac_cv_exeext
  3446. ac_exeext=$EXEEXT
  3447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3448. /* end confdefs.h. */
  3449. #include <stdio.h>
  3450. int
  3451. main ()
  3452. {
  3453. FILE *f = fopen ("conftest.out", "w");
  3454. return ferror (f) || fclose (f) != 0;
  3455. ;
  3456. return 0;
  3457. }
  3458. _ACEOF
  3459. ac_clean_files="$ac_clean_files conftest.out"
  3460. # Check that the compiler produces executables we can run. If not, either
  3461. # the compiler is broken, or we cross compile.
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3463. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3464. if test "$cross_compiling" != yes; then
  3465. { { ac_try="$ac_link"
  3466. case "(($ac_try" in
  3467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3468. *) ac_try_echo=$ac_try;;
  3469. esac
  3470. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3471. $as_echo "$ac_try_echo"; } >&5
  3472. (eval "$ac_link") 2>&5
  3473. ac_status=$?
  3474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3475. test $ac_status = 0; }
  3476. if { ac_try='./conftest$ac_cv_exeext'
  3477. { { case "(($ac_try" in
  3478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3479. *) ac_try_echo=$ac_try;;
  3480. esac
  3481. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3482. $as_echo "$ac_try_echo"; } >&5
  3483. (eval "$ac_try") 2>&5
  3484. ac_status=$?
  3485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3486. test $ac_status = 0; }; }; then
  3487. cross_compiling=no
  3488. else
  3489. if test "$cross_compiling" = maybe; then
  3490. cross_compiling=yes
  3491. else
  3492. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3493. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3494. as_fn_error $? "cannot run C compiled programs.
  3495. If you meant to cross compile, use \`--host'.
  3496. See \`config.log' for more details" "$LINENO" 5; }
  3497. fi
  3498. fi
  3499. fi
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3501. $as_echo "$cross_compiling" >&6; }
  3502. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3503. ac_clean_files=$ac_clean_files_save
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3505. $as_echo_n "checking for suffix of object files... " >&6; }
  3506. if ${ac_cv_objext+:} false; then :
  3507. $as_echo_n "(cached) " >&6
  3508. else
  3509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3510. /* end confdefs.h. */
  3511. int
  3512. main ()
  3513. {
  3514. ;
  3515. return 0;
  3516. }
  3517. _ACEOF
  3518. rm -f conftest.o conftest.obj
  3519. if { { ac_try="$ac_compile"
  3520. case "(($ac_try" in
  3521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3522. *) ac_try_echo=$ac_try;;
  3523. esac
  3524. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3525. $as_echo "$ac_try_echo"; } >&5
  3526. (eval "$ac_compile") 2>&5
  3527. ac_status=$?
  3528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3529. test $ac_status = 0; }; then :
  3530. for ac_file in conftest.o conftest.obj conftest.*; do
  3531. test -f "$ac_file" || continue;
  3532. case $ac_file in
  3533. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3534. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3535. break;;
  3536. esac
  3537. done
  3538. else
  3539. $as_echo "$as_me: failed program was:" >&5
  3540. sed 's/^/| /' conftest.$ac_ext >&5
  3541. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3542. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3543. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3544. See \`config.log' for more details" "$LINENO" 5; }
  3545. fi
  3546. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3547. fi
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3549. $as_echo "$ac_cv_objext" >&6; }
  3550. OBJEXT=$ac_cv_objext
  3551. ac_objext=$OBJEXT
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3553. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3554. if ${ac_cv_c_compiler_gnu+:} false; then :
  3555. $as_echo_n "(cached) " >&6
  3556. else
  3557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3558. /* end confdefs.h. */
  3559. int
  3560. main ()
  3561. {
  3562. #ifndef __GNUC__
  3563. choke me
  3564. #endif
  3565. ;
  3566. return 0;
  3567. }
  3568. _ACEOF
  3569. if ac_fn_c_try_compile "$LINENO"; then :
  3570. ac_compiler_gnu=yes
  3571. else
  3572. ac_compiler_gnu=no
  3573. fi
  3574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3575. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3576. fi
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3578. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3579. if test $ac_compiler_gnu = yes; then
  3580. GCC=yes
  3581. else
  3582. GCC=
  3583. fi
  3584. ac_test_CFLAGS=${CFLAGS+set}
  3585. ac_save_CFLAGS=$CFLAGS
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3587. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3588. if ${ac_cv_prog_cc_g+:} false; then :
  3589. $as_echo_n "(cached) " >&6
  3590. else
  3591. ac_save_c_werror_flag=$ac_c_werror_flag
  3592. ac_c_werror_flag=yes
  3593. ac_cv_prog_cc_g=no
  3594. CFLAGS="-g"
  3595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3596. /* end confdefs.h. */
  3597. int
  3598. main ()
  3599. {
  3600. ;
  3601. return 0;
  3602. }
  3603. _ACEOF
  3604. if ac_fn_c_try_compile "$LINENO"; then :
  3605. ac_cv_prog_cc_g=yes
  3606. else
  3607. CFLAGS=""
  3608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3609. /* end confdefs.h. */
  3610. int
  3611. main ()
  3612. {
  3613. ;
  3614. return 0;
  3615. }
  3616. _ACEOF
  3617. if ac_fn_c_try_compile "$LINENO"; then :
  3618. else
  3619. ac_c_werror_flag=$ac_save_c_werror_flag
  3620. CFLAGS="-g"
  3621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3622. /* end confdefs.h. */
  3623. int
  3624. main ()
  3625. {
  3626. ;
  3627. return 0;
  3628. }
  3629. _ACEOF
  3630. if ac_fn_c_try_compile "$LINENO"; then :
  3631. ac_cv_prog_cc_g=yes
  3632. fi
  3633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3634. fi
  3635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3636. fi
  3637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3638. ac_c_werror_flag=$ac_save_c_werror_flag
  3639. fi
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3641. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3642. if test "$ac_test_CFLAGS" = set; then
  3643. CFLAGS=$ac_save_CFLAGS
  3644. elif test $ac_cv_prog_cc_g = yes; then
  3645. if test "$GCC" = yes; then
  3646. CFLAGS="-g -O2"
  3647. else
  3648. CFLAGS="-g"
  3649. fi
  3650. else
  3651. if test "$GCC" = yes; then
  3652. CFLAGS="-O2"
  3653. else
  3654. CFLAGS=
  3655. fi
  3656. fi
  3657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3658. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3659. if ${ac_cv_prog_cc_c89+:} false; then :
  3660. $as_echo_n "(cached) " >&6
  3661. else
  3662. ac_cv_prog_cc_c89=no
  3663. ac_save_CC=$CC
  3664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3665. /* end confdefs.h. */
  3666. #include <stdarg.h>
  3667. #include <stdio.h>
  3668. struct stat;
  3669. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3670. struct buf { int x; };
  3671. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3672. static char *e (p, i)
  3673. char **p;
  3674. int i;
  3675. {
  3676. return p[i];
  3677. }
  3678. static char *f (char * (*g) (char **, int), char **p, ...)
  3679. {
  3680. char *s;
  3681. va_list v;
  3682. va_start (v,p);
  3683. s = g (p, va_arg (v,int));
  3684. va_end (v);
  3685. return s;
  3686. }
  3687. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3688. function prototypes and stuff, but not '\xHH' hex character constants.
  3689. These don't provoke an error unfortunately, instead are silently treated
  3690. as 'x'. The following induces an error, until -std is added to get
  3691. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3692. array size at least. It's necessary to write '\x00'==0 to get something
  3693. that's true only with -std. */
  3694. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3695. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3696. inside strings and character constants. */
  3697. #define FOO(x) 'x'
  3698. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3699. int test (int i, double x);
  3700. struct s1 {int (*f) (int a);};
  3701. struct s2 {int (*f) (double a);};
  3702. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3703. int argc;
  3704. char **argv;
  3705. int
  3706. main ()
  3707. {
  3708. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3709. ;
  3710. return 0;
  3711. }
  3712. _ACEOF
  3713. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3714. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3715. do
  3716. CC="$ac_save_CC $ac_arg"
  3717. if ac_fn_c_try_compile "$LINENO"; then :
  3718. ac_cv_prog_cc_c89=$ac_arg
  3719. fi
  3720. rm -f core conftest.err conftest.$ac_objext
  3721. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3722. done
  3723. rm -f conftest.$ac_ext
  3724. CC=$ac_save_CC
  3725. fi
  3726. # AC_CACHE_VAL
  3727. case "x$ac_cv_prog_cc_c89" in
  3728. x)
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3730. $as_echo "none needed" >&6; } ;;
  3731. xno)
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3733. $as_echo "unsupported" >&6; } ;;
  3734. *)
  3735. CC="$CC $ac_cv_prog_cc_c89"
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3737. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3738. esac
  3739. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3740. fi
  3741. ac_ext=c
  3742. ac_cpp='$CPP $CPPFLAGS'
  3743. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3744. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3745. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3746. ac_ext=c
  3747. ac_cpp='$CPP $CPPFLAGS'
  3748. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3749. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3750. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3752. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3753. if ${am_cv_prog_cc_c_o+:} false; then :
  3754. $as_echo_n "(cached) " >&6
  3755. else
  3756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3757. /* end confdefs.h. */
  3758. int
  3759. main ()
  3760. {
  3761. ;
  3762. return 0;
  3763. }
  3764. _ACEOF
  3765. # Make sure it works both with $CC and with simple cc.
  3766. # Following AC_PROG_CC_C_O, we do the test twice because some
  3767. # compilers refuse to overwrite an existing .o file with -o,
  3768. # though they will create one.
  3769. am_cv_prog_cc_c_o=yes
  3770. for am_i in 1 2; do
  3771. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3772. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3773. ac_status=$?
  3774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3775. (exit $ac_status); } \
  3776. && test -f conftest2.$ac_objext; then
  3777. : OK
  3778. else
  3779. am_cv_prog_cc_c_o=no
  3780. break
  3781. fi
  3782. done
  3783. rm -f core conftest*
  3784. unset am_i
  3785. fi
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3787. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3788. if test "$am_cv_prog_cc_c_o" != yes; then
  3789. # Losing compiler, so override with the script.
  3790. # FIXME: It is wrong to rewrite CC.
  3791. # But if we don't then we get into trouble of one sort or another.
  3792. # A longer-term fix would be to have automake use am__CC in this case,
  3793. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3794. CC="$am_aux_dir/compile $CC"
  3795. fi
  3796. ac_ext=c
  3797. ac_cpp='$CPP $CPPFLAGS'
  3798. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3799. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3800. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3801. depcc="$CC" am_compiler_list=
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3803. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3804. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3805. $as_echo_n "(cached) " >&6
  3806. else
  3807. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3808. # We make a subdir and do the tests there. Otherwise we can end up
  3809. # making bogus files that we don't know about and never remove. For
  3810. # instance it was reported that on HP-UX the gcc test will end up
  3811. # making a dummy file named 'D' -- because '-MD' means "put the output
  3812. # in D".
  3813. rm -rf conftest.dir
  3814. mkdir conftest.dir
  3815. # Copy depcomp to subdir because otherwise we won't find it if we're
  3816. # using a relative directory.
  3817. cp "$am_depcomp" conftest.dir
  3818. cd conftest.dir
  3819. # We will build objects and dependencies in a subdirectory because
  3820. # it helps to detect inapplicable dependency modes. For instance
  3821. # both Tru64's cc and ICC support -MD to output dependencies as a
  3822. # side effect of compilation, but ICC will put the dependencies in
  3823. # the current directory while Tru64 will put them in the object
  3824. # directory.
  3825. mkdir sub
  3826. am_cv_CC_dependencies_compiler_type=none
  3827. if test "$am_compiler_list" = ""; then
  3828. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3829. fi
  3830. am__universal=false
  3831. case " $depcc " in #(
  3832. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3833. esac
  3834. for depmode in $am_compiler_list; do
  3835. # Setup a source with many dependencies, because some compilers
  3836. # like to wrap large dependency lists on column 80 (with \), and
  3837. # we should not choose a depcomp mode which is confused by this.
  3838. #
  3839. # We need to recreate these files for each test, as the compiler may
  3840. # overwrite some of them when testing with obscure command lines.
  3841. # This happens at least with the AIX C compiler.
  3842. : > sub/conftest.c
  3843. for i in 1 2 3 4 5 6; do
  3844. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3845. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3846. # Solaris 10 /bin/sh.
  3847. echo '/* dummy */' > sub/conftst$i.h
  3848. done
  3849. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3850. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3851. # mode. It turns out that the SunPro C++ compiler does not properly
  3852. # handle '-M -o', and we need to detect this. Also, some Intel
  3853. # versions had trouble with output in subdirs.
  3854. am__obj=sub/conftest.${OBJEXT-o}
  3855. am__minus_obj="-o $am__obj"
  3856. case $depmode in
  3857. gcc)
  3858. # This depmode causes a compiler race in universal mode.
  3859. test "$am__universal" = false || continue
  3860. ;;
  3861. nosideeffect)
  3862. # After this tag, mechanisms are not by side-effect, so they'll
  3863. # only be used when explicitly requested.
  3864. if test "x$enable_dependency_tracking" = xyes; then
  3865. continue
  3866. else
  3867. break
  3868. fi
  3869. ;;
  3870. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3871. # This compiler won't grok '-c -o', but also, the minuso test has
  3872. # not run yet. These depmodes are late enough in the game, and
  3873. # so weak that their functioning should not be impacted.
  3874. am__obj=conftest.${OBJEXT-o}
  3875. am__minus_obj=
  3876. ;;
  3877. none) break ;;
  3878. esac
  3879. if depmode=$depmode \
  3880. source=sub/conftest.c object=$am__obj \
  3881. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3882. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3883. >/dev/null 2>conftest.err &&
  3884. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3885. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3886. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3887. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3888. # icc doesn't choke on unknown options, it will just issue warnings
  3889. # or remarks (even with -Werror). So we grep stderr for any message
  3890. # that says an option was ignored or not supported.
  3891. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3892. # icc: Command line warning: ignoring option '-M'; no argument required
  3893. # The diagnosis changed in icc 8.0:
  3894. # icc: Command line remark: option '-MP' not supported
  3895. if (grep 'ignoring option' conftest.err ||
  3896. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3897. am_cv_CC_dependencies_compiler_type=$depmode
  3898. break
  3899. fi
  3900. fi
  3901. done
  3902. cd ..
  3903. rm -rf conftest.dir
  3904. else
  3905. am_cv_CC_dependencies_compiler_type=none
  3906. fi
  3907. fi
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3909. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3910. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3911. if
  3912. test "x$enable_dependency_tracking" != xno \
  3913. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3914. am__fastdepCC_TRUE=
  3915. am__fastdepCC_FALSE='#'
  3916. else
  3917. am__fastdepCC_TRUE='#'
  3918. am__fastdepCC_FALSE=
  3919. fi
  3920. ac_ext=c
  3921. ac_cpp='$CPP $CPPFLAGS'
  3922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3926. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3927. # On Suns, sometimes $CPP names a directory.
  3928. if test -n "$CPP" && test -d "$CPP"; then
  3929. CPP=
  3930. fi
  3931. if test -z "$CPP"; then
  3932. if ${ac_cv_prog_CPP+:} false; then :
  3933. $as_echo_n "(cached) " >&6
  3934. else
  3935. # Double quotes because CPP needs to be expanded
  3936. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3937. do
  3938. ac_preproc_ok=false
  3939. for ac_c_preproc_warn_flag in '' yes
  3940. do
  3941. # Use a header file that comes with gcc, so configuring glibc
  3942. # with a fresh cross-compiler works.
  3943. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3944. # <limits.h> exists even on freestanding compilers.
  3945. # On the NeXT, cc -E runs the code through the compiler's parser,
  3946. # not just through cpp. "Syntax error" is here to catch this case.
  3947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3948. /* end confdefs.h. */
  3949. #ifdef __STDC__
  3950. # include <limits.h>
  3951. #else
  3952. # include <assert.h>
  3953. #endif
  3954. Syntax error
  3955. _ACEOF
  3956. if ac_fn_c_try_cpp "$LINENO"; then :
  3957. else
  3958. # Broken: fails on valid input.
  3959. continue
  3960. fi
  3961. rm -f conftest.err conftest.i conftest.$ac_ext
  3962. # OK, works on sane cases. Now check whether nonexistent headers
  3963. # can be detected and how.
  3964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3965. /* end confdefs.h. */
  3966. #include <ac_nonexistent.h>
  3967. _ACEOF
  3968. if ac_fn_c_try_cpp "$LINENO"; then :
  3969. # Broken: success on invalid input.
  3970. continue
  3971. else
  3972. # Passes both tests.
  3973. ac_preproc_ok=:
  3974. break
  3975. fi
  3976. rm -f conftest.err conftest.i conftest.$ac_ext
  3977. done
  3978. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3979. rm -f conftest.i conftest.err conftest.$ac_ext
  3980. if $ac_preproc_ok; then :
  3981. break
  3982. fi
  3983. done
  3984. ac_cv_prog_CPP=$CPP
  3985. fi
  3986. CPP=$ac_cv_prog_CPP
  3987. else
  3988. ac_cv_prog_CPP=$CPP
  3989. fi
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3991. $as_echo "$CPP" >&6; }
  3992. ac_preproc_ok=false
  3993. for ac_c_preproc_warn_flag in '' yes
  3994. do
  3995. # Use a header file that comes with gcc, so configuring glibc
  3996. # with a fresh cross-compiler works.
  3997. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3998. # <limits.h> exists even on freestanding compilers.
  3999. # On the NeXT, cc -E runs the code through the compiler's parser,
  4000. # not just through cpp. "Syntax error" is here to catch this case.
  4001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4002. /* end confdefs.h. */
  4003. #ifdef __STDC__
  4004. # include <limits.h>
  4005. #else
  4006. # include <assert.h>
  4007. #endif
  4008. Syntax error
  4009. _ACEOF
  4010. if ac_fn_c_try_cpp "$LINENO"; then :
  4011. else
  4012. # Broken: fails on valid input.
  4013. continue
  4014. fi
  4015. rm -f conftest.err conftest.i conftest.$ac_ext
  4016. # OK, works on sane cases. Now check whether nonexistent headers
  4017. # can be detected and how.
  4018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4019. /* end confdefs.h. */
  4020. #include <ac_nonexistent.h>
  4021. _ACEOF
  4022. if ac_fn_c_try_cpp "$LINENO"; then :
  4023. # Broken: success on invalid input.
  4024. continue
  4025. else
  4026. # Passes both tests.
  4027. ac_preproc_ok=:
  4028. break
  4029. fi
  4030. rm -f conftest.err conftest.i conftest.$ac_ext
  4031. done
  4032. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4033. rm -f conftest.i conftest.err conftest.$ac_ext
  4034. if $ac_preproc_ok; then :
  4035. else
  4036. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4037. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4038. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4039. See \`config.log' for more details" "$LINENO" 5; }
  4040. fi
  4041. ac_ext=c
  4042. ac_cpp='$CPP $CPPFLAGS'
  4043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4047. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4048. if ${ac_cv_path_GREP+:} false; then :
  4049. $as_echo_n "(cached) " >&6
  4050. else
  4051. if test -z "$GREP"; then
  4052. ac_path_GREP_found=false
  4053. # Loop through the user's path and test for each of PROGNAME-LIST
  4054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4055. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4056. do
  4057. IFS=$as_save_IFS
  4058. test -z "$as_dir" && as_dir=.
  4059. for ac_prog in grep ggrep; do
  4060. for ac_exec_ext in '' $ac_executable_extensions; do
  4061. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4062. as_fn_executable_p "$ac_path_GREP" || continue
  4063. # Check for GNU ac_path_GREP and select it if it is found.
  4064. # Check for GNU $ac_path_GREP
  4065. case `"$ac_path_GREP" --version 2>&1` in
  4066. *GNU*)
  4067. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4068. *)
  4069. ac_count=0
  4070. $as_echo_n 0123456789 >"conftest.in"
  4071. while :
  4072. do
  4073. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4074. mv "conftest.tmp" "conftest.in"
  4075. cp "conftest.in" "conftest.nl"
  4076. $as_echo 'GREP' >> "conftest.nl"
  4077. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4078. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4079. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4080. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4081. # Best one so far, save it but keep looking for a better one
  4082. ac_cv_path_GREP="$ac_path_GREP"
  4083. ac_path_GREP_max=$ac_count
  4084. fi
  4085. # 10*(2^10) chars as input seems more than enough
  4086. test $ac_count -gt 10 && break
  4087. done
  4088. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4089. esac
  4090. $ac_path_GREP_found && break 3
  4091. done
  4092. done
  4093. done
  4094. IFS=$as_save_IFS
  4095. if test -z "$ac_cv_path_GREP"; then
  4096. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4097. fi
  4098. else
  4099. ac_cv_path_GREP=$GREP
  4100. fi
  4101. fi
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4103. $as_echo "$ac_cv_path_GREP" >&6; }
  4104. GREP="$ac_cv_path_GREP"
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4106. $as_echo_n "checking for egrep... " >&6; }
  4107. if ${ac_cv_path_EGREP+:} false; then :
  4108. $as_echo_n "(cached) " >&6
  4109. else
  4110. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4111. then ac_cv_path_EGREP="$GREP -E"
  4112. else
  4113. if test -z "$EGREP"; then
  4114. ac_path_EGREP_found=false
  4115. # Loop through the user's path and test for each of PROGNAME-LIST
  4116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4117. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4118. do
  4119. IFS=$as_save_IFS
  4120. test -z "$as_dir" && as_dir=.
  4121. for ac_prog in egrep; do
  4122. for ac_exec_ext in '' $ac_executable_extensions; do
  4123. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4124. as_fn_executable_p "$ac_path_EGREP" || continue
  4125. # Check for GNU ac_path_EGREP and select it if it is found.
  4126. # Check for GNU $ac_path_EGREP
  4127. case `"$ac_path_EGREP" --version 2>&1` in
  4128. *GNU*)
  4129. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4130. *)
  4131. ac_count=0
  4132. $as_echo_n 0123456789 >"conftest.in"
  4133. while :
  4134. do
  4135. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4136. mv "conftest.tmp" "conftest.in"
  4137. cp "conftest.in" "conftest.nl"
  4138. $as_echo 'EGREP' >> "conftest.nl"
  4139. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4140. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4141. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4142. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4143. # Best one so far, save it but keep looking for a better one
  4144. ac_cv_path_EGREP="$ac_path_EGREP"
  4145. ac_path_EGREP_max=$ac_count
  4146. fi
  4147. # 10*(2^10) chars as input seems more than enough
  4148. test $ac_count -gt 10 && break
  4149. done
  4150. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4151. esac
  4152. $ac_path_EGREP_found && break 3
  4153. done
  4154. done
  4155. done
  4156. IFS=$as_save_IFS
  4157. if test -z "$ac_cv_path_EGREP"; then
  4158. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4159. fi
  4160. else
  4161. ac_cv_path_EGREP=$EGREP
  4162. fi
  4163. fi
  4164. fi
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4166. $as_echo "$ac_cv_path_EGREP" >&6; }
  4167. EGREP="$ac_cv_path_EGREP"
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4169. $as_echo_n "checking for ANSI C header files... " >&6; }
  4170. if ${ac_cv_header_stdc+:} false; then :
  4171. $as_echo_n "(cached) " >&6
  4172. else
  4173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4174. /* end confdefs.h. */
  4175. #include <stdlib.h>
  4176. #include <stdarg.h>
  4177. #include <string.h>
  4178. #include <float.h>
  4179. int
  4180. main ()
  4181. {
  4182. ;
  4183. return 0;
  4184. }
  4185. _ACEOF
  4186. if ac_fn_c_try_compile "$LINENO"; then :
  4187. ac_cv_header_stdc=yes
  4188. else
  4189. ac_cv_header_stdc=no
  4190. fi
  4191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4192. if test $ac_cv_header_stdc = yes; then
  4193. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4195. /* end confdefs.h. */
  4196. #include <string.h>
  4197. _ACEOF
  4198. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4199. $EGREP "memchr" >/dev/null 2>&1; then :
  4200. else
  4201. ac_cv_header_stdc=no
  4202. fi
  4203. rm -f conftest*
  4204. fi
  4205. if test $ac_cv_header_stdc = yes; then
  4206. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4208. /* end confdefs.h. */
  4209. #include <stdlib.h>
  4210. _ACEOF
  4211. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4212. $EGREP "free" >/dev/null 2>&1; then :
  4213. else
  4214. ac_cv_header_stdc=no
  4215. fi
  4216. rm -f conftest*
  4217. fi
  4218. if test $ac_cv_header_stdc = yes; then
  4219. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4220. if test "$cross_compiling" = yes; then :
  4221. :
  4222. else
  4223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4224. /* end confdefs.h. */
  4225. #include <ctype.h>
  4226. #include <stdlib.h>
  4227. #if ((' ' & 0x0FF) == 0x020)
  4228. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4229. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4230. #else
  4231. # define ISLOWER(c) \
  4232. (('a' <= (c) && (c) <= 'i') \
  4233. || ('j' <= (c) && (c) <= 'r') \
  4234. || ('s' <= (c) && (c) <= 'z'))
  4235. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4236. #endif
  4237. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4238. int
  4239. main ()
  4240. {
  4241. int i;
  4242. for (i = 0; i < 256; i++)
  4243. if (XOR (islower (i), ISLOWER (i))
  4244. || toupper (i) != TOUPPER (i))
  4245. return 2;
  4246. return 0;
  4247. }
  4248. _ACEOF
  4249. if ac_fn_c_try_run "$LINENO"; then :
  4250. else
  4251. ac_cv_header_stdc=no
  4252. fi
  4253. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4254. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4255. fi
  4256. fi
  4257. fi
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4259. $as_echo "$ac_cv_header_stdc" >&6; }
  4260. if test $ac_cv_header_stdc = yes; then
  4261. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4262. fi
  4263. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4264. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4265. inttypes.h stdint.h unistd.h
  4266. do :
  4267. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4268. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4269. "
  4270. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4271. cat >>confdefs.h <<_ACEOF
  4272. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4273. _ACEOF
  4274. fi
  4275. done
  4276. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4277. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4278. MINIX=yes
  4279. else
  4280. MINIX=
  4281. fi
  4282. if test "$MINIX" = yes; then
  4283. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4284. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4285. $as_echo "#define _MINIX 1" >>confdefs.h
  4286. fi
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4288. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4289. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4290. $as_echo_n "(cached) " >&6
  4291. else
  4292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4293. /* end confdefs.h. */
  4294. # define __EXTENSIONS__ 1
  4295. $ac_includes_default
  4296. int
  4297. main ()
  4298. {
  4299. ;
  4300. return 0;
  4301. }
  4302. _ACEOF
  4303. if ac_fn_c_try_compile "$LINENO"; then :
  4304. ac_cv_safe_to_define___extensions__=yes
  4305. else
  4306. ac_cv_safe_to_define___extensions__=no
  4307. fi
  4308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4309. fi
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4311. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4312. test $ac_cv_safe_to_define___extensions__ = yes &&
  4313. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4314. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4315. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4316. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4317. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  4319. $as_echo_n "checking for library containing strerror... " >&6; }
  4320. if ${ac_cv_search_strerror+:} false; then :
  4321. $as_echo_n "(cached) " >&6
  4322. else
  4323. ac_func_search_save_LIBS=$LIBS
  4324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4325. /* end confdefs.h. */
  4326. /* Override any GCC internal prototype to avoid an error.
  4327. Use char because int might match the return type of a GCC
  4328. builtin and then its argument prototype would still apply. */
  4329. #ifdef __cplusplus
  4330. extern "C"
  4331. #endif
  4332. char strerror ();
  4333. int
  4334. main ()
  4335. {
  4336. return strerror ();
  4337. ;
  4338. return 0;
  4339. }
  4340. _ACEOF
  4341. for ac_lib in '' cposix; do
  4342. if test -z "$ac_lib"; then
  4343. ac_res="none required"
  4344. else
  4345. ac_res=-l$ac_lib
  4346. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4347. fi
  4348. if ac_fn_c_try_link "$LINENO"; then :
  4349. ac_cv_search_strerror=$ac_res
  4350. fi
  4351. rm -f core conftest.err conftest.$ac_objext \
  4352. conftest$ac_exeext
  4353. if ${ac_cv_search_strerror+:} false; then :
  4354. break
  4355. fi
  4356. done
  4357. if ${ac_cv_search_strerror+:} false; then :
  4358. else
  4359. ac_cv_search_strerror=no
  4360. fi
  4361. rm conftest.$ac_ext
  4362. LIBS=$ac_func_search_save_LIBS
  4363. fi
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  4365. $as_echo "$ac_cv_search_strerror" >&6; }
  4366. ac_res=$ac_cv_search_strerror
  4367. if test "$ac_res" != no; then :
  4368. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4369. fi
  4370. case $host_os in
  4371. *cygwin* ) CYGWIN=yes;;
  4372. * ) CYGWIN=no;;
  4373. esac
  4374. # AC_DISABLE_SHARED
  4375. case `pwd` in
  4376. *\ * | *\ *)
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4378. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4379. esac
  4380. macro_version='2.4.6'
  4381. macro_revision='2.4.6'
  4382. ltmain=$ac_aux_dir/ltmain.sh
  4383. # Backslashify metacharacters that are still active within
  4384. # double-quoted strings.
  4385. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4386. # Same as above, but do not quote variable references.
  4387. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4388. # Sed substitution to delay expansion of an escaped shell variable in a
  4389. # double_quote_subst'ed string.
  4390. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4391. # Sed substitution to delay expansion of an escaped single quote.
  4392. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4393. # Sed substitution to avoid accidental globbing in evaled expressions
  4394. no_glob_subst='s/\*/\\\*/g'
  4395. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4396. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4397. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4399. $as_echo_n "checking how to print strings... " >&6; }
  4400. # Test print first, because it will be a builtin if present.
  4401. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4402. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4403. ECHO='print -r --'
  4404. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4405. ECHO='printf %s\n'
  4406. else
  4407. # Use this function as a fallback that always works.
  4408. func_fallback_echo ()
  4409. {
  4410. eval 'cat <<_LTECHO_EOF
  4411. $1
  4412. _LTECHO_EOF'
  4413. }
  4414. ECHO='func_fallback_echo'
  4415. fi
  4416. # func_echo_all arg...
  4417. # Invoke $ECHO with all args, space-separated.
  4418. func_echo_all ()
  4419. {
  4420. $ECHO ""
  4421. }
  4422. case $ECHO in
  4423. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4424. $as_echo "printf" >&6; } ;;
  4425. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4426. $as_echo "print -r" >&6; } ;;
  4427. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4428. $as_echo "cat" >&6; } ;;
  4429. esac
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4431. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4432. if ${ac_cv_path_SED+:} false; then :
  4433. $as_echo_n "(cached) " >&6
  4434. else
  4435. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4436. for ac_i in 1 2 3 4 5 6 7; do
  4437. ac_script="$ac_script$as_nl$ac_script"
  4438. done
  4439. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4440. { ac_script=; unset ac_script;}
  4441. if test -z "$SED"; then
  4442. ac_path_SED_found=false
  4443. # Loop through the user's path and test for each of PROGNAME-LIST
  4444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4445. for as_dir in $PATH
  4446. do
  4447. IFS=$as_save_IFS
  4448. test -z "$as_dir" && as_dir=.
  4449. for ac_prog in sed gsed; do
  4450. for ac_exec_ext in '' $ac_executable_extensions; do
  4451. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4452. as_fn_executable_p "$ac_path_SED" || continue
  4453. # Check for GNU ac_path_SED and select it if it is found.
  4454. # Check for GNU $ac_path_SED
  4455. case `"$ac_path_SED" --version 2>&1` in
  4456. *GNU*)
  4457. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4458. *)
  4459. ac_count=0
  4460. $as_echo_n 0123456789 >"conftest.in"
  4461. while :
  4462. do
  4463. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4464. mv "conftest.tmp" "conftest.in"
  4465. cp "conftest.in" "conftest.nl"
  4466. $as_echo '' >> "conftest.nl"
  4467. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4468. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4469. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4470. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4471. # Best one so far, save it but keep looking for a better one
  4472. ac_cv_path_SED="$ac_path_SED"
  4473. ac_path_SED_max=$ac_count
  4474. fi
  4475. # 10*(2^10) chars as input seems more than enough
  4476. test $ac_count -gt 10 && break
  4477. done
  4478. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4479. esac
  4480. $ac_path_SED_found && break 3
  4481. done
  4482. done
  4483. done
  4484. IFS=$as_save_IFS
  4485. if test -z "$ac_cv_path_SED"; then
  4486. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4487. fi
  4488. else
  4489. ac_cv_path_SED=$SED
  4490. fi
  4491. fi
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4493. $as_echo "$ac_cv_path_SED" >&6; }
  4494. SED="$ac_cv_path_SED"
  4495. rm -f conftest.sed
  4496. test -z "$SED" && SED=sed
  4497. Xsed="$SED -e 1s/^X//"
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4499. $as_echo_n "checking for fgrep... " >&6; }
  4500. if ${ac_cv_path_FGREP+:} false; then :
  4501. $as_echo_n "(cached) " >&6
  4502. else
  4503. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4504. then ac_cv_path_FGREP="$GREP -F"
  4505. else
  4506. if test -z "$FGREP"; then
  4507. ac_path_FGREP_found=false
  4508. # Loop through the user's path and test for each of PROGNAME-LIST
  4509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4510. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4511. do
  4512. IFS=$as_save_IFS
  4513. test -z "$as_dir" && as_dir=.
  4514. for ac_prog in fgrep; do
  4515. for ac_exec_ext in '' $ac_executable_extensions; do
  4516. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4517. as_fn_executable_p "$ac_path_FGREP" || continue
  4518. # Check for GNU ac_path_FGREP and select it if it is found.
  4519. # Check for GNU $ac_path_FGREP
  4520. case `"$ac_path_FGREP" --version 2>&1` in
  4521. *GNU*)
  4522. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4523. *)
  4524. ac_count=0
  4525. $as_echo_n 0123456789 >"conftest.in"
  4526. while :
  4527. do
  4528. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4529. mv "conftest.tmp" "conftest.in"
  4530. cp "conftest.in" "conftest.nl"
  4531. $as_echo 'FGREP' >> "conftest.nl"
  4532. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4533. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4534. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4535. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4536. # Best one so far, save it but keep looking for a better one
  4537. ac_cv_path_FGREP="$ac_path_FGREP"
  4538. ac_path_FGREP_max=$ac_count
  4539. fi
  4540. # 10*(2^10) chars as input seems more than enough
  4541. test $ac_count -gt 10 && break
  4542. done
  4543. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4544. esac
  4545. $ac_path_FGREP_found && break 3
  4546. done
  4547. done
  4548. done
  4549. IFS=$as_save_IFS
  4550. if test -z "$ac_cv_path_FGREP"; then
  4551. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4552. fi
  4553. else
  4554. ac_cv_path_FGREP=$FGREP
  4555. fi
  4556. fi
  4557. fi
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4559. $as_echo "$ac_cv_path_FGREP" >&6; }
  4560. FGREP="$ac_cv_path_FGREP"
  4561. test -z "$GREP" && GREP=grep
  4562. # Check whether --with-gnu-ld was given.
  4563. if test "${with_gnu_ld+set}" = set; then :
  4564. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4565. else
  4566. with_gnu_ld=no
  4567. fi
  4568. ac_prog=ld
  4569. if test yes = "$GCC"; then
  4570. # Check if gcc -print-prog-name=ld gives a path.
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4572. $as_echo_n "checking for ld used by $CC... " >&6; }
  4573. case $host in
  4574. *-*-mingw*)
  4575. # gcc leaves a trailing carriage return, which upsets mingw
  4576. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4577. *)
  4578. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4579. esac
  4580. case $ac_prog in
  4581. # Accept absolute paths.
  4582. [\\/]* | ?:[\\/]*)
  4583. re_direlt='/[^/][^/]*/\.\./'
  4584. # Canonicalize the pathname of ld
  4585. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4586. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4587. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4588. done
  4589. test -z "$LD" && LD=$ac_prog
  4590. ;;
  4591. "")
  4592. # If it fails, then pretend we aren't using GCC.
  4593. ac_prog=ld
  4594. ;;
  4595. *)
  4596. # If it is relative, then search for the first ld in PATH.
  4597. with_gnu_ld=unknown
  4598. ;;
  4599. esac
  4600. elif test yes = "$with_gnu_ld"; then
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4602. $as_echo_n "checking for GNU ld... " >&6; }
  4603. else
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4605. $as_echo_n "checking for non-GNU ld... " >&6; }
  4606. fi
  4607. if ${lt_cv_path_LD+:} false; then :
  4608. $as_echo_n "(cached) " >&6
  4609. else
  4610. if test -z "$LD"; then
  4611. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4612. for ac_dir in $PATH; do
  4613. IFS=$lt_save_ifs
  4614. test -z "$ac_dir" && ac_dir=.
  4615. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4616. lt_cv_path_LD=$ac_dir/$ac_prog
  4617. # Check to see if the program is GNU ld. I'd rather use --version,
  4618. # but apparently some variants of GNU ld only accept -v.
  4619. # Break only if it was the GNU/non-GNU ld that we prefer.
  4620. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4621. *GNU* | *'with BFD'*)
  4622. test no != "$with_gnu_ld" && break
  4623. ;;
  4624. *)
  4625. test yes != "$with_gnu_ld" && break
  4626. ;;
  4627. esac
  4628. fi
  4629. done
  4630. IFS=$lt_save_ifs
  4631. else
  4632. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4633. fi
  4634. fi
  4635. LD=$lt_cv_path_LD
  4636. if test -n "$LD"; then
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4638. $as_echo "$LD" >&6; }
  4639. else
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4641. $as_echo "no" >&6; }
  4642. fi
  4643. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4645. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4646. if ${lt_cv_prog_gnu_ld+:} false; then :
  4647. $as_echo_n "(cached) " >&6
  4648. else
  4649. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4650. case `$LD -v 2>&1 </dev/null` in
  4651. *GNU* | *'with BFD'*)
  4652. lt_cv_prog_gnu_ld=yes
  4653. ;;
  4654. *)
  4655. lt_cv_prog_gnu_ld=no
  4656. ;;
  4657. esac
  4658. fi
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4660. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4661. with_gnu_ld=$lt_cv_prog_gnu_ld
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4663. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4664. if ${lt_cv_path_NM+:} false; then :
  4665. $as_echo_n "(cached) " >&6
  4666. else
  4667. if test -n "$NM"; then
  4668. # Let the user override the test.
  4669. lt_cv_path_NM=$NM
  4670. else
  4671. lt_nm_to_check=${ac_tool_prefix}nm
  4672. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4673. lt_nm_to_check="$lt_nm_to_check nm"
  4674. fi
  4675. for lt_tmp_nm in $lt_nm_to_check; do
  4676. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4677. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4678. IFS=$lt_save_ifs
  4679. test -z "$ac_dir" && ac_dir=.
  4680. tmp_nm=$ac_dir/$lt_tmp_nm
  4681. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4682. # Check to see if the nm accepts a BSD-compat flag.
  4683. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4684. # nm: unknown option "B" ignored
  4685. # Tru64's nm complains that /dev/null is an invalid object file
  4686. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4687. case $build_os in
  4688. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4689. *) lt_bad_file=/dev/null ;;
  4690. esac
  4691. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4692. *$lt_bad_file* | *'Invalid file or object type'*)
  4693. lt_cv_path_NM="$tmp_nm -B"
  4694. break 2
  4695. ;;
  4696. *)
  4697. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4698. */dev/null*)
  4699. lt_cv_path_NM="$tmp_nm -p"
  4700. break 2
  4701. ;;
  4702. *)
  4703. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4704. continue # so that we can try to find one that supports BSD flags
  4705. ;;
  4706. esac
  4707. ;;
  4708. esac
  4709. fi
  4710. done
  4711. IFS=$lt_save_ifs
  4712. done
  4713. : ${lt_cv_path_NM=no}
  4714. fi
  4715. fi
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4717. $as_echo "$lt_cv_path_NM" >&6; }
  4718. if test no != "$lt_cv_path_NM"; then
  4719. NM=$lt_cv_path_NM
  4720. else
  4721. # Didn't find any BSD compatible name lister, look for dumpbin.
  4722. if test -n "$DUMPBIN"; then :
  4723. # Let the user override the test.
  4724. else
  4725. if test -n "$ac_tool_prefix"; then
  4726. for ac_prog in dumpbin "link -dump"
  4727. do
  4728. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4729. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4731. $as_echo_n "checking for $ac_word... " >&6; }
  4732. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4733. $as_echo_n "(cached) " >&6
  4734. else
  4735. if test -n "$DUMPBIN"; then
  4736. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4737. else
  4738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4739. for as_dir in $PATH
  4740. do
  4741. IFS=$as_save_IFS
  4742. test -z "$as_dir" && as_dir=.
  4743. for ac_exec_ext in '' $ac_executable_extensions; do
  4744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4745. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4747. break 2
  4748. fi
  4749. done
  4750. done
  4751. IFS=$as_save_IFS
  4752. fi
  4753. fi
  4754. DUMPBIN=$ac_cv_prog_DUMPBIN
  4755. if test -n "$DUMPBIN"; then
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4757. $as_echo "$DUMPBIN" >&6; }
  4758. else
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4760. $as_echo "no" >&6; }
  4761. fi
  4762. test -n "$DUMPBIN" && break
  4763. done
  4764. fi
  4765. if test -z "$DUMPBIN"; then
  4766. ac_ct_DUMPBIN=$DUMPBIN
  4767. for ac_prog in dumpbin "link -dump"
  4768. do
  4769. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4770. set dummy $ac_prog; ac_word=$2
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4772. $as_echo_n "checking for $ac_word... " >&6; }
  4773. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4774. $as_echo_n "(cached) " >&6
  4775. else
  4776. if test -n "$ac_ct_DUMPBIN"; then
  4777. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4778. else
  4779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4780. for as_dir in $PATH
  4781. do
  4782. IFS=$as_save_IFS
  4783. test -z "$as_dir" && as_dir=.
  4784. for ac_exec_ext in '' $ac_executable_extensions; do
  4785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4786. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4788. break 2
  4789. fi
  4790. done
  4791. done
  4792. IFS=$as_save_IFS
  4793. fi
  4794. fi
  4795. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4796. if test -n "$ac_ct_DUMPBIN"; then
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4798. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4799. else
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4801. $as_echo "no" >&6; }
  4802. fi
  4803. test -n "$ac_ct_DUMPBIN" && break
  4804. done
  4805. if test "x$ac_ct_DUMPBIN" = x; then
  4806. DUMPBIN=":"
  4807. else
  4808. case $cross_compiling:$ac_tool_warned in
  4809. yes:)
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4811. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4812. ac_tool_warned=yes ;;
  4813. esac
  4814. DUMPBIN=$ac_ct_DUMPBIN
  4815. fi
  4816. fi
  4817. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4818. *COFF*)
  4819. DUMPBIN="$DUMPBIN -symbols -headers"
  4820. ;;
  4821. *)
  4822. DUMPBIN=:
  4823. ;;
  4824. esac
  4825. fi
  4826. if test : != "$DUMPBIN"; then
  4827. NM=$DUMPBIN
  4828. fi
  4829. fi
  4830. test -z "$NM" && NM=nm
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4832. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4833. if ${lt_cv_nm_interface+:} false; then :
  4834. $as_echo_n "(cached) " >&6
  4835. else
  4836. lt_cv_nm_interface="BSD nm"
  4837. echo "int some_variable = 0;" > conftest.$ac_ext
  4838. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4839. (eval "$ac_compile" 2>conftest.err)
  4840. cat conftest.err >&5
  4841. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4842. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4843. cat conftest.err >&5
  4844. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4845. cat conftest.out >&5
  4846. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4847. lt_cv_nm_interface="MS dumpbin"
  4848. fi
  4849. rm -f conftest*
  4850. fi
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4852. $as_echo "$lt_cv_nm_interface" >&6; }
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4854. $as_echo_n "checking whether ln -s works... " >&6; }
  4855. LN_S=$as_ln_s
  4856. if test "$LN_S" = "ln -s"; then
  4857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4858. $as_echo "yes" >&6; }
  4859. else
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4861. $as_echo "no, using $LN_S" >&6; }
  4862. fi
  4863. # find the maximum length of command line arguments
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4865. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4866. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4867. $as_echo_n "(cached) " >&6
  4868. else
  4869. i=0
  4870. teststring=ABCD
  4871. case $build_os in
  4872. msdosdjgpp*)
  4873. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4874. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4875. # during glob expansion). Even if it were fixed, the result of this
  4876. # check would be larger than it should be.
  4877. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4878. ;;
  4879. gnu*)
  4880. # Under GNU Hurd, this test is not required because there is
  4881. # no limit to the length of command line arguments.
  4882. # Libtool will interpret -1 as no limit whatsoever
  4883. lt_cv_sys_max_cmd_len=-1;
  4884. ;;
  4885. cygwin* | mingw* | cegcc*)
  4886. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4887. # about 5 minutes as the teststring grows exponentially.
  4888. # Worse, since 9x/ME are not pre-emptively multitasking,
  4889. # you end up with a "frozen" computer, even though with patience
  4890. # the test eventually succeeds (with a max line length of 256k).
  4891. # Instead, let's just punt: use the minimum linelength reported by
  4892. # all of the supported platforms: 8192 (on NT/2K/XP).
  4893. lt_cv_sys_max_cmd_len=8192;
  4894. ;;
  4895. mint*)
  4896. # On MiNT this can take a long time and run out of memory.
  4897. lt_cv_sys_max_cmd_len=8192;
  4898. ;;
  4899. amigaos*)
  4900. # On AmigaOS with pdksh, this test takes hours, literally.
  4901. # So we just punt and use a minimum line length of 8192.
  4902. lt_cv_sys_max_cmd_len=8192;
  4903. ;;
  4904. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4905. # This has been around since 386BSD, at least. Likely further.
  4906. if test -x /sbin/sysctl; then
  4907. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4908. elif test -x /usr/sbin/sysctl; then
  4909. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4910. else
  4911. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4912. fi
  4913. # And add a safety zone
  4914. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4915. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4916. ;;
  4917. interix*)
  4918. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4919. lt_cv_sys_max_cmd_len=196608
  4920. ;;
  4921. os2*)
  4922. # The test takes a long time on OS/2.
  4923. lt_cv_sys_max_cmd_len=8192
  4924. ;;
  4925. osf*)
  4926. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4927. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4928. # nice to cause kernel panics so lets avoid the loop below.
  4929. # First set a reasonable default.
  4930. lt_cv_sys_max_cmd_len=16384
  4931. #
  4932. if test -x /sbin/sysconfig; then
  4933. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4934. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4935. esac
  4936. fi
  4937. ;;
  4938. sco3.2v5*)
  4939. lt_cv_sys_max_cmd_len=102400
  4940. ;;
  4941. sysv5* | sco5v6* | sysv4.2uw2*)
  4942. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4943. if test -n "$kargmax"; then
  4944. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4945. else
  4946. lt_cv_sys_max_cmd_len=32768
  4947. fi
  4948. ;;
  4949. *)
  4950. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4951. if test -n "$lt_cv_sys_max_cmd_len" && \
  4952. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4953. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4954. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4955. else
  4956. # Make teststring a little bigger before we do anything with it.
  4957. # a 1K string should be a reasonable start.
  4958. for i in 1 2 3 4 5 6 7 8; do
  4959. teststring=$teststring$teststring
  4960. done
  4961. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4962. # If test is not a shell built-in, we'll probably end up computing a
  4963. # maximum length that is only half of the actual maximum length, but
  4964. # we can't tell.
  4965. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4966. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4967. test 17 != "$i" # 1/2 MB should be enough
  4968. do
  4969. i=`expr $i + 1`
  4970. teststring=$teststring$teststring
  4971. done
  4972. # Only check the string length outside the loop.
  4973. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4974. teststring=
  4975. # Add a significant safety factor because C++ compilers can tack on
  4976. # massive amounts of additional arguments before passing them to the
  4977. # linker. It appears as though 1/2 is a usable value.
  4978. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4979. fi
  4980. ;;
  4981. esac
  4982. fi
  4983. if test -n "$lt_cv_sys_max_cmd_len"; then
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4985. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4986. else
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4988. $as_echo "none" >&6; }
  4989. fi
  4990. max_cmd_len=$lt_cv_sys_max_cmd_len
  4991. : ${CP="cp -f"}
  4992. : ${MV="mv -f"}
  4993. : ${RM="rm -f"}
  4994. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4995. lt_unset=unset
  4996. else
  4997. lt_unset=false
  4998. fi
  4999. # test EBCDIC or ASCII
  5000. case `echo X|tr X '\101'` in
  5001. A) # ASCII based system
  5002. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5003. lt_SP2NL='tr \040 \012'
  5004. lt_NL2SP='tr \015\012 \040\040'
  5005. ;;
  5006. *) # EBCDIC based system
  5007. lt_SP2NL='tr \100 \n'
  5008. lt_NL2SP='tr \r\n \100\100'
  5009. ;;
  5010. esac
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5012. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5013. if ${lt_cv_to_host_file_cmd+:} false; then :
  5014. $as_echo_n "(cached) " >&6
  5015. else
  5016. case $host in
  5017. *-*-mingw* )
  5018. case $build in
  5019. *-*-mingw* ) # actually msys
  5020. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5021. ;;
  5022. *-*-cygwin* )
  5023. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5024. ;;
  5025. * ) # otherwise, assume *nix
  5026. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5027. ;;
  5028. esac
  5029. ;;
  5030. *-*-cygwin* )
  5031. case $build in
  5032. *-*-mingw* ) # actually msys
  5033. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5034. ;;
  5035. *-*-cygwin* )
  5036. lt_cv_to_host_file_cmd=func_convert_file_noop
  5037. ;;
  5038. * ) # otherwise, assume *nix
  5039. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5040. ;;
  5041. esac
  5042. ;;
  5043. * ) # unhandled hosts (and "normal" native builds)
  5044. lt_cv_to_host_file_cmd=func_convert_file_noop
  5045. ;;
  5046. esac
  5047. fi
  5048. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5050. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5052. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5053. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5054. $as_echo_n "(cached) " >&6
  5055. else
  5056. #assume ordinary cross tools, or native build.
  5057. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5058. case $host in
  5059. *-*-mingw* )
  5060. case $build in
  5061. *-*-mingw* ) # actually msys
  5062. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5063. ;;
  5064. esac
  5065. ;;
  5066. esac
  5067. fi
  5068. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5070. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5072. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5073. if ${lt_cv_ld_reload_flag+:} false; then :
  5074. $as_echo_n "(cached) " >&6
  5075. else
  5076. lt_cv_ld_reload_flag='-r'
  5077. fi
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5079. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5080. reload_flag=$lt_cv_ld_reload_flag
  5081. case $reload_flag in
  5082. "" | " "*) ;;
  5083. *) reload_flag=" $reload_flag" ;;
  5084. esac
  5085. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5086. case $host_os in
  5087. cygwin* | mingw* | pw32* | cegcc*)
  5088. if test yes != "$GCC"; then
  5089. reload_cmds=false
  5090. fi
  5091. ;;
  5092. darwin*)
  5093. if test yes = "$GCC"; then
  5094. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5095. else
  5096. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5097. fi
  5098. ;;
  5099. esac
  5100. if test -n "$ac_tool_prefix"; then
  5101. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5102. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5104. $as_echo_n "checking for $ac_word... " >&6; }
  5105. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5106. $as_echo_n "(cached) " >&6
  5107. else
  5108. if test -n "$OBJDUMP"; then
  5109. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5110. else
  5111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5112. for as_dir in $PATH
  5113. do
  5114. IFS=$as_save_IFS
  5115. test -z "$as_dir" && as_dir=.
  5116. for ac_exec_ext in '' $ac_executable_extensions; do
  5117. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5118. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5119. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5120. break 2
  5121. fi
  5122. done
  5123. done
  5124. IFS=$as_save_IFS
  5125. fi
  5126. fi
  5127. OBJDUMP=$ac_cv_prog_OBJDUMP
  5128. if test -n "$OBJDUMP"; then
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5130. $as_echo "$OBJDUMP" >&6; }
  5131. else
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5133. $as_echo "no" >&6; }
  5134. fi
  5135. fi
  5136. if test -z "$ac_cv_prog_OBJDUMP"; then
  5137. ac_ct_OBJDUMP=$OBJDUMP
  5138. # Extract the first word of "objdump", so it can be a program name with args.
  5139. set dummy objdump; ac_word=$2
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5141. $as_echo_n "checking for $ac_word... " >&6; }
  5142. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5143. $as_echo_n "(cached) " >&6
  5144. else
  5145. if test -n "$ac_ct_OBJDUMP"; then
  5146. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5147. else
  5148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5149. for as_dir in $PATH
  5150. do
  5151. IFS=$as_save_IFS
  5152. test -z "$as_dir" && as_dir=.
  5153. for ac_exec_ext in '' $ac_executable_extensions; do
  5154. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5155. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5157. break 2
  5158. fi
  5159. done
  5160. done
  5161. IFS=$as_save_IFS
  5162. fi
  5163. fi
  5164. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5165. if test -n "$ac_ct_OBJDUMP"; then
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5167. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5168. else
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5170. $as_echo "no" >&6; }
  5171. fi
  5172. if test "x$ac_ct_OBJDUMP" = x; then
  5173. OBJDUMP="false"
  5174. else
  5175. case $cross_compiling:$ac_tool_warned in
  5176. yes:)
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5178. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5179. ac_tool_warned=yes ;;
  5180. esac
  5181. OBJDUMP=$ac_ct_OBJDUMP
  5182. fi
  5183. else
  5184. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5185. fi
  5186. test -z "$OBJDUMP" && OBJDUMP=objdump
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5188. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5189. if ${lt_cv_deplibs_check_method+:} false; then :
  5190. $as_echo_n "(cached) " >&6
  5191. else
  5192. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5193. lt_cv_file_magic_test_file=
  5194. lt_cv_deplibs_check_method='unknown'
  5195. # Need to set the preceding variable on all platforms that support
  5196. # interlibrary dependencies.
  5197. # 'none' -- dependencies not supported.
  5198. # 'unknown' -- same as none, but documents that we really don't know.
  5199. # 'pass_all' -- all dependencies passed with no checks.
  5200. # 'test_compile' -- check by making test program.
  5201. # 'file_magic [[regex]]' -- check by looking for files in library path
  5202. # that responds to the $file_magic_cmd with a given extended regex.
  5203. # If you have 'file' or equivalent on your system and you're not sure
  5204. # whether 'pass_all' will *always* work, you probably want this one.
  5205. case $host_os in
  5206. aix[4-9]*)
  5207. lt_cv_deplibs_check_method=pass_all
  5208. ;;
  5209. beos*)
  5210. lt_cv_deplibs_check_method=pass_all
  5211. ;;
  5212. bsdi[45]*)
  5213. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5214. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5215. lt_cv_file_magic_test_file=/shlib/libc.so
  5216. ;;
  5217. cygwin*)
  5218. # func_win32_libid is a shell function defined in ltmain.sh
  5219. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5220. lt_cv_file_magic_cmd='func_win32_libid'
  5221. ;;
  5222. mingw* | pw32*)
  5223. # Base MSYS/MinGW do not provide the 'file' command needed by
  5224. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5225. # unless we find 'file', for example because we are cross-compiling.
  5226. if ( file / ) >/dev/null 2>&1; then
  5227. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5228. lt_cv_file_magic_cmd='func_win32_libid'
  5229. else
  5230. # Keep this pattern in sync with the one in func_win32_libid.
  5231. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5232. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5233. fi
  5234. ;;
  5235. cegcc*)
  5236. # use the weaker test based on 'objdump'. See mingw*.
  5237. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5238. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5239. ;;
  5240. darwin* | rhapsody*)
  5241. lt_cv_deplibs_check_method=pass_all
  5242. ;;
  5243. freebsd* | dragonfly*)
  5244. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5245. case $host_cpu in
  5246. i*86 )
  5247. # Not sure whether the presence of OpenBSD here was a mistake.
  5248. # Let's accept both of them until this is cleared up.
  5249. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5250. lt_cv_file_magic_cmd=/usr/bin/file
  5251. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5252. ;;
  5253. esac
  5254. else
  5255. lt_cv_deplibs_check_method=pass_all
  5256. fi
  5257. ;;
  5258. haiku*)
  5259. lt_cv_deplibs_check_method=pass_all
  5260. ;;
  5261. hpux10.20* | hpux11*)
  5262. lt_cv_file_magic_cmd=/usr/bin/file
  5263. case $host_cpu in
  5264. ia64*)
  5265. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5266. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5267. ;;
  5268. hppa*64*)
  5269. 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]'
  5270. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5271. ;;
  5272. *)
  5273. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5274. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5275. ;;
  5276. esac
  5277. ;;
  5278. interix[3-9]*)
  5279. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5280. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5281. ;;
  5282. irix5* | irix6* | nonstopux*)
  5283. case $LD in
  5284. *-32|*"-32 ") libmagic=32-bit;;
  5285. *-n32|*"-n32 ") libmagic=N32;;
  5286. *-64|*"-64 ") libmagic=64-bit;;
  5287. *) libmagic=never-match;;
  5288. esac
  5289. lt_cv_deplibs_check_method=pass_all
  5290. ;;
  5291. # This must be glibc/ELF.
  5292. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5293. lt_cv_deplibs_check_method=pass_all
  5294. ;;
  5295. netbsd*)
  5296. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5297. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5298. else
  5299. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5300. fi
  5301. ;;
  5302. newos6*)
  5303. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5304. lt_cv_file_magic_cmd=/usr/bin/file
  5305. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5306. ;;
  5307. *nto* | *qnx*)
  5308. lt_cv_deplibs_check_method=pass_all
  5309. ;;
  5310. openbsd* | bitrig*)
  5311. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5312. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5313. else
  5314. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5315. fi
  5316. ;;
  5317. osf3* | osf4* | osf5*)
  5318. lt_cv_deplibs_check_method=pass_all
  5319. ;;
  5320. rdos*)
  5321. lt_cv_deplibs_check_method=pass_all
  5322. ;;
  5323. solaris*)
  5324. lt_cv_deplibs_check_method=pass_all
  5325. ;;
  5326. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5327. lt_cv_deplibs_check_method=pass_all
  5328. ;;
  5329. sysv4 | sysv4.3*)
  5330. case $host_vendor in
  5331. motorola)
  5332. 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]'
  5333. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5334. ;;
  5335. ncr)
  5336. lt_cv_deplibs_check_method=pass_all
  5337. ;;
  5338. sequent)
  5339. lt_cv_file_magic_cmd='/bin/file'
  5340. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5341. ;;
  5342. sni)
  5343. lt_cv_file_magic_cmd='/bin/file'
  5344. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5345. lt_cv_file_magic_test_file=/lib/libc.so
  5346. ;;
  5347. siemens)
  5348. lt_cv_deplibs_check_method=pass_all
  5349. ;;
  5350. pc)
  5351. lt_cv_deplibs_check_method=pass_all
  5352. ;;
  5353. esac
  5354. ;;
  5355. tpf*)
  5356. lt_cv_deplibs_check_method=pass_all
  5357. ;;
  5358. os2*)
  5359. lt_cv_deplibs_check_method=pass_all
  5360. ;;
  5361. esac
  5362. fi
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5364. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5365. file_magic_glob=
  5366. want_nocaseglob=no
  5367. if test "$build" = "$host"; then
  5368. case $host_os in
  5369. mingw* | pw32*)
  5370. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5371. want_nocaseglob=yes
  5372. else
  5373. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5374. fi
  5375. ;;
  5376. esac
  5377. fi
  5378. file_magic_cmd=$lt_cv_file_magic_cmd
  5379. deplibs_check_method=$lt_cv_deplibs_check_method
  5380. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5381. if test -n "$ac_tool_prefix"; then
  5382. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5383. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5385. $as_echo_n "checking for $ac_word... " >&6; }
  5386. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5387. $as_echo_n "(cached) " >&6
  5388. else
  5389. if test -n "$DLLTOOL"; then
  5390. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5391. else
  5392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5393. for as_dir in $PATH
  5394. do
  5395. IFS=$as_save_IFS
  5396. test -z "$as_dir" && as_dir=.
  5397. for ac_exec_ext in '' $ac_executable_extensions; do
  5398. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5399. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5401. break 2
  5402. fi
  5403. done
  5404. done
  5405. IFS=$as_save_IFS
  5406. fi
  5407. fi
  5408. DLLTOOL=$ac_cv_prog_DLLTOOL
  5409. if test -n "$DLLTOOL"; then
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5411. $as_echo "$DLLTOOL" >&6; }
  5412. else
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5414. $as_echo "no" >&6; }
  5415. fi
  5416. fi
  5417. if test -z "$ac_cv_prog_DLLTOOL"; then
  5418. ac_ct_DLLTOOL=$DLLTOOL
  5419. # Extract the first word of "dlltool", so it can be a program name with args.
  5420. set dummy dlltool; ac_word=$2
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5422. $as_echo_n "checking for $ac_word... " >&6; }
  5423. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5424. $as_echo_n "(cached) " >&6
  5425. else
  5426. if test -n "$ac_ct_DLLTOOL"; then
  5427. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5428. else
  5429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5430. for as_dir in $PATH
  5431. do
  5432. IFS=$as_save_IFS
  5433. test -z "$as_dir" && as_dir=.
  5434. for ac_exec_ext in '' $ac_executable_extensions; do
  5435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5436. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5438. break 2
  5439. fi
  5440. done
  5441. done
  5442. IFS=$as_save_IFS
  5443. fi
  5444. fi
  5445. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5446. if test -n "$ac_ct_DLLTOOL"; then
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5448. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5449. else
  5450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5451. $as_echo "no" >&6; }
  5452. fi
  5453. if test "x$ac_ct_DLLTOOL" = x; then
  5454. DLLTOOL="false"
  5455. else
  5456. case $cross_compiling:$ac_tool_warned in
  5457. yes:)
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5459. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5460. ac_tool_warned=yes ;;
  5461. esac
  5462. DLLTOOL=$ac_ct_DLLTOOL
  5463. fi
  5464. else
  5465. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5466. fi
  5467. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5469. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5470. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5471. $as_echo_n "(cached) " >&6
  5472. else
  5473. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5474. case $host_os in
  5475. cygwin* | mingw* | pw32* | cegcc*)
  5476. # two different shell functions defined in ltmain.sh;
  5477. # decide which one to use based on capabilities of $DLLTOOL
  5478. case `$DLLTOOL --help 2>&1` in
  5479. *--identify-strict*)
  5480. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5481. ;;
  5482. *)
  5483. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5484. ;;
  5485. esac
  5486. ;;
  5487. *)
  5488. # fallback: assume linklib IS sharedlib
  5489. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5490. ;;
  5491. esac
  5492. fi
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5494. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5495. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5496. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5497. if test -n "$ac_tool_prefix"; then
  5498. for ac_prog in ar
  5499. do
  5500. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5501. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5503. $as_echo_n "checking for $ac_word... " >&6; }
  5504. if ${ac_cv_prog_AR+:} false; then :
  5505. $as_echo_n "(cached) " >&6
  5506. else
  5507. if test -n "$AR"; then
  5508. ac_cv_prog_AR="$AR" # Let the user override the test.
  5509. else
  5510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5511. for as_dir in $PATH
  5512. do
  5513. IFS=$as_save_IFS
  5514. test -z "$as_dir" && as_dir=.
  5515. for ac_exec_ext in '' $ac_executable_extensions; do
  5516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5517. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5519. break 2
  5520. fi
  5521. done
  5522. done
  5523. IFS=$as_save_IFS
  5524. fi
  5525. fi
  5526. AR=$ac_cv_prog_AR
  5527. if test -n "$AR"; then
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5529. $as_echo "$AR" >&6; }
  5530. else
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5532. $as_echo "no" >&6; }
  5533. fi
  5534. test -n "$AR" && break
  5535. done
  5536. fi
  5537. if test -z "$AR"; then
  5538. ac_ct_AR=$AR
  5539. for ac_prog in ar
  5540. do
  5541. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5542. set dummy $ac_prog; ac_word=$2
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5544. $as_echo_n "checking for $ac_word... " >&6; }
  5545. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5546. $as_echo_n "(cached) " >&6
  5547. else
  5548. if test -n "$ac_ct_AR"; then
  5549. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5550. else
  5551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5552. for as_dir in $PATH
  5553. do
  5554. IFS=$as_save_IFS
  5555. test -z "$as_dir" && as_dir=.
  5556. for ac_exec_ext in '' $ac_executable_extensions; do
  5557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5558. ac_cv_prog_ac_ct_AR="$ac_prog"
  5559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5560. break 2
  5561. fi
  5562. done
  5563. done
  5564. IFS=$as_save_IFS
  5565. fi
  5566. fi
  5567. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5568. if test -n "$ac_ct_AR"; then
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5570. $as_echo "$ac_ct_AR" >&6; }
  5571. else
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5573. $as_echo "no" >&6; }
  5574. fi
  5575. test -n "$ac_ct_AR" && break
  5576. done
  5577. if test "x$ac_ct_AR" = x; then
  5578. AR="false"
  5579. else
  5580. case $cross_compiling:$ac_tool_warned in
  5581. yes:)
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5583. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5584. ac_tool_warned=yes ;;
  5585. esac
  5586. AR=$ac_ct_AR
  5587. fi
  5588. fi
  5589. : ${AR=ar}
  5590. : ${AR_FLAGS=cru}
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5592. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5593. if ${lt_cv_ar_at_file+:} false; then :
  5594. $as_echo_n "(cached) " >&6
  5595. else
  5596. lt_cv_ar_at_file=no
  5597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5598. /* end confdefs.h. */
  5599. int
  5600. main ()
  5601. {
  5602. ;
  5603. return 0;
  5604. }
  5605. _ACEOF
  5606. if ac_fn_c_try_compile "$LINENO"; then :
  5607. echo conftest.$ac_objext > conftest.lst
  5608. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5609. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5610. (eval $lt_ar_try) 2>&5
  5611. ac_status=$?
  5612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5613. test $ac_status = 0; }
  5614. if test 0 -eq "$ac_status"; then
  5615. # Ensure the archiver fails upon bogus file names.
  5616. rm -f conftest.$ac_objext libconftest.a
  5617. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5618. (eval $lt_ar_try) 2>&5
  5619. ac_status=$?
  5620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5621. test $ac_status = 0; }
  5622. if test 0 -ne "$ac_status"; then
  5623. lt_cv_ar_at_file=@
  5624. fi
  5625. fi
  5626. rm -f conftest.* libconftest.a
  5627. fi
  5628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5629. fi
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5631. $as_echo "$lt_cv_ar_at_file" >&6; }
  5632. if test no = "$lt_cv_ar_at_file"; then
  5633. archiver_list_spec=
  5634. else
  5635. archiver_list_spec=$lt_cv_ar_at_file
  5636. fi
  5637. if test -n "$ac_tool_prefix"; then
  5638. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5639. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5641. $as_echo_n "checking for $ac_word... " >&6; }
  5642. if ${ac_cv_prog_STRIP+:} false; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. if test -n "$STRIP"; then
  5646. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5647. else
  5648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5649. for as_dir in $PATH
  5650. do
  5651. IFS=$as_save_IFS
  5652. test -z "$as_dir" && as_dir=.
  5653. for ac_exec_ext in '' $ac_executable_extensions; do
  5654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5655. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5657. break 2
  5658. fi
  5659. done
  5660. done
  5661. IFS=$as_save_IFS
  5662. fi
  5663. fi
  5664. STRIP=$ac_cv_prog_STRIP
  5665. if test -n "$STRIP"; then
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5667. $as_echo "$STRIP" >&6; }
  5668. else
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5670. $as_echo "no" >&6; }
  5671. fi
  5672. fi
  5673. if test -z "$ac_cv_prog_STRIP"; then
  5674. ac_ct_STRIP=$STRIP
  5675. # Extract the first word of "strip", so it can be a program name with args.
  5676. set dummy strip; ac_word=$2
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5678. $as_echo_n "checking for $ac_word... " >&6; }
  5679. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5680. $as_echo_n "(cached) " >&6
  5681. else
  5682. if test -n "$ac_ct_STRIP"; then
  5683. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5684. else
  5685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5686. for as_dir in $PATH
  5687. do
  5688. IFS=$as_save_IFS
  5689. test -z "$as_dir" && as_dir=.
  5690. for ac_exec_ext in '' $ac_executable_extensions; do
  5691. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5692. ac_cv_prog_ac_ct_STRIP="strip"
  5693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5694. break 2
  5695. fi
  5696. done
  5697. done
  5698. IFS=$as_save_IFS
  5699. fi
  5700. fi
  5701. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5702. if test -n "$ac_ct_STRIP"; then
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5704. $as_echo "$ac_ct_STRIP" >&6; }
  5705. else
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5707. $as_echo "no" >&6; }
  5708. fi
  5709. if test "x$ac_ct_STRIP" = x; then
  5710. STRIP=":"
  5711. else
  5712. case $cross_compiling:$ac_tool_warned in
  5713. yes:)
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5715. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5716. ac_tool_warned=yes ;;
  5717. esac
  5718. STRIP=$ac_ct_STRIP
  5719. fi
  5720. else
  5721. STRIP="$ac_cv_prog_STRIP"
  5722. fi
  5723. test -z "$STRIP" && STRIP=:
  5724. if test -n "$ac_tool_prefix"; then
  5725. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5726. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5728. $as_echo_n "checking for $ac_word... " >&6; }
  5729. if ${ac_cv_prog_RANLIB+:} false; then :
  5730. $as_echo_n "(cached) " >&6
  5731. else
  5732. if test -n "$RANLIB"; then
  5733. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5734. else
  5735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5736. for as_dir in $PATH
  5737. do
  5738. IFS=$as_save_IFS
  5739. test -z "$as_dir" && as_dir=.
  5740. for ac_exec_ext in '' $ac_executable_extensions; do
  5741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5742. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5744. break 2
  5745. fi
  5746. done
  5747. done
  5748. IFS=$as_save_IFS
  5749. fi
  5750. fi
  5751. RANLIB=$ac_cv_prog_RANLIB
  5752. if test -n "$RANLIB"; then
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5754. $as_echo "$RANLIB" >&6; }
  5755. else
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5757. $as_echo "no" >&6; }
  5758. fi
  5759. fi
  5760. if test -z "$ac_cv_prog_RANLIB"; then
  5761. ac_ct_RANLIB=$RANLIB
  5762. # Extract the first word of "ranlib", so it can be a program name with args.
  5763. set dummy ranlib; ac_word=$2
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5765. $as_echo_n "checking for $ac_word... " >&6; }
  5766. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5767. $as_echo_n "(cached) " >&6
  5768. else
  5769. if test -n "$ac_ct_RANLIB"; then
  5770. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5771. else
  5772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5773. for as_dir in $PATH
  5774. do
  5775. IFS=$as_save_IFS
  5776. test -z "$as_dir" && as_dir=.
  5777. for ac_exec_ext in '' $ac_executable_extensions; do
  5778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5779. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5781. break 2
  5782. fi
  5783. done
  5784. done
  5785. IFS=$as_save_IFS
  5786. fi
  5787. fi
  5788. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5789. if test -n "$ac_ct_RANLIB"; then
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5791. $as_echo "$ac_ct_RANLIB" >&6; }
  5792. else
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5794. $as_echo "no" >&6; }
  5795. fi
  5796. if test "x$ac_ct_RANLIB" = x; then
  5797. RANLIB=":"
  5798. else
  5799. case $cross_compiling:$ac_tool_warned in
  5800. yes:)
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5802. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5803. ac_tool_warned=yes ;;
  5804. esac
  5805. RANLIB=$ac_ct_RANLIB
  5806. fi
  5807. else
  5808. RANLIB="$ac_cv_prog_RANLIB"
  5809. fi
  5810. test -z "$RANLIB" && RANLIB=:
  5811. # Determine commands to create old-style static archives.
  5812. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5813. old_postinstall_cmds='chmod 644 $oldlib'
  5814. old_postuninstall_cmds=
  5815. if test -n "$RANLIB"; then
  5816. case $host_os in
  5817. bitrig* | openbsd*)
  5818. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5819. ;;
  5820. *)
  5821. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5822. ;;
  5823. esac
  5824. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5825. fi
  5826. case $host_os in
  5827. darwin*)
  5828. lock_old_archive_extraction=yes ;;
  5829. *)
  5830. lock_old_archive_extraction=no ;;
  5831. esac
  5832. # If no C compiler was specified, use CC.
  5833. LTCC=${LTCC-"$CC"}
  5834. # If no C compiler flags were specified, use CFLAGS.
  5835. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5836. # Allow CC to be a program name with arguments.
  5837. compiler=$CC
  5838. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5840. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5841. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5842. $as_echo_n "(cached) " >&6
  5843. else
  5844. # These are sane defaults that work on at least a few old systems.
  5845. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5846. # Character class describing NM global symbol codes.
  5847. symcode='[BCDEGRST]'
  5848. # Regexp to match symbols that can be accessed directly from C.
  5849. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5850. # Define system-specific variables.
  5851. case $host_os in
  5852. aix*)
  5853. symcode='[BCDT]'
  5854. ;;
  5855. cygwin* | mingw* | pw32* | cegcc*)
  5856. symcode='[ABCDGISTW]'
  5857. ;;
  5858. hpux*)
  5859. if test ia64 = "$host_cpu"; then
  5860. symcode='[ABCDEGRST]'
  5861. fi
  5862. ;;
  5863. irix* | nonstopux*)
  5864. symcode='[BCDEGRST]'
  5865. ;;
  5866. osf*)
  5867. symcode='[BCDEGQRST]'
  5868. ;;
  5869. solaris*)
  5870. symcode='[BDRT]'
  5871. ;;
  5872. sco3.2v5*)
  5873. symcode='[DT]'
  5874. ;;
  5875. sysv4.2uw2*)
  5876. symcode='[DT]'
  5877. ;;
  5878. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5879. symcode='[ABDT]'
  5880. ;;
  5881. sysv4)
  5882. symcode='[DFNSTU]'
  5883. ;;
  5884. esac
  5885. # If we're using GNU nm, then use its standard symbol codes.
  5886. case `$NM -V 2>&1` in
  5887. *GNU* | *'with BFD'*)
  5888. symcode='[ABCDGIRSTW]' ;;
  5889. esac
  5890. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5891. # Gets list of data symbols to import.
  5892. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5893. # Adjust the below global symbol transforms to fixup imported variables.
  5894. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5895. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5896. lt_c_name_lib_hook="\
  5897. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5898. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5899. else
  5900. # Disable hooks by default.
  5901. lt_cv_sys_global_symbol_to_import=
  5902. lt_cdecl_hook=
  5903. lt_c_name_hook=
  5904. lt_c_name_lib_hook=
  5905. fi
  5906. # Transform an extracted symbol line into a proper C declaration.
  5907. # Some systems (esp. on ia64) link data and code symbols differently,
  5908. # so use this general approach.
  5909. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5910. $lt_cdecl_hook\
  5911. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5912. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5913. # Transform an extracted symbol line into symbol name and symbol address
  5914. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5915. $lt_c_name_hook\
  5916. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5917. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5918. # Transform an extracted symbol line into symbol name with lib prefix and
  5919. # symbol address.
  5920. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5921. $lt_c_name_lib_hook\
  5922. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5923. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5924. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5925. # Handle CRLF in mingw tool chain
  5926. opt_cr=
  5927. case $build_os in
  5928. mingw*)
  5929. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5930. ;;
  5931. esac
  5932. # Try without a prefix underscore, then with it.
  5933. for ac_symprfx in "" "_"; do
  5934. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5935. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5936. # Write the raw and C identifiers.
  5937. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5938. # Fake it for dumpbin and say T for any non-static function,
  5939. # D for any global variable and I for any imported variable.
  5940. # Also find C++ and __fastcall symbols from MSVC++,
  5941. # which start with @ or ?.
  5942. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5943. " {last_section=section; section=\$ 3};"\
  5944. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5945. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5946. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5947. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5948. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5949. " \$ 0!~/External *\|/{next};"\
  5950. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5951. " {if(hide[section]) next};"\
  5952. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5953. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5954. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5955. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5956. " ' prfx=^$ac_symprfx"
  5957. else
  5958. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5959. fi
  5960. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5961. # Check to see that the pipe works correctly.
  5962. pipe_works=no
  5963. rm -f conftest*
  5964. cat > conftest.$ac_ext <<_LT_EOF
  5965. #ifdef __cplusplus
  5966. extern "C" {
  5967. #endif
  5968. char nm_test_var;
  5969. void nm_test_func(void);
  5970. void nm_test_func(void){}
  5971. #ifdef __cplusplus
  5972. }
  5973. #endif
  5974. int main(){nm_test_var='a';nm_test_func();return(0);}
  5975. _LT_EOF
  5976. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5977. (eval $ac_compile) 2>&5
  5978. ac_status=$?
  5979. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5980. test $ac_status = 0; }; then
  5981. # Now try to grab the symbols.
  5982. nlist=conftest.nm
  5983. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5984. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5985. ac_status=$?
  5986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5987. test $ac_status = 0; } && test -s "$nlist"; then
  5988. # Try sorting and uniquifying the output.
  5989. if sort "$nlist" | uniq > "$nlist"T; then
  5990. mv -f "$nlist"T "$nlist"
  5991. else
  5992. rm -f "$nlist"T
  5993. fi
  5994. # Make sure that we snagged all the symbols we need.
  5995. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5996. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5997. cat <<_LT_EOF > conftest.$ac_ext
  5998. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5999. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6000. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6001. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6002. # define LT_DLSYM_CONST
  6003. #elif defined __osf__
  6004. /* This system does not cope well with relocations in const data. */
  6005. # define LT_DLSYM_CONST
  6006. #else
  6007. # define LT_DLSYM_CONST const
  6008. #endif
  6009. #ifdef __cplusplus
  6010. extern "C" {
  6011. #endif
  6012. _LT_EOF
  6013. # Now generate the symbol file.
  6014. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6015. cat <<_LT_EOF >> conftest.$ac_ext
  6016. /* The mapping between symbol names and symbols. */
  6017. LT_DLSYM_CONST struct {
  6018. const char *name;
  6019. void *address;
  6020. }
  6021. lt__PROGRAM__LTX_preloaded_symbols[] =
  6022. {
  6023. { "@PROGRAM@", (void *) 0 },
  6024. _LT_EOF
  6025. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6026. cat <<\_LT_EOF >> conftest.$ac_ext
  6027. {0, (void *) 0}
  6028. };
  6029. /* This works around a problem in FreeBSD linker */
  6030. #ifdef FREEBSD_WORKAROUND
  6031. static const void *lt_preloaded_setup() {
  6032. return lt__PROGRAM__LTX_preloaded_symbols;
  6033. }
  6034. #endif
  6035. #ifdef __cplusplus
  6036. }
  6037. #endif
  6038. _LT_EOF
  6039. # Now try linking the two files.
  6040. mv conftest.$ac_objext conftstm.$ac_objext
  6041. lt_globsym_save_LIBS=$LIBS
  6042. lt_globsym_save_CFLAGS=$CFLAGS
  6043. LIBS=conftstm.$ac_objext
  6044. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6045. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6046. (eval $ac_link) 2>&5
  6047. ac_status=$?
  6048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6049. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6050. pipe_works=yes
  6051. fi
  6052. LIBS=$lt_globsym_save_LIBS
  6053. CFLAGS=$lt_globsym_save_CFLAGS
  6054. else
  6055. echo "cannot find nm_test_func in $nlist" >&5
  6056. fi
  6057. else
  6058. echo "cannot find nm_test_var in $nlist" >&5
  6059. fi
  6060. else
  6061. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6062. fi
  6063. else
  6064. echo "$progname: failed program was:" >&5
  6065. cat conftest.$ac_ext >&5
  6066. fi
  6067. rm -rf conftest* conftst*
  6068. # Do not use the global_symbol_pipe unless it works.
  6069. if test yes = "$pipe_works"; then
  6070. break
  6071. else
  6072. lt_cv_sys_global_symbol_pipe=
  6073. fi
  6074. done
  6075. fi
  6076. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6077. lt_cv_sys_global_symbol_to_cdecl=
  6078. fi
  6079. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6081. $as_echo "failed" >&6; }
  6082. else
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6084. $as_echo "ok" >&6; }
  6085. fi
  6086. # Response file support.
  6087. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6088. nm_file_list_spec='@'
  6089. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6090. nm_file_list_spec='@'
  6091. fi
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6093. $as_echo_n "checking for sysroot... " >&6; }
  6094. # Check whether --with-sysroot was given.
  6095. if test "${with_sysroot+set}" = set; then :
  6096. withval=$with_sysroot;
  6097. else
  6098. with_sysroot=no
  6099. fi
  6100. lt_sysroot=
  6101. case $with_sysroot in #(
  6102. yes)
  6103. if test yes = "$GCC"; then
  6104. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6105. fi
  6106. ;; #(
  6107. /*)
  6108. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6109. ;; #(
  6110. no|'')
  6111. ;; #(
  6112. *)
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6114. $as_echo "$with_sysroot" >&6; }
  6115. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6116. ;;
  6117. esac
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6119. $as_echo "${lt_sysroot:-no}" >&6; }
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6121. $as_echo_n "checking for a working dd... " >&6; }
  6122. if ${ac_cv_path_lt_DD+:} false; then :
  6123. $as_echo_n "(cached) " >&6
  6124. else
  6125. printf 0123456789abcdef0123456789abcdef >conftest.i
  6126. cat conftest.i conftest.i >conftest2.i
  6127. : ${lt_DD:=$DD}
  6128. if test -z "$lt_DD"; then
  6129. ac_path_lt_DD_found=false
  6130. # Loop through the user's path and test for each of PROGNAME-LIST
  6131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6132. for as_dir in $PATH
  6133. do
  6134. IFS=$as_save_IFS
  6135. test -z "$as_dir" && as_dir=.
  6136. for ac_prog in dd; do
  6137. for ac_exec_ext in '' $ac_executable_extensions; do
  6138. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6139. as_fn_executable_p "$ac_path_lt_DD" || continue
  6140. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6141. cmp -s conftest.i conftest.out \
  6142. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6143. fi
  6144. $ac_path_lt_DD_found && break 3
  6145. done
  6146. done
  6147. done
  6148. IFS=$as_save_IFS
  6149. if test -z "$ac_cv_path_lt_DD"; then
  6150. :
  6151. fi
  6152. else
  6153. ac_cv_path_lt_DD=$lt_DD
  6154. fi
  6155. rm -f conftest.i conftest2.i conftest.out
  6156. fi
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6158. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6160. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6161. if ${lt_cv_truncate_bin+:} false; then :
  6162. $as_echo_n "(cached) " >&6
  6163. else
  6164. printf 0123456789abcdef0123456789abcdef >conftest.i
  6165. cat conftest.i conftest.i >conftest2.i
  6166. lt_cv_truncate_bin=
  6167. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6168. cmp -s conftest.i conftest.out \
  6169. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6170. fi
  6171. rm -f conftest.i conftest2.i conftest.out
  6172. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6173. fi
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6175. $as_echo "$lt_cv_truncate_bin" >&6; }
  6176. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6177. func_cc_basename ()
  6178. {
  6179. for cc_temp in $*""; do
  6180. case $cc_temp in
  6181. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6182. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6183. \-*) ;;
  6184. *) break;;
  6185. esac
  6186. done
  6187. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6188. }
  6189. # Check whether --enable-libtool-lock was given.
  6190. if test "${enable_libtool_lock+set}" = set; then :
  6191. enableval=$enable_libtool_lock;
  6192. fi
  6193. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6194. # Some flags need to be propagated to the compiler or linker for good
  6195. # libtool support.
  6196. case $host in
  6197. ia64-*-hpux*)
  6198. # Find out what ABI is being produced by ac_compile, and set mode
  6199. # options accordingly.
  6200. echo 'int i;' > conftest.$ac_ext
  6201. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6202. (eval $ac_compile) 2>&5
  6203. ac_status=$?
  6204. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6205. test $ac_status = 0; }; then
  6206. case `/usr/bin/file conftest.$ac_objext` in
  6207. *ELF-32*)
  6208. HPUX_IA64_MODE=32
  6209. ;;
  6210. *ELF-64*)
  6211. HPUX_IA64_MODE=64
  6212. ;;
  6213. esac
  6214. fi
  6215. rm -rf conftest*
  6216. ;;
  6217. *-*-irix6*)
  6218. # Find out what ABI is being produced by ac_compile, and set linker
  6219. # options accordingly.
  6220. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6221. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6222. (eval $ac_compile) 2>&5
  6223. ac_status=$?
  6224. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6225. test $ac_status = 0; }; then
  6226. if test yes = "$lt_cv_prog_gnu_ld"; then
  6227. case `/usr/bin/file conftest.$ac_objext` in
  6228. *32-bit*)
  6229. LD="${LD-ld} -melf32bsmip"
  6230. ;;
  6231. *N32*)
  6232. LD="${LD-ld} -melf32bmipn32"
  6233. ;;
  6234. *64-bit*)
  6235. LD="${LD-ld} -melf64bmip"
  6236. ;;
  6237. esac
  6238. else
  6239. case `/usr/bin/file conftest.$ac_objext` in
  6240. *32-bit*)
  6241. LD="${LD-ld} -32"
  6242. ;;
  6243. *N32*)
  6244. LD="${LD-ld} -n32"
  6245. ;;
  6246. *64-bit*)
  6247. LD="${LD-ld} -64"
  6248. ;;
  6249. esac
  6250. fi
  6251. fi
  6252. rm -rf conftest*
  6253. ;;
  6254. mips64*-*linux*)
  6255. # Find out what ABI is being produced by ac_compile, and set linker
  6256. # options accordingly.
  6257. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6258. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6259. (eval $ac_compile) 2>&5
  6260. ac_status=$?
  6261. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6262. test $ac_status = 0; }; then
  6263. emul=elf
  6264. case `/usr/bin/file conftest.$ac_objext` in
  6265. *32-bit*)
  6266. emul="${emul}32"
  6267. ;;
  6268. *64-bit*)
  6269. emul="${emul}64"
  6270. ;;
  6271. esac
  6272. case `/usr/bin/file conftest.$ac_objext` in
  6273. *MSB*)
  6274. emul="${emul}btsmip"
  6275. ;;
  6276. *LSB*)
  6277. emul="${emul}ltsmip"
  6278. ;;
  6279. esac
  6280. case `/usr/bin/file conftest.$ac_objext` in
  6281. *N32*)
  6282. emul="${emul}n32"
  6283. ;;
  6284. esac
  6285. LD="${LD-ld} -m $emul"
  6286. fi
  6287. rm -rf conftest*
  6288. ;;
  6289. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6290. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6291. # Find out what ABI is being produced by ac_compile, and set linker
  6292. # options accordingly. Note that the listed cases only cover the
  6293. # situations where additional linker options are needed (such as when
  6294. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6295. # vice versa); the common cases where no linker options are needed do
  6296. # not appear in the list.
  6297. echo 'int i;' > conftest.$ac_ext
  6298. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6299. (eval $ac_compile) 2>&5
  6300. ac_status=$?
  6301. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6302. test $ac_status = 0; }; then
  6303. case `/usr/bin/file conftest.o` in
  6304. *32-bit*)
  6305. case $host in
  6306. x86_64-*kfreebsd*-gnu)
  6307. LD="${LD-ld} -m elf_i386_fbsd"
  6308. ;;
  6309. x86_64-*linux*)
  6310. case `/usr/bin/file conftest.o` in
  6311. *x86-64*)
  6312. LD="${LD-ld} -m elf32_x86_64"
  6313. ;;
  6314. *)
  6315. LD="${LD-ld} -m elf_i386"
  6316. ;;
  6317. esac
  6318. ;;
  6319. powerpc64le-*linux*)
  6320. LD="${LD-ld} -m elf32lppclinux"
  6321. ;;
  6322. powerpc64-*linux*)
  6323. LD="${LD-ld} -m elf32ppclinux"
  6324. ;;
  6325. s390x-*linux*)
  6326. LD="${LD-ld} -m elf_s390"
  6327. ;;
  6328. sparc64-*linux*)
  6329. LD="${LD-ld} -m elf32_sparc"
  6330. ;;
  6331. esac
  6332. ;;
  6333. *64-bit*)
  6334. case $host in
  6335. x86_64-*kfreebsd*-gnu)
  6336. LD="${LD-ld} -m elf_x86_64_fbsd"
  6337. ;;
  6338. x86_64-*linux*)
  6339. LD="${LD-ld} -m elf_x86_64"
  6340. ;;
  6341. powerpcle-*linux*)
  6342. LD="${LD-ld} -m elf64lppc"
  6343. ;;
  6344. powerpc-*linux*)
  6345. LD="${LD-ld} -m elf64ppc"
  6346. ;;
  6347. s390*-*linux*|s390*-*tpf*)
  6348. LD="${LD-ld} -m elf64_s390"
  6349. ;;
  6350. sparc*-*linux*)
  6351. LD="${LD-ld} -m elf64_sparc"
  6352. ;;
  6353. esac
  6354. ;;
  6355. esac
  6356. fi
  6357. rm -rf conftest*
  6358. ;;
  6359. *-*-sco3.2v5*)
  6360. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6361. SAVE_CFLAGS=$CFLAGS
  6362. CFLAGS="$CFLAGS -belf"
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6364. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6365. if ${lt_cv_cc_needs_belf+:} false; then :
  6366. $as_echo_n "(cached) " >&6
  6367. else
  6368. ac_ext=c
  6369. ac_cpp='$CPP $CPPFLAGS'
  6370. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6371. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6372. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6374. /* end confdefs.h. */
  6375. int
  6376. main ()
  6377. {
  6378. ;
  6379. return 0;
  6380. }
  6381. _ACEOF
  6382. if ac_fn_c_try_link "$LINENO"; then :
  6383. lt_cv_cc_needs_belf=yes
  6384. else
  6385. lt_cv_cc_needs_belf=no
  6386. fi
  6387. rm -f core conftest.err conftest.$ac_objext \
  6388. conftest$ac_exeext conftest.$ac_ext
  6389. ac_ext=c
  6390. ac_cpp='$CPP $CPPFLAGS'
  6391. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6392. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6393. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6394. fi
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6396. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6397. if test yes != "$lt_cv_cc_needs_belf"; then
  6398. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6399. CFLAGS=$SAVE_CFLAGS
  6400. fi
  6401. ;;
  6402. *-*solaris*)
  6403. # Find out what ABI is being produced by ac_compile, and set linker
  6404. # options accordingly.
  6405. echo 'int i;' > conftest.$ac_ext
  6406. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6407. (eval $ac_compile) 2>&5
  6408. ac_status=$?
  6409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6410. test $ac_status = 0; }; then
  6411. case `/usr/bin/file conftest.o` in
  6412. *64-bit*)
  6413. case $lt_cv_prog_gnu_ld in
  6414. yes*)
  6415. case $host in
  6416. i?86-*-solaris*|x86_64-*-solaris*)
  6417. LD="${LD-ld} -m elf_x86_64"
  6418. ;;
  6419. sparc*-*-solaris*)
  6420. LD="${LD-ld} -m elf64_sparc"
  6421. ;;
  6422. esac
  6423. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6424. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6425. LD=${LD-ld}_sol2
  6426. fi
  6427. ;;
  6428. *)
  6429. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6430. LD="${LD-ld} -64"
  6431. fi
  6432. ;;
  6433. esac
  6434. ;;
  6435. esac
  6436. fi
  6437. rm -rf conftest*
  6438. ;;
  6439. esac
  6440. need_locks=$enable_libtool_lock
  6441. if test -n "$ac_tool_prefix"; then
  6442. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6443. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6445. $as_echo_n "checking for $ac_word... " >&6; }
  6446. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6447. $as_echo_n "(cached) " >&6
  6448. else
  6449. if test -n "$MANIFEST_TOOL"; then
  6450. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6451. else
  6452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6453. for as_dir in $PATH
  6454. do
  6455. IFS=$as_save_IFS
  6456. test -z "$as_dir" && as_dir=.
  6457. for ac_exec_ext in '' $ac_executable_extensions; do
  6458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6459. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6461. break 2
  6462. fi
  6463. done
  6464. done
  6465. IFS=$as_save_IFS
  6466. fi
  6467. fi
  6468. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6469. if test -n "$MANIFEST_TOOL"; then
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6471. $as_echo "$MANIFEST_TOOL" >&6; }
  6472. else
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6474. $as_echo "no" >&6; }
  6475. fi
  6476. fi
  6477. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6478. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6479. # Extract the first word of "mt", so it can be a program name with args.
  6480. set dummy mt; ac_word=$2
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6482. $as_echo_n "checking for $ac_word... " >&6; }
  6483. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6484. $as_echo_n "(cached) " >&6
  6485. else
  6486. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6487. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6488. else
  6489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6490. for as_dir in $PATH
  6491. do
  6492. IFS=$as_save_IFS
  6493. test -z "$as_dir" && as_dir=.
  6494. for ac_exec_ext in '' $ac_executable_extensions; do
  6495. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6496. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6498. break 2
  6499. fi
  6500. done
  6501. done
  6502. IFS=$as_save_IFS
  6503. fi
  6504. fi
  6505. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6506. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6508. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6509. else
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6511. $as_echo "no" >&6; }
  6512. fi
  6513. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6514. MANIFEST_TOOL=":"
  6515. else
  6516. case $cross_compiling:$ac_tool_warned in
  6517. yes:)
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6519. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6520. ac_tool_warned=yes ;;
  6521. esac
  6522. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6523. fi
  6524. else
  6525. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6526. fi
  6527. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6529. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6530. if ${lt_cv_path_mainfest_tool+:} false; then :
  6531. $as_echo_n "(cached) " >&6
  6532. else
  6533. lt_cv_path_mainfest_tool=no
  6534. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6535. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6536. cat conftest.err >&5
  6537. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6538. lt_cv_path_mainfest_tool=yes
  6539. fi
  6540. rm -f conftest*
  6541. fi
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6543. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6544. if test yes != "$lt_cv_path_mainfest_tool"; then
  6545. MANIFEST_TOOL=:
  6546. fi
  6547. case $host_os in
  6548. rhapsody* | darwin*)
  6549. if test -n "$ac_tool_prefix"; then
  6550. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6551. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6553. $as_echo_n "checking for $ac_word... " >&6; }
  6554. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6555. $as_echo_n "(cached) " >&6
  6556. else
  6557. if test -n "$DSYMUTIL"; then
  6558. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6559. else
  6560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6561. for as_dir in $PATH
  6562. do
  6563. IFS=$as_save_IFS
  6564. test -z "$as_dir" && as_dir=.
  6565. for ac_exec_ext in '' $ac_executable_extensions; do
  6566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6567. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6569. break 2
  6570. fi
  6571. done
  6572. done
  6573. IFS=$as_save_IFS
  6574. fi
  6575. fi
  6576. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6577. if test -n "$DSYMUTIL"; then
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6579. $as_echo "$DSYMUTIL" >&6; }
  6580. else
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6582. $as_echo "no" >&6; }
  6583. fi
  6584. fi
  6585. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6586. ac_ct_DSYMUTIL=$DSYMUTIL
  6587. # Extract the first word of "dsymutil", so it can be a program name with args.
  6588. set dummy dsymutil; ac_word=$2
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6590. $as_echo_n "checking for $ac_word... " >&6; }
  6591. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6592. $as_echo_n "(cached) " >&6
  6593. else
  6594. if test -n "$ac_ct_DSYMUTIL"; then
  6595. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6596. else
  6597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6598. for as_dir in $PATH
  6599. do
  6600. IFS=$as_save_IFS
  6601. test -z "$as_dir" && as_dir=.
  6602. for ac_exec_ext in '' $ac_executable_extensions; do
  6603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6604. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6606. break 2
  6607. fi
  6608. done
  6609. done
  6610. IFS=$as_save_IFS
  6611. fi
  6612. fi
  6613. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6614. if test -n "$ac_ct_DSYMUTIL"; then
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6616. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6617. else
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6619. $as_echo "no" >&6; }
  6620. fi
  6621. if test "x$ac_ct_DSYMUTIL" = x; then
  6622. DSYMUTIL=":"
  6623. else
  6624. case $cross_compiling:$ac_tool_warned in
  6625. yes:)
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6628. ac_tool_warned=yes ;;
  6629. esac
  6630. DSYMUTIL=$ac_ct_DSYMUTIL
  6631. fi
  6632. else
  6633. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6634. fi
  6635. if test -n "$ac_tool_prefix"; then
  6636. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6637. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6639. $as_echo_n "checking for $ac_word... " >&6; }
  6640. if ${ac_cv_prog_NMEDIT+:} false; then :
  6641. $as_echo_n "(cached) " >&6
  6642. else
  6643. if test -n "$NMEDIT"; then
  6644. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6645. else
  6646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6647. for as_dir in $PATH
  6648. do
  6649. IFS=$as_save_IFS
  6650. test -z "$as_dir" && as_dir=.
  6651. for ac_exec_ext in '' $ac_executable_extensions; do
  6652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6653. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6655. break 2
  6656. fi
  6657. done
  6658. done
  6659. IFS=$as_save_IFS
  6660. fi
  6661. fi
  6662. NMEDIT=$ac_cv_prog_NMEDIT
  6663. if test -n "$NMEDIT"; then
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6665. $as_echo "$NMEDIT" >&6; }
  6666. else
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6668. $as_echo "no" >&6; }
  6669. fi
  6670. fi
  6671. if test -z "$ac_cv_prog_NMEDIT"; then
  6672. ac_ct_NMEDIT=$NMEDIT
  6673. # Extract the first word of "nmedit", so it can be a program name with args.
  6674. set dummy nmedit; ac_word=$2
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6676. $as_echo_n "checking for $ac_word... " >&6; }
  6677. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6678. $as_echo_n "(cached) " >&6
  6679. else
  6680. if test -n "$ac_ct_NMEDIT"; then
  6681. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6682. else
  6683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6684. for as_dir in $PATH
  6685. do
  6686. IFS=$as_save_IFS
  6687. test -z "$as_dir" && as_dir=.
  6688. for ac_exec_ext in '' $ac_executable_extensions; do
  6689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6690. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6692. break 2
  6693. fi
  6694. done
  6695. done
  6696. IFS=$as_save_IFS
  6697. fi
  6698. fi
  6699. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6700. if test -n "$ac_ct_NMEDIT"; then
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6702. $as_echo "$ac_ct_NMEDIT" >&6; }
  6703. else
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6705. $as_echo "no" >&6; }
  6706. fi
  6707. if test "x$ac_ct_NMEDIT" = x; then
  6708. NMEDIT=":"
  6709. else
  6710. case $cross_compiling:$ac_tool_warned in
  6711. yes:)
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6714. ac_tool_warned=yes ;;
  6715. esac
  6716. NMEDIT=$ac_ct_NMEDIT
  6717. fi
  6718. else
  6719. NMEDIT="$ac_cv_prog_NMEDIT"
  6720. fi
  6721. if test -n "$ac_tool_prefix"; then
  6722. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6723. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6725. $as_echo_n "checking for $ac_word... " >&6; }
  6726. if ${ac_cv_prog_LIPO+:} false; then :
  6727. $as_echo_n "(cached) " >&6
  6728. else
  6729. if test -n "$LIPO"; then
  6730. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6731. else
  6732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6733. for as_dir in $PATH
  6734. do
  6735. IFS=$as_save_IFS
  6736. test -z "$as_dir" && as_dir=.
  6737. for ac_exec_ext in '' $ac_executable_extensions; do
  6738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6739. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6741. break 2
  6742. fi
  6743. done
  6744. done
  6745. IFS=$as_save_IFS
  6746. fi
  6747. fi
  6748. LIPO=$ac_cv_prog_LIPO
  6749. if test -n "$LIPO"; then
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6751. $as_echo "$LIPO" >&6; }
  6752. else
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6754. $as_echo "no" >&6; }
  6755. fi
  6756. fi
  6757. if test -z "$ac_cv_prog_LIPO"; then
  6758. ac_ct_LIPO=$LIPO
  6759. # Extract the first word of "lipo", so it can be a program name with args.
  6760. set dummy lipo; ac_word=$2
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6762. $as_echo_n "checking for $ac_word... " >&6; }
  6763. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6764. $as_echo_n "(cached) " >&6
  6765. else
  6766. if test -n "$ac_ct_LIPO"; then
  6767. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6768. else
  6769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6770. for as_dir in $PATH
  6771. do
  6772. IFS=$as_save_IFS
  6773. test -z "$as_dir" && as_dir=.
  6774. for ac_exec_ext in '' $ac_executable_extensions; do
  6775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6776. ac_cv_prog_ac_ct_LIPO="lipo"
  6777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6778. break 2
  6779. fi
  6780. done
  6781. done
  6782. IFS=$as_save_IFS
  6783. fi
  6784. fi
  6785. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6786. if test -n "$ac_ct_LIPO"; then
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6788. $as_echo "$ac_ct_LIPO" >&6; }
  6789. else
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6791. $as_echo "no" >&6; }
  6792. fi
  6793. if test "x$ac_ct_LIPO" = x; then
  6794. LIPO=":"
  6795. else
  6796. case $cross_compiling:$ac_tool_warned in
  6797. yes:)
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6799. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6800. ac_tool_warned=yes ;;
  6801. esac
  6802. LIPO=$ac_ct_LIPO
  6803. fi
  6804. else
  6805. LIPO="$ac_cv_prog_LIPO"
  6806. fi
  6807. if test -n "$ac_tool_prefix"; then
  6808. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6809. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6811. $as_echo_n "checking for $ac_word... " >&6; }
  6812. if ${ac_cv_prog_OTOOL+:} false; then :
  6813. $as_echo_n "(cached) " >&6
  6814. else
  6815. if test -n "$OTOOL"; then
  6816. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6817. else
  6818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6819. for as_dir in $PATH
  6820. do
  6821. IFS=$as_save_IFS
  6822. test -z "$as_dir" && as_dir=.
  6823. for ac_exec_ext in '' $ac_executable_extensions; do
  6824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6825. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6827. break 2
  6828. fi
  6829. done
  6830. done
  6831. IFS=$as_save_IFS
  6832. fi
  6833. fi
  6834. OTOOL=$ac_cv_prog_OTOOL
  6835. if test -n "$OTOOL"; then
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6837. $as_echo "$OTOOL" >&6; }
  6838. else
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6840. $as_echo "no" >&6; }
  6841. fi
  6842. fi
  6843. if test -z "$ac_cv_prog_OTOOL"; then
  6844. ac_ct_OTOOL=$OTOOL
  6845. # Extract the first word of "otool", so it can be a program name with args.
  6846. set dummy otool; ac_word=$2
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6848. $as_echo_n "checking for $ac_word... " >&6; }
  6849. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6850. $as_echo_n "(cached) " >&6
  6851. else
  6852. if test -n "$ac_ct_OTOOL"; then
  6853. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6854. else
  6855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6856. for as_dir in $PATH
  6857. do
  6858. IFS=$as_save_IFS
  6859. test -z "$as_dir" && as_dir=.
  6860. for ac_exec_ext in '' $ac_executable_extensions; do
  6861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6862. ac_cv_prog_ac_ct_OTOOL="otool"
  6863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6864. break 2
  6865. fi
  6866. done
  6867. done
  6868. IFS=$as_save_IFS
  6869. fi
  6870. fi
  6871. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6872. if test -n "$ac_ct_OTOOL"; then
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6874. $as_echo "$ac_ct_OTOOL" >&6; }
  6875. else
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6877. $as_echo "no" >&6; }
  6878. fi
  6879. if test "x$ac_ct_OTOOL" = x; then
  6880. OTOOL=":"
  6881. else
  6882. case $cross_compiling:$ac_tool_warned in
  6883. yes:)
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6885. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6886. ac_tool_warned=yes ;;
  6887. esac
  6888. OTOOL=$ac_ct_OTOOL
  6889. fi
  6890. else
  6891. OTOOL="$ac_cv_prog_OTOOL"
  6892. fi
  6893. if test -n "$ac_tool_prefix"; then
  6894. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6895. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6897. $as_echo_n "checking for $ac_word... " >&6; }
  6898. if ${ac_cv_prog_OTOOL64+:} false; then :
  6899. $as_echo_n "(cached) " >&6
  6900. else
  6901. if test -n "$OTOOL64"; then
  6902. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6903. else
  6904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6905. for as_dir in $PATH
  6906. do
  6907. IFS=$as_save_IFS
  6908. test -z "$as_dir" && as_dir=.
  6909. for ac_exec_ext in '' $ac_executable_extensions; do
  6910. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6911. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6913. break 2
  6914. fi
  6915. done
  6916. done
  6917. IFS=$as_save_IFS
  6918. fi
  6919. fi
  6920. OTOOL64=$ac_cv_prog_OTOOL64
  6921. if test -n "$OTOOL64"; then
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6923. $as_echo "$OTOOL64" >&6; }
  6924. else
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6926. $as_echo "no" >&6; }
  6927. fi
  6928. fi
  6929. if test -z "$ac_cv_prog_OTOOL64"; then
  6930. ac_ct_OTOOL64=$OTOOL64
  6931. # Extract the first word of "otool64", so it can be a program name with args.
  6932. set dummy otool64; ac_word=$2
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6934. $as_echo_n "checking for $ac_word... " >&6; }
  6935. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6936. $as_echo_n "(cached) " >&6
  6937. else
  6938. if test -n "$ac_ct_OTOOL64"; then
  6939. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6940. else
  6941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6942. for as_dir in $PATH
  6943. do
  6944. IFS=$as_save_IFS
  6945. test -z "$as_dir" && as_dir=.
  6946. for ac_exec_ext in '' $ac_executable_extensions; do
  6947. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6948. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6950. break 2
  6951. fi
  6952. done
  6953. done
  6954. IFS=$as_save_IFS
  6955. fi
  6956. fi
  6957. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6958. if test -n "$ac_ct_OTOOL64"; then
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6960. $as_echo "$ac_ct_OTOOL64" >&6; }
  6961. else
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6963. $as_echo "no" >&6; }
  6964. fi
  6965. if test "x$ac_ct_OTOOL64" = x; then
  6966. OTOOL64=":"
  6967. else
  6968. case $cross_compiling:$ac_tool_warned in
  6969. yes:)
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6971. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6972. ac_tool_warned=yes ;;
  6973. esac
  6974. OTOOL64=$ac_ct_OTOOL64
  6975. fi
  6976. else
  6977. OTOOL64="$ac_cv_prog_OTOOL64"
  6978. fi
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6980. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6981. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6982. $as_echo_n "(cached) " >&6
  6983. else
  6984. lt_cv_apple_cc_single_mod=no
  6985. if test -z "$LT_MULTI_MODULE"; then
  6986. # By default we will add the -single_module flag. You can override
  6987. # by either setting the environment variable LT_MULTI_MODULE
  6988. # non-empty at configure time, or by adding -multi_module to the
  6989. # link flags.
  6990. rm -rf libconftest.dylib*
  6991. echo "int foo(void){return 1;}" > conftest.c
  6992. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6993. -dynamiclib -Wl,-single_module conftest.c" >&5
  6994. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6995. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6996. _lt_result=$?
  6997. # If there is a non-empty error log, and "single_module"
  6998. # appears in it, assume the flag caused a linker warning
  6999. if test -s conftest.err && $GREP single_module conftest.err; then
  7000. cat conftest.err >&5
  7001. # Otherwise, if the output was created with a 0 exit code from
  7002. # the compiler, it worked.
  7003. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7004. lt_cv_apple_cc_single_mod=yes
  7005. else
  7006. cat conftest.err >&5
  7007. fi
  7008. rm -rf libconftest.dylib*
  7009. rm -f conftest.*
  7010. fi
  7011. fi
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7013. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7015. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7016. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7017. $as_echo_n "(cached) " >&6
  7018. else
  7019. lt_cv_ld_exported_symbols_list=no
  7020. save_LDFLAGS=$LDFLAGS
  7021. echo "_main" > conftest.sym
  7022. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7024. /* end confdefs.h. */
  7025. int
  7026. main ()
  7027. {
  7028. ;
  7029. return 0;
  7030. }
  7031. _ACEOF
  7032. if ac_fn_c_try_link "$LINENO"; then :
  7033. lt_cv_ld_exported_symbols_list=yes
  7034. else
  7035. lt_cv_ld_exported_symbols_list=no
  7036. fi
  7037. rm -f core conftest.err conftest.$ac_objext \
  7038. conftest$ac_exeext conftest.$ac_ext
  7039. LDFLAGS=$save_LDFLAGS
  7040. fi
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7042. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7044. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7045. if ${lt_cv_ld_force_load+:} false; then :
  7046. $as_echo_n "(cached) " >&6
  7047. else
  7048. lt_cv_ld_force_load=no
  7049. cat > conftest.c << _LT_EOF
  7050. int forced_loaded() { return 2;}
  7051. _LT_EOF
  7052. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7053. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7054. echo "$AR cru libconftest.a conftest.o" >&5
  7055. $AR cru libconftest.a conftest.o 2>&5
  7056. echo "$RANLIB libconftest.a" >&5
  7057. $RANLIB libconftest.a 2>&5
  7058. cat > conftest.c << _LT_EOF
  7059. int main() { return 0;}
  7060. _LT_EOF
  7061. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7062. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7063. _lt_result=$?
  7064. if test -s conftest.err && $GREP force_load conftest.err; then
  7065. cat conftest.err >&5
  7066. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7067. lt_cv_ld_force_load=yes
  7068. else
  7069. cat conftest.err >&5
  7070. fi
  7071. rm -f conftest.err libconftest.a conftest conftest.c
  7072. rm -rf conftest.dSYM
  7073. fi
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7075. $as_echo "$lt_cv_ld_force_load" >&6; }
  7076. case $host_os in
  7077. rhapsody* | darwin1.[012])
  7078. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7079. darwin1.*)
  7080. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7081. darwin*) # darwin 5.x on
  7082. # if running on 10.5 or later, the deployment target defaults
  7083. # to the OS version, if on x86, and 10.4, the deployment
  7084. # target defaults to 10.4. Don't you love it?
  7085. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7086. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7087. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7088. 10.[012][,.]*)
  7089. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7090. 10.*)
  7091. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7092. esac
  7093. ;;
  7094. esac
  7095. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7096. _lt_dar_single_mod='$single_module'
  7097. fi
  7098. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7099. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7100. else
  7101. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7102. fi
  7103. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7104. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7105. else
  7106. _lt_dsymutil=
  7107. fi
  7108. ;;
  7109. esac
  7110. # func_munge_path_list VARIABLE PATH
  7111. # -----------------------------------
  7112. # VARIABLE is name of variable containing _space_ separated list of
  7113. # directories to be munged by the contents of PATH, which is string
  7114. # having a format:
  7115. # "DIR[:DIR]:"
  7116. # string "DIR[ DIR]" will be prepended to VARIABLE
  7117. # ":DIR[:DIR]"
  7118. # string "DIR[ DIR]" will be appended to VARIABLE
  7119. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7120. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7121. # "DIRA[ DIRA]" will be appended to VARIABLE
  7122. # "DIR[:DIR]"
  7123. # VARIABLE will be replaced by "DIR[ DIR]"
  7124. func_munge_path_list ()
  7125. {
  7126. case x$2 in
  7127. x)
  7128. ;;
  7129. *:)
  7130. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7131. ;;
  7132. x:*)
  7133. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7134. ;;
  7135. *::*)
  7136. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7137. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7138. ;;
  7139. *)
  7140. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7141. ;;
  7142. esac
  7143. }
  7144. for ac_header in dlfcn.h
  7145. do :
  7146. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7147. "
  7148. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7149. cat >>confdefs.h <<_ACEOF
  7150. #define HAVE_DLFCN_H 1
  7151. _ACEOF
  7152. fi
  7153. done
  7154. # Set options
  7155. enable_dlopen=no
  7156. enable_win32_dll=no
  7157. # Check whether --enable-shared was given.
  7158. if test "${enable_shared+set}" = set; then :
  7159. enableval=$enable_shared; p=${PACKAGE-default}
  7160. case $enableval in
  7161. yes) enable_shared=yes ;;
  7162. no) enable_shared=no ;;
  7163. *)
  7164. enable_shared=no
  7165. # Look at the argument we got. We use all the common list separators.
  7166. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7167. for pkg in $enableval; do
  7168. IFS=$lt_save_ifs
  7169. if test "X$pkg" = "X$p"; then
  7170. enable_shared=yes
  7171. fi
  7172. done
  7173. IFS=$lt_save_ifs
  7174. ;;
  7175. esac
  7176. else
  7177. enable_shared=yes
  7178. fi
  7179. # Check whether --enable-static was given.
  7180. if test "${enable_static+set}" = set; then :
  7181. enableval=$enable_static; p=${PACKAGE-default}
  7182. case $enableval in
  7183. yes) enable_static=yes ;;
  7184. no) enable_static=no ;;
  7185. *)
  7186. enable_static=no
  7187. # Look at the argument we got. We use all the common list separators.
  7188. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7189. for pkg in $enableval; do
  7190. IFS=$lt_save_ifs
  7191. if test "X$pkg" = "X$p"; then
  7192. enable_static=yes
  7193. fi
  7194. done
  7195. IFS=$lt_save_ifs
  7196. ;;
  7197. esac
  7198. else
  7199. enable_static=yes
  7200. fi
  7201. # Check whether --with-pic was given.
  7202. if test "${with_pic+set}" = set; then :
  7203. withval=$with_pic; lt_p=${PACKAGE-default}
  7204. case $withval in
  7205. yes|no) pic_mode=$withval ;;
  7206. *)
  7207. pic_mode=default
  7208. # Look at the argument we got. We use all the common list separators.
  7209. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7210. for lt_pkg in $withval; do
  7211. IFS=$lt_save_ifs
  7212. if test "X$lt_pkg" = "X$lt_p"; then
  7213. pic_mode=yes
  7214. fi
  7215. done
  7216. IFS=$lt_save_ifs
  7217. ;;
  7218. esac
  7219. else
  7220. pic_mode=default
  7221. fi
  7222. # Check whether --enable-fast-install was given.
  7223. if test "${enable_fast_install+set}" = set; then :
  7224. enableval=$enable_fast_install; p=${PACKAGE-default}
  7225. case $enableval in
  7226. yes) enable_fast_install=yes ;;
  7227. no) enable_fast_install=no ;;
  7228. *)
  7229. enable_fast_install=no
  7230. # Look at the argument we got. We use all the common list separators.
  7231. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7232. for pkg in $enableval; do
  7233. IFS=$lt_save_ifs
  7234. if test "X$pkg" = "X$p"; then
  7235. enable_fast_install=yes
  7236. fi
  7237. done
  7238. IFS=$lt_save_ifs
  7239. ;;
  7240. esac
  7241. else
  7242. enable_fast_install=yes
  7243. fi
  7244. shared_archive_member_spec=
  7245. case $host,$enable_shared in
  7246. power*-*-aix[5-9]*,yes)
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7248. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7249. # Check whether --with-aix-soname was given.
  7250. if test "${with_aix_soname+set}" = set; then :
  7251. withval=$with_aix_soname; case $withval in
  7252. aix|svr4|both)
  7253. ;;
  7254. *)
  7255. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7256. ;;
  7257. esac
  7258. lt_cv_with_aix_soname=$with_aix_soname
  7259. else
  7260. if ${lt_cv_with_aix_soname+:} false; then :
  7261. $as_echo_n "(cached) " >&6
  7262. else
  7263. lt_cv_with_aix_soname=aix
  7264. fi
  7265. with_aix_soname=$lt_cv_with_aix_soname
  7266. fi
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7268. $as_echo "$with_aix_soname" >&6; }
  7269. if test aix != "$with_aix_soname"; then
  7270. # For the AIX way of multilib, we name the shared archive member
  7271. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7272. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7273. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7274. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7275. if test 64 = "${OBJECT_MODE-32}"; then
  7276. shared_archive_member_spec=shr_64
  7277. else
  7278. shared_archive_member_spec=shr
  7279. fi
  7280. fi
  7281. ;;
  7282. *)
  7283. with_aix_soname=aix
  7284. ;;
  7285. esac
  7286. # This can be used to rebuild libtool when needed
  7287. LIBTOOL_DEPS=$ltmain
  7288. # Always use our own libtool.
  7289. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7290. test -z "$LN_S" && LN_S="ln -s"
  7291. if test -n "${ZSH_VERSION+set}"; then
  7292. setopt NO_GLOB_SUBST
  7293. fi
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7295. $as_echo_n "checking for objdir... " >&6; }
  7296. if ${lt_cv_objdir+:} false; then :
  7297. $as_echo_n "(cached) " >&6
  7298. else
  7299. rm -f .libs 2>/dev/null
  7300. mkdir .libs 2>/dev/null
  7301. if test -d .libs; then
  7302. lt_cv_objdir=.libs
  7303. else
  7304. # MS-DOS does not allow filenames that begin with a dot.
  7305. lt_cv_objdir=_libs
  7306. fi
  7307. rmdir .libs 2>/dev/null
  7308. fi
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7310. $as_echo "$lt_cv_objdir" >&6; }
  7311. objdir=$lt_cv_objdir
  7312. cat >>confdefs.h <<_ACEOF
  7313. #define LT_OBJDIR "$lt_cv_objdir/"
  7314. _ACEOF
  7315. case $host_os in
  7316. aix3*)
  7317. # AIX sometimes has problems with the GCC collect2 program. For some
  7318. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7319. # vanish in a puff of smoke.
  7320. if test set != "${COLLECT_NAMES+set}"; then
  7321. COLLECT_NAMES=
  7322. export COLLECT_NAMES
  7323. fi
  7324. ;;
  7325. esac
  7326. # Global variables:
  7327. ofile=libtool
  7328. can_build_shared=yes
  7329. # All known linkers require a '.a' archive for static linking (except MSVC,
  7330. # which needs '.lib').
  7331. libext=a
  7332. with_gnu_ld=$lt_cv_prog_gnu_ld
  7333. old_CC=$CC
  7334. old_CFLAGS=$CFLAGS
  7335. # Set sane defaults for various variables
  7336. test -z "$CC" && CC=cc
  7337. test -z "$LTCC" && LTCC=$CC
  7338. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7339. test -z "$LD" && LD=ld
  7340. test -z "$ac_objext" && ac_objext=o
  7341. func_cc_basename $compiler
  7342. cc_basename=$func_cc_basename_result
  7343. # Only perform the check for file, if the check method requires it
  7344. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7345. case $deplibs_check_method in
  7346. file_magic*)
  7347. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7349. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7350. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7351. $as_echo_n "(cached) " >&6
  7352. else
  7353. case $MAGIC_CMD in
  7354. [\\/*] | ?:[\\/]*)
  7355. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7356. ;;
  7357. *)
  7358. lt_save_MAGIC_CMD=$MAGIC_CMD
  7359. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7360. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7361. for ac_dir in $ac_dummy; do
  7362. IFS=$lt_save_ifs
  7363. test -z "$ac_dir" && ac_dir=.
  7364. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7365. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7366. if test -n "$file_magic_test_file"; then
  7367. case $deplibs_check_method in
  7368. "file_magic "*)
  7369. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7370. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7371. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7372. $EGREP "$file_magic_regex" > /dev/null; then
  7373. :
  7374. else
  7375. cat <<_LT_EOF 1>&2
  7376. *** Warning: the command libtool uses to detect shared libraries,
  7377. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7378. *** The result is that libtool may fail to recognize shared libraries
  7379. *** as such. This will affect the creation of libtool libraries that
  7380. *** depend on shared libraries, but programs linked with such libtool
  7381. *** libraries will work regardless of this problem. Nevertheless, you
  7382. *** may want to report the problem to your system manager and/or to
  7383. *** bug-libtool@gnu.org
  7384. _LT_EOF
  7385. fi ;;
  7386. esac
  7387. fi
  7388. break
  7389. fi
  7390. done
  7391. IFS=$lt_save_ifs
  7392. MAGIC_CMD=$lt_save_MAGIC_CMD
  7393. ;;
  7394. esac
  7395. fi
  7396. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7397. if test -n "$MAGIC_CMD"; then
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7399. $as_echo "$MAGIC_CMD" >&6; }
  7400. else
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7402. $as_echo "no" >&6; }
  7403. fi
  7404. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7405. if test -n "$ac_tool_prefix"; then
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7407. $as_echo_n "checking for file... " >&6; }
  7408. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7409. $as_echo_n "(cached) " >&6
  7410. else
  7411. case $MAGIC_CMD in
  7412. [\\/*] | ?:[\\/]*)
  7413. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7414. ;;
  7415. *)
  7416. lt_save_MAGIC_CMD=$MAGIC_CMD
  7417. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7418. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7419. for ac_dir in $ac_dummy; do
  7420. IFS=$lt_save_ifs
  7421. test -z "$ac_dir" && ac_dir=.
  7422. if test -f "$ac_dir/file"; then
  7423. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7424. if test -n "$file_magic_test_file"; then
  7425. case $deplibs_check_method in
  7426. "file_magic "*)
  7427. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7428. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7429. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7430. $EGREP "$file_magic_regex" > /dev/null; then
  7431. :
  7432. else
  7433. cat <<_LT_EOF 1>&2
  7434. *** Warning: the command libtool uses to detect shared libraries,
  7435. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7436. *** The result is that libtool may fail to recognize shared libraries
  7437. *** as such. This will affect the creation of libtool libraries that
  7438. *** depend on shared libraries, but programs linked with such libtool
  7439. *** libraries will work regardless of this problem. Nevertheless, you
  7440. *** may want to report the problem to your system manager and/or to
  7441. *** bug-libtool@gnu.org
  7442. _LT_EOF
  7443. fi ;;
  7444. esac
  7445. fi
  7446. break
  7447. fi
  7448. done
  7449. IFS=$lt_save_ifs
  7450. MAGIC_CMD=$lt_save_MAGIC_CMD
  7451. ;;
  7452. esac
  7453. fi
  7454. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7455. if test -n "$MAGIC_CMD"; then
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7457. $as_echo "$MAGIC_CMD" >&6; }
  7458. else
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7460. $as_echo "no" >&6; }
  7461. fi
  7462. else
  7463. MAGIC_CMD=:
  7464. fi
  7465. fi
  7466. fi
  7467. ;;
  7468. esac
  7469. # Use C for the default configuration in the libtool script
  7470. lt_save_CC=$CC
  7471. ac_ext=c
  7472. ac_cpp='$CPP $CPPFLAGS'
  7473. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7474. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7475. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7476. # Source file extension for C test sources.
  7477. ac_ext=c
  7478. # Object file extension for compiled C test sources.
  7479. objext=o
  7480. objext=$objext
  7481. # Code to be used in simple compile tests
  7482. lt_simple_compile_test_code="int some_variable = 0;"
  7483. # Code to be used in simple link tests
  7484. lt_simple_link_test_code='int main(){return(0);}'
  7485. # If no C compiler was specified, use CC.
  7486. LTCC=${LTCC-"$CC"}
  7487. # If no C compiler flags were specified, use CFLAGS.
  7488. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7489. # Allow CC to be a program name with arguments.
  7490. compiler=$CC
  7491. # Save the default compiler, since it gets overwritten when the other
  7492. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7493. compiler_DEFAULT=$CC
  7494. # save warnings/boilerplate of simple test code
  7495. ac_outfile=conftest.$ac_objext
  7496. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7497. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7498. _lt_compiler_boilerplate=`cat conftest.err`
  7499. $RM conftest*
  7500. ac_outfile=conftest.$ac_objext
  7501. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7502. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7503. _lt_linker_boilerplate=`cat conftest.err`
  7504. $RM -r conftest*
  7505. if test -n "$compiler"; then
  7506. lt_prog_compiler_no_builtin_flag=
  7507. if test yes = "$GCC"; then
  7508. case $cc_basename in
  7509. nvcc*)
  7510. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7511. *)
  7512. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7513. esac
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7515. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7516. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7517. $as_echo_n "(cached) " >&6
  7518. else
  7519. lt_cv_prog_compiler_rtti_exceptions=no
  7520. ac_outfile=conftest.$ac_objext
  7521. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7522. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7523. # Insert the option either (1) after the last *FLAGS variable, or
  7524. # (2) before a word containing "conftest.", or (3) at the end.
  7525. # Note that $ac_compile itself does not contain backslashes and begins
  7526. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7527. # The option is referenced via a variable to avoid confusing sed.
  7528. lt_compile=`echo "$ac_compile" | $SED \
  7529. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7530. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7531. -e 's:$: $lt_compiler_flag:'`
  7532. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7533. (eval "$lt_compile" 2>conftest.err)
  7534. ac_status=$?
  7535. cat conftest.err >&5
  7536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7537. if (exit $ac_status) && test -s "$ac_outfile"; then
  7538. # The compiler can only warn and ignore the option if not recognized
  7539. # So say no if there are warnings other than the usual output.
  7540. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7541. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7542. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7543. lt_cv_prog_compiler_rtti_exceptions=yes
  7544. fi
  7545. fi
  7546. $RM conftest*
  7547. fi
  7548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7549. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7550. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7551. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7552. else
  7553. :
  7554. fi
  7555. fi
  7556. lt_prog_compiler_wl=
  7557. lt_prog_compiler_pic=
  7558. lt_prog_compiler_static=
  7559. if test yes = "$GCC"; then
  7560. lt_prog_compiler_wl='-Wl,'
  7561. lt_prog_compiler_static='-static'
  7562. case $host_os in
  7563. aix*)
  7564. # All AIX code is PIC.
  7565. if test ia64 = "$host_cpu"; then
  7566. # AIX 5 now supports IA64 processor
  7567. lt_prog_compiler_static='-Bstatic'
  7568. fi
  7569. lt_prog_compiler_pic='-fPIC'
  7570. ;;
  7571. amigaos*)
  7572. case $host_cpu in
  7573. powerpc)
  7574. # see comment about AmigaOS4 .so support
  7575. lt_prog_compiler_pic='-fPIC'
  7576. ;;
  7577. m68k)
  7578. # FIXME: we need at least 68020 code to build shared libraries, but
  7579. # adding the '-m68020' flag to GCC prevents building anything better,
  7580. # like '-m68040'.
  7581. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7582. ;;
  7583. esac
  7584. ;;
  7585. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7586. # PIC is the default for these OSes.
  7587. ;;
  7588. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7589. # This hack is so that the source file can tell whether it is being
  7590. # built for inclusion in a dll (and should export symbols for example).
  7591. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7592. # (--disable-auto-import) libraries
  7593. lt_prog_compiler_pic='-DDLL_EXPORT'
  7594. case $host_os in
  7595. os2*)
  7596. lt_prog_compiler_static='$wl-static'
  7597. ;;
  7598. esac
  7599. ;;
  7600. darwin* | rhapsody*)
  7601. # PIC is the default on this platform
  7602. # Common symbols not allowed in MH_DYLIB files
  7603. lt_prog_compiler_pic='-fno-common'
  7604. ;;
  7605. haiku*)
  7606. # PIC is the default for Haiku.
  7607. # The "-static" flag exists, but is broken.
  7608. lt_prog_compiler_static=
  7609. ;;
  7610. hpux*)
  7611. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7612. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7613. # sets the default TLS model and affects inlining.
  7614. case $host_cpu in
  7615. hppa*64*)
  7616. # +Z the default
  7617. ;;
  7618. *)
  7619. lt_prog_compiler_pic='-fPIC'
  7620. ;;
  7621. esac
  7622. ;;
  7623. interix[3-9]*)
  7624. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7625. # Instead, we relocate shared libraries at runtime.
  7626. ;;
  7627. msdosdjgpp*)
  7628. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7629. # on systems that don't support them.
  7630. lt_prog_compiler_can_build_shared=no
  7631. enable_shared=no
  7632. ;;
  7633. *nto* | *qnx*)
  7634. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7635. # it will coredump.
  7636. lt_prog_compiler_pic='-fPIC -shared'
  7637. ;;
  7638. sysv4*MP*)
  7639. if test -d /usr/nec; then
  7640. lt_prog_compiler_pic=-Kconform_pic
  7641. fi
  7642. ;;
  7643. *)
  7644. lt_prog_compiler_pic='-fPIC'
  7645. ;;
  7646. esac
  7647. case $cc_basename in
  7648. nvcc*) # Cuda Compiler Driver 2.2
  7649. lt_prog_compiler_wl='-Xlinker '
  7650. if test -n "$lt_prog_compiler_pic"; then
  7651. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7652. fi
  7653. ;;
  7654. esac
  7655. else
  7656. # PORTME Check for flag to pass linker flags through the system compiler.
  7657. case $host_os in
  7658. aix*)
  7659. lt_prog_compiler_wl='-Wl,'
  7660. if test ia64 = "$host_cpu"; then
  7661. # AIX 5 now supports IA64 processor
  7662. lt_prog_compiler_static='-Bstatic'
  7663. else
  7664. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7665. fi
  7666. ;;
  7667. darwin* | rhapsody*)
  7668. # PIC is the default on this platform
  7669. # Common symbols not allowed in MH_DYLIB files
  7670. lt_prog_compiler_pic='-fno-common'
  7671. case $cc_basename in
  7672. nagfor*)
  7673. # NAG Fortran compiler
  7674. lt_prog_compiler_wl='-Wl,-Wl,,'
  7675. lt_prog_compiler_pic='-PIC'
  7676. lt_prog_compiler_static='-Bstatic'
  7677. ;;
  7678. esac
  7679. ;;
  7680. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7681. # This hack is so that the source file can tell whether it is being
  7682. # built for inclusion in a dll (and should export symbols for example).
  7683. lt_prog_compiler_pic='-DDLL_EXPORT'
  7684. case $host_os in
  7685. os2*)
  7686. lt_prog_compiler_static='$wl-static'
  7687. ;;
  7688. esac
  7689. ;;
  7690. hpux9* | hpux10* | hpux11*)
  7691. lt_prog_compiler_wl='-Wl,'
  7692. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7693. # not for PA HP-UX.
  7694. case $host_cpu in
  7695. hppa*64*|ia64*)
  7696. # +Z the default
  7697. ;;
  7698. *)
  7699. lt_prog_compiler_pic='+Z'
  7700. ;;
  7701. esac
  7702. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7703. lt_prog_compiler_static='$wl-a ${wl}archive'
  7704. ;;
  7705. irix5* | irix6* | nonstopux*)
  7706. lt_prog_compiler_wl='-Wl,'
  7707. # PIC (with -KPIC) is the default.
  7708. lt_prog_compiler_static='-non_shared'
  7709. ;;
  7710. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7711. case $cc_basename in
  7712. # old Intel for x86_64, which still supported -KPIC.
  7713. ecc*)
  7714. lt_prog_compiler_wl='-Wl,'
  7715. lt_prog_compiler_pic='-KPIC'
  7716. lt_prog_compiler_static='-static'
  7717. ;;
  7718. # icc used to be incompatible with GCC.
  7719. # ICC 10 doesn't accept -KPIC any more.
  7720. icc* | ifort*)
  7721. lt_prog_compiler_wl='-Wl,'
  7722. lt_prog_compiler_pic='-fPIC'
  7723. lt_prog_compiler_static='-static'
  7724. ;;
  7725. # Lahey Fortran 8.1.
  7726. lf95*)
  7727. lt_prog_compiler_wl='-Wl,'
  7728. lt_prog_compiler_pic='--shared'
  7729. lt_prog_compiler_static='--static'
  7730. ;;
  7731. nagfor*)
  7732. # NAG Fortran compiler
  7733. lt_prog_compiler_wl='-Wl,-Wl,,'
  7734. lt_prog_compiler_pic='-PIC'
  7735. lt_prog_compiler_static='-Bstatic'
  7736. ;;
  7737. tcc*)
  7738. # Fabrice Bellard et al's Tiny C Compiler
  7739. lt_prog_compiler_wl='-Wl,'
  7740. lt_prog_compiler_pic='-fPIC'
  7741. lt_prog_compiler_static='-static'
  7742. ;;
  7743. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7744. # Portland Group compilers (*not* the Pentium gcc compiler,
  7745. # which looks to be a dead project)
  7746. lt_prog_compiler_wl='-Wl,'
  7747. lt_prog_compiler_pic='-fpic'
  7748. lt_prog_compiler_static='-Bstatic'
  7749. ;;
  7750. ccc*)
  7751. lt_prog_compiler_wl='-Wl,'
  7752. # All Alpha code is PIC.
  7753. lt_prog_compiler_static='-non_shared'
  7754. ;;
  7755. xl* | bgxl* | bgf* | mpixl*)
  7756. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7757. lt_prog_compiler_wl='-Wl,'
  7758. lt_prog_compiler_pic='-qpic'
  7759. lt_prog_compiler_static='-qstaticlink'
  7760. ;;
  7761. *)
  7762. case `$CC -V 2>&1 | sed 5q` in
  7763. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7764. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7765. lt_prog_compiler_pic='-KPIC'
  7766. lt_prog_compiler_static='-Bstatic'
  7767. lt_prog_compiler_wl=''
  7768. ;;
  7769. *Sun\ F* | *Sun*Fortran*)
  7770. lt_prog_compiler_pic='-KPIC'
  7771. lt_prog_compiler_static='-Bstatic'
  7772. lt_prog_compiler_wl='-Qoption ld '
  7773. ;;
  7774. *Sun\ C*)
  7775. # Sun C 5.9
  7776. lt_prog_compiler_pic='-KPIC'
  7777. lt_prog_compiler_static='-Bstatic'
  7778. lt_prog_compiler_wl='-Wl,'
  7779. ;;
  7780. *Intel*\ [CF]*Compiler*)
  7781. lt_prog_compiler_wl='-Wl,'
  7782. lt_prog_compiler_pic='-fPIC'
  7783. lt_prog_compiler_static='-static'
  7784. ;;
  7785. *Portland\ Group*)
  7786. lt_prog_compiler_wl='-Wl,'
  7787. lt_prog_compiler_pic='-fpic'
  7788. lt_prog_compiler_static='-Bstatic'
  7789. ;;
  7790. esac
  7791. ;;
  7792. esac
  7793. ;;
  7794. newsos6)
  7795. lt_prog_compiler_pic='-KPIC'
  7796. lt_prog_compiler_static='-Bstatic'
  7797. ;;
  7798. *nto* | *qnx*)
  7799. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7800. # it will coredump.
  7801. lt_prog_compiler_pic='-fPIC -shared'
  7802. ;;
  7803. osf3* | osf4* | osf5*)
  7804. lt_prog_compiler_wl='-Wl,'
  7805. # All OSF/1 code is PIC.
  7806. lt_prog_compiler_static='-non_shared'
  7807. ;;
  7808. rdos*)
  7809. lt_prog_compiler_static='-non_shared'
  7810. ;;
  7811. solaris*)
  7812. lt_prog_compiler_pic='-KPIC'
  7813. lt_prog_compiler_static='-Bstatic'
  7814. case $cc_basename in
  7815. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7816. lt_prog_compiler_wl='-Qoption ld ';;
  7817. *)
  7818. lt_prog_compiler_wl='-Wl,';;
  7819. esac
  7820. ;;
  7821. sunos4*)
  7822. lt_prog_compiler_wl='-Qoption ld '
  7823. lt_prog_compiler_pic='-PIC'
  7824. lt_prog_compiler_static='-Bstatic'
  7825. ;;
  7826. sysv4 | sysv4.2uw2* | sysv4.3*)
  7827. lt_prog_compiler_wl='-Wl,'
  7828. lt_prog_compiler_pic='-KPIC'
  7829. lt_prog_compiler_static='-Bstatic'
  7830. ;;
  7831. sysv4*MP*)
  7832. if test -d /usr/nec; then
  7833. lt_prog_compiler_pic='-Kconform_pic'
  7834. lt_prog_compiler_static='-Bstatic'
  7835. fi
  7836. ;;
  7837. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7838. lt_prog_compiler_wl='-Wl,'
  7839. lt_prog_compiler_pic='-KPIC'
  7840. lt_prog_compiler_static='-Bstatic'
  7841. ;;
  7842. unicos*)
  7843. lt_prog_compiler_wl='-Wl,'
  7844. lt_prog_compiler_can_build_shared=no
  7845. ;;
  7846. uts4*)
  7847. lt_prog_compiler_pic='-pic'
  7848. lt_prog_compiler_static='-Bstatic'
  7849. ;;
  7850. *)
  7851. lt_prog_compiler_can_build_shared=no
  7852. ;;
  7853. esac
  7854. fi
  7855. case $host_os in
  7856. # For platforms that do not support PIC, -DPIC is meaningless:
  7857. *djgpp*)
  7858. lt_prog_compiler_pic=
  7859. ;;
  7860. *)
  7861. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7862. ;;
  7863. esac
  7864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7865. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7866. if ${lt_cv_prog_compiler_pic+:} false; then :
  7867. $as_echo_n "(cached) " >&6
  7868. else
  7869. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7870. fi
  7871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7872. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7873. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7874. #
  7875. # Check to make sure the PIC flag actually works.
  7876. #
  7877. if test -n "$lt_prog_compiler_pic"; then
  7878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7879. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7880. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7881. $as_echo_n "(cached) " >&6
  7882. else
  7883. lt_cv_prog_compiler_pic_works=no
  7884. ac_outfile=conftest.$ac_objext
  7885. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7886. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7887. # Insert the option either (1) after the last *FLAGS variable, or
  7888. # (2) before a word containing "conftest.", or (3) at the end.
  7889. # Note that $ac_compile itself does not contain backslashes and begins
  7890. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7891. # The option is referenced via a variable to avoid confusing sed.
  7892. lt_compile=`echo "$ac_compile" | $SED \
  7893. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7894. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7895. -e 's:$: $lt_compiler_flag:'`
  7896. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7897. (eval "$lt_compile" 2>conftest.err)
  7898. ac_status=$?
  7899. cat conftest.err >&5
  7900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7901. if (exit $ac_status) && test -s "$ac_outfile"; then
  7902. # The compiler can only warn and ignore the option if not recognized
  7903. # So say no if there are warnings other than the usual output.
  7904. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7905. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7906. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7907. lt_cv_prog_compiler_pic_works=yes
  7908. fi
  7909. fi
  7910. $RM conftest*
  7911. fi
  7912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7913. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7914. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7915. case $lt_prog_compiler_pic in
  7916. "" | " "*) ;;
  7917. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7918. esac
  7919. else
  7920. lt_prog_compiler_pic=
  7921. lt_prog_compiler_can_build_shared=no
  7922. fi
  7923. fi
  7924. #
  7925. # Check to make sure the static flag actually works.
  7926. #
  7927. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7929. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7930. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7931. $as_echo_n "(cached) " >&6
  7932. else
  7933. lt_cv_prog_compiler_static_works=no
  7934. save_LDFLAGS=$LDFLAGS
  7935. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7936. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7937. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7938. # The linker can only warn and ignore the option if not recognized
  7939. # So say no if there are warnings
  7940. if test -s conftest.err; then
  7941. # Append any errors to the config.log.
  7942. cat conftest.err 1>&5
  7943. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7944. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7945. if diff conftest.exp conftest.er2 >/dev/null; then
  7946. lt_cv_prog_compiler_static_works=yes
  7947. fi
  7948. else
  7949. lt_cv_prog_compiler_static_works=yes
  7950. fi
  7951. fi
  7952. $RM -r conftest*
  7953. LDFLAGS=$save_LDFLAGS
  7954. fi
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7956. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7957. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7958. :
  7959. else
  7960. lt_prog_compiler_static=
  7961. fi
  7962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7963. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7964. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7965. $as_echo_n "(cached) " >&6
  7966. else
  7967. lt_cv_prog_compiler_c_o=no
  7968. $RM -r conftest 2>/dev/null
  7969. mkdir conftest
  7970. cd conftest
  7971. mkdir out
  7972. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7973. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7974. # Insert the option either (1) after the last *FLAGS variable, or
  7975. # (2) before a word containing "conftest.", or (3) at the end.
  7976. # Note that $ac_compile itself does not contain backslashes and begins
  7977. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7978. lt_compile=`echo "$ac_compile" | $SED \
  7979. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7980. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7981. -e 's:$: $lt_compiler_flag:'`
  7982. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7983. (eval "$lt_compile" 2>out/conftest.err)
  7984. ac_status=$?
  7985. cat out/conftest.err >&5
  7986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7987. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7988. then
  7989. # The compiler can only warn and ignore the option if not recognized
  7990. # So say no if there are warnings
  7991. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7992. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7993. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7994. lt_cv_prog_compiler_c_o=yes
  7995. fi
  7996. fi
  7997. chmod u+w . 2>&5
  7998. $RM conftest*
  7999. # SGI C++ compiler will create directory out/ii_files/ for
  8000. # template instantiation
  8001. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8002. $RM out/* && rmdir out
  8003. cd ..
  8004. $RM -r conftest
  8005. $RM conftest*
  8006. fi
  8007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8008. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8010. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8011. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8012. $as_echo_n "(cached) " >&6
  8013. else
  8014. lt_cv_prog_compiler_c_o=no
  8015. $RM -r conftest 2>/dev/null
  8016. mkdir conftest
  8017. cd conftest
  8018. mkdir out
  8019. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8020. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8021. # Insert the option either (1) after the last *FLAGS variable, or
  8022. # (2) before a word containing "conftest.", or (3) at the end.
  8023. # Note that $ac_compile itself does not contain backslashes and begins
  8024. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8025. lt_compile=`echo "$ac_compile" | $SED \
  8026. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8027. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8028. -e 's:$: $lt_compiler_flag:'`
  8029. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8030. (eval "$lt_compile" 2>out/conftest.err)
  8031. ac_status=$?
  8032. cat out/conftest.err >&5
  8033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8034. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8035. then
  8036. # The compiler can only warn and ignore the option if not recognized
  8037. # So say no if there are warnings
  8038. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8039. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8040. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8041. lt_cv_prog_compiler_c_o=yes
  8042. fi
  8043. fi
  8044. chmod u+w . 2>&5
  8045. $RM conftest*
  8046. # SGI C++ compiler will create directory out/ii_files/ for
  8047. # template instantiation
  8048. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8049. $RM out/* && rmdir out
  8050. cd ..
  8051. $RM -r conftest
  8052. $RM conftest*
  8053. fi
  8054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8055. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8056. hard_links=nottested
  8057. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8058. # do not overwrite the value of need_locks provided by the user
  8059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8060. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8061. hard_links=yes
  8062. $RM conftest*
  8063. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8064. touch conftest.a
  8065. ln conftest.a conftest.b 2>&5 || hard_links=no
  8066. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8068. $as_echo "$hard_links" >&6; }
  8069. if test no = "$hard_links"; then
  8070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8071. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8072. need_locks=warn
  8073. fi
  8074. else
  8075. need_locks=no
  8076. fi
  8077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8078. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8079. runpath_var=
  8080. allow_undefined_flag=
  8081. always_export_symbols=no
  8082. archive_cmds=
  8083. archive_expsym_cmds=
  8084. compiler_needs_object=no
  8085. enable_shared_with_static_runtimes=no
  8086. export_dynamic_flag_spec=
  8087. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8088. hardcode_automatic=no
  8089. hardcode_direct=no
  8090. hardcode_direct_absolute=no
  8091. hardcode_libdir_flag_spec=
  8092. hardcode_libdir_separator=
  8093. hardcode_minus_L=no
  8094. hardcode_shlibpath_var=unsupported
  8095. inherit_rpath=no
  8096. link_all_deplibs=unknown
  8097. module_cmds=
  8098. module_expsym_cmds=
  8099. old_archive_from_new_cmds=
  8100. old_archive_from_expsyms_cmds=
  8101. thread_safe_flag_spec=
  8102. whole_archive_flag_spec=
  8103. # include_expsyms should be a list of space-separated symbols to be *always*
  8104. # included in the symbol list
  8105. include_expsyms=
  8106. # exclude_expsyms can be an extended regexp of symbols to exclude
  8107. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8108. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8109. # as well as any symbol that contains 'd'.
  8110. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8111. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8112. # platforms (ab)use it in PIC code, but their linkers get confused if
  8113. # the symbol is explicitly referenced. Since portable code cannot
  8114. # rely on this symbol name, it's probably fine to never include it in
  8115. # preloaded symbol tables.
  8116. # Exclude shared library initialization/finalization symbols.
  8117. extract_expsyms_cmds=
  8118. case $host_os in
  8119. cygwin* | mingw* | pw32* | cegcc*)
  8120. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8121. # When not using gcc, we currently assume that we are using
  8122. # Microsoft Visual C++.
  8123. if test yes != "$GCC"; then
  8124. with_gnu_ld=no
  8125. fi
  8126. ;;
  8127. interix*)
  8128. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8129. with_gnu_ld=yes
  8130. ;;
  8131. openbsd* | bitrig*)
  8132. with_gnu_ld=no
  8133. ;;
  8134. esac
  8135. ld_shlibs=yes
  8136. # On some targets, GNU ld is compatible enough with the native linker
  8137. # that we're better off using the native interface for both.
  8138. lt_use_gnu_ld_interface=no
  8139. if test yes = "$with_gnu_ld"; then
  8140. case $host_os in
  8141. aix*)
  8142. # The AIX port of GNU ld has always aspired to compatibility
  8143. # with the native linker. However, as the warning in the GNU ld
  8144. # block says, versions before 2.19.5* couldn't really create working
  8145. # shared libraries, regardless of the interface used.
  8146. case `$LD -v 2>&1` in
  8147. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8148. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8149. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8150. *)
  8151. lt_use_gnu_ld_interface=yes
  8152. ;;
  8153. esac
  8154. ;;
  8155. *)
  8156. lt_use_gnu_ld_interface=yes
  8157. ;;
  8158. esac
  8159. fi
  8160. if test yes = "$lt_use_gnu_ld_interface"; then
  8161. # If archive_cmds runs LD, not CC, wlarc should be empty
  8162. wlarc='$wl'
  8163. # Set some defaults for GNU ld with shared library support. These
  8164. # are reset later if shared libraries are not supported. Putting them
  8165. # here allows them to be overridden if necessary.
  8166. runpath_var=LD_RUN_PATH
  8167. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8168. export_dynamic_flag_spec='$wl--export-dynamic'
  8169. # ancient GNU ld didn't support --whole-archive et. al.
  8170. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8171. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8172. else
  8173. whole_archive_flag_spec=
  8174. fi
  8175. supports_anon_versioning=no
  8176. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8177. *GNU\ gold*) supports_anon_versioning=yes ;;
  8178. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8179. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8180. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8181. *\ 2.11.*) ;; # other 2.11 versions
  8182. *) supports_anon_versioning=yes ;;
  8183. esac
  8184. # See if GNU ld supports shared libraries.
  8185. case $host_os in
  8186. aix[3-9]*)
  8187. # On AIX/PPC, the GNU linker is very broken
  8188. if test ia64 != "$host_cpu"; then
  8189. ld_shlibs=no
  8190. cat <<_LT_EOF 1>&2
  8191. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8192. *** to be unable to reliably create shared libraries on AIX.
  8193. *** Therefore, libtool is disabling shared libraries support. If you
  8194. *** really care for shared libraries, you may want to install binutils
  8195. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8196. *** You will then need to restart the configuration process.
  8197. _LT_EOF
  8198. fi
  8199. ;;
  8200. amigaos*)
  8201. case $host_cpu in
  8202. powerpc)
  8203. # see comment about AmigaOS4 .so support
  8204. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8205. archive_expsym_cmds=''
  8206. ;;
  8207. m68k)
  8208. 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)'
  8209. hardcode_libdir_flag_spec='-L$libdir'
  8210. hardcode_minus_L=yes
  8211. ;;
  8212. esac
  8213. ;;
  8214. beos*)
  8215. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8216. allow_undefined_flag=unsupported
  8217. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8218. # support --undefined. This deserves some investigation. FIXME
  8219. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8220. else
  8221. ld_shlibs=no
  8222. fi
  8223. ;;
  8224. cygwin* | mingw* | pw32* | cegcc*)
  8225. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8226. # as there is no search path for DLLs.
  8227. hardcode_libdir_flag_spec='-L$libdir'
  8228. export_dynamic_flag_spec='$wl--export-all-symbols'
  8229. allow_undefined_flag=unsupported
  8230. always_export_symbols=no
  8231. enable_shared_with_static_runtimes=yes
  8232. 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'
  8233. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8234. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8235. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8236. # If the export-symbols file already is a .def file, use it as
  8237. # is; otherwise, prepend EXPORTS...
  8238. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8239. cp $export_symbols $output_objdir/$soname.def;
  8240. else
  8241. echo EXPORTS > $output_objdir/$soname.def;
  8242. cat $export_symbols >> $output_objdir/$soname.def;
  8243. fi~
  8244. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8245. else
  8246. ld_shlibs=no
  8247. fi
  8248. ;;
  8249. haiku*)
  8250. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8251. link_all_deplibs=yes
  8252. ;;
  8253. os2*)
  8254. hardcode_libdir_flag_spec='-L$libdir'
  8255. hardcode_minus_L=yes
  8256. allow_undefined_flag=unsupported
  8257. shrext_cmds=.dll
  8258. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8259. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8260. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8261. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8262. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8263. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8264. emximp -o $lib $output_objdir/$libname.def'
  8265. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8266. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8267. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8268. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8269. prefix_cmds="$SED"~
  8270. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8271. prefix_cmds="$prefix_cmds -e 1d";
  8272. fi~
  8273. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8274. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8275. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8276. emximp -o $lib $output_objdir/$libname.def'
  8277. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8278. enable_shared_with_static_runtimes=yes
  8279. ;;
  8280. interix[3-9]*)
  8281. hardcode_direct=no
  8282. hardcode_shlibpath_var=no
  8283. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8284. export_dynamic_flag_spec='$wl-E'
  8285. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8286. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8287. # default) and relocated if they conflict, which is a slow very memory
  8288. # consuming and fragmenting process. To avoid this, we pick a random,
  8289. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8290. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8291. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8292. 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'
  8293. ;;
  8294. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8295. tmp_diet=no
  8296. if test linux-dietlibc = "$host_os"; then
  8297. case $cc_basename in
  8298. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8299. esac
  8300. fi
  8301. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8302. && test no = "$tmp_diet"
  8303. then
  8304. tmp_addflag=' $pic_flag'
  8305. tmp_sharedflag='-shared'
  8306. case $cc_basename,$host_cpu in
  8307. pgcc*) # Portland Group C compiler
  8308. 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'
  8309. tmp_addflag=' $pic_flag'
  8310. ;;
  8311. pgf77* | pgf90* | pgf95* | pgfortran*)
  8312. # Portland Group f77 and f90 compilers
  8313. 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'
  8314. tmp_addflag=' $pic_flag -Mnomain' ;;
  8315. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8316. tmp_addflag=' -i_dynamic' ;;
  8317. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8318. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8319. ifc* | ifort*) # Intel Fortran compiler
  8320. tmp_addflag=' -nofor_main' ;;
  8321. lf95*) # Lahey Fortran 8.1
  8322. whole_archive_flag_spec=
  8323. tmp_sharedflag='--shared' ;;
  8324. nagfor*) # NAGFOR 5.3
  8325. tmp_sharedflag='-Wl,-shared' ;;
  8326. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8327. tmp_sharedflag='-qmkshrobj'
  8328. tmp_addflag= ;;
  8329. nvcc*) # Cuda Compiler Driver 2.2
  8330. 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'
  8331. compiler_needs_object=yes
  8332. ;;
  8333. esac
  8334. case `$CC -V 2>&1 | sed 5q` in
  8335. *Sun\ C*) # Sun C 5.9
  8336. 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'
  8337. compiler_needs_object=yes
  8338. tmp_sharedflag='-G' ;;
  8339. *Sun\ F*) # Sun Fortran 8.3
  8340. tmp_sharedflag='-G' ;;
  8341. esac
  8342. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8343. if test yes = "$supports_anon_versioning"; then
  8344. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8345. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8346. echo "local: *; };" >> $output_objdir/$libname.ver~
  8347. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8348. fi
  8349. case $cc_basename in
  8350. tcc*)
  8351. export_dynamic_flag_spec='-rdynamic'
  8352. ;;
  8353. xlf* | bgf* | bgxlf* | mpixlf*)
  8354. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8355. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8356. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8357. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8358. if test yes = "$supports_anon_versioning"; then
  8359. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8360. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8361. echo "local: *; };" >> $output_objdir/$libname.ver~
  8362. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8363. fi
  8364. ;;
  8365. esac
  8366. else
  8367. ld_shlibs=no
  8368. fi
  8369. ;;
  8370. netbsd*)
  8371. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8372. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8373. wlarc=
  8374. else
  8375. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8376. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8377. fi
  8378. ;;
  8379. solaris*)
  8380. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8381. ld_shlibs=no
  8382. cat <<_LT_EOF 1>&2
  8383. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8384. *** create shared libraries on Solaris systems. Therefore, libtool
  8385. *** is disabling shared libraries support. We urge you to upgrade GNU
  8386. *** binutils to release 2.9.1 or newer. Another option is to modify
  8387. *** your PATH or compiler configuration so that the native linker is
  8388. *** used, and then restart.
  8389. _LT_EOF
  8390. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8391. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8392. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8393. else
  8394. ld_shlibs=no
  8395. fi
  8396. ;;
  8397. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8398. case `$LD -v 2>&1` in
  8399. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8400. ld_shlibs=no
  8401. cat <<_LT_EOF 1>&2
  8402. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8403. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8404. *** is disabling shared libraries support. We urge you to upgrade GNU
  8405. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8406. *** your PATH or compiler configuration so that the native linker is
  8407. *** used, and then restart.
  8408. _LT_EOF
  8409. ;;
  8410. *)
  8411. # For security reasons, it is highly recommended that you always
  8412. # use absolute paths for naming shared libraries, and exclude the
  8413. # DT_RUNPATH tag from executables and libraries. But doing so
  8414. # requires that you compile everything twice, which is a pain.
  8415. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8416. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8417. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8418. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8419. else
  8420. ld_shlibs=no
  8421. fi
  8422. ;;
  8423. esac
  8424. ;;
  8425. sunos4*)
  8426. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8427. wlarc=
  8428. hardcode_direct=yes
  8429. hardcode_shlibpath_var=no
  8430. ;;
  8431. *)
  8432. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8433. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8434. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8435. else
  8436. ld_shlibs=no
  8437. fi
  8438. ;;
  8439. esac
  8440. if test no = "$ld_shlibs"; then
  8441. runpath_var=
  8442. hardcode_libdir_flag_spec=
  8443. export_dynamic_flag_spec=
  8444. whole_archive_flag_spec=
  8445. fi
  8446. else
  8447. # PORTME fill in a description of your system's linker (not GNU ld)
  8448. case $host_os in
  8449. aix3*)
  8450. allow_undefined_flag=unsupported
  8451. always_export_symbols=yes
  8452. 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'
  8453. # Note: this linker hardcodes the directories in LIBPATH if there
  8454. # are no directories specified by -L.
  8455. hardcode_minus_L=yes
  8456. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8457. # Neither direct hardcoding nor static linking is supported with a
  8458. # broken collect2.
  8459. hardcode_direct=unsupported
  8460. fi
  8461. ;;
  8462. aix[4-9]*)
  8463. if test ia64 = "$host_cpu"; then
  8464. # On IA64, the linker does run time linking by default, so we don't
  8465. # have to do anything special.
  8466. aix_use_runtimelinking=no
  8467. exp_sym_flag='-Bexport'
  8468. no_entry_flag=
  8469. else
  8470. # If we're using GNU nm, then we don't want the "-C" option.
  8471. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8472. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8473. # weak defined symbols like other global defined symbols, whereas
  8474. # GNU nm marks them as "W".
  8475. # While the 'weak' keyword is ignored in the Export File, we need
  8476. # it in the Import File for the 'aix-soname' feature, so we have
  8477. # to replace the "-B" option with "-P" for AIX nm.
  8478. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8479. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8480. else
  8481. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8482. fi
  8483. aix_use_runtimelinking=no
  8484. # Test if we are trying to use run time linking or normal
  8485. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8486. # have runtime linking enabled, and use it for executables.
  8487. # For shared libraries, we enable/disable runtime linking
  8488. # depending on the kind of the shared library created -
  8489. # when "with_aix_soname,aix_use_runtimelinking" is:
  8490. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8491. # "aix,yes" lib.so shared, rtl:yes, for executables
  8492. # lib.a static archive
  8493. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8494. # lib.a(lib.so.V) shared, rtl:no, for executables
  8495. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8496. # lib.a(lib.so.V) shared, rtl:no
  8497. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8498. # lib.a static archive
  8499. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8500. for ld_flag in $LDFLAGS; do
  8501. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8502. aix_use_runtimelinking=yes
  8503. break
  8504. fi
  8505. done
  8506. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8507. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8508. # so we don't have lib.a shared libs to link our executables.
  8509. # We have to force runtime linking in this case.
  8510. aix_use_runtimelinking=yes
  8511. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8512. fi
  8513. ;;
  8514. esac
  8515. exp_sym_flag='-bexport'
  8516. no_entry_flag='-bnoentry'
  8517. fi
  8518. # When large executables or shared objects are built, AIX ld can
  8519. # have problems creating the table of contents. If linking a library
  8520. # or program results in "error TOC overflow" add -mminimal-toc to
  8521. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8522. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8523. archive_cmds=''
  8524. hardcode_direct=yes
  8525. hardcode_direct_absolute=yes
  8526. hardcode_libdir_separator=':'
  8527. link_all_deplibs=yes
  8528. file_list_spec='$wl-f,'
  8529. case $with_aix_soname,$aix_use_runtimelinking in
  8530. aix,*) ;; # traditional, no import file
  8531. svr4,* | *,yes) # use import file
  8532. # The Import File defines what to hardcode.
  8533. hardcode_direct=no
  8534. hardcode_direct_absolute=no
  8535. ;;
  8536. esac
  8537. if test yes = "$GCC"; then
  8538. case $host_os in aix4.[012]|aix4.[012].*)
  8539. # We only want to do this on AIX 4.2 and lower, the check
  8540. # below for broken collect2 doesn't work under 4.3+
  8541. collect2name=`$CC -print-prog-name=collect2`
  8542. if test -f "$collect2name" &&
  8543. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8544. then
  8545. # We have reworked collect2
  8546. :
  8547. else
  8548. # We have old collect2
  8549. hardcode_direct=unsupported
  8550. # It fails to find uninstalled libraries when the uninstalled
  8551. # path is not listed in the libpath. Setting hardcode_minus_L
  8552. # to unsupported forces relinking
  8553. hardcode_minus_L=yes
  8554. hardcode_libdir_flag_spec='-L$libdir'
  8555. hardcode_libdir_separator=
  8556. fi
  8557. ;;
  8558. esac
  8559. shared_flag='-shared'
  8560. if test yes = "$aix_use_runtimelinking"; then
  8561. shared_flag="$shared_flag "'$wl-G'
  8562. fi
  8563. # Need to ensure runtime linking is disabled for the traditional
  8564. # shared library, or the linker may eventually find shared libraries
  8565. # /with/ Import File - we do not want to mix them.
  8566. shared_flag_aix='-shared'
  8567. shared_flag_svr4='-shared $wl-G'
  8568. else
  8569. # not using gcc
  8570. if test ia64 = "$host_cpu"; then
  8571. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8572. # chokes on -Wl,-G. The following line is correct:
  8573. shared_flag='-G'
  8574. else
  8575. if test yes = "$aix_use_runtimelinking"; then
  8576. shared_flag='$wl-G'
  8577. else
  8578. shared_flag='$wl-bM:SRE'
  8579. fi
  8580. shared_flag_aix='$wl-bM:SRE'
  8581. shared_flag_svr4='$wl-G'
  8582. fi
  8583. fi
  8584. export_dynamic_flag_spec='$wl-bexpall'
  8585. # It seems that -bexpall does not export symbols beginning with
  8586. # underscore (_), so it is better to generate a list of symbols to export.
  8587. always_export_symbols=yes
  8588. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8589. # Warning - without using the other runtime loading flags (-brtl),
  8590. # -berok will link without error, but may produce a broken library.
  8591. allow_undefined_flag='-berok'
  8592. # Determine the default libpath from the value encoded in an
  8593. # empty executable.
  8594. if test set = "${lt_cv_aix_libpath+set}"; then
  8595. aix_libpath=$lt_cv_aix_libpath
  8596. else
  8597. if ${lt_cv_aix_libpath_+:} false; then :
  8598. $as_echo_n "(cached) " >&6
  8599. else
  8600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8601. /* end confdefs.h. */
  8602. int
  8603. main ()
  8604. {
  8605. ;
  8606. return 0;
  8607. }
  8608. _ACEOF
  8609. if ac_fn_c_try_link "$LINENO"; then :
  8610. lt_aix_libpath_sed='
  8611. /Import File Strings/,/^$/ {
  8612. /^0/ {
  8613. s/^0 *\([^ ]*\) *$/\1/
  8614. p
  8615. }
  8616. }'
  8617. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8618. # Check for a 64-bit object if we didn't find anything.
  8619. if test -z "$lt_cv_aix_libpath_"; then
  8620. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8621. fi
  8622. fi
  8623. rm -f core conftest.err conftest.$ac_objext \
  8624. conftest$ac_exeext conftest.$ac_ext
  8625. if test -z "$lt_cv_aix_libpath_"; then
  8626. lt_cv_aix_libpath_=/usr/lib:/lib
  8627. fi
  8628. fi
  8629. aix_libpath=$lt_cv_aix_libpath_
  8630. fi
  8631. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8632. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8633. else
  8634. if test ia64 = "$host_cpu"; then
  8635. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8636. allow_undefined_flag="-z nodefs"
  8637. 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"
  8638. else
  8639. # Determine the default libpath from the value encoded in an
  8640. # empty executable.
  8641. if test set = "${lt_cv_aix_libpath+set}"; then
  8642. aix_libpath=$lt_cv_aix_libpath
  8643. else
  8644. if ${lt_cv_aix_libpath_+:} false; then :
  8645. $as_echo_n "(cached) " >&6
  8646. else
  8647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8648. /* end confdefs.h. */
  8649. int
  8650. main ()
  8651. {
  8652. ;
  8653. return 0;
  8654. }
  8655. _ACEOF
  8656. if ac_fn_c_try_link "$LINENO"; then :
  8657. lt_aix_libpath_sed='
  8658. /Import File Strings/,/^$/ {
  8659. /^0/ {
  8660. s/^0 *\([^ ]*\) *$/\1/
  8661. p
  8662. }
  8663. }'
  8664. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8665. # Check for a 64-bit object if we didn't find anything.
  8666. if test -z "$lt_cv_aix_libpath_"; then
  8667. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8668. fi
  8669. fi
  8670. rm -f core conftest.err conftest.$ac_objext \
  8671. conftest$ac_exeext conftest.$ac_ext
  8672. if test -z "$lt_cv_aix_libpath_"; then
  8673. lt_cv_aix_libpath_=/usr/lib:/lib
  8674. fi
  8675. fi
  8676. aix_libpath=$lt_cv_aix_libpath_
  8677. fi
  8678. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8679. # Warning - without using the other run time loading flags,
  8680. # -berok will link without error, but may produce a broken library.
  8681. no_undefined_flag=' $wl-bernotok'
  8682. allow_undefined_flag=' $wl-berok'
  8683. if test yes = "$with_gnu_ld"; then
  8684. # We only use this code for GNU lds that support --whole-archive.
  8685. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8686. else
  8687. # Exported symbols can be pulled into shared objects from archives
  8688. whole_archive_flag_spec='$convenience'
  8689. fi
  8690. archive_cmds_need_lc=yes
  8691. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8692. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8693. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8694. if test svr4 != "$with_aix_soname"; then
  8695. # This is similar to how AIX traditionally builds its shared libraries.
  8696. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8697. fi
  8698. if test aix != "$with_aix_soname"; then
  8699. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8700. else
  8701. # used by -dlpreopen to get the symbols
  8702. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8703. fi
  8704. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8705. fi
  8706. fi
  8707. ;;
  8708. amigaos*)
  8709. case $host_cpu in
  8710. powerpc)
  8711. # see comment about AmigaOS4 .so support
  8712. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8713. archive_expsym_cmds=''
  8714. ;;
  8715. m68k)
  8716. 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)'
  8717. hardcode_libdir_flag_spec='-L$libdir'
  8718. hardcode_minus_L=yes
  8719. ;;
  8720. esac
  8721. ;;
  8722. bsdi[45]*)
  8723. export_dynamic_flag_spec=-rdynamic
  8724. ;;
  8725. cygwin* | mingw* | pw32* | cegcc*)
  8726. # When not using gcc, we currently assume that we are using
  8727. # Microsoft Visual C++.
  8728. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8729. # no search path for DLLs.
  8730. case $cc_basename in
  8731. cl*)
  8732. # Native MSVC
  8733. hardcode_libdir_flag_spec=' '
  8734. allow_undefined_flag=unsupported
  8735. always_export_symbols=yes
  8736. file_list_spec='@'
  8737. # Tell ltmain to make .lib files, not .a files.
  8738. libext=lib
  8739. # Tell ltmain to make .dll files, not .so files.
  8740. shrext_cmds=.dll
  8741. # FIXME: Setting linknames here is a bad hack.
  8742. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8743. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8744. cp "$export_symbols" "$output_objdir/$soname.def";
  8745. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8746. else
  8747. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8748. fi~
  8749. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8750. linknames='
  8751. # The linker will not automatically build a static lib if we build a DLL.
  8752. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8753. enable_shared_with_static_runtimes=yes
  8754. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8755. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8756. # Don't use ranlib
  8757. old_postinstall_cmds='chmod 644 $oldlib'
  8758. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8759. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8760. case $lt_outputfile in
  8761. *.exe|*.EXE) ;;
  8762. *)
  8763. lt_outputfile=$lt_outputfile.exe
  8764. lt_tool_outputfile=$lt_tool_outputfile.exe
  8765. ;;
  8766. esac~
  8767. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8768. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8769. $RM "$lt_outputfile.manifest";
  8770. fi'
  8771. ;;
  8772. *)
  8773. # Assume MSVC wrapper
  8774. hardcode_libdir_flag_spec=' '
  8775. allow_undefined_flag=unsupported
  8776. # Tell ltmain to make .lib files, not .a files.
  8777. libext=lib
  8778. # Tell ltmain to make .dll files, not .so files.
  8779. shrext_cmds=.dll
  8780. # FIXME: Setting linknames here is a bad hack.
  8781. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8782. # The linker will automatically build a .lib file if we build a DLL.
  8783. old_archive_from_new_cmds='true'
  8784. # FIXME: Should let the user specify the lib program.
  8785. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8786. enable_shared_with_static_runtimes=yes
  8787. ;;
  8788. esac
  8789. ;;
  8790. darwin* | rhapsody*)
  8791. archive_cmds_need_lc=no
  8792. hardcode_direct=no
  8793. hardcode_automatic=yes
  8794. hardcode_shlibpath_var=unsupported
  8795. if test yes = "$lt_cv_ld_force_load"; then
  8796. 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\"`'
  8797. else
  8798. whole_archive_flag_spec=''
  8799. fi
  8800. link_all_deplibs=yes
  8801. allow_undefined_flag=$_lt_dar_allow_undefined
  8802. case $cc_basename in
  8803. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8804. *) _lt_dar_can_shared=$GCC ;;
  8805. esac
  8806. if test yes = "$_lt_dar_can_shared"; then
  8807. output_verbose_link_cmd=func_echo_all
  8808. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8809. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8810. 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"
  8811. 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"
  8812. else
  8813. ld_shlibs=no
  8814. fi
  8815. ;;
  8816. dgux*)
  8817. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8818. hardcode_libdir_flag_spec='-L$libdir'
  8819. hardcode_shlibpath_var=no
  8820. ;;
  8821. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8822. # support. Future versions do this automatically, but an explicit c++rt0.o
  8823. # does not break anything, and helps significantly (at the cost of a little
  8824. # extra space).
  8825. freebsd2.2*)
  8826. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8827. hardcode_libdir_flag_spec='-R$libdir'
  8828. hardcode_direct=yes
  8829. hardcode_shlibpath_var=no
  8830. ;;
  8831. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8832. freebsd2.*)
  8833. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8834. hardcode_direct=yes
  8835. hardcode_minus_L=yes
  8836. hardcode_shlibpath_var=no
  8837. ;;
  8838. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8839. freebsd* | dragonfly*)
  8840. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8841. hardcode_libdir_flag_spec='-R$libdir'
  8842. hardcode_direct=yes
  8843. hardcode_shlibpath_var=no
  8844. ;;
  8845. hpux9*)
  8846. if test yes = "$GCC"; then
  8847. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8848. else
  8849. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8850. fi
  8851. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8852. hardcode_libdir_separator=:
  8853. hardcode_direct=yes
  8854. # hardcode_minus_L: Not really in the search PATH,
  8855. # but as the default location of the library.
  8856. hardcode_minus_L=yes
  8857. export_dynamic_flag_spec='$wl-E'
  8858. ;;
  8859. hpux10*)
  8860. if test yes,no = "$GCC,$with_gnu_ld"; then
  8861. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8862. else
  8863. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8864. fi
  8865. if test no = "$with_gnu_ld"; then
  8866. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8867. hardcode_libdir_separator=:
  8868. hardcode_direct=yes
  8869. hardcode_direct_absolute=yes
  8870. export_dynamic_flag_spec='$wl-E'
  8871. # hardcode_minus_L: Not really in the search PATH,
  8872. # but as the default location of the library.
  8873. hardcode_minus_L=yes
  8874. fi
  8875. ;;
  8876. hpux11*)
  8877. if test yes,no = "$GCC,$with_gnu_ld"; then
  8878. case $host_cpu in
  8879. hppa*64*)
  8880. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8881. ;;
  8882. ia64*)
  8883. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8884. ;;
  8885. *)
  8886. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8887. ;;
  8888. esac
  8889. else
  8890. case $host_cpu in
  8891. hppa*64*)
  8892. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8893. ;;
  8894. ia64*)
  8895. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8896. ;;
  8897. *)
  8898. # Older versions of the 11.00 compiler do not understand -b yet
  8899. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8901. $as_echo_n "checking if $CC understands -b... " >&6; }
  8902. if ${lt_cv_prog_compiler__b+:} false; then :
  8903. $as_echo_n "(cached) " >&6
  8904. else
  8905. lt_cv_prog_compiler__b=no
  8906. save_LDFLAGS=$LDFLAGS
  8907. LDFLAGS="$LDFLAGS -b"
  8908. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8909. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8910. # The linker can only warn and ignore the option if not recognized
  8911. # So say no if there are warnings
  8912. if test -s conftest.err; then
  8913. # Append any errors to the config.log.
  8914. cat conftest.err 1>&5
  8915. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8916. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8917. if diff conftest.exp conftest.er2 >/dev/null; then
  8918. lt_cv_prog_compiler__b=yes
  8919. fi
  8920. else
  8921. lt_cv_prog_compiler__b=yes
  8922. fi
  8923. fi
  8924. $RM -r conftest*
  8925. LDFLAGS=$save_LDFLAGS
  8926. fi
  8927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8928. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8929. if test yes = "$lt_cv_prog_compiler__b"; then
  8930. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8931. else
  8932. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8933. fi
  8934. ;;
  8935. esac
  8936. fi
  8937. if test no = "$with_gnu_ld"; then
  8938. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8939. hardcode_libdir_separator=:
  8940. case $host_cpu in
  8941. hppa*64*|ia64*)
  8942. hardcode_direct=no
  8943. hardcode_shlibpath_var=no
  8944. ;;
  8945. *)
  8946. hardcode_direct=yes
  8947. hardcode_direct_absolute=yes
  8948. export_dynamic_flag_spec='$wl-E'
  8949. # hardcode_minus_L: Not really in the search PATH,
  8950. # but as the default location of the library.
  8951. hardcode_minus_L=yes
  8952. ;;
  8953. esac
  8954. fi
  8955. ;;
  8956. irix5* | irix6* | nonstopux*)
  8957. if test yes = "$GCC"; then
  8958. 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'
  8959. # Try to use the -exported_symbol ld option, if it does not
  8960. # work, assume that -exports_file does not work either and
  8961. # implicitly export all symbols.
  8962. # This should be the same for all languages, so no per-tag cache variable.
  8963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8964. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8965. if ${lt_cv_irix_exported_symbol+:} false; then :
  8966. $as_echo_n "(cached) " >&6
  8967. else
  8968. save_LDFLAGS=$LDFLAGS
  8969. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8971. /* end confdefs.h. */
  8972. int foo (void) { return 0; }
  8973. _ACEOF
  8974. if ac_fn_c_try_link "$LINENO"; then :
  8975. lt_cv_irix_exported_symbol=yes
  8976. else
  8977. lt_cv_irix_exported_symbol=no
  8978. fi
  8979. rm -f core conftest.err conftest.$ac_objext \
  8980. conftest$ac_exeext conftest.$ac_ext
  8981. LDFLAGS=$save_LDFLAGS
  8982. fi
  8983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8984. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8985. if test yes = "$lt_cv_irix_exported_symbol"; then
  8986. 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'
  8987. fi
  8988. else
  8989. 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'
  8990. 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'
  8991. fi
  8992. archive_cmds_need_lc='no'
  8993. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8994. hardcode_libdir_separator=:
  8995. inherit_rpath=yes
  8996. link_all_deplibs=yes
  8997. ;;
  8998. linux*)
  8999. case $cc_basename in
  9000. tcc*)
  9001. # Fabrice Bellard et al's Tiny C Compiler
  9002. ld_shlibs=yes
  9003. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9004. ;;
  9005. esac
  9006. ;;
  9007. netbsd*)
  9008. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9009. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9010. else
  9011. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9012. fi
  9013. hardcode_libdir_flag_spec='-R$libdir'
  9014. hardcode_direct=yes
  9015. hardcode_shlibpath_var=no
  9016. ;;
  9017. newsos6)
  9018. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9019. hardcode_direct=yes
  9020. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9021. hardcode_libdir_separator=:
  9022. hardcode_shlibpath_var=no
  9023. ;;
  9024. *nto* | *qnx*)
  9025. ;;
  9026. openbsd* | bitrig*)
  9027. if test -f /usr/libexec/ld.so; then
  9028. hardcode_direct=yes
  9029. hardcode_shlibpath_var=no
  9030. hardcode_direct_absolute=yes
  9031. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9032. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9033. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9034. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9035. export_dynamic_flag_spec='$wl-E'
  9036. else
  9037. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9038. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9039. fi
  9040. else
  9041. ld_shlibs=no
  9042. fi
  9043. ;;
  9044. os2*)
  9045. hardcode_libdir_flag_spec='-L$libdir'
  9046. hardcode_minus_L=yes
  9047. allow_undefined_flag=unsupported
  9048. shrext_cmds=.dll
  9049. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9050. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9051. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9052. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9053. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9054. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9055. emximp -o $lib $output_objdir/$libname.def'
  9056. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9057. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9058. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9059. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9060. prefix_cmds="$SED"~
  9061. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9062. prefix_cmds="$prefix_cmds -e 1d";
  9063. fi~
  9064. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9065. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9066. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9067. emximp -o $lib $output_objdir/$libname.def'
  9068. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9069. enable_shared_with_static_runtimes=yes
  9070. ;;
  9071. osf3*)
  9072. if test yes = "$GCC"; then
  9073. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9074. 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'
  9075. else
  9076. allow_undefined_flag=' -expect_unresolved \*'
  9077. 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'
  9078. fi
  9079. archive_cmds_need_lc='no'
  9080. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9081. hardcode_libdir_separator=:
  9082. ;;
  9083. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9084. if test yes = "$GCC"; then
  9085. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9086. 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'
  9087. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9088. else
  9089. allow_undefined_flag=' -expect_unresolved \*'
  9090. 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'
  9091. 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~
  9092. $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'
  9093. # Both c and cxx compiler support -rpath directly
  9094. hardcode_libdir_flag_spec='-rpath $libdir'
  9095. fi
  9096. archive_cmds_need_lc='no'
  9097. hardcode_libdir_separator=:
  9098. ;;
  9099. solaris*)
  9100. no_undefined_flag=' -z defs'
  9101. if test yes = "$GCC"; then
  9102. wlarc='$wl'
  9103. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9104. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9105. $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'
  9106. else
  9107. case `$CC -V 2>&1` in
  9108. *"Compilers 5.0"*)
  9109. wlarc=''
  9110. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9111. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9112. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9113. ;;
  9114. *)
  9115. wlarc='$wl'
  9116. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9117. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9118. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9119. ;;
  9120. esac
  9121. fi
  9122. hardcode_libdir_flag_spec='-R$libdir'
  9123. hardcode_shlibpath_var=no
  9124. case $host_os in
  9125. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9126. *)
  9127. # The compiler driver will combine and reorder linker options,
  9128. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9129. # but is careful enough not to reorder.
  9130. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9131. if test yes = "$GCC"; then
  9132. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9133. else
  9134. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9135. fi
  9136. ;;
  9137. esac
  9138. link_all_deplibs=yes
  9139. ;;
  9140. sunos4*)
  9141. if test sequent = "$host_vendor"; then
  9142. # Use $CC to link under sequent, because it throws in some extra .o
  9143. # files that make .init and .fini sections work.
  9144. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9145. else
  9146. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9147. fi
  9148. hardcode_libdir_flag_spec='-L$libdir'
  9149. hardcode_direct=yes
  9150. hardcode_minus_L=yes
  9151. hardcode_shlibpath_var=no
  9152. ;;
  9153. sysv4)
  9154. case $host_vendor in
  9155. sni)
  9156. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9157. hardcode_direct=yes # is this really true???
  9158. ;;
  9159. siemens)
  9160. ## LD is ld it makes a PLAMLIB
  9161. ## CC just makes a GrossModule.
  9162. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9163. reload_cmds='$CC -r -o $output$reload_objs'
  9164. hardcode_direct=no
  9165. ;;
  9166. motorola)
  9167. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9168. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9169. ;;
  9170. esac
  9171. runpath_var='LD_RUN_PATH'
  9172. hardcode_shlibpath_var=no
  9173. ;;
  9174. sysv4.3*)
  9175. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9176. hardcode_shlibpath_var=no
  9177. export_dynamic_flag_spec='-Bexport'
  9178. ;;
  9179. sysv4*MP*)
  9180. if test -d /usr/nec; then
  9181. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9182. hardcode_shlibpath_var=no
  9183. runpath_var=LD_RUN_PATH
  9184. hardcode_runpath_var=yes
  9185. ld_shlibs=yes
  9186. fi
  9187. ;;
  9188. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9189. no_undefined_flag='$wl-z,text'
  9190. archive_cmds_need_lc=no
  9191. hardcode_shlibpath_var=no
  9192. runpath_var='LD_RUN_PATH'
  9193. if test yes = "$GCC"; then
  9194. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9195. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9196. else
  9197. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9198. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9199. fi
  9200. ;;
  9201. sysv5* | sco3.2v5* | sco5v6*)
  9202. # Note: We CANNOT use -z defs as we might desire, because we do not
  9203. # link with -lc, and that would cause any symbols used from libc to
  9204. # always be unresolved, which means just about no library would
  9205. # ever link correctly. If we're not using GNU ld we use -z text
  9206. # though, which does catch some bad symbols but isn't as heavy-handed
  9207. # as -z defs.
  9208. no_undefined_flag='$wl-z,text'
  9209. allow_undefined_flag='$wl-z,nodefs'
  9210. archive_cmds_need_lc=no
  9211. hardcode_shlibpath_var=no
  9212. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9213. hardcode_libdir_separator=':'
  9214. link_all_deplibs=yes
  9215. export_dynamic_flag_spec='$wl-Bexport'
  9216. runpath_var='LD_RUN_PATH'
  9217. if test yes = "$GCC"; then
  9218. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9219. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9220. else
  9221. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9222. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9223. fi
  9224. ;;
  9225. uts4*)
  9226. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9227. hardcode_libdir_flag_spec='-L$libdir'
  9228. hardcode_shlibpath_var=no
  9229. ;;
  9230. *)
  9231. ld_shlibs=no
  9232. ;;
  9233. esac
  9234. if test sni = "$host_vendor"; then
  9235. case $host in
  9236. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9237. export_dynamic_flag_spec='$wl-Blargedynsym'
  9238. ;;
  9239. esac
  9240. fi
  9241. fi
  9242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9243. $as_echo "$ld_shlibs" >&6; }
  9244. test no = "$ld_shlibs" && can_build_shared=no
  9245. with_gnu_ld=$with_gnu_ld
  9246. #
  9247. # Do we need to explicitly link libc?
  9248. #
  9249. case "x$archive_cmds_need_lc" in
  9250. x|xyes)
  9251. # Assume -lc should be added
  9252. archive_cmds_need_lc=yes
  9253. if test yes,yes = "$GCC,$enable_shared"; then
  9254. case $archive_cmds in
  9255. *'~'*)
  9256. # FIXME: we may have to deal with multi-command sequences.
  9257. ;;
  9258. '$CC '*)
  9259. # Test whether the compiler implicitly links with -lc since on some
  9260. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9261. # to ld, don't add -lc before -lgcc.
  9262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9263. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9264. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9265. $as_echo_n "(cached) " >&6
  9266. else
  9267. $RM conftest*
  9268. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9269. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9270. (eval $ac_compile) 2>&5
  9271. ac_status=$?
  9272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9273. test $ac_status = 0; } 2>conftest.err; then
  9274. soname=conftest
  9275. lib=conftest
  9276. libobjs=conftest.$ac_objext
  9277. deplibs=
  9278. wl=$lt_prog_compiler_wl
  9279. pic_flag=$lt_prog_compiler_pic
  9280. compiler_flags=-v
  9281. linker_flags=-v
  9282. verstring=
  9283. output_objdir=.
  9284. libname=conftest
  9285. lt_save_allow_undefined_flag=$allow_undefined_flag
  9286. allow_undefined_flag=
  9287. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9288. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9289. ac_status=$?
  9290. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9291. test $ac_status = 0; }
  9292. then
  9293. lt_cv_archive_cmds_need_lc=no
  9294. else
  9295. lt_cv_archive_cmds_need_lc=yes
  9296. fi
  9297. allow_undefined_flag=$lt_save_allow_undefined_flag
  9298. else
  9299. cat conftest.err 1>&5
  9300. fi
  9301. $RM conftest*
  9302. fi
  9303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9304. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9305. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9306. ;;
  9307. esac
  9308. fi
  9309. ;;
  9310. esac
  9311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9312. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9313. if test yes = "$GCC"; then
  9314. case $host_os in
  9315. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9316. *) lt_awk_arg='/^libraries:/' ;;
  9317. esac
  9318. case $host_os in
  9319. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9320. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9321. esac
  9322. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9323. case $lt_search_path_spec in
  9324. *\;*)
  9325. # if the path contains ";" then we assume it to be the separator
  9326. # otherwise default to the standard path separator (i.e. ":") - it is
  9327. # assumed that no part of a normal pathname contains ";" but that should
  9328. # okay in the real world where ";" in dirpaths is itself problematic.
  9329. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9330. ;;
  9331. *)
  9332. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9333. ;;
  9334. esac
  9335. # Ok, now we have the path, separated by spaces, we can step through it
  9336. # and add multilib dir if necessary...
  9337. lt_tmp_lt_search_path_spec=
  9338. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9339. # ...but if some path component already ends with the multilib dir we assume
  9340. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9341. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9342. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9343. lt_multi_os_dir=
  9344. ;;
  9345. esac
  9346. for lt_sys_path in $lt_search_path_spec; do
  9347. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9348. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9349. elif test -n "$lt_multi_os_dir"; then
  9350. test -d "$lt_sys_path" && \
  9351. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9352. fi
  9353. done
  9354. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9355. BEGIN {RS = " "; FS = "/|\n";} {
  9356. lt_foo = "";
  9357. lt_count = 0;
  9358. for (lt_i = NF; lt_i > 0; lt_i--) {
  9359. if ($lt_i != "" && $lt_i != ".") {
  9360. if ($lt_i == "..") {
  9361. lt_count++;
  9362. } else {
  9363. if (lt_count == 0) {
  9364. lt_foo = "/" $lt_i lt_foo;
  9365. } else {
  9366. lt_count--;
  9367. }
  9368. }
  9369. }
  9370. }
  9371. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9372. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9373. }'`
  9374. # AWK program above erroneously prepends '/' to C:/dos/paths
  9375. # for these hosts.
  9376. case $host_os in
  9377. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9378. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9379. esac
  9380. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9381. else
  9382. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9383. fi
  9384. library_names_spec=
  9385. libname_spec='lib$name'
  9386. soname_spec=
  9387. shrext_cmds=.so
  9388. postinstall_cmds=
  9389. postuninstall_cmds=
  9390. finish_cmds=
  9391. finish_eval=
  9392. shlibpath_var=
  9393. shlibpath_overrides_runpath=unknown
  9394. version_type=none
  9395. dynamic_linker="$host_os ld.so"
  9396. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9397. need_lib_prefix=unknown
  9398. hardcode_into_libs=no
  9399. # when you set need_version to no, make sure it does not cause -set_version
  9400. # flags to be left without arguments
  9401. need_version=unknown
  9402. case $host_os in
  9403. aix3*)
  9404. version_type=linux # correct to gnu/linux during the next big refactor
  9405. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9406. shlibpath_var=LIBPATH
  9407. # AIX 3 has no versioning support, so we append a major version to the name.
  9408. soname_spec='$libname$release$shared_ext$major'
  9409. ;;
  9410. aix[4-9]*)
  9411. version_type=linux # correct to gnu/linux during the next big refactor
  9412. need_lib_prefix=no
  9413. need_version=no
  9414. hardcode_into_libs=yes
  9415. if test ia64 = "$host_cpu"; then
  9416. # AIX 5 supports IA64
  9417. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9418. shlibpath_var=LD_LIBRARY_PATH
  9419. else
  9420. # With GCC up to 2.95.x, collect2 would create an import file
  9421. # for dependence libraries. The import file would start with
  9422. # the line '#! .'. This would cause the generated library to
  9423. # depend on '.', always an invalid library. This was fixed in
  9424. # development snapshots of GCC prior to 3.0.
  9425. case $host_os in
  9426. aix4 | aix4.[01] | aix4.[01].*)
  9427. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9428. echo ' yes '
  9429. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9430. :
  9431. else
  9432. can_build_shared=no
  9433. fi
  9434. ;;
  9435. esac
  9436. # Using Import Files as archive members, it is possible to support
  9437. # filename-based versioning of shared library archives on AIX. While
  9438. # this would work for both with and without runtime linking, it will
  9439. # prevent static linking of such archives. So we do filename-based
  9440. # shared library versioning with .so extension only, which is used
  9441. # when both runtime linking and shared linking is enabled.
  9442. # Unfortunately, runtime linking may impact performance, so we do
  9443. # not want this to be the default eventually. Also, we use the
  9444. # versioned .so libs for executables only if there is the -brtl
  9445. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9446. # To allow for filename-based versioning support, we need to create
  9447. # libNAME.so.V as an archive file, containing:
  9448. # *) an Import File, referring to the versioned filename of the
  9449. # archive as well as the shared archive member, telling the
  9450. # bitwidth (32 or 64) of that shared object, and providing the
  9451. # list of exported symbols of that shared object, eventually
  9452. # decorated with the 'weak' keyword
  9453. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9454. # it being seen by the linker.
  9455. # At run time we better use the real file rather than another symlink,
  9456. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9457. case $with_aix_soname,$aix_use_runtimelinking in
  9458. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9459. # soname into executable. Probably we can add versioning support to
  9460. # collect2, so additional links can be useful in future.
  9461. aix,yes) # traditional libtool
  9462. dynamic_linker='AIX unversionable lib.so'
  9463. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9464. # instead of lib<name>.a to let people know that these are not
  9465. # typical AIX shared libraries.
  9466. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9467. ;;
  9468. aix,no) # traditional AIX only
  9469. dynamic_linker='AIX lib.a(lib.so.V)'
  9470. # We preserve .a as extension for shared libraries through AIX4.2
  9471. # and later when we are not doing run time linking.
  9472. library_names_spec='$libname$release.a $libname.a'
  9473. soname_spec='$libname$release$shared_ext$major'
  9474. ;;
  9475. svr4,*) # full svr4 only
  9476. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9477. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9478. # We do not specify a path in Import Files, so LIBPATH fires.
  9479. shlibpath_overrides_runpath=yes
  9480. ;;
  9481. *,yes) # both, prefer svr4
  9482. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9483. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9484. # unpreferred sharedlib libNAME.a needs extra handling
  9485. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9486. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9487. # We do not specify a path in Import Files, so LIBPATH fires.
  9488. shlibpath_overrides_runpath=yes
  9489. ;;
  9490. *,no) # both, prefer aix
  9491. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9492. library_names_spec='$libname$release.a $libname.a'
  9493. soname_spec='$libname$release$shared_ext$major'
  9494. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9495. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9496. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9497. ;;
  9498. esac
  9499. shlibpath_var=LIBPATH
  9500. fi
  9501. ;;
  9502. amigaos*)
  9503. case $host_cpu in
  9504. powerpc)
  9505. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9506. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9507. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9508. ;;
  9509. m68k)
  9510. library_names_spec='$libname.ixlibrary $libname.a'
  9511. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9512. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9513. ;;
  9514. esac
  9515. ;;
  9516. beos*)
  9517. library_names_spec='$libname$shared_ext'
  9518. dynamic_linker="$host_os ld.so"
  9519. shlibpath_var=LIBRARY_PATH
  9520. ;;
  9521. bsdi[45]*)
  9522. version_type=linux # correct to gnu/linux during the next big refactor
  9523. need_version=no
  9524. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9525. soname_spec='$libname$release$shared_ext$major'
  9526. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9527. shlibpath_var=LD_LIBRARY_PATH
  9528. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9529. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9530. # the default ld.so.conf also contains /usr/contrib/lib and
  9531. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9532. # libtool to hard-code these into programs
  9533. ;;
  9534. cygwin* | mingw* | pw32* | cegcc*)
  9535. version_type=windows
  9536. shrext_cmds=.dll
  9537. need_version=no
  9538. need_lib_prefix=no
  9539. case $GCC,$cc_basename in
  9540. yes,*)
  9541. # gcc
  9542. library_names_spec='$libname.dll.a'
  9543. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9544. postinstall_cmds='base_file=`basename \$file`~
  9545. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9546. dldir=$destdir/`dirname \$dlpath`~
  9547. test -d \$dldir || mkdir -p \$dldir~
  9548. $install_prog $dir/$dlname \$dldir/$dlname~
  9549. chmod a+x \$dldir/$dlname~
  9550. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9551. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9552. fi'
  9553. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9554. dlpath=$dir/\$dldll~
  9555. $RM \$dlpath'
  9556. shlibpath_overrides_runpath=yes
  9557. case $host_os in
  9558. cygwin*)
  9559. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9560. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9561. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9562. ;;
  9563. mingw* | cegcc*)
  9564. # MinGW DLLs use traditional 'lib' prefix
  9565. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9566. ;;
  9567. pw32*)
  9568. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9569. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9570. ;;
  9571. esac
  9572. dynamic_linker='Win32 ld.exe'
  9573. ;;
  9574. *,cl*)
  9575. # Native MSVC
  9576. libname_spec='$name'
  9577. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9578. library_names_spec='$libname.dll.lib'
  9579. case $build_os in
  9580. mingw*)
  9581. sys_lib_search_path_spec=
  9582. lt_save_ifs=$IFS
  9583. IFS=';'
  9584. for lt_path in $LIB
  9585. do
  9586. IFS=$lt_save_ifs
  9587. # Let DOS variable expansion print the short 8.3 style file name.
  9588. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9589. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9590. done
  9591. IFS=$lt_save_ifs
  9592. # Convert to MSYS style.
  9593. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9594. ;;
  9595. cygwin*)
  9596. # Convert to unix form, then to dos form, then back to unix form
  9597. # but this time dos style (no spaces!) so that the unix form looks
  9598. # like /cygdrive/c/PROGRA~1:/cygdr...
  9599. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9600. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9601. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9602. ;;
  9603. *)
  9604. sys_lib_search_path_spec=$LIB
  9605. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9606. # It is most probably a Windows format PATH.
  9607. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9608. else
  9609. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9610. fi
  9611. # FIXME: find the short name or the path components, as spaces are
  9612. # common. (e.g. "Program Files" -> "PROGRA~1")
  9613. ;;
  9614. esac
  9615. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9616. postinstall_cmds='base_file=`basename \$file`~
  9617. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9618. dldir=$destdir/`dirname \$dlpath`~
  9619. test -d \$dldir || mkdir -p \$dldir~
  9620. $install_prog $dir/$dlname \$dldir/$dlname'
  9621. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9622. dlpath=$dir/\$dldll~
  9623. $RM \$dlpath'
  9624. shlibpath_overrides_runpath=yes
  9625. dynamic_linker='Win32 link.exe'
  9626. ;;
  9627. *)
  9628. # Assume MSVC wrapper
  9629. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9630. dynamic_linker='Win32 ld.exe'
  9631. ;;
  9632. esac
  9633. # FIXME: first we should search . and the directory the executable is in
  9634. shlibpath_var=PATH
  9635. ;;
  9636. darwin* | rhapsody*)
  9637. dynamic_linker="$host_os dyld"
  9638. version_type=darwin
  9639. need_lib_prefix=no
  9640. need_version=no
  9641. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9642. soname_spec='$libname$release$major$shared_ext'
  9643. shlibpath_overrides_runpath=yes
  9644. shlibpath_var=DYLD_LIBRARY_PATH
  9645. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9646. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9647. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9648. ;;
  9649. dgux*)
  9650. version_type=linux # correct to gnu/linux during the next big refactor
  9651. need_lib_prefix=no
  9652. need_version=no
  9653. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9654. soname_spec='$libname$release$shared_ext$major'
  9655. shlibpath_var=LD_LIBRARY_PATH
  9656. ;;
  9657. freebsd* | dragonfly*)
  9658. # DragonFly does not have aout. When/if they implement a new
  9659. # versioning mechanism, adjust this.
  9660. if test -x /usr/bin/objformat; then
  9661. objformat=`/usr/bin/objformat`
  9662. else
  9663. case $host_os in
  9664. freebsd[23].*) objformat=aout ;;
  9665. *) objformat=elf ;;
  9666. esac
  9667. fi
  9668. version_type=freebsd-$objformat
  9669. case $version_type in
  9670. freebsd-elf*)
  9671. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9672. soname_spec='$libname$release$shared_ext$major'
  9673. need_version=no
  9674. need_lib_prefix=no
  9675. ;;
  9676. freebsd-*)
  9677. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9678. need_version=yes
  9679. ;;
  9680. esac
  9681. shlibpath_var=LD_LIBRARY_PATH
  9682. case $host_os in
  9683. freebsd2.*)
  9684. shlibpath_overrides_runpath=yes
  9685. ;;
  9686. freebsd3.[01]* | freebsdelf3.[01]*)
  9687. shlibpath_overrides_runpath=yes
  9688. hardcode_into_libs=yes
  9689. ;;
  9690. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9691. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9692. shlibpath_overrides_runpath=no
  9693. hardcode_into_libs=yes
  9694. ;;
  9695. *) # from 4.6 on, and DragonFly
  9696. shlibpath_overrides_runpath=yes
  9697. hardcode_into_libs=yes
  9698. ;;
  9699. esac
  9700. ;;
  9701. haiku*)
  9702. version_type=linux # correct to gnu/linux during the next big refactor
  9703. need_lib_prefix=no
  9704. need_version=no
  9705. dynamic_linker="$host_os runtime_loader"
  9706. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9707. soname_spec='$libname$release$shared_ext$major'
  9708. shlibpath_var=LIBRARY_PATH
  9709. shlibpath_overrides_runpath=no
  9710. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9711. hardcode_into_libs=yes
  9712. ;;
  9713. hpux9* | hpux10* | hpux11*)
  9714. # Give a soname corresponding to the major version so that dld.sl refuses to
  9715. # link against other versions.
  9716. version_type=sunos
  9717. need_lib_prefix=no
  9718. need_version=no
  9719. case $host_cpu in
  9720. ia64*)
  9721. shrext_cmds='.so'
  9722. hardcode_into_libs=yes
  9723. dynamic_linker="$host_os dld.so"
  9724. shlibpath_var=LD_LIBRARY_PATH
  9725. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9726. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9727. soname_spec='$libname$release$shared_ext$major'
  9728. if test 32 = "$HPUX_IA64_MODE"; then
  9729. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9730. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9731. else
  9732. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9733. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9734. fi
  9735. ;;
  9736. hppa*64*)
  9737. shrext_cmds='.sl'
  9738. hardcode_into_libs=yes
  9739. dynamic_linker="$host_os dld.sl"
  9740. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9741. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9742. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9743. soname_spec='$libname$release$shared_ext$major'
  9744. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9745. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9746. ;;
  9747. *)
  9748. shrext_cmds='.sl'
  9749. dynamic_linker="$host_os dld.sl"
  9750. shlibpath_var=SHLIB_PATH
  9751. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9752. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9753. soname_spec='$libname$release$shared_ext$major'
  9754. ;;
  9755. esac
  9756. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9757. postinstall_cmds='chmod 555 $lib'
  9758. # or fails outright, so override atomically:
  9759. install_override_mode=555
  9760. ;;
  9761. interix[3-9]*)
  9762. version_type=linux # correct to gnu/linux during the next big refactor
  9763. need_lib_prefix=no
  9764. need_version=no
  9765. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9766. soname_spec='$libname$release$shared_ext$major'
  9767. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9768. shlibpath_var=LD_LIBRARY_PATH
  9769. shlibpath_overrides_runpath=no
  9770. hardcode_into_libs=yes
  9771. ;;
  9772. irix5* | irix6* | nonstopux*)
  9773. case $host_os in
  9774. nonstopux*) version_type=nonstopux ;;
  9775. *)
  9776. if test yes = "$lt_cv_prog_gnu_ld"; then
  9777. version_type=linux # correct to gnu/linux during the next big refactor
  9778. else
  9779. version_type=irix
  9780. fi ;;
  9781. esac
  9782. need_lib_prefix=no
  9783. need_version=no
  9784. soname_spec='$libname$release$shared_ext$major'
  9785. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9786. case $host_os in
  9787. irix5* | nonstopux*)
  9788. libsuff= shlibsuff=
  9789. ;;
  9790. *)
  9791. case $LD in # libtool.m4 will add one of these switches to LD
  9792. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9793. libsuff= shlibsuff= libmagic=32-bit;;
  9794. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9795. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9796. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9797. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9798. *) libsuff= shlibsuff= libmagic=never-match;;
  9799. esac
  9800. ;;
  9801. esac
  9802. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9803. shlibpath_overrides_runpath=no
  9804. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9805. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9806. hardcode_into_libs=yes
  9807. ;;
  9808. # No shared lib support for Linux oldld, aout, or coff.
  9809. linux*oldld* | linux*aout* | linux*coff*)
  9810. dynamic_linker=no
  9811. ;;
  9812. linux*android*)
  9813. version_type=none # Android doesn't support versioned libraries.
  9814. need_lib_prefix=no
  9815. need_version=no
  9816. library_names_spec='$libname$release$shared_ext'
  9817. soname_spec='$libname$release$shared_ext'
  9818. finish_cmds=
  9819. shlibpath_var=LD_LIBRARY_PATH
  9820. shlibpath_overrides_runpath=yes
  9821. # This implies no fast_install, which is unacceptable.
  9822. # Some rework will be needed to allow for fast_install
  9823. # before this can be enabled.
  9824. hardcode_into_libs=yes
  9825. dynamic_linker='Android linker'
  9826. # Don't embed -rpath directories since the linker doesn't support them.
  9827. hardcode_libdir_flag_spec='-L$libdir'
  9828. ;;
  9829. # This must be glibc/ELF.
  9830. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9831. version_type=linux # correct to gnu/linux during the next big refactor
  9832. need_lib_prefix=no
  9833. need_version=no
  9834. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9835. soname_spec='$libname$release$shared_ext$major'
  9836. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9837. shlibpath_var=LD_LIBRARY_PATH
  9838. shlibpath_overrides_runpath=no
  9839. # Some binutils ld are patched to set DT_RUNPATH
  9840. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9841. $as_echo_n "(cached) " >&6
  9842. else
  9843. lt_cv_shlibpath_overrides_runpath=no
  9844. save_LDFLAGS=$LDFLAGS
  9845. save_libdir=$libdir
  9846. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9847. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9849. /* end confdefs.h. */
  9850. int
  9851. main ()
  9852. {
  9853. ;
  9854. return 0;
  9855. }
  9856. _ACEOF
  9857. if ac_fn_c_try_link "$LINENO"; then :
  9858. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9859. lt_cv_shlibpath_overrides_runpath=yes
  9860. fi
  9861. fi
  9862. rm -f core conftest.err conftest.$ac_objext \
  9863. conftest$ac_exeext conftest.$ac_ext
  9864. LDFLAGS=$save_LDFLAGS
  9865. libdir=$save_libdir
  9866. fi
  9867. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9868. # This implies no fast_install, which is unacceptable.
  9869. # Some rework will be needed to allow for fast_install
  9870. # before this can be enabled.
  9871. hardcode_into_libs=yes
  9872. # Ideally, we could use ldconfig to report *all* directores which are
  9873. # searched for libraries, however this is still not possible. Aside from not
  9874. # being certain /sbin/ldconfig is available, command
  9875. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9876. # even though it is searched at run-time. Try to do the best guess by
  9877. # appending ld.so.conf contents (and includes) to the search path.
  9878. if test -f /etc/ld.so.conf; then
  9879. 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' ' '`
  9880. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9881. fi
  9882. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9883. # powerpc, because MkLinux only supported shared libraries with the
  9884. # GNU dynamic linker. Since this was broken with cross compilers,
  9885. # most powerpc-linux boxes support dynamic linking these days and
  9886. # people can always --disable-shared, the test was removed, and we
  9887. # assume the GNU/Linux dynamic linker is in use.
  9888. dynamic_linker='GNU/Linux ld.so'
  9889. ;;
  9890. netbsd*)
  9891. version_type=sunos
  9892. need_lib_prefix=no
  9893. need_version=no
  9894. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9895. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9896. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9897. dynamic_linker='NetBSD (a.out) ld.so'
  9898. else
  9899. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9900. soname_spec='$libname$release$shared_ext$major'
  9901. dynamic_linker='NetBSD ld.elf_so'
  9902. fi
  9903. shlibpath_var=LD_LIBRARY_PATH
  9904. shlibpath_overrides_runpath=yes
  9905. hardcode_into_libs=yes
  9906. ;;
  9907. newsos6)
  9908. version_type=linux # correct to gnu/linux during the next big refactor
  9909. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9910. shlibpath_var=LD_LIBRARY_PATH
  9911. shlibpath_overrides_runpath=yes
  9912. ;;
  9913. *nto* | *qnx*)
  9914. version_type=qnx
  9915. need_lib_prefix=no
  9916. need_version=no
  9917. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9918. soname_spec='$libname$release$shared_ext$major'
  9919. shlibpath_var=LD_LIBRARY_PATH
  9920. shlibpath_overrides_runpath=no
  9921. hardcode_into_libs=yes
  9922. dynamic_linker='ldqnx.so'
  9923. ;;
  9924. openbsd* | bitrig*)
  9925. version_type=sunos
  9926. sys_lib_dlsearch_path_spec=/usr/lib
  9927. need_lib_prefix=no
  9928. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9929. need_version=no
  9930. else
  9931. need_version=yes
  9932. fi
  9933. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9934. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9935. shlibpath_var=LD_LIBRARY_PATH
  9936. shlibpath_overrides_runpath=yes
  9937. ;;
  9938. os2*)
  9939. libname_spec='$name'
  9940. version_type=windows
  9941. shrext_cmds=.dll
  9942. need_version=no
  9943. need_lib_prefix=no
  9944. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9945. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9946. v=$($ECHO $release$versuffix | tr -d .-);
  9947. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9948. $ECHO $n$v`$shared_ext'
  9949. library_names_spec='${libname}_dll.$libext'
  9950. dynamic_linker='OS/2 ld.exe'
  9951. shlibpath_var=BEGINLIBPATH
  9952. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9953. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9954. postinstall_cmds='base_file=`basename \$file`~
  9955. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9956. dldir=$destdir/`dirname \$dlpath`~
  9957. test -d \$dldir || mkdir -p \$dldir~
  9958. $install_prog $dir/$dlname \$dldir/$dlname~
  9959. chmod a+x \$dldir/$dlname~
  9960. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9961. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9962. fi'
  9963. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9964. dlpath=$dir/\$dldll~
  9965. $RM \$dlpath'
  9966. ;;
  9967. osf3* | osf4* | osf5*)
  9968. version_type=osf
  9969. need_lib_prefix=no
  9970. need_version=no
  9971. soname_spec='$libname$release$shared_ext$major'
  9972. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9973. shlibpath_var=LD_LIBRARY_PATH
  9974. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9975. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9976. ;;
  9977. rdos*)
  9978. dynamic_linker=no
  9979. ;;
  9980. solaris*)
  9981. version_type=linux # correct to gnu/linux during the next big refactor
  9982. need_lib_prefix=no
  9983. need_version=no
  9984. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9985. soname_spec='$libname$release$shared_ext$major'
  9986. shlibpath_var=LD_LIBRARY_PATH
  9987. shlibpath_overrides_runpath=yes
  9988. hardcode_into_libs=yes
  9989. # ldd complains unless libraries are executable
  9990. postinstall_cmds='chmod +x $lib'
  9991. ;;
  9992. sunos4*)
  9993. version_type=sunos
  9994. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9995. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9996. shlibpath_var=LD_LIBRARY_PATH
  9997. shlibpath_overrides_runpath=yes
  9998. if test yes = "$with_gnu_ld"; then
  9999. need_lib_prefix=no
  10000. fi
  10001. need_version=yes
  10002. ;;
  10003. sysv4 | sysv4.3*)
  10004. version_type=linux # correct to gnu/linux during the next big refactor
  10005. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10006. soname_spec='$libname$release$shared_ext$major'
  10007. shlibpath_var=LD_LIBRARY_PATH
  10008. case $host_vendor in
  10009. sni)
  10010. shlibpath_overrides_runpath=no
  10011. need_lib_prefix=no
  10012. runpath_var=LD_RUN_PATH
  10013. ;;
  10014. siemens)
  10015. need_lib_prefix=no
  10016. ;;
  10017. motorola)
  10018. need_lib_prefix=no
  10019. need_version=no
  10020. shlibpath_overrides_runpath=no
  10021. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10022. ;;
  10023. esac
  10024. ;;
  10025. sysv4*MP*)
  10026. if test -d /usr/nec; then
  10027. version_type=linux # correct to gnu/linux during the next big refactor
  10028. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10029. soname_spec='$libname$shared_ext.$major'
  10030. shlibpath_var=LD_LIBRARY_PATH
  10031. fi
  10032. ;;
  10033. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10034. version_type=sco
  10035. need_lib_prefix=no
  10036. need_version=no
  10037. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10038. soname_spec='$libname$release$shared_ext$major'
  10039. shlibpath_var=LD_LIBRARY_PATH
  10040. shlibpath_overrides_runpath=yes
  10041. hardcode_into_libs=yes
  10042. if test yes = "$with_gnu_ld"; then
  10043. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10044. else
  10045. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10046. case $host_os in
  10047. sco3.2v5*)
  10048. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10049. ;;
  10050. esac
  10051. fi
  10052. sys_lib_dlsearch_path_spec='/usr/lib'
  10053. ;;
  10054. tpf*)
  10055. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10056. version_type=linux # correct to gnu/linux during the next big refactor
  10057. need_lib_prefix=no
  10058. need_version=no
  10059. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10060. shlibpath_var=LD_LIBRARY_PATH
  10061. shlibpath_overrides_runpath=no
  10062. hardcode_into_libs=yes
  10063. ;;
  10064. uts4*)
  10065. version_type=linux # correct to gnu/linux during the next big refactor
  10066. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10067. soname_spec='$libname$release$shared_ext$major'
  10068. shlibpath_var=LD_LIBRARY_PATH
  10069. ;;
  10070. *)
  10071. dynamic_linker=no
  10072. ;;
  10073. esac
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10075. $as_echo "$dynamic_linker" >&6; }
  10076. test no = "$dynamic_linker" && can_build_shared=no
  10077. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10078. if test yes = "$GCC"; then
  10079. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10080. fi
  10081. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10082. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10083. fi
  10084. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10085. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10086. fi
  10087. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10088. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10089. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10090. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10091. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10092. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10094. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10095. hardcode_action=
  10096. if test -n "$hardcode_libdir_flag_spec" ||
  10097. test -n "$runpath_var" ||
  10098. test yes = "$hardcode_automatic"; then
  10099. # We can hardcode non-existent directories.
  10100. if test no != "$hardcode_direct" &&
  10101. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10102. # have to relink, otherwise we might link with an installed library
  10103. # when we should be linking with a yet-to-be-installed one
  10104. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10105. test no != "$hardcode_minus_L"; then
  10106. # Linking always hardcodes the temporary library directory.
  10107. hardcode_action=relink
  10108. else
  10109. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10110. hardcode_action=immediate
  10111. fi
  10112. else
  10113. # We cannot hardcode anything, or else we can only hardcode existing
  10114. # directories.
  10115. hardcode_action=unsupported
  10116. fi
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10118. $as_echo "$hardcode_action" >&6; }
  10119. if test relink = "$hardcode_action" ||
  10120. test yes = "$inherit_rpath"; then
  10121. # Fast installation is not supported
  10122. enable_fast_install=no
  10123. elif test yes = "$shlibpath_overrides_runpath" ||
  10124. test no = "$enable_shared"; then
  10125. # Fast installation is not necessary
  10126. enable_fast_install=needless
  10127. fi
  10128. if test yes != "$enable_dlopen"; then
  10129. enable_dlopen=unknown
  10130. enable_dlopen_self=unknown
  10131. enable_dlopen_self_static=unknown
  10132. else
  10133. lt_cv_dlopen=no
  10134. lt_cv_dlopen_libs=
  10135. case $host_os in
  10136. beos*)
  10137. lt_cv_dlopen=load_add_on
  10138. lt_cv_dlopen_libs=
  10139. lt_cv_dlopen_self=yes
  10140. ;;
  10141. mingw* | pw32* | cegcc*)
  10142. lt_cv_dlopen=LoadLibrary
  10143. lt_cv_dlopen_libs=
  10144. ;;
  10145. cygwin*)
  10146. lt_cv_dlopen=dlopen
  10147. lt_cv_dlopen_libs=
  10148. ;;
  10149. darwin*)
  10150. # if libdl is installed we need to link against it
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10152. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10153. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10154. $as_echo_n "(cached) " >&6
  10155. else
  10156. ac_check_lib_save_LIBS=$LIBS
  10157. LIBS="-ldl $LIBS"
  10158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10159. /* end confdefs.h. */
  10160. /* Override any GCC internal prototype to avoid an error.
  10161. Use char because int might match the return type of a GCC
  10162. builtin and then its argument prototype would still apply. */
  10163. #ifdef __cplusplus
  10164. extern "C"
  10165. #endif
  10166. char dlopen ();
  10167. int
  10168. main ()
  10169. {
  10170. return dlopen ();
  10171. ;
  10172. return 0;
  10173. }
  10174. _ACEOF
  10175. if ac_fn_c_try_link "$LINENO"; then :
  10176. ac_cv_lib_dl_dlopen=yes
  10177. else
  10178. ac_cv_lib_dl_dlopen=no
  10179. fi
  10180. rm -f core conftest.err conftest.$ac_objext \
  10181. conftest$ac_exeext conftest.$ac_ext
  10182. LIBS=$ac_check_lib_save_LIBS
  10183. fi
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10185. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10186. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10187. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10188. else
  10189. lt_cv_dlopen=dyld
  10190. lt_cv_dlopen_libs=
  10191. lt_cv_dlopen_self=yes
  10192. fi
  10193. ;;
  10194. tpf*)
  10195. # Don't try to run any link tests for TPF. We know it's impossible
  10196. # because TPF is a cross-compiler, and we know how we open DSOs.
  10197. lt_cv_dlopen=dlopen
  10198. lt_cv_dlopen_libs=
  10199. lt_cv_dlopen_self=no
  10200. ;;
  10201. *)
  10202. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10203. if test "x$ac_cv_func_shl_load" = xyes; then :
  10204. lt_cv_dlopen=shl_load
  10205. else
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10207. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10208. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10209. $as_echo_n "(cached) " >&6
  10210. else
  10211. ac_check_lib_save_LIBS=$LIBS
  10212. LIBS="-ldld $LIBS"
  10213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10214. /* end confdefs.h. */
  10215. /* Override any GCC internal prototype to avoid an error.
  10216. Use char because int might match the return type of a GCC
  10217. builtin and then its argument prototype would still apply. */
  10218. #ifdef __cplusplus
  10219. extern "C"
  10220. #endif
  10221. char shl_load ();
  10222. int
  10223. main ()
  10224. {
  10225. return shl_load ();
  10226. ;
  10227. return 0;
  10228. }
  10229. _ACEOF
  10230. if ac_fn_c_try_link "$LINENO"; then :
  10231. ac_cv_lib_dld_shl_load=yes
  10232. else
  10233. ac_cv_lib_dld_shl_load=no
  10234. fi
  10235. rm -f core conftest.err conftest.$ac_objext \
  10236. conftest$ac_exeext conftest.$ac_ext
  10237. LIBS=$ac_check_lib_save_LIBS
  10238. fi
  10239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10240. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10241. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10242. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10243. else
  10244. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10245. if test "x$ac_cv_func_dlopen" = xyes; then :
  10246. lt_cv_dlopen=dlopen
  10247. else
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10249. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10250. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10251. $as_echo_n "(cached) " >&6
  10252. else
  10253. ac_check_lib_save_LIBS=$LIBS
  10254. LIBS="-ldl $LIBS"
  10255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10256. /* end confdefs.h. */
  10257. /* Override any GCC internal prototype to avoid an error.
  10258. Use char because int might match the return type of a GCC
  10259. builtin and then its argument prototype would still apply. */
  10260. #ifdef __cplusplus
  10261. extern "C"
  10262. #endif
  10263. char dlopen ();
  10264. int
  10265. main ()
  10266. {
  10267. return dlopen ();
  10268. ;
  10269. return 0;
  10270. }
  10271. _ACEOF
  10272. if ac_fn_c_try_link "$LINENO"; then :
  10273. ac_cv_lib_dl_dlopen=yes
  10274. else
  10275. ac_cv_lib_dl_dlopen=no
  10276. fi
  10277. rm -f core conftest.err conftest.$ac_objext \
  10278. conftest$ac_exeext conftest.$ac_ext
  10279. LIBS=$ac_check_lib_save_LIBS
  10280. fi
  10281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10282. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10283. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10284. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10285. else
  10286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10287. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10288. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10289. $as_echo_n "(cached) " >&6
  10290. else
  10291. ac_check_lib_save_LIBS=$LIBS
  10292. LIBS="-lsvld $LIBS"
  10293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10294. /* end confdefs.h. */
  10295. /* Override any GCC internal prototype to avoid an error.
  10296. Use char because int might match the return type of a GCC
  10297. builtin and then its argument prototype would still apply. */
  10298. #ifdef __cplusplus
  10299. extern "C"
  10300. #endif
  10301. char dlopen ();
  10302. int
  10303. main ()
  10304. {
  10305. return dlopen ();
  10306. ;
  10307. return 0;
  10308. }
  10309. _ACEOF
  10310. if ac_fn_c_try_link "$LINENO"; then :
  10311. ac_cv_lib_svld_dlopen=yes
  10312. else
  10313. ac_cv_lib_svld_dlopen=no
  10314. fi
  10315. rm -f core conftest.err conftest.$ac_objext \
  10316. conftest$ac_exeext conftest.$ac_ext
  10317. LIBS=$ac_check_lib_save_LIBS
  10318. fi
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10320. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10321. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10322. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10323. else
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10325. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10326. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10327. $as_echo_n "(cached) " >&6
  10328. else
  10329. ac_check_lib_save_LIBS=$LIBS
  10330. LIBS="-ldld $LIBS"
  10331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10332. /* end confdefs.h. */
  10333. /* Override any GCC internal prototype to avoid an error.
  10334. Use char because int might match the return type of a GCC
  10335. builtin and then its argument prototype would still apply. */
  10336. #ifdef __cplusplus
  10337. extern "C"
  10338. #endif
  10339. char dld_link ();
  10340. int
  10341. main ()
  10342. {
  10343. return dld_link ();
  10344. ;
  10345. return 0;
  10346. }
  10347. _ACEOF
  10348. if ac_fn_c_try_link "$LINENO"; then :
  10349. ac_cv_lib_dld_dld_link=yes
  10350. else
  10351. ac_cv_lib_dld_dld_link=no
  10352. fi
  10353. rm -f core conftest.err conftest.$ac_objext \
  10354. conftest$ac_exeext conftest.$ac_ext
  10355. LIBS=$ac_check_lib_save_LIBS
  10356. fi
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10358. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10359. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10360. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10361. fi
  10362. fi
  10363. fi
  10364. fi
  10365. fi
  10366. fi
  10367. ;;
  10368. esac
  10369. if test no = "$lt_cv_dlopen"; then
  10370. enable_dlopen=no
  10371. else
  10372. enable_dlopen=yes
  10373. fi
  10374. case $lt_cv_dlopen in
  10375. dlopen)
  10376. save_CPPFLAGS=$CPPFLAGS
  10377. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10378. save_LDFLAGS=$LDFLAGS
  10379. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10380. save_LIBS=$LIBS
  10381. LIBS="$lt_cv_dlopen_libs $LIBS"
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10383. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10384. if ${lt_cv_dlopen_self+:} false; then :
  10385. $as_echo_n "(cached) " >&6
  10386. else
  10387. if test yes = "$cross_compiling"; then :
  10388. lt_cv_dlopen_self=cross
  10389. else
  10390. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10391. lt_status=$lt_dlunknown
  10392. cat > conftest.$ac_ext <<_LT_EOF
  10393. #line $LINENO "configure"
  10394. #include "confdefs.h"
  10395. #if HAVE_DLFCN_H
  10396. #include <dlfcn.h>
  10397. #endif
  10398. #include <stdio.h>
  10399. #ifdef RTLD_GLOBAL
  10400. # define LT_DLGLOBAL RTLD_GLOBAL
  10401. #else
  10402. # ifdef DL_GLOBAL
  10403. # define LT_DLGLOBAL DL_GLOBAL
  10404. # else
  10405. # define LT_DLGLOBAL 0
  10406. # endif
  10407. #endif
  10408. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10409. find out it does not work in some platform. */
  10410. #ifndef LT_DLLAZY_OR_NOW
  10411. # ifdef RTLD_LAZY
  10412. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10413. # else
  10414. # ifdef DL_LAZY
  10415. # define LT_DLLAZY_OR_NOW DL_LAZY
  10416. # else
  10417. # ifdef RTLD_NOW
  10418. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10419. # else
  10420. # ifdef DL_NOW
  10421. # define LT_DLLAZY_OR_NOW DL_NOW
  10422. # else
  10423. # define LT_DLLAZY_OR_NOW 0
  10424. # endif
  10425. # endif
  10426. # endif
  10427. # endif
  10428. #endif
  10429. /* When -fvisibility=hidden is used, assume the code has been annotated
  10430. correspondingly for the symbols needed. */
  10431. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10432. int fnord () __attribute__((visibility("default")));
  10433. #endif
  10434. int fnord () { return 42; }
  10435. int main ()
  10436. {
  10437. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10438. int status = $lt_dlunknown;
  10439. if (self)
  10440. {
  10441. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10442. else
  10443. {
  10444. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10445. else puts (dlerror ());
  10446. }
  10447. /* dlclose (self); */
  10448. }
  10449. else
  10450. puts (dlerror ());
  10451. return status;
  10452. }
  10453. _LT_EOF
  10454. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10455. (eval $ac_link) 2>&5
  10456. ac_status=$?
  10457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10458. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10459. (./conftest; exit; ) >&5 2>/dev/null
  10460. lt_status=$?
  10461. case x$lt_status in
  10462. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10463. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10464. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10465. esac
  10466. else :
  10467. # compilation failed
  10468. lt_cv_dlopen_self=no
  10469. fi
  10470. fi
  10471. rm -fr conftest*
  10472. fi
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10474. $as_echo "$lt_cv_dlopen_self" >&6; }
  10475. if test yes = "$lt_cv_dlopen_self"; then
  10476. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10478. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10479. if ${lt_cv_dlopen_self_static+:} false; then :
  10480. $as_echo_n "(cached) " >&6
  10481. else
  10482. if test yes = "$cross_compiling"; then :
  10483. lt_cv_dlopen_self_static=cross
  10484. else
  10485. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10486. lt_status=$lt_dlunknown
  10487. cat > conftest.$ac_ext <<_LT_EOF
  10488. #line $LINENO "configure"
  10489. #include "confdefs.h"
  10490. #if HAVE_DLFCN_H
  10491. #include <dlfcn.h>
  10492. #endif
  10493. #include <stdio.h>
  10494. #ifdef RTLD_GLOBAL
  10495. # define LT_DLGLOBAL RTLD_GLOBAL
  10496. #else
  10497. # ifdef DL_GLOBAL
  10498. # define LT_DLGLOBAL DL_GLOBAL
  10499. # else
  10500. # define LT_DLGLOBAL 0
  10501. # endif
  10502. #endif
  10503. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10504. find out it does not work in some platform. */
  10505. #ifndef LT_DLLAZY_OR_NOW
  10506. # ifdef RTLD_LAZY
  10507. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10508. # else
  10509. # ifdef DL_LAZY
  10510. # define LT_DLLAZY_OR_NOW DL_LAZY
  10511. # else
  10512. # ifdef RTLD_NOW
  10513. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10514. # else
  10515. # ifdef DL_NOW
  10516. # define LT_DLLAZY_OR_NOW DL_NOW
  10517. # else
  10518. # define LT_DLLAZY_OR_NOW 0
  10519. # endif
  10520. # endif
  10521. # endif
  10522. # endif
  10523. #endif
  10524. /* When -fvisibility=hidden is used, assume the code has been annotated
  10525. correspondingly for the symbols needed. */
  10526. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10527. int fnord () __attribute__((visibility("default")));
  10528. #endif
  10529. int fnord () { return 42; }
  10530. int main ()
  10531. {
  10532. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10533. int status = $lt_dlunknown;
  10534. if (self)
  10535. {
  10536. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10537. else
  10538. {
  10539. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10540. else puts (dlerror ());
  10541. }
  10542. /* dlclose (self); */
  10543. }
  10544. else
  10545. puts (dlerror ());
  10546. return status;
  10547. }
  10548. _LT_EOF
  10549. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10550. (eval $ac_link) 2>&5
  10551. ac_status=$?
  10552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10553. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10554. (./conftest; exit; ) >&5 2>/dev/null
  10555. lt_status=$?
  10556. case x$lt_status in
  10557. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10558. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10559. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10560. esac
  10561. else :
  10562. # compilation failed
  10563. lt_cv_dlopen_self_static=no
  10564. fi
  10565. fi
  10566. rm -fr conftest*
  10567. fi
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10569. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10570. fi
  10571. CPPFLAGS=$save_CPPFLAGS
  10572. LDFLAGS=$save_LDFLAGS
  10573. LIBS=$save_LIBS
  10574. ;;
  10575. esac
  10576. case $lt_cv_dlopen_self in
  10577. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10578. *) enable_dlopen_self=unknown ;;
  10579. esac
  10580. case $lt_cv_dlopen_self_static in
  10581. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10582. *) enable_dlopen_self_static=unknown ;;
  10583. esac
  10584. fi
  10585. striplib=
  10586. old_striplib=
  10587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10588. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10589. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10590. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10591. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10593. $as_echo "yes" >&6; }
  10594. else
  10595. # FIXME - insert some real tests, host_os isn't really good enough
  10596. case $host_os in
  10597. darwin*)
  10598. if test -n "$STRIP"; then
  10599. striplib="$STRIP -x"
  10600. old_striplib="$STRIP -S"
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10602. $as_echo "yes" >&6; }
  10603. else
  10604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10605. $as_echo "no" >&6; }
  10606. fi
  10607. ;;
  10608. *)
  10609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10610. $as_echo "no" >&6; }
  10611. ;;
  10612. esac
  10613. fi
  10614. # Report what library types will actually be built
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10616. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10618. $as_echo "$can_build_shared" >&6; }
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10620. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10621. test no = "$can_build_shared" && enable_shared=no
  10622. # On AIX, shared libraries and static libraries use the same namespace, and
  10623. # are all built from PIC.
  10624. case $host_os in
  10625. aix3*)
  10626. test yes = "$enable_shared" && enable_static=no
  10627. if test -n "$RANLIB"; then
  10628. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10629. postinstall_cmds='$RANLIB $lib'
  10630. fi
  10631. ;;
  10632. aix[4-9]*)
  10633. if test ia64 != "$host_cpu"; then
  10634. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10635. yes,aix,yes) ;; # shared object as lib.so file only
  10636. yes,svr4,*) ;; # shared object as lib.so archive member only
  10637. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10638. esac
  10639. fi
  10640. ;;
  10641. esac
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10643. $as_echo "$enable_shared" >&6; }
  10644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10645. $as_echo_n "checking whether to build static libraries... " >&6; }
  10646. # Make sure either enable_shared or enable_static is yes.
  10647. test yes = "$enable_shared" || enable_static=yes
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10649. $as_echo "$enable_static" >&6; }
  10650. fi
  10651. ac_ext=c
  10652. ac_cpp='$CPP $CPPFLAGS'
  10653. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10654. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10655. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10656. CC=$lt_save_CC
  10657. ac_config_commands="$ac_config_commands libtool"
  10658. # Only expand once:
  10659. CFLAGS="${ac_save_CFLAGS}"
  10660. # increase this when the shared lib becomes totally incompatible
  10661. LIB_MAJOR_VERSION=0
  10662. # increase this when changes are made, but they are upward compatible
  10663. # to previous versions
  10664. LIB_MINOR_VERSION=0
  10665. if test "${ac_cv_cygwin}" = "yes"; then
  10666. if test "${CC}" != "gcc"; then
  10667. as_fn_error $? "Please use
  10668. CC=gcc ./configure
  10669. Abort this configure run and add \"CC=gcc\" or you will
  10670. see errors and no lame.exe will be build." "$LINENO" 5
  10671. fi
  10672. fi
  10673. ac_ext=c
  10674. ac_cpp='$CPP $CPPFLAGS'
  10675. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10676. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10677. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10678. if test -n "$ac_tool_prefix"; then
  10679. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10680. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10682. $as_echo_n "checking for $ac_word... " >&6; }
  10683. if ${ac_cv_prog_CC+:} false; then :
  10684. $as_echo_n "(cached) " >&6
  10685. else
  10686. if test -n "$CC"; then
  10687. ac_cv_prog_CC="$CC" # Let the user override the test.
  10688. else
  10689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10690. for as_dir in $PATH
  10691. do
  10692. IFS=$as_save_IFS
  10693. test -z "$as_dir" && as_dir=.
  10694. for ac_exec_ext in '' $ac_executable_extensions; do
  10695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10696. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10698. break 2
  10699. fi
  10700. done
  10701. done
  10702. IFS=$as_save_IFS
  10703. fi
  10704. fi
  10705. CC=$ac_cv_prog_CC
  10706. if test -n "$CC"; then
  10707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10708. $as_echo "$CC" >&6; }
  10709. else
  10710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10711. $as_echo "no" >&6; }
  10712. fi
  10713. fi
  10714. if test -z "$ac_cv_prog_CC"; then
  10715. ac_ct_CC=$CC
  10716. # Extract the first word of "gcc", so it can be a program name with args.
  10717. set dummy gcc; ac_word=$2
  10718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10719. $as_echo_n "checking for $ac_word... " >&6; }
  10720. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10721. $as_echo_n "(cached) " >&6
  10722. else
  10723. if test -n "$ac_ct_CC"; then
  10724. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10725. else
  10726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10727. for as_dir in $PATH
  10728. do
  10729. IFS=$as_save_IFS
  10730. test -z "$as_dir" && as_dir=.
  10731. for ac_exec_ext in '' $ac_executable_extensions; do
  10732. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10733. ac_cv_prog_ac_ct_CC="gcc"
  10734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10735. break 2
  10736. fi
  10737. done
  10738. done
  10739. IFS=$as_save_IFS
  10740. fi
  10741. fi
  10742. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10743. if test -n "$ac_ct_CC"; then
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10745. $as_echo "$ac_ct_CC" >&6; }
  10746. else
  10747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10748. $as_echo "no" >&6; }
  10749. fi
  10750. if test "x$ac_ct_CC" = x; then
  10751. CC=""
  10752. else
  10753. case $cross_compiling:$ac_tool_warned in
  10754. yes:)
  10755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10756. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10757. ac_tool_warned=yes ;;
  10758. esac
  10759. CC=$ac_ct_CC
  10760. fi
  10761. else
  10762. CC="$ac_cv_prog_CC"
  10763. fi
  10764. if test -z "$CC"; then
  10765. if test -n "$ac_tool_prefix"; then
  10766. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10767. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10769. $as_echo_n "checking for $ac_word... " >&6; }
  10770. if ${ac_cv_prog_CC+:} false; then :
  10771. $as_echo_n "(cached) " >&6
  10772. else
  10773. if test -n "$CC"; then
  10774. ac_cv_prog_CC="$CC" # Let the user override the test.
  10775. else
  10776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10777. for as_dir in $PATH
  10778. do
  10779. IFS=$as_save_IFS
  10780. test -z "$as_dir" && as_dir=.
  10781. for ac_exec_ext in '' $ac_executable_extensions; do
  10782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10783. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10785. break 2
  10786. fi
  10787. done
  10788. done
  10789. IFS=$as_save_IFS
  10790. fi
  10791. fi
  10792. CC=$ac_cv_prog_CC
  10793. if test -n "$CC"; then
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10795. $as_echo "$CC" >&6; }
  10796. else
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10798. $as_echo "no" >&6; }
  10799. fi
  10800. fi
  10801. fi
  10802. if test -z "$CC"; then
  10803. # Extract the first word of "cc", so it can be a program name with args.
  10804. set dummy cc; ac_word=$2
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10806. $as_echo_n "checking for $ac_word... " >&6; }
  10807. if ${ac_cv_prog_CC+:} false; then :
  10808. $as_echo_n "(cached) " >&6
  10809. else
  10810. if test -n "$CC"; then
  10811. ac_cv_prog_CC="$CC" # Let the user override the test.
  10812. else
  10813. ac_prog_rejected=no
  10814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10815. for as_dir in $PATH
  10816. do
  10817. IFS=$as_save_IFS
  10818. test -z "$as_dir" && as_dir=.
  10819. for ac_exec_ext in '' $ac_executable_extensions; do
  10820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10821. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10822. ac_prog_rejected=yes
  10823. continue
  10824. fi
  10825. ac_cv_prog_CC="cc"
  10826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10827. break 2
  10828. fi
  10829. done
  10830. done
  10831. IFS=$as_save_IFS
  10832. if test $ac_prog_rejected = yes; then
  10833. # We found a bogon in the path, so make sure we never use it.
  10834. set dummy $ac_cv_prog_CC
  10835. shift
  10836. if test $# != 0; then
  10837. # We chose a different compiler from the bogus one.
  10838. # However, it has the same basename, so the bogon will be chosen
  10839. # first if we set CC to just the basename; use the full file name.
  10840. shift
  10841. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10842. fi
  10843. fi
  10844. fi
  10845. fi
  10846. CC=$ac_cv_prog_CC
  10847. if test -n "$CC"; then
  10848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10849. $as_echo "$CC" >&6; }
  10850. else
  10851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10852. $as_echo "no" >&6; }
  10853. fi
  10854. fi
  10855. if test -z "$CC"; then
  10856. if test -n "$ac_tool_prefix"; then
  10857. for ac_prog in cl.exe
  10858. do
  10859. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10860. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10862. $as_echo_n "checking for $ac_word... " >&6; }
  10863. if ${ac_cv_prog_CC+:} false; then :
  10864. $as_echo_n "(cached) " >&6
  10865. else
  10866. if test -n "$CC"; then
  10867. ac_cv_prog_CC="$CC" # Let the user override the test.
  10868. else
  10869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10870. for as_dir in $PATH
  10871. do
  10872. IFS=$as_save_IFS
  10873. test -z "$as_dir" && as_dir=.
  10874. for ac_exec_ext in '' $ac_executable_extensions; do
  10875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10876. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10878. break 2
  10879. fi
  10880. done
  10881. done
  10882. IFS=$as_save_IFS
  10883. fi
  10884. fi
  10885. CC=$ac_cv_prog_CC
  10886. if test -n "$CC"; then
  10887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10888. $as_echo "$CC" >&6; }
  10889. else
  10890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10891. $as_echo "no" >&6; }
  10892. fi
  10893. test -n "$CC" && break
  10894. done
  10895. fi
  10896. if test -z "$CC"; then
  10897. ac_ct_CC=$CC
  10898. for ac_prog in cl.exe
  10899. do
  10900. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10901. set dummy $ac_prog; ac_word=$2
  10902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10903. $as_echo_n "checking for $ac_word... " >&6; }
  10904. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10905. $as_echo_n "(cached) " >&6
  10906. else
  10907. if test -n "$ac_ct_CC"; then
  10908. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10909. else
  10910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10911. for as_dir in $PATH
  10912. do
  10913. IFS=$as_save_IFS
  10914. test -z "$as_dir" && as_dir=.
  10915. for ac_exec_ext in '' $ac_executable_extensions; do
  10916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10917. ac_cv_prog_ac_ct_CC="$ac_prog"
  10918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10919. break 2
  10920. fi
  10921. done
  10922. done
  10923. IFS=$as_save_IFS
  10924. fi
  10925. fi
  10926. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10927. if test -n "$ac_ct_CC"; then
  10928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10929. $as_echo "$ac_ct_CC" >&6; }
  10930. else
  10931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10932. $as_echo "no" >&6; }
  10933. fi
  10934. test -n "$ac_ct_CC" && break
  10935. done
  10936. if test "x$ac_ct_CC" = x; then
  10937. CC=""
  10938. else
  10939. case $cross_compiling:$ac_tool_warned in
  10940. yes:)
  10941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10942. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10943. ac_tool_warned=yes ;;
  10944. esac
  10945. CC=$ac_ct_CC
  10946. fi
  10947. fi
  10948. fi
  10949. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10950. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10951. as_fn_error $? "no acceptable C compiler found in \$PATH
  10952. See \`config.log' for more details" "$LINENO" 5; }
  10953. # Provide some information about the compiler.
  10954. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10955. set X $ac_compile
  10956. ac_compiler=$2
  10957. for ac_option in --version -v -V -qversion; do
  10958. { { ac_try="$ac_compiler $ac_option >&5"
  10959. case "(($ac_try" in
  10960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10961. *) ac_try_echo=$ac_try;;
  10962. esac
  10963. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10964. $as_echo "$ac_try_echo"; } >&5
  10965. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10966. ac_status=$?
  10967. if test -s conftest.err; then
  10968. sed '10a\
  10969. ... rest of stderr output deleted ...
  10970. 10q' conftest.err >conftest.er1
  10971. cat conftest.er1 >&5
  10972. fi
  10973. rm -f conftest.er1 conftest.err
  10974. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10975. test $ac_status = 0; }
  10976. done
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10978. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10979. if ${ac_cv_c_compiler_gnu+:} false; then :
  10980. $as_echo_n "(cached) " >&6
  10981. else
  10982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10983. /* end confdefs.h. */
  10984. int
  10985. main ()
  10986. {
  10987. #ifndef __GNUC__
  10988. choke me
  10989. #endif
  10990. ;
  10991. return 0;
  10992. }
  10993. _ACEOF
  10994. if ac_fn_c_try_compile "$LINENO"; then :
  10995. ac_compiler_gnu=yes
  10996. else
  10997. ac_compiler_gnu=no
  10998. fi
  10999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11000. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11001. fi
  11002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11003. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11004. if test $ac_compiler_gnu = yes; then
  11005. GCC=yes
  11006. else
  11007. GCC=
  11008. fi
  11009. ac_test_CFLAGS=${CFLAGS+set}
  11010. ac_save_CFLAGS=$CFLAGS
  11011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11012. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  11013. if ${ac_cv_prog_cc_g+:} false; then :
  11014. $as_echo_n "(cached) " >&6
  11015. else
  11016. ac_save_c_werror_flag=$ac_c_werror_flag
  11017. ac_c_werror_flag=yes
  11018. ac_cv_prog_cc_g=no
  11019. CFLAGS="-g"
  11020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11021. /* end confdefs.h. */
  11022. int
  11023. main ()
  11024. {
  11025. ;
  11026. return 0;
  11027. }
  11028. _ACEOF
  11029. if ac_fn_c_try_compile "$LINENO"; then :
  11030. ac_cv_prog_cc_g=yes
  11031. else
  11032. CFLAGS=""
  11033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11034. /* end confdefs.h. */
  11035. int
  11036. main ()
  11037. {
  11038. ;
  11039. return 0;
  11040. }
  11041. _ACEOF
  11042. if ac_fn_c_try_compile "$LINENO"; then :
  11043. else
  11044. ac_c_werror_flag=$ac_save_c_werror_flag
  11045. CFLAGS="-g"
  11046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11047. /* end confdefs.h. */
  11048. int
  11049. main ()
  11050. {
  11051. ;
  11052. return 0;
  11053. }
  11054. _ACEOF
  11055. if ac_fn_c_try_compile "$LINENO"; then :
  11056. ac_cv_prog_cc_g=yes
  11057. fi
  11058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11059. fi
  11060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11061. fi
  11062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11063. ac_c_werror_flag=$ac_save_c_werror_flag
  11064. fi
  11065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11066. $as_echo "$ac_cv_prog_cc_g" >&6; }
  11067. if test "$ac_test_CFLAGS" = set; then
  11068. CFLAGS=$ac_save_CFLAGS
  11069. elif test $ac_cv_prog_cc_g = yes; then
  11070. if test "$GCC" = yes; then
  11071. CFLAGS="-g -O2"
  11072. else
  11073. CFLAGS="-g"
  11074. fi
  11075. else
  11076. if test "$GCC" = yes; then
  11077. CFLAGS="-O2"
  11078. else
  11079. CFLAGS=
  11080. fi
  11081. fi
  11082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11083. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11084. if ${ac_cv_prog_cc_c89+:} false; then :
  11085. $as_echo_n "(cached) " >&6
  11086. else
  11087. ac_cv_prog_cc_c89=no
  11088. ac_save_CC=$CC
  11089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11090. /* end confdefs.h. */
  11091. #include <stdarg.h>
  11092. #include <stdio.h>
  11093. struct stat;
  11094. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11095. struct buf { int x; };
  11096. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11097. static char *e (p, i)
  11098. char **p;
  11099. int i;
  11100. {
  11101. return p[i];
  11102. }
  11103. static char *f (char * (*g) (char **, int), char **p, ...)
  11104. {
  11105. char *s;
  11106. va_list v;
  11107. va_start (v,p);
  11108. s = g (p, va_arg (v,int));
  11109. va_end (v);
  11110. return s;
  11111. }
  11112. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11113. function prototypes and stuff, but not '\xHH' hex character constants.
  11114. These don't provoke an error unfortunately, instead are silently treated
  11115. as 'x'. The following induces an error, until -std is added to get
  11116. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11117. array size at least. It's necessary to write '\x00'==0 to get something
  11118. that's true only with -std. */
  11119. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11120. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11121. inside strings and character constants. */
  11122. #define FOO(x) 'x'
  11123. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11124. int test (int i, double x);
  11125. struct s1 {int (*f) (int a);};
  11126. struct s2 {int (*f) (double a);};
  11127. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11128. int argc;
  11129. char **argv;
  11130. int
  11131. main ()
  11132. {
  11133. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11134. ;
  11135. return 0;
  11136. }
  11137. _ACEOF
  11138. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11139. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11140. do
  11141. CC="$ac_save_CC $ac_arg"
  11142. if ac_fn_c_try_compile "$LINENO"; then :
  11143. ac_cv_prog_cc_c89=$ac_arg
  11144. fi
  11145. rm -f core conftest.err conftest.$ac_objext
  11146. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11147. done
  11148. rm -f conftest.$ac_ext
  11149. CC=$ac_save_CC
  11150. fi
  11151. # AC_CACHE_VAL
  11152. case "x$ac_cv_prog_cc_c89" in
  11153. x)
  11154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11155. $as_echo "none needed" >&6; } ;;
  11156. xno)
  11157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11158. $as_echo "unsupported" >&6; } ;;
  11159. *)
  11160. CC="$CC $ac_cv_prog_cc_c89"
  11161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11162. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11163. esac
  11164. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11165. fi
  11166. ac_ext=c
  11167. ac_cpp='$CPP $CPPFLAGS'
  11168. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11169. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11170. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11171. ac_ext=c
  11172. ac_cpp='$CPP $CPPFLAGS'
  11173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  11177. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  11178. if ${am_cv_prog_cc_c_o+:} false; then :
  11179. $as_echo_n "(cached) " >&6
  11180. else
  11181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11182. /* end confdefs.h. */
  11183. int
  11184. main ()
  11185. {
  11186. ;
  11187. return 0;
  11188. }
  11189. _ACEOF
  11190. # Make sure it works both with $CC and with simple cc.
  11191. # Following AC_PROG_CC_C_O, we do the test twice because some
  11192. # compilers refuse to overwrite an existing .o file with -o,
  11193. # though they will create one.
  11194. am_cv_prog_cc_c_o=yes
  11195. for am_i in 1 2; do
  11196. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  11197. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  11198. ac_status=$?
  11199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11200. (exit $ac_status); } \
  11201. && test -f conftest2.$ac_objext; then
  11202. : OK
  11203. else
  11204. am_cv_prog_cc_c_o=no
  11205. break
  11206. fi
  11207. done
  11208. rm -f core conftest*
  11209. unset am_i
  11210. fi
  11211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11212. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11213. if test "$am_cv_prog_cc_c_o" != yes; then
  11214. # Losing compiler, so override with the script.
  11215. # FIXME: It is wrong to rewrite CC.
  11216. # But if we don't then we get into trouble of one sort or another.
  11217. # A longer-term fix would be to have automake use am__CC in this case,
  11218. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11219. CC="$am_aux_dir/compile $CC"
  11220. fi
  11221. ac_ext=c
  11222. ac_cpp='$CPP $CPPFLAGS'
  11223. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11224. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11225. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11226. depcc="$CC" am_compiler_list=
  11227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11228. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11229. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11230. $as_echo_n "(cached) " >&6
  11231. else
  11232. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11233. # We make a subdir and do the tests there. Otherwise we can end up
  11234. # making bogus files that we don't know about and never remove. For
  11235. # instance it was reported that on HP-UX the gcc test will end up
  11236. # making a dummy file named 'D' -- because '-MD' means "put the output
  11237. # in D".
  11238. rm -rf conftest.dir
  11239. mkdir conftest.dir
  11240. # Copy depcomp to subdir because otherwise we won't find it if we're
  11241. # using a relative directory.
  11242. cp "$am_depcomp" conftest.dir
  11243. cd conftest.dir
  11244. # We will build objects and dependencies in a subdirectory because
  11245. # it helps to detect inapplicable dependency modes. For instance
  11246. # both Tru64's cc and ICC support -MD to output dependencies as a
  11247. # side effect of compilation, but ICC will put the dependencies in
  11248. # the current directory while Tru64 will put them in the object
  11249. # directory.
  11250. mkdir sub
  11251. am_cv_CC_dependencies_compiler_type=none
  11252. if test "$am_compiler_list" = ""; then
  11253. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11254. fi
  11255. am__universal=false
  11256. case " $depcc " in #(
  11257. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11258. esac
  11259. for depmode in $am_compiler_list; do
  11260. # Setup a source with many dependencies, because some compilers
  11261. # like to wrap large dependency lists on column 80 (with \), and
  11262. # we should not choose a depcomp mode which is confused by this.
  11263. #
  11264. # We need to recreate these files for each test, as the compiler may
  11265. # overwrite some of them when testing with obscure command lines.
  11266. # This happens at least with the AIX C compiler.
  11267. : > sub/conftest.c
  11268. for i in 1 2 3 4 5 6; do
  11269. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11270. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11271. # Solaris 10 /bin/sh.
  11272. echo '/* dummy */' > sub/conftst$i.h
  11273. done
  11274. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11275. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11276. # mode. It turns out that the SunPro C++ compiler does not properly
  11277. # handle '-M -o', and we need to detect this. Also, some Intel
  11278. # versions had trouble with output in subdirs.
  11279. am__obj=sub/conftest.${OBJEXT-o}
  11280. am__minus_obj="-o $am__obj"
  11281. case $depmode in
  11282. gcc)
  11283. # This depmode causes a compiler race in universal mode.
  11284. test "$am__universal" = false || continue
  11285. ;;
  11286. nosideeffect)
  11287. # After this tag, mechanisms are not by side-effect, so they'll
  11288. # only be used when explicitly requested.
  11289. if test "x$enable_dependency_tracking" = xyes; then
  11290. continue
  11291. else
  11292. break
  11293. fi
  11294. ;;
  11295. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11296. # This compiler won't grok '-c -o', but also, the minuso test has
  11297. # not run yet. These depmodes are late enough in the game, and
  11298. # so weak that their functioning should not be impacted.
  11299. am__obj=conftest.${OBJEXT-o}
  11300. am__minus_obj=
  11301. ;;
  11302. none) break ;;
  11303. esac
  11304. if depmode=$depmode \
  11305. source=sub/conftest.c object=$am__obj \
  11306. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11307. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11308. >/dev/null 2>conftest.err &&
  11309. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11310. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11311. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11312. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11313. # icc doesn't choke on unknown options, it will just issue warnings
  11314. # or remarks (even with -Werror). So we grep stderr for any message
  11315. # that says an option was ignored or not supported.
  11316. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11317. # icc: Command line warning: ignoring option '-M'; no argument required
  11318. # The diagnosis changed in icc 8.0:
  11319. # icc: Command line remark: option '-MP' not supported
  11320. if (grep 'ignoring option' conftest.err ||
  11321. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11322. am_cv_CC_dependencies_compiler_type=$depmode
  11323. break
  11324. fi
  11325. fi
  11326. done
  11327. cd ..
  11328. rm -rf conftest.dir
  11329. else
  11330. am_cv_CC_dependencies_compiler_type=none
  11331. fi
  11332. fi
  11333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  11334. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  11335. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  11336. if
  11337. test "x$enable_dependency_tracking" != xno \
  11338. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  11339. am__fastdepCC_TRUE=
  11340. am__fastdepCC_FALSE='#'
  11341. else
  11342. am__fastdepCC_TRUE='#'
  11343. am__fastdepCC_FALSE=
  11344. fi
  11345. if test "x${GCC}" = "xyes"; then
  11346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler" >&5
  11347. $as_echo_n "checking compiler... " >&6; }
  11348. COMPILER_TYPE="`${CC} --version | head -1 | sed -e '1,$s/version.*//g'`"
  11349. case "${COMPILER_TYPE}" in
  11350. *gcc*)
  11351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc" >&5
  11352. $as_echo "gcc" >&6; }
  11353. HAVE_GCC=yes
  11354. HAVE_CLANG=no
  11355. ;;
  11356. *clang*)
  11357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: clang" >&5
  11358. $as_echo "clang" >&6; }
  11359. HAVE_CLANG=yes
  11360. HAVE_GCC=no
  11361. ;;
  11362. *)
  11363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  11364. $as_echo "unknown" >&6; }
  11365. HAVE_GCC=no
  11366. HAVE_CLANG=no
  11367. ;;
  11368. esac
  11369. if test "${HAVE_GCC}" = "yes"; then
  11370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GCC" >&5
  11371. $as_echo_n "checking version of GCC... " >&6; }
  11372. GCC_version="`${CC} --version | sed -n '1s/^[^ ]* (.*) //;s/ .*$//;1p'`"
  11373. case "${GCC_version}" in
  11374. 0-9*0-9*)
  11375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GCC_version}" >&5
  11376. $as_echo "${GCC_version}" >&6; }
  11377. ;;
  11378. *)
  11379. # probably not gcc...
  11380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown compiler version pattern" >&5
  11381. $as_echo "unknown compiler version pattern" >&6; }
  11382. HAVE_GCC=no
  11383. ;;
  11384. esac
  11385. fi
  11386. if test "${HAVE_CLANG}" = "yes"; then
  11387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of clang" >&5
  11388. $as_echo_n "checking version of clang... " >&6; }
  11389. CLANG_version="`${CC} --version | sed -n 's/.*clang version //;s/ .*$//;1p'`"
  11390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CLANG_version}" >&5
  11391. $as_echo "${CLANG_version}" >&6; }
  11392. fi
  11393. fi
  11394. ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
  11395. if test "x$ac_cv_header_dmalloc_h" = xyes; then :
  11396. fi
  11397. if test "${ac_cv_header_dmalloc_h}" = "yes"; then
  11398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
  11399. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  11400. # Check whether --with-dmalloc was given.
  11401. if test "${with_dmalloc+set}" = set; then :
  11402. withval=$with_dmalloc; if test "$withval" = yes; then
  11403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11404. $as_echo "yes" >&6; }
  11405. $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
  11406. LIBS="$LIBS -ldmalloc"
  11407. LDFLAGS="$LDFLAGS -g"
  11408. else
  11409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11410. $as_echo "no" >&6; }
  11411. fi
  11412. else
  11413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11414. $as_echo "no" >&6; }
  11415. fi
  11416. fi
  11417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  11418. $as_echo_n "checking for ANSI C header files... " >&6; }
  11419. if ${ac_cv_header_stdc+:} false; then :
  11420. $as_echo_n "(cached) " >&6
  11421. else
  11422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11423. /* end confdefs.h. */
  11424. #include <stdlib.h>
  11425. #include <stdarg.h>
  11426. #include <string.h>
  11427. #include <float.h>
  11428. int
  11429. main ()
  11430. {
  11431. ;
  11432. return 0;
  11433. }
  11434. _ACEOF
  11435. if ac_fn_c_try_compile "$LINENO"; then :
  11436. ac_cv_header_stdc=yes
  11437. else
  11438. ac_cv_header_stdc=no
  11439. fi
  11440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11441. if test $ac_cv_header_stdc = yes; then
  11442. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11444. /* end confdefs.h. */
  11445. #include <string.h>
  11446. _ACEOF
  11447. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11448. $EGREP "memchr" >/dev/null 2>&1; then :
  11449. else
  11450. ac_cv_header_stdc=no
  11451. fi
  11452. rm -f conftest*
  11453. fi
  11454. if test $ac_cv_header_stdc = yes; then
  11455. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11457. /* end confdefs.h. */
  11458. #include <stdlib.h>
  11459. _ACEOF
  11460. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11461. $EGREP "free" >/dev/null 2>&1; then :
  11462. else
  11463. ac_cv_header_stdc=no
  11464. fi
  11465. rm -f conftest*
  11466. fi
  11467. if test $ac_cv_header_stdc = yes; then
  11468. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  11469. if test "$cross_compiling" = yes; then :
  11470. :
  11471. else
  11472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11473. /* end confdefs.h. */
  11474. #include <ctype.h>
  11475. #include <stdlib.h>
  11476. #if ((' ' & 0x0FF) == 0x020)
  11477. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11478. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  11479. #else
  11480. # define ISLOWER(c) \
  11481. (('a' <= (c) && (c) <= 'i') \
  11482. || ('j' <= (c) && (c) <= 'r') \
  11483. || ('s' <= (c) && (c) <= 'z'))
  11484. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  11485. #endif
  11486. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  11487. int
  11488. main ()
  11489. {
  11490. int i;
  11491. for (i = 0; i < 256; i++)
  11492. if (XOR (islower (i), ISLOWER (i))
  11493. || toupper (i) != TOUPPER (i))
  11494. return 2;
  11495. return 0;
  11496. }
  11497. _ACEOF
  11498. if ac_fn_c_try_run "$LINENO"; then :
  11499. else
  11500. ac_cv_header_stdc=no
  11501. fi
  11502. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11503. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11504. fi
  11505. fi
  11506. fi
  11507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  11508. $as_echo "$ac_cv_header_stdc" >&6; }
  11509. if test $ac_cv_header_stdc = yes; then
  11510. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  11511. fi
  11512. for ac_header in \
  11513. errno.h \
  11514. fcntl.h \
  11515. limits.h \
  11516. stdint.h \
  11517. string.h \
  11518. sys/soundcard.h \
  11519. sys/time.h \
  11520. unistd.h \
  11521. linux/soundcard.h
  11522. do :
  11523. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11524. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11525. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11526. cat >>confdefs.h <<_ACEOF
  11527. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11528. _ACEOF
  11529. fi
  11530. done
  11531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking working SSE intrinsics" >&5
  11532. $as_echo_n "checking working SSE intrinsics... " >&6; }
  11533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11534. /* end confdefs.h. */
  11535. #include <xmmintrin.h>
  11536. int
  11537. main ()
  11538. {
  11539. _mm_sfence();
  11540. ;
  11541. return 0;
  11542. }
  11543. _ACEOF
  11544. if ac_fn_c_try_compile "$LINENO"; then :
  11545. $as_echo "#define HAVE_XMMINTRIN_H 1" >>confdefs.h
  11546. ac_cv_header_xmmintrin_h=yes
  11547. else
  11548. ac_cv_header_xmmintrin_h=no
  11549. fi
  11550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_header_xmmintrin_h}" >&5
  11552. $as_echo "${ac_cv_header_xmmintrin_h}" >&6; }
  11553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  11554. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  11555. if ${ac_cv_c_const+:} false; then :
  11556. $as_echo_n "(cached) " >&6
  11557. else
  11558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11559. /* end confdefs.h. */
  11560. int
  11561. main ()
  11562. {
  11563. #ifndef __cplusplus
  11564. /* Ultrix mips cc rejects this sort of thing. */
  11565. typedef int charset[2];
  11566. const charset cs = { 0, 0 };
  11567. /* SunOS 4.1.1 cc rejects this. */
  11568. char const *const *pcpcc;
  11569. char **ppc;
  11570. /* NEC SVR4.0.2 mips cc rejects this. */
  11571. struct point {int x, y;};
  11572. static struct point const zero = {0,0};
  11573. /* AIX XL C 1.02.0.0 rejects this.
  11574. It does not let you subtract one const X* pointer from another in
  11575. an arm of an if-expression whose if-part is not a constant
  11576. expression */
  11577. const char *g = "string";
  11578. pcpcc = &g + (g ? g-g : 0);
  11579. /* HPUX 7.0 cc rejects these. */
  11580. ++pcpcc;
  11581. ppc = (char**) pcpcc;
  11582. pcpcc = (char const *const *) ppc;
  11583. { /* SCO 3.2v4 cc rejects this sort of thing. */
  11584. char tx;
  11585. char *t = &tx;
  11586. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11587. *t++ = 0;
  11588. if (s) return 0;
  11589. }
  11590. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11591. int x[] = {25, 17};
  11592. const int *foo = &x[0];
  11593. ++foo;
  11594. }
  11595. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11596. typedef const int *iptr;
  11597. iptr p = 0;
  11598. ++p;
  11599. }
  11600. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  11601. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11602. struct s { int j; const int *ap[3]; } bx;
  11603. struct s *b = &bx; b->j = 5;
  11604. }
  11605. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11606. const int foo = 10;
  11607. if (!foo) return 0;
  11608. }
  11609. return !cs[0] && !zero.x;
  11610. #endif
  11611. ;
  11612. return 0;
  11613. }
  11614. _ACEOF
  11615. if ac_fn_c_try_compile "$LINENO"; then :
  11616. ac_cv_c_const=yes
  11617. else
  11618. ac_cv_c_const=no
  11619. fi
  11620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11621. fi
  11622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  11623. $as_echo "$ac_cv_c_const" >&6; }
  11624. if test $ac_cv_c_const = no; then
  11625. $as_echo "#define const /**/" >>confdefs.h
  11626. fi
  11627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  11628. $as_echo_n "checking for inline... " >&6; }
  11629. if ${ac_cv_c_inline+:} false; then :
  11630. $as_echo_n "(cached) " >&6
  11631. else
  11632. ac_cv_c_inline=no
  11633. for ac_kw in inline __inline__ __inline; do
  11634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11635. /* end confdefs.h. */
  11636. #ifndef __cplusplus
  11637. typedef int foo_t;
  11638. static $ac_kw foo_t static_foo () {return 0; }
  11639. $ac_kw foo_t foo () {return 0; }
  11640. #endif
  11641. _ACEOF
  11642. if ac_fn_c_try_compile "$LINENO"; then :
  11643. ac_cv_c_inline=$ac_kw
  11644. fi
  11645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11646. test "$ac_cv_c_inline" != no && break
  11647. done
  11648. fi
  11649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  11650. $as_echo "$ac_cv_c_inline" >&6; }
  11651. case $ac_cv_c_inline in
  11652. inline | yes) ;;
  11653. *)
  11654. case $ac_cv_c_inline in
  11655. no) ac_val=;;
  11656. *) ac_val=$ac_cv_c_inline;;
  11657. esac
  11658. cat >>confdefs.h <<_ACEOF
  11659. #ifndef __cplusplus
  11660. #define inline $ac_val
  11661. #endif
  11662. _ACEOF
  11663. ;;
  11664. esac
  11665. if test ${cross_compiling} = "no"; then
  11666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  11667. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  11668. if ${ac_cv_c_bigendian+:} false; then :
  11669. $as_echo_n "(cached) " >&6
  11670. else
  11671. ac_cv_c_bigendian=unknown
  11672. # See if we're dealing with a universal compiler.
  11673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11674. /* end confdefs.h. */
  11675. #ifndef __APPLE_CC__
  11676. not a universal capable compiler
  11677. #endif
  11678. typedef int dummy;
  11679. _ACEOF
  11680. if ac_fn_c_try_compile "$LINENO"; then :
  11681. # Check for potential -arch flags. It is not universal unless
  11682. # there are at least two -arch flags with different values.
  11683. ac_arch=
  11684. ac_prev=
  11685. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  11686. if test -n "$ac_prev"; then
  11687. case $ac_word in
  11688. i?86 | x86_64 | ppc | ppc64)
  11689. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  11690. ac_arch=$ac_word
  11691. else
  11692. ac_cv_c_bigendian=universal
  11693. break
  11694. fi
  11695. ;;
  11696. esac
  11697. ac_prev=
  11698. elif test "x$ac_word" = "x-arch"; then
  11699. ac_prev=arch
  11700. fi
  11701. done
  11702. fi
  11703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11704. if test $ac_cv_c_bigendian = unknown; then
  11705. # See if sys/param.h defines the BYTE_ORDER macro.
  11706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11707. /* end confdefs.h. */
  11708. #include <sys/types.h>
  11709. #include <sys/param.h>
  11710. int
  11711. main ()
  11712. {
  11713. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  11714. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  11715. && LITTLE_ENDIAN)
  11716. bogus endian macros
  11717. #endif
  11718. ;
  11719. return 0;
  11720. }
  11721. _ACEOF
  11722. if ac_fn_c_try_compile "$LINENO"; then :
  11723. # It does; now see whether it defined to BIG_ENDIAN or not.
  11724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11725. /* end confdefs.h. */
  11726. #include <sys/types.h>
  11727. #include <sys/param.h>
  11728. int
  11729. main ()
  11730. {
  11731. #if BYTE_ORDER != BIG_ENDIAN
  11732. not big endian
  11733. #endif
  11734. ;
  11735. return 0;
  11736. }
  11737. _ACEOF
  11738. if ac_fn_c_try_compile "$LINENO"; then :
  11739. ac_cv_c_bigendian=yes
  11740. else
  11741. ac_cv_c_bigendian=no
  11742. fi
  11743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11744. fi
  11745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11746. fi
  11747. if test $ac_cv_c_bigendian = unknown; then
  11748. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  11749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11750. /* end confdefs.h. */
  11751. #include <limits.h>
  11752. int
  11753. main ()
  11754. {
  11755. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  11756. bogus endian macros
  11757. #endif
  11758. ;
  11759. return 0;
  11760. }
  11761. _ACEOF
  11762. if ac_fn_c_try_compile "$LINENO"; then :
  11763. # It does; now see whether it defined to _BIG_ENDIAN or not.
  11764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11765. /* end confdefs.h. */
  11766. #include <limits.h>
  11767. int
  11768. main ()
  11769. {
  11770. #ifndef _BIG_ENDIAN
  11771. not big endian
  11772. #endif
  11773. ;
  11774. return 0;
  11775. }
  11776. _ACEOF
  11777. if ac_fn_c_try_compile "$LINENO"; then :
  11778. ac_cv_c_bigendian=yes
  11779. else
  11780. ac_cv_c_bigendian=no
  11781. fi
  11782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11783. fi
  11784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11785. fi
  11786. if test $ac_cv_c_bigendian = unknown; then
  11787. # Compile a test program.
  11788. if test "$cross_compiling" = yes; then :
  11789. # Try to guess by grepping values from an object file.
  11790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11791. /* end confdefs.h. */
  11792. short int ascii_mm[] =
  11793. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  11794. short int ascii_ii[] =
  11795. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  11796. int use_ascii (int i) {
  11797. return ascii_mm[i] + ascii_ii[i];
  11798. }
  11799. short int ebcdic_ii[] =
  11800. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  11801. short int ebcdic_mm[] =
  11802. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  11803. int use_ebcdic (int i) {
  11804. return ebcdic_mm[i] + ebcdic_ii[i];
  11805. }
  11806. extern int foo;
  11807. int
  11808. main ()
  11809. {
  11810. return use_ascii (foo) == use_ebcdic (foo);
  11811. ;
  11812. return 0;
  11813. }
  11814. _ACEOF
  11815. if ac_fn_c_try_compile "$LINENO"; then :
  11816. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  11817. ac_cv_c_bigendian=yes
  11818. fi
  11819. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  11820. if test "$ac_cv_c_bigendian" = unknown; then
  11821. ac_cv_c_bigendian=no
  11822. else
  11823. # finding both strings is unlikely to happen, but who knows?
  11824. ac_cv_c_bigendian=unknown
  11825. fi
  11826. fi
  11827. fi
  11828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11829. else
  11830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11831. /* end confdefs.h. */
  11832. $ac_includes_default
  11833. int
  11834. main ()
  11835. {
  11836. /* Are we little or big endian? From Harbison&Steele. */
  11837. union
  11838. {
  11839. long int l;
  11840. char c[sizeof (long int)];
  11841. } u;
  11842. u.l = 1;
  11843. return u.c[sizeof (long int) - 1] == 1;
  11844. ;
  11845. return 0;
  11846. }
  11847. _ACEOF
  11848. if ac_fn_c_try_run "$LINENO"; then :
  11849. ac_cv_c_bigendian=no
  11850. else
  11851. ac_cv_c_bigendian=yes
  11852. fi
  11853. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11854. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11855. fi
  11856. fi
  11857. fi
  11858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  11859. $as_echo "$ac_cv_c_bigendian" >&6; }
  11860. case $ac_cv_c_bigendian in #(
  11861. yes)
  11862. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  11863. ;; #(
  11864. no)
  11865. ;; #(
  11866. universal)
  11867. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  11868. ;; #(
  11869. *)
  11870. as_fn_error $? "unknown endianness
  11871. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  11872. esac
  11873. fi
  11874. # Check whether --enable-largefile was given.
  11875. if test "${enable_largefile+set}" = set; then :
  11876. enableval=$enable_largefile;
  11877. fi
  11878. if test "$enable_largefile" != no; then
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11880. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11881. if ${ac_cv_sys_largefile_CC+:} false; then :
  11882. $as_echo_n "(cached) " >&6
  11883. else
  11884. ac_cv_sys_largefile_CC=no
  11885. if test "$GCC" != yes; then
  11886. ac_save_CC=$CC
  11887. while :; do
  11888. # IRIX 6.2 and later do not support large files by default,
  11889. # so use the C compiler's -n32 option if that helps.
  11890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11891. /* end confdefs.h. */
  11892. #include <sys/types.h>
  11893. /* Check that off_t can represent 2**63 - 1 correctly.
  11894. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11895. since some C++ compilers masquerading as C compilers
  11896. incorrectly reject 9223372036854775807. */
  11897. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11898. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11899. && LARGE_OFF_T % 2147483647 == 1)
  11900. ? 1 : -1];
  11901. int
  11902. main ()
  11903. {
  11904. ;
  11905. return 0;
  11906. }
  11907. _ACEOF
  11908. if ac_fn_c_try_compile "$LINENO"; then :
  11909. break
  11910. fi
  11911. rm -f core conftest.err conftest.$ac_objext
  11912. CC="$CC -n32"
  11913. if ac_fn_c_try_compile "$LINENO"; then :
  11914. ac_cv_sys_largefile_CC=' -n32'; break
  11915. fi
  11916. rm -f core conftest.err conftest.$ac_objext
  11917. break
  11918. done
  11919. CC=$ac_save_CC
  11920. rm -f conftest.$ac_ext
  11921. fi
  11922. fi
  11923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  11924. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  11925. if test "$ac_cv_sys_largefile_CC" != no; then
  11926. CC=$CC$ac_cv_sys_largefile_CC
  11927. fi
  11928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11929. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  11930. if ${ac_cv_sys_file_offset_bits+:} false; then :
  11931. $as_echo_n "(cached) " >&6
  11932. else
  11933. while :; do
  11934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11935. /* end confdefs.h. */
  11936. #include <sys/types.h>
  11937. /* Check that off_t can represent 2**63 - 1 correctly.
  11938. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11939. since some C++ compilers masquerading as C compilers
  11940. incorrectly reject 9223372036854775807. */
  11941. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11942. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11943. && LARGE_OFF_T % 2147483647 == 1)
  11944. ? 1 : -1];
  11945. int
  11946. main ()
  11947. {
  11948. ;
  11949. return 0;
  11950. }
  11951. _ACEOF
  11952. if ac_fn_c_try_compile "$LINENO"; then :
  11953. ac_cv_sys_file_offset_bits=no; break
  11954. fi
  11955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11957. /* end confdefs.h. */
  11958. #define _FILE_OFFSET_BITS 64
  11959. #include <sys/types.h>
  11960. /* Check that off_t can represent 2**63 - 1 correctly.
  11961. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11962. since some C++ compilers masquerading as C compilers
  11963. incorrectly reject 9223372036854775807. */
  11964. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11965. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11966. && LARGE_OFF_T % 2147483647 == 1)
  11967. ? 1 : -1];
  11968. int
  11969. main ()
  11970. {
  11971. ;
  11972. return 0;
  11973. }
  11974. _ACEOF
  11975. if ac_fn_c_try_compile "$LINENO"; then :
  11976. ac_cv_sys_file_offset_bits=64; break
  11977. fi
  11978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11979. ac_cv_sys_file_offset_bits=unknown
  11980. break
  11981. done
  11982. fi
  11983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  11984. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  11985. case $ac_cv_sys_file_offset_bits in #(
  11986. no | unknown) ;;
  11987. *)
  11988. cat >>confdefs.h <<_ACEOF
  11989. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11990. _ACEOF
  11991. ;;
  11992. esac
  11993. rm -rf conftest*
  11994. if test $ac_cv_sys_file_offset_bits = unknown; then
  11995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  11996. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  11997. if ${ac_cv_sys_large_files+:} false; then :
  11998. $as_echo_n "(cached) " >&6
  11999. else
  12000. while :; do
  12001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12002. /* end confdefs.h. */
  12003. #include <sys/types.h>
  12004. /* Check that off_t can represent 2**63 - 1 correctly.
  12005. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12006. since some C++ compilers masquerading as C compilers
  12007. incorrectly reject 9223372036854775807. */
  12008. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12009. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12010. && LARGE_OFF_T % 2147483647 == 1)
  12011. ? 1 : -1];
  12012. int
  12013. main ()
  12014. {
  12015. ;
  12016. return 0;
  12017. }
  12018. _ACEOF
  12019. if ac_fn_c_try_compile "$LINENO"; then :
  12020. ac_cv_sys_large_files=no; break
  12021. fi
  12022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12024. /* end confdefs.h. */
  12025. #define _LARGE_FILES 1
  12026. #include <sys/types.h>
  12027. /* Check that off_t can represent 2**63 - 1 correctly.
  12028. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12029. since some C++ compilers masquerading as C compilers
  12030. incorrectly reject 9223372036854775807. */
  12031. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12032. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12033. && LARGE_OFF_T % 2147483647 == 1)
  12034. ? 1 : -1];
  12035. int
  12036. main ()
  12037. {
  12038. ;
  12039. return 0;
  12040. }
  12041. _ACEOF
  12042. if ac_fn_c_try_compile "$LINENO"; then :
  12043. ac_cv_sys_large_files=1; break
  12044. fi
  12045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12046. ac_cv_sys_large_files=unknown
  12047. break
  12048. done
  12049. fi
  12050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  12051. $as_echo "$ac_cv_sys_large_files" >&6; }
  12052. case $ac_cv_sys_large_files in #(
  12053. no | unknown) ;;
  12054. *)
  12055. cat >>confdefs.h <<_ACEOF
  12056. #define _LARGE_FILES $ac_cv_sys_large_files
  12057. _ACEOF
  12058. ;;
  12059. esac
  12060. rm -rf conftest*
  12061. fi
  12062. fi
  12063. # The cast to long int works around a bug in the HP C Compiler
  12064. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12065. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12066. # This bug is HP SR number 8606223364.
  12067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  12068. $as_echo_n "checking size of short... " >&6; }
  12069. if ${ac_cv_sizeof_short+:} false; then :
  12070. $as_echo_n "(cached) " >&6
  12071. else
  12072. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  12073. else
  12074. if test "$ac_cv_type_short" = yes; then
  12075. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12076. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12077. as_fn_error 77 "cannot compute sizeof (short)
  12078. See \`config.log' for more details" "$LINENO" 5; }
  12079. else
  12080. ac_cv_sizeof_short=0
  12081. fi
  12082. fi
  12083. fi
  12084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  12085. $as_echo "$ac_cv_sizeof_short" >&6; }
  12086. cat >>confdefs.h <<_ACEOF
  12087. #define SIZEOF_SHORT $ac_cv_sizeof_short
  12088. _ACEOF
  12089. # The cast to long int works around a bug in the HP C Compiler
  12090. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12091. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12092. # This bug is HP SR number 8606223364.
  12093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
  12094. $as_echo_n "checking size of unsigned short... " >&6; }
  12095. if ${ac_cv_sizeof_unsigned_short+:} false; then :
  12096. $as_echo_n "(cached) " >&6
  12097. else
  12098. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
  12099. else
  12100. if test "$ac_cv_type_unsigned_short" = yes; then
  12101. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12102. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12103. as_fn_error 77 "cannot compute sizeof (unsigned short)
  12104. See \`config.log' for more details" "$LINENO" 5; }
  12105. else
  12106. ac_cv_sizeof_unsigned_short=0
  12107. fi
  12108. fi
  12109. fi
  12110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
  12111. $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
  12112. cat >>confdefs.h <<_ACEOF
  12113. #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  12114. _ACEOF
  12115. # The cast to long int works around a bug in the HP C Compiler
  12116. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12117. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12118. # This bug is HP SR number 8606223364.
  12119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  12120. $as_echo_n "checking size of int... " >&6; }
  12121. if ${ac_cv_sizeof_int+:} false; then :
  12122. $as_echo_n "(cached) " >&6
  12123. else
  12124. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  12125. else
  12126. if test "$ac_cv_type_int" = yes; then
  12127. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12128. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12129. as_fn_error 77 "cannot compute sizeof (int)
  12130. See \`config.log' for more details" "$LINENO" 5; }
  12131. else
  12132. ac_cv_sizeof_int=0
  12133. fi
  12134. fi
  12135. fi
  12136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  12137. $as_echo "$ac_cv_sizeof_int" >&6; }
  12138. cat >>confdefs.h <<_ACEOF
  12139. #define SIZEOF_INT $ac_cv_sizeof_int
  12140. _ACEOF
  12141. # The cast to long int works around a bug in the HP C Compiler
  12142. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12143. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12144. # This bug is HP SR number 8606223364.
  12145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
  12146. $as_echo_n "checking size of unsigned int... " >&6; }
  12147. if ${ac_cv_sizeof_unsigned_int+:} false; then :
  12148. $as_echo_n "(cached) " >&6
  12149. else
  12150. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
  12151. else
  12152. if test "$ac_cv_type_unsigned_int" = yes; then
  12153. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12154. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12155. as_fn_error 77 "cannot compute sizeof (unsigned int)
  12156. See \`config.log' for more details" "$LINENO" 5; }
  12157. else
  12158. ac_cv_sizeof_unsigned_int=0
  12159. fi
  12160. fi
  12161. fi
  12162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
  12163. $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
  12164. cat >>confdefs.h <<_ACEOF
  12165. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  12166. _ACEOF
  12167. # The cast to long int works around a bug in the HP C Compiler
  12168. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12169. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12170. # This bug is HP SR number 8606223364.
  12171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  12172. $as_echo_n "checking size of long... " >&6; }
  12173. if ${ac_cv_sizeof_long+:} false; then :
  12174. $as_echo_n "(cached) " >&6
  12175. else
  12176. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  12177. else
  12178. if test "$ac_cv_type_long" = yes; then
  12179. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12180. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12181. as_fn_error 77 "cannot compute sizeof (long)
  12182. See \`config.log' for more details" "$LINENO" 5; }
  12183. else
  12184. ac_cv_sizeof_long=0
  12185. fi
  12186. fi
  12187. fi
  12188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  12189. $as_echo "$ac_cv_sizeof_long" >&6; }
  12190. cat >>confdefs.h <<_ACEOF
  12191. #define SIZEOF_LONG $ac_cv_sizeof_long
  12192. _ACEOF
  12193. # The cast to long int works around a bug in the HP C Compiler
  12194. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12195. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12196. # This bug is HP SR number 8606223364.
  12197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
  12198. $as_echo_n "checking size of unsigned long... " >&6; }
  12199. if ${ac_cv_sizeof_unsigned_long+:} false; then :
  12200. $as_echo_n "(cached) " >&6
  12201. else
  12202. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
  12203. else
  12204. if test "$ac_cv_type_unsigned_long" = yes; then
  12205. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12206. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12207. as_fn_error 77 "cannot compute sizeof (unsigned long)
  12208. See \`config.log' for more details" "$LINENO" 5; }
  12209. else
  12210. ac_cv_sizeof_unsigned_long=0
  12211. fi
  12212. fi
  12213. fi
  12214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
  12215. $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
  12216. cat >>confdefs.h <<_ACEOF
  12217. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  12218. _ACEOF
  12219. # The cast to long int works around a bug in the HP C Compiler
  12220. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12221. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12222. # This bug is HP SR number 8606223364.
  12223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  12224. $as_echo_n "checking size of long long... " >&6; }
  12225. if ${ac_cv_sizeof_long_long+:} false; then :
  12226. $as_echo_n "(cached) " >&6
  12227. else
  12228. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  12229. else
  12230. if test "$ac_cv_type_long_long" = yes; then
  12231. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12232. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12233. as_fn_error 77 "cannot compute sizeof (long long)
  12234. See \`config.log' for more details" "$LINENO" 5; }
  12235. else
  12236. ac_cv_sizeof_long_long=0
  12237. fi
  12238. fi
  12239. fi
  12240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  12241. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  12242. cat >>confdefs.h <<_ACEOF
  12243. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  12244. _ACEOF
  12245. # The cast to long int works around a bug in the HP C Compiler
  12246. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12247. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12248. # This bug is HP SR number 8606223364.
  12249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
  12250. $as_echo_n "checking size of unsigned long long... " >&6; }
  12251. if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
  12252. $as_echo_n "(cached) " >&6
  12253. else
  12254. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
  12255. else
  12256. if test "$ac_cv_type_unsigned_long_long" = yes; then
  12257. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12258. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12259. as_fn_error 77 "cannot compute sizeof (unsigned long long)
  12260. See \`config.log' for more details" "$LINENO" 5; }
  12261. else
  12262. ac_cv_sizeof_unsigned_long_long=0
  12263. fi
  12264. fi
  12265. fi
  12266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
  12267. $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
  12268. cat >>confdefs.h <<_ACEOF
  12269. #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
  12270. _ACEOF
  12271. # The cast to long int works around a bug in the HP C Compiler
  12272. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12273. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12274. # This bug is HP SR number 8606223364.
  12275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
  12276. $as_echo_n "checking size of float... " >&6; }
  12277. if ${ac_cv_sizeof_float+:} false; then :
  12278. $as_echo_n "(cached) " >&6
  12279. else
  12280. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
  12281. else
  12282. if test "$ac_cv_type_float" = yes; then
  12283. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12284. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12285. as_fn_error 77 "cannot compute sizeof (float)
  12286. See \`config.log' for more details" "$LINENO" 5; }
  12287. else
  12288. ac_cv_sizeof_float=0
  12289. fi
  12290. fi
  12291. fi
  12292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
  12293. $as_echo "$ac_cv_sizeof_float" >&6; }
  12294. cat >>confdefs.h <<_ACEOF
  12295. #define SIZEOF_FLOAT $ac_cv_sizeof_float
  12296. _ACEOF
  12297. # The cast to long int works around a bug in the HP C Compiler
  12298. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12299. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12300. # This bug is HP SR number 8606223364.
  12301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
  12302. $as_echo_n "checking size of double... " >&6; }
  12303. if ${ac_cv_sizeof_double+:} false; then :
  12304. $as_echo_n "(cached) " >&6
  12305. else
  12306. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
  12307. else
  12308. if test "$ac_cv_type_double" = yes; then
  12309. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12310. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12311. as_fn_error 77 "cannot compute sizeof (double)
  12312. See \`config.log' for more details" "$LINENO" 5; }
  12313. else
  12314. ac_cv_sizeof_double=0
  12315. fi
  12316. fi
  12317. fi
  12318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
  12319. $as_echo "$ac_cv_sizeof_double" >&6; }
  12320. cat >>confdefs.h <<_ACEOF
  12321. #define SIZEOF_DOUBLE $ac_cv_sizeof_double
  12322. _ACEOF
  12323. if test $ac_cv_sizeof_short -eq 0 \
  12324. -o $ac_cv_sizeof_unsigned_short -eq 0 \
  12325. -o $ac_cv_sizeof_int -eq 0 \
  12326. -o $ac_cv_sizeof_unsigned_int -eq 0 \
  12327. -o $ac_cv_sizeof_long -eq 0 \
  12328. -o $ac_cv_sizeof_unsigned_long -eq 0 \
  12329. -o $ac_cv_sizeof_long_long -eq 0 \
  12330. -o $ac_cv_sizeof_unsigned_long_long -eq 0 \
  12331. -o $ac_cv_sizeof_float -eq 0 \
  12332. -o $ac_cv_sizeof_double -eq 0; then
  12333. echo '*** I have a problem determining the size of some variable types. Either'
  12334. echo '*** you compiler is broken, or your system+compiler combination is not'
  12335. echo '*** supportet by the "autoconf" framework we use to generate this'
  12336. echo '*** configure script.'
  12337. exit 1
  12338. fi
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
  12340. $as_echo_n "checking for long double with more range or precision than double... " >&6; }
  12341. if ${ac_cv_type_long_double_wider+:} false; then :
  12342. $as_echo_n "(cached) " >&6
  12343. else
  12344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12345. /* end confdefs.h. */
  12346. #include <float.h>
  12347. long double const a[] =
  12348. {
  12349. 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
  12350. LDBL_MIN, LDBL_MAX, LDBL_EPSILON
  12351. };
  12352. long double
  12353. f (long double x)
  12354. {
  12355. return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
  12356. + (x ? f (x) : 'c'));
  12357. }
  12358. int
  12359. main ()
  12360. {
  12361. static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
  12362. + (DBL_MANT_DIG < LDBL_MANT_DIG)
  12363. - (LDBL_MAX_EXP < DBL_MAX_EXP)
  12364. - (LDBL_MANT_DIG < DBL_MANT_DIG)))
  12365. && (int) LDBL_EPSILON == 0
  12366. )];
  12367. test_array [0] = 0;
  12368. return test_array [0];
  12369. ;
  12370. return 0;
  12371. }
  12372. _ACEOF
  12373. if ac_fn_c_try_compile "$LINENO"; then :
  12374. ac_cv_type_long_double_wider=yes
  12375. else
  12376. ac_cv_type_long_double_wider=no
  12377. fi
  12378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12379. fi
  12380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
  12381. $as_echo "$ac_cv_type_long_double_wider" >&6; }
  12382. if test $ac_cv_type_long_double_wider = yes; then
  12383. $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
  12384. fi
  12385. ac_cv_c_long_double=$ac_cv_type_long_double_wider
  12386. if test $ac_cv_c_long_double = yes; then
  12387. $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
  12388. fi
  12389. if test "${ac_cv_c_have_long_double}" = "yes" ; then
  12390. # The cast to long int works around a bug in the HP C Compiler
  12391. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12392. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12393. # This bug is HP SR number 8606223364.
  12394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
  12395. $as_echo_n "checking size of long double... " >&6; }
  12396. if ${ac_cv_sizeof_long_double+:} false; then :
  12397. $as_echo_n "(cached) " >&6
  12398. else
  12399. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
  12400. else
  12401. if test "$ac_cv_type_long_double" = yes; then
  12402. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12403. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12404. as_fn_error 77 "cannot compute sizeof (long double)
  12405. See \`config.log' for more details" "$LINENO" 5; }
  12406. else
  12407. ac_cv_sizeof_long_double=0
  12408. fi
  12409. fi
  12410. fi
  12411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
  12412. $as_echo "$ac_cv_sizeof_long_double" >&6; }
  12413. cat >>confdefs.h <<_ACEOF
  12414. #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
  12415. _ACEOF
  12416. fi
  12417. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  12418. if test "x$ac_cv_type_uint8_t" = xyes; then :
  12419. cat >>confdefs.h <<_ACEOF
  12420. #define HAVE_UINT8_T 1
  12421. _ACEOF
  12422. fi
  12423. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  12424. if test "x$ac_cv_type_int8_t" = xyes; then :
  12425. cat >>confdefs.h <<_ACEOF
  12426. #define HAVE_INT8_T 1
  12427. _ACEOF
  12428. fi
  12429. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  12430. if test "x$ac_cv_type_uint16_t" = xyes; then :
  12431. cat >>confdefs.h <<_ACEOF
  12432. #define HAVE_UINT16_T 1
  12433. _ACEOF
  12434. fi
  12435. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  12436. if test "x$ac_cv_type_int16_t" = xyes; then :
  12437. cat >>confdefs.h <<_ACEOF
  12438. #define HAVE_INT16_T 1
  12439. _ACEOF
  12440. fi
  12441. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  12442. if test "x$ac_cv_type_uint32_t" = xyes; then :
  12443. cat >>confdefs.h <<_ACEOF
  12444. #define HAVE_UINT32_T 1
  12445. _ACEOF
  12446. fi
  12447. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  12448. if test "x$ac_cv_type_int32_t" = xyes; then :
  12449. cat >>confdefs.h <<_ACEOF
  12450. #define HAVE_INT32_T 1
  12451. _ACEOF
  12452. fi
  12453. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
  12454. if test "x$ac_cv_type_uint64_t" = xyes; then :
  12455. cat >>confdefs.h <<_ACEOF
  12456. #define HAVE_UINT64_T 1
  12457. _ACEOF
  12458. fi
  12459. ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
  12460. if test "x$ac_cv_type_int64_t" = xyes; then :
  12461. cat >>confdefs.h <<_ACEOF
  12462. #define HAVE_INT64_T 1
  12463. _ACEOF
  12464. fi
  12465. if test "${HAVE_INT32_T}" = yes; then
  12466. $as_echo "#define A_UINT32_T unsigned int32_t" >>confdefs.h
  12467. else
  12468. if test "${ac_cv_sizeof_unsigned_short}" = "4"; then
  12469. $as_echo "#define A_UINT32_T unsigned short" >>confdefs.h
  12470. else
  12471. if test "${ac_cv_sizeof_unsigned_int}" = "4"; then
  12472. $as_echo "#define A_UINT32_T unsigned int" >>confdefs.h
  12473. else
  12474. if test "${ac_cv_sizeof_unsigned_long}" = "4"; then
  12475. $as_echo "#define A_UINT32_T unsigned long" >>confdefs.h
  12476. else
  12477. as_fn_error $? "CHECK_TYPE_uint32_t - please report to lame-dev@lists.sourceforge.net" "$LINENO" 5
  12478. fi
  12479. fi
  12480. fi
  12481. fi
  12482. if test "${ac_cv_sizeof_short}" = "4"; then
  12483. $as_echo "#define A_INT32_T short" >>confdefs.h
  12484. else
  12485. if test "${ac_cv_sizeof_int}" = "4"; then
  12486. $as_echo "#define A_INT32_T int" >>confdefs.h
  12487. else
  12488. if test "${ac_cv_sizeof_long}" = "4"; then
  12489. $as_echo "#define A_INT32_T long" >>confdefs.h
  12490. else
  12491. as_fn_error $? "CHECK_TYPE_int32_t - please report to lame-dev@lists.sourceforge.net" "$LINENO" 5
  12492. fi
  12493. fi
  12494. fi
  12495. if test "${HAVE_INT64_T}" = yes; then
  12496. $as_echo "#define A_UINT64_T unsigned int64_t" >>confdefs.h
  12497. else
  12498. if test "${ac_cv_sizeof_unsigned_int}" = "8"; then
  12499. $as_echo "#define A_UINT64_T unsigned int" >>confdefs.h
  12500. else
  12501. if test "${ac_cv_sizeof_unsigned_long}" = "8"; then
  12502. $as_echo "#define A_UINT64_T unsigned long" >>confdefs.h
  12503. else
  12504. if test "${ac_cv_sizeof_unsigned_long_long}" = "8"; then
  12505. $as_echo "#define A_UINT64_T unsigned long long" >>confdefs.h
  12506. else
  12507. as_fn_error $? "CHECK_TYPE_uint64_t - please report to lame-dev@lists.sourceforge.net" "$LINENO" 5
  12508. fi
  12509. fi
  12510. fi
  12511. fi
  12512. if test "${ac_cv_sizeof_int}" = "8"; then
  12513. $as_echo "#define A_INT64_T int" >>confdefs.h
  12514. else
  12515. if test "${ac_cv_sizeof_long}" = "8"; then
  12516. $as_echo "#define A_INT64_T long" >>confdefs.h
  12517. else
  12518. if test "${ac_cv_sizeof_long_long}" = "8"; then
  12519. $as_echo "#define A_INT64_T long long" >>confdefs.h
  12520. else
  12521. as_fn_error $? "CHECK_TYPE_int64_t - please report to lame-dev@lists.sourceforge.net" "$LINENO" 5
  12522. fi
  12523. fi
  12524. fi
  12525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IEEE854 compliant 80 bit floats" >&5
  12526. $as_echo_n "checking for IEEE854 compliant 80 bit floats... " >&6; }
  12527. if ${alex_cv_ieee854_float80+:} false; then :
  12528. $as_echo_n "(cached) " >&6
  12529. else
  12530. if test "$cross_compiling" = yes; then :
  12531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't check for IEEE854 compliant 80 bit floats" >&5
  12532. $as_echo "$as_me: WARNING: can't check for IEEE854 compliant 80 bit floats" >&2;}
  12533. else
  12534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12535. /* end confdefs.h. */
  12536. int float2long_IEEE_compliance ( void )
  12537. {
  12538. struct {
  12539. long padding; /* to prevent unaligned access */
  12540. float f;
  12541. } s;
  12542. s.f = 12582912.; if ( *(long*)(&s.f) != 1262485504l ) return 0;
  12543. s.f = 12615679.; if ( *(long*)(&s.f) != 1262518271l ) return 0;
  12544. s.f = 13582912.; if ( *(long*)(&s.f) != 1263485504l ) return 0;
  12545. s.f = 12550145.; if ( *(long*)(&s.f) != 1262452737l ) return 0;
  12546. s.f = 11582912.; if ( *(long*)(&s.f) != 1261485504l ) return 0;
  12547. return 1;
  12548. }
  12549. int main(void)
  12550. {
  12551. int retval;
  12552. retval = float2long_IEEE_compliance();
  12553. /* no error return -> success */
  12554. return !retval;
  12555. }
  12556. _ACEOF
  12557. if ac_fn_c_try_run "$LINENO"; then :
  12558. alex_cv_ieee854_float80=yes
  12559. else
  12560. alex_cv_ieee854_float80=no
  12561. fi
  12562. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12563. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12564. fi
  12565. fi
  12566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alex_cv_ieee854_float80" >&5
  12567. $as_echo "$alex_cv_ieee854_float80" >&6; }
  12568. if test "${alex_cv_ieee854_float80}" = "yes" ; then
  12569. if test "${ac_cv_c_long_double}" = "yes" ; then
  12570. ac_fn_c_check_type "$LINENO" "ieee854_float80_t" "ac_cv_type_ieee854_float80_t" "$ac_includes_default"
  12571. if test "x$ac_cv_type_ieee854_float80_t" = xyes; then :
  12572. cat >>confdefs.h <<_ACEOF
  12573. #define HAVE_IEEE854_FLOAT80_T 1
  12574. _ACEOF
  12575. long double
  12576. fi
  12577. $as_echo "#define HAVE_IEEE854_FLOAT80 1" >>confdefs.h
  12578. fi
  12579. fi
  12580. ac_fn_c_check_type "$LINENO" "ieee754_float64_t" "ac_cv_type_ieee754_float64_t" "$ac_includes_default"
  12581. if test "x$ac_cv_type_ieee754_float64_t" = xyes; then :
  12582. cat >>confdefs.h <<_ACEOF
  12583. #define HAVE_IEEE754_FLOAT64_T 1
  12584. _ACEOF
  12585. fi
  12586. ac_fn_c_check_type "$LINENO" "ieee754_float32_t" "ac_cv_type_ieee754_float32_t" "$ac_includes_default"
  12587. if test "x$ac_cv_type_ieee754_float32_t" = xyes; then :
  12588. cat >>confdefs.h <<_ACEOF
  12589. #define HAVE_IEEE754_FLOAT32_T 1
  12590. _ACEOF
  12591. fi
  12592. $as_echo "#define LAME_LIBRARY_BUILD 1" >>confdefs.h
  12593. if test ${cross_compiling} = "yes"; then
  12594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  12595. **************************************************************************
  12596. * *
  12597. * You are cross compiling: *
  12598. * - I did not have a change to determine *
  12599. * + the size of: *
  12600. * - short *
  12601. * - unsigned short *
  12602. * - int *
  12603. * - unsigned int *
  12604. * - long *
  12605. * - unsigned long *
  12606. * - float *
  12607. * - double *
  12608. * - long double *
  12609. * + the endianess of the system *
  12610. * - You have to provide appropriate defines for them in config.h, e.g. *
  12611. * + define SIZEOF_SHORT to 2 if the size of a short is 2 *
  12612. * + define WORDS_BIGENDIAN if your system is a big endian system *
  12613. * *
  12614. **************************************************************************" >&5
  12615. $as_echo "$as_me: WARNING:
  12616. **************************************************************************
  12617. * *
  12618. * You are cross compiling: *
  12619. * - I did not have a change to determine *
  12620. * + the size of: *
  12621. * - short *
  12622. * - unsigned short *
  12623. * - int *
  12624. * - unsigned int *
  12625. * - long *
  12626. * - unsigned long *
  12627. * - float *
  12628. * - double *
  12629. * - long double *
  12630. * + the endianess of the system *
  12631. * - You have to provide appropriate defines for them in config.h, e.g. *
  12632. * + define SIZEOF_SHORT to 2 if the size of a short is 2 *
  12633. * + define WORDS_BIGENDIAN if your system is a big endian system *
  12634. * *
  12635. **************************************************************************" >&2;}
  12636. fi
  12637. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  12638. if test "x$ac_cv_type_size_t" = xyes; then :
  12639. else
  12640. cat >>confdefs.h <<_ACEOF
  12641. #define size_t unsigned int
  12642. _ACEOF
  12643. fi
  12644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  12645. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  12646. if ${ac_cv_header_time+:} false; then :
  12647. $as_echo_n "(cached) " >&6
  12648. else
  12649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12650. /* end confdefs.h. */
  12651. #include <sys/types.h>
  12652. #include <sys/time.h>
  12653. #include <time.h>
  12654. int
  12655. main ()
  12656. {
  12657. if ((struct tm *) 0)
  12658. return 0;
  12659. ;
  12660. return 0;
  12661. }
  12662. _ACEOF
  12663. if ac_fn_c_try_compile "$LINENO"; then :
  12664. ac_cv_header_time=yes
  12665. else
  12666. ac_cv_header_time=no
  12667. fi
  12668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12669. fi
  12670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  12671. $as_echo "$ac_cv_header_time" >&6; }
  12672. if test $ac_cv_header_time = yes; then
  12673. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  12674. fi
  12675. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  12676. # for constant arguments. Useless!
  12677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  12678. $as_echo_n "checking for working alloca.h... " >&6; }
  12679. if ${ac_cv_working_alloca_h+:} false; then :
  12680. $as_echo_n "(cached) " >&6
  12681. else
  12682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12683. /* end confdefs.h. */
  12684. #include <alloca.h>
  12685. int
  12686. main ()
  12687. {
  12688. char *p = (char *) alloca (2 * sizeof (int));
  12689. if (p) return 0;
  12690. ;
  12691. return 0;
  12692. }
  12693. _ACEOF
  12694. if ac_fn_c_try_link "$LINENO"; then :
  12695. ac_cv_working_alloca_h=yes
  12696. else
  12697. ac_cv_working_alloca_h=no
  12698. fi
  12699. rm -f core conftest.err conftest.$ac_objext \
  12700. conftest$ac_exeext conftest.$ac_ext
  12701. fi
  12702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  12703. $as_echo "$ac_cv_working_alloca_h" >&6; }
  12704. if test $ac_cv_working_alloca_h = yes; then
  12705. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  12706. fi
  12707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  12708. $as_echo_n "checking for alloca... " >&6; }
  12709. if ${ac_cv_func_alloca_works+:} false; then :
  12710. $as_echo_n "(cached) " >&6
  12711. else
  12712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12713. /* end confdefs.h. */
  12714. #ifdef __GNUC__
  12715. # define alloca __builtin_alloca
  12716. #else
  12717. # ifdef _MSC_VER
  12718. # include <malloc.h>
  12719. # define alloca _alloca
  12720. # else
  12721. # ifdef HAVE_ALLOCA_H
  12722. # include <alloca.h>
  12723. # else
  12724. # ifdef _AIX
  12725. #pragma alloca
  12726. # else
  12727. # ifndef alloca /* predefined by HP cc +Olibcalls */
  12728. void *alloca (size_t);
  12729. # endif
  12730. # endif
  12731. # endif
  12732. # endif
  12733. #endif
  12734. int
  12735. main ()
  12736. {
  12737. char *p = (char *) alloca (1);
  12738. if (p) return 0;
  12739. ;
  12740. return 0;
  12741. }
  12742. _ACEOF
  12743. if ac_fn_c_try_link "$LINENO"; then :
  12744. ac_cv_func_alloca_works=yes
  12745. else
  12746. ac_cv_func_alloca_works=no
  12747. fi
  12748. rm -f core conftest.err conftest.$ac_objext \
  12749. conftest$ac_exeext conftest.$ac_ext
  12750. fi
  12751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  12752. $as_echo "$ac_cv_func_alloca_works" >&6; }
  12753. if test $ac_cv_func_alloca_works = yes; then
  12754. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  12755. else
  12756. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  12757. # that cause trouble. Some versions do not even contain alloca or
  12758. # contain a buggy version. If you still want to use their alloca,
  12759. # use ar to extract alloca.o from them instead of compiling alloca.c.
  12760. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  12761. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  12762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  12763. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  12764. if ${ac_cv_os_cray+:} false; then :
  12765. $as_echo_n "(cached) " >&6
  12766. else
  12767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12768. /* end confdefs.h. */
  12769. #if defined CRAY && ! defined CRAY2
  12770. webecray
  12771. #else
  12772. wenotbecray
  12773. #endif
  12774. _ACEOF
  12775. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12776. $EGREP "webecray" >/dev/null 2>&1; then :
  12777. ac_cv_os_cray=yes
  12778. else
  12779. ac_cv_os_cray=no
  12780. fi
  12781. rm -f conftest*
  12782. fi
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  12784. $as_echo "$ac_cv_os_cray" >&6; }
  12785. if test $ac_cv_os_cray = yes; then
  12786. for ac_func in _getb67 GETB67 getb67; do
  12787. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12788. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12789. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12790. cat >>confdefs.h <<_ACEOF
  12791. #define CRAY_STACKSEG_END $ac_func
  12792. _ACEOF
  12793. break
  12794. fi
  12795. done
  12796. fi
  12797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  12798. $as_echo_n "checking stack direction for C alloca... " >&6; }
  12799. if ${ac_cv_c_stack_direction+:} false; then :
  12800. $as_echo_n "(cached) " >&6
  12801. else
  12802. if test "$cross_compiling" = yes; then :
  12803. ac_cv_c_stack_direction=0
  12804. else
  12805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12806. /* end confdefs.h. */
  12807. $ac_includes_default
  12808. int
  12809. find_stack_direction (int *addr, int depth)
  12810. {
  12811. int dir, dummy = 0;
  12812. if (! addr)
  12813. addr = &dummy;
  12814. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  12815. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  12816. return dir + dummy;
  12817. }
  12818. int
  12819. main (int argc, char **argv)
  12820. {
  12821. return find_stack_direction (0, argc + !argv + 20) < 0;
  12822. }
  12823. _ACEOF
  12824. if ac_fn_c_try_run "$LINENO"; then :
  12825. ac_cv_c_stack_direction=1
  12826. else
  12827. ac_cv_c_stack_direction=-1
  12828. fi
  12829. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12830. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12831. fi
  12832. fi
  12833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  12834. $as_echo "$ac_cv_c_stack_direction" >&6; }
  12835. cat >>confdefs.h <<_ACEOF
  12836. #define STACK_DIRECTION $ac_cv_c_stack_direction
  12837. _ACEOF
  12838. fi
  12839. for ac_func in gettimeofday strtol
  12840. do :
  12841. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12842. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12843. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12844. cat >>confdefs.h <<_ACEOF
  12845. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12846. _ACEOF
  12847. fi
  12848. done
  12849. if test "X${ac_cv_func_strtol}" != "Xyes"; then
  12850. as_fn_error $? "function strtol is mandatory" "$LINENO" 5
  12851. fi
  12852. SOCKETFUNCTION=unknown
  12853. for ac_func in socket
  12854. do :
  12855. ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
  12856. if test "x$ac_cv_func_socket" = xyes; then :
  12857. cat >>confdefs.h <<_ACEOF
  12858. #define HAVE_SOCKET 1
  12859. _ACEOF
  12860. fi
  12861. done
  12862. if test $ac_cv_func_socket = no; then
  12863. # maybe it is in libsocket
  12864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  12865. $as_echo_n "checking for socket in -lsocket... " >&6; }
  12866. if ${ac_cv_lib_socket_socket+:} false; then :
  12867. $as_echo_n "(cached) " >&6
  12868. else
  12869. ac_check_lib_save_LIBS=$LIBS
  12870. LIBS="-lsocket $LIBS"
  12871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12872. /* end confdefs.h. */
  12873. /* Override any GCC internal prototype to avoid an error.
  12874. Use char because int might match the return type of a GCC
  12875. builtin and then its argument prototype would still apply. */
  12876. #ifdef __cplusplus
  12877. extern "C"
  12878. #endif
  12879. char socket ();
  12880. int
  12881. main ()
  12882. {
  12883. return socket ();
  12884. ;
  12885. return 0;
  12886. }
  12887. _ACEOF
  12888. if ac_fn_c_try_link "$LINENO"; then :
  12889. ac_cv_lib_socket_socket=yes
  12890. else
  12891. ac_cv_lib_socket_socket=no
  12892. fi
  12893. rm -f core conftest.err conftest.$ac_objext \
  12894. conftest$ac_exeext conftest.$ac_ext
  12895. LIBS=$ac_check_lib_save_LIBS
  12896. fi
  12897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  12898. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  12899. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  12900. $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
  12901. LIBS="$LIBS -lsocket"
  12902. fi
  12903. if test "X${ac_cv_lib_socket_socket}" != "Xyes"; then
  12904. SOCKETFUNCTION=NO
  12905. else
  12906. case ${host_os} in
  12907. *solaris*)
  12908. LIBS="$LIBS -lnsl"
  12909. ;;
  12910. esac
  12911. fi
  12912. fi
  12913. CFLAGS=${CFLAGS}
  12914. CONFIG_DEFS=${CONFIG_DEFS}
  12915. NASM=
  12916. INCLUDES="-I\$(top_srcdir)/include -I\$(srcdir)"
  12917. FRONTEND_LDFLAGS=
  12918. FRONTEND_CFLAGS=
  12919. LIB_SOURCES=
  12920. MAKEDEP="-M"
  12921. RM_F="rm -f"
  12922. # Check whether --enable-nasm was given.
  12923. if test "${enable_nasm+set}" = set; then :
  12924. enableval=$enable_nasm; ASM_FOR_ARCH="i386"
  12925. else
  12926. ASM_FOR_ARCH=""
  12927. fi
  12928. for ac_header in termcap.h
  12929. do :
  12930. ac_fn_c_check_header_mongrel "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
  12931. if test "x$ac_cv_header_termcap_h" = xyes; then :
  12932. cat >>confdefs.h <<_ACEOF
  12933. #define HAVE_TERMCAP_H 1
  12934. _ACEOF
  12935. fi
  12936. done
  12937. for ac_header in ncurses/termcap.h
  12938. do :
  12939. ac_fn_c_check_header_mongrel "$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default"
  12940. if test "x$ac_cv_header_ncurses_termcap_h" = xyes; then :
  12941. cat >>confdefs.h <<_ACEOF
  12942. #define HAVE_NCURSES_TERMCAP_H 1
  12943. _ACEOF
  12944. fi
  12945. done
  12946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -ltermcap" >&5
  12947. $as_echo_n "checking for initscr in -ltermcap... " >&6; }
  12948. if ${ac_cv_lib_termcap_initscr+:} false; then :
  12949. $as_echo_n "(cached) " >&6
  12950. else
  12951. ac_check_lib_save_LIBS=$LIBS
  12952. LIBS="-ltermcap $LIBS"
  12953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12954. /* end confdefs.h. */
  12955. /* Override any GCC internal prototype to avoid an error.
  12956. Use char because int might match the return type of a GCC
  12957. builtin and then its argument prototype would still apply. */
  12958. #ifdef __cplusplus
  12959. extern "C"
  12960. #endif
  12961. char initscr ();
  12962. int
  12963. main ()
  12964. {
  12965. return initscr ();
  12966. ;
  12967. return 0;
  12968. }
  12969. _ACEOF
  12970. if ac_fn_c_try_link "$LINENO"; then :
  12971. ac_cv_lib_termcap_initscr=yes
  12972. else
  12973. ac_cv_lib_termcap_initscr=no
  12974. fi
  12975. rm -f core conftest.err conftest.$ac_objext \
  12976. conftest$ac_exeext conftest.$ac_ext
  12977. LIBS=$ac_check_lib_save_LIBS
  12978. fi
  12979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_initscr" >&5
  12980. $as_echo "$ac_cv_lib_termcap_initscr" >&6; }
  12981. if test "x$ac_cv_lib_termcap_initscr" = xyes; then :
  12982. HAVE_TERMCAP="termcap"
  12983. fi
  12984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
  12985. $as_echo_n "checking for initscr in -lcurses... " >&6; }
  12986. if ${ac_cv_lib_curses_initscr+:} false; then :
  12987. $as_echo_n "(cached) " >&6
  12988. else
  12989. ac_check_lib_save_LIBS=$LIBS
  12990. LIBS="-lcurses $LIBS"
  12991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12992. /* end confdefs.h. */
  12993. /* Override any GCC internal prototype to avoid an error.
  12994. Use char because int might match the return type of a GCC
  12995. builtin and then its argument prototype would still apply. */
  12996. #ifdef __cplusplus
  12997. extern "C"
  12998. #endif
  12999. char initscr ();
  13000. int
  13001. main ()
  13002. {
  13003. return initscr ();
  13004. ;
  13005. return 0;
  13006. }
  13007. _ACEOF
  13008. if ac_fn_c_try_link "$LINENO"; then :
  13009. ac_cv_lib_curses_initscr=yes
  13010. else
  13011. ac_cv_lib_curses_initscr=no
  13012. fi
  13013. rm -f core conftest.err conftest.$ac_objext \
  13014. conftest$ac_exeext conftest.$ac_ext
  13015. LIBS=$ac_check_lib_save_LIBS
  13016. fi
  13017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
  13018. $as_echo "$ac_cv_lib_curses_initscr" >&6; }
  13019. if test "x$ac_cv_lib_curses_initscr" = xyes; then :
  13020. HAVE_TERMCAP="curses"
  13021. fi
  13022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
  13023. $as_echo_n "checking for initscr in -lncurses... " >&6; }
  13024. if ${ac_cv_lib_ncurses_initscr+:} false; then :
  13025. $as_echo_n "(cached) " >&6
  13026. else
  13027. ac_check_lib_save_LIBS=$LIBS
  13028. LIBS="-lncurses $LIBS"
  13029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13030. /* end confdefs.h. */
  13031. /* Override any GCC internal prototype to avoid an error.
  13032. Use char because int might match the return type of a GCC
  13033. builtin and then its argument prototype would still apply. */
  13034. #ifdef __cplusplus
  13035. extern "C"
  13036. #endif
  13037. char initscr ();
  13038. int
  13039. main ()
  13040. {
  13041. return initscr ();
  13042. ;
  13043. return 0;
  13044. }
  13045. _ACEOF
  13046. if ac_fn_c_try_link "$LINENO"; then :
  13047. ac_cv_lib_ncurses_initscr=yes
  13048. else
  13049. ac_cv_lib_ncurses_initscr=no
  13050. fi
  13051. rm -f core conftest.err conftest.$ac_objext \
  13052. conftest$ac_exeext conftest.$ac_ext
  13053. LIBS=$ac_check_lib_save_LIBS
  13054. fi
  13055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
  13056. $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
  13057. if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
  13058. HAVE_TERMCAP="ncurses"
  13059. fi
  13060. if test "X$prefix" = "XNONE"; then
  13061. acl_final_prefix="$ac_default_prefix"
  13062. else
  13063. acl_final_prefix="$prefix"
  13064. fi
  13065. if test "X$exec_prefix" = "XNONE"; then
  13066. acl_final_exec_prefix='${prefix}'
  13067. else
  13068. acl_final_exec_prefix="$exec_prefix"
  13069. fi
  13070. acl_save_prefix="$prefix"
  13071. prefix="$acl_final_prefix"
  13072. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  13073. prefix="$acl_save_prefix"
  13074. # Check whether --with-gnu-ld was given.
  13075. if test "${with_gnu_ld+set}" = set; then :
  13076. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  13077. else
  13078. with_gnu_ld=no
  13079. fi
  13080. # Prepare PATH_SEPARATOR.
  13081. # The user is always right.
  13082. if test "${PATH_SEPARATOR+set}" != set; then
  13083. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  13084. # contains only /bin. Note that ksh looks also at the FPATH variable,
  13085. # so we have to set that as well for the test.
  13086. PATH_SEPARATOR=:
  13087. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  13088. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  13089. || PATH_SEPARATOR=';'
  13090. }
  13091. fi
  13092. ac_prog=ld
  13093. if test "$GCC" = yes; then
  13094. # Check if gcc -print-prog-name=ld gives a path.
  13095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  13096. $as_echo_n "checking for ld used by $CC... " >&6; }
  13097. case $host in
  13098. *-*-mingw*)
  13099. # gcc leaves a trailing carriage return which upsets mingw
  13100. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13101. *)
  13102. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13103. esac
  13104. case $ac_prog in
  13105. # Accept absolute paths.
  13106. [\\/]* | ?:[\\/]*)
  13107. re_direlt='/[^/][^/]*/\.\./'
  13108. # Canonicalize the pathname of ld
  13109. ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
  13110. while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
  13111. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  13112. done
  13113. test -z "$LD" && LD="$ac_prog"
  13114. ;;
  13115. "")
  13116. # If it fails, then pretend we aren't using GCC.
  13117. ac_prog=ld
  13118. ;;
  13119. *)
  13120. # If it is relative, then search for the first ld in PATH.
  13121. with_gnu_ld=unknown
  13122. ;;
  13123. esac
  13124. elif test "$with_gnu_ld" = yes; then
  13125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13126. $as_echo_n "checking for GNU ld... " >&6; }
  13127. else
  13128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13129. $as_echo_n "checking for non-GNU ld... " >&6; }
  13130. fi
  13131. if ${acl_cv_path_LD+:} false; then :
  13132. $as_echo_n "(cached) " >&6
  13133. else
  13134. if test -z "$LD"; then
  13135. acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13136. for ac_dir in $PATH; do
  13137. IFS="$acl_save_ifs"
  13138. test -z "$ac_dir" && ac_dir=.
  13139. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13140. acl_cv_path_LD="$ac_dir/$ac_prog"
  13141. # Check to see if the program is GNU ld. I'd rather use --version,
  13142. # but apparently some variants of GNU ld only accept -v.
  13143. # Break only if it was the GNU/non-GNU ld that we prefer.
  13144. case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
  13145. *GNU* | *'with BFD'*)
  13146. test "$with_gnu_ld" != no && break
  13147. ;;
  13148. *)
  13149. test "$with_gnu_ld" != yes && break
  13150. ;;
  13151. esac
  13152. fi
  13153. done
  13154. IFS="$acl_save_ifs"
  13155. else
  13156. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  13157. fi
  13158. fi
  13159. LD="$acl_cv_path_LD"
  13160. if test -n "$LD"; then
  13161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13162. $as_echo "$LD" >&6; }
  13163. else
  13164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13165. $as_echo "no" >&6; }
  13166. fi
  13167. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  13168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13169. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  13170. if ${acl_cv_prog_gnu_ld+:} false; then :
  13171. $as_echo_n "(cached) " >&6
  13172. else
  13173. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13174. case `$LD -v 2>&1 </dev/null` in
  13175. *GNU* | *'with BFD'*)
  13176. acl_cv_prog_gnu_ld=yes
  13177. ;;
  13178. *)
  13179. acl_cv_prog_gnu_ld=no
  13180. ;;
  13181. esac
  13182. fi
  13183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  13184. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  13185. with_gnu_ld=$acl_cv_prog_gnu_ld
  13186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  13187. $as_echo_n "checking for shared library run path origin... " >&6; }
  13188. if ${acl_cv_rpath+:} false; then :
  13189. $as_echo_n "(cached) " >&6
  13190. else
  13191. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  13192. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  13193. . ./conftest.sh
  13194. rm -f ./conftest.sh
  13195. acl_cv_rpath=done
  13196. fi
  13197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  13198. $as_echo "$acl_cv_rpath" >&6; }
  13199. wl="$acl_cv_wl"
  13200. acl_libext="$acl_cv_libext"
  13201. acl_shlibext="$acl_cv_shlibext"
  13202. acl_libname_spec="$acl_cv_libname_spec"
  13203. acl_library_names_spec="$acl_cv_library_names_spec"
  13204. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  13205. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  13206. acl_hardcode_direct="$acl_cv_hardcode_direct"
  13207. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  13208. # Check whether --enable-rpath was given.
  13209. if test "${enable_rpath+set}" = set; then :
  13210. enableval=$enable_rpath; :
  13211. else
  13212. enable_rpath=yes
  13213. fi
  13214. acl_libdirstem=lib
  13215. acl_libdirstem2=
  13216. case "$host_os" in
  13217. solaris*)
  13218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
  13219. $as_echo_n "checking for 64-bit host... " >&6; }
  13220. if ${gl_cv_solaris_64bit+:} false; then :
  13221. $as_echo_n "(cached) " >&6
  13222. else
  13223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13224. /* end confdefs.h. */
  13225. #ifdef _LP64
  13226. sixtyfour bits
  13227. #endif
  13228. _ACEOF
  13229. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13230. $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
  13231. gl_cv_solaris_64bit=yes
  13232. else
  13233. gl_cv_solaris_64bit=no
  13234. fi
  13235. rm -f conftest*
  13236. fi
  13237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
  13238. $as_echo "$gl_cv_solaris_64bit" >&6; }
  13239. if test $gl_cv_solaris_64bit = yes; then
  13240. acl_libdirstem=lib/64
  13241. case "$host_cpu" in
  13242. sparc*) acl_libdirstem2=lib/sparcv9 ;;
  13243. i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
  13244. esac
  13245. fi
  13246. ;;
  13247. *)
  13248. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  13249. if test -n "$searchpath"; then
  13250. acl_save_IFS="${IFS= }"; IFS=":"
  13251. for searchdir in $searchpath; do
  13252. if test -d "$searchdir"; then
  13253. case "$searchdir" in
  13254. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  13255. */../ | */.. )
  13256. # Better ignore directories of this form. They are misleading.
  13257. ;;
  13258. *) searchdir=`cd "$searchdir" && pwd`
  13259. case "$searchdir" in
  13260. */lib64 ) acl_libdirstem=lib64 ;;
  13261. esac ;;
  13262. esac
  13263. fi
  13264. done
  13265. IFS="$acl_save_IFS"
  13266. fi
  13267. ;;
  13268. esac
  13269. test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
  13270. use_additional=yes
  13271. acl_save_prefix="$prefix"
  13272. prefix="$acl_final_prefix"
  13273. acl_save_exec_prefix="$exec_prefix"
  13274. exec_prefix="$acl_final_exec_prefix"
  13275. eval additional_includedir=\"$includedir\"
  13276. eval additional_libdir=\"$libdir\"
  13277. exec_prefix="$acl_save_exec_prefix"
  13278. prefix="$acl_save_prefix"
  13279. # Check whether --with-libiconv-prefix was given.
  13280. if test "${with_libiconv_prefix+set}" = set; then :
  13281. withval=$with_libiconv_prefix;
  13282. if test "X$withval" = "Xno"; then
  13283. use_additional=no
  13284. else
  13285. if test "X$withval" = "X"; then
  13286. acl_save_prefix="$prefix"
  13287. prefix="$acl_final_prefix"
  13288. acl_save_exec_prefix="$exec_prefix"
  13289. exec_prefix="$acl_final_exec_prefix"
  13290. eval additional_includedir=\"$includedir\"
  13291. eval additional_libdir=\"$libdir\"
  13292. exec_prefix="$acl_save_exec_prefix"
  13293. prefix="$acl_save_prefix"
  13294. else
  13295. additional_includedir="$withval/include"
  13296. additional_libdir="$withval/$acl_libdirstem"
  13297. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  13298. && ! test -d "$withval/$acl_libdirstem"; then
  13299. additional_libdir="$withval/$acl_libdirstem2"
  13300. fi
  13301. fi
  13302. fi
  13303. fi
  13304. LIBICONV=
  13305. LTLIBICONV=
  13306. INCICONV=
  13307. LIBICONV_PREFIX=
  13308. HAVE_LIBICONV=
  13309. rpathdirs=
  13310. ltrpathdirs=
  13311. names_already_handled=
  13312. names_next_round='iconv '
  13313. while test -n "$names_next_round"; do
  13314. names_this_round="$names_next_round"
  13315. names_next_round=
  13316. for name in $names_this_round; do
  13317. already_handled=
  13318. for n in $names_already_handled; do
  13319. if test "$n" = "$name"; then
  13320. already_handled=yes
  13321. break
  13322. fi
  13323. done
  13324. if test -z "$already_handled"; then
  13325. names_already_handled="$names_already_handled $name"
  13326. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  13327. eval value=\"\$HAVE_LIB$uppername\"
  13328. if test -n "$value"; then
  13329. if test "$value" = yes; then
  13330. eval value=\"\$LIB$uppername\"
  13331. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  13332. eval value=\"\$LTLIB$uppername\"
  13333. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  13334. else
  13335. :
  13336. fi
  13337. else
  13338. found_dir=
  13339. found_la=
  13340. found_so=
  13341. found_a=
  13342. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  13343. if test -n "$acl_shlibext"; then
  13344. shrext=".$acl_shlibext" # typically: shrext=.so
  13345. else
  13346. shrext=
  13347. fi
  13348. if test $use_additional = yes; then
  13349. dir="$additional_libdir"
  13350. if test -n "$acl_shlibext"; then
  13351. if test -f "$dir/$libname$shrext"; then
  13352. found_dir="$dir"
  13353. found_so="$dir/$libname$shrext"
  13354. else
  13355. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13356. ver=`(cd "$dir" && \
  13357. for f in "$libname$shrext".*; do echo "$f"; done \
  13358. | sed -e "s,^$libname$shrext\\\\.,," \
  13359. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13360. | sed 1q ) 2>/dev/null`
  13361. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13362. found_dir="$dir"
  13363. found_so="$dir/$libname$shrext.$ver"
  13364. fi
  13365. else
  13366. eval library_names=\"$acl_library_names_spec\"
  13367. for f in $library_names; do
  13368. if test -f "$dir/$f"; then
  13369. found_dir="$dir"
  13370. found_so="$dir/$f"
  13371. break
  13372. fi
  13373. done
  13374. fi
  13375. fi
  13376. fi
  13377. if test "X$found_dir" = "X"; then
  13378. if test -f "$dir/$libname.$acl_libext"; then
  13379. found_dir="$dir"
  13380. found_a="$dir/$libname.$acl_libext"
  13381. fi
  13382. fi
  13383. if test "X$found_dir" != "X"; then
  13384. if test -f "$dir/$libname.la"; then
  13385. found_la="$dir/$libname.la"
  13386. fi
  13387. fi
  13388. fi
  13389. if test "X$found_dir" = "X"; then
  13390. for x in $LDFLAGS $LTLIBICONV; do
  13391. acl_save_prefix="$prefix"
  13392. prefix="$acl_final_prefix"
  13393. acl_save_exec_prefix="$exec_prefix"
  13394. exec_prefix="$acl_final_exec_prefix"
  13395. eval x=\"$x\"
  13396. exec_prefix="$acl_save_exec_prefix"
  13397. prefix="$acl_save_prefix"
  13398. case "$x" in
  13399. -L*)
  13400. dir=`echo "X$x" | sed -e 's/^X-L//'`
  13401. if test -n "$acl_shlibext"; then
  13402. if test -f "$dir/$libname$shrext"; then
  13403. found_dir="$dir"
  13404. found_so="$dir/$libname$shrext"
  13405. else
  13406. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13407. ver=`(cd "$dir" && \
  13408. for f in "$libname$shrext".*; do echo "$f"; done \
  13409. | sed -e "s,^$libname$shrext\\\\.,," \
  13410. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13411. | sed 1q ) 2>/dev/null`
  13412. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13413. found_dir="$dir"
  13414. found_so="$dir/$libname$shrext.$ver"
  13415. fi
  13416. else
  13417. eval library_names=\"$acl_library_names_spec\"
  13418. for f in $library_names; do
  13419. if test -f "$dir/$f"; then
  13420. found_dir="$dir"
  13421. found_so="$dir/$f"
  13422. break
  13423. fi
  13424. done
  13425. fi
  13426. fi
  13427. fi
  13428. if test "X$found_dir" = "X"; then
  13429. if test -f "$dir/$libname.$acl_libext"; then
  13430. found_dir="$dir"
  13431. found_a="$dir/$libname.$acl_libext"
  13432. fi
  13433. fi
  13434. if test "X$found_dir" != "X"; then
  13435. if test -f "$dir/$libname.la"; then
  13436. found_la="$dir/$libname.la"
  13437. fi
  13438. fi
  13439. ;;
  13440. esac
  13441. if test "X$found_dir" != "X"; then
  13442. break
  13443. fi
  13444. done
  13445. fi
  13446. if test "X$found_dir" != "X"; then
  13447. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  13448. if test "X$found_so" != "X"; then
  13449. if test "$enable_rpath" = no \
  13450. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  13451. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  13452. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13453. else
  13454. haveit=
  13455. for x in $ltrpathdirs; do
  13456. if test "X$x" = "X$found_dir"; then
  13457. haveit=yes
  13458. break
  13459. fi
  13460. done
  13461. if test -z "$haveit"; then
  13462. ltrpathdirs="$ltrpathdirs $found_dir"
  13463. fi
  13464. if test "$acl_hardcode_direct" = yes; then
  13465. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13466. else
  13467. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  13468. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13469. haveit=
  13470. for x in $rpathdirs; do
  13471. if test "X$x" = "X$found_dir"; then
  13472. haveit=yes
  13473. break
  13474. fi
  13475. done
  13476. if test -z "$haveit"; then
  13477. rpathdirs="$rpathdirs $found_dir"
  13478. fi
  13479. else
  13480. haveit=
  13481. for x in $LDFLAGS $LIBICONV; do
  13482. acl_save_prefix="$prefix"
  13483. prefix="$acl_final_prefix"
  13484. acl_save_exec_prefix="$exec_prefix"
  13485. exec_prefix="$acl_final_exec_prefix"
  13486. eval x=\"$x\"
  13487. exec_prefix="$acl_save_exec_prefix"
  13488. prefix="$acl_save_prefix"
  13489. if test "X$x" = "X-L$found_dir"; then
  13490. haveit=yes
  13491. break
  13492. fi
  13493. done
  13494. if test -z "$haveit"; then
  13495. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  13496. fi
  13497. if test "$acl_hardcode_minus_L" != no; then
  13498. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13499. else
  13500. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13501. fi
  13502. fi
  13503. fi
  13504. fi
  13505. else
  13506. if test "X$found_a" != "X"; then
  13507. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  13508. else
  13509. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  13510. fi
  13511. fi
  13512. additional_includedir=
  13513. case "$found_dir" in
  13514. */$acl_libdirstem | */$acl_libdirstem/)
  13515. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13516. if test "$name" = 'iconv'; then
  13517. LIBICONV_PREFIX="$basedir"
  13518. fi
  13519. additional_includedir="$basedir/include"
  13520. ;;
  13521. */$acl_libdirstem2 | */$acl_libdirstem2/)
  13522. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  13523. if test "$name" = 'iconv'; then
  13524. LIBICONV_PREFIX="$basedir"
  13525. fi
  13526. additional_includedir="$basedir/include"
  13527. ;;
  13528. esac
  13529. if test "X$additional_includedir" != "X"; then
  13530. if test "X$additional_includedir" != "X/usr/include"; then
  13531. haveit=
  13532. if test "X$additional_includedir" = "X/usr/local/include"; then
  13533. if test -n "$GCC"; then
  13534. case $host_os in
  13535. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13536. esac
  13537. fi
  13538. fi
  13539. if test -z "$haveit"; then
  13540. for x in $CPPFLAGS $INCICONV; do
  13541. acl_save_prefix="$prefix"
  13542. prefix="$acl_final_prefix"
  13543. acl_save_exec_prefix="$exec_prefix"
  13544. exec_prefix="$acl_final_exec_prefix"
  13545. eval x=\"$x\"
  13546. exec_prefix="$acl_save_exec_prefix"
  13547. prefix="$acl_save_prefix"
  13548. if test "X$x" = "X-I$additional_includedir"; then
  13549. haveit=yes
  13550. break
  13551. fi
  13552. done
  13553. if test -z "$haveit"; then
  13554. if test -d "$additional_includedir"; then
  13555. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  13556. fi
  13557. fi
  13558. fi
  13559. fi
  13560. fi
  13561. if test -n "$found_la"; then
  13562. save_libdir="$libdir"
  13563. case "$found_la" in
  13564. */* | *\\*) . "$found_la" ;;
  13565. *) . "./$found_la" ;;
  13566. esac
  13567. libdir="$save_libdir"
  13568. for dep in $dependency_libs; do
  13569. case "$dep" in
  13570. -L*)
  13571. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13572. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  13573. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  13574. haveit=
  13575. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  13576. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  13577. if test -n "$GCC"; then
  13578. case $host_os in
  13579. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13580. esac
  13581. fi
  13582. fi
  13583. if test -z "$haveit"; then
  13584. haveit=
  13585. for x in $LDFLAGS $LIBICONV; do
  13586. acl_save_prefix="$prefix"
  13587. prefix="$acl_final_prefix"
  13588. acl_save_exec_prefix="$exec_prefix"
  13589. exec_prefix="$acl_final_exec_prefix"
  13590. eval x=\"$x\"
  13591. exec_prefix="$acl_save_exec_prefix"
  13592. prefix="$acl_save_prefix"
  13593. if test "X$x" = "X-L$additional_libdir"; then
  13594. haveit=yes
  13595. break
  13596. fi
  13597. done
  13598. if test -z "$haveit"; then
  13599. if test -d "$additional_libdir"; then
  13600. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  13601. fi
  13602. fi
  13603. haveit=
  13604. for x in $LDFLAGS $LTLIBICONV; do
  13605. acl_save_prefix="$prefix"
  13606. prefix="$acl_final_prefix"
  13607. acl_save_exec_prefix="$exec_prefix"
  13608. exec_prefix="$acl_final_exec_prefix"
  13609. eval x=\"$x\"
  13610. exec_prefix="$acl_save_exec_prefix"
  13611. prefix="$acl_save_prefix"
  13612. if test "X$x" = "X-L$additional_libdir"; then
  13613. haveit=yes
  13614. break
  13615. fi
  13616. done
  13617. if test -z "$haveit"; then
  13618. if test -d "$additional_libdir"; then
  13619. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  13620. fi
  13621. fi
  13622. fi
  13623. fi
  13624. ;;
  13625. -R*)
  13626. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13627. if test "$enable_rpath" != no; then
  13628. haveit=
  13629. for x in $rpathdirs; do
  13630. if test "X$x" = "X$dir"; then
  13631. haveit=yes
  13632. break
  13633. fi
  13634. done
  13635. if test -z "$haveit"; then
  13636. rpathdirs="$rpathdirs $dir"
  13637. fi
  13638. haveit=
  13639. for x in $ltrpathdirs; do
  13640. if test "X$x" = "X$dir"; then
  13641. haveit=yes
  13642. break
  13643. fi
  13644. done
  13645. if test -z "$haveit"; then
  13646. ltrpathdirs="$ltrpathdirs $dir"
  13647. fi
  13648. fi
  13649. ;;
  13650. -l*)
  13651. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13652. ;;
  13653. *.la)
  13654. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13655. ;;
  13656. *)
  13657. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  13658. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  13659. ;;
  13660. esac
  13661. done
  13662. fi
  13663. else
  13664. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13665. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  13666. fi
  13667. fi
  13668. fi
  13669. done
  13670. done
  13671. if test "X$rpathdirs" != "X"; then
  13672. if test -n "$acl_hardcode_libdir_separator"; then
  13673. alldirs=
  13674. for found_dir in $rpathdirs; do
  13675. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13676. done
  13677. acl_save_libdir="$libdir"
  13678. libdir="$alldirs"
  13679. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13680. libdir="$acl_save_libdir"
  13681. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13682. else
  13683. for found_dir in $rpathdirs; do
  13684. acl_save_libdir="$libdir"
  13685. libdir="$found_dir"
  13686. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13687. libdir="$acl_save_libdir"
  13688. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13689. done
  13690. fi
  13691. fi
  13692. if test "X$ltrpathdirs" != "X"; then
  13693. for found_dir in $ltrpathdirs; do
  13694. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  13695. done
  13696. fi
  13697. am_save_CPPFLAGS="$CPPFLAGS"
  13698. for element in $INCICONV; do
  13699. haveit=
  13700. for x in $CPPFLAGS; do
  13701. acl_save_prefix="$prefix"
  13702. prefix="$acl_final_prefix"
  13703. acl_save_exec_prefix="$exec_prefix"
  13704. exec_prefix="$acl_final_exec_prefix"
  13705. eval x=\"$x\"
  13706. exec_prefix="$acl_save_exec_prefix"
  13707. prefix="$acl_save_prefix"
  13708. if test "X$x" = "X$element"; then
  13709. haveit=yes
  13710. break
  13711. fi
  13712. done
  13713. if test -z "$haveit"; then
  13714. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13715. fi
  13716. done
  13717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  13718. $as_echo_n "checking for iconv... " >&6; }
  13719. if ${am_cv_func_iconv+:} false; then :
  13720. $as_echo_n "(cached) " >&6
  13721. else
  13722. am_cv_func_iconv="no, consider installing GNU libiconv"
  13723. am_cv_lib_iconv=no
  13724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13725. /* end confdefs.h. */
  13726. #include <stdlib.h>
  13727. #include <iconv.h>
  13728. int
  13729. main ()
  13730. {
  13731. iconv_t cd = iconv_open("","");
  13732. iconv(cd,NULL,NULL,NULL,NULL);
  13733. iconv_close(cd);
  13734. ;
  13735. return 0;
  13736. }
  13737. _ACEOF
  13738. if ac_fn_c_try_link "$LINENO"; then :
  13739. am_cv_func_iconv=yes
  13740. fi
  13741. rm -f core conftest.err conftest.$ac_objext \
  13742. conftest$ac_exeext conftest.$ac_ext
  13743. if test "$am_cv_func_iconv" != yes; then
  13744. am_save_LIBS="$LIBS"
  13745. LIBS="$LIBS $LIBICONV"
  13746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13747. /* end confdefs.h. */
  13748. #include <stdlib.h>
  13749. #include <iconv.h>
  13750. int
  13751. main ()
  13752. {
  13753. iconv_t cd = iconv_open("","");
  13754. iconv(cd,NULL,NULL,NULL,NULL);
  13755. iconv_close(cd);
  13756. ;
  13757. return 0;
  13758. }
  13759. _ACEOF
  13760. if ac_fn_c_try_link "$LINENO"; then :
  13761. am_cv_lib_iconv=yes
  13762. am_cv_func_iconv=yes
  13763. fi
  13764. rm -f core conftest.err conftest.$ac_objext \
  13765. conftest$ac_exeext conftest.$ac_ext
  13766. LIBS="$am_save_LIBS"
  13767. fi
  13768. fi
  13769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  13770. $as_echo "$am_cv_func_iconv" >&6; }
  13771. if test "$am_cv_func_iconv" = yes; then
  13772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  13773. $as_echo_n "checking for working iconv... " >&6; }
  13774. if ${am_cv_func_iconv_works+:} false; then :
  13775. $as_echo_n "(cached) " >&6
  13776. else
  13777. am_save_LIBS="$LIBS"
  13778. if test $am_cv_lib_iconv = yes; then
  13779. LIBS="$LIBS $LIBICONV"
  13780. fi
  13781. am_cv_func_iconv_works=no
  13782. for ac_iconv_const in '' 'const'; do
  13783. if test "$cross_compiling" = yes; then :
  13784. case "$host_os" in
  13785. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  13786. *) am_cv_func_iconv_works="guessing yes" ;;
  13787. esac
  13788. else
  13789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13790. /* end confdefs.h. */
  13791. #include <iconv.h>
  13792. #include <string.h>
  13793. #ifndef ICONV_CONST
  13794. # define ICONV_CONST $ac_iconv_const
  13795. #endif
  13796. int
  13797. main ()
  13798. {
  13799. int result = 0;
  13800. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  13801. returns. */
  13802. {
  13803. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13804. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13805. {
  13806. static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
  13807. char buf[10];
  13808. ICONV_CONST char *inptr = input;
  13809. size_t inbytesleft = strlen (input);
  13810. char *outptr = buf;
  13811. size_t outbytesleft = sizeof (buf);
  13812. size_t res = iconv (cd_utf8_to_88591,
  13813. &inptr, &inbytesleft,
  13814. &outptr, &outbytesleft);
  13815. if (res == 0)
  13816. result |= 1;
  13817. iconv_close (cd_utf8_to_88591);
  13818. }
  13819. }
  13820. /* Test against Solaris 10 bug: Failures are not distinguishable from
  13821. successful returns. */
  13822. {
  13823. iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  13824. if (cd_ascii_to_88591 != (iconv_t)(-1))
  13825. {
  13826. static ICONV_CONST char input[] = "\263";
  13827. char buf[10];
  13828. ICONV_CONST char *inptr = input;
  13829. size_t inbytesleft = strlen (input);
  13830. char *outptr = buf;
  13831. size_t outbytesleft = sizeof (buf);
  13832. size_t res = iconv (cd_ascii_to_88591,
  13833. &inptr, &inbytesleft,
  13834. &outptr, &outbytesleft);
  13835. if (res == 0)
  13836. result |= 2;
  13837. iconv_close (cd_ascii_to_88591);
  13838. }
  13839. }
  13840. /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
  13841. {
  13842. iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
  13843. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13844. {
  13845. static ICONV_CONST char input[] = "\304";
  13846. static char buf[2] = { (char)0xDE, (char)0xAD };
  13847. ICONV_CONST char *inptr = input;
  13848. size_t inbytesleft = 1;
  13849. char *outptr = buf;
  13850. size_t outbytesleft = 1;
  13851. size_t res = iconv (cd_88591_to_utf8,
  13852. &inptr, &inbytesleft,
  13853. &outptr, &outbytesleft);
  13854. if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
  13855. result |= 4;
  13856. iconv_close (cd_88591_to_utf8);
  13857. }
  13858. }
  13859. #if 0 /* This bug could be worked around by the caller. */
  13860. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  13861. {
  13862. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  13863. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13864. {
  13865. static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  13866. char buf[50];
  13867. ICONV_CONST char *inptr = input;
  13868. size_t inbytesleft = strlen (input);
  13869. char *outptr = buf;
  13870. size_t outbytesleft = sizeof (buf);
  13871. size_t res = iconv (cd_88591_to_utf8,
  13872. &inptr, &inbytesleft,
  13873. &outptr, &outbytesleft);
  13874. if ((int)res > 0)
  13875. result |= 8;
  13876. iconv_close (cd_88591_to_utf8);
  13877. }
  13878. }
  13879. #endif
  13880. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  13881. provided. */
  13882. if (/* Try standardized names. */
  13883. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  13884. /* Try IRIX, OSF/1 names. */
  13885. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  13886. /* Try AIX names. */
  13887. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  13888. /* Try HP-UX names. */
  13889. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  13890. result |= 16;
  13891. return result;
  13892. ;
  13893. return 0;
  13894. }
  13895. _ACEOF
  13896. if ac_fn_c_try_run "$LINENO"; then :
  13897. am_cv_func_iconv_works=yes
  13898. fi
  13899. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13900. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13901. fi
  13902. test "$am_cv_func_iconv_works" = no || break
  13903. done
  13904. LIBS="$am_save_LIBS"
  13905. fi
  13906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  13907. $as_echo "$am_cv_func_iconv_works" >&6; }
  13908. case "$am_cv_func_iconv_works" in
  13909. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13910. *) am_func_iconv=yes ;;
  13911. esac
  13912. else
  13913. am_func_iconv=no am_cv_lib_iconv=no
  13914. fi
  13915. if test "$am_func_iconv" = yes; then
  13916. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  13917. fi
  13918. if test "$am_cv_lib_iconv" = yes; then
  13919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  13920. $as_echo_n "checking how to link with libiconv... " >&6; }
  13921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  13922. $as_echo "$LIBICONV" >&6; }
  13923. else
  13924. CPPFLAGS="$am_save_CPPFLAGS"
  13925. LIBICONV=
  13926. LTLIBICONV=
  13927. fi
  13928. if test "$am_cv_func_iconv" = yes; then
  13929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  13930. $as_echo_n "checking for iconv declaration... " >&6; }
  13931. if ${am_cv_proto_iconv+:} false; then :
  13932. $as_echo_n "(cached) " >&6
  13933. else
  13934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13935. /* end confdefs.h. */
  13936. #include <stdlib.h>
  13937. #include <iconv.h>
  13938. extern
  13939. #ifdef __cplusplus
  13940. "C"
  13941. #endif
  13942. #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
  13943. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  13944. #else
  13945. size_t iconv();
  13946. #endif
  13947. int
  13948. main ()
  13949. {
  13950. ;
  13951. return 0;
  13952. }
  13953. _ACEOF
  13954. if ac_fn_c_try_compile "$LINENO"; then :
  13955. am_cv_proto_iconv_arg1=""
  13956. else
  13957. am_cv_proto_iconv_arg1="const"
  13958. fi
  13959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13960. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  13961. fi
  13962. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  13963. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  13964. $am_cv_proto_iconv" >&5
  13965. $as_echo "
  13966. $am_cv_proto_iconv" >&6; }
  13967. cat >>confdefs.h <<_ACEOF
  13968. #define ICONV_CONST $am_cv_proto_iconv_arg1
  13969. _ACEOF
  13970. fi
  13971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  13972. $as_echo_n "checking for cos in -lm... " >&6; }
  13973. if ${ac_cv_lib_m_cos+:} false; then :
  13974. $as_echo_n "(cached) " >&6
  13975. else
  13976. ac_check_lib_save_LIBS=$LIBS
  13977. LIBS="-lm $LIBS"
  13978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13979. /* end confdefs.h. */
  13980. /* Override any GCC internal prototype to avoid an error.
  13981. Use char because int might match the return type of a GCC
  13982. builtin and then its argument prototype would still apply. */
  13983. #ifdef __cplusplus
  13984. extern "C"
  13985. #endif
  13986. char cos ();
  13987. int
  13988. main ()
  13989. {
  13990. return cos ();
  13991. ;
  13992. return 0;
  13993. }
  13994. _ACEOF
  13995. if ac_fn_c_try_link "$LINENO"; then :
  13996. ac_cv_lib_m_cos=yes
  13997. else
  13998. ac_cv_lib_m_cos=no
  13999. fi
  14000. rm -f core conftest.err conftest.$ac_objext \
  14001. conftest$ac_exeext conftest.$ac_ext
  14002. LIBS=$ac_check_lib_save_LIBS
  14003. fi
  14004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  14005. $as_echo "$ac_cv_lib_m_cos" >&6; }
  14006. if test "x$ac_cv_lib_m_cos" = xyes; then :
  14007. USE_LIBM="-lm"
  14008. fi
  14009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lffm" >&5
  14010. $as_echo_n "checking for cos in -lffm... " >&6; }
  14011. if ${ac_cv_lib_ffm_cos+:} false; then :
  14012. $as_echo_n "(cached) " >&6
  14013. else
  14014. ac_check_lib_save_LIBS=$LIBS
  14015. LIBS="-lffm $LIBS"
  14016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14017. /* end confdefs.h. */
  14018. /* Override any GCC internal prototype to avoid an error.
  14019. Use char because int might match the return type of a GCC
  14020. builtin and then its argument prototype would still apply. */
  14021. #ifdef __cplusplus
  14022. extern "C"
  14023. #endif
  14024. char cos ();
  14025. int
  14026. main ()
  14027. {
  14028. return cos ();
  14029. ;
  14030. return 0;
  14031. }
  14032. _ACEOF
  14033. if ac_fn_c_try_link "$LINENO"; then :
  14034. ac_cv_lib_ffm_cos=yes
  14035. else
  14036. ac_cv_lib_ffm_cos=no
  14037. fi
  14038. rm -f core conftest.err conftest.$ac_objext \
  14039. conftest$ac_exeext conftest.$ac_ext
  14040. LIBS=$ac_check_lib_save_LIBS
  14041. fi
  14042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffm_cos" >&5
  14043. $as_echo "$ac_cv_lib_ffm_cos" >&6; }
  14044. if test "x$ac_cv_lib_ffm_cos" = xyes; then :
  14045. USE_LIBM="-lffm -lm"
  14046. fi
  14047. # Check whether --enable-cpml was given.
  14048. if test "${enable_cpml+set}" = set; then :
  14049. enableval=$enable_cpml; CONFIG_CPML="no"
  14050. else
  14051. CONFIG_CPML="yes"
  14052. fi
  14053. if test "${CONFIG_CPML}" = yes; then
  14054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lcpml" >&5
  14055. $as_echo_n "checking for cos in -lcpml... " >&6; }
  14056. if ${ac_cv_lib_cpml_cos+:} false; then :
  14057. $as_echo_n "(cached) " >&6
  14058. else
  14059. ac_check_lib_save_LIBS=$LIBS
  14060. LIBS="-lcpml $LIBS"
  14061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14062. /* end confdefs.h. */
  14063. /* Override any GCC internal prototype to avoid an error.
  14064. Use char because int might match the return type of a GCC
  14065. builtin and then its argument prototype would still apply. */
  14066. #ifdef __cplusplus
  14067. extern "C"
  14068. #endif
  14069. char cos ();
  14070. int
  14071. main ()
  14072. {
  14073. return cos ();
  14074. ;
  14075. return 0;
  14076. }
  14077. _ACEOF
  14078. if ac_fn_c_try_link "$LINENO"; then :
  14079. ac_cv_lib_cpml_cos=yes
  14080. else
  14081. ac_cv_lib_cpml_cos=no
  14082. fi
  14083. rm -f core conftest.err conftest.$ac_objext \
  14084. conftest$ac_exeext conftest.$ac_ext
  14085. LIBS=$ac_check_lib_save_LIBS
  14086. fi
  14087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpml_cos" >&5
  14088. $as_echo "$ac_cv_lib_cpml_cos" >&6; }
  14089. if test "x$ac_cv_lib_cpml_cos" = xyes; then :
  14090. USE_LIBM="-lcpml"
  14091. fi
  14092. fi
  14093. CONFIG_MATH_LIB="${USE_LIBM}"
  14094. # Check whether --with-gtk-prefix was given.
  14095. if test "${with_gtk_prefix+set}" = set; then :
  14096. withval=$with_gtk_prefix; gtk_config_prefix="$withval"
  14097. else
  14098. gtk_config_prefix=""
  14099. fi
  14100. # Check whether --with-gtk-exec-prefix was given.
  14101. if test "${with_gtk_exec_prefix+set}" = set; then :
  14102. withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
  14103. else
  14104. gtk_config_exec_prefix=""
  14105. fi
  14106. # Check whether --enable-gtktest was given.
  14107. if test "${enable_gtktest+set}" = set; then :
  14108. enableval=$enable_gtktest;
  14109. else
  14110. enable_gtktest=yes
  14111. fi
  14112. for module in .
  14113. do
  14114. case "$module" in
  14115. gthread)
  14116. gtk_config_args="$gtk_config_args gthread"
  14117. ;;
  14118. esac
  14119. done
  14120. if test x$gtk_config_exec_prefix != x ; then
  14121. gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  14122. if test x${GTK_CONFIG+set} != xset ; then
  14123. GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  14124. fi
  14125. fi
  14126. if test x$gtk_config_prefix != x ; then
  14127. gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  14128. if test x${GTK_CONFIG+set} != xset ; then
  14129. GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  14130. fi
  14131. fi
  14132. # Extract the first word of "gtk-config", so it can be a program name with args.
  14133. set dummy gtk-config; ac_word=$2
  14134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14135. $as_echo_n "checking for $ac_word... " >&6; }
  14136. if ${ac_cv_path_GTK_CONFIG+:} false; then :
  14137. $as_echo_n "(cached) " >&6
  14138. else
  14139. case $GTK_CONFIG in
  14140. [\\/]* | ?:[\\/]*)
  14141. ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  14142. ;;
  14143. *)
  14144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14145. for as_dir in $PATH
  14146. do
  14147. IFS=$as_save_IFS
  14148. test -z "$as_dir" && as_dir=.
  14149. for ac_exec_ext in '' $ac_executable_extensions; do
  14150. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14151. ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14153. break 2
  14154. fi
  14155. done
  14156. done
  14157. IFS=$as_save_IFS
  14158. test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  14159. ;;
  14160. esac
  14161. fi
  14162. GTK_CONFIG=$ac_cv_path_GTK_CONFIG
  14163. if test -n "$GTK_CONFIG"; then
  14164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5
  14165. $as_echo "$GTK_CONFIG" >&6; }
  14166. else
  14167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14168. $as_echo "no" >&6; }
  14169. fi
  14170. min_gtk_version=1.2.0
  14171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
  14172. $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
  14173. no_gtk=""
  14174. if test "$GTK_CONFIG" = "no" ; then
  14175. no_gtk=yes
  14176. else
  14177. GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  14178. GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  14179. gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  14180. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  14181. gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  14182. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  14183. gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  14184. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  14185. if test "x$enable_gtktest" = "xyes" ; then
  14186. ac_save_CFLAGS="$CFLAGS"
  14187. ac_save_LIBS="$LIBS"
  14188. CFLAGS="$CFLAGS $GTK_CFLAGS"
  14189. LIBS="$GTK_LIBS $LIBS"
  14190. rm -f conf.gtktest
  14191. if test "$cross_compiling" = yes; then :
  14192. echo $ac_n "cross compiling; assumed OK... $ac_c"
  14193. else
  14194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14195. /* end confdefs.h. */
  14196. #include <gtk/gtk.h>
  14197. #include <stdio.h>
  14198. #include <stdlib.h>
  14199. int
  14200. main ()
  14201. {
  14202. int major, minor, micro;
  14203. char *tmp_version;
  14204. system ("touch conf.gtktest");
  14205. /* HP/UX 9 (%@#!) writes to sscanf strings */
  14206. tmp_version = g_strdup("$min_gtk_version");
  14207. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  14208. printf("%s, bad version string\n", "$min_gtk_version");
  14209. exit(1);
  14210. }
  14211. if ((gtk_major_version != $gtk_config_major_version) ||
  14212. (gtk_minor_version != $gtk_config_minor_version) ||
  14213. (gtk_micro_version != $gtk_config_micro_version))
  14214. {
  14215. printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
  14216. $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  14217. gtk_major_version, gtk_minor_version, gtk_micro_version);
  14218. printf ("*** was found! If gtk-config was correct, then it is best\n");
  14219. printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  14220. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  14221. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  14222. printf("*** required on your system.\n");
  14223. printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
  14224. printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
  14225. printf("*** before re-running configure\n");
  14226. }
  14227. #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  14228. else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  14229. (gtk_minor_version != GTK_MINOR_VERSION) ||
  14230. (gtk_micro_version != GTK_MICRO_VERSION))
  14231. {
  14232. printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  14233. GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  14234. printf("*** library (version %d.%d.%d)\n",
  14235. gtk_major_version, gtk_minor_version, gtk_micro_version);
  14236. }
  14237. #endif /* defined (GTK_MAJOR_VERSION) ... */
  14238. else
  14239. {
  14240. if ((gtk_major_version > major) ||
  14241. ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  14242. ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  14243. {
  14244. return 0;
  14245. }
  14246. else
  14247. {
  14248. printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  14249. gtk_major_version, gtk_minor_version, gtk_micro_version);
  14250. printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  14251. major, minor, micro);
  14252. printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  14253. printf("***\n");
  14254. printf("*** If you have already installed a sufficiently new version, this error\n");
  14255. printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
  14256. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  14257. printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
  14258. printf("*** correct copy of gtk-config. (In this case, you will have to\n");
  14259. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  14260. printf("*** so that the correct libraries are found at run-time))\n");
  14261. }
  14262. }
  14263. return 1;
  14264. }
  14265. _ACEOF
  14266. if ac_fn_c_try_run "$LINENO"; then :
  14267. else
  14268. no_gtk=yes
  14269. fi
  14270. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14271. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14272. fi
  14273. CFLAGS="$ac_save_CFLAGS"
  14274. LIBS="$ac_save_LIBS"
  14275. fi
  14276. fi
  14277. if test "x$no_gtk" = x ; then
  14278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14279. $as_echo "yes" >&6; }
  14280. HAVE_GTK="yes"
  14281. else
  14282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14283. $as_echo "no" >&6; }
  14284. if test "$GTK_CONFIG" = "no" ; then
  14285. echo "*** The gtk-config script installed by GTK could not be found"
  14286. echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
  14287. echo "*** your path, or set the GTK_CONFIG environment variable to the"
  14288. echo "*** full path to gtk-config."
  14289. else
  14290. if test -f conf.gtktest ; then
  14291. :
  14292. else
  14293. echo "*** Could not run GTK test program, checking why..."
  14294. CFLAGS="$CFLAGS $GTK_CFLAGS"
  14295. LIBS="$LIBS $GTK_LIBS"
  14296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14297. /* end confdefs.h. */
  14298. #include <gtk/gtk.h>
  14299. #include <stdio.h>
  14300. int
  14301. main ()
  14302. {
  14303. return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
  14304. ;
  14305. return 0;
  14306. }
  14307. _ACEOF
  14308. if ac_fn_c_try_link "$LINENO"; then :
  14309. echo "*** The test program compiled, but did not run. This usually means"
  14310. echo "*** that the run-time linker is not finding GTK or finding the wrong"
  14311. echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
  14312. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  14313. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  14314. echo "*** is required on your system"
  14315. echo "***"
  14316. echo "*** If you have an old version installed, it is best to remove it, although"
  14317. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  14318. echo "***"
  14319. echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  14320. echo "*** came with the system with the command"
  14321. echo "***"
  14322. echo "*** rpm --erase --nodeps gtk gtk-devel"
  14323. else
  14324. echo "*** The test program failed to compile or link. See the file config.log for the"
  14325. echo "*** exact error that occured. This usually means GTK was incorrectly installed"
  14326. echo "*** or that you have moved GTK since it was installed. In the latter case, you"
  14327. echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
  14328. fi
  14329. rm -f core conftest.err conftest.$ac_objext \
  14330. conftest$ac_exeext conftest.$ac_ext
  14331. CFLAGS="$ac_save_CFLAGS"
  14332. LIBS="$ac_save_LIBS"
  14333. fi
  14334. fi
  14335. GTK_CFLAGS=""
  14336. GTK_LIBS=""
  14337. HAVE_GTK="no"
  14338. fi
  14339. rm -f conf.gtktest
  14340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking use of ElectricFence malloc debugging" >&5
  14341. $as_echo_n "checking use of ElectricFence malloc debugging... " >&6; }
  14342. # Check whether --enable-efence was given.
  14343. if test "${enable_efence+set}" = set; then :
  14344. enableval=$enable_efence; CONFIG_EFENCE="${enableval}"
  14345. else
  14346. CONFIG_EFENCE="no"
  14347. fi
  14348. case "${CONFIG_EFENCE}" in
  14349. yes)
  14350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EF_Print in -lefence" >&5
  14351. $as_echo_n "checking for EF_Print in -lefence... " >&6; }
  14352. if ${ac_cv_lib_efence_EF_Print+:} false; then :
  14353. $as_echo_n "(cached) " >&6
  14354. else
  14355. ac_check_lib_save_LIBS=$LIBS
  14356. LIBS="-lefence $LIBS"
  14357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14358. /* end confdefs.h. */
  14359. /* Override any GCC internal prototype to avoid an error.
  14360. Use char because int might match the return type of a GCC
  14361. builtin and then its argument prototype would still apply. */
  14362. #ifdef __cplusplus
  14363. extern "C"
  14364. #endif
  14365. char EF_Print ();
  14366. int
  14367. main ()
  14368. {
  14369. return EF_Print ();
  14370. ;
  14371. return 0;
  14372. }
  14373. _ACEOF
  14374. if ac_fn_c_try_link "$LINENO"; then :
  14375. ac_cv_lib_efence_EF_Print=yes
  14376. else
  14377. ac_cv_lib_efence_EF_Print=no
  14378. fi
  14379. rm -f core conftest.err conftest.$ac_objext \
  14380. conftest$ac_exeext conftest.$ac_ext
  14381. LIBS=$ac_check_lib_save_LIBS
  14382. fi
  14383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_EF_Print" >&5
  14384. $as_echo "$ac_cv_lib_efence_EF_Print" >&6; }
  14385. if test "x$ac_cv_lib_efence_EF_Print" = xyes; then :
  14386. HAVE_EFENCE="-lefence"
  14387. fi
  14388. if test "x${HAVE_EFENCE}" != "x-lefence"; then
  14389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14390. $as_echo "yes" >&6; }
  14391. else
  14392. LDADD="${LDADD} ${HAVE_EFENCE}"
  14393. $as_echo "#define HAVE_EFENCE 1" >>confdefs.h
  14394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_EFENCE}" >&5
  14395. $as_echo "${CONFIG_EFENCE}" >&6; }
  14396. fi
  14397. ;;
  14398. no)
  14399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_EFENCE}" >&5
  14400. $as_echo "${CONFIG_EFENCE}" >&6; }
  14401. ;;
  14402. *)
  14403. as_fn_error $? "bad value �${CONFIG_EFENCE}� for efence option" "$LINENO" 5
  14404. ;;
  14405. esac
  14406. WARNING=
  14407. # Check whether --with-fileio was given.
  14408. if test "${with_fileio+set}" = set; then :
  14409. withval=$with_fileio; CONFIG_FILEIO="${withval}"
  14410. else
  14411. CONFIG_FILEIO="lame"
  14412. fi
  14413. if test "${CONFIG_FILEIO}" = "sndfile" ; then
  14414. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14415. if test -n "$ac_tool_prefix"; then
  14416. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14417. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14419. $as_echo_n "checking for $ac_word... " >&6; }
  14420. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14421. $as_echo_n "(cached) " >&6
  14422. else
  14423. case $PKG_CONFIG in
  14424. [\\/]* | ?:[\\/]*)
  14425. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14426. ;;
  14427. *)
  14428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14429. for as_dir in $PATH
  14430. do
  14431. IFS=$as_save_IFS
  14432. test -z "$as_dir" && as_dir=.
  14433. for ac_exec_ext in '' $ac_executable_extensions; do
  14434. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14435. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14437. break 2
  14438. fi
  14439. done
  14440. done
  14441. IFS=$as_save_IFS
  14442. ;;
  14443. esac
  14444. fi
  14445. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14446. if test -n "$PKG_CONFIG"; then
  14447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14448. $as_echo "$PKG_CONFIG" >&6; }
  14449. else
  14450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14451. $as_echo "no" >&6; }
  14452. fi
  14453. fi
  14454. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14455. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14456. # Extract the first word of "pkg-config", so it can be a program name with args.
  14457. set dummy pkg-config; ac_word=$2
  14458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14459. $as_echo_n "checking for $ac_word... " >&6; }
  14460. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14461. $as_echo_n "(cached) " >&6
  14462. else
  14463. case $ac_pt_PKG_CONFIG in
  14464. [\\/]* | ?:[\\/]*)
  14465. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14466. ;;
  14467. *)
  14468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14469. for as_dir in $PATH
  14470. do
  14471. IFS=$as_save_IFS
  14472. test -z "$as_dir" && as_dir=.
  14473. for ac_exec_ext in '' $ac_executable_extensions; do
  14474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14475. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14477. break 2
  14478. fi
  14479. done
  14480. done
  14481. IFS=$as_save_IFS
  14482. ;;
  14483. esac
  14484. fi
  14485. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14486. if test -n "$ac_pt_PKG_CONFIG"; then
  14487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14488. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14489. else
  14490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14491. $as_echo "no" >&6; }
  14492. fi
  14493. if test "x$ac_pt_PKG_CONFIG" = x; then
  14494. PKG_CONFIG=""
  14495. else
  14496. case $cross_compiling:$ac_tool_warned in
  14497. yes:)
  14498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14499. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14500. ac_tool_warned=yes ;;
  14501. esac
  14502. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14503. fi
  14504. else
  14505. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14506. fi
  14507. fi
  14508. if test -n "$PKG_CONFIG"; then
  14509. _pkg_min_version=0.9.0
  14510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14511. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14512. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14514. $as_echo "yes" >&6; }
  14515. else
  14516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14517. $as_echo "no" >&6; }
  14518. PKG_CONFIG=""
  14519. fi
  14520. fi
  14521. pkg_failed=no
  14522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
  14523. $as_echo_n "checking for SNDFILE... " >&6; }
  14524. if test -n "$SNDFILE_CFLAGS"; then
  14525. pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
  14526. elif test -n "$PKG_CONFIG"; then
  14527. if test -n "$PKG_CONFIG" && \
  14528. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5
  14529. ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5
  14530. ac_status=$?
  14531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14532. test $ac_status = 0; }; then
  14533. pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.2" 2>/dev/null`
  14534. test "x$?" != "x0" && pkg_failed=yes
  14535. else
  14536. pkg_failed=yes
  14537. fi
  14538. else
  14539. pkg_failed=untried
  14540. fi
  14541. if test -n "$SNDFILE_LIBS"; then
  14542. pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
  14543. elif test -n "$PKG_CONFIG"; then
  14544. if test -n "$PKG_CONFIG" && \
  14545. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5
  14546. ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5
  14547. ac_status=$?
  14548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14549. test $ac_status = 0; }; then
  14550. pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.2" 2>/dev/null`
  14551. test "x$?" != "x0" && pkg_failed=yes
  14552. else
  14553. pkg_failed=yes
  14554. fi
  14555. else
  14556. pkg_failed=untried
  14557. fi
  14558. if test $pkg_failed = yes; then
  14559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14560. $as_echo "no" >&6; }
  14561. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14562. _pkg_short_errors_supported=yes
  14563. else
  14564. _pkg_short_errors_supported=no
  14565. fi
  14566. if test $_pkg_short_errors_supported = yes; then
  14567. SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.2" 2>&1`
  14568. else
  14569. SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.2" 2>&1`
  14570. fi
  14571. # Put the nasty error message in config.log where it belongs
  14572. echo "$SNDFILE_PKG_ERRORS" >&5
  14573. HAVE_SNDFILE="no"
  14574. elif test $pkg_failed = untried; then
  14575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14576. $as_echo "no" >&6; }
  14577. HAVE_SNDFILE="no"
  14578. else
  14579. SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
  14580. SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
  14581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14582. $as_echo "yes" >&6; }
  14583. HAVE_SNDFILE="yes"
  14584. fi
  14585. fi
  14586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking use of file io" >&5
  14587. $as_echo_n "checking use of file io... " >&6; }
  14588. if test "${CONFIG_FILEIO}" = "sndfile" ; then
  14589. if test "${HAVE_SNDFILE}" = "yes" -o "x${SNDFILE_LIBS}" != "x" \
  14590. -o "x${SNDFILE_CFLAGS}" != "x"; then
  14591. SNDFILE_LIBS=`echo ${SNDFILE_LIBS}`
  14592. SNDFILE_CFLAGS=`echo ${SNDFILE_CFLAGS}`
  14593. if test -n "${SNDFILE_LIBS}" ; then
  14594. FRONTEND_LDFLAGS="${SNDFILE_LIBS} ${FRONTEND_LDFLAGS}"
  14595. fi
  14596. FRONTEND_LDADD="-lsndfile ${FRONTEND_LDADD}"
  14597. if test -n "${SNDFILE_CFLAGS}" ; then
  14598. INCLUDES="${SNDFILE_CFLAGS} ${INCLUDES}"
  14599. fi
  14600. $as_echo "#define LIBSNDFILE 1" >>confdefs.h
  14601. else
  14602. # default
  14603. CONFIG_FILEIO="lame"
  14604. WARNING="${WARNING} Could not find any sndfile lib on system."
  14605. fi
  14606. else
  14607. CONFIG_FILEIO="lame"
  14608. fi
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_FILEIO}" >&5
  14610. $as_echo "${CONFIG_FILEIO}" >&6; }
  14611. if test "x${WARNING}" != "x" ; then
  14612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $WARNING" >&5
  14613. $as_echo "$as_me: WARNING: $WARNING" >&2;}
  14614. fi
  14615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking use of analyzer hooks" >&5
  14616. $as_echo_n "checking use of analyzer hooks... " >&6; }
  14617. # Check whether --enable-analyzer-hooks was given.
  14618. if test "${enable_analyzer_hooks+set}" = set; then :
  14619. enableval=$enable_analyzer_hooks; CONFIG_ANALYZER="${enableval}"
  14620. else
  14621. CONFIG_ANALYZER="yes"
  14622. fi
  14623. case "${CONFIG_ANALYZER}" in
  14624. yes)
  14625. ;;
  14626. no)
  14627. $as_echo "#define NOANALYSIS 1" >>confdefs.h
  14628. ;;
  14629. *)
  14630. as_fn_error $? "bad value �${CONFIG_ANALYZER}� for analyzer-hooks option" "$LINENO" 5
  14631. ;;
  14632. esac
  14633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_ANALYZER" >&5
  14634. $as_echo "$CONFIG_ANALYZER" >&6; }
  14635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking use of mpg123 decoder" >&5
  14636. $as_echo_n "checking use of mpg123 decoder... " >&6; }
  14637. # Check whether --enable-decoder was given.
  14638. if test "${enable_decoder+set}" = set; then :
  14639. enableval=$enable_decoder; CONFIG_DECODER="${enableval}"
  14640. else
  14641. CONFIG_DECODER="yes"
  14642. fi
  14643. if test "x${CONFIG_DECODER}" = "xyes"; then
  14644. LIB_WITH_DECODER_TRUE=
  14645. LIB_WITH_DECODER_FALSE='#'
  14646. else
  14647. LIB_WITH_DECODER_TRUE='#'
  14648. LIB_WITH_DECODER_FALSE=
  14649. fi
  14650. if test "${CONFIG_DECODER}" != "no" ; then
  14651. CONFIG_DECODER="yes (Layer 1, 2, 3)"
  14652. $as_echo "#define HAVE_MPGLIB 1" >>confdefs.h
  14653. $as_echo "#define DECODE_ON_THE_FLY 1" >>confdefs.h
  14654. fi
  14655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_DECODER" >&5
  14656. $as_echo "$CONFIG_DECODER" >&6; }
  14657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the lame frontend should be build" >&5
  14658. $as_echo_n "checking if the lame frontend should be build... " >&6; }
  14659. # Check whether --enable-frontend was given.
  14660. if test "${enable_frontend+set}" = set; then :
  14661. enableval=$enable_frontend; WITH_FRONTEND="${enableval}"
  14662. else
  14663. WITH_FRONTEND=yes
  14664. fi
  14665. if test "x${WITH_FRONTEND}" = "xyes"; then
  14666. WITH_FRONTEND=lame${ac_exeext}
  14667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14668. $as_echo "yes" >&6; }
  14669. else
  14670. WITH_FRONTEND=
  14671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14672. $as_echo "no" >&6; }
  14673. fi
  14674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mp3x is requested" >&5
  14675. $as_echo_n "checking if mp3x is requested... " >&6; }
  14676. # Check whether --enable-mp3x was given.
  14677. if test "${enable_mp3x+set}" = set; then :
  14678. enableval=$enable_mp3x; WITH_MP3X="${enableval}"
  14679. else
  14680. WITH_MP3X=no
  14681. fi
  14682. if test "x${WITH_MP3X}" = "xyes"; then
  14683. WITH_MP3X=mp3x${ac_exeext}
  14684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14685. $as_echo "yes" >&6; }
  14686. else
  14687. WITH_MP3X=
  14688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14689. $as_echo "no" >&6; }
  14690. fi
  14691. if test "${HAVE_GTK}" = "no"; then
  14692. if test "x${WITH_MP3X}" = "xmp3x"; then
  14693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't build mp3x" >&5
  14694. $as_echo "$as_me: WARNING: can't build mp3x" >&2;}
  14695. WITH_MP3X=
  14696. fi
  14697. if test "x${CONFIG_ANALYZER}" != "xyes"; then
  14698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't build mp3x because of disabled analyzer hooks" >&5
  14699. $as_echo "$as_me: WARNING: can't build mp3x because of disabled analyzer hooks" >&2;}
  14700. WITH_MP3X=
  14701. fi
  14702. fi
  14703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mp3rtp is requested" >&5
  14704. $as_echo_n "checking if mp3rtp is requested... " >&6; }
  14705. # Check whether --enable-mp3rtp was given.
  14706. if test "${enable_mp3rtp+set}" = set; then :
  14707. enableval=$enable_mp3rtp; WITH_MP3RTP="${enableval}"
  14708. else
  14709. WITH_MP3RTP=no
  14710. fi
  14711. if test "x${WITH_MP3RTP}" = "xyes"; then
  14712. if test ${SOCKETFUNCTION} = NO; then
  14713. as_fn_error $? "function socket is mandatory for mp3rtp" "$LINENO" 5
  14714. fi
  14715. WITH_MP3RTP=mp3rtp${ac_exeext}
  14716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14717. $as_echo "yes" >&6; }
  14718. else
  14719. WITH_MP3RTP=
  14720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14721. $as_echo "no" >&6; }
  14722. fi
  14723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic linking of the frontends is requested" >&5
  14724. $as_echo_n "checking if dynamic linking of the frontends is requested... " >&6; }
  14725. # Check whether --enable-dynamic-frontends was given.
  14726. if test "${enable_dynamic_frontends+set}" = set; then :
  14727. enableval=$enable_dynamic_frontends; FRONTEND_LDFLAGS="${FRONTEND_LDFLAGS}"
  14728. else
  14729. FRONTEND_LDFLAGS="${FRONTEND_LDFLAGS} -static"
  14730. fi
  14731. case "x${FRONTEND_LDFLAGS}" in
  14732. *-static*)
  14733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14734. $as_echo "no" >&6; }
  14735. ;;
  14736. *)
  14737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14738. $as_echo "yes" >&6; }
  14739. ;;
  14740. esac
  14741. #
  14742. # this is from vorbis
  14743. #
  14744. case $host in
  14745. *86-*-linux*)
  14746. # glibc < 2.1.3 has a serious FP bug in the math inline header
  14747. # that will cripple Vorbis. Look to see if the magic FP stack
  14748. # clobber is missing in the mathinline header, thus indicating
  14749. # the buggy version
  14750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14751. /* end confdefs.h. */
  14752. #define __LIBC_INTERNAL_MATH_INLINES 1
  14753. #define __OPTIMIZE__
  14754. #include <math.h>
  14755. _ACEOF
  14756. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14757. $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then :
  14758. bad=maybe
  14759. else
  14760. bad=no
  14761. fi
  14762. rm -f conftest*
  14763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking glibc mathinline bug" >&5
  14764. $as_echo_n "checking glibc mathinline bug... " >&6; }
  14765. if test ${bad} = "maybe" ;then
  14766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14767. /* end confdefs.h. */
  14768. #define __LIBC_INTERNAL_MATH_INLINES 1
  14769. #define __OPTIMIZE__
  14770. #include <math.h>
  14771. _ACEOF
  14772. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14773. $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then :
  14774. bad=no
  14775. else
  14776. bad=yes
  14777. fi
  14778. rm -f conftest*
  14779. fi
  14780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${bad}" >&5
  14781. $as_echo "${bad}" >&6; }
  14782. if test ${bad} = "yes" ;then
  14783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
  14784. $as_echo "$as_me: WARNING: " >&2;}
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
  14786. $as_echo "$as_me: WARNING: ********************************************************" >&2;}
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5
  14788. $as_echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5
  14790. $as_echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;}
  14791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not only LAME, but all code *" >&5
  14792. $as_echo "$as_me: WARNING: * all floating point code, not only LAME, but all code *" >&2;}
  14793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * built on this machine. Upgrading to glibc 2.1.3 is *" >&5
  14794. $as_echo "$as_me: WARNING: * built on this machine. Upgrading to glibc 2.1.3 is *" >&2;}
  14795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * strongly urged to correct the problem. *" >&5
  14796. $as_echo "$as_me: WARNING: * strongly urged to correct the problem. *" >&2;}
  14797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *Note: that upgrading glibc will not fix any previously*" >&5
  14798. $as_echo "$as_me: WARNING: *Note: that upgrading glibc will not fix any previously*" >&2;}
  14799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * built programs; this is a compile-time bug. *" >&5
  14800. $as_echo "$as_me: WARNING: * built programs; this is a compile-time bug. *" >&2;}
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of LAME, *" >&5
  14802. $as_echo "$as_me: WARNING: * To work around the problem for this build of LAME, *" >&2;}
  14803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining. This will *" >&5
  14804. $as_echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;}
  14805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * hurt LAME performace but is necessary for LAME to *" >&5
  14806. $as_echo "$as_me: WARNING: * hurt LAME performace but is necessary for LAME to *" >&2;}
  14807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * work correctly. Once glibc is upgraded, rerun *" >&5
  14808. $as_echo "$as_me: WARNING: * work correctly. Once glibc is upgraded, rerun *" >&2;}
  14809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining. *" >&5
  14810. $as_echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;}
  14811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
  14812. $as_echo "$as_me: WARNING: ********************************************************" >&2;}
  14813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
  14814. $as_echo "$as_me: WARNING: " >&2;}
  14815. $as_echo "#define __NO_MATH_INLINES 1" >>confdefs.h
  14816. fi;;
  14817. esac
  14818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for termcap" >&5
  14819. $as_echo_n "checking for termcap... " >&6; }
  14820. if test "x${HAVE_TERMCAP}" != "x"; then
  14821. FRONTEND_LDADD="-l${HAVE_TERMCAP} ${FRONTEND_LDADD}"
  14822. $as_echo "#define HAVE_TERMCAP 1" >>confdefs.h
  14823. TERMCAP_DEFAULT="yes"
  14824. else
  14825. TERMCAP_DEFAULT="no"
  14826. fi
  14827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TERMCAP_DEFAULT}" >&5
  14828. $as_echo "${TERMCAP_DEFAULT}" >&6; }
  14829. WITH_VECTOR=no
  14830. case $host_cpu in
  14831. x86_64|amd64)
  14832. CPUTYPE="no"
  14833. if test $ac_cv_header_xmmintrin_h = yes ; then
  14834. WITH_XMM=yes
  14835. WITH_VECTOR=yes
  14836. fi
  14837. $as_echo "#define TAKEHIRO_IEEE754_HACK 1" >>confdefs.h
  14838. $as_echo "#define USE_FAST_LOG 1" >>confdefs.h
  14839. ;;
  14840. *86)
  14841. CPUTYPE="i386"
  14842. if test $ac_cv_header_xmmintrin_h = yes ; then
  14843. WITH_XMM=yes
  14844. WITH_VECTOR=yes
  14845. fi
  14846. # use internal knowledge of the IEEE 754 layout
  14847. $as_echo "#define TAKEHIRO_IEEE754_HACK 1" >>confdefs.h
  14848. $as_echo "#define USE_FAST_LOG 1" >>confdefs.h
  14849. ;;
  14850. powerpc)
  14851. CPUTYPE="no"
  14852. # use internal knowledge of the IEEE 754 layout
  14853. $as_echo "#define TAKEHIRO_IEEE754_HACK 1" >>confdefs.h
  14854. # The following should not get enabled on a G5. HOWTO check for a G5?
  14855. $as_echo "#define USE_FAST_LOG 1" >>confdefs.h
  14856. ;;
  14857. *)
  14858. CPUTYPE="no"
  14859. ;;
  14860. esac
  14861. # which vector code do we support to build on this machine?
  14862. if test "x${WITH_XMM}" = "xyes"; then
  14863. WITH_XMM_TRUE=
  14864. WITH_XMM_FALSE='#'
  14865. else
  14866. WITH_XMM_TRUE='#'
  14867. WITH_XMM_FALSE=
  14868. fi
  14869. # needs to be defined to link in the internal vector lib
  14870. if test "x${WITH_VECTOR}" = "xyes"; then
  14871. WITH_VECTOR_TRUE=
  14872. WITH_VECTOR_FALSE='#'
  14873. else
  14874. WITH_VECTOR_TRUE='#'
  14875. WITH_VECTOR_FALSE=
  14876. fi
  14877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I have to build the internal vector lib" >&5
  14878. $as_echo_n "checking if I have to build the internal vector lib... " >&6; }
  14879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WITH_VECTOR}" >&5
  14880. $as_echo "${WITH_VECTOR}" >&6; }
  14881. # Extract the first word of "nasm", so it can be a program name with args.
  14882. set dummy nasm; ac_word=$2
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14884. $as_echo_n "checking for $ac_word... " >&6; }
  14885. if ${ac_cv_path_NASM+:} false; then :
  14886. $as_echo_n "(cached) " >&6
  14887. else
  14888. case $NASM in
  14889. [\\/]* | ?:[\\/]*)
  14890. ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
  14891. ;;
  14892. *)
  14893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14894. for as_dir in $PATH
  14895. do
  14896. IFS=$as_save_IFS
  14897. test -z "$as_dir" && as_dir=.
  14898. for ac_exec_ext in '' $ac_executable_extensions; do
  14899. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14900. ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
  14901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14902. break 2
  14903. fi
  14904. done
  14905. done
  14906. IFS=$as_save_IFS
  14907. test -z "$ac_cv_path_NASM" && ac_cv_path_NASM="no"
  14908. ;;
  14909. esac
  14910. fi
  14911. NASM=$ac_cv_path_NASM
  14912. if test -n "$NASM"; then
  14913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5
  14914. $as_echo "$NASM" >&6; }
  14915. else
  14916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14917. $as_echo "no" >&6; }
  14918. fi
  14919. case "${NASM}" in
  14920. no)
  14921. ;;
  14922. *)
  14923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler routines for this processor type" >&5
  14924. $as_echo_n "checking for assembler routines for this processor type... " >&6; }
  14925. for recurse_over in ${ASM_FOR_ARCH}
  14926. do
  14927. if test "${CPUTYPE}" = "${recurse_over}"; then
  14928. include_asm_routines="yes"
  14929. fi
  14930. case $host_os in
  14931. *darwin*)
  14932. # currently we have problems because of a wrong
  14933. # libtool hack in the darwin case (for nasm code)
  14934. include_asm_routines="no"
  14935. ;;
  14936. esac
  14937. done
  14938. if test "x${include_asm_routines}" = "xyes"; then
  14939. $as_echo "#define HAVE_NASM 1" >>confdefs.h
  14940. $as_echo "#define MMX_choose_table 1" >>confdefs.h
  14941. else
  14942. include_asm_routines="no"
  14943. NASM="no"
  14944. fi
  14945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${include_asm_routines}" >&5
  14946. $as_echo "${include_asm_routines}" >&6; }
  14947. ;;
  14948. esac
  14949. if test "${NASM}" != "no"; then
  14950. HAVE_NASM_TRUE=
  14951. HAVE_NASM_FALSE='#'
  14952. else
  14953. HAVE_NASM_TRUE='#'
  14954. HAVE_NASM_FALSE=
  14955. fi
  14956. case $host_os in
  14957. *cygwin*|*mingw32*)
  14958. CYGWIN=yes
  14959. NASM_FORMAT="-f win32 -DWIN32"
  14960. ;;
  14961. *darwin*)
  14962. NASM_FORMAT="-f macho"
  14963. ;;
  14964. *)
  14965. CYGWIN=no
  14966. NASM_FORMAT="-f elf"
  14967. ;;
  14968. esac
  14969. #
  14970. # 'expopt' is used for "additional optimizations", not for optimizations which
  14971. # are marked as "experimental" in the guide for the compiler.
  14972. # They are "experimental" here in the LAME project (at least
  14973. # "--enable-expopt=full").
  14974. #
  14975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional optimizations" >&5
  14976. $as_echo_n "checking for additional optimizations... " >&6; }
  14977. # Check whether --enable-expopt was given.
  14978. if test "${enable_expopt+set}" = set; then :
  14979. enableval=$enable_expopt; CONFIG_EXPOPT="${enableval}"
  14980. else
  14981. CONFIG_EXPOPT="no"
  14982. fi
  14983. if test "x$HAVE_GCC" = "xyes" -o "x$HAVE_CLANG" = "xyes"; then
  14984. # gcc defaults. OS specific options go in versious sections below
  14985. # from the gcc man pages: "there is no reason to use -pedantic"
  14986. if test "x${with_gnu_ld}" = "xyes"; then
  14987. CFLAGS="-Wall -pipe ${CFLAGS}"
  14988. else
  14989. # some vendor ld's don't like '-pipe'
  14990. CFLAGS="-Wall ${CFLAGS}"
  14991. fi
  14992. # GCC version specific generic options
  14993. if test "x${HAVE_GCC}" = "xyes"; then
  14994. case "${GCC_version}" in
  14995. 2.96*)
  14996. # for buggy version of gcc shipped with RH7.1, back of on some
  14997. # optimizations
  14998. OPTIMIZATION="-O -fomit-frame-pointer -ffast-math \
  14999. -funroll-loops"
  15000. OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
  15001. -fsched-interblock -fbranch-count-reg -fforce-addr \
  15002. -fforce-mem"
  15003. ;;
  15004. 3.0*)
  15005. # -funroll-loops seems to produce buggy code with gcc 3.0.3
  15006. OPTIMIZATION="-O -fomit-frame-pointer -ffast-math"
  15007. OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
  15008. -fbranch-count-reg -fforce-addr -fforce-mem"
  15009. ;;
  15010. 3.*|4.0.*|4.1.*)
  15011. # -fomit-frame-pointer seems to be buggy on cygwin
  15012. case ${host_os} in
  15013. *cygwin*)
  15014. OMIT_FRAME_POINTER=
  15015. ;;
  15016. *)
  15017. OMIT_FRAME_POINTER=-fomit-frame-pointer
  15018. ;;
  15019. esac
  15020. OPTIMIZATION="-O3 ${OMIT_FRAME_POINTER} -ffast-math"
  15021. OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
  15022. -fbranch-count-reg -fforce-addr -fforce-mem"
  15023. ;;
  15024. 456789.*)
  15025. OPTIMIZATION="-O3 -fomit-frame-pointer -ffast-math"
  15026. OPTIMIZATION_FULL="-fbranch-count-reg -fforce-addr"
  15027. ;;
  15028. *)
  15029. # default
  15030. OPTIMIZATION="-O3 ${OMIT_FRAME_POINTER} -ffast-math \
  15031. -funroll-loops"
  15032. OPTIMIZATION_FULL="-fbranch-count-reg -fforce-addr"
  15033. ;;
  15034. esac
  15035. # GCC version independend generic options
  15036. OPTIMIZATION_NORM="-fschedule-insns2"
  15037. fi
  15038. # generic CPU specific options
  15039. case ${host_cpu} in
  15040. sparc)
  15041. case "${GCC_version}" in
  15042. 3.0*)
  15043. ;;
  15044. 3456789.*)
  15045. # doesn't work on 3.0.x, but on 3.[12] and
  15046. # hopefully on every other release after that too
  15047. if test -x /usr/bin/isalist; then
  15048. /usr/bin/isalist | grep sparcv8plus \
  15049. >/dev/null 2>&1 && \
  15050. OPTIMIZATION="${OPTIMIZATION} \
  15051. -mcpu=ultrasparc \
  15052. -mtune=ultrasparc"
  15053. fi
  15054. ;;
  15055. esac
  15056. ;;
  15057. *86)
  15058. case "${GCC_version}" in
  15059. 3456789.*)
  15060. OPTIMIZATION="${OPTIMIZATION} \
  15061. -maccumulate-outgoing-args"
  15062. ;;
  15063. esac
  15064. ;;
  15065. esac
  15066. expopt_msg_result_printed=no
  15067. case "${CONFIG_EXPOPT}" in
  15068. no)
  15069. # if someone supplies own CFLAGS, we don't add our own
  15070. if test "x${ac_save_CFLAGS}" != "x"; then
  15071. OPTIMIZATION=""
  15072. fi
  15073. ;;
  15074. norm|yes)
  15075. OPTIMIZATION="${OPTIMIZATION} ${OPTIMIZATION_NORM}"
  15076. ;;
  15077. full)
  15078. OPTIMIZATION="${OPTIMIZATION} ${OPTIMIZATION_NORM} \
  15079. ${OPTIMIZATION_FULL}"
  15080. if test "${HAVE_GCC}" = "yes"; then
  15081. # some hardware dependend options
  15082. case "${GCC_version}" in
  15083. 2.9*|3.*|4.0.*|4.1.*)
  15084. # "new" GCC, use some "new" CPU specific optimizations
  15085. # use -mtune instead of -m486 or -mcpu= etc, since they are
  15086. # deprecated by GCC <rbrito>
  15087. case ${host_cpu} in
  15088. *486)
  15089. OPTIMIZATION="${OPTIMIZATION} -mcpu=i486 \
  15090. -mfancy-math-387"
  15091. ;;
  15092. *586)
  15093. OPTIMIZATION="${OPTIMIZATION} -mcpu=pentium \
  15094. -march=pentium -mfancy-math-387"
  15095. ;;
  15096. *686)
  15097. OPTIMIZATION="${OPTIMIZATION} -mcpu=pentiumpro \
  15098. -march=pentiumpro -mfancy-math-387 \
  15099. -malign-double"
  15100. ;;
  15101. *86)
  15102. OPTIMIZATION="${OPTIMIZATION} -mfancy-math-387"
  15103. ;;
  15104. alpha*)
  15105. OPTIMIZATION="${OPTIMIZATION} -mfp-regs"
  15106. $as_echo "#define FLOAT double" >>confdefs.h
  15107. # add "-mcpu=21164a -Wa,-m21164a" to optimize
  15108. # for 21164a (ev56) CPU
  15109. ;;
  15110. *)
  15111. OPTIMIZATION="${OPTIMIZATION} -fdelayed-branch"
  15112. ;;
  15113. esac
  15114. ;;
  15115. 456789.*)
  15116. case ${host_cpu} in
  15117. *486)
  15118. OPTIMIZATION="${OPTIMIZATION} -march=i486"
  15119. ;;
  15120. *586)
  15121. OPTIMIZATION="${OPTIMIZATION} -march=i586 \
  15122. -mtune=native"
  15123. ;;
  15124. *686)
  15125. OPTIMIZATION="${OPTIMIZATION} -march=i686 \
  15126. -mtune=native"
  15127. ;;
  15128. *86)
  15129. OPTIMIZATION="${OPTIMIZATION} -march=native \
  15130. -mtune=native"
  15131. ;;
  15132. arm*-gnueabi)
  15133. if -z "$(echo ${GCC_version} | awk '/4\.0/')" ; then
  15134. # Work round buggy softfloat optimization in ARM EABI compilers
  15135. # -gnueabi in only gcc-4.1 onwards
  15136. OPTIMIZATION="${OPTIMIZATION} -fno-finite-math-only"
  15137. fi
  15138. ;;
  15139. esac
  15140. ;;
  15141. *)
  15142. # no special optimization for other versions
  15143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15144. $as_echo "no" >&6; }
  15145. expopt_msg_result_printed=yes
  15146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LAME doesn't know about your version (${GCC_version}) of gcc" >&5
  15147. $as_echo "$as_me: WARNING: LAME doesn't know about your version (${GCC_version}) of gcc" >&2;}
  15148. ;;
  15149. esac
  15150. fi
  15151. ;;
  15152. *)
  15153. as_fn_error $? "bad value �${CONFIG_EXPOPT}� for expopt option" "$LINENO" 5
  15154. ;;
  15155. esac
  15156. if test "x${HAVE_CLANG}" = "xyes"; then
  15157. case "${CLANG_VERSION}" in
  15158. 3.89*|45.*)
  15159. OPTIMIZATION="-Ofast"
  15160. ;;
  15161. *)
  15162. OPTIMIZATION="-O3"
  15163. ;;
  15164. esac
  15165. # generic CPU specific options
  15166. case ${host_cpu} in
  15167. *486)
  15168. OPTIMIZATION="${OPTIMIZATION} -march=i486"
  15169. ;;
  15170. *586)
  15171. OPTIMIZATION="${OPTIMIZATION} -march=i586 \
  15172. -mtune=native"
  15173. ;;
  15174. *686)
  15175. OPTIMIZATION="${OPTIMIZATION} -march=i686 \
  15176. -mtune=native"
  15177. ;;
  15178. *86)
  15179. OPTIMIZATION="${OPTIMIZATION} -march=native \
  15180. -mtune=native"
  15181. ;;
  15182. esac
  15183. fi
  15184. if test "${expopt_msg_result_printed}" = "no" ; then
  15185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_EXPOPT}" >&5
  15186. $as_echo "${CONFIG_EXPOPT}" >&6; }
  15187. fi
  15188. else
  15189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15190. $as_echo "no" >&6; }
  15191. fi
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug options" >&5
  15193. $as_echo_n "checking for debug options... " >&6; }
  15194. # Check whether --enable-debug was given.
  15195. if test "${enable_debug+set}" = set; then :
  15196. enableval=$enable_debug; CONFIG_DEBUG="${enableval}"
  15197. else
  15198. CONFIG_DEBUG="no"
  15199. fi
  15200. if test "x$GCC" = "xyes"; then
  15201. DEBUG_NORM_OPT="-O -g -Wall"
  15202. DEBUG_ANOYING="-Wbad-function-cast -Wcast-align \
  15203. -Wcast-qual -Wchar-subscripts -Wconversion \
  15204. -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
  15205. -Wredundant-decls -Wshadow -Wstrict-prototypes \
  15206. -Wwrite-strings -Winline \
  15207. -Wformat -Wswitch -Waggregate-return -Wmissing-noreturn \
  15208. -Wimplicit-int -fno-builtin"
  15209. case "${CONFIG_DEBUG}" in
  15210. no)
  15211. ;;
  15212. norm|yes)
  15213. $as_echo "#define ABORTFP 1" >>confdefs.h
  15214. OPTIMIZATION="${DEBUG_NORM_OPT}"
  15215. ;;
  15216. anoying)
  15217. $as_echo "#define ABORTFP 1" >>confdefs.h
  15218. OPTIMIZATION="${DEBUG_NORM_OPT} ${DEBUG_ANOYING}"
  15219. ;;
  15220. alot)
  15221. $as_echo "#define ABORTFP 1" >>confdefs.h
  15222. $as_echo "#define DEBUG 1" >>confdefs.h
  15223. OPTIMIZATION="${DEBUG_NORM_OPT}"
  15224. ;;
  15225. *)
  15226. as_fn_error $? "bad value �${CONFIG_DEBUG}� for debug option" "$LINENO" 5
  15227. esac
  15228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_DEBUG}" >&5
  15229. $as_echo "${CONFIG_DEBUG}" >&6; }
  15230. else
  15231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15232. $as_echo "no" >&6; }
  15233. fi
  15234. ##########################################################################
  15235. # LINUX on Digital/Compaq Alpha CPUs
  15236. ##########################################################################
  15237. case $host in
  15238. alpha*-*-linux*)
  15239. ################################################################
  15240. #### Check if 'ccc' is in our path
  15241. ################################################################
  15242. if test "`which ccc 2>/dev/null | grep -c ccc`" != "0" ; then
  15243. # Compaq's C Compiler
  15244. CC=ccc
  15245. ################################################################
  15246. #### set 'OPTIMIZATION = -arch host -tune host'
  15247. #### to generate/tune instructions for this machine
  15248. #### 'OPTIMIZATION += -migrate -fast -inline speed -unroll 0'
  15249. #### tweak to run as fast as possible :)
  15250. #### 'OPTIMIZATION += -w0'
  15251. #### set warning and linking flags
  15252. ################################################################
  15253. OPTIMIZATION="-arch host -tune host"
  15254. OPTIMIZATION="-migrate -fast -inline speed -unroll 0 $OPTIMIZATION"
  15255. OPTIMIZATION="-w0 $OPTIMIZATION"
  15256. ################################################################
  15257. #### to debug, uncomment
  15258. ################################################################
  15259. # For Debugging
  15260. #OPTIMIZATION="-g3 $OPTIMIZATION"
  15261. ################################################################
  15262. #### define __DECALPHA__ (i was getting re-declaration warnings
  15263. #### in machine.h
  15264. ################################################################
  15265. # Define DEC Alpha
  15266. $as_echo "#define __DECALPHA__ 1" >>confdefs.h
  15267. fi # gcc or ccc?
  15268. ;; # alpha
  15269. ##########################################################################
  15270. # SunOS
  15271. ##########################################################################
  15272. sparc-*-sunos4*)
  15273. if test CC = "cc"; then
  15274. OPTIMIZATION="-O -xCC"
  15275. MAKEDEP="-xM"
  15276. # for gcc, use instead:
  15277. # CC="gcc"
  15278. # OPTIMIZATION="-O"
  15279. # MAKEDEP="-M"
  15280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please contact lame@lists.sourceforge.net with the output of the configure run and the file config.cache. Thank you for your cooperation." >&5
  15281. $as_echo "$as_me: WARNING: Please contact lame@lists.sourceforge.net with the output of the configure run and the file config.cache. Thank you for your cooperation." >&2;}
  15282. fi
  15283. ;; #SunOS
  15284. ##########################################################################
  15285. # SGI
  15286. ##########################################################################
  15287. *-sgi-irix*)
  15288. if test CC = "cc"; then
  15289. OPTIMIZATION="-O3 -woff all"
  15290. fi
  15291. ;; # SGI
  15292. ##########################################################################
  15293. # Compaq Alpha running Dec Unix (OSF)
  15294. ##########################################################################
  15295. alpha*-dec-osf*)
  15296. if test CC = "cc"; then
  15297. OPTIMIZATION="-fast -O3 -std -g3 -non_shared"
  15298. fi
  15299. ;; #OSF
  15300. esac
  15301. # todo: include the following tests in the case-list
  15302. UNAME=`uname`
  15303. ARCH=`uname -m`
  15304. ###########################################################################
  15305. # MOSXS (Rhapsody PPC)
  15306. ###########################################################################
  15307. if test "$UNAME" = "Rhapsody"; then
  15308. # CC="cc" # should be handled already by autoconf
  15309. MAKEDEP="-make"
  15310. fi
  15311. ###########################################################################
  15312. # MAC OSX Darwin PPC
  15313. ###########################################################################
  15314. if test "$UNAME" = "Darwin"; then
  15315. MAKEDEP="-make"
  15316. CFLAGS="$CFLAGS -fno-common"
  15317. fi
  15318. ##########################################################################
  15319. # OS/2
  15320. ##########################################################################
  15321. # Properly installed EMX runtime & development package is a prerequisite.
  15322. # tools I used: make 3.76.1, uname 1.12, sed 2.05, PD-ksh 5.2.13
  15323. #
  15324. ##########################################################################
  15325. if test "$UNAME" = "OS/2"; then
  15326. SHELL=sh
  15327. #CC=gcc # should already be handled by configure
  15328. # file extension should already be handled by automake (I don't know,
  15329. # please give feedback!
  15330. #FILE_EXTENSION=".exe"
  15331. # Uncomment & inspect the GTK lines to use MP3x GTK frame analyzer.
  15332. # Properly installed XFree86/devlibs & GTK+ is a prerequisite.
  15333. # The following works for me using Xfree86/OS2 3.3.5 and GTK+ 1.2.3:
  15334. # AC_DEFINE(HAVE_GTK, 1, have GTK)
  15335. # AC_DEFINE(__ST_MT_ERRNO__, 1)
  15336. # INCLUDES="-IC:/XFree86/include/gtk12 -IC:/XFree86/include/glib12 \
  15337. # -IC:/XFree86/include $INCLUDES"
  15338. # FRONTEND_LDFLAGS="-LC:/XFree86/lib -lgtk12 -lgdk12 -lgmodule -lglib12 \
  15339. # -lXext -lX11 -lshm -lbsd -lsocket -lm $FRONTEND_LDFLAGS"
  15340. # FRONTEND_CFLAGS="-Zmtd -Zsysv-signals -Zbin-files $FRONTEND_CFLAGS"
  15341. fi
  15342. ###########################################################################
  15343. # AmigaOS
  15344. ###########################################################################
  15345. # Type 'Make ARCH=PPC' for PowerUP and 'Make ARCH=WOS' for WarpOS
  15346. #
  15347. ###########################################################################
  15348. if test "$UNAME" = "AmigaOS" ; then
  15349. CC="gcc -noixemul"
  15350. OPTIMIZATION="$OPTIMIZATION -m68020-60 -m68881"
  15351. MAKEDEP="-MM"
  15352. if test "$ARCH" = "WOS"; then
  15353. CC="ppc-amigaos-gcc -warpup"
  15354. OPTIMIZATION="$OPTIMIZATION -mmultiple -mcpu=603e"
  15355. AR="ppc-amigaos-ar"
  15356. RANLIB="ppc-amigaos-ranlib"
  15357. fi
  15358. if test "$ARCH",PPC; then
  15359. CC="ppc-amigaos-gcc"
  15360. OPTIMIZATION="$OPTIMIZATION -mmultiple -mcpu=603e"
  15361. AR="ppc-amigaos-ar"
  15362. RANLIB="ppc-amigaos-ranlib"
  15363. fi
  15364. fi
  15365. CFLAGS="${OPTIMIZATION} ${CFLAGS}"
  15366. LDADD="${LDADD}"
  15367. FRONTEND_CFLAGS="${INCICONV} ${FRONTEND_CFLAGS}"
  15368. FRONTEND_LDADD="${FRONTEND_LDADD} ${LTLIBICONV} ${CONFIG_MATH_LIB}"
  15369. ac_config_files="$ac_config_files Makefile libmp3lame/Makefile libmp3lame/i386/Makefile libmp3lame/vector/Makefile frontend/Makefile mpglib/Makefile doc/Makefile doc/html/Makefile doc/man/Makefile include/Makefile Dll/Makefile misc/Makefile dshow/Makefile ACM/Makefile ACM/ADbg/Makefile ACM/ddk/Makefile ACM/tinyxml/Makefile lame.spec mac/Makefile macosx/Makefile macosx/English.lproj/Makefile macosx/LAME.xcodeproj/Makefile vc_solution/Makefile"
  15370. cat >confcache <<\_ACEOF
  15371. # This file is a shell script that caches the results of configure
  15372. # tests run on this system so they can be shared between configure
  15373. # scripts and configure runs, see configure's option --config-cache.
  15374. # It is not useful on other systems. If it contains results you don't
  15375. # want to keep, you may remove or edit it.
  15376. #
  15377. # config.status only pays attention to the cache file if you give it
  15378. # the --recheck option to rerun configure.
  15379. #
  15380. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15381. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15382. # following values.
  15383. _ACEOF
  15384. # The following way of writing the cache mishandles newlines in values,
  15385. # but we know of no workaround that is simple, portable, and efficient.
  15386. # So, we kill variables containing newlines.
  15387. # Ultrix sh set writes to stderr and can't be redirected directly,
  15388. # and sets the high bit in the cache file unless we assign to the vars.
  15389. (
  15390. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15391. eval ac_val=\$$ac_var
  15392. case $ac_val in #(
  15393. *${as_nl}*)
  15394. case $ac_var in #(
  15395. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15396. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15397. esac
  15398. case $ac_var in #(
  15399. _ | IFS | as_nl) ;; #(
  15400. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15401. *) { eval $ac_var=; unset $ac_var;} ;;
  15402. esac ;;
  15403. esac
  15404. done
  15405. (set) 2>&1 |
  15406. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15407. *${as_nl}ac_space=\ *)
  15408. # `set' does not quote correctly, so add quotes: double-quote
  15409. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15410. sed -n \
  15411. "s/'/'\\\\''/g;
  15412. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15413. ;; #(
  15414. *)
  15415. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15416. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15417. ;;
  15418. esac |
  15419. sort
  15420. ) |
  15421. sed '
  15422. /^ac_cv_env_/b end
  15423. t clear
  15424. :clear
  15425. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15426. t end
  15427. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15428. :end' >>confcache
  15429. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15430. if test -w "$cache_file"; then
  15431. if test "x$cache_file" != "x/dev/null"; then
  15432. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15433. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15434. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15435. cat confcache >"$cache_file"
  15436. else
  15437. case $cache_file in #(
  15438. */* | ?:*)
  15439. mv -f confcache "$cache_file"$$ &&
  15440. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15441. *)
  15442. mv -f confcache "$cache_file" ;;
  15443. esac
  15444. fi
  15445. fi
  15446. else
  15447. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15448. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15449. fi
  15450. fi
  15451. rm -f confcache
  15452. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15453. # Let make expand exec_prefix.
  15454. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15455. DEFS=-DHAVE_CONFIG_H
  15456. ac_libobjs=
  15457. ac_ltlibobjs=
  15458. U=
  15459. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15460. # 1. Remove the extension, and $U if already installed.
  15461. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15462. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15463. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15464. # will be set to the directory where LIBOBJS objects are built.
  15465. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15466. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15467. done
  15468. LIBOBJS=$ac_libobjs
  15469. LTLIBOBJS=$ac_ltlibobjs
  15470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15471. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  15472. if test -n "$am_sleep_pid"; then
  15473. # Hide warnings about reused PIDs.
  15474. wait $am_sleep_pid 2>/dev/null
  15475. fi
  15476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15477. $as_echo "done" >&6; }
  15478. if test -n "$EXEEXT"; then
  15479. am__EXEEXT_TRUE=
  15480. am__EXEEXT_FALSE='#'
  15481. else
  15482. am__EXEEXT_TRUE='#'
  15483. am__EXEEXT_FALSE=
  15484. fi
  15485. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  15486. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  15487. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15488. fi
  15489. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15490. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15491. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15492. fi
  15493. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15494. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15495. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15496. fi
  15497. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15498. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15499. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15500. fi
  15501. if test -z "${LIB_WITH_DECODER_TRUE}" && test -z "${LIB_WITH_DECODER_FALSE}"; then
  15502. as_fn_error $? "conditional \"LIB_WITH_DECODER\" was never defined.
  15503. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15504. fi
  15505. if test -z "${WITH_XMM_TRUE}" && test -z "${WITH_XMM_FALSE}"; then
  15506. as_fn_error $? "conditional \"WITH_XMM\" was never defined.
  15507. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15508. fi
  15509. if test -z "${WITH_VECTOR_TRUE}" && test -z "${WITH_VECTOR_FALSE}"; then
  15510. as_fn_error $? "conditional \"WITH_VECTOR\" was never defined.
  15511. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15512. fi
  15513. if test -z "${HAVE_NASM_TRUE}" && test -z "${HAVE_NASM_FALSE}"; then
  15514. as_fn_error $? "conditional \"HAVE_NASM\" was never defined.
  15515. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15516. fi
  15517. : "${CONFIG_STATUS=./config.status}"
  15518. ac_write_fail=0
  15519. ac_clean_files_save=$ac_clean_files
  15520. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15521. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15522. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15523. as_write_fail=0
  15524. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15525. #! $SHELL
  15526. # Generated by $as_me.
  15527. # Run this file to recreate the current configuration.
  15528. # Compiler output produced by configure, useful for debugging
  15529. # configure, is in config.log if it exists.
  15530. debug=false
  15531. ac_cs_recheck=false
  15532. ac_cs_silent=false
  15533. SHELL=\${CONFIG_SHELL-$SHELL}
  15534. export SHELL
  15535. _ASEOF
  15536. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15537. ## -------------------- ##
  15538. ## M4sh Initialization. ##
  15539. ## -------------------- ##
  15540. # Be more Bourne compatible
  15541. DUALCASE=1; export DUALCASE # for MKS sh
  15542. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15543. emulate sh
  15544. NULLCMD=:
  15545. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15546. # is contrary to our usage. Disable this feature.
  15547. alias -g '${1+"$@"}'='"$@"'
  15548. setopt NO_GLOB_SUBST
  15549. else
  15550. case `(set -o) 2>/dev/null` in #(
  15551. *posix*) :
  15552. set -o posix ;; #(
  15553. *) :
  15554. ;;
  15555. esac
  15556. fi
  15557. as_nl='
  15558. '
  15559. export as_nl
  15560. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15561. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15562. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15563. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15564. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15565. # but without wasting forks for bash or zsh.
  15566. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15567. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15568. as_echo='print -r --'
  15569. as_echo_n='print -rn --'
  15570. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15571. as_echo='printf %s\n'
  15572. as_echo_n='printf %s'
  15573. else
  15574. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15575. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15576. as_echo_n='/usr/ucb/echo -n'
  15577. else
  15578. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15579. as_echo_n_body='eval
  15580. arg=$1;
  15581. case $arg in #(
  15582. *"$as_nl"*)
  15583. expr "X$arg" : "X\\(.*\\)$as_nl";
  15584. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15585. esac;
  15586. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15587. '
  15588. export as_echo_n_body
  15589. as_echo_n='sh -c $as_echo_n_body as_echo'
  15590. fi
  15591. export as_echo_body
  15592. as_echo='sh -c $as_echo_body as_echo'
  15593. fi
  15594. # The user is always right.
  15595. if test "${PATH_SEPARATOR+set}" != set; then
  15596. PATH_SEPARATOR=:
  15597. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15598. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15599. PATH_SEPARATOR=';'
  15600. }
  15601. fi
  15602. # IFS
  15603. # We need space, tab and new line, in precisely that order. Quoting is
  15604. # there to prevent editors from complaining about space-tab.
  15605. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15606. # splitting by setting IFS to empty value.)
  15607. IFS=" "" $as_nl"
  15608. # Find who we are. Look in the path if we contain no directory separator.
  15609. as_myself=
  15610. case $0 in #((
  15611. *[\\/]* ) as_myself=$0 ;;
  15612. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15613. for as_dir in $PATH
  15614. do
  15615. IFS=$as_save_IFS
  15616. test -z "$as_dir" && as_dir=.
  15617. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15618. done
  15619. IFS=$as_save_IFS
  15620. ;;
  15621. esac
  15622. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15623. # in which case we are not to be found in the path.
  15624. if test "x$as_myself" = x; then
  15625. as_myself=$0
  15626. fi
  15627. if test ! -f "$as_myself"; then
  15628. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15629. exit 1
  15630. fi
  15631. # Unset variables that we do not need and which cause bugs (e.g. in
  15632. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15633. # suppresses any "Segmentation fault" message there. '((' could
  15634. # trigger a bug in pdksh 5.2.14.
  15635. for as_var in BASH_ENV ENV MAIL MAILPATH
  15636. do eval test x\${$as_var+set} = xset \
  15637. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15638. done
  15639. PS1='$ '
  15640. PS2='> '
  15641. PS4='+ '
  15642. # NLS nuisances.
  15643. LC_ALL=C
  15644. export LC_ALL
  15645. LANGUAGE=C
  15646. export LANGUAGE
  15647. # CDPATH.
  15648. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15649. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15650. # ----------------------------------------
  15651. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15652. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15653. # script with STATUS, using 1 if that was 0.
  15654. as_fn_error ()
  15655. {
  15656. as_status=$1; test $as_status -eq 0 && as_status=1
  15657. if test "$4"; then
  15658. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15659. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15660. fi
  15661. $as_echo "$as_me: error: $2" >&2
  15662. as_fn_exit $as_status
  15663. } # as_fn_error
  15664. # as_fn_set_status STATUS
  15665. # -----------------------
  15666. # Set $? to STATUS, without forking.
  15667. as_fn_set_status ()
  15668. {
  15669. return $1
  15670. } # as_fn_set_status
  15671. # as_fn_exit STATUS
  15672. # -----------------
  15673. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15674. as_fn_exit ()
  15675. {
  15676. set +e
  15677. as_fn_set_status $1
  15678. exit $1
  15679. } # as_fn_exit
  15680. # as_fn_unset VAR
  15681. # ---------------
  15682. # Portably unset VAR.
  15683. as_fn_unset ()
  15684. {
  15685. { eval $1=; unset $1;}
  15686. }
  15687. as_unset=as_fn_unset
  15688. # as_fn_append VAR VALUE
  15689. # ----------------------
  15690. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15691. # advantage of any shell optimizations that allow amortized linear growth over
  15692. # repeated appends, instead of the typical quadratic growth present in naive
  15693. # implementations.
  15694. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15695. eval 'as_fn_append ()
  15696. {
  15697. eval $1+=\$2
  15698. }'
  15699. else
  15700. as_fn_append ()
  15701. {
  15702. eval $1=\$$1\$2
  15703. }
  15704. fi # as_fn_append
  15705. # as_fn_arith ARG...
  15706. # ------------------
  15707. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15708. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15709. # must be portable across $(()) and expr.
  15710. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15711. eval 'as_fn_arith ()
  15712. {
  15713. as_val=$(( $* ))
  15714. }'
  15715. else
  15716. as_fn_arith ()
  15717. {
  15718. as_val=`expr "$@" || test $? -eq 1`
  15719. }
  15720. fi # as_fn_arith
  15721. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15722. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15723. as_expr=expr
  15724. else
  15725. as_expr=false
  15726. fi
  15727. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15728. as_basename=basename
  15729. else
  15730. as_basename=false
  15731. fi
  15732. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15733. as_dirname=dirname
  15734. else
  15735. as_dirname=false
  15736. fi
  15737. as_me=`$as_basename -- "$0" ||
  15738. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15739. X"$0" : 'X\(//\)$' \| \
  15740. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15741. $as_echo X/"$0" |
  15742. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15743. s//\1/
  15744. q
  15745. }
  15746. /^X\/\(\/\/\)$/{
  15747. s//\1/
  15748. q
  15749. }
  15750. /^X\/\(\/\).*/{
  15751. s//\1/
  15752. q
  15753. }
  15754. s/.*/./; q'`
  15755. # Avoid depending upon Character Ranges.
  15756. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15757. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15758. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15759. as_cr_digits='0123456789'
  15760. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15761. ECHO_C= ECHO_N= ECHO_T=
  15762. case `echo -n x` in #(((((
  15763. -n*)
  15764. case `echo 'xy\c'` in
  15765. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15766. xy) ECHO_C='\c';;
  15767. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15768. ECHO_T=' ';;
  15769. esac;;
  15770. *)
  15771. ECHO_N='-n';;
  15772. esac
  15773. rm -f conf$$ conf$$.exe conf$$.file
  15774. if test -d conf$$.dir; then
  15775. rm -f conf$$.dir/conf$$.file
  15776. else
  15777. rm -f conf$$.dir
  15778. mkdir conf$$.dir 2>/dev/null
  15779. fi
  15780. if (echo >conf$$.file) 2>/dev/null; then
  15781. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15782. as_ln_s='ln -s'
  15783. # ... but there are two gotchas:
  15784. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15785. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15786. # In both cases, we have to default to `cp -pR'.
  15787. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15788. as_ln_s='cp -pR'
  15789. elif ln conf$$.file conf$$ 2>/dev/null; then
  15790. as_ln_s=ln
  15791. else
  15792. as_ln_s='cp -pR'
  15793. fi
  15794. else
  15795. as_ln_s='cp -pR'
  15796. fi
  15797. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15798. rmdir conf$$.dir 2>/dev/null
  15799. # as_fn_mkdir_p
  15800. # -------------
  15801. # Create "$as_dir" as a directory, including parents if necessary.
  15802. as_fn_mkdir_p ()
  15803. {
  15804. case $as_dir in #(
  15805. -*) as_dir=./$as_dir;;
  15806. esac
  15807. test -d "$as_dir" || eval $as_mkdir_p || {
  15808. as_dirs=
  15809. while :; do
  15810. case $as_dir in #(
  15811. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15812. *) as_qdir=$as_dir;;
  15813. esac
  15814. as_dirs="'$as_qdir' $as_dirs"
  15815. as_dir=`$as_dirname -- "$as_dir" ||
  15816. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15817. X"$as_dir" : 'X\(//\)[^/]' \| \
  15818. X"$as_dir" : 'X\(//\)$' \| \
  15819. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15820. $as_echo X"$as_dir" |
  15821. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15822. s//\1/
  15823. q
  15824. }
  15825. /^X\(\/\/\)[^/].*/{
  15826. s//\1/
  15827. q
  15828. }
  15829. /^X\(\/\/\)$/{
  15830. s//\1/
  15831. q
  15832. }
  15833. /^X\(\/\).*/{
  15834. s//\1/
  15835. q
  15836. }
  15837. s/.*/./; q'`
  15838. test -d "$as_dir" && break
  15839. done
  15840. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15841. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15842. } # as_fn_mkdir_p
  15843. if mkdir -p . 2>/dev/null; then
  15844. as_mkdir_p='mkdir -p "$as_dir"'
  15845. else
  15846. test -d ./-p && rmdir ./-p
  15847. as_mkdir_p=false
  15848. fi
  15849. # as_fn_executable_p FILE
  15850. # -----------------------
  15851. # Test if FILE is an executable regular file.
  15852. as_fn_executable_p ()
  15853. {
  15854. test -f "$1" && test -x "$1"
  15855. } # as_fn_executable_p
  15856. as_test_x='test -x'
  15857. as_executable_p=as_fn_executable_p
  15858. # Sed expression to map a string onto a valid CPP name.
  15859. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15860. # Sed expression to map a string onto a valid variable name.
  15861. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15862. exec 6>&1
  15863. ## ----------------------------------- ##
  15864. ## Main body of $CONFIG_STATUS script. ##
  15865. ## ----------------------------------- ##
  15866. _ASEOF
  15867. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15868. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15869. # Save the log message, to keep $0 and so on meaningful, and to
  15870. # report actual input values of CONFIG_FILES etc. instead of their
  15871. # values after options handling.
  15872. ac_log="
  15873. This file was extended by lame $as_me 3.100, which was
  15874. generated by GNU Autoconf 2.69. Invocation command line was
  15875. CONFIG_FILES = $CONFIG_FILES
  15876. CONFIG_HEADERS = $CONFIG_HEADERS
  15877. CONFIG_LINKS = $CONFIG_LINKS
  15878. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15879. $ $0 $@
  15880. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15881. "
  15882. _ACEOF
  15883. case $ac_config_files in *"
  15884. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15885. esac
  15886. case $ac_config_headers in *"
  15887. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15888. esac
  15889. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15890. # Files that config.status was made for.
  15891. config_files="$ac_config_files"
  15892. config_headers="$ac_config_headers"
  15893. config_commands="$ac_config_commands"
  15894. _ACEOF
  15895. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15896. ac_cs_usage="\
  15897. \`$as_me' instantiates files and other configuration actions
  15898. from templates according to the current configuration. Unless the files
  15899. and actions are specified as TAGs, all are instantiated by default.
  15900. Usage: $0 [OPTION]... [TAG]...
  15901. -h, --help print this help, then exit
  15902. -V, --version print version number and configuration settings, then exit
  15903. --config print configuration, then exit
  15904. -q, --quiet, --silent
  15905. do not print progress messages
  15906. -d, --debug don't remove temporary files
  15907. --recheck update $as_me by reconfiguring in the same conditions
  15908. --file=FILE[:TEMPLATE]
  15909. instantiate the configuration file FILE
  15910. --header=FILE[:TEMPLATE]
  15911. instantiate the configuration header FILE
  15912. Configuration files:
  15913. $config_files
  15914. Configuration headers:
  15915. $config_headers
  15916. Configuration commands:
  15917. $config_commands
  15918. Report bugs to <lame-dev@lists.sf.net>."
  15919. _ACEOF
  15920. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15921. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15922. ac_cs_version="\\
  15923. lame config.status 3.100
  15924. configured by $0, generated by GNU Autoconf 2.69,
  15925. with options \\"\$ac_cs_config\\"
  15926. Copyright (C) 2012 Free Software Foundation, Inc.
  15927. This config.status script is free software; the Free Software Foundation
  15928. gives unlimited permission to copy, distribute and modify it."
  15929. ac_pwd='$ac_pwd'
  15930. srcdir='$srcdir'
  15931. INSTALL='$INSTALL'
  15932. MKDIR_P='$MKDIR_P'
  15933. AWK='$AWK'
  15934. test -n "\$AWK" || AWK=awk
  15935. _ACEOF
  15936. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15937. # The default lists apply if the user does not specify any file.
  15938. ac_need_defaults=:
  15939. while test $# != 0
  15940. do
  15941. case $1 in
  15942. --*=?*)
  15943. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15944. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15945. ac_shift=:
  15946. ;;
  15947. --*=)
  15948. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15949. ac_optarg=
  15950. ac_shift=:
  15951. ;;
  15952. *)
  15953. ac_option=$1
  15954. ac_optarg=$2
  15955. ac_shift=shift
  15956. ;;
  15957. esac
  15958. case $ac_option in
  15959. # Handling of the options.
  15960. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15961. ac_cs_recheck=: ;;
  15962. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15963. $as_echo "$ac_cs_version"; exit ;;
  15964. --config | --confi | --conf | --con | --co | --c )
  15965. $as_echo "$ac_cs_config"; exit ;;
  15966. --debug | --debu | --deb | --de | --d | -d )
  15967. debug=: ;;
  15968. --file | --fil | --fi | --f )
  15969. $ac_shift
  15970. case $ac_optarg in
  15971. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15972. '') as_fn_error $? "missing file argument" ;;
  15973. esac
  15974. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15975. ac_need_defaults=false;;
  15976. --header | --heade | --head | --hea )
  15977. $ac_shift
  15978. case $ac_optarg in
  15979. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15980. esac
  15981. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15982. ac_need_defaults=false;;
  15983. --he | --h)
  15984. # Conflict between --help and --header
  15985. as_fn_error $? "ambiguous option: \`$1'
  15986. Try \`$0 --help' for more information.";;
  15987. --help | --hel | -h )
  15988. $as_echo "$ac_cs_usage"; exit ;;
  15989. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15990. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15991. ac_cs_silent=: ;;
  15992. # This is an error.
  15993. -*) as_fn_error $? "unrecognized option: \`$1'
  15994. Try \`$0 --help' for more information." ;;
  15995. *) as_fn_append ac_config_targets " $1"
  15996. ac_need_defaults=false ;;
  15997. esac
  15998. shift
  15999. done
  16000. ac_configure_extra_args=
  16001. if $ac_cs_silent; then
  16002. exec 6>/dev/null
  16003. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16004. fi
  16005. _ACEOF
  16006. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16007. if \$ac_cs_recheck; then
  16008. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16009. shift
  16010. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16011. CONFIG_SHELL='$SHELL'
  16012. export CONFIG_SHELL
  16013. exec "\$@"
  16014. fi
  16015. _ACEOF
  16016. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16017. exec 5>>config.log
  16018. {
  16019. echo
  16020. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16021. ## Running $as_me. ##
  16022. _ASBOX
  16023. $as_echo "$ac_log"
  16024. } >&5
  16025. _ACEOF
  16026. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16027. #
  16028. # INIT-COMMANDS
  16029. #
  16030. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16031. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16032. # if CDPATH is set.
  16033. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16034. sed_quote_subst='$sed_quote_subst'
  16035. double_quote_subst='$double_quote_subst'
  16036. delay_variable_subst='$delay_variable_subst'
  16037. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16038. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16039. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16040. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16041. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16042. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16043. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  16044. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16045. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16046. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  16047. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16048. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16049. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16050. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16051. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16052. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16053. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16054. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16055. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16056. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16057. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16058. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16059. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16060. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16061. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16062. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16063. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16064. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16065. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16066. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16067. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  16068. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  16069. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16070. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16071. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16072. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16073. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16074. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  16075. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  16076. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16077. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  16078. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16079. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16080. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  16081. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16082. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16083. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16084. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16085. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16086. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16087. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16088. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16089. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16090. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16091. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16092. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16093. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  16094. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16095. 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"`'
  16096. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  16097. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  16098. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  16099. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  16100. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16101. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16102. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16103. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16104. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16105. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16106. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16107. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16108. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  16109. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16110. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16111. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16112. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16113. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16114. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16115. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16116. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16117. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16118. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16119. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16120. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16121. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16122. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16123. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16124. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16125. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16126. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16127. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16128. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16129. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16130. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16131. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16132. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16133. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16134. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16135. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16136. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16137. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16138. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16139. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16140. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16141. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16142. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16143. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16144. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16145. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  16146. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16147. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16148. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16149. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16150. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16151. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16152. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16153. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16154. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16155. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16156. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16157. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16158. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16159. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16160. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16161. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16162. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16163. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16164. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  16165. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  16166. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16167. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16168. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16169. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16170. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16171. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16172. LTCC='$LTCC'
  16173. LTCFLAGS='$LTCFLAGS'
  16174. compiler='$compiler_DEFAULT'
  16175. # A function that is used when there is no print builtin or printf.
  16176. func_fallback_echo ()
  16177. {
  16178. eval 'cat <<_LTECHO_EOF
  16179. \$1
  16180. _LTECHO_EOF'
  16181. }
  16182. # Quote evaled strings.
  16183. for var in SHELL \
  16184. ECHO \
  16185. PATH_SEPARATOR \
  16186. SED \
  16187. GREP \
  16188. EGREP \
  16189. FGREP \
  16190. LD \
  16191. NM \
  16192. LN_S \
  16193. lt_SP2NL \
  16194. lt_NL2SP \
  16195. reload_flag \
  16196. OBJDUMP \
  16197. deplibs_check_method \
  16198. file_magic_cmd \
  16199. file_magic_glob \
  16200. want_nocaseglob \
  16201. DLLTOOL \
  16202. sharedlib_from_linklib_cmd \
  16203. AR \
  16204. AR_FLAGS \
  16205. archiver_list_spec \
  16206. STRIP \
  16207. RANLIB \
  16208. CC \
  16209. CFLAGS \
  16210. compiler \
  16211. lt_cv_sys_global_symbol_pipe \
  16212. lt_cv_sys_global_symbol_to_cdecl \
  16213. lt_cv_sys_global_symbol_to_import \
  16214. lt_cv_sys_global_symbol_to_c_name_address \
  16215. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16216. lt_cv_nm_interface \
  16217. nm_file_list_spec \
  16218. lt_cv_truncate_bin \
  16219. lt_prog_compiler_no_builtin_flag \
  16220. lt_prog_compiler_pic \
  16221. lt_prog_compiler_wl \
  16222. lt_prog_compiler_static \
  16223. lt_cv_prog_compiler_c_o \
  16224. need_locks \
  16225. MANIFEST_TOOL \
  16226. DSYMUTIL \
  16227. NMEDIT \
  16228. LIPO \
  16229. OTOOL \
  16230. OTOOL64 \
  16231. shrext_cmds \
  16232. export_dynamic_flag_spec \
  16233. whole_archive_flag_spec \
  16234. compiler_needs_object \
  16235. with_gnu_ld \
  16236. allow_undefined_flag \
  16237. no_undefined_flag \
  16238. hardcode_libdir_flag_spec \
  16239. hardcode_libdir_separator \
  16240. exclude_expsyms \
  16241. include_expsyms \
  16242. file_list_spec \
  16243. variables_saved_for_relink \
  16244. libname_spec \
  16245. library_names_spec \
  16246. soname_spec \
  16247. install_override_mode \
  16248. finish_eval \
  16249. old_striplib \
  16250. striplib; do
  16251. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16252. *[\\\\\\\`\\"\\\$]*)
  16253. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16254. ;;
  16255. *)
  16256. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16257. ;;
  16258. esac
  16259. done
  16260. # Double-quote double-evaled strings.
  16261. for var in reload_cmds \
  16262. old_postinstall_cmds \
  16263. old_postuninstall_cmds \
  16264. old_archive_cmds \
  16265. extract_expsyms_cmds \
  16266. old_archive_from_new_cmds \
  16267. old_archive_from_expsyms_cmds \
  16268. archive_cmds \
  16269. archive_expsym_cmds \
  16270. module_cmds \
  16271. module_expsym_cmds \
  16272. export_symbols_cmds \
  16273. prelink_cmds \
  16274. postlink_cmds \
  16275. postinstall_cmds \
  16276. postuninstall_cmds \
  16277. finish_cmds \
  16278. sys_lib_search_path_spec \
  16279. configure_time_dlsearch_path \
  16280. configure_time_lt_sys_library_path; do
  16281. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16282. *[\\\\\\\`\\"\\\$]*)
  16283. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16284. ;;
  16285. *)
  16286. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16287. ;;
  16288. esac
  16289. done
  16290. ac_aux_dir='$ac_aux_dir'
  16291. # See if we are running on zsh, and set the options that allow our
  16292. # commands through without removal of \ escapes INIT.
  16293. if test -n "\${ZSH_VERSION+set}"; then
  16294. setopt NO_GLOB_SUBST
  16295. fi
  16296. PACKAGE='$PACKAGE'
  16297. VERSION='$VERSION'
  16298. RM='$RM'
  16299. ofile='$ofile'
  16300. _ACEOF
  16301. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16302. # Handling of arguments.
  16303. for ac_config_target in $ac_config_targets
  16304. do
  16305. case $ac_config_target in
  16306. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  16307. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16308. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16309. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16310. "libmp3lame/Makefile") CONFIG_FILES="$CONFIG_FILES libmp3lame/Makefile" ;;
  16311. "libmp3lame/i386/Makefile") CONFIG_FILES="$CONFIG_FILES libmp3lame/i386/Makefile" ;;
  16312. "libmp3lame/vector/Makefile") CONFIG_FILES="$CONFIG_FILES libmp3lame/vector/Makefile" ;;
  16313. "frontend/Makefile") CONFIG_FILES="$CONFIG_FILES frontend/Makefile" ;;
  16314. "mpglib/Makefile") CONFIG_FILES="$CONFIG_FILES mpglib/Makefile" ;;
  16315. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  16316. "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
  16317. "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
  16318. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  16319. "Dll/Makefile") CONFIG_FILES="$CONFIG_FILES Dll/Makefile" ;;
  16320. "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
  16321. "dshow/Makefile") CONFIG_FILES="$CONFIG_FILES dshow/Makefile" ;;
  16322. "ACM/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/Makefile" ;;
  16323. "ACM/ADbg/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/ADbg/Makefile" ;;
  16324. "ACM/ddk/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/ddk/Makefile" ;;
  16325. "ACM/tinyxml/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/tinyxml/Makefile" ;;
  16326. "lame.spec") CONFIG_FILES="$CONFIG_FILES lame.spec" ;;
  16327. "mac/Makefile") CONFIG_FILES="$CONFIG_FILES mac/Makefile" ;;
  16328. "macosx/Makefile") CONFIG_FILES="$CONFIG_FILES macosx/Makefile" ;;
  16329. "macosx/English.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES macosx/English.lproj/Makefile" ;;
  16330. "macosx/LAME.xcodeproj/Makefile") CONFIG_FILES="$CONFIG_FILES macosx/LAME.xcodeproj/Makefile" ;;
  16331. "vc_solution/Makefile") CONFIG_FILES="$CONFIG_FILES vc_solution/Makefile" ;;
  16332. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16333. esac
  16334. done
  16335. # If the user did not use the arguments to specify the items to instantiate,
  16336. # then the envvar interface is used. Set only those that are not.
  16337. # We use the long form for the default assignment because of an extremely
  16338. # bizarre bug on SunOS 4.1.3.
  16339. if $ac_need_defaults; then
  16340. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16341. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16342. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16343. fi
  16344. # Have a temporary directory for convenience. Make it in the build tree
  16345. # simply because there is no reason against having it here, and in addition,
  16346. # creating and moving files from /tmp can sometimes cause problems.
  16347. # Hook for its removal unless debugging.
  16348. # Note that there is a small window in which the directory will not be cleaned:
  16349. # after its creation but before its name has been assigned to `$tmp'.
  16350. $debug ||
  16351. {
  16352. tmp= ac_tmp=
  16353. trap 'exit_status=$?
  16354. : "${ac_tmp:=$tmp}"
  16355. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16356. ' 0
  16357. trap 'as_fn_exit 1' 1 2 13 15
  16358. }
  16359. # Create a (secure) tmp directory for tmp files.
  16360. {
  16361. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16362. test -d "$tmp"
  16363. } ||
  16364. {
  16365. tmp=./conf$$-$RANDOM
  16366. (umask 077 && mkdir "$tmp")
  16367. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16368. ac_tmp=$tmp
  16369. # Set up the scripts for CONFIG_FILES section.
  16370. # No need to generate them if there are no CONFIG_FILES.
  16371. # This happens for instance with `./config.status config.h'.
  16372. if test -n "$CONFIG_FILES"; then
  16373. ac_cr=`echo X | tr X '\015'`
  16374. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16375. # But we know of no other shell where ac_cr would be empty at this
  16376. # point, so we can use a bashism as a fallback.
  16377. if test "x$ac_cr" = x; then
  16378. eval ac_cr=\$\'\\r\'
  16379. fi
  16380. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16381. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16382. ac_cs_awk_cr='\\r'
  16383. else
  16384. ac_cs_awk_cr=$ac_cr
  16385. fi
  16386. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16387. _ACEOF
  16388. {
  16389. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16390. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16391. echo "_ACEOF"
  16392. } >conf$$subs.sh ||
  16393. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16394. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16395. ac_delim='%!_!# '
  16396. for ac_last_try in false false false false false :; do
  16397. . ./conf$$subs.sh ||
  16398. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16399. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16400. if test $ac_delim_n = $ac_delim_num; then
  16401. break
  16402. elif $ac_last_try; then
  16403. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16404. else
  16405. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16406. fi
  16407. done
  16408. rm -f conf$$subs.sh
  16409. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16410. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16411. _ACEOF
  16412. sed -n '
  16413. h
  16414. s/^/S["/; s/!.*/"]=/
  16415. p
  16416. g
  16417. s/^[^!]*!//
  16418. :repl
  16419. t repl
  16420. s/'"$ac_delim"'$//
  16421. t delim
  16422. :nl
  16423. h
  16424. s/\(.\{148\}\)..*/\1/
  16425. t more1
  16426. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16427. p
  16428. n
  16429. b repl
  16430. :more1
  16431. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16432. p
  16433. g
  16434. s/.\{148\}//
  16435. t nl
  16436. :delim
  16437. h
  16438. s/\(.\{148\}\)..*/\1/
  16439. t more2
  16440. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16441. p
  16442. b
  16443. :more2
  16444. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16445. p
  16446. g
  16447. s/.\{148\}//
  16448. t delim
  16449. ' <conf$$subs.awk | sed '
  16450. /^[^""]/{
  16451. N
  16452. s/\n//
  16453. }
  16454. ' >>$CONFIG_STATUS || ac_write_fail=1
  16455. rm -f conf$$subs.awk
  16456. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16457. _ACAWK
  16458. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16459. for (key in S) S_is_set[key] = 1
  16460. FS = ""
  16461. }
  16462. {
  16463. line = $ 0
  16464. nfields = split(line, field, "@")
  16465. substed = 0
  16466. len = length(field[1])
  16467. for (i = 2; i < nfields; i++) {
  16468. key = field[i]
  16469. keylen = length(key)
  16470. if (S_is_set[key]) {
  16471. value = S[key]
  16472. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16473. len += length(value) + length(field[++i])
  16474. substed = 1
  16475. } else
  16476. len += 1 + keylen
  16477. }
  16478. print line
  16479. }
  16480. _ACAWK
  16481. _ACEOF
  16482. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16483. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16484. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16485. else
  16486. cat
  16487. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16488. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16489. _ACEOF
  16490. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16491. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16492. # trailing colons and then remove the whole line if VPATH becomes empty
  16493. # (actually we leave an empty line to preserve line numbers).
  16494. if test "x$srcdir" = x.; then
  16495. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16496. h
  16497. s///
  16498. s/^/:/
  16499. s/[ ]*$/:/
  16500. s/:\$(srcdir):/:/g
  16501. s/:\${srcdir}:/:/g
  16502. s/:@srcdir@:/:/g
  16503. s/^:*//
  16504. s/:*$//
  16505. x
  16506. s/\(=[ ]*\).*/\1/
  16507. G
  16508. s/\n//
  16509. s/^[^=]*=[ ]*$//
  16510. }'
  16511. fi
  16512. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16513. fi # test -n "$CONFIG_FILES"
  16514. # Set up the scripts for CONFIG_HEADERS section.
  16515. # No need to generate them if there are no CONFIG_HEADERS.
  16516. # This happens for instance with `./config.status Makefile'.
  16517. if test -n "$CONFIG_HEADERS"; then
  16518. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  16519. BEGIN {
  16520. _ACEOF
  16521. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16522. # here-document in config.status, that substitutes the proper values into
  16523. # config.h.in to produce config.h.
  16524. # Create a delimiter string that does not exist in confdefs.h, to ease
  16525. # handling of long lines.
  16526. ac_delim='%!_!# '
  16527. for ac_last_try in false false :; do
  16528. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  16529. if test -z "$ac_tt"; then
  16530. break
  16531. elif $ac_last_try; then
  16532. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  16533. else
  16534. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16535. fi
  16536. done
  16537. # For the awk script, D is an array of macro values keyed by name,
  16538. # likewise P contains macro parameters if any. Preserve backslash
  16539. # newline sequences.
  16540. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16541. sed -n '
  16542. s/.\{148\}/&'"$ac_delim"'/g
  16543. t rset
  16544. :rset
  16545. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16546. t def
  16547. d
  16548. :def
  16549. s/\\$//
  16550. t bsnl
  16551. s/["\\]/\\&/g
  16552. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16553. D["\1"]=" \3"/p
  16554. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16555. d
  16556. :bsnl
  16557. s/["\\]/\\&/g
  16558. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16559. D["\1"]=" \3\\\\\\n"\\/p
  16560. t cont
  16561. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16562. t cont
  16563. d
  16564. :cont
  16565. n
  16566. s/.\{148\}/&'"$ac_delim"'/g
  16567. t clear
  16568. :clear
  16569. s/\\$//
  16570. t bsnlc
  16571. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16572. d
  16573. :bsnlc
  16574. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16575. b cont
  16576. ' <confdefs.h | sed '
  16577. s/'"$ac_delim"'/"\\\
  16578. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16579. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16580. for (key in D) D_is_set[key] = 1
  16581. FS = ""
  16582. }
  16583. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16584. line = \$ 0
  16585. split(line, arg, " ")
  16586. if (arg[1] == "#") {
  16587. defundef = arg[2]
  16588. mac1 = arg[3]
  16589. } else {
  16590. defundef = substr(arg[1], 2)
  16591. mac1 = arg[2]
  16592. }
  16593. split(mac1, mac2, "(") #)
  16594. macro = mac2[1]
  16595. prefix = substr(line, 1, index(line, defundef) - 1)
  16596. if (D_is_set[macro]) {
  16597. # Preserve the white space surrounding the "#".
  16598. print prefix "define", macro P[macro] D[macro]
  16599. next
  16600. } else {
  16601. # Replace #undef with comments. This is necessary, for example,
  16602. # in the case of _POSIX_SOURCE, which is predefined and required
  16603. # on some systems where configure will not decide to define it.
  16604. if (defundef == "undef") {
  16605. print "/*", prefix defundef, macro, "*/"
  16606. next
  16607. }
  16608. }
  16609. }
  16610. { print }
  16611. _ACAWK
  16612. _ACEOF
  16613. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16614. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  16615. fi # test -n "$CONFIG_HEADERS"
  16616. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16617. shift
  16618. for ac_tag
  16619. do
  16620. case $ac_tag in
  16621. :[FHLC]) ac_mode=$ac_tag; continue;;
  16622. esac
  16623. case $ac_mode$ac_tag in
  16624. :[FHL]*:*);;
  16625. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16626. :[FH]-) ac_tag=-:-;;
  16627. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16628. esac
  16629. ac_save_IFS=$IFS
  16630. IFS=:
  16631. set x $ac_tag
  16632. IFS=$ac_save_IFS
  16633. shift
  16634. ac_file=$1
  16635. shift
  16636. case $ac_mode in
  16637. :L) ac_source=$1;;
  16638. :[FH])
  16639. ac_file_inputs=
  16640. for ac_f
  16641. do
  16642. case $ac_f in
  16643. -) ac_f="$ac_tmp/stdin";;
  16644. *) # Look for the file first in the build tree, then in the source tree
  16645. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16646. # because $ac_f cannot contain `:'.
  16647. test -f "$ac_f" ||
  16648. case $ac_f in
  16649. [\\/$]*) false;;
  16650. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16651. esac ||
  16652. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16653. esac
  16654. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16655. as_fn_append ac_file_inputs " '$ac_f'"
  16656. done
  16657. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16658. # use $as_me), people would be surprised to read:
  16659. # /* config.h. Generated by config.status. */
  16660. configure_input='Generated from '`
  16661. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16662. `' by configure.'
  16663. if test x"$ac_file" != x-; then
  16664. configure_input="$ac_file. $configure_input"
  16665. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16666. $as_echo "$as_me: creating $ac_file" >&6;}
  16667. fi
  16668. # Neutralize special characters interpreted by sed in replacement strings.
  16669. case $configure_input in #(
  16670. *\&* | *\|* | *\\* )
  16671. ac_sed_conf_input=`$as_echo "$configure_input" |
  16672. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16673. *) ac_sed_conf_input=$configure_input;;
  16674. esac
  16675. case $ac_tag in
  16676. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16677. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16678. esac
  16679. ;;
  16680. esac
  16681. ac_dir=`$as_dirname -- "$ac_file" ||
  16682. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16683. X"$ac_file" : 'X\(//\)[^/]' \| \
  16684. X"$ac_file" : 'X\(//\)$' \| \
  16685. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16686. $as_echo X"$ac_file" |
  16687. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16688. s//\1/
  16689. q
  16690. }
  16691. /^X\(\/\/\)[^/].*/{
  16692. s//\1/
  16693. q
  16694. }
  16695. /^X\(\/\/\)$/{
  16696. s//\1/
  16697. q
  16698. }
  16699. /^X\(\/\).*/{
  16700. s//\1/
  16701. q
  16702. }
  16703. s/.*/./; q'`
  16704. as_dir="$ac_dir"; as_fn_mkdir_p
  16705. ac_builddir=.
  16706. case "$ac_dir" in
  16707. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16708. *)
  16709. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16710. # A ".." for each directory in $ac_dir_suffix.
  16711. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16712. case $ac_top_builddir_sub in
  16713. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16714. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16715. esac ;;
  16716. esac
  16717. ac_abs_top_builddir=$ac_pwd
  16718. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16719. # for backward compatibility:
  16720. ac_top_builddir=$ac_top_build_prefix
  16721. case $srcdir in
  16722. .) # We are building in place.
  16723. ac_srcdir=.
  16724. ac_top_srcdir=$ac_top_builddir_sub
  16725. ac_abs_top_srcdir=$ac_pwd ;;
  16726. [\\/]* | ?:[\\/]* ) # Absolute name.
  16727. ac_srcdir=$srcdir$ac_dir_suffix;
  16728. ac_top_srcdir=$srcdir
  16729. ac_abs_top_srcdir=$srcdir ;;
  16730. *) # Relative name.
  16731. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16732. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16733. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16734. esac
  16735. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16736. case $ac_mode in
  16737. :F)
  16738. #
  16739. # CONFIG_FILE
  16740. #
  16741. case $INSTALL in
  16742. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16743. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16744. esac
  16745. ac_MKDIR_P=$MKDIR_P
  16746. case $MKDIR_P in
  16747. [\\/$]* | ?:[\\/]* ) ;;
  16748. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16749. esac
  16750. _ACEOF
  16751. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16752. # If the template does not know about datarootdir, expand it.
  16753. # FIXME: This hack should be removed a few years after 2.60.
  16754. ac_datarootdir_hack=; ac_datarootdir_seen=
  16755. ac_sed_dataroot='
  16756. /datarootdir/ {
  16757. p
  16758. q
  16759. }
  16760. /@datadir@/p
  16761. /@docdir@/p
  16762. /@infodir@/p
  16763. /@localedir@/p
  16764. /@mandir@/p'
  16765. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16766. *datarootdir*) ac_datarootdir_seen=yes;;
  16767. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16769. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16770. _ACEOF
  16771. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16772. ac_datarootdir_hack='
  16773. s&@datadir@&$datadir&g
  16774. s&@docdir@&$docdir&g
  16775. s&@infodir@&$infodir&g
  16776. s&@localedir@&$localedir&g
  16777. s&@mandir@&$mandir&g
  16778. s&\\\${datarootdir}&$datarootdir&g' ;;
  16779. esac
  16780. _ACEOF
  16781. # Neutralize VPATH when `$srcdir' = `.'.
  16782. # Shell code in configure.ac might set extrasub.
  16783. # FIXME: do we really want to maintain this feature?
  16784. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16785. ac_sed_extra="$ac_vpsub
  16786. $extrasub
  16787. _ACEOF
  16788. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16789. :t
  16790. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16791. s|@configure_input@|$ac_sed_conf_input|;t t
  16792. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16793. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16794. s&@srcdir@&$ac_srcdir&;t t
  16795. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16796. s&@top_srcdir@&$ac_top_srcdir&;t t
  16797. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16798. s&@builddir@&$ac_builddir&;t t
  16799. s&@abs_builddir@&$ac_abs_builddir&;t t
  16800. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16801. s&@INSTALL@&$ac_INSTALL&;t t
  16802. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16803. $ac_datarootdir_hack
  16804. "
  16805. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16806. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16807. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16808. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16809. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16810. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16812. which seems to be undefined. Please make sure it is defined" >&5
  16813. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16814. which seems to be undefined. Please make sure it is defined" >&2;}
  16815. rm -f "$ac_tmp/stdin"
  16816. case $ac_file in
  16817. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16818. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16819. esac \
  16820. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16821. ;;
  16822. :H)
  16823. #
  16824. # CONFIG_HEADER
  16825. #
  16826. if test x"$ac_file" != x-; then
  16827. {
  16828. $as_echo "/* $configure_input */" \
  16829. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16830. } >"$ac_tmp/config.h" \
  16831. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16832. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16833. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16834. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16835. else
  16836. rm -f "$ac_file"
  16837. mv "$ac_tmp/config.h" "$ac_file" \
  16838. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16839. fi
  16840. else
  16841. $as_echo "/* $configure_input */" \
  16842. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16843. || as_fn_error $? "could not create -" "$LINENO" 5
  16844. fi
  16845. # Compute "$ac_file"'s index in $config_headers.
  16846. _am_arg="$ac_file"
  16847. _am_stamp_count=1
  16848. for _am_header in $config_headers :; do
  16849. case $_am_header in
  16850. $_am_arg | $_am_arg:* )
  16851. break ;;
  16852. * )
  16853. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16854. esac
  16855. done
  16856. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16857. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16858. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16859. X"$_am_arg" : 'X\(//\)$' \| \
  16860. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16861. $as_echo X"$_am_arg" |
  16862. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16863. s//\1/
  16864. q
  16865. }
  16866. /^X\(\/\/\)[^/].*/{
  16867. s//\1/
  16868. q
  16869. }
  16870. /^X\(\/\/\)$/{
  16871. s//\1/
  16872. q
  16873. }
  16874. /^X\(\/\).*/{
  16875. s//\1/
  16876. q
  16877. }
  16878. s/.*/./; q'`/stamp-h$_am_stamp_count
  16879. ;;
  16880. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16881. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16882. ;;
  16883. esac
  16884. case $ac_file$ac_mode in
  16885. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16886. # Older Autoconf quotes --file arguments for eval, but not when files
  16887. # are listed without --file. Let's play safe and only enable the eval
  16888. # if we detect the quoting.
  16889. case $CONFIG_FILES in
  16890. *\'*) eval set x "$CONFIG_FILES" ;;
  16891. *) set x $CONFIG_FILES ;;
  16892. esac
  16893. shift
  16894. for mf
  16895. do
  16896. # Strip MF so we end up with the name of the file.
  16897. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16898. # Check whether this is an Automake generated Makefile or not.
  16899. # We used to match only the files named 'Makefile.in', but
  16900. # some people rename them; so instead we look at the file content.
  16901. # Grep'ing the first line is not enough: some people post-process
  16902. # each Makefile.in and add a new line on top of each file to say so.
  16903. # Grep'ing the whole file is not good either: AIX grep has a line
  16904. # limit of 2048, but all sed's we know have understand at least 4000.
  16905. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16906. dirpart=`$as_dirname -- "$mf" ||
  16907. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16908. X"$mf" : 'X\(//\)[^/]' \| \
  16909. X"$mf" : 'X\(//\)$' \| \
  16910. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16911. $as_echo X"$mf" |
  16912. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16913. s//\1/
  16914. q
  16915. }
  16916. /^X\(\/\/\)[^/].*/{
  16917. s//\1/
  16918. q
  16919. }
  16920. /^X\(\/\/\)$/{
  16921. s//\1/
  16922. q
  16923. }
  16924. /^X\(\/\).*/{
  16925. s//\1/
  16926. q
  16927. }
  16928. s/.*/./; q'`
  16929. else
  16930. continue
  16931. fi
  16932. # Extract the definition of DEPDIR, am__include, and am__quote
  16933. # from the Makefile without running 'make'.
  16934. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16935. test -z "$DEPDIR" && continue
  16936. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16937. test -z "$am__include" && continue
  16938. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16939. # Find all dependency output files, they are included files with
  16940. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16941. # simplest approach to changing $(DEPDIR) to its actual value in the
  16942. # expansion.
  16943. for file in `sed -n "
  16944. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16945. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16946. # Make sure the directory exists.
  16947. test -f "$dirpart/$file" && continue
  16948. fdir=`$as_dirname -- "$file" ||
  16949. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16950. X"$file" : 'X\(//\)[^/]' \| \
  16951. X"$file" : 'X\(//\)$' \| \
  16952. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16953. $as_echo X"$file" |
  16954. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16955. s//\1/
  16956. q
  16957. }
  16958. /^X\(\/\/\)[^/].*/{
  16959. s//\1/
  16960. q
  16961. }
  16962. /^X\(\/\/\)$/{
  16963. s//\1/
  16964. q
  16965. }
  16966. /^X\(\/\).*/{
  16967. s//\1/
  16968. q
  16969. }
  16970. s/.*/./; q'`
  16971. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16972. # echo "creating $dirpart/$file"
  16973. echo '# dummy' > "$dirpart/$file"
  16974. done
  16975. done
  16976. }
  16977. ;;
  16978. "libtool":C)
  16979. # See if we are running on zsh, and set the options that allow our
  16980. # commands through without removal of \ escapes.
  16981. if test -n "${ZSH_VERSION+set}"; then
  16982. setopt NO_GLOB_SUBST
  16983. fi
  16984. cfgfile=${ofile}T
  16985. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16986. $RM "$cfgfile"
  16987. cat <<_LT_EOF >> "$cfgfile"
  16988. #! $SHELL
  16989. # Generated automatically by $as_me ($PACKAGE) $VERSION
  16990. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16991. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16992. # Provide generalized library-building support services.
  16993. # Written by Gordon Matzigkeit, 1996
  16994. # Copyright (C) 2014 Free Software Foundation, Inc.
  16995. # This is free software; see the source for copying conditions. There is NO
  16996. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16997. # GNU Libtool is free software; you can redistribute it and/or modify
  16998. # it under the terms of the GNU General Public License as published by
  16999. # the Free Software Foundation; either version 2 of of the License, or
  17000. # (at your option) any later version.
  17001. #
  17002. # As a special exception to the GNU General Public License, if you
  17003. # distribute this file as part of a program or library that is built
  17004. # using GNU Libtool, you may include this file under the same
  17005. # distribution terms that you use for the rest of that program.
  17006. #
  17007. # GNU Libtool is distributed in the hope that it will be useful, but
  17008. # WITHOUT ANY WARRANTY; without even the implied warranty of
  17009. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17010. # GNU General Public License for more details.
  17011. #
  17012. # You should have received a copy of the GNU General Public License
  17013. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17014. # The names of the tagged configurations supported by this script.
  17015. available_tags=''
  17016. # Configured defaults for sys_lib_dlsearch_path munging.
  17017. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  17018. # ### BEGIN LIBTOOL CONFIG
  17019. # Which release of libtool.m4 was used?
  17020. macro_version=$macro_version
  17021. macro_revision=$macro_revision
  17022. # Whether or not to build shared libraries.
  17023. build_libtool_libs=$enable_shared
  17024. # Whether or not to build static libraries.
  17025. build_old_libs=$enable_static
  17026. # What type of objects to build.
  17027. pic_mode=$pic_mode
  17028. # Whether or not to optimize for fast installation.
  17029. fast_install=$enable_fast_install
  17030. # Shared archive member basename,for filename based shared library versioning on AIX.
  17031. shared_archive_member_spec=$shared_archive_member_spec
  17032. # Shell to use when invoking shell scripts.
  17033. SHELL=$lt_SHELL
  17034. # An echo program that protects backslashes.
  17035. ECHO=$lt_ECHO
  17036. # The PATH separator for the build system.
  17037. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  17038. # The host system.
  17039. host_alias=$host_alias
  17040. host=$host
  17041. host_os=$host_os
  17042. # The build system.
  17043. build_alias=$build_alias
  17044. build=$build
  17045. build_os=$build_os
  17046. # A sed program that does not truncate output.
  17047. SED=$lt_SED
  17048. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17049. Xsed="\$SED -e 1s/^X//"
  17050. # A grep program that handles long lines.
  17051. GREP=$lt_GREP
  17052. # An ERE matcher.
  17053. EGREP=$lt_EGREP
  17054. # A literal string matcher.
  17055. FGREP=$lt_FGREP
  17056. # A BSD- or MS-compatible name lister.
  17057. NM=$lt_NM
  17058. # Whether we need soft or hard links.
  17059. LN_S=$lt_LN_S
  17060. # What is the maximum length of a command?
  17061. max_cmd_len=$max_cmd_len
  17062. # Object file suffix (normally "o").
  17063. objext=$ac_objext
  17064. # Executable file suffix (normally "").
  17065. exeext=$exeext
  17066. # whether the shell understands "unset".
  17067. lt_unset=$lt_unset
  17068. # turn spaces into newlines.
  17069. SP2NL=$lt_lt_SP2NL
  17070. # turn newlines into spaces.
  17071. NL2SP=$lt_lt_NL2SP
  17072. # convert \$build file names to \$host format.
  17073. to_host_file_cmd=$lt_cv_to_host_file_cmd
  17074. # convert \$build files to toolchain format.
  17075. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17076. # An object symbol dumper.
  17077. OBJDUMP=$lt_OBJDUMP
  17078. # Method to check whether dependent libraries are shared objects.
  17079. deplibs_check_method=$lt_deplibs_check_method
  17080. # Command to use when deplibs_check_method = "file_magic".
  17081. file_magic_cmd=$lt_file_magic_cmd
  17082. # How to find potential files when deplibs_check_method = "file_magic".
  17083. file_magic_glob=$lt_file_magic_glob
  17084. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  17085. want_nocaseglob=$lt_want_nocaseglob
  17086. # DLL creation program.
  17087. DLLTOOL=$lt_DLLTOOL
  17088. # Command to associate shared and link libraries.
  17089. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  17090. # The archiver.
  17091. AR=$lt_AR
  17092. # Flags to create an archive.
  17093. AR_FLAGS=$lt_AR_FLAGS
  17094. # How to feed a file listing to the archiver.
  17095. archiver_list_spec=$lt_archiver_list_spec
  17096. # A symbol stripping program.
  17097. STRIP=$lt_STRIP
  17098. # Commands used to install an old-style archive.
  17099. RANLIB=$lt_RANLIB
  17100. old_postinstall_cmds=$lt_old_postinstall_cmds
  17101. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17102. # Whether to use a lock for old archive extraction.
  17103. lock_old_archive_extraction=$lock_old_archive_extraction
  17104. # A C compiler.
  17105. LTCC=$lt_CC
  17106. # LTCC compiler flags.
  17107. LTCFLAGS=$lt_CFLAGS
  17108. # Take the output of nm and produce a listing of raw symbols and C names.
  17109. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17110. # Transform the output of nm in a proper C declaration.
  17111. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17112. # Transform the output of nm into a list of symbols to manually relocate.
  17113. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  17114. # Transform the output of nm in a C name address pair.
  17115. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17116. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17117. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17118. # The name lister interface.
  17119. nm_interface=$lt_lt_cv_nm_interface
  17120. # Specify filename containing input files for \$NM.
  17121. nm_file_list_spec=$lt_nm_file_list_spec
  17122. # The root where to search for dependent libraries,and where our libraries should be installed.
  17123. lt_sysroot=$lt_sysroot
  17124. # Command to truncate a binary pipe.
  17125. lt_truncate_bin=$lt_lt_cv_truncate_bin
  17126. # The name of the directory that contains temporary libtool files.
  17127. objdir=$objdir
  17128. # Used to examine libraries when file_magic_cmd begins with "file".
  17129. MAGIC_CMD=$MAGIC_CMD
  17130. # Must we lock files when doing compilation?
  17131. need_locks=$lt_need_locks
  17132. # Manifest tool.
  17133. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17134. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17135. DSYMUTIL=$lt_DSYMUTIL
  17136. # Tool to change global to local symbols on Mac OS X.
  17137. NMEDIT=$lt_NMEDIT
  17138. # Tool to manipulate fat objects and archives on Mac OS X.
  17139. LIPO=$lt_LIPO
  17140. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17141. OTOOL=$lt_OTOOL
  17142. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17143. OTOOL64=$lt_OTOOL64
  17144. # Old archive suffix (normally "a").
  17145. libext=$libext
  17146. # Shared library suffix (normally ".so").
  17147. shrext_cmds=$lt_shrext_cmds
  17148. # The commands to extract the exported symbol list from a shared archive.
  17149. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17150. # Variables whose values should be saved in libtool wrapper scripts and
  17151. # restored at link time.
  17152. variables_saved_for_relink=$lt_variables_saved_for_relink
  17153. # Do we need the "lib" prefix for modules?
  17154. need_lib_prefix=$need_lib_prefix
  17155. # Do we need a version for libraries?
  17156. need_version=$need_version
  17157. # Library versioning type.
  17158. version_type=$version_type
  17159. # Shared library runtime path variable.
  17160. runpath_var=$runpath_var
  17161. # Shared library path variable.
  17162. shlibpath_var=$shlibpath_var
  17163. # Is shlibpath searched before the hard-coded library search path?
  17164. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17165. # Format of library name prefix.
  17166. libname_spec=$lt_libname_spec
  17167. # List of archive names. First name is the real one, the rest are links.
  17168. # The last name is the one that the linker finds with -lNAME
  17169. library_names_spec=$lt_library_names_spec
  17170. # The coded name of the library, if different from the real name.
  17171. soname_spec=$lt_soname_spec
  17172. # Permission mode override for installation of shared libraries.
  17173. install_override_mode=$lt_install_override_mode
  17174. # Command to use after installation of a shared archive.
  17175. postinstall_cmds=$lt_postinstall_cmds
  17176. # Command to use after uninstallation of a shared archive.
  17177. postuninstall_cmds=$lt_postuninstall_cmds
  17178. # Commands used to finish a libtool library installation in a directory.
  17179. finish_cmds=$lt_finish_cmds
  17180. # As "finish_cmds", except a single script fragment to be evaled but
  17181. # not shown.
  17182. finish_eval=$lt_finish_eval
  17183. # Whether we should hardcode library paths into libraries.
  17184. hardcode_into_libs=$hardcode_into_libs
  17185. # Compile-time system search path for libraries.
  17186. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17187. # Detected run-time system search path for libraries.
  17188. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  17189. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  17190. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  17191. # Whether dlopen is supported.
  17192. dlopen_support=$enable_dlopen
  17193. # Whether dlopen of programs is supported.
  17194. dlopen_self=$enable_dlopen_self
  17195. # Whether dlopen of statically linked programs is supported.
  17196. dlopen_self_static=$enable_dlopen_self_static
  17197. # Commands to strip libraries.
  17198. old_striplib=$lt_old_striplib
  17199. striplib=$lt_striplib
  17200. # The linker used to build libraries.
  17201. LD=$lt_LD
  17202. # How to create reloadable object files.
  17203. reload_flag=$lt_reload_flag
  17204. reload_cmds=$lt_reload_cmds
  17205. # Commands used to build an old-style archive.
  17206. old_archive_cmds=$lt_old_archive_cmds
  17207. # A language specific compiler.
  17208. CC=$lt_compiler
  17209. # Is the compiler the GNU compiler?
  17210. with_gcc=$GCC
  17211. # Compiler flag to turn off builtin functions.
  17212. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17213. # Additional compiler flags for building library objects.
  17214. pic_flag=$lt_lt_prog_compiler_pic
  17215. # How to pass a linker flag through the compiler.
  17216. wl=$lt_lt_prog_compiler_wl
  17217. # Compiler flag to prevent dynamic linking.
  17218. link_static_flag=$lt_lt_prog_compiler_static
  17219. # Does compiler simultaneously support -c and -o options?
  17220. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17221. # Whether or not to add -lc for building shared libraries.
  17222. build_libtool_need_lc=$archive_cmds_need_lc
  17223. # Whether or not to disallow shared libs when runtime libs are static.
  17224. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17225. # Compiler flag to allow reflexive dlopens.
  17226. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17227. # Compiler flag to generate shared objects directly from archives.
  17228. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17229. # Whether the compiler copes with passing no objects directly.
  17230. compiler_needs_object=$lt_compiler_needs_object
  17231. # Create an old-style archive from a shared archive.
  17232. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17233. # Create a temporary old-style archive to link instead of a shared archive.
  17234. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17235. # Commands used to build a shared archive.
  17236. archive_cmds=$lt_archive_cmds
  17237. archive_expsym_cmds=$lt_archive_expsym_cmds
  17238. # Commands used to build a loadable module if different from building
  17239. # a shared archive.
  17240. module_cmds=$lt_module_cmds
  17241. module_expsym_cmds=$lt_module_expsym_cmds
  17242. # Whether we are building with GNU ld or not.
  17243. with_gnu_ld=$lt_with_gnu_ld
  17244. # Flag that allows shared libraries with undefined symbols to be built.
  17245. allow_undefined_flag=$lt_allow_undefined_flag
  17246. # Flag that enforces no undefined symbols.
  17247. no_undefined_flag=$lt_no_undefined_flag
  17248. # Flag to hardcode \$libdir into a binary during linking.
  17249. # This must work even if \$libdir does not exist
  17250. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17251. # Whether we need a single "-rpath" flag with a separated argument.
  17252. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17253. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17254. # DIR into the resulting binary.
  17255. hardcode_direct=$hardcode_direct
  17256. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17257. # DIR into the resulting binary and the resulting library dependency is
  17258. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17259. # library is relocated.
  17260. hardcode_direct_absolute=$hardcode_direct_absolute
  17261. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17262. # into the resulting binary.
  17263. hardcode_minus_L=$hardcode_minus_L
  17264. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17265. # into the resulting binary.
  17266. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17267. # Set to "yes" if building a shared library automatically hardcodes DIR
  17268. # into the library and all subsequent libraries and executables linked
  17269. # against it.
  17270. hardcode_automatic=$hardcode_automatic
  17271. # Set to yes if linker adds runtime paths of dependent libraries
  17272. # to runtime path list.
  17273. inherit_rpath=$inherit_rpath
  17274. # Whether libtool must link a program against all its dependency libraries.
  17275. link_all_deplibs=$link_all_deplibs
  17276. # Set to "yes" if exported symbols are required.
  17277. always_export_symbols=$always_export_symbols
  17278. # The commands to list exported symbols.
  17279. export_symbols_cmds=$lt_export_symbols_cmds
  17280. # Symbols that should not be listed in the preloaded symbols.
  17281. exclude_expsyms=$lt_exclude_expsyms
  17282. # Symbols that must always be exported.
  17283. include_expsyms=$lt_include_expsyms
  17284. # Commands necessary for linking programs (against libraries) with templates.
  17285. prelink_cmds=$lt_prelink_cmds
  17286. # Commands necessary for finishing linking programs.
  17287. postlink_cmds=$lt_postlink_cmds
  17288. # Specify filename containing input files.
  17289. file_list_spec=$lt_file_list_spec
  17290. # How to hardcode a shared library path into an executable.
  17291. hardcode_action=$hardcode_action
  17292. # ### END LIBTOOL CONFIG
  17293. _LT_EOF
  17294. cat <<'_LT_EOF' >> "$cfgfile"
  17295. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  17296. # func_munge_path_list VARIABLE PATH
  17297. # -----------------------------------
  17298. # VARIABLE is name of variable containing _space_ separated list of
  17299. # directories to be munged by the contents of PATH, which is string
  17300. # having a format:
  17301. # "DIR[:DIR]:"
  17302. # string "DIR[ DIR]" will be prepended to VARIABLE
  17303. # ":DIR[:DIR]"
  17304. # string "DIR[ DIR]" will be appended to VARIABLE
  17305. # "DIRP[:DIRP]::[DIRA:]DIRA"
  17306. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  17307. # "DIRA[ DIRA]" will be appended to VARIABLE
  17308. # "DIR[:DIR]"
  17309. # VARIABLE will be replaced by "DIR[ DIR]"
  17310. func_munge_path_list ()
  17311. {
  17312. case x$2 in
  17313. x)
  17314. ;;
  17315. *:)
  17316. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  17317. ;;
  17318. x:*)
  17319. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  17320. ;;
  17321. *::*)
  17322. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  17323. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  17324. ;;
  17325. *)
  17326. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  17327. ;;
  17328. esac
  17329. }
  17330. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  17331. func_cc_basename ()
  17332. {
  17333. for cc_temp in $*""; do
  17334. case $cc_temp in
  17335. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17336. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17337. \-*) ;;
  17338. *) break;;
  17339. esac
  17340. done
  17341. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  17342. }
  17343. # ### END FUNCTIONS SHARED WITH CONFIGURE
  17344. _LT_EOF
  17345. case $host_os in
  17346. aix3*)
  17347. cat <<\_LT_EOF >> "$cfgfile"
  17348. # AIX sometimes has problems with the GCC collect2 program. For some
  17349. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17350. # vanish in a puff of smoke.
  17351. if test set != "${COLLECT_NAMES+set}"; then
  17352. COLLECT_NAMES=
  17353. export COLLECT_NAMES
  17354. fi
  17355. _LT_EOF
  17356. ;;
  17357. esac
  17358. ltmain=$ac_aux_dir/ltmain.sh
  17359. # We use sed instead of cat because bash on DJGPP gets confused if
  17360. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17361. # text mode, it properly converts lines to CR/LF. This bash problem
  17362. # is reportedly fixed, but why not run on old versions too?
  17363. sed '$q' "$ltmain" >> "$cfgfile" \
  17364. || (rm -f "$cfgfile"; exit 1)
  17365. mv -f "$cfgfile" "$ofile" ||
  17366. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17367. chmod +x "$ofile"
  17368. ;;
  17369. esac
  17370. done # for ac_tag
  17371. as_fn_exit 0
  17372. _ACEOF
  17373. ac_clean_files=$ac_clean_files_save
  17374. test $ac_write_fail = 0 ||
  17375. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17376. # configure is writing to config.log, and then calls config.status.
  17377. # config.status does its own redirection, appending to config.log.
  17378. # Unfortunately, on DOS this fails, as config.log is still kept open
  17379. # by configure, so config.status won't be able to write to it; its
  17380. # output is simply discarded. So we exec the FD to /dev/null,
  17381. # effectively closing config.log, so it can be properly (re)opened and
  17382. # appended to by config.status. When coming back to configure, we
  17383. # need to make the FD available again.
  17384. if test "$no_create" != yes; then
  17385. ac_cs_success=:
  17386. ac_config_status_args=
  17387. test "$silent" = yes &&
  17388. ac_config_status_args="$ac_config_status_args --quiet"
  17389. exec 5>/dev/null
  17390. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17391. exec 5>>config.log
  17392. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17393. # would make configure fail if this is the last instruction.
  17394. $ac_cs_success || as_fn_exit 1
  17395. fi
  17396. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17397. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17398. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17399. fi