configure 716 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for flac 1.3.2.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and [email protected]
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: 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='flac'
  542. PACKAGE_TARNAME='flac'
  543. PACKAGE_VERSION='1.3.2'
  544. PACKAGE_STRING='flac 1.3.2'
  545. PACKAGE_BUGREPORT='[email protected]'
  546. PACKAGE_URL='https://www.xiph.org/flac/'
  547. ac_unique_file="src/flac/main.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. LIB_CLOCK_GETTIME
  588. GCC_MINOR_VERSION
  589. GCC_MAJOR_VERSION
  590. GCC_VERSION
  591. FLaC__HAS_NASM_FALSE
  592. FLaC__HAS_NASM_TRUE
  593. NASM
  594. FLaC__HAS_DOCBOOK_TO_MAN_FALSE
  595. FLaC__HAS_DOCBOOK_TO_MAN_TRUE
  596. DOCBOOK_TO_MAN
  597. LTLIBICONV
  598. LIBICONV
  599. OGG_PACKAGE
  600. FLAC__HAS_OGG
  601. FLaC__HAS_OGG_FALSE
  602. FLaC__HAS_OGG_TRUE
  603. OGG_LIBS
  604. OGG_CFLAGS
  605. FLaC__WITH_CPPLIBS_FALSE
  606. FLaC__WITH_CPPLIBS_TRUE
  607. FLaC__HAS_XMMS_FALSE
  608. FLaC__HAS_XMMS_TRUE
  609. XMMS_EFFECT_PLUGIN_DIR
  610. XMMS_GENERAL_PLUGIN_DIR
  611. XMMS_OUTPUT_PLUGIN_DIR
  612. XMMS_INPUT_PLUGIN_DIR
  613. XMMS_VISUALIZATION_PLUGIN_DIR
  614. XMMS_PLUGIN_DIR
  615. XMMS_DATA_DIR
  616. XMMS_VERSION
  617. XMMS_LIBS
  618. XMMS_CFLAGS
  619. XMMS_CONFIG
  620. FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE
  621. FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE
  622. FLaC__HAS_DOXYGEN_FALSE
  623. FLaC__HAS_DOXYGEN_TRUE
  624. DOXYGEN
  625. FLAC__TEST_WITH_VALGRIND
  626. ENABLE_64_BIT_WORDS
  627. FLAC__TEST_LEVEL
  628. FLaC__USE_AVX_FALSE
  629. FLaC__USE_AVX_TRUE
  630. FLaC__USE_ALTIVEC_FALSE
  631. FLaC__USE_ALTIVEC_TRUE
  632. DEBUG_FALSE
  633. DEBUG_TRUE
  634. FLaC__SYS_LINUX_FALSE
  635. FLaC__SYS_LINUX_TRUE
  636. FLaC__SYS_DARWIN_FALSE
  637. FLaC__SYS_DARWIN_TRUE
  638. OS_IS_WINDOWS_FALSE
  639. OS_IS_WINDOWS_TRUE
  640. FLaC__CPU_PPC_SPE_FALSE
  641. FLaC__CPU_PPC_SPE_TRUE
  642. OBJ_FORMAT
  643. FLaC__CPU_SPARC_FALSE
  644. FLaC__CPU_SPARC_TRUE
  645. FLaC__CPU_PPC_FALSE
  646. FLaC__CPU_PPC_TRUE
  647. FLaC__CPU_IA32_FALSE
  648. FLaC__CPU_IA32_TRUE
  649. FLAC__CPU_X86_64_FALSE
  650. FLAC__CPU_X86_64_TRUE
  651. FLaC__NO_ASM_FALSE
  652. FLaC__NO_ASM_TRUE
  653. CXXCPP
  654. am__fastdepCXX_FALSE
  655. am__fastdepCXX_TRUE
  656. CXXDEPMODE
  657. ac_ct_CXX
  658. CXXFLAGS
  659. CXX
  660. am__fastdepCCAS_FALSE
  661. am__fastdepCCAS_TRUE
  662. CCASDEPMODE
  663. CCASFLAGS
  664. CCAS
  665. LT_SYS_LIBRARY_PATH
  666. OTOOL64
  667. OTOOL
  668. LIPO
  669. NMEDIT
  670. DSYMUTIL
  671. MANIFEST_TOOL
  672. RANLIB
  673. LN_S
  674. NM
  675. ac_ct_DUMPBIN
  676. DUMPBIN
  677. LD
  678. FGREP
  679. SED
  680. host_os
  681. host_vendor
  682. host_cpu
  683. host
  684. build_os
  685. build_vendor
  686. build_cpu
  687. build
  688. LIBTOOL
  689. OBJDUMP
  690. DLLTOOL
  691. AS
  692. ac_ct_AR
  693. AR
  694. EGREP
  695. GREP
  696. CPP
  697. am__fastdepCC_FALSE
  698. am__fastdepCC_TRUE
  699. CCDEPMODE
  700. am__nodep
  701. AMDEPBACKSLASH
  702. AMDEP_FALSE
  703. AMDEP_TRUE
  704. am__quote
  705. am__include
  706. DEPDIR
  707. OBJEXT
  708. EXEEXT
  709. ac_ct_CC
  710. CPPFLAGS
  711. LDFLAGS
  712. CFLAGS
  713. CC
  714. AM_BACKSLASH
  715. AM_DEFAULT_VERBOSITY
  716. AM_DEFAULT_V
  717. AM_V
  718. am__untar
  719. am__tar
  720. AMTAR
  721. am__leading_dot
  722. SET_MAKE
  723. AWK
  724. mkdir_p
  725. MKDIR_P
  726. INSTALL_STRIP_PROGRAM
  727. STRIP
  728. install_sh
  729. MAKEINFO
  730. AUTOHEADER
  731. AUTOMAKE
  732. AUTOCONF
  733. ACLOCAL
  734. VERSION
  735. PACKAGE
  736. CYGPATH_W
  737. am__isrc
  738. INSTALL_DATA
  739. INSTALL_SCRIPT
  740. INSTALL_PROGRAM
  741. target_alias
  742. host_alias
  743. build_alias
  744. LIBS
  745. ECHO_T
  746. ECHO_N
  747. ECHO_C
  748. DEFS
  749. mandir
  750. localedir
  751. libdir
  752. psdir
  753. pdfdir
  754. dvidir
  755. htmldir
  756. infodir
  757. docdir
  758. oldincludedir
  759. includedir
  760. runstatedir
  761. localstatedir
  762. sharedstatedir
  763. sysconfdir
  764. datadir
  765. datarootdir
  766. libexecdir
  767. sbindir
  768. bindir
  769. program_transform_name
  770. prefix
  771. exec_prefix
  772. PACKAGE_URL
  773. PACKAGE_BUGREPORT
  774. PACKAGE_STRING
  775. PACKAGE_VERSION
  776. PACKAGE_TARNAME
  777. PACKAGE_NAME
  778. PATH_SEPARATOR
  779. SHELL'
  780. ac_subst_files=''
  781. ac_user_opts='
  782. enable_option_checking
  783. enable_silent_rules
  784. enable_dependency_tracking
  785. enable_static
  786. with_pic
  787. enable_shared
  788. enable_fast_install
  789. with_aix_soname
  790. with_gnu_ld
  791. with_sysroot
  792. enable_libtool_lock
  793. enable_largefile
  794. enable_asm_optimizations
  795. enable_debug
  796. enable_sse
  797. enable_altivec
  798. enable_avx
  799. enable_thorough_tests
  800. enable_exhaustive_tests
  801. enable_werror
  802. enable_stack_smash_protection
  803. enable_64_bit_words
  804. enable_valgrind_testing
  805. enable_doxygen_docs
  806. enable_local_xmms_plugin
  807. enable_xmms_plugin
  808. with_xmms_prefix
  809. with_xmms_exec_prefix
  810. enable_cpplibs
  811. enable_ogg
  812. with_ogg
  813. with_ogg_libraries
  814. with_ogg_includes
  815. enable_oggtest
  816. enable_rpath
  817. with_libiconv_prefix
  818. '
  819. ac_precious_vars='build_alias
  820. host_alias
  821. target_alias
  822. CC
  823. CFLAGS
  824. LDFLAGS
  825. LIBS
  826. CPPFLAGS
  827. CPP
  828. LT_SYS_LIBRARY_PATH
  829. CCAS
  830. CCASFLAGS
  831. CXX
  832. CXXFLAGS
  833. CCC
  834. CXXCPP'
  835. # Initialize some variables set by options.
  836. ac_init_help=
  837. ac_init_version=false
  838. ac_unrecognized_opts=
  839. ac_unrecognized_sep=
  840. # The variables have the same names as the options, with
  841. # dashes changed to underlines.
  842. cache_file=/dev/null
  843. exec_prefix=NONE
  844. no_create=
  845. no_recursion=
  846. prefix=NONE
  847. program_prefix=NONE
  848. program_suffix=NONE
  849. program_transform_name=s,x,x,
  850. silent=
  851. site=
  852. srcdir=
  853. verbose=
  854. x_includes=NONE
  855. x_libraries=NONE
  856. # Installation directory options.
  857. # These are left unexpanded so users can "make install exec_prefix=/foo"
  858. # and all the variables that are supposed to be based on exec_prefix
  859. # by default will actually change.
  860. # Use braces instead of parens because sh, perl, etc. also accept them.
  861. # (The list follows the same order as the GNU Coding Standards.)
  862. bindir='${exec_prefix}/bin'
  863. sbindir='${exec_prefix}/sbin'
  864. libexecdir='${exec_prefix}/libexec'
  865. datarootdir='${prefix}/share'
  866. datadir='${datarootdir}'
  867. sysconfdir='${prefix}/etc'
  868. sharedstatedir='${prefix}/com'
  869. localstatedir='${prefix}/var'
  870. runstatedir='${localstatedir}/run'
  871. includedir='${prefix}/include'
  872. oldincludedir='/usr/include'
  873. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  874. infodir='${datarootdir}/info'
  875. htmldir='${docdir}'
  876. dvidir='${docdir}'
  877. pdfdir='${docdir}'
  878. psdir='${docdir}'
  879. libdir='${exec_prefix}/lib'
  880. localedir='${datarootdir}/locale'
  881. mandir='${datarootdir}/man'
  882. ac_prev=
  883. ac_dashdash=
  884. for ac_option
  885. do
  886. # If the previous option needs an argument, assign it.
  887. if test -n "$ac_prev"; then
  888. eval $ac_prev=\$ac_option
  889. ac_prev=
  890. continue
  891. fi
  892. case $ac_option in
  893. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  894. *=) ac_optarg= ;;
  895. *) ac_optarg=yes ;;
  896. esac
  897. # Accept the important Cygnus configure options, so we can diagnose typos.
  898. case $ac_dashdash$ac_option in
  899. --)
  900. ac_dashdash=yes ;;
  901. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  902. ac_prev=bindir ;;
  903. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  904. bindir=$ac_optarg ;;
  905. -build | --build | --buil | --bui | --bu)
  906. ac_prev=build_alias ;;
  907. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  908. build_alias=$ac_optarg ;;
  909. -cache-file | --cache-file | --cache-fil | --cache-fi \
  910. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  911. ac_prev=cache_file ;;
  912. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  913. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  914. cache_file=$ac_optarg ;;
  915. --config-cache | -C)
  916. cache_file=config.cache ;;
  917. -datadir | --datadir | --datadi | --datad)
  918. ac_prev=datadir ;;
  919. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  920. datadir=$ac_optarg ;;
  921. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  922. | --dataroo | --dataro | --datar)
  923. ac_prev=datarootdir ;;
  924. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  925. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  926. datarootdir=$ac_optarg ;;
  927. -disable-* | --disable-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error $? "invalid feature name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "enable_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval enable_$ac_useropt=no ;;
  942. -docdir | --docdir | --docdi | --doc | --do)
  943. ac_prev=docdir ;;
  944. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  945. docdir=$ac_optarg ;;
  946. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  947. ac_prev=dvidir ;;
  948. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  949. dvidir=$ac_optarg ;;
  950. -enable-* | --enable-*)
  951. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  952. # Reject names that are not valid shell variable names.
  953. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  954. as_fn_error $? "invalid feature name: $ac_useropt"
  955. ac_useropt_orig=$ac_useropt
  956. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  957. case $ac_user_opts in
  958. *"
  959. "enable_$ac_useropt"
  960. "*) ;;
  961. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  962. ac_unrecognized_sep=', ';;
  963. esac
  964. eval enable_$ac_useropt=\$ac_optarg ;;
  965. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  966. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  967. | --exec | --exe | --ex)
  968. ac_prev=exec_prefix ;;
  969. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  970. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  971. | --exec=* | --exe=* | --ex=*)
  972. exec_prefix=$ac_optarg ;;
  973. -gas | --gas | --ga | --g)
  974. # Obsolete; use --with-gas.
  975. with_gas=yes ;;
  976. -help | --help | --hel | --he | -h)
  977. ac_init_help=long ;;
  978. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  979. ac_init_help=recursive ;;
  980. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  981. ac_init_help=short ;;
  982. -host | --host | --hos | --ho)
  983. ac_prev=host_alias ;;
  984. -host=* | --host=* | --hos=* | --ho=*)
  985. host_alias=$ac_optarg ;;
  986. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  987. ac_prev=htmldir ;;
  988. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  989. | --ht=*)
  990. htmldir=$ac_optarg ;;
  991. -includedir | --includedir | --includedi | --included | --include \
  992. | --includ | --inclu | --incl | --inc)
  993. ac_prev=includedir ;;
  994. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  995. | --includ=* | --inclu=* | --incl=* | --inc=*)
  996. includedir=$ac_optarg ;;
  997. -infodir | --infodir | --infodi | --infod | --info | --inf)
  998. ac_prev=infodir ;;
  999. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1000. infodir=$ac_optarg ;;
  1001. -libdir | --libdir | --libdi | --libd)
  1002. ac_prev=libdir ;;
  1003. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1004. libdir=$ac_optarg ;;
  1005. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1006. | --libexe | --libex | --libe)
  1007. ac_prev=libexecdir ;;
  1008. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1009. | --libexe=* | --libex=* | --libe=*)
  1010. libexecdir=$ac_optarg ;;
  1011. -localedir | --localedir | --localedi | --localed | --locale)
  1012. ac_prev=localedir ;;
  1013. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1014. localedir=$ac_optarg ;;
  1015. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1016. | --localstate | --localstat | --localsta | --localst | --locals)
  1017. ac_prev=localstatedir ;;
  1018. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1019. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1020. localstatedir=$ac_optarg ;;
  1021. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1022. ac_prev=mandir ;;
  1023. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1024. mandir=$ac_optarg ;;
  1025. -nfp | --nfp | --nf)
  1026. # Obsolete; use --without-fp.
  1027. with_fp=no ;;
  1028. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1029. | --no-cr | --no-c | -n)
  1030. no_create=yes ;;
  1031. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1032. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1033. no_recursion=yes ;;
  1034. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1035. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1036. | --oldin | --oldi | --old | --ol | --o)
  1037. ac_prev=oldincludedir ;;
  1038. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1039. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1040. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1041. oldincludedir=$ac_optarg ;;
  1042. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1043. ac_prev=prefix ;;
  1044. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1045. prefix=$ac_optarg ;;
  1046. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1047. | --program-pre | --program-pr | --program-p)
  1048. ac_prev=program_prefix ;;
  1049. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1050. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1051. program_prefix=$ac_optarg ;;
  1052. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1053. | --program-suf | --program-su | --program-s)
  1054. ac_prev=program_suffix ;;
  1055. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1056. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1057. program_suffix=$ac_optarg ;;
  1058. -program-transform-name | --program-transform-name \
  1059. | --program-transform-nam | --program-transform-na \
  1060. | --program-transform-n | --program-transform- \
  1061. | --program-transform | --program-transfor \
  1062. | --program-transfo | --program-transf \
  1063. | --program-trans | --program-tran \
  1064. | --progr-tra | --program-tr | --program-t)
  1065. ac_prev=program_transform_name ;;
  1066. -program-transform-name=* | --program-transform-name=* \
  1067. | --program-transform-nam=* | --program-transform-na=* \
  1068. | --program-transform-n=* | --program-transform-=* \
  1069. | --program-transform=* | --program-transfor=* \
  1070. | --program-transfo=* | --program-transf=* \
  1071. | --program-trans=* | --program-tran=* \
  1072. | --progr-tra=* | --program-tr=* | --program-t=*)
  1073. program_transform_name=$ac_optarg ;;
  1074. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1075. ac_prev=pdfdir ;;
  1076. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1077. pdfdir=$ac_optarg ;;
  1078. -psdir | --psdir | --psdi | --psd | --ps)
  1079. ac_prev=psdir ;;
  1080. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1081. psdir=$ac_optarg ;;
  1082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1083. | -silent | --silent | --silen | --sile | --sil)
  1084. silent=yes ;;
  1085. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1086. | --runstate | --runstat | --runsta | --runst | --runs \
  1087. | --run | --ru | --r)
  1088. ac_prev=runstatedir ;;
  1089. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1090. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1091. | --run=* | --ru=* | --r=*)
  1092. runstatedir=$ac_optarg ;;
  1093. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1094. ac_prev=sbindir ;;
  1095. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1096. | --sbi=* | --sb=*)
  1097. sbindir=$ac_optarg ;;
  1098. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1099. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1100. | --sharedst | --shareds | --shared | --share | --shar \
  1101. | --sha | --sh)
  1102. ac_prev=sharedstatedir ;;
  1103. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1104. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1105. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1106. | --sha=* | --sh=*)
  1107. sharedstatedir=$ac_optarg ;;
  1108. -site | --site | --sit)
  1109. ac_prev=site ;;
  1110. -site=* | --site=* | --sit=*)
  1111. site=$ac_optarg ;;
  1112. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1113. ac_prev=srcdir ;;
  1114. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1115. srcdir=$ac_optarg ;;
  1116. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1117. | --syscon | --sysco | --sysc | --sys | --sy)
  1118. ac_prev=sysconfdir ;;
  1119. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1120. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1121. sysconfdir=$ac_optarg ;;
  1122. -target | --target | --targe | --targ | --tar | --ta | --t)
  1123. ac_prev=target_alias ;;
  1124. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1125. target_alias=$ac_optarg ;;
  1126. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1127. verbose=yes ;;
  1128. -version | --version | --versio | --versi | --vers | -V)
  1129. ac_init_version=: ;;
  1130. -with-* | --with-*)
  1131. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1132. # Reject names that are not valid shell variable names.
  1133. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1134. as_fn_error $? "invalid package name: $ac_useropt"
  1135. ac_useropt_orig=$ac_useropt
  1136. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1137. case $ac_user_opts in
  1138. *"
  1139. "with_$ac_useropt"
  1140. "*) ;;
  1141. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1142. ac_unrecognized_sep=', ';;
  1143. esac
  1144. eval with_$ac_useropt=\$ac_optarg ;;
  1145. -without-* | --without-*)
  1146. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1147. # Reject names that are not valid shell variable names.
  1148. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1149. as_fn_error $? "invalid package name: $ac_useropt"
  1150. ac_useropt_orig=$ac_useropt
  1151. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1152. case $ac_user_opts in
  1153. *"
  1154. "with_$ac_useropt"
  1155. "*) ;;
  1156. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1157. ac_unrecognized_sep=', ';;
  1158. esac
  1159. eval with_$ac_useropt=no ;;
  1160. --x)
  1161. # Obsolete; use --with-x.
  1162. with_x=yes ;;
  1163. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1164. | --x-incl | --x-inc | --x-in | --x-i)
  1165. ac_prev=x_includes ;;
  1166. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1167. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1168. x_includes=$ac_optarg ;;
  1169. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1170. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1171. ac_prev=x_libraries ;;
  1172. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1173. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1174. x_libraries=$ac_optarg ;;
  1175. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1176. Try \`$0 --help' for more information"
  1177. ;;
  1178. *=*)
  1179. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1180. # Reject names that are not valid shell variable names.
  1181. case $ac_envvar in #(
  1182. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1183. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1184. esac
  1185. eval $ac_envvar=\$ac_optarg
  1186. export $ac_envvar ;;
  1187. *)
  1188. # FIXME: should be removed in autoconf 3.0.
  1189. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1190. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1191. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1192. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1193. ;;
  1194. esac
  1195. done
  1196. if test -n "$ac_prev"; then
  1197. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1198. as_fn_error $? "missing argument to $ac_option"
  1199. fi
  1200. if test -n "$ac_unrecognized_opts"; then
  1201. case $enable_option_checking in
  1202. no) ;;
  1203. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1204. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1205. esac
  1206. fi
  1207. # Check all directory arguments for consistency.
  1208. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1209. datadir sysconfdir sharedstatedir localstatedir includedir \
  1210. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1211. libdir localedir mandir runstatedir
  1212. do
  1213. eval ac_val=\$$ac_var
  1214. # Remove trailing slashes.
  1215. case $ac_val in
  1216. */ )
  1217. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1218. eval $ac_var=\$ac_val;;
  1219. esac
  1220. # Be sure to have absolute directory names.
  1221. case $ac_val in
  1222. [\\/$]* | ?:[\\/]* ) continue;;
  1223. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1224. esac
  1225. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1226. done
  1227. # There might be people who depend on the old broken behavior: `$host'
  1228. # used to hold the argument of --host etc.
  1229. # FIXME: To remove some day.
  1230. build=$build_alias
  1231. host=$host_alias
  1232. target=$target_alias
  1233. # FIXME: To remove some day.
  1234. if test "x$host_alias" != x; then
  1235. if test "x$build_alias" = x; then
  1236. cross_compiling=maybe
  1237. elif test "x$build_alias" != "x$host_alias"; then
  1238. cross_compiling=yes
  1239. fi
  1240. fi
  1241. ac_tool_prefix=
  1242. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1243. test "$silent" = yes && exec 6>/dev/null
  1244. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1245. ac_ls_di=`ls -di .` &&
  1246. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1247. as_fn_error $? "working directory cannot be determined"
  1248. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1249. as_fn_error $? "pwd does not report name of working directory"
  1250. # Find the source files, if location was not specified.
  1251. if test -z "$srcdir"; then
  1252. ac_srcdir_defaulted=yes
  1253. # Try the directory containing this script, then the parent directory.
  1254. ac_confdir=`$as_dirname -- "$as_myself" ||
  1255. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1256. X"$as_myself" : 'X\(//\)[^/]' \| \
  1257. X"$as_myself" : 'X\(//\)$' \| \
  1258. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1259. $as_echo X"$as_myself" |
  1260. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\/\)[^/].*/{
  1265. s//\1/
  1266. q
  1267. }
  1268. /^X\(\/\/\)$/{
  1269. s//\1/
  1270. q
  1271. }
  1272. /^X\(\/\).*/{
  1273. s//\1/
  1274. q
  1275. }
  1276. s/.*/./; q'`
  1277. srcdir=$ac_confdir
  1278. if test ! -r "$srcdir/$ac_unique_file"; then
  1279. srcdir=..
  1280. fi
  1281. else
  1282. ac_srcdir_defaulted=no
  1283. fi
  1284. if test ! -r "$srcdir/$ac_unique_file"; then
  1285. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1286. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1287. fi
  1288. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1289. ac_abs_confdir=`(
  1290. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1291. pwd)`
  1292. # When building in place, set srcdir=.
  1293. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1294. srcdir=.
  1295. fi
  1296. # Remove unnecessary trailing slashes from srcdir.
  1297. # Double slashes in file names in object file debugging info
  1298. # mess up M-x gdb in Emacs.
  1299. case $srcdir in
  1300. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1301. esac
  1302. for ac_var in $ac_precious_vars; do
  1303. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1304. eval ac_env_${ac_var}_value=\$${ac_var}
  1305. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1306. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1307. done
  1308. #
  1309. # Report the --help message.
  1310. #
  1311. if test "$ac_init_help" = "long"; then
  1312. # Omit some internal or obsolete options to make the list less imposing.
  1313. # This message is too long to be a string in the A/UX 3.1 sh.
  1314. cat <<_ACEOF
  1315. \`configure' configures flac 1.3.2 to adapt to many kinds of systems.
  1316. Usage: $0 [OPTION]... [VAR=VALUE]...
  1317. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1318. VAR=VALUE. See below for descriptions of some of the useful variables.
  1319. Defaults for the options are specified in brackets.
  1320. Configuration:
  1321. -h, --help display this help and exit
  1322. --help=short display options specific to this package
  1323. --help=recursive display the short help of all the included packages
  1324. -V, --version display version information and exit
  1325. -q, --quiet, --silent do not print \`checking ...' messages
  1326. --cache-file=FILE cache test results in FILE [disabled]
  1327. -C, --config-cache alias for \`--cache-file=config.cache'
  1328. -n, --no-create do not create output files
  1329. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1330. Installation directories:
  1331. --prefix=PREFIX install architecture-independent files in PREFIX
  1332. [$ac_default_prefix]
  1333. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1334. [PREFIX]
  1335. By default, \`make install' will install all the files in
  1336. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1337. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1338. for instance \`--prefix=\$HOME'.
  1339. For better control, use the options below.
  1340. Fine tuning of the installation directories:
  1341. --bindir=DIR user executables [EPREFIX/bin]
  1342. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1343. --libexecdir=DIR program executables [EPREFIX/libexec]
  1344. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1345. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1346. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1347. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1348. --libdir=DIR object code libraries [EPREFIX/lib]
  1349. --includedir=DIR C header files [PREFIX/include]
  1350. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1351. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1352. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1353. --infodir=DIR info documentation [DATAROOTDIR/info]
  1354. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1355. --mandir=DIR man documentation [DATAROOTDIR/man]
  1356. --docdir=DIR documentation root [DATAROOTDIR/doc/flac]
  1357. --htmldir=DIR html documentation [DOCDIR]
  1358. --dvidir=DIR dvi documentation [DOCDIR]
  1359. --pdfdir=DIR pdf documentation [DOCDIR]
  1360. --psdir=DIR ps documentation [DOCDIR]
  1361. _ACEOF
  1362. cat <<\_ACEOF
  1363. Program names:
  1364. --program-prefix=PREFIX prepend PREFIX to installed program names
  1365. --program-suffix=SUFFIX append SUFFIX to installed program names
  1366. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1367. System types:
  1368. --build=BUILD configure for building on BUILD [guessed]
  1369. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1370. _ACEOF
  1371. fi
  1372. if test -n "$ac_init_help"; then
  1373. case $ac_init_help in
  1374. short | recursive ) echo "Configuration of flac 1.3.2:";;
  1375. esac
  1376. cat <<\_ACEOF
  1377. Optional Features:
  1378. --disable-option-checking ignore unrecognized --enable/--with options
  1379. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1380. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1381. --enable-silent-rules less verbose build output (undo: "make V=1")
  1382. --disable-silent-rules verbose build output (undo: "make V=0")
  1383. --enable-dependency-tracking
  1384. do not reject slow dependency extractors
  1385. --disable-dependency-tracking
  1386. speeds up one-time build
  1387. --enable-static[=PKGS] build static libraries [default=no]
  1388. --enable-shared[=PKGS] build shared libraries [default=yes]
  1389. --enable-fast-install[=PKGS]
  1390. optimize for fast installation [default=yes]
  1391. --disable-libtool-lock avoid locking (might break parallel builds)
  1392. --disable-largefile omit support for large files
  1393. --disable-asm-optimizations
  1394. Don't use any assembly optimization routines
  1395. --enable-debug Turn on debugging
  1396. --disable-sse Disable passing of -msse2 to the compiler
  1397. --disable-altivec Disable Altivec optimizations
  1398. --disable-avx Disable AVX, AVX2 optimizations
  1399. --disable-thorough-tests
  1400. Disable thorough (long) testing, do only basic tests
  1401. --enable-exhaustive-tests
  1402. Enable exhaustive testing (VERY long)
  1403. --enable-werror Enable -Werror in all Makefiles
  1404. --enable-stack-smash-protection
  1405. Enable GNU GCC stack smash protection
  1406. --enable-64-bit-words Set FLAC__BYTES_PER_WORD to 8 (4 is the default)
  1407. --enable-valgrind-testing
  1408. Run all tests inside Valgrind
  1409. --disable-doxygen-docs Disable API documentation building via Doxygen
  1410. --enable-local-xmms-plugin
  1411. Install XMMS plugin to ~/.xmms/Plugins instead of
  1412. system location
  1413. --disable-xmms-plugin Do not build XMMS plugin
  1414. --disable-cpplibs Do not build libFLAC++
  1415. --disable-ogg Disable ogg support (default: test for libogg)
  1416. --disable-oggtest Do not try to compile and run a test Ogg program
  1417. --disable-rpath do not hardcode runtime library paths
  1418. Optional Packages:
  1419. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1420. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1421. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1422. both]
  1423. --with-aix-soname=aix|svr4|both
  1424. shared library versioning (aka "SONAME") variant to
  1425. provide on AIX, [default=aix].
  1426. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1427. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1428. compiler's sysroot if not specified).
  1429. --with-xmms-prefix=PFX Prefix where XMMS is installed (optional)
  1430. --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional)
  1431. --with-ogg=PFX Prefix where libogg is installed (optional)
  1432. --with-ogg-libraries=DIR
  1433. Directory where libogg library is installed
  1434. (optional)
  1435. --with-ogg-includes=DIR Directory where libogg header files are installed
  1436. (optional)
  1437. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1438. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1439. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1440. Some influential environment variables:
  1441. CC C compiler command
  1442. CFLAGS C compiler flags
  1443. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1444. nonstandard directory <lib dir>
  1445. LIBS libraries to pass to the linker, e.g. -l<library>
  1446. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1447. you have headers in a nonstandard directory <include dir>
  1448. CPP C preprocessor
  1449. LT_SYS_LIBRARY_PATH
  1450. User-defined run-time library search path.
  1451. CCAS assembler compiler command (defaults to CC)
  1452. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1453. CXX C++ compiler command
  1454. CXXFLAGS C++ compiler flags
  1455. CXXCPP C++ preprocessor
  1456. Use these variables to override the choices made by `configure' or to help
  1457. it to find libraries and programs with nonstandard names/locations.
  1458. Report bugs to <[email protected]>.
  1459. flac home page: <https://www.xiph.org/flac/>.
  1460. _ACEOF
  1461. ac_status=$?
  1462. fi
  1463. if test "$ac_init_help" = "recursive"; then
  1464. # If there are subdirs, report their specific --help.
  1465. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1466. test -d "$ac_dir" ||
  1467. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1468. continue
  1469. ac_builddir=.
  1470. case "$ac_dir" in
  1471. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1472. *)
  1473. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1474. # A ".." for each directory in $ac_dir_suffix.
  1475. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1476. case $ac_top_builddir_sub in
  1477. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1478. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1479. esac ;;
  1480. esac
  1481. ac_abs_top_builddir=$ac_pwd
  1482. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1483. # for backward compatibility:
  1484. ac_top_builddir=$ac_top_build_prefix
  1485. case $srcdir in
  1486. .) # We are building in place.
  1487. ac_srcdir=.
  1488. ac_top_srcdir=$ac_top_builddir_sub
  1489. ac_abs_top_srcdir=$ac_pwd ;;
  1490. [\\/]* | ?:[\\/]* ) # Absolute name.
  1491. ac_srcdir=$srcdir$ac_dir_suffix;
  1492. ac_top_srcdir=$srcdir
  1493. ac_abs_top_srcdir=$srcdir ;;
  1494. *) # Relative name.
  1495. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1496. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1497. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1498. esac
  1499. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1500. cd "$ac_dir" || { ac_status=$?; continue; }
  1501. # Check for guested configure.
  1502. if test -f "$ac_srcdir/configure.gnu"; then
  1503. echo &&
  1504. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1505. elif test -f "$ac_srcdir/configure"; then
  1506. echo &&
  1507. $SHELL "$ac_srcdir/configure" --help=recursive
  1508. else
  1509. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1510. fi || ac_status=$?
  1511. cd "$ac_pwd" || { ac_status=$?; break; }
  1512. done
  1513. fi
  1514. test -n "$ac_init_help" && exit $ac_status
  1515. if $ac_init_version; then
  1516. cat <<\_ACEOF
  1517. flac configure 1.3.2
  1518. generated by GNU Autoconf 2.69
  1519. Copyright (C) 2012 Free Software Foundation, Inc.
  1520. This configure script is free software; the Free Software Foundation
  1521. gives unlimited permission to copy, distribute and modify it.
  1522. _ACEOF
  1523. exit
  1524. fi
  1525. ## ------------------------ ##
  1526. ## Autoconf initialization. ##
  1527. ## ------------------------ ##
  1528. # ac_fn_c_try_compile LINENO
  1529. # --------------------------
  1530. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1531. ac_fn_c_try_compile ()
  1532. {
  1533. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1534. rm -f conftest.$ac_objext
  1535. if { { ac_try="$ac_compile"
  1536. case "(($ac_try" in
  1537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1538. *) ac_try_echo=$ac_try;;
  1539. esac
  1540. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1541. $as_echo "$ac_try_echo"; } >&5
  1542. (eval "$ac_compile") 2>conftest.err
  1543. ac_status=$?
  1544. if test -s conftest.err; then
  1545. grep -v '^ *+' conftest.err >conftest.er1
  1546. cat conftest.er1 >&5
  1547. mv -f conftest.er1 conftest.err
  1548. fi
  1549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1550. test $ac_status = 0; } && {
  1551. test -z "$ac_c_werror_flag" ||
  1552. test ! -s conftest.err
  1553. } && test -s conftest.$ac_objext; then :
  1554. ac_retval=0
  1555. else
  1556. $as_echo "$as_me: failed program was:" >&5
  1557. sed 's/^/| /' conftest.$ac_ext >&5
  1558. ac_retval=1
  1559. fi
  1560. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1561. as_fn_set_status $ac_retval
  1562. } # ac_fn_c_try_compile
  1563. # ac_fn_c_try_cpp LINENO
  1564. # ----------------------
  1565. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1566. ac_fn_c_try_cpp ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1570. case "(($ac_try" in
  1571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1572. *) ac_try_echo=$ac_try;;
  1573. esac
  1574. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1575. $as_echo "$ac_try_echo"; } >&5
  1576. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1577. ac_status=$?
  1578. if test -s conftest.err; then
  1579. grep -v '^ *+' conftest.err >conftest.er1
  1580. cat conftest.er1 >&5
  1581. mv -f conftest.er1 conftest.err
  1582. fi
  1583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1584. test $ac_status = 0; } > conftest.i && {
  1585. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1586. test ! -s conftest.err
  1587. }; then :
  1588. ac_retval=0
  1589. else
  1590. $as_echo "$as_me: failed program was:" >&5
  1591. sed 's/^/| /' conftest.$ac_ext >&5
  1592. ac_retval=1
  1593. fi
  1594. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1595. as_fn_set_status $ac_retval
  1596. } # ac_fn_c_try_cpp
  1597. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1598. # -------------------------------------------------------
  1599. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1600. # the include files in INCLUDES and setting the cache variable VAR
  1601. # accordingly.
  1602. ac_fn_c_check_header_mongrel ()
  1603. {
  1604. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1605. if eval \${$3+:} false; then :
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1607. $as_echo_n "checking for $2... " >&6; }
  1608. if eval \${$3+:} false; then :
  1609. $as_echo_n "(cached) " >&6
  1610. fi
  1611. eval ac_res=\$$3
  1612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1613. $as_echo "$ac_res" >&6; }
  1614. else
  1615. # Is the header compilable?
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1617. $as_echo_n "checking $2 usability... " >&6; }
  1618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1619. /* end confdefs.h. */
  1620. $4
  1621. #include <$2>
  1622. _ACEOF
  1623. if ac_fn_c_try_compile "$LINENO"; then :
  1624. ac_header_compiler=yes
  1625. else
  1626. ac_header_compiler=no
  1627. fi
  1628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1630. $as_echo "$ac_header_compiler" >&6; }
  1631. # Is the header present?
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1633. $as_echo_n "checking $2 presence... " >&6; }
  1634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1635. /* end confdefs.h. */
  1636. #include <$2>
  1637. _ACEOF
  1638. if ac_fn_c_try_cpp "$LINENO"; then :
  1639. ac_header_preproc=yes
  1640. else
  1641. ac_header_preproc=no
  1642. fi
  1643. rm -f conftest.err conftest.i conftest.$ac_ext
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1645. $as_echo "$ac_header_preproc" >&6; }
  1646. # So? What about this header?
  1647. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1648. yes:no: )
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1650. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1652. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1653. ;;
  1654. no:yes:* )
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1656. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1658. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1660. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1662. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1664. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1665. ( $as_echo "## -------------------------------- ##
  1666. ## Report this to [email protected] ##
  1667. ## -------------------------------- ##"
  1668. ) | sed "s/^/$as_me: WARNING: /" >&2
  1669. ;;
  1670. esac
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1672. $as_echo_n "checking for $2... " >&6; }
  1673. if eval \${$3+:} false; then :
  1674. $as_echo_n "(cached) " >&6
  1675. else
  1676. eval "$3=\$ac_header_compiler"
  1677. fi
  1678. eval ac_res=\$$3
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1680. $as_echo "$ac_res" >&6; }
  1681. fi
  1682. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1683. } # ac_fn_c_check_header_mongrel
  1684. # ac_fn_c_try_run LINENO
  1685. # ----------------------
  1686. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1687. # that executables *can* be run.
  1688. ac_fn_c_try_run ()
  1689. {
  1690. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691. if { { ac_try="$ac_link"
  1692. case "(($ac_try" in
  1693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1694. *) ac_try_echo=$ac_try;;
  1695. esac
  1696. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1697. $as_echo "$ac_try_echo"; } >&5
  1698. (eval "$ac_link") 2>&5
  1699. ac_status=$?
  1700. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1701. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1702. { { case "(($ac_try" in
  1703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704. *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708. (eval "$ac_try") 2>&5
  1709. ac_status=$?
  1710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1711. test $ac_status = 0; }; }; then :
  1712. ac_retval=0
  1713. else
  1714. $as_echo "$as_me: program exited with status $ac_status" >&5
  1715. $as_echo "$as_me: failed program was:" >&5
  1716. sed 's/^/| /' conftest.$ac_ext >&5
  1717. ac_retval=$ac_status
  1718. fi
  1719. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1720. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1721. as_fn_set_status $ac_retval
  1722. } # ac_fn_c_try_run
  1723. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1724. # -------------------------------------------------------
  1725. # Tests whether HEADER exists and can be compiled using the include files in
  1726. # INCLUDES, setting the cache variable VAR accordingly.
  1727. ac_fn_c_check_header_compile ()
  1728. {
  1729. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1731. $as_echo_n "checking for $2... " >&6; }
  1732. if eval \${$3+:} false; then :
  1733. $as_echo_n "(cached) " >&6
  1734. else
  1735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1736. /* end confdefs.h. */
  1737. $4
  1738. #include <$2>
  1739. _ACEOF
  1740. if ac_fn_c_try_compile "$LINENO"; then :
  1741. eval "$3=yes"
  1742. else
  1743. eval "$3=no"
  1744. fi
  1745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1746. fi
  1747. eval ac_res=\$$3
  1748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1749. $as_echo "$ac_res" >&6; }
  1750. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1751. } # ac_fn_c_check_header_compile
  1752. # ac_fn_c_try_link LINENO
  1753. # -----------------------
  1754. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1755. ac_fn_c_try_link ()
  1756. {
  1757. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1758. rm -f conftest.$ac_objext conftest$ac_exeext
  1759. if { { ac_try="$ac_link"
  1760. case "(($ac_try" in
  1761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1762. *) ac_try_echo=$ac_try;;
  1763. esac
  1764. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1765. $as_echo "$ac_try_echo"; } >&5
  1766. (eval "$ac_link") 2>conftest.err
  1767. ac_status=$?
  1768. if test -s conftest.err; then
  1769. grep -v '^ *+' conftest.err >conftest.er1
  1770. cat conftest.er1 >&5
  1771. mv -f conftest.er1 conftest.err
  1772. fi
  1773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1774. test $ac_status = 0; } && {
  1775. test -z "$ac_c_werror_flag" ||
  1776. test ! -s conftest.err
  1777. } && test -s conftest$ac_exeext && {
  1778. test "$cross_compiling" = yes ||
  1779. test -x conftest$ac_exeext
  1780. }; then :
  1781. ac_retval=0
  1782. else
  1783. $as_echo "$as_me: failed program was:" >&5
  1784. sed 's/^/| /' conftest.$ac_ext >&5
  1785. ac_retval=1
  1786. fi
  1787. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1788. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1789. # interfere with the next link command; also delete a directory that is
  1790. # left behind by Apple's compiler. We do this before executing the actions.
  1791. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1792. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1793. as_fn_set_status $ac_retval
  1794. } # ac_fn_c_try_link
  1795. # ac_fn_c_check_func LINENO FUNC VAR
  1796. # ----------------------------------
  1797. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1798. ac_fn_c_check_func ()
  1799. {
  1800. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1802. $as_echo_n "checking for $2... " >&6; }
  1803. if eval \${$3+:} false; then :
  1804. $as_echo_n "(cached) " >&6
  1805. else
  1806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1807. /* end confdefs.h. */
  1808. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1809. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1810. #define $2 innocuous_$2
  1811. /* System header to define __stub macros and hopefully few prototypes,
  1812. which can conflict with char $2 (); below.
  1813. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1814. <limits.h> exists even on freestanding compilers. */
  1815. #ifdef __STDC__
  1816. # include <limits.h>
  1817. #else
  1818. # include <assert.h>
  1819. #endif
  1820. #undef $2
  1821. /* Override any GCC internal prototype to avoid an error.
  1822. Use char because int might match the return type of a GCC
  1823. builtin and then its argument prototype would still apply. */
  1824. #ifdef __cplusplus
  1825. extern "C"
  1826. #endif
  1827. char $2 ();
  1828. /* The GNU C library defines this for functions which it implements
  1829. to always fail with ENOSYS. Some functions are actually named
  1830. something starting with __ and the normal name is an alias. */
  1831. #if defined __stub_$2 || defined __stub___$2
  1832. choke me
  1833. #endif
  1834. int
  1835. main ()
  1836. {
  1837. return $2 ();
  1838. ;
  1839. return 0;
  1840. }
  1841. _ACEOF
  1842. if ac_fn_c_try_link "$LINENO"; then :
  1843. eval "$3=yes"
  1844. else
  1845. eval "$3=no"
  1846. fi
  1847. rm -f core conftest.err conftest.$ac_objext \
  1848. conftest$ac_exeext conftest.$ac_ext
  1849. fi
  1850. eval ac_res=\$$3
  1851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1852. $as_echo "$ac_res" >&6; }
  1853. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1854. } # ac_fn_c_check_func
  1855. # ac_fn_cxx_try_compile LINENO
  1856. # ----------------------------
  1857. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1858. ac_fn_cxx_try_compile ()
  1859. {
  1860. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1861. rm -f conftest.$ac_objext
  1862. if { { ac_try="$ac_compile"
  1863. case "(($ac_try" in
  1864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1865. *) ac_try_echo=$ac_try;;
  1866. esac
  1867. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1868. $as_echo "$ac_try_echo"; } >&5
  1869. (eval "$ac_compile") 2>conftest.err
  1870. ac_status=$?
  1871. if test -s conftest.err; then
  1872. grep -v '^ *+' conftest.err >conftest.er1
  1873. cat conftest.er1 >&5
  1874. mv -f conftest.er1 conftest.err
  1875. fi
  1876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1877. test $ac_status = 0; } && {
  1878. test -z "$ac_cxx_werror_flag" ||
  1879. test ! -s conftest.err
  1880. } && test -s conftest.$ac_objext; then :
  1881. ac_retval=0
  1882. else
  1883. $as_echo "$as_me: failed program was:" >&5
  1884. sed 's/^/| /' conftest.$ac_ext >&5
  1885. ac_retval=1
  1886. fi
  1887. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1888. as_fn_set_status $ac_retval
  1889. } # ac_fn_cxx_try_compile
  1890. # ac_fn_cxx_try_cpp LINENO
  1891. # ------------------------
  1892. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1893. ac_fn_cxx_try_cpp ()
  1894. {
  1895. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1896. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1897. case "(($ac_try" in
  1898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1899. *) ac_try_echo=$ac_try;;
  1900. esac
  1901. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1902. $as_echo "$ac_try_echo"; } >&5
  1903. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1904. ac_status=$?
  1905. if test -s conftest.err; then
  1906. grep -v '^ *+' conftest.err >conftest.er1
  1907. cat conftest.er1 >&5
  1908. mv -f conftest.er1 conftest.err
  1909. fi
  1910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1911. test $ac_status = 0; } > conftest.i && {
  1912. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1913. test ! -s conftest.err
  1914. }; then :
  1915. ac_retval=0
  1916. else
  1917. $as_echo "$as_me: failed program was:" >&5
  1918. sed 's/^/| /' conftest.$ac_ext >&5
  1919. ac_retval=1
  1920. fi
  1921. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1922. as_fn_set_status $ac_retval
  1923. } # ac_fn_cxx_try_cpp
  1924. # ac_fn_cxx_try_link LINENO
  1925. # -------------------------
  1926. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1927. ac_fn_cxx_try_link ()
  1928. {
  1929. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1930. rm -f conftest.$ac_objext conftest$ac_exeext
  1931. if { { ac_try="$ac_link"
  1932. case "(($ac_try" in
  1933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1934. *) ac_try_echo=$ac_try;;
  1935. esac
  1936. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1937. $as_echo "$ac_try_echo"; } >&5
  1938. (eval "$ac_link") 2>conftest.err
  1939. ac_status=$?
  1940. if test -s conftest.err; then
  1941. grep -v '^ *+' conftest.err >conftest.er1
  1942. cat conftest.er1 >&5
  1943. mv -f conftest.er1 conftest.err
  1944. fi
  1945. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1946. test $ac_status = 0; } && {
  1947. test -z "$ac_cxx_werror_flag" ||
  1948. test ! -s conftest.err
  1949. } && test -s conftest$ac_exeext && {
  1950. test "$cross_compiling" = yes ||
  1951. test -x conftest$ac_exeext
  1952. }; then :
  1953. ac_retval=0
  1954. else
  1955. $as_echo "$as_me: failed program was:" >&5
  1956. sed 's/^/| /' conftest.$ac_ext >&5
  1957. ac_retval=1
  1958. fi
  1959. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1960. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1961. # interfere with the next link command; also delete a directory that is
  1962. # left behind by Apple's compiler. We do this before executing the actions.
  1963. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1964. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1965. as_fn_set_status $ac_retval
  1966. } # ac_fn_cxx_try_link
  1967. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1968. # --------------------------------------------
  1969. # Tries to find the compile-time value of EXPR in a program that includes
  1970. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1971. # computed
  1972. ac_fn_c_compute_int ()
  1973. {
  1974. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1975. if test "$cross_compiling" = yes; then
  1976. # Depending upon the size, compute the lo and hi bounds.
  1977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1978. /* end confdefs.h. */
  1979. $4
  1980. int
  1981. main ()
  1982. {
  1983. static int test_array [1 - 2 * !(($2) >= 0)];
  1984. test_array [0] = 0;
  1985. return test_array [0];
  1986. ;
  1987. return 0;
  1988. }
  1989. _ACEOF
  1990. if ac_fn_c_try_compile "$LINENO"; then :
  1991. ac_lo=0 ac_mid=0
  1992. while :; do
  1993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1994. /* end confdefs.h. */
  1995. $4
  1996. int
  1997. main ()
  1998. {
  1999. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2000. test_array [0] = 0;
  2001. return test_array [0];
  2002. ;
  2003. return 0;
  2004. }
  2005. _ACEOF
  2006. if ac_fn_c_try_compile "$LINENO"; then :
  2007. ac_hi=$ac_mid; break
  2008. else
  2009. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2010. if test $ac_lo -le $ac_mid; then
  2011. ac_lo= ac_hi=
  2012. break
  2013. fi
  2014. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2015. fi
  2016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2017. done
  2018. else
  2019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2020. /* end confdefs.h. */
  2021. $4
  2022. int
  2023. main ()
  2024. {
  2025. static int test_array [1 - 2 * !(($2) < 0)];
  2026. test_array [0] = 0;
  2027. return test_array [0];
  2028. ;
  2029. return 0;
  2030. }
  2031. _ACEOF
  2032. if ac_fn_c_try_compile "$LINENO"; then :
  2033. ac_hi=-1 ac_mid=-1
  2034. while :; do
  2035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2036. /* end confdefs.h. */
  2037. $4
  2038. int
  2039. main ()
  2040. {
  2041. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2042. test_array [0] = 0;
  2043. return test_array [0];
  2044. ;
  2045. return 0;
  2046. }
  2047. _ACEOF
  2048. if ac_fn_c_try_compile "$LINENO"; then :
  2049. ac_lo=$ac_mid; break
  2050. else
  2051. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2052. if test $ac_mid -le $ac_hi; then
  2053. ac_lo= ac_hi=
  2054. break
  2055. fi
  2056. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2057. fi
  2058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2059. done
  2060. else
  2061. ac_lo= ac_hi=
  2062. fi
  2063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2064. fi
  2065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2066. # Binary search between lo and hi bounds.
  2067. while test "x$ac_lo" != "x$ac_hi"; do
  2068. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2070. /* end confdefs.h. */
  2071. $4
  2072. int
  2073. main ()
  2074. {
  2075. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2076. test_array [0] = 0;
  2077. return test_array [0];
  2078. ;
  2079. return 0;
  2080. }
  2081. _ACEOF
  2082. if ac_fn_c_try_compile "$LINENO"; then :
  2083. ac_hi=$ac_mid
  2084. else
  2085. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2086. fi
  2087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2088. done
  2089. case $ac_lo in #((
  2090. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2091. '') ac_retval=1 ;;
  2092. esac
  2093. else
  2094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2095. /* end confdefs.h. */
  2096. $4
  2097. static long int longval () { return $2; }
  2098. static unsigned long int ulongval () { return $2; }
  2099. #include <stdio.h>
  2100. #include <stdlib.h>
  2101. int
  2102. main ()
  2103. {
  2104. FILE *f = fopen ("conftest.val", "w");
  2105. if (! f)
  2106. return 1;
  2107. if (($2) < 0)
  2108. {
  2109. long int i = longval ();
  2110. if (i != ($2))
  2111. return 1;
  2112. fprintf (f, "%ld", i);
  2113. }
  2114. else
  2115. {
  2116. unsigned long int i = ulongval ();
  2117. if (i != ($2))
  2118. return 1;
  2119. fprintf (f, "%lu", i);
  2120. }
  2121. /* Do not output a trailing newline, as this causes \r\n confusion
  2122. on some platforms. */
  2123. return ferror (f) || fclose (f) != 0;
  2124. ;
  2125. return 0;
  2126. }
  2127. _ACEOF
  2128. if ac_fn_c_try_run "$LINENO"; then :
  2129. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2130. else
  2131. ac_retval=1
  2132. fi
  2133. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2134. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2135. rm -f conftest.val
  2136. fi
  2137. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2138. as_fn_set_status $ac_retval
  2139. } # ac_fn_c_compute_int
  2140. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2141. # -------------------------------------------
  2142. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2143. # variable VAR accordingly.
  2144. ac_fn_c_check_type ()
  2145. {
  2146. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2148. $as_echo_n "checking for $2... " >&6; }
  2149. if eval \${$3+:} false; then :
  2150. $as_echo_n "(cached) " >&6
  2151. else
  2152. eval "$3=no"
  2153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2154. /* end confdefs.h. */
  2155. $4
  2156. int
  2157. main ()
  2158. {
  2159. if (sizeof ($2))
  2160. return 0;
  2161. ;
  2162. return 0;
  2163. }
  2164. _ACEOF
  2165. if ac_fn_c_try_compile "$LINENO"; then :
  2166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2167. /* end confdefs.h. */
  2168. $4
  2169. int
  2170. main ()
  2171. {
  2172. if (sizeof (($2)))
  2173. return 0;
  2174. ;
  2175. return 0;
  2176. }
  2177. _ACEOF
  2178. if ac_fn_c_try_compile "$LINENO"; then :
  2179. else
  2180. eval "$3=yes"
  2181. fi
  2182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2183. fi
  2184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2185. fi
  2186. eval ac_res=\$$3
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2188. $as_echo "$ac_res" >&6; }
  2189. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2190. } # ac_fn_c_check_type
  2191. cat >config.log <<_ACEOF
  2192. This file contains any messages produced by compilers while
  2193. running configure, to aid debugging if configure makes a mistake.
  2194. It was created by flac $as_me 1.3.2, which was
  2195. generated by GNU Autoconf 2.69. Invocation command line was
  2196. $ $0 $@
  2197. _ACEOF
  2198. exec 5>>config.log
  2199. {
  2200. cat <<_ASUNAME
  2201. ## --------- ##
  2202. ## Platform. ##
  2203. ## --------- ##
  2204. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2205. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2206. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2207. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2208. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2209. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2210. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2211. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2212. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2213. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2214. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2215. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2216. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2217. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2218. _ASUNAME
  2219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2220. for as_dir in $PATH
  2221. do
  2222. IFS=$as_save_IFS
  2223. test -z "$as_dir" && as_dir=.
  2224. $as_echo "PATH: $as_dir"
  2225. done
  2226. IFS=$as_save_IFS
  2227. } >&5
  2228. cat >&5 <<_ACEOF
  2229. ## ----------- ##
  2230. ## Core tests. ##
  2231. ## ----------- ##
  2232. _ACEOF
  2233. # Keep a trace of the command line.
  2234. # Strip out --no-create and --no-recursion so they do not pile up.
  2235. # Strip out --silent because we don't want to record it for future runs.
  2236. # Also quote any args containing shell meta-characters.
  2237. # Make two passes to allow for proper duplicate-argument suppression.
  2238. ac_configure_args=
  2239. ac_configure_args0=
  2240. ac_configure_args1=
  2241. ac_must_keep_next=false
  2242. for ac_pass in 1 2
  2243. do
  2244. for ac_arg
  2245. do
  2246. case $ac_arg in
  2247. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2248. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2249. | -silent | --silent | --silen | --sile | --sil)
  2250. continue ;;
  2251. *\'*)
  2252. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2253. esac
  2254. case $ac_pass in
  2255. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2256. 2)
  2257. as_fn_append ac_configure_args1 " '$ac_arg'"
  2258. if test $ac_must_keep_next = true; then
  2259. ac_must_keep_next=false # Got value, back to normal.
  2260. else
  2261. case $ac_arg in
  2262. *=* | --config-cache | -C | -disable-* | --disable-* \
  2263. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2264. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2265. | -with-* | --with-* | -without-* | --without-* | --x)
  2266. case "$ac_configure_args0 " in
  2267. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2268. esac
  2269. ;;
  2270. -* ) ac_must_keep_next=true ;;
  2271. esac
  2272. fi
  2273. as_fn_append ac_configure_args " '$ac_arg'"
  2274. ;;
  2275. esac
  2276. done
  2277. done
  2278. { ac_configure_args0=; unset ac_configure_args0;}
  2279. { ac_configure_args1=; unset ac_configure_args1;}
  2280. # When interrupted or exit'd, cleanup temporary files, and complete
  2281. # config.log. We remove comments because anyway the quotes in there
  2282. # would cause problems or look ugly.
  2283. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2284. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2285. trap 'exit_status=$?
  2286. # Save into config.log some information that might help in debugging.
  2287. {
  2288. echo
  2289. $as_echo "## ---------------- ##
  2290. ## Cache variables. ##
  2291. ## ---------------- ##"
  2292. echo
  2293. # The following way of writing the cache mishandles newlines in values,
  2294. (
  2295. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2296. eval ac_val=\$$ac_var
  2297. case $ac_val in #(
  2298. *${as_nl}*)
  2299. case $ac_var in #(
  2300. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2301. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2302. esac
  2303. case $ac_var in #(
  2304. _ | IFS | as_nl) ;; #(
  2305. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2306. *) { eval $ac_var=; unset $ac_var;} ;;
  2307. esac ;;
  2308. esac
  2309. done
  2310. (set) 2>&1 |
  2311. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2312. *${as_nl}ac_space=\ *)
  2313. sed -n \
  2314. "s/'\''/'\''\\\\'\'''\''/g;
  2315. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2316. ;; #(
  2317. *)
  2318. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2319. ;;
  2320. esac |
  2321. sort
  2322. )
  2323. echo
  2324. $as_echo "## ----------------- ##
  2325. ## Output variables. ##
  2326. ## ----------------- ##"
  2327. echo
  2328. for ac_var in $ac_subst_vars
  2329. do
  2330. eval ac_val=\$$ac_var
  2331. case $ac_val in
  2332. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2333. esac
  2334. $as_echo "$ac_var='\''$ac_val'\''"
  2335. done | sort
  2336. echo
  2337. if test -n "$ac_subst_files"; then
  2338. $as_echo "## ------------------- ##
  2339. ## File substitutions. ##
  2340. ## ------------------- ##"
  2341. echo
  2342. for ac_var in $ac_subst_files
  2343. do
  2344. eval ac_val=\$$ac_var
  2345. case $ac_val in
  2346. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2347. esac
  2348. $as_echo "$ac_var='\''$ac_val'\''"
  2349. done | sort
  2350. echo
  2351. fi
  2352. if test -s confdefs.h; then
  2353. $as_echo "## ----------- ##
  2354. ## confdefs.h. ##
  2355. ## ----------- ##"
  2356. echo
  2357. cat confdefs.h
  2358. echo
  2359. fi
  2360. test "$ac_signal" != 0 &&
  2361. $as_echo "$as_me: caught signal $ac_signal"
  2362. $as_echo "$as_me: exit $exit_status"
  2363. } >&5
  2364. rm -f core *.core core.conftest.* &&
  2365. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2366. exit $exit_status
  2367. ' 0
  2368. for ac_signal in 1 2 13 15; do
  2369. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2370. done
  2371. ac_signal=0
  2372. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2373. rm -f -r conftest* confdefs.h
  2374. $as_echo "/* confdefs.h */" > confdefs.h
  2375. # Predefined preprocessor variables.
  2376. cat >>confdefs.h <<_ACEOF
  2377. #define PACKAGE_NAME "$PACKAGE_NAME"
  2378. _ACEOF
  2379. cat >>confdefs.h <<_ACEOF
  2380. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2381. _ACEOF
  2382. cat >>confdefs.h <<_ACEOF
  2383. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2384. _ACEOF
  2385. cat >>confdefs.h <<_ACEOF
  2386. #define PACKAGE_STRING "$PACKAGE_STRING"
  2387. _ACEOF
  2388. cat >>confdefs.h <<_ACEOF
  2389. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2390. _ACEOF
  2391. cat >>confdefs.h <<_ACEOF
  2392. #define PACKAGE_URL "$PACKAGE_URL"
  2393. _ACEOF
  2394. # Let the site file select an alternate cache file if it wants to.
  2395. # Prefer an explicitly selected file to automatically selected ones.
  2396. ac_site_file1=NONE
  2397. ac_site_file2=NONE
  2398. if test -n "$CONFIG_SITE"; then
  2399. # We do not want a PATH search for config.site.
  2400. case $CONFIG_SITE in #((
  2401. -*) ac_site_file1=./$CONFIG_SITE;;
  2402. */*) ac_site_file1=$CONFIG_SITE;;
  2403. *) ac_site_file1=./$CONFIG_SITE;;
  2404. esac
  2405. elif test "x$prefix" != xNONE; then
  2406. ac_site_file1=$prefix/share/config.site
  2407. ac_site_file2=$prefix/etc/config.site
  2408. else
  2409. ac_site_file1=$ac_default_prefix/share/config.site
  2410. ac_site_file2=$ac_default_prefix/etc/config.site
  2411. fi
  2412. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2413. do
  2414. test "x$ac_site_file" = xNONE && continue
  2415. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2417. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2418. sed 's/^/| /' "$ac_site_file" >&5
  2419. . "$ac_site_file" \
  2420. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2421. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2422. as_fn_error $? "failed to load site script $ac_site_file
  2423. See \`config.log' for more details" "$LINENO" 5; }
  2424. fi
  2425. done
  2426. if test -r "$cache_file"; then
  2427. # Some versions of bash will fail to source /dev/null (special files
  2428. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2429. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2431. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2432. case $cache_file in
  2433. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2434. *) . "./$cache_file";;
  2435. esac
  2436. fi
  2437. else
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2439. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2440. >$cache_file
  2441. fi
  2442. # Check that the precious variables saved in the cache have kept the same
  2443. # value.
  2444. ac_cache_corrupted=false
  2445. for ac_var in $ac_precious_vars; do
  2446. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2447. eval ac_new_set=\$ac_env_${ac_var}_set
  2448. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2449. eval ac_new_val=\$ac_env_${ac_var}_value
  2450. case $ac_old_set,$ac_new_set in
  2451. set,)
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2453. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2454. ac_cache_corrupted=: ;;
  2455. ,set)
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2457. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2458. ac_cache_corrupted=: ;;
  2459. ,);;
  2460. *)
  2461. if test "x$ac_old_val" != "x$ac_new_val"; then
  2462. # differences in whitespace do not lead to failure.
  2463. ac_old_val_w=`echo x $ac_old_val`
  2464. ac_new_val_w=`echo x $ac_new_val`
  2465. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2467. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2468. ac_cache_corrupted=:
  2469. else
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2471. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2472. eval $ac_var=\$ac_old_val
  2473. fi
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2475. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2477. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2478. fi;;
  2479. esac
  2480. # Pass precious variables to config.status.
  2481. if test "$ac_new_set" = set; then
  2482. case $ac_new_val in
  2483. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2484. *) ac_arg=$ac_var=$ac_new_val ;;
  2485. esac
  2486. case " $ac_configure_args " in
  2487. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2488. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2489. esac
  2490. fi
  2491. done
  2492. if $ac_cache_corrupted; then
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2494. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2496. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2497. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2498. fi
  2499. ## -------------------- ##
  2500. ## Main body of script. ##
  2501. ## -------------------- ##
  2502. ac_ext=c
  2503. ac_cpp='$CPP $CPPFLAGS'
  2504. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2505. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2506. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2507. ac_config_headers="$ac_config_headers config.h"
  2508. am__api_version='1.15'
  2509. ac_aux_dir=
  2510. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2511. if test -f "$ac_dir/install-sh"; then
  2512. ac_aux_dir=$ac_dir
  2513. ac_install_sh="$ac_aux_dir/install-sh -c"
  2514. break
  2515. elif test -f "$ac_dir/install.sh"; then
  2516. ac_aux_dir=$ac_dir
  2517. ac_install_sh="$ac_aux_dir/install.sh -c"
  2518. break
  2519. elif test -f "$ac_dir/shtool"; then
  2520. ac_aux_dir=$ac_dir
  2521. ac_install_sh="$ac_aux_dir/shtool install -c"
  2522. break
  2523. fi
  2524. done
  2525. if test -z "$ac_aux_dir"; then
  2526. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2527. fi
  2528. # These three variables are undocumented and unsupported,
  2529. # and are intended to be withdrawn in a future Autoconf release.
  2530. # They can cause serious problems if a builder's source tree is in a directory
  2531. # whose full name contains unusual characters.
  2532. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2533. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2534. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2535. # Find a good install program. We prefer a C program (faster),
  2536. # so one script is as good as another. But avoid the broken or
  2537. # incompatible versions:
  2538. # SysV /etc/install, /usr/sbin/install
  2539. # SunOS /usr/etc/install
  2540. # IRIX /sbin/install
  2541. # AIX /bin/install
  2542. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2543. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2544. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2545. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2546. # OS/2's system install, which has a completely different semantic
  2547. # ./install, which can be erroneously created by make from ./install.sh.
  2548. # Reject install programs that cannot install multiple files.
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2550. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2551. if test -z "$INSTALL"; then
  2552. if ${ac_cv_path_install+:} false; then :
  2553. $as_echo_n "(cached) " >&6
  2554. else
  2555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2556. for as_dir in $PATH
  2557. do
  2558. IFS=$as_save_IFS
  2559. test -z "$as_dir" && as_dir=.
  2560. # Account for people who put trailing slashes in PATH elements.
  2561. case $as_dir/ in #((
  2562. ./ | .// | /[cC]/* | \
  2563. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2564. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2565. /usr/ucb/* ) ;;
  2566. *)
  2567. # OSF1 and SCO ODT 3.0 have their own names for install.
  2568. # Don't use installbsd from OSF since it installs stuff as root
  2569. # by default.
  2570. for ac_prog in ginstall scoinst install; do
  2571. for ac_exec_ext in '' $ac_executable_extensions; do
  2572. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2573. if test $ac_prog = install &&
  2574. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2575. # AIX install. It has an incompatible calling convention.
  2576. :
  2577. elif test $ac_prog = install &&
  2578. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2579. # program-specific install script used by HP pwplus--don't use.
  2580. :
  2581. else
  2582. rm -rf conftest.one conftest.two conftest.dir
  2583. echo one > conftest.one
  2584. echo two > conftest.two
  2585. mkdir conftest.dir
  2586. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2587. test -s conftest.one && test -s conftest.two &&
  2588. test -s conftest.dir/conftest.one &&
  2589. test -s conftest.dir/conftest.two
  2590. then
  2591. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2592. break 3
  2593. fi
  2594. fi
  2595. fi
  2596. done
  2597. done
  2598. ;;
  2599. esac
  2600. done
  2601. IFS=$as_save_IFS
  2602. rm -rf conftest.one conftest.two conftest.dir
  2603. fi
  2604. if test "${ac_cv_path_install+set}" = set; then
  2605. INSTALL=$ac_cv_path_install
  2606. else
  2607. # As a last resort, use the slow shell script. Don't cache a
  2608. # value for INSTALL within a source directory, because that will
  2609. # break other packages using the cache if that directory is
  2610. # removed, or if the value is a relative name.
  2611. INSTALL=$ac_install_sh
  2612. fi
  2613. fi
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2615. $as_echo "$INSTALL" >&6; }
  2616. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2617. # It thinks the first close brace ends the variable substitution.
  2618. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2619. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2620. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2622. $as_echo_n "checking whether build environment is sane... " >&6; }
  2623. # Reject unsafe characters in $srcdir or the absolute working directory
  2624. # name. Accept space and tab only in the latter.
  2625. am_lf='
  2626. '
  2627. case `pwd` in
  2628. *[\\\"\#\$\&\'\`$am_lf]*)
  2629. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2630. esac
  2631. case $srcdir in
  2632. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2633. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2634. esac
  2635. # Do 'set' in a subshell so we don't clobber the current shell's
  2636. # arguments. Must try -L first in case configure is actually a
  2637. # symlink; some systems play weird games with the mod time of symlinks
  2638. # (eg FreeBSD returns the mod time of the symlink's containing
  2639. # directory).
  2640. if (
  2641. am_has_slept=no
  2642. for am_try in 1 2; do
  2643. echo "timestamp, slept: $am_has_slept" > conftest.file
  2644. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2645. if test "$*" = "X"; then
  2646. # -L didn't work.
  2647. set X `ls -t "$srcdir/configure" conftest.file`
  2648. fi
  2649. if test "$*" != "X $srcdir/configure conftest.file" \
  2650. && test "$*" != "X conftest.file $srcdir/configure"; then
  2651. # If neither matched, then we have a broken ls. This can happen
  2652. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2653. # broken ls alias from the environment. This has actually
  2654. # happened. Such a system could not be considered "sane".
  2655. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2656. alias in your environment" "$LINENO" 5
  2657. fi
  2658. if test "$2" = conftest.file || test $am_try -eq 2; then
  2659. break
  2660. fi
  2661. # Just in case.
  2662. sleep 1
  2663. am_has_slept=yes
  2664. done
  2665. test "$2" = conftest.file
  2666. )
  2667. then
  2668. # Ok.
  2669. :
  2670. else
  2671. as_fn_error $? "newly created file is older than distributed files!
  2672. Check your system clock" "$LINENO" 5
  2673. fi
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2675. $as_echo "yes" >&6; }
  2676. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2677. # generated files are strictly newer.
  2678. am_sleep_pid=
  2679. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2680. ( sleep 1 ) &
  2681. am_sleep_pid=$!
  2682. fi
  2683. rm -f conftest.file
  2684. test "$program_prefix" != NONE &&
  2685. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2686. # Use a double $ so make ignores it.
  2687. test "$program_suffix" != NONE &&
  2688. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2689. # Double any \ or $.
  2690. # By default was `s,x,x', remove it if useless.
  2691. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2692. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2693. # Expand $ac_aux_dir to an absolute path.
  2694. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2695. if test x"${MISSING+set}" != xset; then
  2696. case $am_aux_dir in
  2697. *\ * | *\ *)
  2698. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2699. *)
  2700. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2701. esac
  2702. fi
  2703. # Use eval to expand $SHELL
  2704. if eval "$MISSING --is-lightweight"; then
  2705. am_missing_run="$MISSING "
  2706. else
  2707. am_missing_run=
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2709. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2710. fi
  2711. if test x"${install_sh+set}" != xset; then
  2712. case $am_aux_dir in
  2713. *\ * | *\ *)
  2714. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2715. *)
  2716. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2717. esac
  2718. fi
  2719. # Installed binaries are usually stripped using 'strip' when the user
  2720. # run "make install-strip". However 'strip' might not be the right
  2721. # tool to use in cross-compilation environments, therefore Automake
  2722. # will honor the 'STRIP' environment variable to overrule this program.
  2723. if test "$cross_compiling" != no; then
  2724. if test -n "$ac_tool_prefix"; then
  2725. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2726. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2728. $as_echo_n "checking for $ac_word... " >&6; }
  2729. if ${ac_cv_prog_STRIP+:} false; then :
  2730. $as_echo_n "(cached) " >&6
  2731. else
  2732. if test -n "$STRIP"; then
  2733. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2734. else
  2735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2736. for as_dir in $PATH
  2737. do
  2738. IFS=$as_save_IFS
  2739. test -z "$as_dir" && as_dir=.
  2740. for ac_exec_ext in '' $ac_executable_extensions; do
  2741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2742. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2744. break 2
  2745. fi
  2746. done
  2747. done
  2748. IFS=$as_save_IFS
  2749. fi
  2750. fi
  2751. STRIP=$ac_cv_prog_STRIP
  2752. if test -n "$STRIP"; then
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2754. $as_echo "$STRIP" >&6; }
  2755. else
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2757. $as_echo "no" >&6; }
  2758. fi
  2759. fi
  2760. if test -z "$ac_cv_prog_STRIP"; then
  2761. ac_ct_STRIP=$STRIP
  2762. # Extract the first word of "strip", so it can be a program name with args.
  2763. set dummy strip; ac_word=$2
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2765. $as_echo_n "checking for $ac_word... " >&6; }
  2766. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2767. $as_echo_n "(cached) " >&6
  2768. else
  2769. if test -n "$ac_ct_STRIP"; then
  2770. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2771. else
  2772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2773. for as_dir in $PATH
  2774. do
  2775. IFS=$as_save_IFS
  2776. test -z "$as_dir" && as_dir=.
  2777. for ac_exec_ext in '' $ac_executable_extensions; do
  2778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2779. ac_cv_prog_ac_ct_STRIP="strip"
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2781. break 2
  2782. fi
  2783. done
  2784. done
  2785. IFS=$as_save_IFS
  2786. fi
  2787. fi
  2788. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2789. if test -n "$ac_ct_STRIP"; then
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2791. $as_echo "$ac_ct_STRIP" >&6; }
  2792. else
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2794. $as_echo "no" >&6; }
  2795. fi
  2796. if test "x$ac_ct_STRIP" = x; then
  2797. STRIP=":"
  2798. else
  2799. case $cross_compiling:$ac_tool_warned in
  2800. yes:)
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2802. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2803. ac_tool_warned=yes ;;
  2804. esac
  2805. STRIP=$ac_ct_STRIP
  2806. fi
  2807. else
  2808. STRIP="$ac_cv_prog_STRIP"
  2809. fi
  2810. fi
  2811. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2813. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2814. if test -z "$MKDIR_P"; then
  2815. if ${ac_cv_path_mkdir+:} false; then :
  2816. $as_echo_n "(cached) " >&6
  2817. else
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2820. do
  2821. IFS=$as_save_IFS
  2822. test -z "$as_dir" && as_dir=.
  2823. for ac_prog in mkdir gmkdir; do
  2824. for ac_exec_ext in '' $ac_executable_extensions; do
  2825. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2826. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2827. 'mkdir (GNU coreutils) '* | \
  2828. 'mkdir (coreutils) '* | \
  2829. 'mkdir (fileutils) '4.1*)
  2830. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2831. break 3;;
  2832. esac
  2833. done
  2834. done
  2835. done
  2836. IFS=$as_save_IFS
  2837. fi
  2838. test -d ./--version && rmdir ./--version
  2839. if test "${ac_cv_path_mkdir+set}" = set; then
  2840. MKDIR_P="$ac_cv_path_mkdir -p"
  2841. else
  2842. # As a last resort, use the slow shell script. Don't cache a
  2843. # value for MKDIR_P within a source directory, because that will
  2844. # break other packages using the cache if that directory is
  2845. # removed, or if the value is a relative name.
  2846. MKDIR_P="$ac_install_sh -d"
  2847. fi
  2848. fi
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2850. $as_echo "$MKDIR_P" >&6; }
  2851. for ac_prog in gawk mawk nawk awk
  2852. do
  2853. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2854. set dummy $ac_prog; ac_word=$2
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2856. $as_echo_n "checking for $ac_word... " >&6; }
  2857. if ${ac_cv_prog_AWK+:} false; then :
  2858. $as_echo_n "(cached) " >&6
  2859. else
  2860. if test -n "$AWK"; then
  2861. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2862. else
  2863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2864. for as_dir in $PATH
  2865. do
  2866. IFS=$as_save_IFS
  2867. test -z "$as_dir" && as_dir=.
  2868. for ac_exec_ext in '' $ac_executable_extensions; do
  2869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2870. ac_cv_prog_AWK="$ac_prog"
  2871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2872. break 2
  2873. fi
  2874. done
  2875. done
  2876. IFS=$as_save_IFS
  2877. fi
  2878. fi
  2879. AWK=$ac_cv_prog_AWK
  2880. if test -n "$AWK"; then
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2882. $as_echo "$AWK" >&6; }
  2883. else
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2885. $as_echo "no" >&6; }
  2886. fi
  2887. test -n "$AWK" && break
  2888. done
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2890. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2891. set x ${MAKE-make}
  2892. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2893. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2894. $as_echo_n "(cached) " >&6
  2895. else
  2896. cat >conftest.make <<\_ACEOF
  2897. SHELL = /bin/sh
  2898. all:
  2899. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2900. _ACEOF
  2901. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2902. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2903. *@@@%%%=?*=@@@%%%*)
  2904. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2905. *)
  2906. eval ac_cv_prog_make_${ac_make}_set=no;;
  2907. esac
  2908. rm -f conftest.make
  2909. fi
  2910. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2912. $as_echo "yes" >&6; }
  2913. SET_MAKE=
  2914. else
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2916. $as_echo "no" >&6; }
  2917. SET_MAKE="MAKE=${MAKE-make}"
  2918. fi
  2919. rm -rf .tst 2>/dev/null
  2920. mkdir .tst 2>/dev/null
  2921. if test -d .tst; then
  2922. am__leading_dot=.
  2923. else
  2924. am__leading_dot=_
  2925. fi
  2926. rmdir .tst 2>/dev/null
  2927. # Check whether --enable-silent-rules was given.
  2928. if test "${enable_silent_rules+set}" = set; then :
  2929. enableval=$enable_silent_rules;
  2930. fi
  2931. case $enable_silent_rules in # (((
  2932. yes) AM_DEFAULT_VERBOSITY=0;;
  2933. no) AM_DEFAULT_VERBOSITY=1;;
  2934. *) AM_DEFAULT_VERBOSITY=1;;
  2935. esac
  2936. am_make=${MAKE-make}
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2938. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2939. if ${am_cv_make_support_nested_variables+:} false; then :
  2940. $as_echo_n "(cached) " >&6
  2941. else
  2942. if $as_echo 'TRUE=$(BAR$(V))
  2943. BAR0=false
  2944. BAR1=true
  2945. V=1
  2946. am__doit:
  2947. @$(TRUE)
  2948. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2949. am_cv_make_support_nested_variables=yes
  2950. else
  2951. am_cv_make_support_nested_variables=no
  2952. fi
  2953. fi
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2955. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2956. if test $am_cv_make_support_nested_variables = yes; then
  2957. AM_V='$(V)'
  2958. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2959. else
  2960. AM_V=$AM_DEFAULT_VERBOSITY
  2961. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2962. fi
  2963. AM_BACKSLASH='\'
  2964. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2965. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2966. # is not polluted with repeated "-I."
  2967. am__isrc=' -I$(srcdir)'
  2968. # test to see if srcdir already configured
  2969. if test -f $srcdir/config.status; then
  2970. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2971. fi
  2972. fi
  2973. # test whether we have cygpath
  2974. if test -z "$CYGPATH_W"; then
  2975. if (cygpath --version) >/dev/null 2>/dev/null; then
  2976. CYGPATH_W='cygpath -w'
  2977. else
  2978. CYGPATH_W=echo
  2979. fi
  2980. fi
  2981. # Define the identity of the package.
  2982. PACKAGE='flac'
  2983. VERSION='1.3.2'
  2984. cat >>confdefs.h <<_ACEOF
  2985. #define PACKAGE "$PACKAGE"
  2986. _ACEOF
  2987. cat >>confdefs.h <<_ACEOF
  2988. #define VERSION "$VERSION"
  2989. _ACEOF
  2990. # Some tools Automake needs.
  2991. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2992. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2993. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2994. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2995. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2996. # For better backward compatibility. To be removed once Automake 1.9.x
  2997. # dies out for good. For more background, see:
  2998. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2999. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3000. mkdir_p='$(MKDIR_P)'
  3001. # We need awk for the "check" target (and possibly the TAP driver). The
  3002. # system "awk" is bad on some platforms.
  3003. # Always define AMTAR for backward compatibility. Yes, it's still used
  3004. # in the wild :-( We should find a proper way to deprecate it ...
  3005. AMTAR='$${TAR-tar}'
  3006. # We'll loop over all known methods to create a tar archive until one works.
  3007. _am_tools='gnutar pax cpio none'
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
  3009. $as_echo_n "checking how to create a pax tar archive... " >&6; }
  3010. # Go ahead even if we have the value already cached. We do so because we
  3011. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3012. _am_tools=${am_cv_prog_tar_pax-$_am_tools}
  3013. for _am_tool in $_am_tools; do
  3014. case $_am_tool in
  3015. gnutar)
  3016. for _am_tar in tar gnutar gtar; do
  3017. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3018. ($_am_tar --version) >&5 2>&5
  3019. ac_status=$?
  3020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3021. (exit $ac_status); } && break
  3022. done
  3023. am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
  3024. am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
  3025. am__untar="$_am_tar -xf -"
  3026. ;;
  3027. plaintar)
  3028. # Must skip GNU tar: if it does not support --format= it doesn't create
  3029. # ustar tarball either.
  3030. (tar --version) >/dev/null 2>&1 && continue
  3031. am__tar='tar chf - "$$tardir"'
  3032. am__tar_='tar chf - "$tardir"'
  3033. am__untar='tar xf -'
  3034. ;;
  3035. pax)
  3036. am__tar='pax -L -x pax -w "$$tardir"'
  3037. am__tar_='pax -L -x pax -w "$tardir"'
  3038. am__untar='pax -r'
  3039. ;;
  3040. cpio)
  3041. am__tar='find "$$tardir" -print | cpio -o -H pax -L'
  3042. am__tar_='find "$tardir" -print | cpio -o -H pax -L'
  3043. am__untar='cpio -i -H pax -d'
  3044. ;;
  3045. none)
  3046. am__tar=false
  3047. am__tar_=false
  3048. am__untar=false
  3049. ;;
  3050. esac
  3051. # If the value was cached, stop now. We just wanted to have am__tar
  3052. # and am__untar set.
  3053. test -n "${am_cv_prog_tar_pax}" && break
  3054. # tar/untar a dummy directory, and stop if the command works.
  3055. rm -rf conftest.dir
  3056. mkdir conftest.dir
  3057. echo GrepMe > conftest.dir/file
  3058. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3059. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3060. ac_status=$?
  3061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3062. (exit $ac_status); }
  3063. rm -rf conftest.dir
  3064. if test -s conftest.tar; then
  3065. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3066. ($am__untar <conftest.tar) >&5 2>&5
  3067. ac_status=$?
  3068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3069. (exit $ac_status); }
  3070. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3071. (cat conftest.dir/file) >&5 2>&5
  3072. ac_status=$?
  3073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3074. (exit $ac_status); }
  3075. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3076. fi
  3077. done
  3078. rm -rf conftest.dir
  3079. if ${am_cv_prog_tar_pax+:} false; then :
  3080. $as_echo_n "(cached) " >&6
  3081. else
  3082. am_cv_prog_tar_pax=$_am_tool
  3083. fi
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
  3085. $as_echo "$am_cv_prog_tar_pax" >&6; }
  3086. # POSIX will say in a future version that running "rm -f" with no argument
  3087. # is OK; and we want to be able to make that assumption in our Makefile
  3088. # recipes. So use an aggressive probe to check that the usage we want is
  3089. # actually supported "in the wild" to an acceptable degree.
  3090. # See automake bug#10828.
  3091. # To make any issue more visible, cause the running configure to be aborted
  3092. # by default if the 'rm' program in use doesn't match our expectations; the
  3093. # user can still override this though.
  3094. if rm -f && rm -fr && rm -rf; then : OK; else
  3095. cat >&2 <<'END'
  3096. Oops!
  3097. Your 'rm' program seems unable to run without file operands specified
  3098. on the command line, even when the '-f' option is present. This is contrary
  3099. to the behaviour of most rm programs out there, and not conforming with
  3100. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3101. Please tell [email protected] about your system, including the value
  3102. of your $PATH and any error possibly output before this message. This
  3103. can help us improve future automake versions.
  3104. END
  3105. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3106. echo 'Configuration will proceed anyway, since you have set the' >&2
  3107. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3108. echo >&2
  3109. else
  3110. cat >&2 <<'END'
  3111. Aborting the configuration process, to ensure you take notice of the issue.
  3112. You can download and install GNU coreutils to get an 'rm' implementation
  3113. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3114. If you want to complete the configuration process using your problematic
  3115. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3116. to "yes", and re-run configure.
  3117. END
  3118. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3119. fi
  3120. fi
  3121. # Check whether --enable-silent-rules was given.
  3122. if test "${enable_silent_rules+set}" = set; then :
  3123. enableval=$enable_silent_rules;
  3124. fi
  3125. case $enable_silent_rules in # (((
  3126. yes) AM_DEFAULT_VERBOSITY=0;;
  3127. no) AM_DEFAULT_VERBOSITY=1;;
  3128. *) AM_DEFAULT_VERBOSITY=0;;
  3129. esac
  3130. am_make=${MAKE-make}
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3132. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3133. if ${am_cv_make_support_nested_variables+:} false; then :
  3134. $as_echo_n "(cached) " >&6
  3135. else
  3136. if $as_echo 'TRUE=$(BAR$(V))
  3137. BAR0=false
  3138. BAR1=true
  3139. V=1
  3140. am__doit:
  3141. @$(TRUE)
  3142. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3143. am_cv_make_support_nested_variables=yes
  3144. else
  3145. am_cv_make_support_nested_variables=no
  3146. fi
  3147. fi
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3149. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3150. if test $am_cv_make_support_nested_variables = yes; then
  3151. AM_V='$(V)'
  3152. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3153. else
  3154. AM_V=$AM_DEFAULT_VERBOSITY
  3155. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3156. fi
  3157. AM_BACKSLASH='\'
  3158. user_cflags=$CFLAGS
  3159. #Prefer whatever the current ISO standard is.
  3160. DEPDIR="${am__leading_dot}deps"
  3161. ac_config_commands="$ac_config_commands depfiles"
  3162. am_make=${MAKE-make}
  3163. cat > confinc << 'END'
  3164. am__doit:
  3165. @echo this is the am__doit target
  3166. .PHONY: am__doit
  3167. END
  3168. # If we don't find an include directive, just comment out the code.
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3170. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3171. am__include="#"
  3172. am__quote=
  3173. _am_result=none
  3174. # First try GNU make style include.
  3175. echo "include confinc" > confmf
  3176. # Ignore all kinds of additional output from 'make'.
  3177. case `$am_make -s -f confmf 2> /dev/null` in #(
  3178. *the\ am__doit\ target*)
  3179. am__include=include
  3180. am__quote=
  3181. _am_result=GNU
  3182. ;;
  3183. esac
  3184. # Now try BSD make style include.
  3185. if test "$am__include" = "#"; then
  3186. echo '.include "confinc"' > confmf
  3187. case `$am_make -s -f confmf 2> /dev/null` in #(
  3188. *the\ am__doit\ target*)
  3189. am__include=.include
  3190. am__quote="\""
  3191. _am_result=BSD
  3192. ;;
  3193. esac
  3194. fi
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3196. $as_echo "$_am_result" >&6; }
  3197. rm -f confinc confmf
  3198. # Check whether --enable-dependency-tracking was given.
  3199. if test "${enable_dependency_tracking+set}" = set; then :
  3200. enableval=$enable_dependency_tracking;
  3201. fi
  3202. if test "x$enable_dependency_tracking" != xno; then
  3203. am_depcomp="$ac_aux_dir/depcomp"
  3204. AMDEPBACKSLASH='\'
  3205. am__nodep='_no'
  3206. fi
  3207. if test "x$enable_dependency_tracking" != xno; then
  3208. AMDEP_TRUE=
  3209. AMDEP_FALSE='#'
  3210. else
  3211. AMDEP_TRUE='#'
  3212. AMDEP_FALSE=
  3213. fi
  3214. ac_ext=c
  3215. ac_cpp='$CPP $CPPFLAGS'
  3216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3219. if test -n "$ac_tool_prefix"; then
  3220. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3221. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3223. $as_echo_n "checking for $ac_word... " >&6; }
  3224. if ${ac_cv_prog_CC+:} false; then :
  3225. $as_echo_n "(cached) " >&6
  3226. else
  3227. if test -n "$CC"; then
  3228. ac_cv_prog_CC="$CC" # Let the user override the test.
  3229. else
  3230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3231. for as_dir in $PATH
  3232. do
  3233. IFS=$as_save_IFS
  3234. test -z "$as_dir" && as_dir=.
  3235. for ac_exec_ext in '' $ac_executable_extensions; do
  3236. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3237. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3239. break 2
  3240. fi
  3241. done
  3242. done
  3243. IFS=$as_save_IFS
  3244. fi
  3245. fi
  3246. CC=$ac_cv_prog_CC
  3247. if test -n "$CC"; then
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3249. $as_echo "$CC" >&6; }
  3250. else
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3252. $as_echo "no" >&6; }
  3253. fi
  3254. fi
  3255. if test -z "$ac_cv_prog_CC"; then
  3256. ac_ct_CC=$CC
  3257. # Extract the first word of "gcc", so it can be a program name with args.
  3258. set dummy gcc; ac_word=$2
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3260. $as_echo_n "checking for $ac_word... " >&6; }
  3261. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3262. $as_echo_n "(cached) " >&6
  3263. else
  3264. if test -n "$ac_ct_CC"; then
  3265. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3266. else
  3267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3268. for as_dir in $PATH
  3269. do
  3270. IFS=$as_save_IFS
  3271. test -z "$as_dir" && as_dir=.
  3272. for ac_exec_ext in '' $ac_executable_extensions; do
  3273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3274. ac_cv_prog_ac_ct_CC="gcc"
  3275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3276. break 2
  3277. fi
  3278. done
  3279. done
  3280. IFS=$as_save_IFS
  3281. fi
  3282. fi
  3283. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3284. if test -n "$ac_ct_CC"; then
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3286. $as_echo "$ac_ct_CC" >&6; }
  3287. else
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3289. $as_echo "no" >&6; }
  3290. fi
  3291. if test "x$ac_ct_CC" = x; then
  3292. CC=""
  3293. else
  3294. case $cross_compiling:$ac_tool_warned in
  3295. yes:)
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3297. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3298. ac_tool_warned=yes ;;
  3299. esac
  3300. CC=$ac_ct_CC
  3301. fi
  3302. else
  3303. CC="$ac_cv_prog_CC"
  3304. fi
  3305. if test -z "$CC"; then
  3306. if test -n "$ac_tool_prefix"; then
  3307. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3308. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3310. $as_echo_n "checking for $ac_word... " >&6; }
  3311. if ${ac_cv_prog_CC+:} false; then :
  3312. $as_echo_n "(cached) " >&6
  3313. else
  3314. if test -n "$CC"; then
  3315. ac_cv_prog_CC="$CC" # Let the user override the test.
  3316. else
  3317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3318. for as_dir in $PATH
  3319. do
  3320. IFS=$as_save_IFS
  3321. test -z "$as_dir" && as_dir=.
  3322. for ac_exec_ext in '' $ac_executable_extensions; do
  3323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3324. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3326. break 2
  3327. fi
  3328. done
  3329. done
  3330. IFS=$as_save_IFS
  3331. fi
  3332. fi
  3333. CC=$ac_cv_prog_CC
  3334. if test -n "$CC"; then
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3336. $as_echo "$CC" >&6; }
  3337. else
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3339. $as_echo "no" >&6; }
  3340. fi
  3341. fi
  3342. fi
  3343. if test -z "$CC"; then
  3344. # Extract the first word of "cc", so it can be a program name with args.
  3345. set dummy cc; ac_word=$2
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3347. $as_echo_n "checking for $ac_word... " >&6; }
  3348. if ${ac_cv_prog_CC+:} false; then :
  3349. $as_echo_n "(cached) " >&6
  3350. else
  3351. if test -n "$CC"; then
  3352. ac_cv_prog_CC="$CC" # Let the user override the test.
  3353. else
  3354. ac_prog_rejected=no
  3355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3356. for as_dir in $PATH
  3357. do
  3358. IFS=$as_save_IFS
  3359. test -z "$as_dir" && as_dir=.
  3360. for ac_exec_ext in '' $ac_executable_extensions; do
  3361. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3362. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3363. ac_prog_rejected=yes
  3364. continue
  3365. fi
  3366. ac_cv_prog_CC="cc"
  3367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3368. break 2
  3369. fi
  3370. done
  3371. done
  3372. IFS=$as_save_IFS
  3373. if test $ac_prog_rejected = yes; then
  3374. # We found a bogon in the path, so make sure we never use it.
  3375. set dummy $ac_cv_prog_CC
  3376. shift
  3377. if test $# != 0; then
  3378. # We chose a different compiler from the bogus one.
  3379. # However, it has the same basename, so the bogon will be chosen
  3380. # first if we set CC to just the basename; use the full file name.
  3381. shift
  3382. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3383. fi
  3384. fi
  3385. fi
  3386. fi
  3387. CC=$ac_cv_prog_CC
  3388. if test -n "$CC"; then
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3390. $as_echo "$CC" >&6; }
  3391. else
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3393. $as_echo "no" >&6; }
  3394. fi
  3395. fi
  3396. if test -z "$CC"; then
  3397. if test -n "$ac_tool_prefix"; then
  3398. for ac_prog in cl.exe
  3399. do
  3400. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3401. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3403. $as_echo_n "checking for $ac_word... " >&6; }
  3404. if ${ac_cv_prog_CC+:} false; then :
  3405. $as_echo_n "(cached) " >&6
  3406. else
  3407. if test -n "$CC"; then
  3408. ac_cv_prog_CC="$CC" # Let the user override the test.
  3409. else
  3410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3411. for as_dir in $PATH
  3412. do
  3413. IFS=$as_save_IFS
  3414. test -z "$as_dir" && as_dir=.
  3415. for ac_exec_ext in '' $ac_executable_extensions; do
  3416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3417. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3419. break 2
  3420. fi
  3421. done
  3422. done
  3423. IFS=$as_save_IFS
  3424. fi
  3425. fi
  3426. CC=$ac_cv_prog_CC
  3427. if test -n "$CC"; then
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3429. $as_echo "$CC" >&6; }
  3430. else
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3432. $as_echo "no" >&6; }
  3433. fi
  3434. test -n "$CC" && break
  3435. done
  3436. fi
  3437. if test -z "$CC"; then
  3438. ac_ct_CC=$CC
  3439. for ac_prog in cl.exe
  3440. do
  3441. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3442. set dummy $ac_prog; ac_word=$2
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3444. $as_echo_n "checking for $ac_word... " >&6; }
  3445. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3446. $as_echo_n "(cached) " >&6
  3447. else
  3448. if test -n "$ac_ct_CC"; then
  3449. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3450. else
  3451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3452. for as_dir in $PATH
  3453. do
  3454. IFS=$as_save_IFS
  3455. test -z "$as_dir" && as_dir=.
  3456. for ac_exec_ext in '' $ac_executable_extensions; do
  3457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3458. ac_cv_prog_ac_ct_CC="$ac_prog"
  3459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3460. break 2
  3461. fi
  3462. done
  3463. done
  3464. IFS=$as_save_IFS
  3465. fi
  3466. fi
  3467. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3468. if test -n "$ac_ct_CC"; then
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3470. $as_echo "$ac_ct_CC" >&6; }
  3471. else
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3473. $as_echo "no" >&6; }
  3474. fi
  3475. test -n "$ac_ct_CC" && break
  3476. done
  3477. if test "x$ac_ct_CC" = x; then
  3478. CC=""
  3479. else
  3480. case $cross_compiling:$ac_tool_warned in
  3481. yes:)
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3483. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3484. ac_tool_warned=yes ;;
  3485. esac
  3486. CC=$ac_ct_CC
  3487. fi
  3488. fi
  3489. fi
  3490. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3491. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3492. as_fn_error $? "no acceptable C compiler found in \$PATH
  3493. See \`config.log' for more details" "$LINENO" 5; }
  3494. # Provide some information about the compiler.
  3495. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3496. set X $ac_compile
  3497. ac_compiler=$2
  3498. for ac_option in --version -v -V -qversion; do
  3499. { { ac_try="$ac_compiler $ac_option >&5"
  3500. case "(($ac_try" in
  3501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3502. *) ac_try_echo=$ac_try;;
  3503. esac
  3504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3505. $as_echo "$ac_try_echo"; } >&5
  3506. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3507. ac_status=$?
  3508. if test -s conftest.err; then
  3509. sed '10a\
  3510. ... rest of stderr output deleted ...
  3511. 10q' conftest.err >conftest.er1
  3512. cat conftest.er1 >&5
  3513. fi
  3514. rm -f conftest.er1 conftest.err
  3515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3516. test $ac_status = 0; }
  3517. done
  3518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3519. /* end confdefs.h. */
  3520. int
  3521. main ()
  3522. {
  3523. ;
  3524. return 0;
  3525. }
  3526. _ACEOF
  3527. ac_clean_files_save=$ac_clean_files
  3528. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3529. # Try to create an executable without -o first, disregard a.out.
  3530. # It will help us diagnose broken compilers, and finding out an intuition
  3531. # of exeext.
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3533. $as_echo_n "checking whether the C compiler works... " >&6; }
  3534. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3535. # The possible output files:
  3536. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3537. ac_rmfiles=
  3538. for ac_file in $ac_files
  3539. do
  3540. case $ac_file in
  3541. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3542. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3543. esac
  3544. done
  3545. rm -f $ac_rmfiles
  3546. if { { ac_try="$ac_link_default"
  3547. case "(($ac_try" in
  3548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3549. *) ac_try_echo=$ac_try;;
  3550. esac
  3551. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3552. $as_echo "$ac_try_echo"; } >&5
  3553. (eval "$ac_link_default") 2>&5
  3554. ac_status=$?
  3555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3556. test $ac_status = 0; }; then :
  3557. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3558. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3559. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3560. # so that the user can short-circuit this test for compilers unknown to
  3561. # Autoconf.
  3562. for ac_file in $ac_files ''
  3563. do
  3564. test -f "$ac_file" || continue
  3565. case $ac_file in
  3566. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3567. ;;
  3568. [ab].out )
  3569. # We found the default executable, but exeext='' is most
  3570. # certainly right.
  3571. break;;
  3572. *.* )
  3573. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3574. then :; else
  3575. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3576. fi
  3577. # We set ac_cv_exeext here because the later test for it is not
  3578. # safe: cross compilers may not add the suffix if given an `-o'
  3579. # argument, so we may need to know it at that point already.
  3580. # Even if this section looks crufty: it has the advantage of
  3581. # actually working.
  3582. break;;
  3583. * )
  3584. break;;
  3585. esac
  3586. done
  3587. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3588. else
  3589. ac_file=''
  3590. fi
  3591. if test -z "$ac_file"; then :
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3593. $as_echo "no" >&6; }
  3594. $as_echo "$as_me: failed program was:" >&5
  3595. sed 's/^/| /' conftest.$ac_ext >&5
  3596. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3597. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3598. as_fn_error 77 "C compiler cannot create executables
  3599. See \`config.log' for more details" "$LINENO" 5; }
  3600. else
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3602. $as_echo "yes" >&6; }
  3603. fi
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3605. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3607. $as_echo "$ac_file" >&6; }
  3608. ac_exeext=$ac_cv_exeext
  3609. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3610. ac_clean_files=$ac_clean_files_save
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3612. $as_echo_n "checking for suffix of executables... " >&6; }
  3613. if { { ac_try="$ac_link"
  3614. case "(($ac_try" in
  3615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3616. *) ac_try_echo=$ac_try;;
  3617. esac
  3618. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3619. $as_echo "$ac_try_echo"; } >&5
  3620. (eval "$ac_link") 2>&5
  3621. ac_status=$?
  3622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3623. test $ac_status = 0; }; then :
  3624. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3625. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3626. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3627. # `rm'.
  3628. for ac_file in conftest.exe conftest conftest.*; do
  3629. test -f "$ac_file" || continue
  3630. case $ac_file in
  3631. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3632. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3633. break;;
  3634. * ) break;;
  3635. esac
  3636. done
  3637. else
  3638. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3639. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3640. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3641. See \`config.log' for more details" "$LINENO" 5; }
  3642. fi
  3643. rm -f conftest conftest$ac_cv_exeext
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3645. $as_echo "$ac_cv_exeext" >&6; }
  3646. rm -f conftest.$ac_ext
  3647. EXEEXT=$ac_cv_exeext
  3648. ac_exeext=$EXEEXT
  3649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3650. /* end confdefs.h. */
  3651. #include <stdio.h>
  3652. int
  3653. main ()
  3654. {
  3655. FILE *f = fopen ("conftest.out", "w");
  3656. return ferror (f) || fclose (f) != 0;
  3657. ;
  3658. return 0;
  3659. }
  3660. _ACEOF
  3661. ac_clean_files="$ac_clean_files conftest.out"
  3662. # Check that the compiler produces executables we can run. If not, either
  3663. # the compiler is broken, or we cross compile.
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3665. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3666. if test "$cross_compiling" != yes; then
  3667. { { ac_try="$ac_link"
  3668. case "(($ac_try" in
  3669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3670. *) ac_try_echo=$ac_try;;
  3671. esac
  3672. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3673. $as_echo "$ac_try_echo"; } >&5
  3674. (eval "$ac_link") 2>&5
  3675. ac_status=$?
  3676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3677. test $ac_status = 0; }
  3678. if { ac_try='./conftest$ac_cv_exeext'
  3679. { { case "(($ac_try" in
  3680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3681. *) ac_try_echo=$ac_try;;
  3682. esac
  3683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3684. $as_echo "$ac_try_echo"; } >&5
  3685. (eval "$ac_try") 2>&5
  3686. ac_status=$?
  3687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3688. test $ac_status = 0; }; }; then
  3689. cross_compiling=no
  3690. else
  3691. if test "$cross_compiling" = maybe; then
  3692. cross_compiling=yes
  3693. else
  3694. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3695. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3696. as_fn_error $? "cannot run C compiled programs.
  3697. If you meant to cross compile, use \`--host'.
  3698. See \`config.log' for more details" "$LINENO" 5; }
  3699. fi
  3700. fi
  3701. fi
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3703. $as_echo "$cross_compiling" >&6; }
  3704. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3705. ac_clean_files=$ac_clean_files_save
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3707. $as_echo_n "checking for suffix of object files... " >&6; }
  3708. if ${ac_cv_objext+:} false; then :
  3709. $as_echo_n "(cached) " >&6
  3710. else
  3711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3712. /* end confdefs.h. */
  3713. int
  3714. main ()
  3715. {
  3716. ;
  3717. return 0;
  3718. }
  3719. _ACEOF
  3720. rm -f conftest.o conftest.obj
  3721. if { { ac_try="$ac_compile"
  3722. case "(($ac_try" in
  3723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3724. *) ac_try_echo=$ac_try;;
  3725. esac
  3726. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3727. $as_echo "$ac_try_echo"; } >&5
  3728. (eval "$ac_compile") 2>&5
  3729. ac_status=$?
  3730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3731. test $ac_status = 0; }; then :
  3732. for ac_file in conftest.o conftest.obj conftest.*; do
  3733. test -f "$ac_file" || continue;
  3734. case $ac_file in
  3735. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3736. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3737. break;;
  3738. esac
  3739. done
  3740. else
  3741. $as_echo "$as_me: failed program was:" >&5
  3742. sed 's/^/| /' conftest.$ac_ext >&5
  3743. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3744. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3745. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3746. See \`config.log' for more details" "$LINENO" 5; }
  3747. fi
  3748. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3749. fi
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3751. $as_echo "$ac_cv_objext" >&6; }
  3752. OBJEXT=$ac_cv_objext
  3753. ac_objext=$OBJEXT
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3755. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3756. if ${ac_cv_c_compiler_gnu+:} false; then :
  3757. $as_echo_n "(cached) " >&6
  3758. else
  3759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3760. /* end confdefs.h. */
  3761. int
  3762. main ()
  3763. {
  3764. #ifndef __GNUC__
  3765. choke me
  3766. #endif
  3767. ;
  3768. return 0;
  3769. }
  3770. _ACEOF
  3771. if ac_fn_c_try_compile "$LINENO"; then :
  3772. ac_compiler_gnu=yes
  3773. else
  3774. ac_compiler_gnu=no
  3775. fi
  3776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3777. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3778. fi
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3780. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3781. if test $ac_compiler_gnu = yes; then
  3782. GCC=yes
  3783. else
  3784. GCC=
  3785. fi
  3786. ac_test_CFLAGS=${CFLAGS+set}
  3787. ac_save_CFLAGS=$CFLAGS
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3789. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3790. if ${ac_cv_prog_cc_g+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. ac_save_c_werror_flag=$ac_c_werror_flag
  3794. ac_c_werror_flag=yes
  3795. ac_cv_prog_cc_g=no
  3796. CFLAGS="-g"
  3797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3798. /* end confdefs.h. */
  3799. int
  3800. main ()
  3801. {
  3802. ;
  3803. return 0;
  3804. }
  3805. _ACEOF
  3806. if ac_fn_c_try_compile "$LINENO"; then :
  3807. ac_cv_prog_cc_g=yes
  3808. else
  3809. CFLAGS=""
  3810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3811. /* end confdefs.h. */
  3812. int
  3813. main ()
  3814. {
  3815. ;
  3816. return 0;
  3817. }
  3818. _ACEOF
  3819. if ac_fn_c_try_compile "$LINENO"; then :
  3820. else
  3821. ac_c_werror_flag=$ac_save_c_werror_flag
  3822. CFLAGS="-g"
  3823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3824. /* end confdefs.h. */
  3825. int
  3826. main ()
  3827. {
  3828. ;
  3829. return 0;
  3830. }
  3831. _ACEOF
  3832. if ac_fn_c_try_compile "$LINENO"; then :
  3833. ac_cv_prog_cc_g=yes
  3834. fi
  3835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3836. fi
  3837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3838. fi
  3839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3840. ac_c_werror_flag=$ac_save_c_werror_flag
  3841. fi
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3843. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3844. if test "$ac_test_CFLAGS" = set; then
  3845. CFLAGS=$ac_save_CFLAGS
  3846. elif test $ac_cv_prog_cc_g = yes; then
  3847. if test "$GCC" = yes; then
  3848. CFLAGS="-g -O2"
  3849. else
  3850. CFLAGS="-g"
  3851. fi
  3852. else
  3853. if test "$GCC" = yes; then
  3854. CFLAGS="-O2"
  3855. else
  3856. CFLAGS=
  3857. fi
  3858. fi
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3860. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3861. if ${ac_cv_prog_cc_c89+:} false; then :
  3862. $as_echo_n "(cached) " >&6
  3863. else
  3864. ac_cv_prog_cc_c89=no
  3865. ac_save_CC=$CC
  3866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3867. /* end confdefs.h. */
  3868. #include <stdarg.h>
  3869. #include <stdio.h>
  3870. struct stat;
  3871. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3872. struct buf { int x; };
  3873. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3874. static char *e (p, i)
  3875. char **p;
  3876. int i;
  3877. {
  3878. return p[i];
  3879. }
  3880. static char *f (char * (*g) (char **, int), char **p, ...)
  3881. {
  3882. char *s;
  3883. va_list v;
  3884. va_start (v,p);
  3885. s = g (p, va_arg (v,int));
  3886. va_end (v);
  3887. return s;
  3888. }
  3889. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3890. function prototypes and stuff, but not '\xHH' hex character constants.
  3891. These don't provoke an error unfortunately, instead are silently treated
  3892. as 'x'. The following induces an error, until -std is added to get
  3893. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3894. array size at least. It's necessary to write '\x00'==0 to get something
  3895. that's true only with -std. */
  3896. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3897. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3898. inside strings and character constants. */
  3899. #define FOO(x) 'x'
  3900. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3901. int test (int i, double x);
  3902. struct s1 {int (*f) (int a);};
  3903. struct s2 {int (*f) (double a);};
  3904. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3905. int argc;
  3906. char **argv;
  3907. int
  3908. main ()
  3909. {
  3910. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3911. ;
  3912. return 0;
  3913. }
  3914. _ACEOF
  3915. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3916. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3917. do
  3918. CC="$ac_save_CC $ac_arg"
  3919. if ac_fn_c_try_compile "$LINENO"; then :
  3920. ac_cv_prog_cc_c89=$ac_arg
  3921. fi
  3922. rm -f core conftest.err conftest.$ac_objext
  3923. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3924. done
  3925. rm -f conftest.$ac_ext
  3926. CC=$ac_save_CC
  3927. fi
  3928. # AC_CACHE_VAL
  3929. case "x$ac_cv_prog_cc_c89" in
  3930. x)
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3932. $as_echo "none needed" >&6; } ;;
  3933. xno)
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3935. $as_echo "unsupported" >&6; } ;;
  3936. *)
  3937. CC="$CC $ac_cv_prog_cc_c89"
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3939. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3940. esac
  3941. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3942. fi
  3943. ac_ext=c
  3944. ac_cpp='$CPP $CPPFLAGS'
  3945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3948. ac_ext=c
  3949. ac_cpp='$CPP $CPPFLAGS'
  3950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3954. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3955. if ${am_cv_prog_cc_c_o+:} false; then :
  3956. $as_echo_n "(cached) " >&6
  3957. else
  3958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3959. /* end confdefs.h. */
  3960. int
  3961. main ()
  3962. {
  3963. ;
  3964. return 0;
  3965. }
  3966. _ACEOF
  3967. # Make sure it works both with $CC and with simple cc.
  3968. # Following AC_PROG_CC_C_O, we do the test twice because some
  3969. # compilers refuse to overwrite an existing .o file with -o,
  3970. # though they will create one.
  3971. am_cv_prog_cc_c_o=yes
  3972. for am_i in 1 2; do
  3973. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3974. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3975. ac_status=$?
  3976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3977. (exit $ac_status); } \
  3978. && test -f conftest2.$ac_objext; then
  3979. : OK
  3980. else
  3981. am_cv_prog_cc_c_o=no
  3982. break
  3983. fi
  3984. done
  3985. rm -f core conftest*
  3986. unset am_i
  3987. fi
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3989. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3990. if test "$am_cv_prog_cc_c_o" != yes; then
  3991. # Losing compiler, so override with the script.
  3992. # FIXME: It is wrong to rewrite CC.
  3993. # But if we don't then we get into trouble of one sort or another.
  3994. # A longer-term fix would be to have automake use am__CC in this case,
  3995. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3996. CC="$am_aux_dir/compile $CC"
  3997. fi
  3998. ac_ext=c
  3999. ac_cpp='$CPP $CPPFLAGS'
  4000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4003. depcc="$CC" am_compiler_list=
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4005. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4006. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4007. $as_echo_n "(cached) " >&6
  4008. else
  4009. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4010. # We make a subdir and do the tests there. Otherwise we can end up
  4011. # making bogus files that we don't know about and never remove. For
  4012. # instance it was reported that on HP-UX the gcc test will end up
  4013. # making a dummy file named 'D' -- because '-MD' means "put the output
  4014. # in D".
  4015. rm -rf conftest.dir
  4016. mkdir conftest.dir
  4017. # Copy depcomp to subdir because otherwise we won't find it if we're
  4018. # using a relative directory.
  4019. cp "$am_depcomp" conftest.dir
  4020. cd conftest.dir
  4021. # We will build objects and dependencies in a subdirectory because
  4022. # it helps to detect inapplicable dependency modes. For instance
  4023. # both Tru64's cc and ICC support -MD to output dependencies as a
  4024. # side effect of compilation, but ICC will put the dependencies in
  4025. # the current directory while Tru64 will put them in the object
  4026. # directory.
  4027. mkdir sub
  4028. am_cv_CC_dependencies_compiler_type=none
  4029. if test "$am_compiler_list" = ""; then
  4030. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4031. fi
  4032. am__universal=false
  4033. case " $depcc " in #(
  4034. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4035. esac
  4036. for depmode in $am_compiler_list; do
  4037. # Setup a source with many dependencies, because some compilers
  4038. # like to wrap large dependency lists on column 80 (with \), and
  4039. # we should not choose a depcomp mode which is confused by this.
  4040. #
  4041. # We need to recreate these files for each test, as the compiler may
  4042. # overwrite some of them when testing with obscure command lines.
  4043. # This happens at least with the AIX C compiler.
  4044. : > sub/conftest.c
  4045. for i in 1 2 3 4 5 6; do
  4046. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4047. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4048. # Solaris 10 /bin/sh.
  4049. echo '/* dummy */' > sub/conftst$i.h
  4050. done
  4051. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4052. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4053. # mode. It turns out that the SunPro C++ compiler does not properly
  4054. # handle '-M -o', and we need to detect this. Also, some Intel
  4055. # versions had trouble with output in subdirs.
  4056. am__obj=sub/conftest.${OBJEXT-o}
  4057. am__minus_obj="-o $am__obj"
  4058. case $depmode in
  4059. gcc)
  4060. # This depmode causes a compiler race in universal mode.
  4061. test "$am__universal" = false || continue
  4062. ;;
  4063. nosideeffect)
  4064. # After this tag, mechanisms are not by side-effect, so they'll
  4065. # only be used when explicitly requested.
  4066. if test "x$enable_dependency_tracking" = xyes; then
  4067. continue
  4068. else
  4069. break
  4070. fi
  4071. ;;
  4072. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4073. # This compiler won't grok '-c -o', but also, the minuso test has
  4074. # not run yet. These depmodes are late enough in the game, and
  4075. # so weak that their functioning should not be impacted.
  4076. am__obj=conftest.${OBJEXT-o}
  4077. am__minus_obj=
  4078. ;;
  4079. none) break ;;
  4080. esac
  4081. if depmode=$depmode \
  4082. source=sub/conftest.c object=$am__obj \
  4083. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4084. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4085. >/dev/null 2>conftest.err &&
  4086. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4087. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4088. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4089. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4090. # icc doesn't choke on unknown options, it will just issue warnings
  4091. # or remarks (even with -Werror). So we grep stderr for any message
  4092. # that says an option was ignored or not supported.
  4093. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4094. # icc: Command line warning: ignoring option '-M'; no argument required
  4095. # The diagnosis changed in icc 8.0:
  4096. # icc: Command line remark: option '-MP' not supported
  4097. if (grep 'ignoring option' conftest.err ||
  4098. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4099. am_cv_CC_dependencies_compiler_type=$depmode
  4100. break
  4101. fi
  4102. fi
  4103. done
  4104. cd ..
  4105. rm -rf conftest.dir
  4106. else
  4107. am_cv_CC_dependencies_compiler_type=none
  4108. fi
  4109. fi
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4111. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4112. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4113. if
  4114. test "x$enable_dependency_tracking" != xno \
  4115. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4116. am__fastdepCC_TRUE=
  4117. am__fastdepCC_FALSE='#'
  4118. else
  4119. am__fastdepCC_TRUE='#'
  4120. am__fastdepCC_FALSE=
  4121. fi
  4122. case $ac_cv_prog_cc_stdc in #(
  4123. no) :
  4124. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  4125. *) :
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  4127. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  4128. if ${ac_cv_prog_cc_c99+:} false; then :
  4129. $as_echo_n "(cached) " >&6
  4130. else
  4131. ac_cv_prog_cc_c99=no
  4132. ac_save_CC=$CC
  4133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4134. /* end confdefs.h. */
  4135. #include <stdarg.h>
  4136. #include <stdbool.h>
  4137. #include <stdlib.h>
  4138. #include <wchar.h>
  4139. #include <stdio.h>
  4140. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  4141. #define debug(...) fprintf (stderr, __VA_ARGS__)
  4142. #define showlist(...) puts (#__VA_ARGS__)
  4143. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  4144. static void
  4145. test_varargs_macros (void)
  4146. {
  4147. int x = 1234;
  4148. int y = 5678;
  4149. debug ("Flag");
  4150. debug ("X = %d\n", x);
  4151. showlist (The first, second, and third items.);
  4152. report (x>y, "x is %d but y is %d", x, y);
  4153. }
  4154. // Check long long types.
  4155. #define BIG64 18446744073709551615ull
  4156. #define BIG32 4294967295ul
  4157. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  4158. #if !BIG_OK
  4159. your preprocessor is broken;
  4160. #endif
  4161. #if BIG_OK
  4162. #else
  4163. your preprocessor is broken;
  4164. #endif
  4165. static long long int bignum = -9223372036854775807LL;
  4166. static unsigned long long int ubignum = BIG64;
  4167. struct incomplete_array
  4168. {
  4169. int datasize;
  4170. double data[];
  4171. };
  4172. struct named_init {
  4173. int number;
  4174. const wchar_t *name;
  4175. double average;
  4176. };
  4177. typedef const char *ccp;
  4178. static inline int
  4179. test_restrict (ccp restrict text)
  4180. {
  4181. // See if C++-style comments work.
  4182. // Iterate through items via the restricted pointer.
  4183. // Also check for declarations in for loops.
  4184. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4185. continue;
  4186. return 0;
  4187. }
  4188. // Check varargs and va_copy.
  4189. static void
  4190. test_varargs (const char *format, ...)
  4191. {
  4192. va_list args;
  4193. va_start (args, format);
  4194. va_list args_copy;
  4195. va_copy (args_copy, args);
  4196. const char *str;
  4197. int number;
  4198. float fnumber;
  4199. while (*format)
  4200. {
  4201. switch (*format++)
  4202. {
  4203. case 's': // string
  4204. str = va_arg (args_copy, const char *);
  4205. break;
  4206. case 'd': // int
  4207. number = va_arg (args_copy, int);
  4208. break;
  4209. case 'f': // float
  4210. fnumber = va_arg (args_copy, double);
  4211. break;
  4212. default:
  4213. break;
  4214. }
  4215. }
  4216. va_end (args_copy);
  4217. va_end (args);
  4218. }
  4219. int
  4220. main ()
  4221. {
  4222. // Check bool.
  4223. _Bool success = false;
  4224. // Check restrict.
  4225. if (test_restrict ("String literal") == 0)
  4226. success = true;
  4227. char *restrict newvar = "Another string";
  4228. // Check varargs.
  4229. test_varargs ("s, d' f .", "string", 65, 34.234);
  4230. test_varargs_macros ();
  4231. // Check flexible array members.
  4232. struct incomplete_array *ia =
  4233. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4234. ia->datasize = 10;
  4235. for (int i = 0; i < ia->datasize; ++i)
  4236. ia->data[i] = i * 1.234;
  4237. // Check named initializers.
  4238. struct named_init ni = {
  4239. .number = 34,
  4240. .name = L"Test wide string",
  4241. .average = 543.34343,
  4242. };
  4243. ni.number = 58;
  4244. int dynamic_array[ni.number];
  4245. dynamic_array[ni.number - 1] = 543;
  4246. // work around unused variable warnings
  4247. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4248. || dynamic_array[ni.number - 1] != 543);
  4249. ;
  4250. return 0;
  4251. }
  4252. _ACEOF
  4253. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4254. do
  4255. CC="$ac_save_CC $ac_arg"
  4256. if ac_fn_c_try_compile "$LINENO"; then :
  4257. ac_cv_prog_cc_c99=$ac_arg
  4258. fi
  4259. rm -f core conftest.err conftest.$ac_objext
  4260. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4261. done
  4262. rm -f conftest.$ac_ext
  4263. CC=$ac_save_CC
  4264. fi
  4265. # AC_CACHE_VAL
  4266. case "x$ac_cv_prog_cc_c99" in
  4267. x)
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4269. $as_echo "none needed" >&6; } ;;
  4270. xno)
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4272. $as_echo "unsupported" >&6; } ;;
  4273. *)
  4274. CC="$CC $ac_cv_prog_cc_c99"
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4276. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4277. esac
  4278. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4279. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4280. else
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4282. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4283. if ${ac_cv_prog_cc_c89+:} false; then :
  4284. $as_echo_n "(cached) " >&6
  4285. else
  4286. ac_cv_prog_cc_c89=no
  4287. ac_save_CC=$CC
  4288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4289. /* end confdefs.h. */
  4290. #include <stdarg.h>
  4291. #include <stdio.h>
  4292. struct stat;
  4293. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4294. struct buf { int x; };
  4295. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4296. static char *e (p, i)
  4297. char **p;
  4298. int i;
  4299. {
  4300. return p[i];
  4301. }
  4302. static char *f (char * (*g) (char **, int), char **p, ...)
  4303. {
  4304. char *s;
  4305. va_list v;
  4306. va_start (v,p);
  4307. s = g (p, va_arg (v,int));
  4308. va_end (v);
  4309. return s;
  4310. }
  4311. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4312. function prototypes and stuff, but not '\xHH' hex character constants.
  4313. These don't provoke an error unfortunately, instead are silently treated
  4314. as 'x'. The following induces an error, until -std is added to get
  4315. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4316. array size at least. It's necessary to write '\x00'==0 to get something
  4317. that's true only with -std. */
  4318. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4319. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4320. inside strings and character constants. */
  4321. #define FOO(x) 'x'
  4322. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4323. int test (int i, double x);
  4324. struct s1 {int (*f) (int a);};
  4325. struct s2 {int (*f) (double a);};
  4326. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4327. int argc;
  4328. char **argv;
  4329. int
  4330. main ()
  4331. {
  4332. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4333. ;
  4334. return 0;
  4335. }
  4336. _ACEOF
  4337. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4338. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4339. do
  4340. CC="$ac_save_CC $ac_arg"
  4341. if ac_fn_c_try_compile "$LINENO"; then :
  4342. ac_cv_prog_cc_c89=$ac_arg
  4343. fi
  4344. rm -f core conftest.err conftest.$ac_objext
  4345. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4346. done
  4347. rm -f conftest.$ac_ext
  4348. CC=$ac_save_CC
  4349. fi
  4350. # AC_CACHE_VAL
  4351. case "x$ac_cv_prog_cc_c89" in
  4352. x)
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4354. $as_echo "none needed" >&6; } ;;
  4355. xno)
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4357. $as_echo "unsupported" >&6; } ;;
  4358. *)
  4359. CC="$CC $ac_cv_prog_cc_c89"
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4361. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4362. esac
  4363. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4364. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4365. else
  4366. ac_cv_prog_cc_stdc=no
  4367. fi
  4368. fi
  4369. ;;
  4370. esac
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4372. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4373. if ${ac_cv_prog_cc_stdc+:} false; then :
  4374. $as_echo_n "(cached) " >&6
  4375. fi
  4376. case $ac_cv_prog_cc_stdc in #(
  4377. no) :
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4379. $as_echo "unsupported" >&6; } ;; #(
  4380. '') :
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4382. $as_echo "none needed" >&6; } ;; #(
  4383. *) :
  4384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4385. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4386. esac
  4387. ac_ext=c
  4388. ac_cpp='$CPP $CPPFLAGS'
  4389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4393. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4394. # On Suns, sometimes $CPP names a directory.
  4395. if test -n "$CPP" && test -d "$CPP"; then
  4396. CPP=
  4397. fi
  4398. if test -z "$CPP"; then
  4399. if ${ac_cv_prog_CPP+:} false; then :
  4400. $as_echo_n "(cached) " >&6
  4401. else
  4402. # Double quotes because CPP needs to be expanded
  4403. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4404. do
  4405. ac_preproc_ok=false
  4406. for ac_c_preproc_warn_flag in '' yes
  4407. do
  4408. # Use a header file that comes with gcc, so configuring glibc
  4409. # with a fresh cross-compiler works.
  4410. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4411. # <limits.h> exists even on freestanding compilers.
  4412. # On the NeXT, cc -E runs the code through the compiler's parser,
  4413. # not just through cpp. "Syntax error" is here to catch this case.
  4414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4415. /* end confdefs.h. */
  4416. #ifdef __STDC__
  4417. # include <limits.h>
  4418. #else
  4419. # include <assert.h>
  4420. #endif
  4421. Syntax error
  4422. _ACEOF
  4423. if ac_fn_c_try_cpp "$LINENO"; then :
  4424. else
  4425. # Broken: fails on valid input.
  4426. continue
  4427. fi
  4428. rm -f conftest.err conftest.i conftest.$ac_ext
  4429. # OK, works on sane cases. Now check whether nonexistent headers
  4430. # can be detected and how.
  4431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4432. /* end confdefs.h. */
  4433. #include <ac_nonexistent.h>
  4434. _ACEOF
  4435. if ac_fn_c_try_cpp "$LINENO"; then :
  4436. # Broken: success on invalid input.
  4437. continue
  4438. else
  4439. # Passes both tests.
  4440. ac_preproc_ok=:
  4441. break
  4442. fi
  4443. rm -f conftest.err conftest.i conftest.$ac_ext
  4444. done
  4445. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4446. rm -f conftest.i conftest.err conftest.$ac_ext
  4447. if $ac_preproc_ok; then :
  4448. break
  4449. fi
  4450. done
  4451. ac_cv_prog_CPP=$CPP
  4452. fi
  4453. CPP=$ac_cv_prog_CPP
  4454. else
  4455. ac_cv_prog_CPP=$CPP
  4456. fi
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4458. $as_echo "$CPP" >&6; }
  4459. ac_preproc_ok=false
  4460. for ac_c_preproc_warn_flag in '' yes
  4461. do
  4462. # Use a header file that comes with gcc, so configuring glibc
  4463. # with a fresh cross-compiler works.
  4464. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4465. # <limits.h> exists even on freestanding compilers.
  4466. # On the NeXT, cc -E runs the code through the compiler's parser,
  4467. # not just through cpp. "Syntax error" is here to catch this case.
  4468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4469. /* end confdefs.h. */
  4470. #ifdef __STDC__
  4471. # include <limits.h>
  4472. #else
  4473. # include <assert.h>
  4474. #endif
  4475. Syntax error
  4476. _ACEOF
  4477. if ac_fn_c_try_cpp "$LINENO"; then :
  4478. else
  4479. # Broken: fails on valid input.
  4480. continue
  4481. fi
  4482. rm -f conftest.err conftest.i conftest.$ac_ext
  4483. # OK, works on sane cases. Now check whether nonexistent headers
  4484. # can be detected and how.
  4485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4486. /* end confdefs.h. */
  4487. #include <ac_nonexistent.h>
  4488. _ACEOF
  4489. if ac_fn_c_try_cpp "$LINENO"; then :
  4490. # Broken: success on invalid input.
  4491. continue
  4492. else
  4493. # Passes both tests.
  4494. ac_preproc_ok=:
  4495. break
  4496. fi
  4497. rm -f conftest.err conftest.i conftest.$ac_ext
  4498. done
  4499. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4500. rm -f conftest.i conftest.err conftest.$ac_ext
  4501. if $ac_preproc_ok; then :
  4502. else
  4503. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4504. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4505. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4506. See \`config.log' for more details" "$LINENO" 5; }
  4507. fi
  4508. ac_ext=c
  4509. ac_cpp='$CPP $CPPFLAGS'
  4510. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4511. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4512. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4514. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4515. if ${ac_cv_path_GREP+:} false; then :
  4516. $as_echo_n "(cached) " >&6
  4517. else
  4518. if test -z "$GREP"; then
  4519. ac_path_GREP_found=false
  4520. # Loop through the user's path and test for each of PROGNAME-LIST
  4521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4522. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4523. do
  4524. IFS=$as_save_IFS
  4525. test -z "$as_dir" && as_dir=.
  4526. for ac_prog in grep ggrep; do
  4527. for ac_exec_ext in '' $ac_executable_extensions; do
  4528. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4529. as_fn_executable_p "$ac_path_GREP" || continue
  4530. # Check for GNU ac_path_GREP and select it if it is found.
  4531. # Check for GNU $ac_path_GREP
  4532. case `"$ac_path_GREP" --version 2>&1` in
  4533. *GNU*)
  4534. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4535. *)
  4536. ac_count=0
  4537. $as_echo_n 0123456789 >"conftest.in"
  4538. while :
  4539. do
  4540. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4541. mv "conftest.tmp" "conftest.in"
  4542. cp "conftest.in" "conftest.nl"
  4543. $as_echo 'GREP' >> "conftest.nl"
  4544. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4545. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4546. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4547. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4548. # Best one so far, save it but keep looking for a better one
  4549. ac_cv_path_GREP="$ac_path_GREP"
  4550. ac_path_GREP_max=$ac_count
  4551. fi
  4552. # 10*(2^10) chars as input seems more than enough
  4553. test $ac_count -gt 10 && break
  4554. done
  4555. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4556. esac
  4557. $ac_path_GREP_found && break 3
  4558. done
  4559. done
  4560. done
  4561. IFS=$as_save_IFS
  4562. if test -z "$ac_cv_path_GREP"; then
  4563. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4564. fi
  4565. else
  4566. ac_cv_path_GREP=$GREP
  4567. fi
  4568. fi
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4570. $as_echo "$ac_cv_path_GREP" >&6; }
  4571. GREP="$ac_cv_path_GREP"
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4573. $as_echo_n "checking for egrep... " >&6; }
  4574. if ${ac_cv_path_EGREP+:} false; then :
  4575. $as_echo_n "(cached) " >&6
  4576. else
  4577. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4578. then ac_cv_path_EGREP="$GREP -E"
  4579. else
  4580. if test -z "$EGREP"; then
  4581. ac_path_EGREP_found=false
  4582. # Loop through the user's path and test for each of PROGNAME-LIST
  4583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4584. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4585. do
  4586. IFS=$as_save_IFS
  4587. test -z "$as_dir" && as_dir=.
  4588. for ac_prog in egrep; do
  4589. for ac_exec_ext in '' $ac_executable_extensions; do
  4590. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4591. as_fn_executable_p "$ac_path_EGREP" || continue
  4592. # Check for GNU ac_path_EGREP and select it if it is found.
  4593. # Check for GNU $ac_path_EGREP
  4594. case `"$ac_path_EGREP" --version 2>&1` in
  4595. *GNU*)
  4596. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4597. *)
  4598. ac_count=0
  4599. $as_echo_n 0123456789 >"conftest.in"
  4600. while :
  4601. do
  4602. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4603. mv "conftest.tmp" "conftest.in"
  4604. cp "conftest.in" "conftest.nl"
  4605. $as_echo 'EGREP' >> "conftest.nl"
  4606. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4607. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4608. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4609. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4610. # Best one so far, save it but keep looking for a better one
  4611. ac_cv_path_EGREP="$ac_path_EGREP"
  4612. ac_path_EGREP_max=$ac_count
  4613. fi
  4614. # 10*(2^10) chars as input seems more than enough
  4615. test $ac_count -gt 10 && break
  4616. done
  4617. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4618. esac
  4619. $ac_path_EGREP_found && break 3
  4620. done
  4621. done
  4622. done
  4623. IFS=$as_save_IFS
  4624. if test -z "$ac_cv_path_EGREP"; then
  4625. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4626. fi
  4627. else
  4628. ac_cv_path_EGREP=$EGREP
  4629. fi
  4630. fi
  4631. fi
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4633. $as_echo "$ac_cv_path_EGREP" >&6; }
  4634. EGREP="$ac_cv_path_EGREP"
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4636. $as_echo_n "checking for ANSI C header files... " >&6; }
  4637. if ${ac_cv_header_stdc+:} false; then :
  4638. $as_echo_n "(cached) " >&6
  4639. else
  4640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4641. /* end confdefs.h. */
  4642. #include <stdlib.h>
  4643. #include <stdarg.h>
  4644. #include <string.h>
  4645. #include <float.h>
  4646. int
  4647. main ()
  4648. {
  4649. ;
  4650. return 0;
  4651. }
  4652. _ACEOF
  4653. if ac_fn_c_try_compile "$LINENO"; then :
  4654. ac_cv_header_stdc=yes
  4655. else
  4656. ac_cv_header_stdc=no
  4657. fi
  4658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4659. if test $ac_cv_header_stdc = yes; then
  4660. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4662. /* end confdefs.h. */
  4663. #include <string.h>
  4664. _ACEOF
  4665. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4666. $EGREP "memchr" >/dev/null 2>&1; then :
  4667. else
  4668. ac_cv_header_stdc=no
  4669. fi
  4670. rm -f conftest*
  4671. fi
  4672. if test $ac_cv_header_stdc = yes; then
  4673. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4675. /* end confdefs.h. */
  4676. #include <stdlib.h>
  4677. _ACEOF
  4678. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4679. $EGREP "free" >/dev/null 2>&1; then :
  4680. else
  4681. ac_cv_header_stdc=no
  4682. fi
  4683. rm -f conftest*
  4684. fi
  4685. if test $ac_cv_header_stdc = yes; then
  4686. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4687. if test "$cross_compiling" = yes; then :
  4688. :
  4689. else
  4690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4691. /* end confdefs.h. */
  4692. #include <ctype.h>
  4693. #include <stdlib.h>
  4694. #if ((' ' & 0x0FF) == 0x020)
  4695. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4696. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4697. #else
  4698. # define ISLOWER(c) \
  4699. (('a' <= (c) && (c) <= 'i') \
  4700. || ('j' <= (c) && (c) <= 'r') \
  4701. || ('s' <= (c) && (c) <= 'z'))
  4702. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4703. #endif
  4704. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4705. int
  4706. main ()
  4707. {
  4708. int i;
  4709. for (i = 0; i < 256; i++)
  4710. if (XOR (islower (i), ISLOWER (i))
  4711. || toupper (i) != TOUPPER (i))
  4712. return 2;
  4713. return 0;
  4714. }
  4715. _ACEOF
  4716. if ac_fn_c_try_run "$LINENO"; then :
  4717. else
  4718. ac_cv_header_stdc=no
  4719. fi
  4720. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4721. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4722. fi
  4723. fi
  4724. fi
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4726. $as_echo "$ac_cv_header_stdc" >&6; }
  4727. if test $ac_cv_header_stdc = yes; then
  4728. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4729. fi
  4730. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4731. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4732. inttypes.h stdint.h unistd.h
  4733. do :
  4734. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4735. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4736. "
  4737. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4738. cat >>confdefs.h <<_ACEOF
  4739. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4740. _ACEOF
  4741. fi
  4742. done
  4743. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4744. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4745. MINIX=yes
  4746. else
  4747. MINIX=
  4748. fi
  4749. if test "$MINIX" = yes; then
  4750. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4751. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4752. $as_echo "#define _MINIX 1" >>confdefs.h
  4753. fi
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4755. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4756. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4757. $as_echo_n "(cached) " >&6
  4758. else
  4759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4760. /* end confdefs.h. */
  4761. # define __EXTENSIONS__ 1
  4762. $ac_includes_default
  4763. int
  4764. main ()
  4765. {
  4766. ;
  4767. return 0;
  4768. }
  4769. _ACEOF
  4770. if ac_fn_c_try_compile "$LINENO"; then :
  4771. ac_cv_safe_to_define___extensions__=yes
  4772. else
  4773. ac_cv_safe_to_define___extensions__=no
  4774. fi
  4775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4776. fi
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4778. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4779. test $ac_cv_safe_to_define___extensions__ = yes &&
  4780. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4781. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4782. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4783. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4784. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4785. if test -n "$ac_tool_prefix"; then
  4786. for ac_prog in ar lib "link -lib"
  4787. do
  4788. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4789. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4791. $as_echo_n "checking for $ac_word... " >&6; }
  4792. if ${ac_cv_prog_AR+:} false; then :
  4793. $as_echo_n "(cached) " >&6
  4794. else
  4795. if test -n "$AR"; then
  4796. ac_cv_prog_AR="$AR" # Let the user override the test.
  4797. else
  4798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4799. for as_dir in $PATH
  4800. do
  4801. IFS=$as_save_IFS
  4802. test -z "$as_dir" && as_dir=.
  4803. for ac_exec_ext in '' $ac_executable_extensions; do
  4804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4805. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4807. break 2
  4808. fi
  4809. done
  4810. done
  4811. IFS=$as_save_IFS
  4812. fi
  4813. fi
  4814. AR=$ac_cv_prog_AR
  4815. if test -n "$AR"; then
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4817. $as_echo "$AR" >&6; }
  4818. else
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4820. $as_echo "no" >&6; }
  4821. fi
  4822. test -n "$AR" && break
  4823. done
  4824. fi
  4825. if test -z "$AR"; then
  4826. ac_ct_AR=$AR
  4827. for ac_prog in ar lib "link -lib"
  4828. do
  4829. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4830. set dummy $ac_prog; ac_word=$2
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4832. $as_echo_n "checking for $ac_word... " >&6; }
  4833. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4834. $as_echo_n "(cached) " >&6
  4835. else
  4836. if test -n "$ac_ct_AR"; then
  4837. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4838. else
  4839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4840. for as_dir in $PATH
  4841. do
  4842. IFS=$as_save_IFS
  4843. test -z "$as_dir" && as_dir=.
  4844. for ac_exec_ext in '' $ac_executable_extensions; do
  4845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4846. ac_cv_prog_ac_ct_AR="$ac_prog"
  4847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4848. break 2
  4849. fi
  4850. done
  4851. done
  4852. IFS=$as_save_IFS
  4853. fi
  4854. fi
  4855. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4856. if test -n "$ac_ct_AR"; then
  4857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4858. $as_echo "$ac_ct_AR" >&6; }
  4859. else
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4861. $as_echo "no" >&6; }
  4862. fi
  4863. test -n "$ac_ct_AR" && break
  4864. done
  4865. if test "x$ac_ct_AR" = x; then
  4866. AR="false"
  4867. else
  4868. case $cross_compiling:$ac_tool_warned in
  4869. yes:)
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4871. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4872. ac_tool_warned=yes ;;
  4873. esac
  4874. AR=$ac_ct_AR
  4875. fi
  4876. fi
  4877. : ${AR=ar}
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4879. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4880. if ${am_cv_ar_interface+:} false; then :
  4881. $as_echo_n "(cached) " >&6
  4882. else
  4883. ac_ext=c
  4884. ac_cpp='$CPP $CPPFLAGS'
  4885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4888. am_cv_ar_interface=ar
  4889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4890. /* end confdefs.h. */
  4891. int some_variable = 0;
  4892. _ACEOF
  4893. if ac_fn_c_try_compile "$LINENO"; then :
  4894. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4895. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4896. (eval $am_ar_try) 2>&5
  4897. ac_status=$?
  4898. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4899. test $ac_status = 0; }
  4900. if test "$ac_status" -eq 0; then
  4901. am_cv_ar_interface=ar
  4902. else
  4903. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4904. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4905. (eval $am_ar_try) 2>&5
  4906. ac_status=$?
  4907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4908. test $ac_status = 0; }
  4909. if test "$ac_status" -eq 0; then
  4910. am_cv_ar_interface=lib
  4911. else
  4912. am_cv_ar_interface=unknown
  4913. fi
  4914. fi
  4915. rm -f conftest.lib libconftest.a
  4916. fi
  4917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4918. ac_ext=c
  4919. ac_cpp='$CPP $CPPFLAGS'
  4920. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4921. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4922. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4923. fi
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4925. $as_echo "$am_cv_ar_interface" >&6; }
  4926. case $am_cv_ar_interface in
  4927. ar)
  4928. ;;
  4929. lib)
  4930. # Microsoft lib, so override with the ar-lib wrapper script.
  4931. # FIXME: It is wrong to rewrite AR.
  4932. # But if we don't then we get into trouble of one sort or another.
  4933. # A longer-term fix would be to have automake use am__AR in this case,
  4934. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4935. # similar.
  4936. AR="$am_aux_dir/ar-lib $AR"
  4937. ;;
  4938. unknown)
  4939. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4940. ;;
  4941. esac
  4942. case `pwd` in
  4943. *\ * | *\ *)
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4945. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4946. esac
  4947. macro_version='2.4.6'
  4948. macro_revision='2.4.6'
  4949. ltmain=$ac_aux_dir/ltmain.sh
  4950. # Make sure we can run config.sub.
  4951. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4952. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4954. $as_echo_n "checking build system type... " >&6; }
  4955. if ${ac_cv_build+:} false; then :
  4956. $as_echo_n "(cached) " >&6
  4957. else
  4958. ac_build_alias=$build_alias
  4959. test "x$ac_build_alias" = x &&
  4960. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4961. test "x$ac_build_alias" = x &&
  4962. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4963. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4964. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4965. fi
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4967. $as_echo "$ac_cv_build" >&6; }
  4968. case $ac_cv_build in
  4969. *-*-*) ;;
  4970. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4971. esac
  4972. build=$ac_cv_build
  4973. ac_save_IFS=$IFS; IFS='-'
  4974. set x $ac_cv_build
  4975. shift
  4976. build_cpu=$1
  4977. build_vendor=$2
  4978. shift; shift
  4979. # Remember, the first character of IFS is used to create $*,
  4980. # except with old shells:
  4981. build_os=$*
  4982. IFS=$ac_save_IFS
  4983. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4985. $as_echo_n "checking host system type... " >&6; }
  4986. if ${ac_cv_host+:} false; then :
  4987. $as_echo_n "(cached) " >&6
  4988. else
  4989. if test "x$host_alias" = x; then
  4990. ac_cv_host=$ac_cv_build
  4991. else
  4992. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4993. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4994. fi
  4995. fi
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4997. $as_echo "$ac_cv_host" >&6; }
  4998. case $ac_cv_host in
  4999. *-*-*) ;;
  5000. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  5001. esac
  5002. host=$ac_cv_host
  5003. ac_save_IFS=$IFS; IFS='-'
  5004. set x $ac_cv_host
  5005. shift
  5006. host_cpu=$1
  5007. host_vendor=$2
  5008. shift; shift
  5009. # Remember, the first character of IFS is used to create $*,
  5010. # except with old shells:
  5011. host_os=$*
  5012. IFS=$ac_save_IFS
  5013. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  5014. # Backslashify metacharacters that are still active within
  5015. # double-quoted strings.
  5016. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5017. # Same as above, but do not quote variable references.
  5018. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5019. # Sed substitution to delay expansion of an escaped shell variable in a
  5020. # double_quote_subst'ed string.
  5021. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5022. # Sed substitution to delay expansion of an escaped single quote.
  5023. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5024. # Sed substitution to avoid accidental globbing in evaled expressions
  5025. no_glob_subst='s/\*/\\\*/g'
  5026. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5027. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5028. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5030. $as_echo_n "checking how to print strings... " >&6; }
  5031. # Test print first, because it will be a builtin if present.
  5032. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5033. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5034. ECHO='print -r --'
  5035. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5036. ECHO='printf %s\n'
  5037. else
  5038. # Use this function as a fallback that always works.
  5039. func_fallback_echo ()
  5040. {
  5041. eval 'cat <<_LTECHO_EOF
  5042. $1
  5043. _LTECHO_EOF'
  5044. }
  5045. ECHO='func_fallback_echo'
  5046. fi
  5047. # func_echo_all arg...
  5048. # Invoke $ECHO with all args, space-separated.
  5049. func_echo_all ()
  5050. {
  5051. $ECHO ""
  5052. }
  5053. case $ECHO in
  5054. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5055. $as_echo "printf" >&6; } ;;
  5056. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5057. $as_echo "print -r" >&6; } ;;
  5058. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5059. $as_echo "cat" >&6; } ;;
  5060. esac
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5062. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5063. if ${ac_cv_path_SED+:} false; then :
  5064. $as_echo_n "(cached) " >&6
  5065. else
  5066. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5067. for ac_i in 1 2 3 4 5 6 7; do
  5068. ac_script="$ac_script$as_nl$ac_script"
  5069. done
  5070. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5071. { ac_script=; unset ac_script;}
  5072. if test -z "$SED"; then
  5073. ac_path_SED_found=false
  5074. # Loop through the user's path and test for each of PROGNAME-LIST
  5075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5076. for as_dir in $PATH
  5077. do
  5078. IFS=$as_save_IFS
  5079. test -z "$as_dir" && as_dir=.
  5080. for ac_prog in sed gsed; do
  5081. for ac_exec_ext in '' $ac_executable_extensions; do
  5082. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5083. as_fn_executable_p "$ac_path_SED" || continue
  5084. # Check for GNU ac_path_SED and select it if it is found.
  5085. # Check for GNU $ac_path_SED
  5086. case `"$ac_path_SED" --version 2>&1` in
  5087. *GNU*)
  5088. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5089. *)
  5090. ac_count=0
  5091. $as_echo_n 0123456789 >"conftest.in"
  5092. while :
  5093. do
  5094. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5095. mv "conftest.tmp" "conftest.in"
  5096. cp "conftest.in" "conftest.nl"
  5097. $as_echo '' >> "conftest.nl"
  5098. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5099. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5100. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5101. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5102. # Best one so far, save it but keep looking for a better one
  5103. ac_cv_path_SED="$ac_path_SED"
  5104. ac_path_SED_max=$ac_count
  5105. fi
  5106. # 10*(2^10) chars as input seems more than enough
  5107. test $ac_count -gt 10 && break
  5108. done
  5109. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5110. esac
  5111. $ac_path_SED_found && break 3
  5112. done
  5113. done
  5114. done
  5115. IFS=$as_save_IFS
  5116. if test -z "$ac_cv_path_SED"; then
  5117. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5118. fi
  5119. else
  5120. ac_cv_path_SED=$SED
  5121. fi
  5122. fi
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5124. $as_echo "$ac_cv_path_SED" >&6; }
  5125. SED="$ac_cv_path_SED"
  5126. rm -f conftest.sed
  5127. test -z "$SED" && SED=sed
  5128. Xsed="$SED -e 1s/^X//"
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5130. $as_echo_n "checking for fgrep... " >&6; }
  5131. if ${ac_cv_path_FGREP+:} false; then :
  5132. $as_echo_n "(cached) " >&6
  5133. else
  5134. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5135. then ac_cv_path_FGREP="$GREP -F"
  5136. else
  5137. if test -z "$FGREP"; then
  5138. ac_path_FGREP_found=false
  5139. # Loop through the user's path and test for each of PROGNAME-LIST
  5140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5141. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5142. do
  5143. IFS=$as_save_IFS
  5144. test -z "$as_dir" && as_dir=.
  5145. for ac_prog in fgrep; do
  5146. for ac_exec_ext in '' $ac_executable_extensions; do
  5147. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5148. as_fn_executable_p "$ac_path_FGREP" || continue
  5149. # Check for GNU ac_path_FGREP and select it if it is found.
  5150. # Check for GNU $ac_path_FGREP
  5151. case `"$ac_path_FGREP" --version 2>&1` in
  5152. *GNU*)
  5153. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5154. *)
  5155. ac_count=0
  5156. $as_echo_n 0123456789 >"conftest.in"
  5157. while :
  5158. do
  5159. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5160. mv "conftest.tmp" "conftest.in"
  5161. cp "conftest.in" "conftest.nl"
  5162. $as_echo 'FGREP' >> "conftest.nl"
  5163. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5164. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5165. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5166. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5167. # Best one so far, save it but keep looking for a better one
  5168. ac_cv_path_FGREP="$ac_path_FGREP"
  5169. ac_path_FGREP_max=$ac_count
  5170. fi
  5171. # 10*(2^10) chars as input seems more than enough
  5172. test $ac_count -gt 10 && break
  5173. done
  5174. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5175. esac
  5176. $ac_path_FGREP_found && break 3
  5177. done
  5178. done
  5179. done
  5180. IFS=$as_save_IFS
  5181. if test -z "$ac_cv_path_FGREP"; then
  5182. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5183. fi
  5184. else
  5185. ac_cv_path_FGREP=$FGREP
  5186. fi
  5187. fi
  5188. fi
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5190. $as_echo "$ac_cv_path_FGREP" >&6; }
  5191. FGREP="$ac_cv_path_FGREP"
  5192. test -z "$GREP" && GREP=grep
  5193. # Check whether --with-gnu-ld was given.
  5194. if test "${with_gnu_ld+set}" = set; then :
  5195. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5196. else
  5197. with_gnu_ld=no
  5198. fi
  5199. ac_prog=ld
  5200. if test yes = "$GCC"; then
  5201. # Check if gcc -print-prog-name=ld gives a path.
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5203. $as_echo_n "checking for ld used by $CC... " >&6; }
  5204. case $host in
  5205. *-*-mingw*)
  5206. # gcc leaves a trailing carriage return, which upsets mingw
  5207. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5208. *)
  5209. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5210. esac
  5211. case $ac_prog in
  5212. # Accept absolute paths.
  5213. [\\/]* | ?:[\\/]*)
  5214. re_direlt='/[^/][^/]*/\.\./'
  5215. # Canonicalize the pathname of ld
  5216. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5217. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5218. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5219. done
  5220. test -z "$LD" && LD=$ac_prog
  5221. ;;
  5222. "")
  5223. # If it fails, then pretend we aren't using GCC.
  5224. ac_prog=ld
  5225. ;;
  5226. *)
  5227. # If it is relative, then search for the first ld in PATH.
  5228. with_gnu_ld=unknown
  5229. ;;
  5230. esac
  5231. elif test yes = "$with_gnu_ld"; then
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5233. $as_echo_n "checking for GNU ld... " >&6; }
  5234. else
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5236. $as_echo_n "checking for non-GNU ld... " >&6; }
  5237. fi
  5238. if ${lt_cv_path_LD+:} false; then :
  5239. $as_echo_n "(cached) " >&6
  5240. else
  5241. if test -z "$LD"; then
  5242. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5243. for ac_dir in $PATH; do
  5244. IFS=$lt_save_ifs
  5245. test -z "$ac_dir" && ac_dir=.
  5246. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5247. lt_cv_path_LD=$ac_dir/$ac_prog
  5248. # Check to see if the program is GNU ld. I'd rather use --version,
  5249. # but apparently some variants of GNU ld only accept -v.
  5250. # Break only if it was the GNU/non-GNU ld that we prefer.
  5251. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5252. *GNU* | *'with BFD'*)
  5253. test no != "$with_gnu_ld" && break
  5254. ;;
  5255. *)
  5256. test yes != "$with_gnu_ld" && break
  5257. ;;
  5258. esac
  5259. fi
  5260. done
  5261. IFS=$lt_save_ifs
  5262. else
  5263. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5264. fi
  5265. fi
  5266. LD=$lt_cv_path_LD
  5267. if test -n "$LD"; then
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5269. $as_echo "$LD" >&6; }
  5270. else
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5272. $as_echo "no" >&6; }
  5273. fi
  5274. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5276. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5277. if ${lt_cv_prog_gnu_ld+:} false; then :
  5278. $as_echo_n "(cached) " >&6
  5279. else
  5280. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5281. case `$LD -v 2>&1 </dev/null` in
  5282. *GNU* | *'with BFD'*)
  5283. lt_cv_prog_gnu_ld=yes
  5284. ;;
  5285. *)
  5286. lt_cv_prog_gnu_ld=no
  5287. ;;
  5288. esac
  5289. fi
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5291. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5292. with_gnu_ld=$lt_cv_prog_gnu_ld
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5294. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5295. if ${lt_cv_path_NM+:} false; then :
  5296. $as_echo_n "(cached) " >&6
  5297. else
  5298. if test -n "$NM"; then
  5299. # Let the user override the test.
  5300. lt_cv_path_NM=$NM
  5301. else
  5302. lt_nm_to_check=${ac_tool_prefix}nm
  5303. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5304. lt_nm_to_check="$lt_nm_to_check nm"
  5305. fi
  5306. for lt_tmp_nm in $lt_nm_to_check; do
  5307. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5308. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5309. IFS=$lt_save_ifs
  5310. test -z "$ac_dir" && ac_dir=.
  5311. tmp_nm=$ac_dir/$lt_tmp_nm
  5312. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5313. # Check to see if the nm accepts a BSD-compat flag.
  5314. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5315. # nm: unknown option "B" ignored
  5316. # Tru64's nm complains that /dev/null is an invalid object file
  5317. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5318. case $build_os in
  5319. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5320. *) lt_bad_file=/dev/null ;;
  5321. esac
  5322. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5323. *$lt_bad_file* | *'Invalid file or object type'*)
  5324. lt_cv_path_NM="$tmp_nm -B"
  5325. break 2
  5326. ;;
  5327. *)
  5328. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5329. */dev/null*)
  5330. lt_cv_path_NM="$tmp_nm -p"
  5331. break 2
  5332. ;;
  5333. *)
  5334. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5335. continue # so that we can try to find one that supports BSD flags
  5336. ;;
  5337. esac
  5338. ;;
  5339. esac
  5340. fi
  5341. done
  5342. IFS=$lt_save_ifs
  5343. done
  5344. : ${lt_cv_path_NM=no}
  5345. fi
  5346. fi
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5348. $as_echo "$lt_cv_path_NM" >&6; }
  5349. if test no != "$lt_cv_path_NM"; then
  5350. NM=$lt_cv_path_NM
  5351. else
  5352. # Didn't find any BSD compatible name lister, look for dumpbin.
  5353. if test -n "$DUMPBIN"; then :
  5354. # Let the user override the test.
  5355. else
  5356. if test -n "$ac_tool_prefix"; then
  5357. for ac_prog in dumpbin "link -dump"
  5358. do
  5359. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5360. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5362. $as_echo_n "checking for $ac_word... " >&6; }
  5363. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5364. $as_echo_n "(cached) " >&6
  5365. else
  5366. if test -n "$DUMPBIN"; then
  5367. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5368. else
  5369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5370. for as_dir in $PATH
  5371. do
  5372. IFS=$as_save_IFS
  5373. test -z "$as_dir" && as_dir=.
  5374. for ac_exec_ext in '' $ac_executable_extensions; do
  5375. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5376. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5378. break 2
  5379. fi
  5380. done
  5381. done
  5382. IFS=$as_save_IFS
  5383. fi
  5384. fi
  5385. DUMPBIN=$ac_cv_prog_DUMPBIN
  5386. if test -n "$DUMPBIN"; then
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5388. $as_echo "$DUMPBIN" >&6; }
  5389. else
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5391. $as_echo "no" >&6; }
  5392. fi
  5393. test -n "$DUMPBIN" && break
  5394. done
  5395. fi
  5396. if test -z "$DUMPBIN"; then
  5397. ac_ct_DUMPBIN=$DUMPBIN
  5398. for ac_prog in dumpbin "link -dump"
  5399. do
  5400. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5401. set dummy $ac_prog; ac_word=$2
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5403. $as_echo_n "checking for $ac_word... " >&6; }
  5404. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5405. $as_echo_n "(cached) " >&6
  5406. else
  5407. if test -n "$ac_ct_DUMPBIN"; then
  5408. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5409. else
  5410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5411. for as_dir in $PATH
  5412. do
  5413. IFS=$as_save_IFS
  5414. test -z "$as_dir" && as_dir=.
  5415. for ac_exec_ext in '' $ac_executable_extensions; do
  5416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5417. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5419. break 2
  5420. fi
  5421. done
  5422. done
  5423. IFS=$as_save_IFS
  5424. fi
  5425. fi
  5426. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5427. if test -n "$ac_ct_DUMPBIN"; then
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5429. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5430. else
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5432. $as_echo "no" >&6; }
  5433. fi
  5434. test -n "$ac_ct_DUMPBIN" && break
  5435. done
  5436. if test "x$ac_ct_DUMPBIN" = x; then
  5437. DUMPBIN=":"
  5438. else
  5439. case $cross_compiling:$ac_tool_warned in
  5440. yes:)
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5442. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5443. ac_tool_warned=yes ;;
  5444. esac
  5445. DUMPBIN=$ac_ct_DUMPBIN
  5446. fi
  5447. fi
  5448. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5449. *COFF*)
  5450. DUMPBIN="$DUMPBIN -symbols -headers"
  5451. ;;
  5452. *)
  5453. DUMPBIN=:
  5454. ;;
  5455. esac
  5456. fi
  5457. if test : != "$DUMPBIN"; then
  5458. NM=$DUMPBIN
  5459. fi
  5460. fi
  5461. test -z "$NM" && NM=nm
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5463. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5464. if ${lt_cv_nm_interface+:} false; then :
  5465. $as_echo_n "(cached) " >&6
  5466. else
  5467. lt_cv_nm_interface="BSD nm"
  5468. echo "int some_variable = 0;" > conftest.$ac_ext
  5469. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5470. (eval "$ac_compile" 2>conftest.err)
  5471. cat conftest.err >&5
  5472. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5473. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5474. cat conftest.err >&5
  5475. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5476. cat conftest.out >&5
  5477. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5478. lt_cv_nm_interface="MS dumpbin"
  5479. fi
  5480. rm -f conftest*
  5481. fi
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5483. $as_echo "$lt_cv_nm_interface" >&6; }
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5485. $as_echo_n "checking whether ln -s works... " >&6; }
  5486. LN_S=$as_ln_s
  5487. if test "$LN_S" = "ln -s"; then
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5489. $as_echo "yes" >&6; }
  5490. else
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5492. $as_echo "no, using $LN_S" >&6; }
  5493. fi
  5494. # find the maximum length of command line arguments
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5496. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5497. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5498. $as_echo_n "(cached) " >&6
  5499. else
  5500. i=0
  5501. teststring=ABCD
  5502. case $build_os in
  5503. msdosdjgpp*)
  5504. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5505. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5506. # during glob expansion). Even if it were fixed, the result of this
  5507. # check would be larger than it should be.
  5508. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5509. ;;
  5510. gnu*)
  5511. # Under GNU Hurd, this test is not required because there is
  5512. # no limit to the length of command line arguments.
  5513. # Libtool will interpret -1 as no limit whatsoever
  5514. lt_cv_sys_max_cmd_len=-1;
  5515. ;;
  5516. cygwin* | mingw* | cegcc*)
  5517. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5518. # about 5 minutes as the teststring grows exponentially.
  5519. # Worse, since 9x/ME are not pre-emptively multitasking,
  5520. # you end up with a "frozen" computer, even though with patience
  5521. # the test eventually succeeds (with a max line length of 256k).
  5522. # Instead, let's just punt: use the minimum linelength reported by
  5523. # all of the supported platforms: 8192 (on NT/2K/XP).
  5524. lt_cv_sys_max_cmd_len=8192;
  5525. ;;
  5526. mint*)
  5527. # On MiNT this can take a long time and run out of memory.
  5528. lt_cv_sys_max_cmd_len=8192;
  5529. ;;
  5530. amigaos*)
  5531. # On AmigaOS with pdksh, this test takes hours, literally.
  5532. # So we just punt and use a minimum line length of 8192.
  5533. lt_cv_sys_max_cmd_len=8192;
  5534. ;;
  5535. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5536. # This has been around since 386BSD, at least. Likely further.
  5537. if test -x /sbin/sysctl; then
  5538. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5539. elif test -x /usr/sbin/sysctl; then
  5540. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5541. else
  5542. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5543. fi
  5544. # And add a safety zone
  5545. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5546. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5547. ;;
  5548. interix*)
  5549. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5550. lt_cv_sys_max_cmd_len=196608
  5551. ;;
  5552. os2*)
  5553. # The test takes a long time on OS/2.
  5554. lt_cv_sys_max_cmd_len=8192
  5555. ;;
  5556. osf*)
  5557. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5558. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5559. # nice to cause kernel panics so lets avoid the loop below.
  5560. # First set a reasonable default.
  5561. lt_cv_sys_max_cmd_len=16384
  5562. #
  5563. if test -x /sbin/sysconfig; then
  5564. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5565. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5566. esac
  5567. fi
  5568. ;;
  5569. sco3.2v5*)
  5570. lt_cv_sys_max_cmd_len=102400
  5571. ;;
  5572. sysv5* | sco5v6* | sysv4.2uw2*)
  5573. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5574. if test -n "$kargmax"; then
  5575. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5576. else
  5577. lt_cv_sys_max_cmd_len=32768
  5578. fi
  5579. ;;
  5580. *)
  5581. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5582. if test -n "$lt_cv_sys_max_cmd_len" && \
  5583. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5584. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5585. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5586. else
  5587. # Make teststring a little bigger before we do anything with it.
  5588. # a 1K string should be a reasonable start.
  5589. for i in 1 2 3 4 5 6 7 8; do
  5590. teststring=$teststring$teststring
  5591. done
  5592. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5593. # If test is not a shell built-in, we'll probably end up computing a
  5594. # maximum length that is only half of the actual maximum length, but
  5595. # we can't tell.
  5596. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5597. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5598. test 17 != "$i" # 1/2 MB should be enough
  5599. do
  5600. i=`expr $i + 1`
  5601. teststring=$teststring$teststring
  5602. done
  5603. # Only check the string length outside the loop.
  5604. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5605. teststring=
  5606. # Add a significant safety factor because C++ compilers can tack on
  5607. # massive amounts of additional arguments before passing them to the
  5608. # linker. It appears as though 1/2 is a usable value.
  5609. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5610. fi
  5611. ;;
  5612. esac
  5613. fi
  5614. if test -n "$lt_cv_sys_max_cmd_len"; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5616. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5617. else
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5619. $as_echo "none" >&6; }
  5620. fi
  5621. max_cmd_len=$lt_cv_sys_max_cmd_len
  5622. : ${CP="cp -f"}
  5623. : ${MV="mv -f"}
  5624. : ${RM="rm -f"}
  5625. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5626. lt_unset=unset
  5627. else
  5628. lt_unset=false
  5629. fi
  5630. # test EBCDIC or ASCII
  5631. case `echo X|tr X '\101'` in
  5632. A) # ASCII based system
  5633. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5634. lt_SP2NL='tr \040 \012'
  5635. lt_NL2SP='tr \015\012 \040\040'
  5636. ;;
  5637. *) # EBCDIC based system
  5638. lt_SP2NL='tr \100 \n'
  5639. lt_NL2SP='tr \r\n \100\100'
  5640. ;;
  5641. esac
  5642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5643. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5644. if ${lt_cv_to_host_file_cmd+:} false; then :
  5645. $as_echo_n "(cached) " >&6
  5646. else
  5647. case $host in
  5648. *-*-mingw* )
  5649. case $build in
  5650. *-*-mingw* ) # actually msys
  5651. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5652. ;;
  5653. *-*-cygwin* )
  5654. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5655. ;;
  5656. * ) # otherwise, assume *nix
  5657. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5658. ;;
  5659. esac
  5660. ;;
  5661. *-*-cygwin* )
  5662. case $build in
  5663. *-*-mingw* ) # actually msys
  5664. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5665. ;;
  5666. *-*-cygwin* )
  5667. lt_cv_to_host_file_cmd=func_convert_file_noop
  5668. ;;
  5669. * ) # otherwise, assume *nix
  5670. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5671. ;;
  5672. esac
  5673. ;;
  5674. * ) # unhandled hosts (and "normal" native builds)
  5675. lt_cv_to_host_file_cmd=func_convert_file_noop
  5676. ;;
  5677. esac
  5678. fi
  5679. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5681. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5683. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5684. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5685. $as_echo_n "(cached) " >&6
  5686. else
  5687. #assume ordinary cross tools, or native build.
  5688. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5689. case $host in
  5690. *-*-mingw* )
  5691. case $build in
  5692. *-*-mingw* ) # actually msys
  5693. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5694. ;;
  5695. esac
  5696. ;;
  5697. esac
  5698. fi
  5699. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5701. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5703. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5704. if ${lt_cv_ld_reload_flag+:} false; then :
  5705. $as_echo_n "(cached) " >&6
  5706. else
  5707. lt_cv_ld_reload_flag='-r'
  5708. fi
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5710. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5711. reload_flag=$lt_cv_ld_reload_flag
  5712. case $reload_flag in
  5713. "" | " "*) ;;
  5714. *) reload_flag=" $reload_flag" ;;
  5715. esac
  5716. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5717. case $host_os in
  5718. cygwin* | mingw* | pw32* | cegcc*)
  5719. if test yes != "$GCC"; then
  5720. reload_cmds=false
  5721. fi
  5722. ;;
  5723. darwin*)
  5724. if test yes = "$GCC"; then
  5725. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5726. else
  5727. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5728. fi
  5729. ;;
  5730. esac
  5731. if test -n "$ac_tool_prefix"; then
  5732. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5733. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5735. $as_echo_n "checking for $ac_word... " >&6; }
  5736. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5737. $as_echo_n "(cached) " >&6
  5738. else
  5739. if test -n "$OBJDUMP"; then
  5740. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5741. else
  5742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5743. for as_dir in $PATH
  5744. do
  5745. IFS=$as_save_IFS
  5746. test -z "$as_dir" && as_dir=.
  5747. for ac_exec_ext in '' $ac_executable_extensions; do
  5748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5749. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5751. break 2
  5752. fi
  5753. done
  5754. done
  5755. IFS=$as_save_IFS
  5756. fi
  5757. fi
  5758. OBJDUMP=$ac_cv_prog_OBJDUMP
  5759. if test -n "$OBJDUMP"; then
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5761. $as_echo "$OBJDUMP" >&6; }
  5762. else
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5764. $as_echo "no" >&6; }
  5765. fi
  5766. fi
  5767. if test -z "$ac_cv_prog_OBJDUMP"; then
  5768. ac_ct_OBJDUMP=$OBJDUMP
  5769. # Extract the first word of "objdump", so it can be a program name with args.
  5770. set dummy objdump; ac_word=$2
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5772. $as_echo_n "checking for $ac_word... " >&6; }
  5773. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5774. $as_echo_n "(cached) " >&6
  5775. else
  5776. if test -n "$ac_ct_OBJDUMP"; then
  5777. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5778. else
  5779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5780. for as_dir in $PATH
  5781. do
  5782. IFS=$as_save_IFS
  5783. test -z "$as_dir" && as_dir=.
  5784. for ac_exec_ext in '' $ac_executable_extensions; do
  5785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5786. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5788. break 2
  5789. fi
  5790. done
  5791. done
  5792. IFS=$as_save_IFS
  5793. fi
  5794. fi
  5795. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5796. if test -n "$ac_ct_OBJDUMP"; then
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5798. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5799. else
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5801. $as_echo "no" >&6; }
  5802. fi
  5803. if test "x$ac_ct_OBJDUMP" = x; then
  5804. OBJDUMP="false"
  5805. else
  5806. case $cross_compiling:$ac_tool_warned in
  5807. yes:)
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5809. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5810. ac_tool_warned=yes ;;
  5811. esac
  5812. OBJDUMP=$ac_ct_OBJDUMP
  5813. fi
  5814. else
  5815. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5816. fi
  5817. test -z "$OBJDUMP" && OBJDUMP=objdump
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5819. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5820. if ${lt_cv_deplibs_check_method+:} false; then :
  5821. $as_echo_n "(cached) " >&6
  5822. else
  5823. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5824. lt_cv_file_magic_test_file=
  5825. lt_cv_deplibs_check_method='unknown'
  5826. # Need to set the preceding variable on all platforms that support
  5827. # interlibrary dependencies.
  5828. # 'none' -- dependencies not supported.
  5829. # 'unknown' -- same as none, but documents that we really don't know.
  5830. # 'pass_all' -- all dependencies passed with no checks.
  5831. # 'test_compile' -- check by making test program.
  5832. # 'file_magic [[regex]]' -- check by looking for files in library path
  5833. # that responds to the $file_magic_cmd with a given extended regex.
  5834. # If you have 'file' or equivalent on your system and you're not sure
  5835. # whether 'pass_all' will *always* work, you probably want this one.
  5836. case $host_os in
  5837. aix[4-9]*)
  5838. lt_cv_deplibs_check_method=pass_all
  5839. ;;
  5840. beos*)
  5841. lt_cv_deplibs_check_method=pass_all
  5842. ;;
  5843. bsdi[45]*)
  5844. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5845. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5846. lt_cv_file_magic_test_file=/shlib/libc.so
  5847. ;;
  5848. cygwin*)
  5849. # func_win32_libid is a shell function defined in ltmain.sh
  5850. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5851. lt_cv_file_magic_cmd='func_win32_libid'
  5852. ;;
  5853. mingw* | pw32*)
  5854. # Base MSYS/MinGW do not provide the 'file' command needed by
  5855. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5856. # unless we find 'file', for example because we are cross-compiling.
  5857. if ( file / ) >/dev/null 2>&1; then
  5858. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5859. lt_cv_file_magic_cmd='func_win32_libid'
  5860. else
  5861. # Keep this pattern in sync with the one in func_win32_libid.
  5862. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5863. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5864. fi
  5865. ;;
  5866. cegcc*)
  5867. # use the weaker test based on 'objdump'. See mingw*.
  5868. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5869. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5870. ;;
  5871. darwin* | rhapsody*)
  5872. lt_cv_deplibs_check_method=pass_all
  5873. ;;
  5874. freebsd* | dragonfly*)
  5875. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5876. case $host_cpu in
  5877. i*86 )
  5878. # Not sure whether the presence of OpenBSD here was a mistake.
  5879. # Let's accept both of them until this is cleared up.
  5880. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5881. lt_cv_file_magic_cmd=/usr/bin/file
  5882. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5883. ;;
  5884. esac
  5885. else
  5886. lt_cv_deplibs_check_method=pass_all
  5887. fi
  5888. ;;
  5889. haiku*)
  5890. lt_cv_deplibs_check_method=pass_all
  5891. ;;
  5892. hpux10.20* | hpux11*)
  5893. lt_cv_file_magic_cmd=/usr/bin/file
  5894. case $host_cpu in
  5895. ia64*)
  5896. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5897. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5898. ;;
  5899. hppa*64*)
  5900. 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]'
  5901. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5902. ;;
  5903. *)
  5904. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5905. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5906. ;;
  5907. esac
  5908. ;;
  5909. interix[3-9]*)
  5910. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5911. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5912. ;;
  5913. irix5* | irix6* | nonstopux*)
  5914. case $LD in
  5915. *-32|*"-32 ") libmagic=32-bit;;
  5916. *-n32|*"-n32 ") libmagic=N32;;
  5917. *-64|*"-64 ") libmagic=64-bit;;
  5918. *) libmagic=never-match;;
  5919. esac
  5920. lt_cv_deplibs_check_method=pass_all
  5921. ;;
  5922. # This must be glibc/ELF.
  5923. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5924. lt_cv_deplibs_check_method=pass_all
  5925. ;;
  5926. netbsd* | netbsdelf*-gnu)
  5927. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5928. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5929. else
  5930. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5931. fi
  5932. ;;
  5933. newos6*)
  5934. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5935. lt_cv_file_magic_cmd=/usr/bin/file
  5936. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5937. ;;
  5938. *nto* | *qnx*)
  5939. lt_cv_deplibs_check_method=pass_all
  5940. ;;
  5941. openbsd* | bitrig*)
  5942. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5943. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5944. else
  5945. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5946. fi
  5947. ;;
  5948. osf3* | osf4* | osf5*)
  5949. lt_cv_deplibs_check_method=pass_all
  5950. ;;
  5951. rdos*)
  5952. lt_cv_deplibs_check_method=pass_all
  5953. ;;
  5954. solaris*)
  5955. lt_cv_deplibs_check_method=pass_all
  5956. ;;
  5957. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5958. lt_cv_deplibs_check_method=pass_all
  5959. ;;
  5960. sysv4 | sysv4.3*)
  5961. case $host_vendor in
  5962. motorola)
  5963. 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]'
  5964. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5965. ;;
  5966. ncr)
  5967. lt_cv_deplibs_check_method=pass_all
  5968. ;;
  5969. sequent)
  5970. lt_cv_file_magic_cmd='/bin/file'
  5971. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5972. ;;
  5973. sni)
  5974. lt_cv_file_magic_cmd='/bin/file'
  5975. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5976. lt_cv_file_magic_test_file=/lib/libc.so
  5977. ;;
  5978. siemens)
  5979. lt_cv_deplibs_check_method=pass_all
  5980. ;;
  5981. pc)
  5982. lt_cv_deplibs_check_method=pass_all
  5983. ;;
  5984. esac
  5985. ;;
  5986. tpf*)
  5987. lt_cv_deplibs_check_method=pass_all
  5988. ;;
  5989. os2*)
  5990. lt_cv_deplibs_check_method=pass_all
  5991. ;;
  5992. esac
  5993. fi
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5995. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5996. file_magic_glob=
  5997. want_nocaseglob=no
  5998. if test "$build" = "$host"; then
  5999. case $host_os in
  6000. mingw* | pw32*)
  6001. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6002. want_nocaseglob=yes
  6003. else
  6004. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6005. fi
  6006. ;;
  6007. esac
  6008. fi
  6009. file_magic_cmd=$lt_cv_file_magic_cmd
  6010. deplibs_check_method=$lt_cv_deplibs_check_method
  6011. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6012. if test -n "$ac_tool_prefix"; then
  6013. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6014. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6016. $as_echo_n "checking for $ac_word... " >&6; }
  6017. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6018. $as_echo_n "(cached) " >&6
  6019. else
  6020. if test -n "$DLLTOOL"; then
  6021. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6022. else
  6023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6024. for as_dir in $PATH
  6025. do
  6026. IFS=$as_save_IFS
  6027. test -z "$as_dir" && as_dir=.
  6028. for ac_exec_ext in '' $ac_executable_extensions; do
  6029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6030. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6032. break 2
  6033. fi
  6034. done
  6035. done
  6036. IFS=$as_save_IFS
  6037. fi
  6038. fi
  6039. DLLTOOL=$ac_cv_prog_DLLTOOL
  6040. if test -n "$DLLTOOL"; then
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6042. $as_echo "$DLLTOOL" >&6; }
  6043. else
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6045. $as_echo "no" >&6; }
  6046. fi
  6047. fi
  6048. if test -z "$ac_cv_prog_DLLTOOL"; then
  6049. ac_ct_DLLTOOL=$DLLTOOL
  6050. # Extract the first word of "dlltool", so it can be a program name with args.
  6051. set dummy dlltool; ac_word=$2
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6053. $as_echo_n "checking for $ac_word... " >&6; }
  6054. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6055. $as_echo_n "(cached) " >&6
  6056. else
  6057. if test -n "$ac_ct_DLLTOOL"; then
  6058. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6059. else
  6060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6061. for as_dir in $PATH
  6062. do
  6063. IFS=$as_save_IFS
  6064. test -z "$as_dir" && as_dir=.
  6065. for ac_exec_ext in '' $ac_executable_extensions; do
  6066. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6067. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6068. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6069. break 2
  6070. fi
  6071. done
  6072. done
  6073. IFS=$as_save_IFS
  6074. fi
  6075. fi
  6076. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6077. if test -n "$ac_ct_DLLTOOL"; then
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6079. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6080. else
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6082. $as_echo "no" >&6; }
  6083. fi
  6084. if test "x$ac_ct_DLLTOOL" = x; then
  6085. DLLTOOL="false"
  6086. else
  6087. case $cross_compiling:$ac_tool_warned in
  6088. yes:)
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6090. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6091. ac_tool_warned=yes ;;
  6092. esac
  6093. DLLTOOL=$ac_ct_DLLTOOL
  6094. fi
  6095. else
  6096. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6097. fi
  6098. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6100. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6101. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6102. $as_echo_n "(cached) " >&6
  6103. else
  6104. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6105. case $host_os in
  6106. cygwin* | mingw* | pw32* | cegcc*)
  6107. # two different shell functions defined in ltmain.sh;
  6108. # decide which one to use based on capabilities of $DLLTOOL
  6109. case `$DLLTOOL --help 2>&1` in
  6110. *--identify-strict*)
  6111. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6112. ;;
  6113. *)
  6114. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6115. ;;
  6116. esac
  6117. ;;
  6118. *)
  6119. # fallback: assume linklib IS sharedlib
  6120. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6121. ;;
  6122. esac
  6123. fi
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6125. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6126. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6127. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6128. if test -n "$ac_tool_prefix"; then
  6129. for ac_prog in ar
  6130. do
  6131. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6132. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6134. $as_echo_n "checking for $ac_word... " >&6; }
  6135. if ${ac_cv_prog_AR+:} false; then :
  6136. $as_echo_n "(cached) " >&6
  6137. else
  6138. if test -n "$AR"; then
  6139. ac_cv_prog_AR="$AR" # Let the user override the test.
  6140. else
  6141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6142. for as_dir in $PATH
  6143. do
  6144. IFS=$as_save_IFS
  6145. test -z "$as_dir" && as_dir=.
  6146. for ac_exec_ext in '' $ac_executable_extensions; do
  6147. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6148. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6150. break 2
  6151. fi
  6152. done
  6153. done
  6154. IFS=$as_save_IFS
  6155. fi
  6156. fi
  6157. AR=$ac_cv_prog_AR
  6158. if test -n "$AR"; then
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6160. $as_echo "$AR" >&6; }
  6161. else
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6163. $as_echo "no" >&6; }
  6164. fi
  6165. test -n "$AR" && break
  6166. done
  6167. fi
  6168. if test -z "$AR"; then
  6169. ac_ct_AR=$AR
  6170. for ac_prog in ar
  6171. do
  6172. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6173. set dummy $ac_prog; ac_word=$2
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6175. $as_echo_n "checking for $ac_word... " >&6; }
  6176. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6177. $as_echo_n "(cached) " >&6
  6178. else
  6179. if test -n "$ac_ct_AR"; then
  6180. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6181. else
  6182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6183. for as_dir in $PATH
  6184. do
  6185. IFS=$as_save_IFS
  6186. test -z "$as_dir" && as_dir=.
  6187. for ac_exec_ext in '' $ac_executable_extensions; do
  6188. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6189. ac_cv_prog_ac_ct_AR="$ac_prog"
  6190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6191. break 2
  6192. fi
  6193. done
  6194. done
  6195. IFS=$as_save_IFS
  6196. fi
  6197. fi
  6198. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6199. if test -n "$ac_ct_AR"; then
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6201. $as_echo "$ac_ct_AR" >&6; }
  6202. else
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6204. $as_echo "no" >&6; }
  6205. fi
  6206. test -n "$ac_ct_AR" && break
  6207. done
  6208. if test "x$ac_ct_AR" = x; then
  6209. AR="false"
  6210. else
  6211. case $cross_compiling:$ac_tool_warned in
  6212. yes:)
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6214. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6215. ac_tool_warned=yes ;;
  6216. esac
  6217. AR=$ac_ct_AR
  6218. fi
  6219. fi
  6220. : ${AR=ar}
  6221. : ${AR_FLAGS=cru}
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6223. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6224. if ${lt_cv_ar_at_file+:} false; then :
  6225. $as_echo_n "(cached) " >&6
  6226. else
  6227. lt_cv_ar_at_file=no
  6228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6229. /* end confdefs.h. */
  6230. int
  6231. main ()
  6232. {
  6233. ;
  6234. return 0;
  6235. }
  6236. _ACEOF
  6237. if ac_fn_c_try_compile "$LINENO"; then :
  6238. echo conftest.$ac_objext > conftest.lst
  6239. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6240. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6241. (eval $lt_ar_try) 2>&5
  6242. ac_status=$?
  6243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6244. test $ac_status = 0; }
  6245. if test 0 -eq "$ac_status"; then
  6246. # Ensure the archiver fails upon bogus file names.
  6247. rm -f conftest.$ac_objext libconftest.a
  6248. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6249. (eval $lt_ar_try) 2>&5
  6250. ac_status=$?
  6251. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6252. test $ac_status = 0; }
  6253. if test 0 -ne "$ac_status"; then
  6254. lt_cv_ar_at_file=@
  6255. fi
  6256. fi
  6257. rm -f conftest.* libconftest.a
  6258. fi
  6259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6260. fi
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6262. $as_echo "$lt_cv_ar_at_file" >&6; }
  6263. if test no = "$lt_cv_ar_at_file"; then
  6264. archiver_list_spec=
  6265. else
  6266. archiver_list_spec=$lt_cv_ar_at_file
  6267. fi
  6268. if test -n "$ac_tool_prefix"; then
  6269. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6270. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6272. $as_echo_n "checking for $ac_word... " >&6; }
  6273. if ${ac_cv_prog_STRIP+:} false; then :
  6274. $as_echo_n "(cached) " >&6
  6275. else
  6276. if test -n "$STRIP"; then
  6277. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6278. else
  6279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6280. for as_dir in $PATH
  6281. do
  6282. IFS=$as_save_IFS
  6283. test -z "$as_dir" && as_dir=.
  6284. for ac_exec_ext in '' $ac_executable_extensions; do
  6285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6286. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6288. break 2
  6289. fi
  6290. done
  6291. done
  6292. IFS=$as_save_IFS
  6293. fi
  6294. fi
  6295. STRIP=$ac_cv_prog_STRIP
  6296. if test -n "$STRIP"; then
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6298. $as_echo "$STRIP" >&6; }
  6299. else
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6301. $as_echo "no" >&6; }
  6302. fi
  6303. fi
  6304. if test -z "$ac_cv_prog_STRIP"; then
  6305. ac_ct_STRIP=$STRIP
  6306. # Extract the first word of "strip", so it can be a program name with args.
  6307. set dummy strip; ac_word=$2
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6309. $as_echo_n "checking for $ac_word... " >&6; }
  6310. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6311. $as_echo_n "(cached) " >&6
  6312. else
  6313. if test -n "$ac_ct_STRIP"; then
  6314. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6315. else
  6316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6317. for as_dir in $PATH
  6318. do
  6319. IFS=$as_save_IFS
  6320. test -z "$as_dir" && as_dir=.
  6321. for ac_exec_ext in '' $ac_executable_extensions; do
  6322. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6323. ac_cv_prog_ac_ct_STRIP="strip"
  6324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6325. break 2
  6326. fi
  6327. done
  6328. done
  6329. IFS=$as_save_IFS
  6330. fi
  6331. fi
  6332. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6333. if test -n "$ac_ct_STRIP"; then
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6335. $as_echo "$ac_ct_STRIP" >&6; }
  6336. else
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6338. $as_echo "no" >&6; }
  6339. fi
  6340. if test "x$ac_ct_STRIP" = x; then
  6341. STRIP=":"
  6342. else
  6343. case $cross_compiling:$ac_tool_warned in
  6344. yes:)
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6347. ac_tool_warned=yes ;;
  6348. esac
  6349. STRIP=$ac_ct_STRIP
  6350. fi
  6351. else
  6352. STRIP="$ac_cv_prog_STRIP"
  6353. fi
  6354. test -z "$STRIP" && STRIP=:
  6355. if test -n "$ac_tool_prefix"; then
  6356. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6357. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6359. $as_echo_n "checking for $ac_word... " >&6; }
  6360. if ${ac_cv_prog_RANLIB+:} false; then :
  6361. $as_echo_n "(cached) " >&6
  6362. else
  6363. if test -n "$RANLIB"; then
  6364. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6365. else
  6366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6367. for as_dir in $PATH
  6368. do
  6369. IFS=$as_save_IFS
  6370. test -z "$as_dir" && as_dir=.
  6371. for ac_exec_ext in '' $ac_executable_extensions; do
  6372. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6373. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6375. break 2
  6376. fi
  6377. done
  6378. done
  6379. IFS=$as_save_IFS
  6380. fi
  6381. fi
  6382. RANLIB=$ac_cv_prog_RANLIB
  6383. if test -n "$RANLIB"; then
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6385. $as_echo "$RANLIB" >&6; }
  6386. else
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6388. $as_echo "no" >&6; }
  6389. fi
  6390. fi
  6391. if test -z "$ac_cv_prog_RANLIB"; then
  6392. ac_ct_RANLIB=$RANLIB
  6393. # Extract the first word of "ranlib", so it can be a program name with args.
  6394. set dummy ranlib; ac_word=$2
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6396. $as_echo_n "checking for $ac_word... " >&6; }
  6397. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6398. $as_echo_n "(cached) " >&6
  6399. else
  6400. if test -n "$ac_ct_RANLIB"; then
  6401. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6402. else
  6403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6404. for as_dir in $PATH
  6405. do
  6406. IFS=$as_save_IFS
  6407. test -z "$as_dir" && as_dir=.
  6408. for ac_exec_ext in '' $ac_executable_extensions; do
  6409. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6410. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6412. break 2
  6413. fi
  6414. done
  6415. done
  6416. IFS=$as_save_IFS
  6417. fi
  6418. fi
  6419. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6420. if test -n "$ac_ct_RANLIB"; then
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6422. $as_echo "$ac_ct_RANLIB" >&6; }
  6423. else
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6425. $as_echo "no" >&6; }
  6426. fi
  6427. if test "x$ac_ct_RANLIB" = x; then
  6428. RANLIB=":"
  6429. else
  6430. case $cross_compiling:$ac_tool_warned in
  6431. yes:)
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6433. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6434. ac_tool_warned=yes ;;
  6435. esac
  6436. RANLIB=$ac_ct_RANLIB
  6437. fi
  6438. else
  6439. RANLIB="$ac_cv_prog_RANLIB"
  6440. fi
  6441. test -z "$RANLIB" && RANLIB=:
  6442. # Determine commands to create old-style static archives.
  6443. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6444. old_postinstall_cmds='chmod 644 $oldlib'
  6445. old_postuninstall_cmds=
  6446. if test -n "$RANLIB"; then
  6447. case $host_os in
  6448. bitrig* | openbsd*)
  6449. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6450. ;;
  6451. *)
  6452. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6453. ;;
  6454. esac
  6455. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6456. fi
  6457. case $host_os in
  6458. darwin*)
  6459. lock_old_archive_extraction=yes ;;
  6460. *)
  6461. lock_old_archive_extraction=no ;;
  6462. esac
  6463. # If no C compiler was specified, use CC.
  6464. LTCC=${LTCC-"$CC"}
  6465. # If no C compiler flags were specified, use CFLAGS.
  6466. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6467. # Allow CC to be a program name with arguments.
  6468. compiler=$CC
  6469. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6471. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6472. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6473. $as_echo_n "(cached) " >&6
  6474. else
  6475. # These are sane defaults that work on at least a few old systems.
  6476. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6477. # Character class describing NM global symbol codes.
  6478. symcode='[BCDEGRST]'
  6479. # Regexp to match symbols that can be accessed directly from C.
  6480. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6481. # Define system-specific variables.
  6482. case $host_os in
  6483. aix*)
  6484. symcode='[BCDT]'
  6485. ;;
  6486. cygwin* | mingw* | pw32* | cegcc*)
  6487. symcode='[ABCDGISTW]'
  6488. ;;
  6489. hpux*)
  6490. if test ia64 = "$host_cpu"; then
  6491. symcode='[ABCDEGRST]'
  6492. fi
  6493. ;;
  6494. irix* | nonstopux*)
  6495. symcode='[BCDEGRST]'
  6496. ;;
  6497. osf*)
  6498. symcode='[BCDEGQRST]'
  6499. ;;
  6500. solaris*)
  6501. symcode='[BDRT]'
  6502. ;;
  6503. sco3.2v5*)
  6504. symcode='[DT]'
  6505. ;;
  6506. sysv4.2uw2*)
  6507. symcode='[DT]'
  6508. ;;
  6509. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6510. symcode='[ABDT]'
  6511. ;;
  6512. sysv4)
  6513. symcode='[DFNSTU]'
  6514. ;;
  6515. esac
  6516. # If we're using GNU nm, then use its standard symbol codes.
  6517. case `$NM -V 2>&1` in
  6518. *GNU* | *'with BFD'*)
  6519. symcode='[ABCDGIRSTW]' ;;
  6520. esac
  6521. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6522. # Gets list of data symbols to import.
  6523. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6524. # Adjust the below global symbol transforms to fixup imported variables.
  6525. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6526. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6527. lt_c_name_lib_hook="\
  6528. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6529. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6530. else
  6531. # Disable hooks by default.
  6532. lt_cv_sys_global_symbol_to_import=
  6533. lt_cdecl_hook=
  6534. lt_c_name_hook=
  6535. lt_c_name_lib_hook=
  6536. fi
  6537. # Transform an extracted symbol line into a proper C declaration.
  6538. # Some systems (esp. on ia64) link data and code symbols differently,
  6539. # so use this general approach.
  6540. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6541. $lt_cdecl_hook\
  6542. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6543. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6544. # Transform an extracted symbol line into symbol name and symbol address
  6545. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6546. $lt_c_name_hook\
  6547. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6548. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6549. # Transform an extracted symbol line into symbol name with lib prefix and
  6550. # symbol address.
  6551. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6552. $lt_c_name_lib_hook\
  6553. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6554. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6555. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6556. # Handle CRLF in mingw tool chain
  6557. opt_cr=
  6558. case $build_os in
  6559. mingw*)
  6560. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6561. ;;
  6562. esac
  6563. # Try without a prefix underscore, then with it.
  6564. for ac_symprfx in "" "_"; do
  6565. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6566. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6567. # Write the raw and C identifiers.
  6568. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6569. # Fake it for dumpbin and say T for any non-static function,
  6570. # D for any global variable and I for any imported variable.
  6571. # Also find C++ and __fastcall symbols from MSVC++,
  6572. # which start with @ or ?.
  6573. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6574. " {last_section=section; section=\$ 3};"\
  6575. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6576. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6577. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6578. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6579. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6580. " \$ 0!~/External *\|/{next};"\
  6581. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6582. " {if(hide[section]) next};"\
  6583. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6584. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6585. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6586. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6587. " ' prfx=^$ac_symprfx"
  6588. else
  6589. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6590. fi
  6591. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6592. # Check to see that the pipe works correctly.
  6593. pipe_works=no
  6594. rm -f conftest*
  6595. cat > conftest.$ac_ext <<_LT_EOF
  6596. #ifdef __cplusplus
  6597. extern "C" {
  6598. #endif
  6599. char nm_test_var;
  6600. void nm_test_func(void);
  6601. void nm_test_func(void){}
  6602. #ifdef __cplusplus
  6603. }
  6604. #endif
  6605. int main(){nm_test_var='a';nm_test_func();return(0);}
  6606. _LT_EOF
  6607. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6608. (eval $ac_compile) 2>&5
  6609. ac_status=$?
  6610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6611. test $ac_status = 0; }; then
  6612. # Now try to grab the symbols.
  6613. nlist=conftest.nm
  6614. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6615. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6616. ac_status=$?
  6617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6618. test $ac_status = 0; } && test -s "$nlist"; then
  6619. # Try sorting and uniquifying the output.
  6620. if sort "$nlist" | uniq > "$nlist"T; then
  6621. mv -f "$nlist"T "$nlist"
  6622. else
  6623. rm -f "$nlist"T
  6624. fi
  6625. # Make sure that we snagged all the symbols we need.
  6626. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6627. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6628. cat <<_LT_EOF > conftest.$ac_ext
  6629. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6630. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6631. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6632. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6633. # define LT_DLSYM_CONST
  6634. #elif defined __osf__
  6635. /* This system does not cope well with relocations in const data. */
  6636. # define LT_DLSYM_CONST
  6637. #else
  6638. # define LT_DLSYM_CONST const
  6639. #endif
  6640. #ifdef __cplusplus
  6641. extern "C" {
  6642. #endif
  6643. _LT_EOF
  6644. # Now generate the symbol file.
  6645. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6646. cat <<_LT_EOF >> conftest.$ac_ext
  6647. /* The mapping between symbol names and symbols. */
  6648. LT_DLSYM_CONST struct {
  6649. const char *name;
  6650. void *address;
  6651. }
  6652. lt__PROGRAM__LTX_preloaded_symbols[] =
  6653. {
  6654. { "@PROGRAM@", (void *) 0 },
  6655. _LT_EOF
  6656. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6657. cat <<\_LT_EOF >> conftest.$ac_ext
  6658. {0, (void *) 0}
  6659. };
  6660. /* This works around a problem in FreeBSD linker */
  6661. #ifdef FREEBSD_WORKAROUND
  6662. static const void *lt_preloaded_setup() {
  6663. return lt__PROGRAM__LTX_preloaded_symbols;
  6664. }
  6665. #endif
  6666. #ifdef __cplusplus
  6667. }
  6668. #endif
  6669. _LT_EOF
  6670. # Now try linking the two files.
  6671. mv conftest.$ac_objext conftstm.$ac_objext
  6672. lt_globsym_save_LIBS=$LIBS
  6673. lt_globsym_save_CFLAGS=$CFLAGS
  6674. LIBS=conftstm.$ac_objext
  6675. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6676. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6677. (eval $ac_link) 2>&5
  6678. ac_status=$?
  6679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6680. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6681. pipe_works=yes
  6682. fi
  6683. LIBS=$lt_globsym_save_LIBS
  6684. CFLAGS=$lt_globsym_save_CFLAGS
  6685. else
  6686. echo "cannot find nm_test_func in $nlist" >&5
  6687. fi
  6688. else
  6689. echo "cannot find nm_test_var in $nlist" >&5
  6690. fi
  6691. else
  6692. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6693. fi
  6694. else
  6695. echo "$progname: failed program was:" >&5
  6696. cat conftest.$ac_ext >&5
  6697. fi
  6698. rm -rf conftest* conftst*
  6699. # Do not use the global_symbol_pipe unless it works.
  6700. if test yes = "$pipe_works"; then
  6701. break
  6702. else
  6703. lt_cv_sys_global_symbol_pipe=
  6704. fi
  6705. done
  6706. fi
  6707. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6708. lt_cv_sys_global_symbol_to_cdecl=
  6709. fi
  6710. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6712. $as_echo "failed" >&6; }
  6713. else
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6715. $as_echo "ok" >&6; }
  6716. fi
  6717. # Response file support.
  6718. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6719. nm_file_list_spec='@'
  6720. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6721. nm_file_list_spec='@'
  6722. fi
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6724. $as_echo_n "checking for sysroot... " >&6; }
  6725. # Check whether --with-sysroot was given.
  6726. if test "${with_sysroot+set}" = set; then :
  6727. withval=$with_sysroot;
  6728. else
  6729. with_sysroot=no
  6730. fi
  6731. lt_sysroot=
  6732. case $with_sysroot in #(
  6733. yes)
  6734. if test yes = "$GCC"; then
  6735. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6736. fi
  6737. ;; #(
  6738. /*)
  6739. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6740. ;; #(
  6741. no|'')
  6742. ;; #(
  6743. *)
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6745. $as_echo "$with_sysroot" >&6; }
  6746. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6747. ;;
  6748. esac
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6750. $as_echo "${lt_sysroot:-no}" >&6; }
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6752. $as_echo_n "checking for a working dd... " >&6; }
  6753. if ${ac_cv_path_lt_DD+:} false; then :
  6754. $as_echo_n "(cached) " >&6
  6755. else
  6756. printf 0123456789abcdef0123456789abcdef >conftest.i
  6757. cat conftest.i conftest.i >conftest2.i
  6758. : ${lt_DD:=$DD}
  6759. if test -z "$lt_DD"; then
  6760. ac_path_lt_DD_found=false
  6761. # Loop through the user's path and test for each of PROGNAME-LIST
  6762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6763. for as_dir in $PATH
  6764. do
  6765. IFS=$as_save_IFS
  6766. test -z "$as_dir" && as_dir=.
  6767. for ac_prog in dd; do
  6768. for ac_exec_ext in '' $ac_executable_extensions; do
  6769. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6770. as_fn_executable_p "$ac_path_lt_DD" || continue
  6771. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6772. cmp -s conftest.i conftest.out \
  6773. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6774. fi
  6775. $ac_path_lt_DD_found && break 3
  6776. done
  6777. done
  6778. done
  6779. IFS=$as_save_IFS
  6780. if test -z "$ac_cv_path_lt_DD"; then
  6781. :
  6782. fi
  6783. else
  6784. ac_cv_path_lt_DD=$lt_DD
  6785. fi
  6786. rm -f conftest.i conftest2.i conftest.out
  6787. fi
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6789. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6791. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6792. if ${lt_cv_truncate_bin+:} false; then :
  6793. $as_echo_n "(cached) " >&6
  6794. else
  6795. printf 0123456789abcdef0123456789abcdef >conftest.i
  6796. cat conftest.i conftest.i >conftest2.i
  6797. lt_cv_truncate_bin=
  6798. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6799. cmp -s conftest.i conftest.out \
  6800. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6801. fi
  6802. rm -f conftest.i conftest2.i conftest.out
  6803. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6804. fi
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6806. $as_echo "$lt_cv_truncate_bin" >&6; }
  6807. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6808. func_cc_basename ()
  6809. {
  6810. for cc_temp in $*""; do
  6811. case $cc_temp in
  6812. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6813. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6814. \-*) ;;
  6815. *) break;;
  6816. esac
  6817. done
  6818. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6819. }
  6820. # Check whether --enable-libtool-lock was given.
  6821. if test "${enable_libtool_lock+set}" = set; then :
  6822. enableval=$enable_libtool_lock;
  6823. fi
  6824. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6825. # Some flags need to be propagated to the compiler or linker for good
  6826. # libtool support.
  6827. case $host in
  6828. ia64-*-hpux*)
  6829. # Find out what ABI is being produced by ac_compile, and set mode
  6830. # options accordingly.
  6831. echo 'int i;' > conftest.$ac_ext
  6832. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6833. (eval $ac_compile) 2>&5
  6834. ac_status=$?
  6835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6836. test $ac_status = 0; }; then
  6837. case `/usr/bin/file conftest.$ac_objext` in
  6838. *ELF-32*)
  6839. HPUX_IA64_MODE=32
  6840. ;;
  6841. *ELF-64*)
  6842. HPUX_IA64_MODE=64
  6843. ;;
  6844. esac
  6845. fi
  6846. rm -rf conftest*
  6847. ;;
  6848. *-*-irix6*)
  6849. # Find out what ABI is being produced by ac_compile, and set linker
  6850. # options accordingly.
  6851. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6852. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6853. (eval $ac_compile) 2>&5
  6854. ac_status=$?
  6855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6856. test $ac_status = 0; }; then
  6857. if test yes = "$lt_cv_prog_gnu_ld"; then
  6858. case `/usr/bin/file conftest.$ac_objext` in
  6859. *32-bit*)
  6860. LD="${LD-ld} -melf32bsmip"
  6861. ;;
  6862. *N32*)
  6863. LD="${LD-ld} -melf32bmipn32"
  6864. ;;
  6865. *64-bit*)
  6866. LD="${LD-ld} -melf64bmip"
  6867. ;;
  6868. esac
  6869. else
  6870. case `/usr/bin/file conftest.$ac_objext` in
  6871. *32-bit*)
  6872. LD="${LD-ld} -32"
  6873. ;;
  6874. *N32*)
  6875. LD="${LD-ld} -n32"
  6876. ;;
  6877. *64-bit*)
  6878. LD="${LD-ld} -64"
  6879. ;;
  6880. esac
  6881. fi
  6882. fi
  6883. rm -rf conftest*
  6884. ;;
  6885. mips64*-*linux*)
  6886. # Find out what ABI is being produced by ac_compile, and set linker
  6887. # options accordingly.
  6888. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6889. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6890. (eval $ac_compile) 2>&5
  6891. ac_status=$?
  6892. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6893. test $ac_status = 0; }; then
  6894. emul=elf
  6895. case `/usr/bin/file conftest.$ac_objext` in
  6896. *32-bit*)
  6897. emul="${emul}32"
  6898. ;;
  6899. *64-bit*)
  6900. emul="${emul}64"
  6901. ;;
  6902. esac
  6903. case `/usr/bin/file conftest.$ac_objext` in
  6904. *MSB*)
  6905. emul="${emul}btsmip"
  6906. ;;
  6907. *LSB*)
  6908. emul="${emul}ltsmip"
  6909. ;;
  6910. esac
  6911. case `/usr/bin/file conftest.$ac_objext` in
  6912. *N32*)
  6913. emul="${emul}n32"
  6914. ;;
  6915. esac
  6916. LD="${LD-ld} -m $emul"
  6917. fi
  6918. rm -rf conftest*
  6919. ;;
  6920. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6921. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6922. # Find out what ABI is being produced by ac_compile, and set linker
  6923. # options accordingly. Note that the listed cases only cover the
  6924. # situations where additional linker options are needed (such as when
  6925. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6926. # vice versa); the common cases where no linker options are needed do
  6927. # not appear in the list.
  6928. echo 'int i;' > conftest.$ac_ext
  6929. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6930. (eval $ac_compile) 2>&5
  6931. ac_status=$?
  6932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6933. test $ac_status = 0; }; then
  6934. case `/usr/bin/file conftest.o` in
  6935. *32-bit*)
  6936. case $host in
  6937. x86_64-*kfreebsd*-gnu)
  6938. LD="${LD-ld} -m elf_i386_fbsd"
  6939. ;;
  6940. x86_64-*linux*)
  6941. case `/usr/bin/file conftest.o` in
  6942. *x86-64*)
  6943. LD="${LD-ld} -m elf32_x86_64"
  6944. ;;
  6945. *)
  6946. LD="${LD-ld} -m elf_i386"
  6947. ;;
  6948. esac
  6949. ;;
  6950. powerpc64le-*linux*)
  6951. LD="${LD-ld} -m elf32lppclinux"
  6952. ;;
  6953. powerpc64-*linux*)
  6954. LD="${LD-ld} -m elf32ppclinux"
  6955. ;;
  6956. s390x-*linux*)
  6957. LD="${LD-ld} -m elf_s390"
  6958. ;;
  6959. sparc64-*linux*)
  6960. LD="${LD-ld} -m elf32_sparc"
  6961. ;;
  6962. esac
  6963. ;;
  6964. *64-bit*)
  6965. case $host in
  6966. x86_64-*kfreebsd*-gnu)
  6967. LD="${LD-ld} -m elf_x86_64_fbsd"
  6968. ;;
  6969. x86_64-*linux*)
  6970. LD="${LD-ld} -m elf_x86_64"
  6971. ;;
  6972. powerpcle-*linux*)
  6973. LD="${LD-ld} -m elf64lppc"
  6974. ;;
  6975. powerpc-*linux*)
  6976. LD="${LD-ld} -m elf64ppc"
  6977. ;;
  6978. s390*-*linux*|s390*-*tpf*)
  6979. LD="${LD-ld} -m elf64_s390"
  6980. ;;
  6981. sparc*-*linux*)
  6982. LD="${LD-ld} -m elf64_sparc"
  6983. ;;
  6984. esac
  6985. ;;
  6986. esac
  6987. fi
  6988. rm -rf conftest*
  6989. ;;
  6990. *-*-sco3.2v5*)
  6991. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6992. SAVE_CFLAGS=$CFLAGS
  6993. CFLAGS="$CFLAGS -belf"
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6995. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6996. if ${lt_cv_cc_needs_belf+:} false; then :
  6997. $as_echo_n "(cached) " >&6
  6998. else
  6999. ac_ext=c
  7000. ac_cpp='$CPP $CPPFLAGS'
  7001. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7002. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7003. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7005. /* end confdefs.h. */
  7006. int
  7007. main ()
  7008. {
  7009. ;
  7010. return 0;
  7011. }
  7012. _ACEOF
  7013. if ac_fn_c_try_link "$LINENO"; then :
  7014. lt_cv_cc_needs_belf=yes
  7015. else
  7016. lt_cv_cc_needs_belf=no
  7017. fi
  7018. rm -f core conftest.err conftest.$ac_objext \
  7019. conftest$ac_exeext conftest.$ac_ext
  7020. ac_ext=c
  7021. ac_cpp='$CPP $CPPFLAGS'
  7022. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7023. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7024. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7025. fi
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7027. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7028. if test yes != "$lt_cv_cc_needs_belf"; then
  7029. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7030. CFLAGS=$SAVE_CFLAGS
  7031. fi
  7032. ;;
  7033. *-*solaris*)
  7034. # Find out what ABI is being produced by ac_compile, and set linker
  7035. # options accordingly.
  7036. echo 'int i;' > conftest.$ac_ext
  7037. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7038. (eval $ac_compile) 2>&5
  7039. ac_status=$?
  7040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7041. test $ac_status = 0; }; then
  7042. case `/usr/bin/file conftest.o` in
  7043. *64-bit*)
  7044. case $lt_cv_prog_gnu_ld in
  7045. yes*)
  7046. case $host in
  7047. i?86-*-solaris*|x86_64-*-solaris*)
  7048. LD="${LD-ld} -m elf_x86_64"
  7049. ;;
  7050. sparc*-*-solaris*)
  7051. LD="${LD-ld} -m elf64_sparc"
  7052. ;;
  7053. esac
  7054. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7055. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7056. LD=${LD-ld}_sol2
  7057. fi
  7058. ;;
  7059. *)
  7060. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7061. LD="${LD-ld} -64"
  7062. fi
  7063. ;;
  7064. esac
  7065. ;;
  7066. esac
  7067. fi
  7068. rm -rf conftest*
  7069. ;;
  7070. esac
  7071. need_locks=$enable_libtool_lock
  7072. if test -n "$ac_tool_prefix"; then
  7073. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7074. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7076. $as_echo_n "checking for $ac_word... " >&6; }
  7077. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7078. $as_echo_n "(cached) " >&6
  7079. else
  7080. if test -n "$MANIFEST_TOOL"; then
  7081. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7082. else
  7083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7084. for as_dir in $PATH
  7085. do
  7086. IFS=$as_save_IFS
  7087. test -z "$as_dir" && as_dir=.
  7088. for ac_exec_ext in '' $ac_executable_extensions; do
  7089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7090. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7092. break 2
  7093. fi
  7094. done
  7095. done
  7096. IFS=$as_save_IFS
  7097. fi
  7098. fi
  7099. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7100. if test -n "$MANIFEST_TOOL"; then
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7102. $as_echo "$MANIFEST_TOOL" >&6; }
  7103. else
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7105. $as_echo "no" >&6; }
  7106. fi
  7107. fi
  7108. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7109. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7110. # Extract the first word of "mt", so it can be a program name with args.
  7111. set dummy mt; ac_word=$2
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7113. $as_echo_n "checking for $ac_word... " >&6; }
  7114. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7115. $as_echo_n "(cached) " >&6
  7116. else
  7117. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7118. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7119. else
  7120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7121. for as_dir in $PATH
  7122. do
  7123. IFS=$as_save_IFS
  7124. test -z "$as_dir" && as_dir=.
  7125. for ac_exec_ext in '' $ac_executable_extensions; do
  7126. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7127. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7129. break 2
  7130. fi
  7131. done
  7132. done
  7133. IFS=$as_save_IFS
  7134. fi
  7135. fi
  7136. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7137. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7139. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7140. else
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7142. $as_echo "no" >&6; }
  7143. fi
  7144. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7145. MANIFEST_TOOL=":"
  7146. else
  7147. case $cross_compiling:$ac_tool_warned in
  7148. yes:)
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7151. ac_tool_warned=yes ;;
  7152. esac
  7153. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7154. fi
  7155. else
  7156. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7157. fi
  7158. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7160. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7161. if ${lt_cv_path_mainfest_tool+:} false; then :
  7162. $as_echo_n "(cached) " >&6
  7163. else
  7164. lt_cv_path_mainfest_tool=no
  7165. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7166. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7167. cat conftest.err >&5
  7168. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7169. lt_cv_path_mainfest_tool=yes
  7170. fi
  7171. rm -f conftest*
  7172. fi
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7174. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7175. if test yes != "$lt_cv_path_mainfest_tool"; then
  7176. MANIFEST_TOOL=:
  7177. fi
  7178. case $host_os in
  7179. rhapsody* | darwin*)
  7180. if test -n "$ac_tool_prefix"; then
  7181. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7182. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7184. $as_echo_n "checking for $ac_word... " >&6; }
  7185. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7186. $as_echo_n "(cached) " >&6
  7187. else
  7188. if test -n "$DSYMUTIL"; then
  7189. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7190. else
  7191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7192. for as_dir in $PATH
  7193. do
  7194. IFS=$as_save_IFS
  7195. test -z "$as_dir" && as_dir=.
  7196. for ac_exec_ext in '' $ac_executable_extensions; do
  7197. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7198. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7200. break 2
  7201. fi
  7202. done
  7203. done
  7204. IFS=$as_save_IFS
  7205. fi
  7206. fi
  7207. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7208. if test -n "$DSYMUTIL"; then
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7210. $as_echo "$DSYMUTIL" >&6; }
  7211. else
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7213. $as_echo "no" >&6; }
  7214. fi
  7215. fi
  7216. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7217. ac_ct_DSYMUTIL=$DSYMUTIL
  7218. # Extract the first word of "dsymutil", so it can be a program name with args.
  7219. set dummy dsymutil; ac_word=$2
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7221. $as_echo_n "checking for $ac_word... " >&6; }
  7222. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7223. $as_echo_n "(cached) " >&6
  7224. else
  7225. if test -n "$ac_ct_DSYMUTIL"; then
  7226. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7227. else
  7228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7229. for as_dir in $PATH
  7230. do
  7231. IFS=$as_save_IFS
  7232. test -z "$as_dir" && as_dir=.
  7233. for ac_exec_ext in '' $ac_executable_extensions; do
  7234. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7235. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7237. break 2
  7238. fi
  7239. done
  7240. done
  7241. IFS=$as_save_IFS
  7242. fi
  7243. fi
  7244. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7245. if test -n "$ac_ct_DSYMUTIL"; then
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7247. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7248. else
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7250. $as_echo "no" >&6; }
  7251. fi
  7252. if test "x$ac_ct_DSYMUTIL" = x; then
  7253. DSYMUTIL=":"
  7254. else
  7255. case $cross_compiling:$ac_tool_warned in
  7256. yes:)
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7258. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7259. ac_tool_warned=yes ;;
  7260. esac
  7261. DSYMUTIL=$ac_ct_DSYMUTIL
  7262. fi
  7263. else
  7264. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7265. fi
  7266. if test -n "$ac_tool_prefix"; then
  7267. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7268. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7270. $as_echo_n "checking for $ac_word... " >&6; }
  7271. if ${ac_cv_prog_NMEDIT+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. if test -n "$NMEDIT"; then
  7275. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7276. else
  7277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7278. for as_dir in $PATH
  7279. do
  7280. IFS=$as_save_IFS
  7281. test -z "$as_dir" && as_dir=.
  7282. for ac_exec_ext in '' $ac_executable_extensions; do
  7283. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7284. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7286. break 2
  7287. fi
  7288. done
  7289. done
  7290. IFS=$as_save_IFS
  7291. fi
  7292. fi
  7293. NMEDIT=$ac_cv_prog_NMEDIT
  7294. if test -n "$NMEDIT"; then
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7296. $as_echo "$NMEDIT" >&6; }
  7297. else
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7299. $as_echo "no" >&6; }
  7300. fi
  7301. fi
  7302. if test -z "$ac_cv_prog_NMEDIT"; then
  7303. ac_ct_NMEDIT=$NMEDIT
  7304. # Extract the first word of "nmedit", so it can be a program name with args.
  7305. set dummy nmedit; ac_word=$2
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7307. $as_echo_n "checking for $ac_word... " >&6; }
  7308. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7309. $as_echo_n "(cached) " >&6
  7310. else
  7311. if test -n "$ac_ct_NMEDIT"; then
  7312. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7313. else
  7314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7315. for as_dir in $PATH
  7316. do
  7317. IFS=$as_save_IFS
  7318. test -z "$as_dir" && as_dir=.
  7319. for ac_exec_ext in '' $ac_executable_extensions; do
  7320. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7321. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7323. break 2
  7324. fi
  7325. done
  7326. done
  7327. IFS=$as_save_IFS
  7328. fi
  7329. fi
  7330. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7331. if test -n "$ac_ct_NMEDIT"; then
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7333. $as_echo "$ac_ct_NMEDIT" >&6; }
  7334. else
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7336. $as_echo "no" >&6; }
  7337. fi
  7338. if test "x$ac_ct_NMEDIT" = x; then
  7339. NMEDIT=":"
  7340. else
  7341. case $cross_compiling:$ac_tool_warned in
  7342. yes:)
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7344. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7345. ac_tool_warned=yes ;;
  7346. esac
  7347. NMEDIT=$ac_ct_NMEDIT
  7348. fi
  7349. else
  7350. NMEDIT="$ac_cv_prog_NMEDIT"
  7351. fi
  7352. if test -n "$ac_tool_prefix"; then
  7353. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7354. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7356. $as_echo_n "checking for $ac_word... " >&6; }
  7357. if ${ac_cv_prog_LIPO+:} false; then :
  7358. $as_echo_n "(cached) " >&6
  7359. else
  7360. if test -n "$LIPO"; then
  7361. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7362. else
  7363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7364. for as_dir in $PATH
  7365. do
  7366. IFS=$as_save_IFS
  7367. test -z "$as_dir" && as_dir=.
  7368. for ac_exec_ext in '' $ac_executable_extensions; do
  7369. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7370. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7372. break 2
  7373. fi
  7374. done
  7375. done
  7376. IFS=$as_save_IFS
  7377. fi
  7378. fi
  7379. LIPO=$ac_cv_prog_LIPO
  7380. if test -n "$LIPO"; then
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7382. $as_echo "$LIPO" >&6; }
  7383. else
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7385. $as_echo "no" >&6; }
  7386. fi
  7387. fi
  7388. if test -z "$ac_cv_prog_LIPO"; then
  7389. ac_ct_LIPO=$LIPO
  7390. # Extract the first word of "lipo", so it can be a program name with args.
  7391. set dummy lipo; ac_word=$2
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7393. $as_echo_n "checking for $ac_word... " >&6; }
  7394. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7395. $as_echo_n "(cached) " >&6
  7396. else
  7397. if test -n "$ac_ct_LIPO"; then
  7398. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7399. else
  7400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7401. for as_dir in $PATH
  7402. do
  7403. IFS=$as_save_IFS
  7404. test -z "$as_dir" && as_dir=.
  7405. for ac_exec_ext in '' $ac_executable_extensions; do
  7406. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7407. ac_cv_prog_ac_ct_LIPO="lipo"
  7408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7409. break 2
  7410. fi
  7411. done
  7412. done
  7413. IFS=$as_save_IFS
  7414. fi
  7415. fi
  7416. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7417. if test -n "$ac_ct_LIPO"; then
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7419. $as_echo "$ac_ct_LIPO" >&6; }
  7420. else
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7422. $as_echo "no" >&6; }
  7423. fi
  7424. if test "x$ac_ct_LIPO" = x; then
  7425. LIPO=":"
  7426. else
  7427. case $cross_compiling:$ac_tool_warned in
  7428. yes:)
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7430. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7431. ac_tool_warned=yes ;;
  7432. esac
  7433. LIPO=$ac_ct_LIPO
  7434. fi
  7435. else
  7436. LIPO="$ac_cv_prog_LIPO"
  7437. fi
  7438. if test -n "$ac_tool_prefix"; then
  7439. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7440. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7442. $as_echo_n "checking for $ac_word... " >&6; }
  7443. if ${ac_cv_prog_OTOOL+:} false; then :
  7444. $as_echo_n "(cached) " >&6
  7445. else
  7446. if test -n "$OTOOL"; then
  7447. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7448. else
  7449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7450. for as_dir in $PATH
  7451. do
  7452. IFS=$as_save_IFS
  7453. test -z "$as_dir" && as_dir=.
  7454. for ac_exec_ext in '' $ac_executable_extensions; do
  7455. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7456. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7458. break 2
  7459. fi
  7460. done
  7461. done
  7462. IFS=$as_save_IFS
  7463. fi
  7464. fi
  7465. OTOOL=$ac_cv_prog_OTOOL
  7466. if test -n "$OTOOL"; then
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7468. $as_echo "$OTOOL" >&6; }
  7469. else
  7470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7471. $as_echo "no" >&6; }
  7472. fi
  7473. fi
  7474. if test -z "$ac_cv_prog_OTOOL"; then
  7475. ac_ct_OTOOL=$OTOOL
  7476. # Extract the first word of "otool", so it can be a program name with args.
  7477. set dummy otool; ac_word=$2
  7478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7479. $as_echo_n "checking for $ac_word... " >&6; }
  7480. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7481. $as_echo_n "(cached) " >&6
  7482. else
  7483. if test -n "$ac_ct_OTOOL"; then
  7484. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7485. else
  7486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7487. for as_dir in $PATH
  7488. do
  7489. IFS=$as_save_IFS
  7490. test -z "$as_dir" && as_dir=.
  7491. for ac_exec_ext in '' $ac_executable_extensions; do
  7492. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7493. ac_cv_prog_ac_ct_OTOOL="otool"
  7494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7495. break 2
  7496. fi
  7497. done
  7498. done
  7499. IFS=$as_save_IFS
  7500. fi
  7501. fi
  7502. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7503. if test -n "$ac_ct_OTOOL"; then
  7504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7505. $as_echo "$ac_ct_OTOOL" >&6; }
  7506. else
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7508. $as_echo "no" >&6; }
  7509. fi
  7510. if test "x$ac_ct_OTOOL" = x; then
  7511. OTOOL=":"
  7512. else
  7513. case $cross_compiling:$ac_tool_warned in
  7514. yes:)
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7516. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7517. ac_tool_warned=yes ;;
  7518. esac
  7519. OTOOL=$ac_ct_OTOOL
  7520. fi
  7521. else
  7522. OTOOL="$ac_cv_prog_OTOOL"
  7523. fi
  7524. if test -n "$ac_tool_prefix"; then
  7525. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7526. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7528. $as_echo_n "checking for $ac_word... " >&6; }
  7529. if ${ac_cv_prog_OTOOL64+:} false; then :
  7530. $as_echo_n "(cached) " >&6
  7531. else
  7532. if test -n "$OTOOL64"; then
  7533. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7534. else
  7535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7536. for as_dir in $PATH
  7537. do
  7538. IFS=$as_save_IFS
  7539. test -z "$as_dir" && as_dir=.
  7540. for ac_exec_ext in '' $ac_executable_extensions; do
  7541. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7542. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7544. break 2
  7545. fi
  7546. done
  7547. done
  7548. IFS=$as_save_IFS
  7549. fi
  7550. fi
  7551. OTOOL64=$ac_cv_prog_OTOOL64
  7552. if test -n "$OTOOL64"; then
  7553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7554. $as_echo "$OTOOL64" >&6; }
  7555. else
  7556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7557. $as_echo "no" >&6; }
  7558. fi
  7559. fi
  7560. if test -z "$ac_cv_prog_OTOOL64"; then
  7561. ac_ct_OTOOL64=$OTOOL64
  7562. # Extract the first word of "otool64", so it can be a program name with args.
  7563. set dummy otool64; ac_word=$2
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7565. $as_echo_n "checking for $ac_word... " >&6; }
  7566. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7567. $as_echo_n "(cached) " >&6
  7568. else
  7569. if test -n "$ac_ct_OTOOL64"; then
  7570. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7571. else
  7572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7573. for as_dir in $PATH
  7574. do
  7575. IFS=$as_save_IFS
  7576. test -z "$as_dir" && as_dir=.
  7577. for ac_exec_ext in '' $ac_executable_extensions; do
  7578. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7579. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7581. break 2
  7582. fi
  7583. done
  7584. done
  7585. IFS=$as_save_IFS
  7586. fi
  7587. fi
  7588. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7589. if test -n "$ac_ct_OTOOL64"; then
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7591. $as_echo "$ac_ct_OTOOL64" >&6; }
  7592. else
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7594. $as_echo "no" >&6; }
  7595. fi
  7596. if test "x$ac_ct_OTOOL64" = x; then
  7597. OTOOL64=":"
  7598. else
  7599. case $cross_compiling:$ac_tool_warned in
  7600. yes:)
  7601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7602. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7603. ac_tool_warned=yes ;;
  7604. esac
  7605. OTOOL64=$ac_ct_OTOOL64
  7606. fi
  7607. else
  7608. OTOOL64="$ac_cv_prog_OTOOL64"
  7609. fi
  7610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7611. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7612. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7613. $as_echo_n "(cached) " >&6
  7614. else
  7615. lt_cv_apple_cc_single_mod=no
  7616. if test -z "$LT_MULTI_MODULE"; then
  7617. # By default we will add the -single_module flag. You can override
  7618. # by either setting the environment variable LT_MULTI_MODULE
  7619. # non-empty at configure time, or by adding -multi_module to the
  7620. # link flags.
  7621. rm -rf libconftest.dylib*
  7622. echo "int foo(void){return 1;}" > conftest.c
  7623. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7624. -dynamiclib -Wl,-single_module conftest.c" >&5
  7625. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7626. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7627. _lt_result=$?
  7628. # If there is a non-empty error log, and "single_module"
  7629. # appears in it, assume the flag caused a linker warning
  7630. if test -s conftest.err && $GREP single_module conftest.err; then
  7631. cat conftest.err >&5
  7632. # Otherwise, if the output was created with a 0 exit code from
  7633. # the compiler, it worked.
  7634. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7635. lt_cv_apple_cc_single_mod=yes
  7636. else
  7637. cat conftest.err >&5
  7638. fi
  7639. rm -rf libconftest.dylib*
  7640. rm -f conftest.*
  7641. fi
  7642. fi
  7643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7644. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7646. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7647. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7648. $as_echo_n "(cached) " >&6
  7649. else
  7650. lt_cv_ld_exported_symbols_list=no
  7651. save_LDFLAGS=$LDFLAGS
  7652. echo "_main" > conftest.sym
  7653. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7655. /* end confdefs.h. */
  7656. int
  7657. main ()
  7658. {
  7659. ;
  7660. return 0;
  7661. }
  7662. _ACEOF
  7663. if ac_fn_c_try_link "$LINENO"; then :
  7664. lt_cv_ld_exported_symbols_list=yes
  7665. else
  7666. lt_cv_ld_exported_symbols_list=no
  7667. fi
  7668. rm -f core conftest.err conftest.$ac_objext \
  7669. conftest$ac_exeext conftest.$ac_ext
  7670. LDFLAGS=$save_LDFLAGS
  7671. fi
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7673. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7675. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7676. if ${lt_cv_ld_force_load+:} false; then :
  7677. $as_echo_n "(cached) " >&6
  7678. else
  7679. lt_cv_ld_force_load=no
  7680. cat > conftest.c << _LT_EOF
  7681. int forced_loaded() { return 2;}
  7682. _LT_EOF
  7683. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7684. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7685. echo "$AR cru libconftest.a conftest.o" >&5
  7686. $AR cru libconftest.a conftest.o 2>&5
  7687. echo "$RANLIB libconftest.a" >&5
  7688. $RANLIB libconftest.a 2>&5
  7689. cat > conftest.c << _LT_EOF
  7690. int main() { return 0;}
  7691. _LT_EOF
  7692. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7693. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7694. _lt_result=$?
  7695. if test -s conftest.err && $GREP force_load conftest.err; then
  7696. cat conftest.err >&5
  7697. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7698. lt_cv_ld_force_load=yes
  7699. else
  7700. cat conftest.err >&5
  7701. fi
  7702. rm -f conftest.err libconftest.a conftest conftest.c
  7703. rm -rf conftest.dSYM
  7704. fi
  7705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7706. $as_echo "$lt_cv_ld_force_load" >&6; }
  7707. case $host_os in
  7708. rhapsody* | darwin1.[012])
  7709. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7710. darwin1.*)
  7711. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7712. darwin*) # darwin 5.x on
  7713. # if running on 10.5 or later, the deployment target defaults
  7714. # to the OS version, if on x86, and 10.4, the deployment
  7715. # target defaults to 10.4. Don't you love it?
  7716. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7717. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7718. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7719. 10.[012][,.]*)
  7720. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7721. 10.*)
  7722. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7723. esac
  7724. ;;
  7725. esac
  7726. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7727. _lt_dar_single_mod='$single_module'
  7728. fi
  7729. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7730. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7731. else
  7732. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7733. fi
  7734. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7735. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7736. else
  7737. _lt_dsymutil=
  7738. fi
  7739. ;;
  7740. esac
  7741. # func_munge_path_list VARIABLE PATH
  7742. # -----------------------------------
  7743. # VARIABLE is name of variable containing _space_ separated list of
  7744. # directories to be munged by the contents of PATH, which is string
  7745. # having a format:
  7746. # "DIR[:DIR]:"
  7747. # string "DIR[ DIR]" will be prepended to VARIABLE
  7748. # ":DIR[:DIR]"
  7749. # string "DIR[ DIR]" will be appended to VARIABLE
  7750. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7751. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7752. # "DIRA[ DIRA]" will be appended to VARIABLE
  7753. # "DIR[:DIR]"
  7754. # VARIABLE will be replaced by "DIR[ DIR]"
  7755. func_munge_path_list ()
  7756. {
  7757. case x$2 in
  7758. x)
  7759. ;;
  7760. *:)
  7761. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7762. ;;
  7763. x:*)
  7764. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7765. ;;
  7766. *::*)
  7767. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7768. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7769. ;;
  7770. *)
  7771. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7772. ;;
  7773. esac
  7774. }
  7775. for ac_header in dlfcn.h
  7776. do :
  7777. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7778. "
  7779. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7780. cat >>confdefs.h <<_ACEOF
  7781. #define HAVE_DLFCN_H 1
  7782. _ACEOF
  7783. fi
  7784. done
  7785. # Set options
  7786. enable_win32_dll=yes
  7787. case $host in
  7788. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7789. if test -n "$ac_tool_prefix"; then
  7790. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7791. set dummy ${ac_tool_prefix}as; ac_word=$2
  7792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7793. $as_echo_n "checking for $ac_word... " >&6; }
  7794. if ${ac_cv_prog_AS+:} false; then :
  7795. $as_echo_n "(cached) " >&6
  7796. else
  7797. if test -n "$AS"; then
  7798. ac_cv_prog_AS="$AS" # Let the user override the test.
  7799. else
  7800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7801. for as_dir in $PATH
  7802. do
  7803. IFS=$as_save_IFS
  7804. test -z "$as_dir" && as_dir=.
  7805. for ac_exec_ext in '' $ac_executable_extensions; do
  7806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7807. ac_cv_prog_AS="${ac_tool_prefix}as"
  7808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7809. break 2
  7810. fi
  7811. done
  7812. done
  7813. IFS=$as_save_IFS
  7814. fi
  7815. fi
  7816. AS=$ac_cv_prog_AS
  7817. if test -n "$AS"; then
  7818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7819. $as_echo "$AS" >&6; }
  7820. else
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7822. $as_echo "no" >&6; }
  7823. fi
  7824. fi
  7825. if test -z "$ac_cv_prog_AS"; then
  7826. ac_ct_AS=$AS
  7827. # Extract the first word of "as", so it can be a program name with args.
  7828. set dummy as; ac_word=$2
  7829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7830. $as_echo_n "checking for $ac_word... " >&6; }
  7831. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  7832. $as_echo_n "(cached) " >&6
  7833. else
  7834. if test -n "$ac_ct_AS"; then
  7835. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7836. else
  7837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7838. for as_dir in $PATH
  7839. do
  7840. IFS=$as_save_IFS
  7841. test -z "$as_dir" && as_dir=.
  7842. for ac_exec_ext in '' $ac_executable_extensions; do
  7843. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7844. ac_cv_prog_ac_ct_AS="as"
  7845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7846. break 2
  7847. fi
  7848. done
  7849. done
  7850. IFS=$as_save_IFS
  7851. fi
  7852. fi
  7853. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7854. if test -n "$ac_ct_AS"; then
  7855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7856. $as_echo "$ac_ct_AS" >&6; }
  7857. else
  7858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7859. $as_echo "no" >&6; }
  7860. fi
  7861. if test "x$ac_ct_AS" = x; then
  7862. AS="false"
  7863. else
  7864. case $cross_compiling:$ac_tool_warned in
  7865. yes:)
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7867. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7868. ac_tool_warned=yes ;;
  7869. esac
  7870. AS=$ac_ct_AS
  7871. fi
  7872. else
  7873. AS="$ac_cv_prog_AS"
  7874. fi
  7875. if test -n "$ac_tool_prefix"; then
  7876. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7877. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7879. $as_echo_n "checking for $ac_word... " >&6; }
  7880. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7881. $as_echo_n "(cached) " >&6
  7882. else
  7883. if test -n "$DLLTOOL"; then
  7884. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7885. else
  7886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7887. for as_dir in $PATH
  7888. do
  7889. IFS=$as_save_IFS
  7890. test -z "$as_dir" && as_dir=.
  7891. for ac_exec_ext in '' $ac_executable_extensions; do
  7892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7893. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7895. break 2
  7896. fi
  7897. done
  7898. done
  7899. IFS=$as_save_IFS
  7900. fi
  7901. fi
  7902. DLLTOOL=$ac_cv_prog_DLLTOOL
  7903. if test -n "$DLLTOOL"; then
  7904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7905. $as_echo "$DLLTOOL" >&6; }
  7906. else
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7908. $as_echo "no" >&6; }
  7909. fi
  7910. fi
  7911. if test -z "$ac_cv_prog_DLLTOOL"; then
  7912. ac_ct_DLLTOOL=$DLLTOOL
  7913. # Extract the first word of "dlltool", so it can be a program name with args.
  7914. set dummy dlltool; ac_word=$2
  7915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7916. $as_echo_n "checking for $ac_word... " >&6; }
  7917. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7918. $as_echo_n "(cached) " >&6
  7919. else
  7920. if test -n "$ac_ct_DLLTOOL"; then
  7921. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7922. else
  7923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7924. for as_dir in $PATH
  7925. do
  7926. IFS=$as_save_IFS
  7927. test -z "$as_dir" && as_dir=.
  7928. for ac_exec_ext in '' $ac_executable_extensions; do
  7929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7930. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7932. break 2
  7933. fi
  7934. done
  7935. done
  7936. IFS=$as_save_IFS
  7937. fi
  7938. fi
  7939. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7940. if test -n "$ac_ct_DLLTOOL"; then
  7941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7942. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7943. else
  7944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7945. $as_echo "no" >&6; }
  7946. fi
  7947. if test "x$ac_ct_DLLTOOL" = x; then
  7948. DLLTOOL="false"
  7949. else
  7950. case $cross_compiling:$ac_tool_warned in
  7951. yes:)
  7952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7953. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7954. ac_tool_warned=yes ;;
  7955. esac
  7956. DLLTOOL=$ac_ct_DLLTOOL
  7957. fi
  7958. else
  7959. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7960. fi
  7961. if test -n "$ac_tool_prefix"; then
  7962. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7963. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7965. $as_echo_n "checking for $ac_word... " >&6; }
  7966. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7967. $as_echo_n "(cached) " >&6
  7968. else
  7969. if test -n "$OBJDUMP"; then
  7970. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7971. else
  7972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7973. for as_dir in $PATH
  7974. do
  7975. IFS=$as_save_IFS
  7976. test -z "$as_dir" && as_dir=.
  7977. for ac_exec_ext in '' $ac_executable_extensions; do
  7978. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7979. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7981. break 2
  7982. fi
  7983. done
  7984. done
  7985. IFS=$as_save_IFS
  7986. fi
  7987. fi
  7988. OBJDUMP=$ac_cv_prog_OBJDUMP
  7989. if test -n "$OBJDUMP"; then
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7991. $as_echo "$OBJDUMP" >&6; }
  7992. else
  7993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7994. $as_echo "no" >&6; }
  7995. fi
  7996. fi
  7997. if test -z "$ac_cv_prog_OBJDUMP"; then
  7998. ac_ct_OBJDUMP=$OBJDUMP
  7999. # Extract the first word of "objdump", so it can be a program name with args.
  8000. set dummy objdump; ac_word=$2
  8001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8002. $as_echo_n "checking for $ac_word... " >&6; }
  8003. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  8004. $as_echo_n "(cached) " >&6
  8005. else
  8006. if test -n "$ac_ct_OBJDUMP"; then
  8007. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8008. else
  8009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8010. for as_dir in $PATH
  8011. do
  8012. IFS=$as_save_IFS
  8013. test -z "$as_dir" && as_dir=.
  8014. for ac_exec_ext in '' $ac_executable_extensions; do
  8015. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8016. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8018. break 2
  8019. fi
  8020. done
  8021. done
  8022. IFS=$as_save_IFS
  8023. fi
  8024. fi
  8025. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8026. if test -n "$ac_ct_OBJDUMP"; then
  8027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8028. $as_echo "$ac_ct_OBJDUMP" >&6; }
  8029. else
  8030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8031. $as_echo "no" >&6; }
  8032. fi
  8033. if test "x$ac_ct_OBJDUMP" = x; then
  8034. OBJDUMP="false"
  8035. else
  8036. case $cross_compiling:$ac_tool_warned in
  8037. yes:)
  8038. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8039. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8040. ac_tool_warned=yes ;;
  8041. esac
  8042. OBJDUMP=$ac_ct_OBJDUMP
  8043. fi
  8044. else
  8045. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8046. fi
  8047. ;;
  8048. esac
  8049. test -z "$AS" && AS=as
  8050. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8051. test -z "$OBJDUMP" && OBJDUMP=objdump
  8052. # Check whether --enable-static was given.
  8053. if test "${enable_static+set}" = set; then :
  8054. enableval=$enable_static; p=${PACKAGE-default}
  8055. case $enableval in
  8056. yes) enable_static=yes ;;
  8057. no) enable_static=no ;;
  8058. *)
  8059. enable_static=no
  8060. # Look at the argument we got. We use all the common list separators.
  8061. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8062. for pkg in $enableval; do
  8063. IFS=$lt_save_ifs
  8064. if test "X$pkg" = "X$p"; then
  8065. enable_static=yes
  8066. fi
  8067. done
  8068. IFS=$lt_save_ifs
  8069. ;;
  8070. esac
  8071. else
  8072. enable_static=no
  8073. fi
  8074. # Check whether --with-pic was given.
  8075. if test "${with_pic+set}" = set; then :
  8076. withval=$with_pic; lt_p=${PACKAGE-default}
  8077. case $withval in
  8078. yes|no) pic_mode=$withval ;;
  8079. *)
  8080. pic_mode=default
  8081. # Look at the argument we got. We use all the common list separators.
  8082. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8083. for lt_pkg in $withval; do
  8084. IFS=$lt_save_ifs
  8085. if test "X$lt_pkg" = "X$lt_p"; then
  8086. pic_mode=yes
  8087. fi
  8088. done
  8089. IFS=$lt_save_ifs
  8090. ;;
  8091. esac
  8092. else
  8093. pic_mode=yes
  8094. fi
  8095. enable_dlopen=no
  8096. # Check whether --enable-shared was given.
  8097. if test "${enable_shared+set}" = set; then :
  8098. enableval=$enable_shared; p=${PACKAGE-default}
  8099. case $enableval in
  8100. yes) enable_shared=yes ;;
  8101. no) enable_shared=no ;;
  8102. *)
  8103. enable_shared=no
  8104. # Look at the argument we got. We use all the common list separators.
  8105. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8106. for pkg in $enableval; do
  8107. IFS=$lt_save_ifs
  8108. if test "X$pkg" = "X$p"; then
  8109. enable_shared=yes
  8110. fi
  8111. done
  8112. IFS=$lt_save_ifs
  8113. ;;
  8114. esac
  8115. else
  8116. enable_shared=yes
  8117. fi
  8118. # Check whether --enable-fast-install was given.
  8119. if test "${enable_fast_install+set}" = set; then :
  8120. enableval=$enable_fast_install; p=${PACKAGE-default}
  8121. case $enableval in
  8122. yes) enable_fast_install=yes ;;
  8123. no) enable_fast_install=no ;;
  8124. *)
  8125. enable_fast_install=no
  8126. # Look at the argument we got. We use all the common list separators.
  8127. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8128. for pkg in $enableval; do
  8129. IFS=$lt_save_ifs
  8130. if test "X$pkg" = "X$p"; then
  8131. enable_fast_install=yes
  8132. fi
  8133. done
  8134. IFS=$lt_save_ifs
  8135. ;;
  8136. esac
  8137. else
  8138. enable_fast_install=yes
  8139. fi
  8140. shared_archive_member_spec=
  8141. case $host,$enable_shared in
  8142. power*-*-aix[5-9]*,yes)
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8144. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  8145. # Check whether --with-aix-soname was given.
  8146. if test "${with_aix_soname+set}" = set; then :
  8147. withval=$with_aix_soname; case $withval in
  8148. aix|svr4|both)
  8149. ;;
  8150. *)
  8151. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8152. ;;
  8153. esac
  8154. lt_cv_with_aix_soname=$with_aix_soname
  8155. else
  8156. if ${lt_cv_with_aix_soname+:} false; then :
  8157. $as_echo_n "(cached) " >&6
  8158. else
  8159. lt_cv_with_aix_soname=aix
  8160. fi
  8161. with_aix_soname=$lt_cv_with_aix_soname
  8162. fi
  8163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8164. $as_echo "$with_aix_soname" >&6; }
  8165. if test aix != "$with_aix_soname"; then
  8166. # For the AIX way of multilib, we name the shared archive member
  8167. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8168. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8169. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8170. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8171. if test 64 = "${OBJECT_MODE-32}"; then
  8172. shared_archive_member_spec=shr_64
  8173. else
  8174. shared_archive_member_spec=shr
  8175. fi
  8176. fi
  8177. ;;
  8178. *)
  8179. with_aix_soname=aix
  8180. ;;
  8181. esac
  8182. # This can be used to rebuild libtool when needed
  8183. LIBTOOL_DEPS=$ltmain
  8184. # Always use our own libtool.
  8185. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8186. test -z "$LN_S" && LN_S="ln -s"
  8187. if test -n "${ZSH_VERSION+set}"; then
  8188. setopt NO_GLOB_SUBST
  8189. fi
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8191. $as_echo_n "checking for objdir... " >&6; }
  8192. if ${lt_cv_objdir+:} false; then :
  8193. $as_echo_n "(cached) " >&6
  8194. else
  8195. rm -f .libs 2>/dev/null
  8196. mkdir .libs 2>/dev/null
  8197. if test -d .libs; then
  8198. lt_cv_objdir=.libs
  8199. else
  8200. # MS-DOS does not allow filenames that begin with a dot.
  8201. lt_cv_objdir=_libs
  8202. fi
  8203. rmdir .libs 2>/dev/null
  8204. fi
  8205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8206. $as_echo "$lt_cv_objdir" >&6; }
  8207. objdir=$lt_cv_objdir
  8208. cat >>confdefs.h <<_ACEOF
  8209. #define LT_OBJDIR "$lt_cv_objdir/"
  8210. _ACEOF
  8211. case $host_os in
  8212. aix3*)
  8213. # AIX sometimes has problems with the GCC collect2 program. For some
  8214. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8215. # vanish in a puff of smoke.
  8216. if test set != "${COLLECT_NAMES+set}"; then
  8217. COLLECT_NAMES=
  8218. export COLLECT_NAMES
  8219. fi
  8220. ;;
  8221. esac
  8222. # Global variables:
  8223. ofile=libtool
  8224. can_build_shared=yes
  8225. # All known linkers require a '.a' archive for static linking (except MSVC,
  8226. # which needs '.lib').
  8227. libext=a
  8228. with_gnu_ld=$lt_cv_prog_gnu_ld
  8229. old_CC=$CC
  8230. old_CFLAGS=$CFLAGS
  8231. # Set sane defaults for various variables
  8232. test -z "$CC" && CC=cc
  8233. test -z "$LTCC" && LTCC=$CC
  8234. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8235. test -z "$LD" && LD=ld
  8236. test -z "$ac_objext" && ac_objext=o
  8237. func_cc_basename $compiler
  8238. cc_basename=$func_cc_basename_result
  8239. # Only perform the check for file, if the check method requires it
  8240. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8241. case $deplibs_check_method in
  8242. file_magic*)
  8243. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8245. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8246. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8247. $as_echo_n "(cached) " >&6
  8248. else
  8249. case $MAGIC_CMD in
  8250. [\\/*] | ?:[\\/]*)
  8251. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8252. ;;
  8253. *)
  8254. lt_save_MAGIC_CMD=$MAGIC_CMD
  8255. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8256. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8257. for ac_dir in $ac_dummy; do
  8258. IFS=$lt_save_ifs
  8259. test -z "$ac_dir" && ac_dir=.
  8260. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8261. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8262. if test -n "$file_magic_test_file"; then
  8263. case $deplibs_check_method in
  8264. "file_magic "*)
  8265. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8266. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8267. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8268. $EGREP "$file_magic_regex" > /dev/null; then
  8269. :
  8270. else
  8271. cat <<_LT_EOF 1>&2
  8272. *** Warning: the command libtool uses to detect shared libraries,
  8273. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8274. *** The result is that libtool may fail to recognize shared libraries
  8275. *** as such. This will affect the creation of libtool libraries that
  8276. *** depend on shared libraries, but programs linked with such libtool
  8277. *** libraries will work regardless of this problem. Nevertheless, you
  8278. *** may want to report the problem to your system manager and/or to
  8279. *** [email protected]
  8280. _LT_EOF
  8281. fi ;;
  8282. esac
  8283. fi
  8284. break
  8285. fi
  8286. done
  8287. IFS=$lt_save_ifs
  8288. MAGIC_CMD=$lt_save_MAGIC_CMD
  8289. ;;
  8290. esac
  8291. fi
  8292. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8293. if test -n "$MAGIC_CMD"; then
  8294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8295. $as_echo "$MAGIC_CMD" >&6; }
  8296. else
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8298. $as_echo "no" >&6; }
  8299. fi
  8300. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8301. if test -n "$ac_tool_prefix"; then
  8302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8303. $as_echo_n "checking for file... " >&6; }
  8304. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8305. $as_echo_n "(cached) " >&6
  8306. else
  8307. case $MAGIC_CMD in
  8308. [\\/*] | ?:[\\/]*)
  8309. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8310. ;;
  8311. *)
  8312. lt_save_MAGIC_CMD=$MAGIC_CMD
  8313. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8314. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8315. for ac_dir in $ac_dummy; do
  8316. IFS=$lt_save_ifs
  8317. test -z "$ac_dir" && ac_dir=.
  8318. if test -f "$ac_dir/file"; then
  8319. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8320. if test -n "$file_magic_test_file"; then
  8321. case $deplibs_check_method in
  8322. "file_magic "*)
  8323. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8324. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8325. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8326. $EGREP "$file_magic_regex" > /dev/null; then
  8327. :
  8328. else
  8329. cat <<_LT_EOF 1>&2
  8330. *** Warning: the command libtool uses to detect shared libraries,
  8331. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8332. *** The result is that libtool may fail to recognize shared libraries
  8333. *** as such. This will affect the creation of libtool libraries that
  8334. *** depend on shared libraries, but programs linked with such libtool
  8335. *** libraries will work regardless of this problem. Nevertheless, you
  8336. *** may want to report the problem to your system manager and/or to
  8337. *** [email protected]
  8338. _LT_EOF
  8339. fi ;;
  8340. esac
  8341. fi
  8342. break
  8343. fi
  8344. done
  8345. IFS=$lt_save_ifs
  8346. MAGIC_CMD=$lt_save_MAGIC_CMD
  8347. ;;
  8348. esac
  8349. fi
  8350. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8351. if test -n "$MAGIC_CMD"; then
  8352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8353. $as_echo "$MAGIC_CMD" >&6; }
  8354. else
  8355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8356. $as_echo "no" >&6; }
  8357. fi
  8358. else
  8359. MAGIC_CMD=:
  8360. fi
  8361. fi
  8362. fi
  8363. ;;
  8364. esac
  8365. # Use C for the default configuration in the libtool script
  8366. lt_save_CC=$CC
  8367. ac_ext=c
  8368. ac_cpp='$CPP $CPPFLAGS'
  8369. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8370. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8371. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8372. # Source file extension for C test sources.
  8373. ac_ext=c
  8374. # Object file extension for compiled C test sources.
  8375. objext=o
  8376. objext=$objext
  8377. # Code to be used in simple compile tests
  8378. lt_simple_compile_test_code="int some_variable = 0;"
  8379. # Code to be used in simple link tests
  8380. lt_simple_link_test_code='int main(){return(0);}'
  8381. # If no C compiler was specified, use CC.
  8382. LTCC=${LTCC-"$CC"}
  8383. # If no C compiler flags were specified, use CFLAGS.
  8384. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8385. # Allow CC to be a program name with arguments.
  8386. compiler=$CC
  8387. # Save the default compiler, since it gets overwritten when the other
  8388. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8389. compiler_DEFAULT=$CC
  8390. # save warnings/boilerplate of simple test code
  8391. ac_outfile=conftest.$ac_objext
  8392. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8393. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8394. _lt_compiler_boilerplate=`cat conftest.err`
  8395. $RM conftest*
  8396. ac_outfile=conftest.$ac_objext
  8397. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8398. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8399. _lt_linker_boilerplate=`cat conftest.err`
  8400. $RM -r conftest*
  8401. ## CAVEAT EMPTOR:
  8402. ## There is no encapsulation within the following macros, do not change
  8403. ## the running order or otherwise move them around unless you know exactly
  8404. ## what you are doing...
  8405. if test -n "$compiler"; then
  8406. lt_prog_compiler_no_builtin_flag=
  8407. if test yes = "$GCC"; then
  8408. case $cc_basename in
  8409. nvcc*)
  8410. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8411. *)
  8412. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8413. esac
  8414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8415. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8416. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8417. $as_echo_n "(cached) " >&6
  8418. else
  8419. lt_cv_prog_compiler_rtti_exceptions=no
  8420. ac_outfile=conftest.$ac_objext
  8421. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8422. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8423. # Insert the option either (1) after the last *FLAGS variable, or
  8424. # (2) before a word containing "conftest.", or (3) at the end.
  8425. # Note that $ac_compile itself does not contain backslashes and begins
  8426. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8427. # The option is referenced via a variable to avoid confusing sed.
  8428. lt_compile=`echo "$ac_compile" | $SED \
  8429. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8430. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8431. -e 's:$: $lt_compiler_flag:'`
  8432. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8433. (eval "$lt_compile" 2>conftest.err)
  8434. ac_status=$?
  8435. cat conftest.err >&5
  8436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8437. if (exit $ac_status) && test -s "$ac_outfile"; then
  8438. # The compiler can only warn and ignore the option if not recognized
  8439. # So say no if there are warnings other than the usual output.
  8440. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8441. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8442. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8443. lt_cv_prog_compiler_rtti_exceptions=yes
  8444. fi
  8445. fi
  8446. $RM conftest*
  8447. fi
  8448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8449. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8450. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8451. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8452. else
  8453. :
  8454. fi
  8455. fi
  8456. lt_prog_compiler_wl=
  8457. lt_prog_compiler_pic=
  8458. lt_prog_compiler_static=
  8459. if test yes = "$GCC"; then
  8460. lt_prog_compiler_wl='-Wl,'
  8461. lt_prog_compiler_static='-static'
  8462. case $host_os in
  8463. aix*)
  8464. # All AIX code is PIC.
  8465. if test ia64 = "$host_cpu"; then
  8466. # AIX 5 now supports IA64 processor
  8467. lt_prog_compiler_static='-Bstatic'
  8468. fi
  8469. lt_prog_compiler_pic='-fPIC'
  8470. ;;
  8471. amigaos*)
  8472. case $host_cpu in
  8473. powerpc)
  8474. # see comment about AmigaOS4 .so support
  8475. lt_prog_compiler_pic='-fPIC'
  8476. ;;
  8477. m68k)
  8478. # FIXME: we need at least 68020 code to build shared libraries, but
  8479. # adding the '-m68020' flag to GCC prevents building anything better,
  8480. # like '-m68040'.
  8481. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8482. ;;
  8483. esac
  8484. ;;
  8485. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8486. # PIC is the default for these OSes.
  8487. ;;
  8488. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8489. # This hack is so that the source file can tell whether it is being
  8490. # built for inclusion in a dll (and should export symbols for example).
  8491. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8492. # (--disable-auto-import) libraries
  8493. lt_prog_compiler_pic='-DDLL_EXPORT'
  8494. case $host_os in
  8495. os2*)
  8496. lt_prog_compiler_static='$wl-static'
  8497. ;;
  8498. esac
  8499. ;;
  8500. darwin* | rhapsody*)
  8501. # PIC is the default on this platform
  8502. # Common symbols not allowed in MH_DYLIB files
  8503. lt_prog_compiler_pic='-fno-common'
  8504. ;;
  8505. haiku*)
  8506. # PIC is the default for Haiku.
  8507. # The "-static" flag exists, but is broken.
  8508. lt_prog_compiler_static=
  8509. ;;
  8510. hpux*)
  8511. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8512. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8513. # sets the default TLS model and affects inlining.
  8514. case $host_cpu in
  8515. hppa*64*)
  8516. # +Z the default
  8517. ;;
  8518. *)
  8519. lt_prog_compiler_pic='-fPIC'
  8520. ;;
  8521. esac
  8522. ;;
  8523. interix[3-9]*)
  8524. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8525. # Instead, we relocate shared libraries at runtime.
  8526. ;;
  8527. msdosdjgpp*)
  8528. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8529. # on systems that don't support them.
  8530. lt_prog_compiler_can_build_shared=no
  8531. enable_shared=no
  8532. ;;
  8533. *nto* | *qnx*)
  8534. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8535. # it will coredump.
  8536. lt_prog_compiler_pic='-fPIC -shared'
  8537. ;;
  8538. sysv4*MP*)
  8539. if test -d /usr/nec; then
  8540. lt_prog_compiler_pic=-Kconform_pic
  8541. fi
  8542. ;;
  8543. *)
  8544. lt_prog_compiler_pic='-fPIC'
  8545. ;;
  8546. esac
  8547. case $cc_basename in
  8548. nvcc*) # Cuda Compiler Driver 2.2
  8549. lt_prog_compiler_wl='-Xlinker '
  8550. if test -n "$lt_prog_compiler_pic"; then
  8551. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8552. fi
  8553. ;;
  8554. esac
  8555. else
  8556. # PORTME Check for flag to pass linker flags through the system compiler.
  8557. case $host_os in
  8558. aix*)
  8559. lt_prog_compiler_wl='-Wl,'
  8560. if test ia64 = "$host_cpu"; then
  8561. # AIX 5 now supports IA64 processor
  8562. lt_prog_compiler_static='-Bstatic'
  8563. else
  8564. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8565. fi
  8566. ;;
  8567. darwin* | rhapsody*)
  8568. # PIC is the default on this platform
  8569. # Common symbols not allowed in MH_DYLIB files
  8570. lt_prog_compiler_pic='-fno-common'
  8571. case $cc_basename in
  8572. nagfor*)
  8573. # NAG Fortran compiler
  8574. lt_prog_compiler_wl='-Wl,-Wl,,'
  8575. lt_prog_compiler_pic='-PIC'
  8576. lt_prog_compiler_static='-Bstatic'
  8577. ;;
  8578. esac
  8579. ;;
  8580. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8581. # This hack is so that the source file can tell whether it is being
  8582. # built for inclusion in a dll (and should export symbols for example).
  8583. lt_prog_compiler_pic='-DDLL_EXPORT'
  8584. case $host_os in
  8585. os2*)
  8586. lt_prog_compiler_static='$wl-static'
  8587. ;;
  8588. esac
  8589. ;;
  8590. hpux9* | hpux10* | hpux11*)
  8591. lt_prog_compiler_wl='-Wl,'
  8592. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8593. # not for PA HP-UX.
  8594. case $host_cpu in
  8595. hppa*64*|ia64*)
  8596. # +Z the default
  8597. ;;
  8598. *)
  8599. lt_prog_compiler_pic='+Z'
  8600. ;;
  8601. esac
  8602. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8603. lt_prog_compiler_static='$wl-a ${wl}archive'
  8604. ;;
  8605. irix5* | irix6* | nonstopux*)
  8606. lt_prog_compiler_wl='-Wl,'
  8607. # PIC (with -KPIC) is the default.
  8608. lt_prog_compiler_static='-non_shared'
  8609. ;;
  8610. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8611. case $cc_basename in
  8612. # old Intel for x86_64, which still supported -KPIC.
  8613. ecc*)
  8614. lt_prog_compiler_wl='-Wl,'
  8615. lt_prog_compiler_pic='-KPIC'
  8616. lt_prog_compiler_static='-static'
  8617. ;;
  8618. # icc used to be incompatible with GCC.
  8619. # ICC 10 doesn't accept -KPIC any more.
  8620. icc* | ifort*)
  8621. lt_prog_compiler_wl='-Wl,'
  8622. lt_prog_compiler_pic='-fPIC'
  8623. lt_prog_compiler_static='-static'
  8624. ;;
  8625. # Lahey Fortran 8.1.
  8626. lf95*)
  8627. lt_prog_compiler_wl='-Wl,'
  8628. lt_prog_compiler_pic='--shared'
  8629. lt_prog_compiler_static='--static'
  8630. ;;
  8631. nagfor*)
  8632. # NAG Fortran compiler
  8633. lt_prog_compiler_wl='-Wl,-Wl,,'
  8634. lt_prog_compiler_pic='-PIC'
  8635. lt_prog_compiler_static='-Bstatic'
  8636. ;;
  8637. tcc*)
  8638. # Fabrice Bellard et al's Tiny C Compiler
  8639. lt_prog_compiler_wl='-Wl,'
  8640. lt_prog_compiler_pic='-fPIC'
  8641. lt_prog_compiler_static='-static'
  8642. ;;
  8643. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8644. # Portland Group compilers (*not* the Pentium gcc compiler,
  8645. # which looks to be a dead project)
  8646. lt_prog_compiler_wl='-Wl,'
  8647. lt_prog_compiler_pic='-fpic'
  8648. lt_prog_compiler_static='-Bstatic'
  8649. ;;
  8650. ccc*)
  8651. lt_prog_compiler_wl='-Wl,'
  8652. # All Alpha code is PIC.
  8653. lt_prog_compiler_static='-non_shared'
  8654. ;;
  8655. xl* | bgxl* | bgf* | mpixl*)
  8656. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8657. lt_prog_compiler_wl='-Wl,'
  8658. lt_prog_compiler_pic='-qpic'
  8659. lt_prog_compiler_static='-qstaticlink'
  8660. ;;
  8661. *)
  8662. case `$CC -V 2>&1 | sed 5q` in
  8663. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8664. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8665. lt_prog_compiler_pic='-KPIC'
  8666. lt_prog_compiler_static='-Bstatic'
  8667. lt_prog_compiler_wl=''
  8668. ;;
  8669. *Sun\ F* | *Sun*Fortran*)
  8670. lt_prog_compiler_pic='-KPIC'
  8671. lt_prog_compiler_static='-Bstatic'
  8672. lt_prog_compiler_wl='-Qoption ld '
  8673. ;;
  8674. *Sun\ C*)
  8675. # Sun C 5.9
  8676. lt_prog_compiler_pic='-KPIC'
  8677. lt_prog_compiler_static='-Bstatic'
  8678. lt_prog_compiler_wl='-Wl,'
  8679. ;;
  8680. *Intel*\ [CF]*Compiler*)
  8681. lt_prog_compiler_wl='-Wl,'
  8682. lt_prog_compiler_pic='-fPIC'
  8683. lt_prog_compiler_static='-static'
  8684. ;;
  8685. *Portland\ Group*)
  8686. lt_prog_compiler_wl='-Wl,'
  8687. lt_prog_compiler_pic='-fpic'
  8688. lt_prog_compiler_static='-Bstatic'
  8689. ;;
  8690. esac
  8691. ;;
  8692. esac
  8693. ;;
  8694. newsos6)
  8695. lt_prog_compiler_pic='-KPIC'
  8696. lt_prog_compiler_static='-Bstatic'
  8697. ;;
  8698. *nto* | *qnx*)
  8699. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8700. # it will coredump.
  8701. lt_prog_compiler_pic='-fPIC -shared'
  8702. ;;
  8703. osf3* | osf4* | osf5*)
  8704. lt_prog_compiler_wl='-Wl,'
  8705. # All OSF/1 code is PIC.
  8706. lt_prog_compiler_static='-non_shared'
  8707. ;;
  8708. rdos*)
  8709. lt_prog_compiler_static='-non_shared'
  8710. ;;
  8711. solaris*)
  8712. lt_prog_compiler_pic='-KPIC'
  8713. lt_prog_compiler_static='-Bstatic'
  8714. case $cc_basename in
  8715. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8716. lt_prog_compiler_wl='-Qoption ld ';;
  8717. *)
  8718. lt_prog_compiler_wl='-Wl,';;
  8719. esac
  8720. ;;
  8721. sunos4*)
  8722. lt_prog_compiler_wl='-Qoption ld '
  8723. lt_prog_compiler_pic='-PIC'
  8724. lt_prog_compiler_static='-Bstatic'
  8725. ;;
  8726. sysv4 | sysv4.2uw2* | sysv4.3*)
  8727. lt_prog_compiler_wl='-Wl,'
  8728. lt_prog_compiler_pic='-KPIC'
  8729. lt_prog_compiler_static='-Bstatic'
  8730. ;;
  8731. sysv4*MP*)
  8732. if test -d /usr/nec; then
  8733. lt_prog_compiler_pic='-Kconform_pic'
  8734. lt_prog_compiler_static='-Bstatic'
  8735. fi
  8736. ;;
  8737. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8738. lt_prog_compiler_wl='-Wl,'
  8739. lt_prog_compiler_pic='-KPIC'
  8740. lt_prog_compiler_static='-Bstatic'
  8741. ;;
  8742. unicos*)
  8743. lt_prog_compiler_wl='-Wl,'
  8744. lt_prog_compiler_can_build_shared=no
  8745. ;;
  8746. uts4*)
  8747. lt_prog_compiler_pic='-pic'
  8748. lt_prog_compiler_static='-Bstatic'
  8749. ;;
  8750. *)
  8751. lt_prog_compiler_can_build_shared=no
  8752. ;;
  8753. esac
  8754. fi
  8755. case $host_os in
  8756. # For platforms that do not support PIC, -DPIC is meaningless:
  8757. *djgpp*)
  8758. lt_prog_compiler_pic=
  8759. ;;
  8760. *)
  8761. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8762. ;;
  8763. esac
  8764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8765. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8766. if ${lt_cv_prog_compiler_pic+:} false; then :
  8767. $as_echo_n "(cached) " >&6
  8768. else
  8769. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8770. fi
  8771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8772. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8773. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8774. #
  8775. # Check to make sure the PIC flag actually works.
  8776. #
  8777. if test -n "$lt_prog_compiler_pic"; then
  8778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8779. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8780. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8781. $as_echo_n "(cached) " >&6
  8782. else
  8783. lt_cv_prog_compiler_pic_works=no
  8784. ac_outfile=conftest.$ac_objext
  8785. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8786. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8787. # Insert the option either (1) after the last *FLAGS variable, or
  8788. # (2) before a word containing "conftest.", or (3) at the end.
  8789. # Note that $ac_compile itself does not contain backslashes and begins
  8790. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8791. # The option is referenced via a variable to avoid confusing sed.
  8792. lt_compile=`echo "$ac_compile" | $SED \
  8793. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8794. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8795. -e 's:$: $lt_compiler_flag:'`
  8796. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8797. (eval "$lt_compile" 2>conftest.err)
  8798. ac_status=$?
  8799. cat conftest.err >&5
  8800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8801. if (exit $ac_status) && test -s "$ac_outfile"; then
  8802. # The compiler can only warn and ignore the option if not recognized
  8803. # So say no if there are warnings other than the usual output.
  8804. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8805. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8806. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8807. lt_cv_prog_compiler_pic_works=yes
  8808. fi
  8809. fi
  8810. $RM conftest*
  8811. fi
  8812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8813. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8814. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8815. case $lt_prog_compiler_pic in
  8816. "" | " "*) ;;
  8817. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8818. esac
  8819. else
  8820. lt_prog_compiler_pic=
  8821. lt_prog_compiler_can_build_shared=no
  8822. fi
  8823. fi
  8824. #
  8825. # Check to make sure the static flag actually works.
  8826. #
  8827. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8829. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8830. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8831. $as_echo_n "(cached) " >&6
  8832. else
  8833. lt_cv_prog_compiler_static_works=no
  8834. save_LDFLAGS=$LDFLAGS
  8835. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8836. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8837. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8838. # The linker can only warn and ignore the option if not recognized
  8839. # So say no if there are warnings
  8840. if test -s conftest.err; then
  8841. # Append any errors to the config.log.
  8842. cat conftest.err 1>&5
  8843. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8844. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8845. if diff conftest.exp conftest.er2 >/dev/null; then
  8846. lt_cv_prog_compiler_static_works=yes
  8847. fi
  8848. else
  8849. lt_cv_prog_compiler_static_works=yes
  8850. fi
  8851. fi
  8852. $RM -r conftest*
  8853. LDFLAGS=$save_LDFLAGS
  8854. fi
  8855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8856. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8857. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8858. :
  8859. else
  8860. lt_prog_compiler_static=
  8861. fi
  8862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8863. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8864. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8865. $as_echo_n "(cached) " >&6
  8866. else
  8867. lt_cv_prog_compiler_c_o=no
  8868. $RM -r conftest 2>/dev/null
  8869. mkdir conftest
  8870. cd conftest
  8871. mkdir out
  8872. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8873. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8874. # Insert the option either (1) after the last *FLAGS variable, or
  8875. # (2) before a word containing "conftest.", or (3) at the end.
  8876. # Note that $ac_compile itself does not contain backslashes and begins
  8877. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8878. lt_compile=`echo "$ac_compile" | $SED \
  8879. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8880. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8881. -e 's:$: $lt_compiler_flag:'`
  8882. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8883. (eval "$lt_compile" 2>out/conftest.err)
  8884. ac_status=$?
  8885. cat out/conftest.err >&5
  8886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8887. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8888. then
  8889. # The compiler can only warn and ignore the option if not recognized
  8890. # So say no if there are warnings
  8891. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8892. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8893. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8894. lt_cv_prog_compiler_c_o=yes
  8895. fi
  8896. fi
  8897. chmod u+w . 2>&5
  8898. $RM conftest*
  8899. # SGI C++ compiler will create directory out/ii_files/ for
  8900. # template instantiation
  8901. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8902. $RM out/* && rmdir out
  8903. cd ..
  8904. $RM -r conftest
  8905. $RM conftest*
  8906. fi
  8907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8908. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8910. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8911. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8912. $as_echo_n "(cached) " >&6
  8913. else
  8914. lt_cv_prog_compiler_c_o=no
  8915. $RM -r conftest 2>/dev/null
  8916. mkdir conftest
  8917. cd conftest
  8918. mkdir out
  8919. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8920. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8921. # Insert the option either (1) after the last *FLAGS variable, or
  8922. # (2) before a word containing "conftest.", or (3) at the end.
  8923. # Note that $ac_compile itself does not contain backslashes and begins
  8924. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8925. lt_compile=`echo "$ac_compile" | $SED \
  8926. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8927. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8928. -e 's:$: $lt_compiler_flag:'`
  8929. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8930. (eval "$lt_compile" 2>out/conftest.err)
  8931. ac_status=$?
  8932. cat out/conftest.err >&5
  8933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8934. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8935. then
  8936. # The compiler can only warn and ignore the option if not recognized
  8937. # So say no if there are warnings
  8938. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8939. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8940. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8941. lt_cv_prog_compiler_c_o=yes
  8942. fi
  8943. fi
  8944. chmod u+w . 2>&5
  8945. $RM conftest*
  8946. # SGI C++ compiler will create directory out/ii_files/ for
  8947. # template instantiation
  8948. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8949. $RM out/* && rmdir out
  8950. cd ..
  8951. $RM -r conftest
  8952. $RM conftest*
  8953. fi
  8954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8955. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8956. hard_links=nottested
  8957. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8958. # do not overwrite the value of need_locks provided by the user
  8959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8960. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8961. hard_links=yes
  8962. $RM conftest*
  8963. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8964. touch conftest.a
  8965. ln conftest.a conftest.b 2>&5 || hard_links=no
  8966. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8968. $as_echo "$hard_links" >&6; }
  8969. if test no = "$hard_links"; then
  8970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8971. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8972. need_locks=warn
  8973. fi
  8974. else
  8975. need_locks=no
  8976. fi
  8977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8978. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8979. runpath_var=
  8980. allow_undefined_flag=
  8981. always_export_symbols=no
  8982. archive_cmds=
  8983. archive_expsym_cmds=
  8984. compiler_needs_object=no
  8985. enable_shared_with_static_runtimes=no
  8986. export_dynamic_flag_spec=
  8987. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8988. hardcode_automatic=no
  8989. hardcode_direct=no
  8990. hardcode_direct_absolute=no
  8991. hardcode_libdir_flag_spec=
  8992. hardcode_libdir_separator=
  8993. hardcode_minus_L=no
  8994. hardcode_shlibpath_var=unsupported
  8995. inherit_rpath=no
  8996. link_all_deplibs=unknown
  8997. module_cmds=
  8998. module_expsym_cmds=
  8999. old_archive_from_new_cmds=
  9000. old_archive_from_expsyms_cmds=
  9001. thread_safe_flag_spec=
  9002. whole_archive_flag_spec=
  9003. # include_expsyms should be a list of space-separated symbols to be *always*
  9004. # included in the symbol list
  9005. include_expsyms=
  9006. # exclude_expsyms can be an extended regexp of symbols to exclude
  9007. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9008. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9009. # as well as any symbol that contains 'd'.
  9010. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9011. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9012. # platforms (ab)use it in PIC code, but their linkers get confused if
  9013. # the symbol is explicitly referenced. Since portable code cannot
  9014. # rely on this symbol name, it's probably fine to never include it in
  9015. # preloaded symbol tables.
  9016. # Exclude shared library initialization/finalization symbols.
  9017. extract_expsyms_cmds=
  9018. case $host_os in
  9019. cygwin* | mingw* | pw32* | cegcc*)
  9020. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9021. # When not using gcc, we currently assume that we are using
  9022. # Microsoft Visual C++.
  9023. if test yes != "$GCC"; then
  9024. with_gnu_ld=no
  9025. fi
  9026. ;;
  9027. interix*)
  9028. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9029. with_gnu_ld=yes
  9030. ;;
  9031. openbsd* | bitrig*)
  9032. with_gnu_ld=no
  9033. ;;
  9034. linux* | k*bsd*-gnu | gnu*)
  9035. link_all_deplibs=no
  9036. ;;
  9037. esac
  9038. ld_shlibs=yes
  9039. # On some targets, GNU ld is compatible enough with the native linker
  9040. # that we're better off using the native interface for both.
  9041. lt_use_gnu_ld_interface=no
  9042. if test yes = "$with_gnu_ld"; then
  9043. case $host_os in
  9044. aix*)
  9045. # The AIX port of GNU ld has always aspired to compatibility
  9046. # with the native linker. However, as the warning in the GNU ld
  9047. # block says, versions before 2.19.5* couldn't really create working
  9048. # shared libraries, regardless of the interface used.
  9049. case `$LD -v 2>&1` in
  9050. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9051. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9052. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9053. *)
  9054. lt_use_gnu_ld_interface=yes
  9055. ;;
  9056. esac
  9057. ;;
  9058. *)
  9059. lt_use_gnu_ld_interface=yes
  9060. ;;
  9061. esac
  9062. fi
  9063. if test yes = "$lt_use_gnu_ld_interface"; then
  9064. # If archive_cmds runs LD, not CC, wlarc should be empty
  9065. wlarc='$wl'
  9066. # Set some defaults for GNU ld with shared library support. These
  9067. # are reset later if shared libraries are not supported. Putting them
  9068. # here allows them to be overridden if necessary.
  9069. runpath_var=LD_RUN_PATH
  9070. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9071. export_dynamic_flag_spec='$wl--export-dynamic'
  9072. # ancient GNU ld didn't support --whole-archive et. al.
  9073. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9074. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9075. else
  9076. whole_archive_flag_spec=
  9077. fi
  9078. supports_anon_versioning=no
  9079. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9080. *GNU\ gold*) supports_anon_versioning=yes ;;
  9081. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9082. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9083. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9084. *\ 2.11.*) ;; # other 2.11 versions
  9085. *) supports_anon_versioning=yes ;;
  9086. esac
  9087. # See if GNU ld supports shared libraries.
  9088. case $host_os in
  9089. aix[3-9]*)
  9090. # On AIX/PPC, the GNU linker is very broken
  9091. if test ia64 != "$host_cpu"; then
  9092. ld_shlibs=no
  9093. cat <<_LT_EOF 1>&2
  9094. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9095. *** to be unable to reliably create shared libraries on AIX.
  9096. *** Therefore, libtool is disabling shared libraries support. If you
  9097. *** really care for shared libraries, you may want to install binutils
  9098. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9099. *** You will then need to restart the configuration process.
  9100. _LT_EOF
  9101. fi
  9102. ;;
  9103. amigaos*)
  9104. case $host_cpu in
  9105. powerpc)
  9106. # see comment about AmigaOS4 .so support
  9107. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9108. archive_expsym_cmds=''
  9109. ;;
  9110. m68k)
  9111. 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)'
  9112. hardcode_libdir_flag_spec='-L$libdir'
  9113. hardcode_minus_L=yes
  9114. ;;
  9115. esac
  9116. ;;
  9117. beos*)
  9118. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9119. allow_undefined_flag=unsupported
  9120. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9121. # support --undefined. This deserves some investigation. FIXME
  9122. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9123. else
  9124. ld_shlibs=no
  9125. fi
  9126. ;;
  9127. cygwin* | mingw* | pw32* | cegcc*)
  9128. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9129. # as there is no search path for DLLs.
  9130. hardcode_libdir_flag_spec='-L$libdir'
  9131. export_dynamic_flag_spec='$wl--export-all-symbols'
  9132. allow_undefined_flag=unsupported
  9133. always_export_symbols=no
  9134. enable_shared_with_static_runtimes=yes
  9135. 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'
  9136. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9137. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9138. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9139. # If the export-symbols file already is a .def file, use it as
  9140. # is; otherwise, prepend EXPORTS...
  9141. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9142. cp $export_symbols $output_objdir/$soname.def;
  9143. else
  9144. echo EXPORTS > $output_objdir/$soname.def;
  9145. cat $export_symbols >> $output_objdir/$soname.def;
  9146. fi~
  9147. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9148. else
  9149. ld_shlibs=no
  9150. fi
  9151. ;;
  9152. haiku*)
  9153. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9154. link_all_deplibs=yes
  9155. ;;
  9156. os2*)
  9157. hardcode_libdir_flag_spec='-L$libdir'
  9158. hardcode_minus_L=yes
  9159. allow_undefined_flag=unsupported
  9160. shrext_cmds=.dll
  9161. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9162. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9163. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9164. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9165. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9166. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9167. emximp -o $lib $output_objdir/$libname.def'
  9168. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9169. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9170. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9171. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9172. prefix_cmds="$SED"~
  9173. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9174. prefix_cmds="$prefix_cmds -e 1d";
  9175. fi~
  9176. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9177. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9178. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9179. emximp -o $lib $output_objdir/$libname.def'
  9180. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9181. enable_shared_with_static_runtimes=yes
  9182. ;;
  9183. interix[3-9]*)
  9184. hardcode_direct=no
  9185. hardcode_shlibpath_var=no
  9186. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9187. export_dynamic_flag_spec='$wl-E'
  9188. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9189. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9190. # default) and relocated if they conflict, which is a slow very memory
  9191. # consuming and fragmenting process. To avoid this, we pick a random,
  9192. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9193. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9194. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9195. 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'
  9196. ;;
  9197. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9198. tmp_diet=no
  9199. if test linux-dietlibc = "$host_os"; then
  9200. case $cc_basename in
  9201. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9202. esac
  9203. fi
  9204. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9205. && test no = "$tmp_diet"
  9206. then
  9207. tmp_addflag=' $pic_flag'
  9208. tmp_sharedflag='-shared'
  9209. case $cc_basename,$host_cpu in
  9210. pgcc*) # Portland Group C compiler
  9211. 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'
  9212. tmp_addflag=' $pic_flag'
  9213. ;;
  9214. pgf77* | pgf90* | pgf95* | pgfortran*)
  9215. # Portland Group f77 and f90 compilers
  9216. 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'
  9217. tmp_addflag=' $pic_flag -Mnomain' ;;
  9218. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9219. tmp_addflag=' -i_dynamic' ;;
  9220. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9221. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9222. ifc* | ifort*) # Intel Fortran compiler
  9223. tmp_addflag=' -nofor_main' ;;
  9224. lf95*) # Lahey Fortran 8.1
  9225. whole_archive_flag_spec=
  9226. tmp_sharedflag='--shared' ;;
  9227. nagfor*) # NAGFOR 5.3
  9228. tmp_sharedflag='-Wl,-shared' ;;
  9229. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9230. tmp_sharedflag='-qmkshrobj'
  9231. tmp_addflag= ;;
  9232. nvcc*) # Cuda Compiler Driver 2.2
  9233. 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'
  9234. compiler_needs_object=yes
  9235. ;;
  9236. esac
  9237. case `$CC -V 2>&1 | sed 5q` in
  9238. *Sun\ C*) # Sun C 5.9
  9239. 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'
  9240. compiler_needs_object=yes
  9241. tmp_sharedflag='-G' ;;
  9242. *Sun\ F*) # Sun Fortran 8.3
  9243. tmp_sharedflag='-G' ;;
  9244. esac
  9245. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9246. if test yes = "$supports_anon_versioning"; then
  9247. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9248. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9249. echo "local: *; };" >> $output_objdir/$libname.ver~
  9250. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9251. fi
  9252. case $cc_basename in
  9253. tcc*)
  9254. export_dynamic_flag_spec='-rdynamic'
  9255. ;;
  9256. xlf* | bgf* | bgxlf* | mpixlf*)
  9257. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9258. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9259. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9260. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9261. if test yes = "$supports_anon_versioning"; then
  9262. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9263. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9264. echo "local: *; };" >> $output_objdir/$libname.ver~
  9265. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9266. fi
  9267. ;;
  9268. esac
  9269. else
  9270. ld_shlibs=no
  9271. fi
  9272. ;;
  9273. netbsd* | netbsdelf*-gnu)
  9274. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9275. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9276. wlarc=
  9277. else
  9278. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9279. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9280. fi
  9281. ;;
  9282. solaris*)
  9283. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9284. ld_shlibs=no
  9285. cat <<_LT_EOF 1>&2
  9286. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9287. *** create shared libraries on Solaris systems. Therefore, libtool
  9288. *** is disabling shared libraries support. We urge you to upgrade GNU
  9289. *** binutils to release 2.9.1 or newer. Another option is to modify
  9290. *** your PATH or compiler configuration so that the native linker is
  9291. *** used, and then restart.
  9292. _LT_EOF
  9293. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9294. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9295. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9296. else
  9297. ld_shlibs=no
  9298. fi
  9299. ;;
  9300. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9301. case `$LD -v 2>&1` in
  9302. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9303. ld_shlibs=no
  9304. cat <<_LT_EOF 1>&2
  9305. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9306. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9307. *** is disabling shared libraries support. We urge you to upgrade GNU
  9308. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9309. *** your PATH or compiler configuration so that the native linker is
  9310. *** used, and then restart.
  9311. _LT_EOF
  9312. ;;
  9313. *)
  9314. # For security reasons, it is highly recommended that you always
  9315. # use absolute paths for naming shared libraries, and exclude the
  9316. # DT_RUNPATH tag from executables and libraries. But doing so
  9317. # requires that you compile everything twice, which is a pain.
  9318. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9319. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9320. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9321. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9322. else
  9323. ld_shlibs=no
  9324. fi
  9325. ;;
  9326. esac
  9327. ;;
  9328. sunos4*)
  9329. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9330. wlarc=
  9331. hardcode_direct=yes
  9332. hardcode_shlibpath_var=no
  9333. ;;
  9334. *)
  9335. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9336. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9337. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9338. else
  9339. ld_shlibs=no
  9340. fi
  9341. ;;
  9342. esac
  9343. if test no = "$ld_shlibs"; then
  9344. runpath_var=
  9345. hardcode_libdir_flag_spec=
  9346. export_dynamic_flag_spec=
  9347. whole_archive_flag_spec=
  9348. fi
  9349. else
  9350. # PORTME fill in a description of your system's linker (not GNU ld)
  9351. case $host_os in
  9352. aix3*)
  9353. allow_undefined_flag=unsupported
  9354. always_export_symbols=yes
  9355. 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'
  9356. # Note: this linker hardcodes the directories in LIBPATH if there
  9357. # are no directories specified by -L.
  9358. hardcode_minus_L=yes
  9359. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9360. # Neither direct hardcoding nor static linking is supported with a
  9361. # broken collect2.
  9362. hardcode_direct=unsupported
  9363. fi
  9364. ;;
  9365. aix[4-9]*)
  9366. if test ia64 = "$host_cpu"; then
  9367. # On IA64, the linker does run time linking by default, so we don't
  9368. # have to do anything special.
  9369. aix_use_runtimelinking=no
  9370. exp_sym_flag='-Bexport'
  9371. no_entry_flag=
  9372. else
  9373. # If we're using GNU nm, then we don't want the "-C" option.
  9374. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9375. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9376. # weak defined symbols like other global defined symbols, whereas
  9377. # GNU nm marks them as "W".
  9378. # While the 'weak' keyword is ignored in the Export File, we need
  9379. # it in the Import File for the 'aix-soname' feature, so we have
  9380. # to replace the "-B" option with "-P" for AIX nm.
  9381. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9382. 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'
  9383. else
  9384. 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'
  9385. fi
  9386. aix_use_runtimelinking=no
  9387. # Test if we are trying to use run time linking or normal
  9388. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9389. # have runtime linking enabled, and use it for executables.
  9390. # For shared libraries, we enable/disable runtime linking
  9391. # depending on the kind of the shared library created -
  9392. # when "with_aix_soname,aix_use_runtimelinking" is:
  9393. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9394. # "aix,yes" lib.so shared, rtl:yes, for executables
  9395. # lib.a static archive
  9396. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9397. # lib.a(lib.so.V) shared, rtl:no, for executables
  9398. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9399. # lib.a(lib.so.V) shared, rtl:no
  9400. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9401. # lib.a static archive
  9402. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9403. for ld_flag in $LDFLAGS; do
  9404. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9405. aix_use_runtimelinking=yes
  9406. break
  9407. fi
  9408. done
  9409. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9410. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9411. # so we don't have lib.a shared libs to link our executables.
  9412. # We have to force runtime linking in this case.
  9413. aix_use_runtimelinking=yes
  9414. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9415. fi
  9416. ;;
  9417. esac
  9418. exp_sym_flag='-bexport'
  9419. no_entry_flag='-bnoentry'
  9420. fi
  9421. # When large executables or shared objects are built, AIX ld can
  9422. # have problems creating the table of contents. If linking a library
  9423. # or program results in "error TOC overflow" add -mminimal-toc to
  9424. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9425. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9426. archive_cmds=''
  9427. hardcode_direct=yes
  9428. hardcode_direct_absolute=yes
  9429. hardcode_libdir_separator=':'
  9430. link_all_deplibs=yes
  9431. file_list_spec='$wl-f,'
  9432. case $with_aix_soname,$aix_use_runtimelinking in
  9433. aix,*) ;; # traditional, no import file
  9434. svr4,* | *,yes) # use import file
  9435. # The Import File defines what to hardcode.
  9436. hardcode_direct=no
  9437. hardcode_direct_absolute=no
  9438. ;;
  9439. esac
  9440. if test yes = "$GCC"; then
  9441. case $host_os in aix4.[012]|aix4.[012].*)
  9442. # We only want to do this on AIX 4.2 and lower, the check
  9443. # below for broken collect2 doesn't work under 4.3+
  9444. collect2name=`$CC -print-prog-name=collect2`
  9445. if test -f "$collect2name" &&
  9446. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9447. then
  9448. # We have reworked collect2
  9449. :
  9450. else
  9451. # We have old collect2
  9452. hardcode_direct=unsupported
  9453. # It fails to find uninstalled libraries when the uninstalled
  9454. # path is not listed in the libpath. Setting hardcode_minus_L
  9455. # to unsupported forces relinking
  9456. hardcode_minus_L=yes
  9457. hardcode_libdir_flag_spec='-L$libdir'
  9458. hardcode_libdir_separator=
  9459. fi
  9460. ;;
  9461. esac
  9462. shared_flag='-shared'
  9463. if test yes = "$aix_use_runtimelinking"; then
  9464. shared_flag="$shared_flag "'$wl-G'
  9465. fi
  9466. # Need to ensure runtime linking is disabled for the traditional
  9467. # shared library, or the linker may eventually find shared libraries
  9468. # /with/ Import File - we do not want to mix them.
  9469. shared_flag_aix='-shared'
  9470. shared_flag_svr4='-shared $wl-G'
  9471. else
  9472. # not using gcc
  9473. if test ia64 = "$host_cpu"; then
  9474. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9475. # chokes on -Wl,-G. The following line is correct:
  9476. shared_flag='-G'
  9477. else
  9478. if test yes = "$aix_use_runtimelinking"; then
  9479. shared_flag='$wl-G'
  9480. else
  9481. shared_flag='$wl-bM:SRE'
  9482. fi
  9483. shared_flag_aix='$wl-bM:SRE'
  9484. shared_flag_svr4='$wl-G'
  9485. fi
  9486. fi
  9487. export_dynamic_flag_spec='$wl-bexpall'
  9488. # It seems that -bexpall does not export symbols beginning with
  9489. # underscore (_), so it is better to generate a list of symbols to export.
  9490. always_export_symbols=yes
  9491. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9492. # Warning - without using the other runtime loading flags (-brtl),
  9493. # -berok will link without error, but may produce a broken library.
  9494. allow_undefined_flag='-berok'
  9495. # Determine the default libpath from the value encoded in an
  9496. # empty executable.
  9497. if test set = "${lt_cv_aix_libpath+set}"; then
  9498. aix_libpath=$lt_cv_aix_libpath
  9499. else
  9500. if ${lt_cv_aix_libpath_+:} false; then :
  9501. $as_echo_n "(cached) " >&6
  9502. else
  9503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9504. /* end confdefs.h. */
  9505. int
  9506. main ()
  9507. {
  9508. ;
  9509. return 0;
  9510. }
  9511. _ACEOF
  9512. if ac_fn_c_try_link "$LINENO"; then :
  9513. lt_aix_libpath_sed='
  9514. /Import File Strings/,/^$/ {
  9515. /^0/ {
  9516. s/^0 *\([^ ]*\) *$/\1/
  9517. p
  9518. }
  9519. }'
  9520. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9521. # Check for a 64-bit object if we didn't find anything.
  9522. if test -z "$lt_cv_aix_libpath_"; then
  9523. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9524. fi
  9525. fi
  9526. rm -f core conftest.err conftest.$ac_objext \
  9527. conftest$ac_exeext conftest.$ac_ext
  9528. if test -z "$lt_cv_aix_libpath_"; then
  9529. lt_cv_aix_libpath_=/usr/lib:/lib
  9530. fi
  9531. fi
  9532. aix_libpath=$lt_cv_aix_libpath_
  9533. fi
  9534. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9535. 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
  9536. else
  9537. if test ia64 = "$host_cpu"; then
  9538. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9539. allow_undefined_flag="-z nodefs"
  9540. 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"
  9541. else
  9542. # Determine the default libpath from the value encoded in an
  9543. # empty executable.
  9544. if test set = "${lt_cv_aix_libpath+set}"; then
  9545. aix_libpath=$lt_cv_aix_libpath
  9546. else
  9547. if ${lt_cv_aix_libpath_+:} false; then :
  9548. $as_echo_n "(cached) " >&6
  9549. else
  9550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9551. /* end confdefs.h. */
  9552. int
  9553. main ()
  9554. {
  9555. ;
  9556. return 0;
  9557. }
  9558. _ACEOF
  9559. if ac_fn_c_try_link "$LINENO"; then :
  9560. lt_aix_libpath_sed='
  9561. /Import File Strings/,/^$/ {
  9562. /^0/ {
  9563. s/^0 *\([^ ]*\) *$/\1/
  9564. p
  9565. }
  9566. }'
  9567. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9568. # Check for a 64-bit object if we didn't find anything.
  9569. if test -z "$lt_cv_aix_libpath_"; then
  9570. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9571. fi
  9572. fi
  9573. rm -f core conftest.err conftest.$ac_objext \
  9574. conftest$ac_exeext conftest.$ac_ext
  9575. if test -z "$lt_cv_aix_libpath_"; then
  9576. lt_cv_aix_libpath_=/usr/lib:/lib
  9577. fi
  9578. fi
  9579. aix_libpath=$lt_cv_aix_libpath_
  9580. fi
  9581. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9582. # Warning - without using the other run time loading flags,
  9583. # -berok will link without error, but may produce a broken library.
  9584. no_undefined_flag=' $wl-bernotok'
  9585. allow_undefined_flag=' $wl-berok'
  9586. if test yes = "$with_gnu_ld"; then
  9587. # We only use this code for GNU lds that support --whole-archive.
  9588. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9589. else
  9590. # Exported symbols can be pulled into shared objects from archives
  9591. whole_archive_flag_spec='$convenience'
  9592. fi
  9593. archive_cmds_need_lc=yes
  9594. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9595. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9596. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9597. if test svr4 != "$with_aix_soname"; then
  9598. # This is similar to how AIX traditionally builds its shared libraries.
  9599. 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'
  9600. fi
  9601. if test aix != "$with_aix_soname"; then
  9602. 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'
  9603. else
  9604. # used by -dlpreopen to get the symbols
  9605. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9606. fi
  9607. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9608. fi
  9609. fi
  9610. ;;
  9611. amigaos*)
  9612. case $host_cpu in
  9613. powerpc)
  9614. # see comment about AmigaOS4 .so support
  9615. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9616. archive_expsym_cmds=''
  9617. ;;
  9618. m68k)
  9619. 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)'
  9620. hardcode_libdir_flag_spec='-L$libdir'
  9621. hardcode_minus_L=yes
  9622. ;;
  9623. esac
  9624. ;;
  9625. bsdi[45]*)
  9626. export_dynamic_flag_spec=-rdynamic
  9627. ;;
  9628. cygwin* | mingw* | pw32* | cegcc*)
  9629. # When not using gcc, we currently assume that we are using
  9630. # Microsoft Visual C++.
  9631. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9632. # no search path for DLLs.
  9633. case $cc_basename in
  9634. cl*)
  9635. # Native MSVC
  9636. hardcode_libdir_flag_spec=' '
  9637. allow_undefined_flag=unsupported
  9638. always_export_symbols=yes
  9639. file_list_spec='@'
  9640. # Tell ltmain to make .lib files, not .a files.
  9641. libext=lib
  9642. # Tell ltmain to make .dll files, not .so files.
  9643. shrext_cmds=.dll
  9644. # FIXME: Setting linknames here is a bad hack.
  9645. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9646. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9647. cp "$export_symbols" "$output_objdir/$soname.def";
  9648. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9649. else
  9650. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9651. fi~
  9652. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9653. linknames='
  9654. # The linker will not automatically build a static lib if we build a DLL.
  9655. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9656. enable_shared_with_static_runtimes=yes
  9657. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9658. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9659. # Don't use ranlib
  9660. old_postinstall_cmds='chmod 644 $oldlib'
  9661. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9662. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9663. case $lt_outputfile in
  9664. *.exe|*.EXE) ;;
  9665. *)
  9666. lt_outputfile=$lt_outputfile.exe
  9667. lt_tool_outputfile=$lt_tool_outputfile.exe
  9668. ;;
  9669. esac~
  9670. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9671. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9672. $RM "$lt_outputfile.manifest";
  9673. fi'
  9674. ;;
  9675. *)
  9676. # Assume MSVC wrapper
  9677. hardcode_libdir_flag_spec=' '
  9678. allow_undefined_flag=unsupported
  9679. # Tell ltmain to make .lib files, not .a files.
  9680. libext=lib
  9681. # Tell ltmain to make .dll files, not .so files.
  9682. shrext_cmds=.dll
  9683. # FIXME: Setting linknames here is a bad hack.
  9684. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9685. # The linker will automatically build a .lib file if we build a DLL.
  9686. old_archive_from_new_cmds='true'
  9687. # FIXME: Should let the user specify the lib program.
  9688. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9689. enable_shared_with_static_runtimes=yes
  9690. ;;
  9691. esac
  9692. ;;
  9693. darwin* | rhapsody*)
  9694. archive_cmds_need_lc=no
  9695. hardcode_direct=no
  9696. hardcode_automatic=yes
  9697. hardcode_shlibpath_var=unsupported
  9698. if test yes = "$lt_cv_ld_force_load"; then
  9699. 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\"`'
  9700. else
  9701. whole_archive_flag_spec=''
  9702. fi
  9703. link_all_deplibs=yes
  9704. allow_undefined_flag=$_lt_dar_allow_undefined
  9705. case $cc_basename in
  9706. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9707. *) _lt_dar_can_shared=$GCC ;;
  9708. esac
  9709. if test yes = "$_lt_dar_can_shared"; then
  9710. output_verbose_link_cmd=func_echo_all
  9711. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9712. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9713. 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"
  9714. 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"
  9715. else
  9716. ld_shlibs=no
  9717. fi
  9718. ;;
  9719. dgux*)
  9720. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9721. hardcode_libdir_flag_spec='-L$libdir'
  9722. hardcode_shlibpath_var=no
  9723. ;;
  9724. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9725. # support. Future versions do this automatically, but an explicit c++rt0.o
  9726. # does not break anything, and helps significantly (at the cost of a little
  9727. # extra space).
  9728. freebsd2.2*)
  9729. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9730. hardcode_libdir_flag_spec='-R$libdir'
  9731. hardcode_direct=yes
  9732. hardcode_shlibpath_var=no
  9733. ;;
  9734. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9735. freebsd2.*)
  9736. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9737. hardcode_direct=yes
  9738. hardcode_minus_L=yes
  9739. hardcode_shlibpath_var=no
  9740. ;;
  9741. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9742. freebsd* | dragonfly*)
  9743. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9744. hardcode_libdir_flag_spec='-R$libdir'
  9745. hardcode_direct=yes
  9746. hardcode_shlibpath_var=no
  9747. ;;
  9748. hpux9*)
  9749. if test yes = "$GCC"; then
  9750. 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'
  9751. else
  9752. 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'
  9753. fi
  9754. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9755. hardcode_libdir_separator=:
  9756. hardcode_direct=yes
  9757. # hardcode_minus_L: Not really in the search PATH,
  9758. # but as the default location of the library.
  9759. hardcode_minus_L=yes
  9760. export_dynamic_flag_spec='$wl-E'
  9761. ;;
  9762. hpux10*)
  9763. if test yes,no = "$GCC,$with_gnu_ld"; then
  9764. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9765. else
  9766. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9767. fi
  9768. if test no = "$with_gnu_ld"; then
  9769. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9770. hardcode_libdir_separator=:
  9771. hardcode_direct=yes
  9772. hardcode_direct_absolute=yes
  9773. export_dynamic_flag_spec='$wl-E'
  9774. # hardcode_minus_L: Not really in the search PATH,
  9775. # but as the default location of the library.
  9776. hardcode_minus_L=yes
  9777. fi
  9778. ;;
  9779. hpux11*)
  9780. if test yes,no = "$GCC,$with_gnu_ld"; then
  9781. case $host_cpu in
  9782. hppa*64*)
  9783. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9784. ;;
  9785. ia64*)
  9786. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9787. ;;
  9788. *)
  9789. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9790. ;;
  9791. esac
  9792. else
  9793. case $host_cpu in
  9794. hppa*64*)
  9795. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9796. ;;
  9797. ia64*)
  9798. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9799. ;;
  9800. *)
  9801. # Older versions of the 11.00 compiler do not understand -b yet
  9802. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9804. $as_echo_n "checking if $CC understands -b... " >&6; }
  9805. if ${lt_cv_prog_compiler__b+:} false; then :
  9806. $as_echo_n "(cached) " >&6
  9807. else
  9808. lt_cv_prog_compiler__b=no
  9809. save_LDFLAGS=$LDFLAGS
  9810. LDFLAGS="$LDFLAGS -b"
  9811. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9812. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9813. # The linker can only warn and ignore the option if not recognized
  9814. # So say no if there are warnings
  9815. if test -s conftest.err; then
  9816. # Append any errors to the config.log.
  9817. cat conftest.err 1>&5
  9818. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9819. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9820. if diff conftest.exp conftest.er2 >/dev/null; then
  9821. lt_cv_prog_compiler__b=yes
  9822. fi
  9823. else
  9824. lt_cv_prog_compiler__b=yes
  9825. fi
  9826. fi
  9827. $RM -r conftest*
  9828. LDFLAGS=$save_LDFLAGS
  9829. fi
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9831. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9832. if test yes = "$lt_cv_prog_compiler__b"; then
  9833. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9834. else
  9835. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9836. fi
  9837. ;;
  9838. esac
  9839. fi
  9840. if test no = "$with_gnu_ld"; then
  9841. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9842. hardcode_libdir_separator=:
  9843. case $host_cpu in
  9844. hppa*64*|ia64*)
  9845. hardcode_direct=no
  9846. hardcode_shlibpath_var=no
  9847. ;;
  9848. *)
  9849. hardcode_direct=yes
  9850. hardcode_direct_absolute=yes
  9851. export_dynamic_flag_spec='$wl-E'
  9852. # hardcode_minus_L: Not really in the search PATH,
  9853. # but as the default location of the library.
  9854. hardcode_minus_L=yes
  9855. ;;
  9856. esac
  9857. fi
  9858. ;;
  9859. irix5* | irix6* | nonstopux*)
  9860. if test yes = "$GCC"; then
  9861. 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'
  9862. # Try to use the -exported_symbol ld option, if it does not
  9863. # work, assume that -exports_file does not work either and
  9864. # implicitly export all symbols.
  9865. # This should be the same for all languages, so no per-tag cache variable.
  9866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9867. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9868. if ${lt_cv_irix_exported_symbol+:} false; then :
  9869. $as_echo_n "(cached) " >&6
  9870. else
  9871. save_LDFLAGS=$LDFLAGS
  9872. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9874. /* end confdefs.h. */
  9875. int foo (void) { return 0; }
  9876. _ACEOF
  9877. if ac_fn_c_try_link "$LINENO"; then :
  9878. lt_cv_irix_exported_symbol=yes
  9879. else
  9880. lt_cv_irix_exported_symbol=no
  9881. fi
  9882. rm -f core conftest.err conftest.$ac_objext \
  9883. conftest$ac_exeext conftest.$ac_ext
  9884. LDFLAGS=$save_LDFLAGS
  9885. fi
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9887. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9888. if test yes = "$lt_cv_irix_exported_symbol"; then
  9889. 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'
  9890. fi
  9891. link_all_deplibs=no
  9892. else
  9893. 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'
  9894. 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'
  9895. fi
  9896. archive_cmds_need_lc='no'
  9897. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9898. hardcode_libdir_separator=:
  9899. inherit_rpath=yes
  9900. link_all_deplibs=yes
  9901. ;;
  9902. linux*)
  9903. case $cc_basename in
  9904. tcc*)
  9905. # Fabrice Bellard et al's Tiny C Compiler
  9906. ld_shlibs=yes
  9907. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9908. ;;
  9909. esac
  9910. ;;
  9911. netbsd* | netbsdelf*-gnu)
  9912. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9913. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9914. else
  9915. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9916. fi
  9917. hardcode_libdir_flag_spec='-R$libdir'
  9918. hardcode_direct=yes
  9919. hardcode_shlibpath_var=no
  9920. ;;
  9921. newsos6)
  9922. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9923. hardcode_direct=yes
  9924. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9925. hardcode_libdir_separator=:
  9926. hardcode_shlibpath_var=no
  9927. ;;
  9928. *nto* | *qnx*)
  9929. ;;
  9930. openbsd* | bitrig*)
  9931. if test -f /usr/libexec/ld.so; then
  9932. hardcode_direct=yes
  9933. hardcode_shlibpath_var=no
  9934. hardcode_direct_absolute=yes
  9935. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9936. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9937. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9938. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9939. export_dynamic_flag_spec='$wl-E'
  9940. else
  9941. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9942. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9943. fi
  9944. else
  9945. ld_shlibs=no
  9946. fi
  9947. ;;
  9948. os2*)
  9949. hardcode_libdir_flag_spec='-L$libdir'
  9950. hardcode_minus_L=yes
  9951. allow_undefined_flag=unsupported
  9952. shrext_cmds=.dll
  9953. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9954. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9955. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9956. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9957. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9958. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9959. emximp -o $lib $output_objdir/$libname.def'
  9960. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9961. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9962. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9963. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9964. prefix_cmds="$SED"~
  9965. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9966. prefix_cmds="$prefix_cmds -e 1d";
  9967. fi~
  9968. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9969. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9970. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9971. emximp -o $lib $output_objdir/$libname.def'
  9972. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9973. enable_shared_with_static_runtimes=yes
  9974. ;;
  9975. osf3*)
  9976. if test yes = "$GCC"; then
  9977. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9978. 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'
  9979. else
  9980. allow_undefined_flag=' -expect_unresolved \*'
  9981. 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'
  9982. fi
  9983. archive_cmds_need_lc='no'
  9984. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9985. hardcode_libdir_separator=:
  9986. ;;
  9987. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9988. if test yes = "$GCC"; then
  9989. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9990. 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'
  9991. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9992. else
  9993. allow_undefined_flag=' -expect_unresolved \*'
  9994. 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'
  9995. 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~
  9996. $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'
  9997. # Both c and cxx compiler support -rpath directly
  9998. hardcode_libdir_flag_spec='-rpath $libdir'
  9999. fi
  10000. archive_cmds_need_lc='no'
  10001. hardcode_libdir_separator=:
  10002. ;;
  10003. solaris*)
  10004. no_undefined_flag=' -z defs'
  10005. if test yes = "$GCC"; then
  10006. wlarc='$wl'
  10007. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10008. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10009. $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'
  10010. else
  10011. case `$CC -V 2>&1` in
  10012. *"Compilers 5.0"*)
  10013. wlarc=''
  10014. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10015. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10016. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10017. ;;
  10018. *)
  10019. wlarc='$wl'
  10020. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10021. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10022. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10023. ;;
  10024. esac
  10025. fi
  10026. hardcode_libdir_flag_spec='-R$libdir'
  10027. hardcode_shlibpath_var=no
  10028. case $host_os in
  10029. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10030. *)
  10031. # The compiler driver will combine and reorder linker options,
  10032. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10033. # but is careful enough not to reorder.
  10034. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10035. if test yes = "$GCC"; then
  10036. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10037. else
  10038. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10039. fi
  10040. ;;
  10041. esac
  10042. link_all_deplibs=yes
  10043. ;;
  10044. sunos4*)
  10045. if test sequent = "$host_vendor"; then
  10046. # Use $CC to link under sequent, because it throws in some extra .o
  10047. # files that make .init and .fini sections work.
  10048. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10049. else
  10050. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10051. fi
  10052. hardcode_libdir_flag_spec='-L$libdir'
  10053. hardcode_direct=yes
  10054. hardcode_minus_L=yes
  10055. hardcode_shlibpath_var=no
  10056. ;;
  10057. sysv4)
  10058. case $host_vendor in
  10059. sni)
  10060. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10061. hardcode_direct=yes # is this really true???
  10062. ;;
  10063. siemens)
  10064. ## LD is ld it makes a PLAMLIB
  10065. ## CC just makes a GrossModule.
  10066. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10067. reload_cmds='$CC -r -o $output$reload_objs'
  10068. hardcode_direct=no
  10069. ;;
  10070. motorola)
  10071. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10072. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10073. ;;
  10074. esac
  10075. runpath_var='LD_RUN_PATH'
  10076. hardcode_shlibpath_var=no
  10077. ;;
  10078. sysv4.3*)
  10079. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10080. hardcode_shlibpath_var=no
  10081. export_dynamic_flag_spec='-Bexport'
  10082. ;;
  10083. sysv4*MP*)
  10084. if test -d /usr/nec; then
  10085. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10086. hardcode_shlibpath_var=no
  10087. runpath_var=LD_RUN_PATH
  10088. hardcode_runpath_var=yes
  10089. ld_shlibs=yes
  10090. fi
  10091. ;;
  10092. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10093. no_undefined_flag='$wl-z,text'
  10094. archive_cmds_need_lc=no
  10095. hardcode_shlibpath_var=no
  10096. runpath_var='LD_RUN_PATH'
  10097. if test yes = "$GCC"; then
  10098. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10099. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10100. else
  10101. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10102. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10103. fi
  10104. ;;
  10105. sysv5* | sco3.2v5* | sco5v6*)
  10106. # Note: We CANNOT use -z defs as we might desire, because we do not
  10107. # link with -lc, and that would cause any symbols used from libc to
  10108. # always be unresolved, which means just about no library would
  10109. # ever link correctly. If we're not using GNU ld we use -z text
  10110. # though, which does catch some bad symbols but isn't as heavy-handed
  10111. # as -z defs.
  10112. no_undefined_flag='$wl-z,text'
  10113. allow_undefined_flag='$wl-z,nodefs'
  10114. archive_cmds_need_lc=no
  10115. hardcode_shlibpath_var=no
  10116. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10117. hardcode_libdir_separator=':'
  10118. link_all_deplibs=yes
  10119. export_dynamic_flag_spec='$wl-Bexport'
  10120. runpath_var='LD_RUN_PATH'
  10121. if test yes = "$GCC"; then
  10122. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10123. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10124. else
  10125. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10126. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10127. fi
  10128. ;;
  10129. uts4*)
  10130. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10131. hardcode_libdir_flag_spec='-L$libdir'
  10132. hardcode_shlibpath_var=no
  10133. ;;
  10134. *)
  10135. ld_shlibs=no
  10136. ;;
  10137. esac
  10138. if test sni = "$host_vendor"; then
  10139. case $host in
  10140. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10141. export_dynamic_flag_spec='$wl-Blargedynsym'
  10142. ;;
  10143. esac
  10144. fi
  10145. fi
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10147. $as_echo "$ld_shlibs" >&6; }
  10148. test no = "$ld_shlibs" && can_build_shared=no
  10149. with_gnu_ld=$with_gnu_ld
  10150. #
  10151. # Do we need to explicitly link libc?
  10152. #
  10153. case "x$archive_cmds_need_lc" in
  10154. x|xyes)
  10155. # Assume -lc should be added
  10156. archive_cmds_need_lc=yes
  10157. if test yes,yes = "$GCC,$enable_shared"; then
  10158. case $archive_cmds in
  10159. *'~'*)
  10160. # FIXME: we may have to deal with multi-command sequences.
  10161. ;;
  10162. '$CC '*)
  10163. # Test whether the compiler implicitly links with -lc since on some
  10164. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10165. # to ld, don't add -lc before -lgcc.
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10167. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10168. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10169. $as_echo_n "(cached) " >&6
  10170. else
  10171. $RM conftest*
  10172. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10173. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10174. (eval $ac_compile) 2>&5
  10175. ac_status=$?
  10176. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10177. test $ac_status = 0; } 2>conftest.err; then
  10178. soname=conftest
  10179. lib=conftest
  10180. libobjs=conftest.$ac_objext
  10181. deplibs=
  10182. wl=$lt_prog_compiler_wl
  10183. pic_flag=$lt_prog_compiler_pic
  10184. compiler_flags=-v
  10185. linker_flags=-v
  10186. verstring=
  10187. output_objdir=.
  10188. libname=conftest
  10189. lt_save_allow_undefined_flag=$allow_undefined_flag
  10190. allow_undefined_flag=
  10191. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10192. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10193. ac_status=$?
  10194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10195. test $ac_status = 0; }
  10196. then
  10197. lt_cv_archive_cmds_need_lc=no
  10198. else
  10199. lt_cv_archive_cmds_need_lc=yes
  10200. fi
  10201. allow_undefined_flag=$lt_save_allow_undefined_flag
  10202. else
  10203. cat conftest.err 1>&5
  10204. fi
  10205. $RM conftest*
  10206. fi
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10208. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10209. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10210. ;;
  10211. esac
  10212. fi
  10213. ;;
  10214. esac
  10215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10216. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10217. if test yes = "$GCC"; then
  10218. case $host_os in
  10219. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10220. *) lt_awk_arg='/^libraries:/' ;;
  10221. esac
  10222. case $host_os in
  10223. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10224. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10225. esac
  10226. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10227. case $lt_search_path_spec in
  10228. *\;*)
  10229. # if the path contains ";" then we assume it to be the separator
  10230. # otherwise default to the standard path separator (i.e. ":") - it is
  10231. # assumed that no part of a normal pathname contains ";" but that should
  10232. # okay in the real world where ";" in dirpaths is itself problematic.
  10233. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10234. ;;
  10235. *)
  10236. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10237. ;;
  10238. esac
  10239. # Ok, now we have the path, separated by spaces, we can step through it
  10240. # and add multilib dir if necessary...
  10241. lt_tmp_lt_search_path_spec=
  10242. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10243. # ...but if some path component already ends with the multilib dir we assume
  10244. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10245. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10246. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10247. lt_multi_os_dir=
  10248. ;;
  10249. esac
  10250. for lt_sys_path in $lt_search_path_spec; do
  10251. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10252. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10253. elif test -n "$lt_multi_os_dir"; then
  10254. test -d "$lt_sys_path" && \
  10255. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10256. fi
  10257. done
  10258. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10259. BEGIN {RS = " "; FS = "/|\n";} {
  10260. lt_foo = "";
  10261. lt_count = 0;
  10262. for (lt_i = NF; lt_i > 0; lt_i--) {
  10263. if ($lt_i != "" && $lt_i != ".") {
  10264. if ($lt_i == "..") {
  10265. lt_count++;
  10266. } else {
  10267. if (lt_count == 0) {
  10268. lt_foo = "/" $lt_i lt_foo;
  10269. } else {
  10270. lt_count--;
  10271. }
  10272. }
  10273. }
  10274. }
  10275. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10276. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10277. }'`
  10278. # AWK program above erroneously prepends '/' to C:/dos/paths
  10279. # for these hosts.
  10280. case $host_os in
  10281. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10282. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10283. esac
  10284. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10285. else
  10286. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10287. fi
  10288. library_names_spec=
  10289. libname_spec='lib$name'
  10290. soname_spec=
  10291. shrext_cmds=.so
  10292. postinstall_cmds=
  10293. postuninstall_cmds=
  10294. finish_cmds=
  10295. finish_eval=
  10296. shlibpath_var=
  10297. shlibpath_overrides_runpath=unknown
  10298. version_type=none
  10299. dynamic_linker="$host_os ld.so"
  10300. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10301. need_lib_prefix=unknown
  10302. hardcode_into_libs=no
  10303. # when you set need_version to no, make sure it does not cause -set_version
  10304. # flags to be left without arguments
  10305. need_version=unknown
  10306. case $host_os in
  10307. aix3*)
  10308. version_type=linux # correct to gnu/linux during the next big refactor
  10309. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10310. shlibpath_var=LIBPATH
  10311. # AIX 3 has no versioning support, so we append a major version to the name.
  10312. soname_spec='$libname$release$shared_ext$major'
  10313. ;;
  10314. aix[4-9]*)
  10315. version_type=linux # correct to gnu/linux during the next big refactor
  10316. need_lib_prefix=no
  10317. need_version=no
  10318. hardcode_into_libs=yes
  10319. if test ia64 = "$host_cpu"; then
  10320. # AIX 5 supports IA64
  10321. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10322. shlibpath_var=LD_LIBRARY_PATH
  10323. else
  10324. # With GCC up to 2.95.x, collect2 would create an import file
  10325. # for dependence libraries. The import file would start with
  10326. # the line '#! .'. This would cause the generated library to
  10327. # depend on '.', always an invalid library. This was fixed in
  10328. # development snapshots of GCC prior to 3.0.
  10329. case $host_os in
  10330. aix4 | aix4.[01] | aix4.[01].*)
  10331. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10332. echo ' yes '
  10333. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10334. :
  10335. else
  10336. can_build_shared=no
  10337. fi
  10338. ;;
  10339. esac
  10340. # Using Import Files as archive members, it is possible to support
  10341. # filename-based versioning of shared library archives on AIX. While
  10342. # this would work for both with and without runtime linking, it will
  10343. # prevent static linking of such archives. So we do filename-based
  10344. # shared library versioning with .so extension only, which is used
  10345. # when both runtime linking and shared linking is enabled.
  10346. # Unfortunately, runtime linking may impact performance, so we do
  10347. # not want this to be the default eventually. Also, we use the
  10348. # versioned .so libs for executables only if there is the -brtl
  10349. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10350. # To allow for filename-based versioning support, we need to create
  10351. # libNAME.so.V as an archive file, containing:
  10352. # *) an Import File, referring to the versioned filename of the
  10353. # archive as well as the shared archive member, telling the
  10354. # bitwidth (32 or 64) of that shared object, and providing the
  10355. # list of exported symbols of that shared object, eventually
  10356. # decorated with the 'weak' keyword
  10357. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10358. # it being seen by the linker.
  10359. # At run time we better use the real file rather than another symlink,
  10360. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10361. case $with_aix_soname,$aix_use_runtimelinking in
  10362. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10363. # soname into executable. Probably we can add versioning support to
  10364. # collect2, so additional links can be useful in future.
  10365. aix,yes) # traditional libtool
  10366. dynamic_linker='AIX unversionable lib.so'
  10367. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10368. # instead of lib<name>.a to let people know that these are not
  10369. # typical AIX shared libraries.
  10370. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10371. ;;
  10372. aix,no) # traditional AIX only
  10373. dynamic_linker='AIX lib.a(lib.so.V)'
  10374. # We preserve .a as extension for shared libraries through AIX4.2
  10375. # and later when we are not doing run time linking.
  10376. library_names_spec='$libname$release.a $libname.a'
  10377. soname_spec='$libname$release$shared_ext$major'
  10378. ;;
  10379. svr4,*) # full svr4 only
  10380. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10381. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10382. # We do not specify a path in Import Files, so LIBPATH fires.
  10383. shlibpath_overrides_runpath=yes
  10384. ;;
  10385. *,yes) # both, prefer svr4
  10386. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10387. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10388. # unpreferred sharedlib libNAME.a needs extra handling
  10389. 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"'
  10390. 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"'
  10391. # We do not specify a path in Import Files, so LIBPATH fires.
  10392. shlibpath_overrides_runpath=yes
  10393. ;;
  10394. *,no) # both, prefer aix
  10395. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10396. library_names_spec='$libname$release.a $libname.a'
  10397. soname_spec='$libname$release$shared_ext$major'
  10398. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10399. 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)'
  10400. 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"'
  10401. ;;
  10402. esac
  10403. shlibpath_var=LIBPATH
  10404. fi
  10405. ;;
  10406. amigaos*)
  10407. case $host_cpu in
  10408. powerpc)
  10409. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10410. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10411. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10412. ;;
  10413. m68k)
  10414. library_names_spec='$libname.ixlibrary $libname.a'
  10415. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10416. 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'
  10417. ;;
  10418. esac
  10419. ;;
  10420. beos*)
  10421. library_names_spec='$libname$shared_ext'
  10422. dynamic_linker="$host_os ld.so"
  10423. shlibpath_var=LIBRARY_PATH
  10424. ;;
  10425. bsdi[45]*)
  10426. version_type=linux # correct to gnu/linux during the next big refactor
  10427. need_version=no
  10428. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10429. soname_spec='$libname$release$shared_ext$major'
  10430. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10431. shlibpath_var=LD_LIBRARY_PATH
  10432. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10433. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10434. # the default ld.so.conf also contains /usr/contrib/lib and
  10435. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10436. # libtool to hard-code these into programs
  10437. ;;
  10438. cygwin* | mingw* | pw32* | cegcc*)
  10439. version_type=windows
  10440. shrext_cmds=.dll
  10441. need_version=no
  10442. need_lib_prefix=no
  10443. case $GCC,$cc_basename in
  10444. yes,*)
  10445. # gcc
  10446. library_names_spec='$libname.dll.a'
  10447. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10448. postinstall_cmds='base_file=`basename \$file`~
  10449. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10450. dldir=$destdir/`dirname \$dlpath`~
  10451. test -d \$dldir || mkdir -p \$dldir~
  10452. $install_prog $dir/$dlname \$dldir/$dlname~
  10453. chmod a+x \$dldir/$dlname~
  10454. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10455. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10456. fi'
  10457. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10458. dlpath=$dir/\$dldll~
  10459. $RM \$dlpath'
  10460. shlibpath_overrides_runpath=yes
  10461. case $host_os in
  10462. cygwin*)
  10463. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10464. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10465. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10466. ;;
  10467. mingw* | cegcc*)
  10468. # MinGW DLLs use traditional 'lib' prefix
  10469. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10470. ;;
  10471. pw32*)
  10472. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10473. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10474. ;;
  10475. esac
  10476. dynamic_linker='Win32 ld.exe'
  10477. ;;
  10478. *,cl*)
  10479. # Native MSVC
  10480. libname_spec='$name'
  10481. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10482. library_names_spec='$libname.dll.lib'
  10483. case $build_os in
  10484. mingw*)
  10485. sys_lib_search_path_spec=
  10486. lt_save_ifs=$IFS
  10487. IFS=';'
  10488. for lt_path in $LIB
  10489. do
  10490. IFS=$lt_save_ifs
  10491. # Let DOS variable expansion print the short 8.3 style file name.
  10492. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10493. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10494. done
  10495. IFS=$lt_save_ifs
  10496. # Convert to MSYS style.
  10497. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10498. ;;
  10499. cygwin*)
  10500. # Convert to unix form, then to dos form, then back to unix form
  10501. # but this time dos style (no spaces!) so that the unix form looks
  10502. # like /cygdrive/c/PROGRA~1:/cygdr...
  10503. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10504. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10505. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10506. ;;
  10507. *)
  10508. sys_lib_search_path_spec=$LIB
  10509. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10510. # It is most probably a Windows format PATH.
  10511. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10512. else
  10513. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10514. fi
  10515. # FIXME: find the short name or the path components, as spaces are
  10516. # common. (e.g. "Program Files" -> "PROGRA~1")
  10517. ;;
  10518. esac
  10519. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10520. postinstall_cmds='base_file=`basename \$file`~
  10521. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10522. dldir=$destdir/`dirname \$dlpath`~
  10523. test -d \$dldir || mkdir -p \$dldir~
  10524. $install_prog $dir/$dlname \$dldir/$dlname'
  10525. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10526. dlpath=$dir/\$dldll~
  10527. $RM \$dlpath'
  10528. shlibpath_overrides_runpath=yes
  10529. dynamic_linker='Win32 link.exe'
  10530. ;;
  10531. *)
  10532. # Assume MSVC wrapper
  10533. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10534. dynamic_linker='Win32 ld.exe'
  10535. ;;
  10536. esac
  10537. # FIXME: first we should search . and the directory the executable is in
  10538. shlibpath_var=PATH
  10539. ;;
  10540. darwin* | rhapsody*)
  10541. dynamic_linker="$host_os dyld"
  10542. version_type=darwin
  10543. need_lib_prefix=no
  10544. need_version=no
  10545. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10546. soname_spec='$libname$release$major$shared_ext'
  10547. shlibpath_overrides_runpath=yes
  10548. shlibpath_var=DYLD_LIBRARY_PATH
  10549. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10550. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10551. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10552. ;;
  10553. dgux*)
  10554. version_type=linux # correct to gnu/linux during the next big refactor
  10555. need_lib_prefix=no
  10556. need_version=no
  10557. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10558. soname_spec='$libname$release$shared_ext$major'
  10559. shlibpath_var=LD_LIBRARY_PATH
  10560. ;;
  10561. freebsd* | dragonfly*)
  10562. # DragonFly does not have aout. When/if they implement a new
  10563. # versioning mechanism, adjust this.
  10564. if test -x /usr/bin/objformat; then
  10565. objformat=`/usr/bin/objformat`
  10566. else
  10567. case $host_os in
  10568. freebsd[23].*) objformat=aout ;;
  10569. *) objformat=elf ;;
  10570. esac
  10571. fi
  10572. version_type=freebsd-$objformat
  10573. case $version_type in
  10574. freebsd-elf*)
  10575. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10576. soname_spec='$libname$release$shared_ext$major'
  10577. need_version=no
  10578. need_lib_prefix=no
  10579. ;;
  10580. freebsd-*)
  10581. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10582. need_version=yes
  10583. ;;
  10584. esac
  10585. shlibpath_var=LD_LIBRARY_PATH
  10586. case $host_os in
  10587. freebsd2.*)
  10588. shlibpath_overrides_runpath=yes
  10589. ;;
  10590. freebsd3.[01]* | freebsdelf3.[01]*)
  10591. shlibpath_overrides_runpath=yes
  10592. hardcode_into_libs=yes
  10593. ;;
  10594. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10595. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10596. shlibpath_overrides_runpath=no
  10597. hardcode_into_libs=yes
  10598. ;;
  10599. *) # from 4.6 on, and DragonFly
  10600. shlibpath_overrides_runpath=yes
  10601. hardcode_into_libs=yes
  10602. ;;
  10603. esac
  10604. ;;
  10605. haiku*)
  10606. version_type=linux # correct to gnu/linux during the next big refactor
  10607. need_lib_prefix=no
  10608. need_version=no
  10609. dynamic_linker="$host_os runtime_loader"
  10610. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10611. soname_spec='$libname$release$shared_ext$major'
  10612. shlibpath_var=LIBRARY_PATH
  10613. shlibpath_overrides_runpath=no
  10614. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10615. hardcode_into_libs=yes
  10616. ;;
  10617. hpux9* | hpux10* | hpux11*)
  10618. # Give a soname corresponding to the major version so that dld.sl refuses to
  10619. # link against other versions.
  10620. version_type=sunos
  10621. need_lib_prefix=no
  10622. need_version=no
  10623. case $host_cpu in
  10624. ia64*)
  10625. shrext_cmds='.so'
  10626. hardcode_into_libs=yes
  10627. dynamic_linker="$host_os dld.so"
  10628. shlibpath_var=LD_LIBRARY_PATH
  10629. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10630. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10631. soname_spec='$libname$release$shared_ext$major'
  10632. if test 32 = "$HPUX_IA64_MODE"; then
  10633. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10634. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10635. else
  10636. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10637. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10638. fi
  10639. ;;
  10640. hppa*64*)
  10641. shrext_cmds='.sl'
  10642. hardcode_into_libs=yes
  10643. dynamic_linker="$host_os dld.sl"
  10644. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10645. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10646. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10647. soname_spec='$libname$release$shared_ext$major'
  10648. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10649. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10650. ;;
  10651. *)
  10652. shrext_cmds='.sl'
  10653. dynamic_linker="$host_os dld.sl"
  10654. shlibpath_var=SHLIB_PATH
  10655. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10656. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10657. soname_spec='$libname$release$shared_ext$major'
  10658. ;;
  10659. esac
  10660. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10661. postinstall_cmds='chmod 555 $lib'
  10662. # or fails outright, so override atomically:
  10663. install_override_mode=555
  10664. ;;
  10665. interix[3-9]*)
  10666. version_type=linux # correct to gnu/linux during the next big refactor
  10667. need_lib_prefix=no
  10668. need_version=no
  10669. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10670. soname_spec='$libname$release$shared_ext$major'
  10671. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10672. shlibpath_var=LD_LIBRARY_PATH
  10673. shlibpath_overrides_runpath=no
  10674. hardcode_into_libs=yes
  10675. ;;
  10676. irix5* | irix6* | nonstopux*)
  10677. case $host_os in
  10678. nonstopux*) version_type=nonstopux ;;
  10679. *)
  10680. if test yes = "$lt_cv_prog_gnu_ld"; then
  10681. version_type=linux # correct to gnu/linux during the next big refactor
  10682. else
  10683. version_type=irix
  10684. fi ;;
  10685. esac
  10686. need_lib_prefix=no
  10687. need_version=no
  10688. soname_spec='$libname$release$shared_ext$major'
  10689. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10690. case $host_os in
  10691. irix5* | nonstopux*)
  10692. libsuff= shlibsuff=
  10693. ;;
  10694. *)
  10695. case $LD in # libtool.m4 will add one of these switches to LD
  10696. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10697. libsuff= shlibsuff= libmagic=32-bit;;
  10698. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10699. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10700. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10701. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10702. *) libsuff= shlibsuff= libmagic=never-match;;
  10703. esac
  10704. ;;
  10705. esac
  10706. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10707. shlibpath_overrides_runpath=no
  10708. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10709. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10710. hardcode_into_libs=yes
  10711. ;;
  10712. # No shared lib support for Linux oldld, aout, or coff.
  10713. linux*oldld* | linux*aout* | linux*coff*)
  10714. dynamic_linker=no
  10715. ;;
  10716. linux*android*)
  10717. version_type=none # Android doesn't support versioned libraries.
  10718. need_lib_prefix=no
  10719. need_version=no
  10720. library_names_spec='$libname$release$shared_ext'
  10721. soname_spec='$libname$release$shared_ext'
  10722. finish_cmds=
  10723. shlibpath_var=LD_LIBRARY_PATH
  10724. shlibpath_overrides_runpath=yes
  10725. # This implies no fast_install, which is unacceptable.
  10726. # Some rework will be needed to allow for fast_install
  10727. # before this can be enabled.
  10728. hardcode_into_libs=yes
  10729. dynamic_linker='Android linker'
  10730. # Don't embed -rpath directories since the linker doesn't support them.
  10731. hardcode_libdir_flag_spec='-L$libdir'
  10732. ;;
  10733. # This must be glibc/ELF.
  10734. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10735. version_type=linux # correct to gnu/linux during the next big refactor
  10736. need_lib_prefix=no
  10737. need_version=no
  10738. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10739. soname_spec='$libname$release$shared_ext$major'
  10740. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10741. shlibpath_var=LD_LIBRARY_PATH
  10742. shlibpath_overrides_runpath=no
  10743. # Some binutils ld are patched to set DT_RUNPATH
  10744. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10745. $as_echo_n "(cached) " >&6
  10746. else
  10747. lt_cv_shlibpath_overrides_runpath=no
  10748. save_LDFLAGS=$LDFLAGS
  10749. save_libdir=$libdir
  10750. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10751. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10753. /* end confdefs.h. */
  10754. int
  10755. main ()
  10756. {
  10757. ;
  10758. return 0;
  10759. }
  10760. _ACEOF
  10761. if ac_fn_c_try_link "$LINENO"; then :
  10762. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10763. lt_cv_shlibpath_overrides_runpath=yes
  10764. fi
  10765. fi
  10766. rm -f core conftest.err conftest.$ac_objext \
  10767. conftest$ac_exeext conftest.$ac_ext
  10768. LDFLAGS=$save_LDFLAGS
  10769. libdir=$save_libdir
  10770. fi
  10771. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10772. # This implies no fast_install, which is unacceptable.
  10773. # Some rework will be needed to allow for fast_install
  10774. # before this can be enabled.
  10775. hardcode_into_libs=yes
  10776. # Ideally, we could use ldconfig to report *all* directores which are
  10777. # searched for libraries, however this is still not possible. Aside from not
  10778. # being certain /sbin/ldconfig is available, command
  10779. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10780. # even though it is searched at run-time. Try to do the best guess by
  10781. # appending ld.so.conf contents (and includes) to the search path.
  10782. if test -f /etc/ld.so.conf; then
  10783. 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' ' '`
  10784. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10785. fi
  10786. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10787. # powerpc, because MkLinux only supported shared libraries with the
  10788. # GNU dynamic linker. Since this was broken with cross compilers,
  10789. # most powerpc-linux boxes support dynamic linking these days and
  10790. # people can always --disable-shared, the test was removed, and we
  10791. # assume the GNU/Linux dynamic linker is in use.
  10792. dynamic_linker='GNU/Linux ld.so'
  10793. ;;
  10794. netbsdelf*-gnu)
  10795. version_type=linux
  10796. need_lib_prefix=no
  10797. need_version=no
  10798. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10799. soname_spec='${libname}${release}${shared_ext}$major'
  10800. shlibpath_var=LD_LIBRARY_PATH
  10801. shlibpath_overrides_runpath=no
  10802. hardcode_into_libs=yes
  10803. dynamic_linker='NetBSD ld.elf_so'
  10804. ;;
  10805. netbsd*)
  10806. version_type=sunos
  10807. need_lib_prefix=no
  10808. need_version=no
  10809. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10810. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10811. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10812. dynamic_linker='NetBSD (a.out) ld.so'
  10813. else
  10814. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10815. soname_spec='$libname$release$shared_ext$major'
  10816. dynamic_linker='NetBSD ld.elf_so'
  10817. fi
  10818. shlibpath_var=LD_LIBRARY_PATH
  10819. shlibpath_overrides_runpath=yes
  10820. hardcode_into_libs=yes
  10821. ;;
  10822. newsos6)
  10823. version_type=linux # correct to gnu/linux during the next big refactor
  10824. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10825. shlibpath_var=LD_LIBRARY_PATH
  10826. shlibpath_overrides_runpath=yes
  10827. ;;
  10828. *nto* | *qnx*)
  10829. version_type=qnx
  10830. need_lib_prefix=no
  10831. need_version=no
  10832. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10833. soname_spec='$libname$release$shared_ext$major'
  10834. shlibpath_var=LD_LIBRARY_PATH
  10835. shlibpath_overrides_runpath=no
  10836. hardcode_into_libs=yes
  10837. dynamic_linker='ldqnx.so'
  10838. ;;
  10839. openbsd* | bitrig*)
  10840. version_type=sunos
  10841. sys_lib_dlsearch_path_spec=/usr/lib
  10842. need_lib_prefix=no
  10843. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10844. need_version=no
  10845. else
  10846. need_version=yes
  10847. fi
  10848. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10849. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10850. shlibpath_var=LD_LIBRARY_PATH
  10851. shlibpath_overrides_runpath=yes
  10852. ;;
  10853. os2*)
  10854. libname_spec='$name'
  10855. version_type=windows
  10856. shrext_cmds=.dll
  10857. need_version=no
  10858. need_lib_prefix=no
  10859. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10860. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10861. v=$($ECHO $release$versuffix | tr -d .-);
  10862. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10863. $ECHO $n$v`$shared_ext'
  10864. library_names_spec='${libname}_dll.$libext'
  10865. dynamic_linker='OS/2 ld.exe'
  10866. shlibpath_var=BEGINLIBPATH
  10867. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10868. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10869. postinstall_cmds='base_file=`basename \$file`~
  10870. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10871. dldir=$destdir/`dirname \$dlpath`~
  10872. test -d \$dldir || mkdir -p \$dldir~
  10873. $install_prog $dir/$dlname \$dldir/$dlname~
  10874. chmod a+x \$dldir/$dlname~
  10875. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10876. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10877. fi'
  10878. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10879. dlpath=$dir/\$dldll~
  10880. $RM \$dlpath'
  10881. ;;
  10882. osf3* | osf4* | osf5*)
  10883. version_type=osf
  10884. need_lib_prefix=no
  10885. need_version=no
  10886. soname_spec='$libname$release$shared_ext$major'
  10887. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10888. shlibpath_var=LD_LIBRARY_PATH
  10889. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10890. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10891. ;;
  10892. rdos*)
  10893. dynamic_linker=no
  10894. ;;
  10895. solaris*)
  10896. version_type=linux # correct to gnu/linux during the next big refactor
  10897. need_lib_prefix=no
  10898. need_version=no
  10899. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10900. soname_spec='$libname$release$shared_ext$major'
  10901. shlibpath_var=LD_LIBRARY_PATH
  10902. shlibpath_overrides_runpath=yes
  10903. hardcode_into_libs=yes
  10904. # ldd complains unless libraries are executable
  10905. postinstall_cmds='chmod +x $lib'
  10906. ;;
  10907. sunos4*)
  10908. version_type=sunos
  10909. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10910. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10911. shlibpath_var=LD_LIBRARY_PATH
  10912. shlibpath_overrides_runpath=yes
  10913. if test yes = "$with_gnu_ld"; then
  10914. need_lib_prefix=no
  10915. fi
  10916. need_version=yes
  10917. ;;
  10918. sysv4 | sysv4.3*)
  10919. version_type=linux # correct to gnu/linux during the next big refactor
  10920. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10921. soname_spec='$libname$release$shared_ext$major'
  10922. shlibpath_var=LD_LIBRARY_PATH
  10923. case $host_vendor in
  10924. sni)
  10925. shlibpath_overrides_runpath=no
  10926. need_lib_prefix=no
  10927. runpath_var=LD_RUN_PATH
  10928. ;;
  10929. siemens)
  10930. need_lib_prefix=no
  10931. ;;
  10932. motorola)
  10933. need_lib_prefix=no
  10934. need_version=no
  10935. shlibpath_overrides_runpath=no
  10936. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10937. ;;
  10938. esac
  10939. ;;
  10940. sysv4*MP*)
  10941. if test -d /usr/nec; then
  10942. version_type=linux # correct to gnu/linux during the next big refactor
  10943. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10944. soname_spec='$libname$shared_ext.$major'
  10945. shlibpath_var=LD_LIBRARY_PATH
  10946. fi
  10947. ;;
  10948. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10949. version_type=sco
  10950. need_lib_prefix=no
  10951. need_version=no
  10952. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10953. soname_spec='$libname$release$shared_ext$major'
  10954. shlibpath_var=LD_LIBRARY_PATH
  10955. shlibpath_overrides_runpath=yes
  10956. hardcode_into_libs=yes
  10957. if test yes = "$with_gnu_ld"; then
  10958. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10959. else
  10960. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10961. case $host_os in
  10962. sco3.2v5*)
  10963. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10964. ;;
  10965. esac
  10966. fi
  10967. sys_lib_dlsearch_path_spec='/usr/lib'
  10968. ;;
  10969. tpf*)
  10970. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10971. version_type=linux # correct to gnu/linux during the next big refactor
  10972. need_lib_prefix=no
  10973. need_version=no
  10974. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10975. shlibpath_var=LD_LIBRARY_PATH
  10976. shlibpath_overrides_runpath=no
  10977. hardcode_into_libs=yes
  10978. ;;
  10979. uts4*)
  10980. version_type=linux # correct to gnu/linux during the next big refactor
  10981. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10982. soname_spec='$libname$release$shared_ext$major'
  10983. shlibpath_var=LD_LIBRARY_PATH
  10984. ;;
  10985. *)
  10986. dynamic_linker=no
  10987. ;;
  10988. esac
  10989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10990. $as_echo "$dynamic_linker" >&6; }
  10991. test no = "$dynamic_linker" && can_build_shared=no
  10992. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10993. if test yes = "$GCC"; then
  10994. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10995. fi
  10996. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10997. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10998. fi
  10999. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11000. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11001. fi
  11002. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11003. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11004. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11005. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11006. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11007. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11009. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11010. hardcode_action=
  11011. if test -n "$hardcode_libdir_flag_spec" ||
  11012. test -n "$runpath_var" ||
  11013. test yes = "$hardcode_automatic"; then
  11014. # We can hardcode non-existent directories.
  11015. if test no != "$hardcode_direct" &&
  11016. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11017. # have to relink, otherwise we might link with an installed library
  11018. # when we should be linking with a yet-to-be-installed one
  11019. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11020. test no != "$hardcode_minus_L"; then
  11021. # Linking always hardcodes the temporary library directory.
  11022. hardcode_action=relink
  11023. else
  11024. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11025. hardcode_action=immediate
  11026. fi
  11027. else
  11028. # We cannot hardcode anything, or else we can only hardcode existing
  11029. # directories.
  11030. hardcode_action=unsupported
  11031. fi
  11032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11033. $as_echo "$hardcode_action" >&6; }
  11034. if test relink = "$hardcode_action" ||
  11035. test yes = "$inherit_rpath"; then
  11036. # Fast installation is not supported
  11037. enable_fast_install=no
  11038. elif test yes = "$shlibpath_overrides_runpath" ||
  11039. test no = "$enable_shared"; then
  11040. # Fast installation is not necessary
  11041. enable_fast_install=needless
  11042. fi
  11043. if test yes != "$enable_dlopen"; then
  11044. enable_dlopen=unknown
  11045. enable_dlopen_self=unknown
  11046. enable_dlopen_self_static=unknown
  11047. else
  11048. lt_cv_dlopen=no
  11049. lt_cv_dlopen_libs=
  11050. case $host_os in
  11051. beos*)
  11052. lt_cv_dlopen=load_add_on
  11053. lt_cv_dlopen_libs=
  11054. lt_cv_dlopen_self=yes
  11055. ;;
  11056. mingw* | pw32* | cegcc*)
  11057. lt_cv_dlopen=LoadLibrary
  11058. lt_cv_dlopen_libs=
  11059. ;;
  11060. cygwin*)
  11061. lt_cv_dlopen=dlopen
  11062. lt_cv_dlopen_libs=
  11063. ;;
  11064. darwin*)
  11065. # if libdl is installed we need to link against it
  11066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11067. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11068. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11069. $as_echo_n "(cached) " >&6
  11070. else
  11071. ac_check_lib_save_LIBS=$LIBS
  11072. LIBS="-ldl $LIBS"
  11073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11074. /* end confdefs.h. */
  11075. /* Override any GCC internal prototype to avoid an error.
  11076. Use char because int might match the return type of a GCC
  11077. builtin and then its argument prototype would still apply. */
  11078. #ifdef __cplusplus
  11079. extern "C"
  11080. #endif
  11081. char dlopen ();
  11082. int
  11083. main ()
  11084. {
  11085. return dlopen ();
  11086. ;
  11087. return 0;
  11088. }
  11089. _ACEOF
  11090. if ac_fn_c_try_link "$LINENO"; then :
  11091. ac_cv_lib_dl_dlopen=yes
  11092. else
  11093. ac_cv_lib_dl_dlopen=no
  11094. fi
  11095. rm -f core conftest.err conftest.$ac_objext \
  11096. conftest$ac_exeext conftest.$ac_ext
  11097. LIBS=$ac_check_lib_save_LIBS
  11098. fi
  11099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11100. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11101. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11102. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11103. else
  11104. lt_cv_dlopen=dyld
  11105. lt_cv_dlopen_libs=
  11106. lt_cv_dlopen_self=yes
  11107. fi
  11108. ;;
  11109. tpf*)
  11110. # Don't try to run any link tests for TPF. We know it's impossible
  11111. # because TPF is a cross-compiler, and we know how we open DSOs.
  11112. lt_cv_dlopen=dlopen
  11113. lt_cv_dlopen_libs=
  11114. lt_cv_dlopen_self=no
  11115. ;;
  11116. *)
  11117. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11118. if test "x$ac_cv_func_shl_load" = xyes; then :
  11119. lt_cv_dlopen=shl_load
  11120. else
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11122. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11123. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11124. $as_echo_n "(cached) " >&6
  11125. else
  11126. ac_check_lib_save_LIBS=$LIBS
  11127. LIBS="-ldld $LIBS"
  11128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11129. /* end confdefs.h. */
  11130. /* Override any GCC internal prototype to avoid an error.
  11131. Use char because int might match the return type of a GCC
  11132. builtin and then its argument prototype would still apply. */
  11133. #ifdef __cplusplus
  11134. extern "C"
  11135. #endif
  11136. char shl_load ();
  11137. int
  11138. main ()
  11139. {
  11140. return shl_load ();
  11141. ;
  11142. return 0;
  11143. }
  11144. _ACEOF
  11145. if ac_fn_c_try_link "$LINENO"; then :
  11146. ac_cv_lib_dld_shl_load=yes
  11147. else
  11148. ac_cv_lib_dld_shl_load=no
  11149. fi
  11150. rm -f core conftest.err conftest.$ac_objext \
  11151. conftest$ac_exeext conftest.$ac_ext
  11152. LIBS=$ac_check_lib_save_LIBS
  11153. fi
  11154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11155. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11156. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11157. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11158. else
  11159. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11160. if test "x$ac_cv_func_dlopen" = xyes; then :
  11161. lt_cv_dlopen=dlopen
  11162. else
  11163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11164. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11165. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11166. $as_echo_n "(cached) " >&6
  11167. else
  11168. ac_check_lib_save_LIBS=$LIBS
  11169. LIBS="-ldl $LIBS"
  11170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11171. /* end confdefs.h. */
  11172. /* Override any GCC internal prototype to avoid an error.
  11173. Use char because int might match the return type of a GCC
  11174. builtin and then its argument prototype would still apply. */
  11175. #ifdef __cplusplus
  11176. extern "C"
  11177. #endif
  11178. char dlopen ();
  11179. int
  11180. main ()
  11181. {
  11182. return dlopen ();
  11183. ;
  11184. return 0;
  11185. }
  11186. _ACEOF
  11187. if ac_fn_c_try_link "$LINENO"; then :
  11188. ac_cv_lib_dl_dlopen=yes
  11189. else
  11190. ac_cv_lib_dl_dlopen=no
  11191. fi
  11192. rm -f core conftest.err conftest.$ac_objext \
  11193. conftest$ac_exeext conftest.$ac_ext
  11194. LIBS=$ac_check_lib_save_LIBS
  11195. fi
  11196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11197. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11198. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11199. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11200. else
  11201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11202. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11203. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11204. $as_echo_n "(cached) " >&6
  11205. else
  11206. ac_check_lib_save_LIBS=$LIBS
  11207. LIBS="-lsvld $LIBS"
  11208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11209. /* end confdefs.h. */
  11210. /* Override any GCC internal prototype to avoid an error.
  11211. Use char because int might match the return type of a GCC
  11212. builtin and then its argument prototype would still apply. */
  11213. #ifdef __cplusplus
  11214. extern "C"
  11215. #endif
  11216. char dlopen ();
  11217. int
  11218. main ()
  11219. {
  11220. return dlopen ();
  11221. ;
  11222. return 0;
  11223. }
  11224. _ACEOF
  11225. if ac_fn_c_try_link "$LINENO"; then :
  11226. ac_cv_lib_svld_dlopen=yes
  11227. else
  11228. ac_cv_lib_svld_dlopen=no
  11229. fi
  11230. rm -f core conftest.err conftest.$ac_objext \
  11231. conftest$ac_exeext conftest.$ac_ext
  11232. LIBS=$ac_check_lib_save_LIBS
  11233. fi
  11234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11235. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11236. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11237. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11238. else
  11239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11240. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11241. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11242. $as_echo_n "(cached) " >&6
  11243. else
  11244. ac_check_lib_save_LIBS=$LIBS
  11245. LIBS="-ldld $LIBS"
  11246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11247. /* end confdefs.h. */
  11248. /* Override any GCC internal prototype to avoid an error.
  11249. Use char because int might match the return type of a GCC
  11250. builtin and then its argument prototype would still apply. */
  11251. #ifdef __cplusplus
  11252. extern "C"
  11253. #endif
  11254. char dld_link ();
  11255. int
  11256. main ()
  11257. {
  11258. return dld_link ();
  11259. ;
  11260. return 0;
  11261. }
  11262. _ACEOF
  11263. if ac_fn_c_try_link "$LINENO"; then :
  11264. ac_cv_lib_dld_dld_link=yes
  11265. else
  11266. ac_cv_lib_dld_dld_link=no
  11267. fi
  11268. rm -f core conftest.err conftest.$ac_objext \
  11269. conftest$ac_exeext conftest.$ac_ext
  11270. LIBS=$ac_check_lib_save_LIBS
  11271. fi
  11272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11273. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11274. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11275. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11276. fi
  11277. fi
  11278. fi
  11279. fi
  11280. fi
  11281. fi
  11282. ;;
  11283. esac
  11284. if test no = "$lt_cv_dlopen"; then
  11285. enable_dlopen=no
  11286. else
  11287. enable_dlopen=yes
  11288. fi
  11289. case $lt_cv_dlopen in
  11290. dlopen)
  11291. save_CPPFLAGS=$CPPFLAGS
  11292. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11293. save_LDFLAGS=$LDFLAGS
  11294. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11295. save_LIBS=$LIBS
  11296. LIBS="$lt_cv_dlopen_libs $LIBS"
  11297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11298. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11299. if ${lt_cv_dlopen_self+:} false; then :
  11300. $as_echo_n "(cached) " >&6
  11301. else
  11302. if test yes = "$cross_compiling"; then :
  11303. lt_cv_dlopen_self=cross
  11304. else
  11305. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11306. lt_status=$lt_dlunknown
  11307. cat > conftest.$ac_ext <<_LT_EOF
  11308. #line $LINENO "configure"
  11309. #include "confdefs.h"
  11310. #if HAVE_DLFCN_H
  11311. #include <dlfcn.h>
  11312. #endif
  11313. #include <stdio.h>
  11314. #ifdef RTLD_GLOBAL
  11315. # define LT_DLGLOBAL RTLD_GLOBAL
  11316. #else
  11317. # ifdef DL_GLOBAL
  11318. # define LT_DLGLOBAL DL_GLOBAL
  11319. # else
  11320. # define LT_DLGLOBAL 0
  11321. # endif
  11322. #endif
  11323. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11324. find out it does not work in some platform. */
  11325. #ifndef LT_DLLAZY_OR_NOW
  11326. # ifdef RTLD_LAZY
  11327. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11328. # else
  11329. # ifdef DL_LAZY
  11330. # define LT_DLLAZY_OR_NOW DL_LAZY
  11331. # else
  11332. # ifdef RTLD_NOW
  11333. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11334. # else
  11335. # ifdef DL_NOW
  11336. # define LT_DLLAZY_OR_NOW DL_NOW
  11337. # else
  11338. # define LT_DLLAZY_OR_NOW 0
  11339. # endif
  11340. # endif
  11341. # endif
  11342. # endif
  11343. #endif
  11344. /* When -fvisibility=hidden is used, assume the code has been annotated
  11345. correspondingly for the symbols needed. */
  11346. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11347. int fnord () __attribute__((visibility("default")));
  11348. #endif
  11349. int fnord () { return 42; }
  11350. int main ()
  11351. {
  11352. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11353. int status = $lt_dlunknown;
  11354. if (self)
  11355. {
  11356. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11357. else
  11358. {
  11359. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11360. else puts (dlerror ());
  11361. }
  11362. /* dlclose (self); */
  11363. }
  11364. else
  11365. puts (dlerror ());
  11366. return status;
  11367. }
  11368. _LT_EOF
  11369. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11370. (eval $ac_link) 2>&5
  11371. ac_status=$?
  11372. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11373. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11374. (./conftest; exit; ) >&5 2>/dev/null
  11375. lt_status=$?
  11376. case x$lt_status in
  11377. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11378. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11379. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11380. esac
  11381. else :
  11382. # compilation failed
  11383. lt_cv_dlopen_self=no
  11384. fi
  11385. fi
  11386. rm -fr conftest*
  11387. fi
  11388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11389. $as_echo "$lt_cv_dlopen_self" >&6; }
  11390. if test yes = "$lt_cv_dlopen_self"; then
  11391. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11393. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11394. if ${lt_cv_dlopen_self_static+:} false; then :
  11395. $as_echo_n "(cached) " >&6
  11396. else
  11397. if test yes = "$cross_compiling"; then :
  11398. lt_cv_dlopen_self_static=cross
  11399. else
  11400. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11401. lt_status=$lt_dlunknown
  11402. cat > conftest.$ac_ext <<_LT_EOF
  11403. #line $LINENO "configure"
  11404. #include "confdefs.h"
  11405. #if HAVE_DLFCN_H
  11406. #include <dlfcn.h>
  11407. #endif
  11408. #include <stdio.h>
  11409. #ifdef RTLD_GLOBAL
  11410. # define LT_DLGLOBAL RTLD_GLOBAL
  11411. #else
  11412. # ifdef DL_GLOBAL
  11413. # define LT_DLGLOBAL DL_GLOBAL
  11414. # else
  11415. # define LT_DLGLOBAL 0
  11416. # endif
  11417. #endif
  11418. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11419. find out it does not work in some platform. */
  11420. #ifndef LT_DLLAZY_OR_NOW
  11421. # ifdef RTLD_LAZY
  11422. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11423. # else
  11424. # ifdef DL_LAZY
  11425. # define LT_DLLAZY_OR_NOW DL_LAZY
  11426. # else
  11427. # ifdef RTLD_NOW
  11428. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11429. # else
  11430. # ifdef DL_NOW
  11431. # define LT_DLLAZY_OR_NOW DL_NOW
  11432. # else
  11433. # define LT_DLLAZY_OR_NOW 0
  11434. # endif
  11435. # endif
  11436. # endif
  11437. # endif
  11438. #endif
  11439. /* When -fvisibility=hidden is used, assume the code has been annotated
  11440. correspondingly for the symbols needed. */
  11441. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11442. int fnord () __attribute__((visibility("default")));
  11443. #endif
  11444. int fnord () { return 42; }
  11445. int main ()
  11446. {
  11447. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11448. int status = $lt_dlunknown;
  11449. if (self)
  11450. {
  11451. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11452. else
  11453. {
  11454. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11455. else puts (dlerror ());
  11456. }
  11457. /* dlclose (self); */
  11458. }
  11459. else
  11460. puts (dlerror ());
  11461. return status;
  11462. }
  11463. _LT_EOF
  11464. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11465. (eval $ac_link) 2>&5
  11466. ac_status=$?
  11467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11468. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11469. (./conftest; exit; ) >&5 2>/dev/null
  11470. lt_status=$?
  11471. case x$lt_status in
  11472. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11473. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11474. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11475. esac
  11476. else :
  11477. # compilation failed
  11478. lt_cv_dlopen_self_static=no
  11479. fi
  11480. fi
  11481. rm -fr conftest*
  11482. fi
  11483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11484. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11485. fi
  11486. CPPFLAGS=$save_CPPFLAGS
  11487. LDFLAGS=$save_LDFLAGS
  11488. LIBS=$save_LIBS
  11489. ;;
  11490. esac
  11491. case $lt_cv_dlopen_self in
  11492. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11493. *) enable_dlopen_self=unknown ;;
  11494. esac
  11495. case $lt_cv_dlopen_self_static in
  11496. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11497. *) enable_dlopen_self_static=unknown ;;
  11498. esac
  11499. fi
  11500. striplib=
  11501. old_striplib=
  11502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11503. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11504. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11505. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11506. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11508. $as_echo "yes" >&6; }
  11509. else
  11510. # FIXME - insert some real tests, host_os isn't really good enough
  11511. case $host_os in
  11512. darwin*)
  11513. if test -n "$STRIP"; then
  11514. striplib="$STRIP -x"
  11515. old_striplib="$STRIP -S"
  11516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11517. $as_echo "yes" >&6; }
  11518. else
  11519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11520. $as_echo "no" >&6; }
  11521. fi
  11522. ;;
  11523. *)
  11524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11525. $as_echo "no" >&6; }
  11526. ;;
  11527. esac
  11528. fi
  11529. # Report what library types will actually be built
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11531. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11533. $as_echo "$can_build_shared" >&6; }
  11534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11535. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11536. test no = "$can_build_shared" && enable_shared=no
  11537. # On AIX, shared libraries and static libraries use the same namespace, and
  11538. # are all built from PIC.
  11539. case $host_os in
  11540. aix3*)
  11541. test yes = "$enable_shared" && enable_static=no
  11542. if test -n "$RANLIB"; then
  11543. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11544. postinstall_cmds='$RANLIB $lib'
  11545. fi
  11546. ;;
  11547. aix[4-9]*)
  11548. if test ia64 != "$host_cpu"; then
  11549. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11550. yes,aix,yes) ;; # shared object as lib.so file only
  11551. yes,svr4,*) ;; # shared object as lib.so archive member only
  11552. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11553. esac
  11554. fi
  11555. ;;
  11556. esac
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11558. $as_echo "$enable_shared" >&6; }
  11559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11560. $as_echo_n "checking whether to build static libraries... " >&6; }
  11561. # Make sure either enable_shared or enable_static is yes.
  11562. test yes = "$enable_shared" || enable_static=yes
  11563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11564. $as_echo "$enable_static" >&6; }
  11565. fi
  11566. ac_ext=c
  11567. ac_cpp='$CPP $CPPFLAGS'
  11568. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11569. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11570. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11571. CC=$lt_save_CC
  11572. ac_config_commands="$ac_config_commands libtool"
  11573. # Only expand once:
  11574. # By default we simply use the C compiler to build assembly code.
  11575. test "${CCAS+set}" = set || CCAS=$CC
  11576. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  11577. depcc="$CCAS" am_compiler_list=
  11578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11579. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11580. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  11581. $as_echo_n "(cached) " >&6
  11582. else
  11583. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11584. # We make a subdir and do the tests there. Otherwise we can end up
  11585. # making bogus files that we don't know about and never remove. For
  11586. # instance it was reported that on HP-UX the gcc test will end up
  11587. # making a dummy file named 'D' -- because '-MD' means "put the output
  11588. # in D".
  11589. rm -rf conftest.dir
  11590. mkdir conftest.dir
  11591. # Copy depcomp to subdir because otherwise we won't find it if we're
  11592. # using a relative directory.
  11593. cp "$am_depcomp" conftest.dir
  11594. cd conftest.dir
  11595. # We will build objects and dependencies in a subdirectory because
  11596. # it helps to detect inapplicable dependency modes. For instance
  11597. # both Tru64's cc and ICC support -MD to output dependencies as a
  11598. # side effect of compilation, but ICC will put the dependencies in
  11599. # the current directory while Tru64 will put them in the object
  11600. # directory.
  11601. mkdir sub
  11602. am_cv_CCAS_dependencies_compiler_type=none
  11603. if test "$am_compiler_list" = ""; then
  11604. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11605. fi
  11606. am__universal=false
  11607. for depmode in $am_compiler_list; do
  11608. # Setup a source with many dependencies, because some compilers
  11609. # like to wrap large dependency lists on column 80 (with \), and
  11610. # we should not choose a depcomp mode which is confused by this.
  11611. #
  11612. # We need to recreate these files for each test, as the compiler may
  11613. # overwrite some of them when testing with obscure command lines.
  11614. # This happens at least with the AIX C compiler.
  11615. : > sub/conftest.c
  11616. for i in 1 2 3 4 5 6; do
  11617. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11618. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11619. # Solaris 10 /bin/sh.
  11620. echo '/* dummy */' > sub/conftst$i.h
  11621. done
  11622. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11623. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11624. # mode. It turns out that the SunPro C++ compiler does not properly
  11625. # handle '-M -o', and we need to detect this. Also, some Intel
  11626. # versions had trouble with output in subdirs.
  11627. am__obj=sub/conftest.${OBJEXT-o}
  11628. am__minus_obj="-o $am__obj"
  11629. case $depmode in
  11630. gcc)
  11631. # This depmode causes a compiler race in universal mode.
  11632. test "$am__universal" = false || continue
  11633. ;;
  11634. nosideeffect)
  11635. # After this tag, mechanisms are not by side-effect, so they'll
  11636. # only be used when explicitly requested.
  11637. if test "x$enable_dependency_tracking" = xyes; then
  11638. continue
  11639. else
  11640. break
  11641. fi
  11642. ;;
  11643. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11644. # This compiler won't grok '-c -o', but also, the minuso test has
  11645. # not run yet. These depmodes are late enough in the game, and
  11646. # so weak that their functioning should not be impacted.
  11647. am__obj=conftest.${OBJEXT-o}
  11648. am__minus_obj=
  11649. ;;
  11650. none) break ;;
  11651. esac
  11652. if depmode=$depmode \
  11653. source=sub/conftest.c object=$am__obj \
  11654. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11655. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11656. >/dev/null 2>conftest.err &&
  11657. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11658. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11659. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11660. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11661. # icc doesn't choke on unknown options, it will just issue warnings
  11662. # or remarks (even with -Werror). So we grep stderr for any message
  11663. # that says an option was ignored or not supported.
  11664. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11665. # icc: Command line warning: ignoring option '-M'; no argument required
  11666. # The diagnosis changed in icc 8.0:
  11667. # icc: Command line remark: option '-MP' not supported
  11668. if (grep 'ignoring option' conftest.err ||
  11669. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11670. am_cv_CCAS_dependencies_compiler_type=$depmode
  11671. break
  11672. fi
  11673. fi
  11674. done
  11675. cd ..
  11676. rm -rf conftest.dir
  11677. else
  11678. am_cv_CCAS_dependencies_compiler_type=none
  11679. fi
  11680. fi
  11681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  11682. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  11683. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  11684. if
  11685. test "x$enable_dependency_tracking" != xno \
  11686. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  11687. am__fastdepCCAS_TRUE=
  11688. am__fastdepCCAS_FALSE='#'
  11689. else
  11690. am__fastdepCCAS_TRUE='#'
  11691. am__fastdepCCAS_FALSE=
  11692. fi
  11693. ac_ext=cpp
  11694. ac_cpp='$CXXCPP $CPPFLAGS'
  11695. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11696. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11697. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11698. if test -z "$CXX"; then
  11699. if test -n "$CCC"; then
  11700. CXX=$CCC
  11701. else
  11702. if test -n "$ac_tool_prefix"; then
  11703. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11704. do
  11705. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11706. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11708. $as_echo_n "checking for $ac_word... " >&6; }
  11709. if ${ac_cv_prog_CXX+:} false; then :
  11710. $as_echo_n "(cached) " >&6
  11711. else
  11712. if test -n "$CXX"; then
  11713. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11714. else
  11715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11716. for as_dir in $PATH
  11717. do
  11718. IFS=$as_save_IFS
  11719. test -z "$as_dir" && as_dir=.
  11720. for ac_exec_ext in '' $ac_executable_extensions; do
  11721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11722. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11724. break 2
  11725. fi
  11726. done
  11727. done
  11728. IFS=$as_save_IFS
  11729. fi
  11730. fi
  11731. CXX=$ac_cv_prog_CXX
  11732. if test -n "$CXX"; then
  11733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11734. $as_echo "$CXX" >&6; }
  11735. else
  11736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11737. $as_echo "no" >&6; }
  11738. fi
  11739. test -n "$CXX" && break
  11740. done
  11741. fi
  11742. if test -z "$CXX"; then
  11743. ac_ct_CXX=$CXX
  11744. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11745. do
  11746. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11747. set dummy $ac_prog; ac_word=$2
  11748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11749. $as_echo_n "checking for $ac_word... " >&6; }
  11750. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11751. $as_echo_n "(cached) " >&6
  11752. else
  11753. if test -n "$ac_ct_CXX"; then
  11754. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11755. else
  11756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11757. for as_dir in $PATH
  11758. do
  11759. IFS=$as_save_IFS
  11760. test -z "$as_dir" && as_dir=.
  11761. for ac_exec_ext in '' $ac_executable_extensions; do
  11762. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11763. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11765. break 2
  11766. fi
  11767. done
  11768. done
  11769. IFS=$as_save_IFS
  11770. fi
  11771. fi
  11772. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11773. if test -n "$ac_ct_CXX"; then
  11774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11775. $as_echo "$ac_ct_CXX" >&6; }
  11776. else
  11777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11778. $as_echo "no" >&6; }
  11779. fi
  11780. test -n "$ac_ct_CXX" && break
  11781. done
  11782. if test "x$ac_ct_CXX" = x; then
  11783. CXX="g++"
  11784. else
  11785. case $cross_compiling:$ac_tool_warned in
  11786. yes:)
  11787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11788. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11789. ac_tool_warned=yes ;;
  11790. esac
  11791. CXX=$ac_ct_CXX
  11792. fi
  11793. fi
  11794. fi
  11795. fi
  11796. # Provide some information about the compiler.
  11797. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11798. set X $ac_compile
  11799. ac_compiler=$2
  11800. for ac_option in --version -v -V -qversion; do
  11801. { { ac_try="$ac_compiler $ac_option >&5"
  11802. case "(($ac_try" in
  11803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11804. *) ac_try_echo=$ac_try;;
  11805. esac
  11806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11807. $as_echo "$ac_try_echo"; } >&5
  11808. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11809. ac_status=$?
  11810. if test -s conftest.err; then
  11811. sed '10a\
  11812. ... rest of stderr output deleted ...
  11813. 10q' conftest.err >conftest.er1
  11814. cat conftest.er1 >&5
  11815. fi
  11816. rm -f conftest.er1 conftest.err
  11817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11818. test $ac_status = 0; }
  11819. done
  11820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11821. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11822. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11823. $as_echo_n "(cached) " >&6
  11824. else
  11825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11826. /* end confdefs.h. */
  11827. int
  11828. main ()
  11829. {
  11830. #ifndef __GNUC__
  11831. choke me
  11832. #endif
  11833. ;
  11834. return 0;
  11835. }
  11836. _ACEOF
  11837. if ac_fn_cxx_try_compile "$LINENO"; then :
  11838. ac_compiler_gnu=yes
  11839. else
  11840. ac_compiler_gnu=no
  11841. fi
  11842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11843. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11844. fi
  11845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11846. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11847. if test $ac_compiler_gnu = yes; then
  11848. GXX=yes
  11849. else
  11850. GXX=
  11851. fi
  11852. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11853. ac_save_CXXFLAGS=$CXXFLAGS
  11854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11855. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11856. if ${ac_cv_prog_cxx_g+:} false; then :
  11857. $as_echo_n "(cached) " >&6
  11858. else
  11859. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11860. ac_cxx_werror_flag=yes
  11861. ac_cv_prog_cxx_g=no
  11862. CXXFLAGS="-g"
  11863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11864. /* end confdefs.h. */
  11865. int
  11866. main ()
  11867. {
  11868. ;
  11869. return 0;
  11870. }
  11871. _ACEOF
  11872. if ac_fn_cxx_try_compile "$LINENO"; then :
  11873. ac_cv_prog_cxx_g=yes
  11874. else
  11875. CXXFLAGS=""
  11876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11877. /* end confdefs.h. */
  11878. int
  11879. main ()
  11880. {
  11881. ;
  11882. return 0;
  11883. }
  11884. _ACEOF
  11885. if ac_fn_cxx_try_compile "$LINENO"; then :
  11886. else
  11887. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11888. CXXFLAGS="-g"
  11889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11890. /* end confdefs.h. */
  11891. int
  11892. main ()
  11893. {
  11894. ;
  11895. return 0;
  11896. }
  11897. _ACEOF
  11898. if ac_fn_cxx_try_compile "$LINENO"; then :
  11899. ac_cv_prog_cxx_g=yes
  11900. fi
  11901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11902. fi
  11903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11904. fi
  11905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11906. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11907. fi
  11908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11909. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11910. if test "$ac_test_CXXFLAGS" = set; then
  11911. CXXFLAGS=$ac_save_CXXFLAGS
  11912. elif test $ac_cv_prog_cxx_g = yes; then
  11913. if test "$GXX" = yes; then
  11914. CXXFLAGS="-g -O2"
  11915. else
  11916. CXXFLAGS="-g"
  11917. fi
  11918. else
  11919. if test "$GXX" = yes; then
  11920. CXXFLAGS="-O2"
  11921. else
  11922. CXXFLAGS=
  11923. fi
  11924. fi
  11925. ac_ext=c
  11926. ac_cpp='$CPP $CPPFLAGS'
  11927. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11928. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11929. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11930. depcc="$CXX" am_compiler_list=
  11931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11932. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11933. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  11934. $as_echo_n "(cached) " >&6
  11935. else
  11936. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11937. # We make a subdir and do the tests there. Otherwise we can end up
  11938. # making bogus files that we don't know about and never remove. For
  11939. # instance it was reported that on HP-UX the gcc test will end up
  11940. # making a dummy file named 'D' -- because '-MD' means "put the output
  11941. # in D".
  11942. rm -rf conftest.dir
  11943. mkdir conftest.dir
  11944. # Copy depcomp to subdir because otherwise we won't find it if we're
  11945. # using a relative directory.
  11946. cp "$am_depcomp" conftest.dir
  11947. cd conftest.dir
  11948. # We will build objects and dependencies in a subdirectory because
  11949. # it helps to detect inapplicable dependency modes. For instance
  11950. # both Tru64's cc and ICC support -MD to output dependencies as a
  11951. # side effect of compilation, but ICC will put the dependencies in
  11952. # the current directory while Tru64 will put them in the object
  11953. # directory.
  11954. mkdir sub
  11955. am_cv_CXX_dependencies_compiler_type=none
  11956. if test "$am_compiler_list" = ""; then
  11957. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11958. fi
  11959. am__universal=false
  11960. case " $depcc " in #(
  11961. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11962. esac
  11963. for depmode in $am_compiler_list; do
  11964. # Setup a source with many dependencies, because some compilers
  11965. # like to wrap large dependency lists on column 80 (with \), and
  11966. # we should not choose a depcomp mode which is confused by this.
  11967. #
  11968. # We need to recreate these files for each test, as the compiler may
  11969. # overwrite some of them when testing with obscure command lines.
  11970. # This happens at least with the AIX C compiler.
  11971. : > sub/conftest.c
  11972. for i in 1 2 3 4 5 6; do
  11973. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11974. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11975. # Solaris 10 /bin/sh.
  11976. echo '/* dummy */' > sub/conftst$i.h
  11977. done
  11978. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11979. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11980. # mode. It turns out that the SunPro C++ compiler does not properly
  11981. # handle '-M -o', and we need to detect this. Also, some Intel
  11982. # versions had trouble with output in subdirs.
  11983. am__obj=sub/conftest.${OBJEXT-o}
  11984. am__minus_obj="-o $am__obj"
  11985. case $depmode in
  11986. gcc)
  11987. # This depmode causes a compiler race in universal mode.
  11988. test "$am__universal" = false || continue
  11989. ;;
  11990. nosideeffect)
  11991. # After this tag, mechanisms are not by side-effect, so they'll
  11992. # only be used when explicitly requested.
  11993. if test "x$enable_dependency_tracking" = xyes; then
  11994. continue
  11995. else
  11996. break
  11997. fi
  11998. ;;
  11999. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12000. # This compiler won't grok '-c -o', but also, the minuso test has
  12001. # not run yet. These depmodes are late enough in the game, and
  12002. # so weak that their functioning should not be impacted.
  12003. am__obj=conftest.${OBJEXT-o}
  12004. am__minus_obj=
  12005. ;;
  12006. none) break ;;
  12007. esac
  12008. if depmode=$depmode \
  12009. source=sub/conftest.c object=$am__obj \
  12010. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12011. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12012. >/dev/null 2>conftest.err &&
  12013. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12014. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12015. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12016. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12017. # icc doesn't choke on unknown options, it will just issue warnings
  12018. # or remarks (even with -Werror). So we grep stderr for any message
  12019. # that says an option was ignored or not supported.
  12020. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12021. # icc: Command line warning: ignoring option '-M'; no argument required
  12022. # The diagnosis changed in icc 8.0:
  12023. # icc: Command line remark: option '-MP' not supported
  12024. if (grep 'ignoring option' conftest.err ||
  12025. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12026. am_cv_CXX_dependencies_compiler_type=$depmode
  12027. break
  12028. fi
  12029. fi
  12030. done
  12031. cd ..
  12032. rm -rf conftest.dir
  12033. else
  12034. am_cv_CXX_dependencies_compiler_type=none
  12035. fi
  12036. fi
  12037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12038. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12039. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12040. if
  12041. test "x$enable_dependency_tracking" != xno \
  12042. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12043. am__fastdepCXX_TRUE=
  12044. am__fastdepCXX_FALSE='#'
  12045. else
  12046. am__fastdepCXX_TRUE='#'
  12047. am__fastdepCXX_FALSE=
  12048. fi
  12049. func_stripname_cnf ()
  12050. {
  12051. case $2 in
  12052. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12053. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12054. esac
  12055. } # func_stripname_cnf
  12056. if test -n "$CXX" && ( test no != "$CXX" &&
  12057. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12058. (test g++ != "$CXX"))); then
  12059. ac_ext=cpp
  12060. ac_cpp='$CXXCPP $CPPFLAGS'
  12061. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12062. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12063. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12065. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12066. if test -z "$CXXCPP"; then
  12067. if ${ac_cv_prog_CXXCPP+:} false; then :
  12068. $as_echo_n "(cached) " >&6
  12069. else
  12070. # Double quotes because CXXCPP needs to be expanded
  12071. for CXXCPP in "$CXX -E" "/lib/cpp"
  12072. do
  12073. ac_preproc_ok=false
  12074. for ac_cxx_preproc_warn_flag in '' yes
  12075. do
  12076. # Use a header file that comes with gcc, so configuring glibc
  12077. # with a fresh cross-compiler works.
  12078. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12079. # <limits.h> exists even on freestanding compilers.
  12080. # On the NeXT, cc -E runs the code through the compiler's parser,
  12081. # not just through cpp. "Syntax error" is here to catch this case.
  12082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12083. /* end confdefs.h. */
  12084. #ifdef __STDC__
  12085. # include <limits.h>
  12086. #else
  12087. # include <assert.h>
  12088. #endif
  12089. Syntax error
  12090. _ACEOF
  12091. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12092. else
  12093. # Broken: fails on valid input.
  12094. continue
  12095. fi
  12096. rm -f conftest.err conftest.i conftest.$ac_ext
  12097. # OK, works on sane cases. Now check whether nonexistent headers
  12098. # can be detected and how.
  12099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12100. /* end confdefs.h. */
  12101. #include <ac_nonexistent.h>
  12102. _ACEOF
  12103. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12104. # Broken: success on invalid input.
  12105. continue
  12106. else
  12107. # Passes both tests.
  12108. ac_preproc_ok=:
  12109. break
  12110. fi
  12111. rm -f conftest.err conftest.i conftest.$ac_ext
  12112. done
  12113. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12114. rm -f conftest.i conftest.err conftest.$ac_ext
  12115. if $ac_preproc_ok; then :
  12116. break
  12117. fi
  12118. done
  12119. ac_cv_prog_CXXCPP=$CXXCPP
  12120. fi
  12121. CXXCPP=$ac_cv_prog_CXXCPP
  12122. else
  12123. ac_cv_prog_CXXCPP=$CXXCPP
  12124. fi
  12125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12126. $as_echo "$CXXCPP" >&6; }
  12127. ac_preproc_ok=false
  12128. for ac_cxx_preproc_warn_flag in '' yes
  12129. do
  12130. # Use a header file that comes with gcc, so configuring glibc
  12131. # with a fresh cross-compiler works.
  12132. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12133. # <limits.h> exists even on freestanding compilers.
  12134. # On the NeXT, cc -E runs the code through the compiler's parser,
  12135. # not just through cpp. "Syntax error" is here to catch this case.
  12136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12137. /* end confdefs.h. */
  12138. #ifdef __STDC__
  12139. # include <limits.h>
  12140. #else
  12141. # include <assert.h>
  12142. #endif
  12143. Syntax error
  12144. _ACEOF
  12145. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12146. else
  12147. # Broken: fails on valid input.
  12148. continue
  12149. fi
  12150. rm -f conftest.err conftest.i conftest.$ac_ext
  12151. # OK, works on sane cases. Now check whether nonexistent headers
  12152. # can be detected and how.
  12153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12154. /* end confdefs.h. */
  12155. #include <ac_nonexistent.h>
  12156. _ACEOF
  12157. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12158. # Broken: success on invalid input.
  12159. continue
  12160. else
  12161. # Passes both tests.
  12162. ac_preproc_ok=:
  12163. break
  12164. fi
  12165. rm -f conftest.err conftest.i conftest.$ac_ext
  12166. done
  12167. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12168. rm -f conftest.i conftest.err conftest.$ac_ext
  12169. if $ac_preproc_ok; then :
  12170. else
  12171. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12172. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12173. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12174. See \`config.log' for more details" "$LINENO" 5; }
  12175. fi
  12176. ac_ext=c
  12177. ac_cpp='$CPP $CPPFLAGS'
  12178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12181. else
  12182. _lt_caught_CXX_error=yes
  12183. fi
  12184. ac_ext=cpp
  12185. ac_cpp='$CXXCPP $CPPFLAGS'
  12186. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12187. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12188. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12189. archive_cmds_need_lc_CXX=no
  12190. allow_undefined_flag_CXX=
  12191. always_export_symbols_CXX=no
  12192. archive_expsym_cmds_CXX=
  12193. compiler_needs_object_CXX=no
  12194. export_dynamic_flag_spec_CXX=
  12195. hardcode_direct_CXX=no
  12196. hardcode_direct_absolute_CXX=no
  12197. hardcode_libdir_flag_spec_CXX=
  12198. hardcode_libdir_separator_CXX=
  12199. hardcode_minus_L_CXX=no
  12200. hardcode_shlibpath_var_CXX=unsupported
  12201. hardcode_automatic_CXX=no
  12202. inherit_rpath_CXX=no
  12203. module_cmds_CXX=
  12204. module_expsym_cmds_CXX=
  12205. link_all_deplibs_CXX=unknown
  12206. old_archive_cmds_CXX=$old_archive_cmds
  12207. reload_flag_CXX=$reload_flag
  12208. reload_cmds_CXX=$reload_cmds
  12209. no_undefined_flag_CXX=
  12210. whole_archive_flag_spec_CXX=
  12211. enable_shared_with_static_runtimes_CXX=no
  12212. # Source file extension for C++ test sources.
  12213. ac_ext=cpp
  12214. # Object file extension for compiled C++ test sources.
  12215. objext=o
  12216. objext_CXX=$objext
  12217. # No sense in running all these tests if we already determined that
  12218. # the CXX compiler isn't working. Some variables (like enable_shared)
  12219. # are currently assumed to apply to all compilers on this platform,
  12220. # and will be corrupted by setting them based on a non-working compiler.
  12221. if test yes != "$_lt_caught_CXX_error"; then
  12222. # Code to be used in simple compile tests
  12223. lt_simple_compile_test_code="int some_variable = 0;"
  12224. # Code to be used in simple link tests
  12225. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12226. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12227. # If no C compiler was specified, use CC.
  12228. LTCC=${LTCC-"$CC"}
  12229. # If no C compiler flags were specified, use CFLAGS.
  12230. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12231. # Allow CC to be a program name with arguments.
  12232. compiler=$CC
  12233. # save warnings/boilerplate of simple test code
  12234. ac_outfile=conftest.$ac_objext
  12235. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12236. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12237. _lt_compiler_boilerplate=`cat conftest.err`
  12238. $RM conftest*
  12239. ac_outfile=conftest.$ac_objext
  12240. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12241. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12242. _lt_linker_boilerplate=`cat conftest.err`
  12243. $RM -r conftest*
  12244. # Allow CC to be a program name with arguments.
  12245. lt_save_CC=$CC
  12246. lt_save_CFLAGS=$CFLAGS
  12247. lt_save_LD=$LD
  12248. lt_save_GCC=$GCC
  12249. GCC=$GXX
  12250. lt_save_with_gnu_ld=$with_gnu_ld
  12251. lt_save_path_LD=$lt_cv_path_LD
  12252. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12253. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12254. else
  12255. $as_unset lt_cv_prog_gnu_ld
  12256. fi
  12257. if test -n "${lt_cv_path_LDCXX+set}"; then
  12258. lt_cv_path_LD=$lt_cv_path_LDCXX
  12259. else
  12260. $as_unset lt_cv_path_LD
  12261. fi
  12262. test -z "${LDCXX+set}" || LD=$LDCXX
  12263. CC=${CXX-"c++"}
  12264. CFLAGS=$CXXFLAGS
  12265. compiler=$CC
  12266. compiler_CXX=$CC
  12267. func_cc_basename $compiler
  12268. cc_basename=$func_cc_basename_result
  12269. if test -n "$compiler"; then
  12270. # We don't want -fno-exception when compiling C++ code, so set the
  12271. # no_builtin_flag separately
  12272. if test yes = "$GXX"; then
  12273. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12274. else
  12275. lt_prog_compiler_no_builtin_flag_CXX=
  12276. fi
  12277. if test yes = "$GXX"; then
  12278. # Set up default GNU C++ configuration
  12279. # Check whether --with-gnu-ld was given.
  12280. if test "${with_gnu_ld+set}" = set; then :
  12281. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12282. else
  12283. with_gnu_ld=no
  12284. fi
  12285. ac_prog=ld
  12286. if test yes = "$GCC"; then
  12287. # Check if gcc -print-prog-name=ld gives a path.
  12288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12289. $as_echo_n "checking for ld used by $CC... " >&6; }
  12290. case $host in
  12291. *-*-mingw*)
  12292. # gcc leaves a trailing carriage return, which upsets mingw
  12293. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12294. *)
  12295. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12296. esac
  12297. case $ac_prog in
  12298. # Accept absolute paths.
  12299. [\\/]* | ?:[\\/]*)
  12300. re_direlt='/[^/][^/]*/\.\./'
  12301. # Canonicalize the pathname of ld
  12302. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12303. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12304. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12305. done
  12306. test -z "$LD" && LD=$ac_prog
  12307. ;;
  12308. "")
  12309. # If it fails, then pretend we aren't using GCC.
  12310. ac_prog=ld
  12311. ;;
  12312. *)
  12313. # If it is relative, then search for the first ld in PATH.
  12314. with_gnu_ld=unknown
  12315. ;;
  12316. esac
  12317. elif test yes = "$with_gnu_ld"; then
  12318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12319. $as_echo_n "checking for GNU ld... " >&6; }
  12320. else
  12321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12322. $as_echo_n "checking for non-GNU ld... " >&6; }
  12323. fi
  12324. if ${lt_cv_path_LD+:} false; then :
  12325. $as_echo_n "(cached) " >&6
  12326. else
  12327. if test -z "$LD"; then
  12328. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12329. for ac_dir in $PATH; do
  12330. IFS=$lt_save_ifs
  12331. test -z "$ac_dir" && ac_dir=.
  12332. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12333. lt_cv_path_LD=$ac_dir/$ac_prog
  12334. # Check to see if the program is GNU ld. I'd rather use --version,
  12335. # but apparently some variants of GNU ld only accept -v.
  12336. # Break only if it was the GNU/non-GNU ld that we prefer.
  12337. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12338. *GNU* | *'with BFD'*)
  12339. test no != "$with_gnu_ld" && break
  12340. ;;
  12341. *)
  12342. test yes != "$with_gnu_ld" && break
  12343. ;;
  12344. esac
  12345. fi
  12346. done
  12347. IFS=$lt_save_ifs
  12348. else
  12349. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12350. fi
  12351. fi
  12352. LD=$lt_cv_path_LD
  12353. if test -n "$LD"; then
  12354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12355. $as_echo "$LD" >&6; }
  12356. else
  12357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12358. $as_echo "no" >&6; }
  12359. fi
  12360. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12362. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12363. if ${lt_cv_prog_gnu_ld+:} false; then :
  12364. $as_echo_n "(cached) " >&6
  12365. else
  12366. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12367. case `$LD -v 2>&1 </dev/null` in
  12368. *GNU* | *'with BFD'*)
  12369. lt_cv_prog_gnu_ld=yes
  12370. ;;
  12371. *)
  12372. lt_cv_prog_gnu_ld=no
  12373. ;;
  12374. esac
  12375. fi
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12377. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12378. with_gnu_ld=$lt_cv_prog_gnu_ld
  12379. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12380. # archiving commands below assume that GNU ld is being used.
  12381. if test yes = "$with_gnu_ld"; then
  12382. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12383. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12384. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12385. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12386. # If archive_cmds runs LD, not CC, wlarc should be empty
  12387. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12388. # investigate it a little bit more. (MM)
  12389. wlarc='$wl'
  12390. # ancient GNU ld didn't support --whole-archive et. al.
  12391. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12392. $GREP 'no-whole-archive' > /dev/null; then
  12393. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12394. else
  12395. whole_archive_flag_spec_CXX=
  12396. fi
  12397. else
  12398. with_gnu_ld=no
  12399. wlarc=
  12400. # A generic and very simple default shared library creation
  12401. # command for GNU C++ for the case where it uses the native
  12402. # linker, instead of GNU ld. If possible, this setting should
  12403. # overridden to take advantage of the native linker features on
  12404. # the platform it is being used on.
  12405. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12406. fi
  12407. # Commands to make compiler produce verbose output that lists
  12408. # what "hidden" libraries, object files and flags are used when
  12409. # linking a shared library.
  12410. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12411. else
  12412. GXX=no
  12413. with_gnu_ld=no
  12414. wlarc=
  12415. fi
  12416. # PORTME: fill in a description of your system's C++ link characteristics
  12417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12418. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12419. ld_shlibs_CXX=yes
  12420. case $host_os in
  12421. aix3*)
  12422. # FIXME: insert proper C++ library support
  12423. ld_shlibs_CXX=no
  12424. ;;
  12425. aix[4-9]*)
  12426. if test ia64 = "$host_cpu"; then
  12427. # On IA64, the linker does run time linking by default, so we don't
  12428. # have to do anything special.
  12429. aix_use_runtimelinking=no
  12430. exp_sym_flag='-Bexport'
  12431. no_entry_flag=
  12432. else
  12433. aix_use_runtimelinking=no
  12434. # Test if we are trying to use run time linking or normal
  12435. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12436. # have runtime linking enabled, and use it for executables.
  12437. # For shared libraries, we enable/disable runtime linking
  12438. # depending on the kind of the shared library created -
  12439. # when "with_aix_soname,aix_use_runtimelinking" is:
  12440. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12441. # "aix,yes" lib.so shared, rtl:yes, for executables
  12442. # lib.a static archive
  12443. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12444. # lib.a(lib.so.V) shared, rtl:no, for executables
  12445. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12446. # lib.a(lib.so.V) shared, rtl:no
  12447. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12448. # lib.a static archive
  12449. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12450. for ld_flag in $LDFLAGS; do
  12451. case $ld_flag in
  12452. *-brtl*)
  12453. aix_use_runtimelinking=yes
  12454. break
  12455. ;;
  12456. esac
  12457. done
  12458. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12459. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12460. # so we don't have lib.a shared libs to link our executables.
  12461. # We have to force runtime linking in this case.
  12462. aix_use_runtimelinking=yes
  12463. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12464. fi
  12465. ;;
  12466. esac
  12467. exp_sym_flag='-bexport'
  12468. no_entry_flag='-bnoentry'
  12469. fi
  12470. # When large executables or shared objects are built, AIX ld can
  12471. # have problems creating the table of contents. If linking a library
  12472. # or program results in "error TOC overflow" add -mminimal-toc to
  12473. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12474. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12475. archive_cmds_CXX=''
  12476. hardcode_direct_CXX=yes
  12477. hardcode_direct_absolute_CXX=yes
  12478. hardcode_libdir_separator_CXX=':'
  12479. link_all_deplibs_CXX=yes
  12480. file_list_spec_CXX='$wl-f,'
  12481. case $with_aix_soname,$aix_use_runtimelinking in
  12482. aix,*) ;; # no import file
  12483. svr4,* | *,yes) # use import file
  12484. # The Import File defines what to hardcode.
  12485. hardcode_direct_CXX=no
  12486. hardcode_direct_absolute_CXX=no
  12487. ;;
  12488. esac
  12489. if test yes = "$GXX"; then
  12490. case $host_os in aix4.[012]|aix4.[012].*)
  12491. # We only want to do this on AIX 4.2 and lower, the check
  12492. # below for broken collect2 doesn't work under 4.3+
  12493. collect2name=`$CC -print-prog-name=collect2`
  12494. if test -f "$collect2name" &&
  12495. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12496. then
  12497. # We have reworked collect2
  12498. :
  12499. else
  12500. # We have old collect2
  12501. hardcode_direct_CXX=unsupported
  12502. # It fails to find uninstalled libraries when the uninstalled
  12503. # path is not listed in the libpath. Setting hardcode_minus_L
  12504. # to unsupported forces relinking
  12505. hardcode_minus_L_CXX=yes
  12506. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12507. hardcode_libdir_separator_CXX=
  12508. fi
  12509. esac
  12510. shared_flag='-shared'
  12511. if test yes = "$aix_use_runtimelinking"; then
  12512. shared_flag=$shared_flag' $wl-G'
  12513. fi
  12514. # Need to ensure runtime linking is disabled for the traditional
  12515. # shared library, or the linker may eventually find shared libraries
  12516. # /with/ Import File - we do not want to mix them.
  12517. shared_flag_aix='-shared'
  12518. shared_flag_svr4='-shared $wl-G'
  12519. else
  12520. # not using gcc
  12521. if test ia64 = "$host_cpu"; then
  12522. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12523. # chokes on -Wl,-G. The following line is correct:
  12524. shared_flag='-G'
  12525. else
  12526. if test yes = "$aix_use_runtimelinking"; then
  12527. shared_flag='$wl-G'
  12528. else
  12529. shared_flag='$wl-bM:SRE'
  12530. fi
  12531. shared_flag_aix='$wl-bM:SRE'
  12532. shared_flag_svr4='$wl-G'
  12533. fi
  12534. fi
  12535. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12536. # It seems that -bexpall does not export symbols beginning with
  12537. # underscore (_), so it is better to generate a list of symbols to
  12538. # export.
  12539. always_export_symbols_CXX=yes
  12540. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12541. # Warning - without using the other runtime loading flags (-brtl),
  12542. # -berok will link without error, but may produce a broken library.
  12543. # The "-G" linker flag allows undefined symbols.
  12544. no_undefined_flag_CXX='-bernotok'
  12545. # Determine the default libpath from the value encoded in an empty
  12546. # executable.
  12547. if test set = "${lt_cv_aix_libpath+set}"; then
  12548. aix_libpath=$lt_cv_aix_libpath
  12549. else
  12550. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12551. $as_echo_n "(cached) " >&6
  12552. else
  12553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12554. /* end confdefs.h. */
  12555. int
  12556. main ()
  12557. {
  12558. ;
  12559. return 0;
  12560. }
  12561. _ACEOF
  12562. if ac_fn_cxx_try_link "$LINENO"; then :
  12563. lt_aix_libpath_sed='
  12564. /Import File Strings/,/^$/ {
  12565. /^0/ {
  12566. s/^0 *\([^ ]*\) *$/\1/
  12567. p
  12568. }
  12569. }'
  12570. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12571. # Check for a 64-bit object if we didn't find anything.
  12572. if test -z "$lt_cv_aix_libpath__CXX"; then
  12573. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12574. fi
  12575. fi
  12576. rm -f core conftest.err conftest.$ac_objext \
  12577. conftest$ac_exeext conftest.$ac_ext
  12578. if test -z "$lt_cv_aix_libpath__CXX"; then
  12579. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12580. fi
  12581. fi
  12582. aix_libpath=$lt_cv_aix_libpath__CXX
  12583. fi
  12584. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12585. archive_expsym_cmds_CXX='$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
  12586. else
  12587. if test ia64 = "$host_cpu"; then
  12588. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12589. allow_undefined_flag_CXX="-z nodefs"
  12590. archive_expsym_cmds_CXX="\$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"
  12591. else
  12592. # Determine the default libpath from the value encoded in an
  12593. # empty executable.
  12594. if test set = "${lt_cv_aix_libpath+set}"; then
  12595. aix_libpath=$lt_cv_aix_libpath
  12596. else
  12597. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12598. $as_echo_n "(cached) " >&6
  12599. else
  12600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12601. /* end confdefs.h. */
  12602. int
  12603. main ()
  12604. {
  12605. ;
  12606. return 0;
  12607. }
  12608. _ACEOF
  12609. if ac_fn_cxx_try_link "$LINENO"; then :
  12610. lt_aix_libpath_sed='
  12611. /Import File Strings/,/^$/ {
  12612. /^0/ {
  12613. s/^0 *\([^ ]*\) *$/\1/
  12614. p
  12615. }
  12616. }'
  12617. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12618. # Check for a 64-bit object if we didn't find anything.
  12619. if test -z "$lt_cv_aix_libpath__CXX"; then
  12620. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12621. fi
  12622. fi
  12623. rm -f core conftest.err conftest.$ac_objext \
  12624. conftest$ac_exeext conftest.$ac_ext
  12625. if test -z "$lt_cv_aix_libpath__CXX"; then
  12626. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12627. fi
  12628. fi
  12629. aix_libpath=$lt_cv_aix_libpath__CXX
  12630. fi
  12631. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12632. # Warning - without using the other run time loading flags,
  12633. # -berok will link without error, but may produce a broken library.
  12634. no_undefined_flag_CXX=' $wl-bernotok'
  12635. allow_undefined_flag_CXX=' $wl-berok'
  12636. if test yes = "$with_gnu_ld"; then
  12637. # We only use this code for GNU lds that support --whole-archive.
  12638. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12639. else
  12640. # Exported symbols can be pulled into shared objects from archives
  12641. whole_archive_flag_spec_CXX='$convenience'
  12642. fi
  12643. archive_cmds_need_lc_CXX=yes
  12644. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12645. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12646. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12647. if test svr4 != "$with_aix_soname"; then
  12648. # This is similar to how AIX traditionally builds its shared
  12649. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12650. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
  12651. fi
  12652. if test aix != "$with_aix_soname"; then
  12653. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
  12654. else
  12655. # used by -dlpreopen to get the symbols
  12656. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12657. fi
  12658. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12659. fi
  12660. fi
  12661. ;;
  12662. beos*)
  12663. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12664. allow_undefined_flag_CXX=unsupported
  12665. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12666. # support --undefined. This deserves some investigation. FIXME
  12667. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12668. else
  12669. ld_shlibs_CXX=no
  12670. fi
  12671. ;;
  12672. chorus*)
  12673. case $cc_basename in
  12674. *)
  12675. # FIXME: insert proper C++ library support
  12676. ld_shlibs_CXX=no
  12677. ;;
  12678. esac
  12679. ;;
  12680. cygwin* | mingw* | pw32* | cegcc*)
  12681. case $GXX,$cc_basename in
  12682. ,cl* | no,cl*)
  12683. # Native MSVC
  12684. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12685. # no search path for DLLs.
  12686. hardcode_libdir_flag_spec_CXX=' '
  12687. allow_undefined_flag_CXX=unsupported
  12688. always_export_symbols_CXX=yes
  12689. file_list_spec_CXX='@'
  12690. # Tell ltmain to make .lib files, not .a files.
  12691. libext=lib
  12692. # Tell ltmain to make .dll files, not .so files.
  12693. shrext_cmds=.dll
  12694. # FIXME: Setting linknames here is a bad hack.
  12695. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12696. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12697. cp "$export_symbols" "$output_objdir/$soname.def";
  12698. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12699. else
  12700. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12701. fi~
  12702. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12703. linknames='
  12704. # The linker will not automatically build a static lib if we build a DLL.
  12705. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12706. enable_shared_with_static_runtimes_CXX=yes
  12707. # Don't use ranlib
  12708. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12709. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12710. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12711. case $lt_outputfile in
  12712. *.exe|*.EXE) ;;
  12713. *)
  12714. lt_outputfile=$lt_outputfile.exe
  12715. lt_tool_outputfile=$lt_tool_outputfile.exe
  12716. ;;
  12717. esac~
  12718. func_to_tool_file "$lt_outputfile"~
  12719. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12720. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12721. $RM "$lt_outputfile.manifest";
  12722. fi'
  12723. ;;
  12724. *)
  12725. # g++
  12726. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12727. # as there is no search path for DLLs.
  12728. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12729. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12730. allow_undefined_flag_CXX=unsupported
  12731. always_export_symbols_CXX=no
  12732. enable_shared_with_static_runtimes_CXX=yes
  12733. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12734. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12735. # If the export-symbols file already is a .def file, use it as
  12736. # is; otherwise, prepend EXPORTS...
  12737. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12738. cp $export_symbols $output_objdir/$soname.def;
  12739. else
  12740. echo EXPORTS > $output_objdir/$soname.def;
  12741. cat $export_symbols >> $output_objdir/$soname.def;
  12742. fi~
  12743. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12744. else
  12745. ld_shlibs_CXX=no
  12746. fi
  12747. ;;
  12748. esac
  12749. ;;
  12750. darwin* | rhapsody*)
  12751. archive_cmds_need_lc_CXX=no
  12752. hardcode_direct_CXX=no
  12753. hardcode_automatic_CXX=yes
  12754. hardcode_shlibpath_var_CXX=unsupported
  12755. if test yes = "$lt_cv_ld_force_load"; then
  12756. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  12757. else
  12758. whole_archive_flag_spec_CXX=''
  12759. fi
  12760. link_all_deplibs_CXX=yes
  12761. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  12762. case $cc_basename in
  12763. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12764. *) _lt_dar_can_shared=$GCC ;;
  12765. esac
  12766. if test yes = "$_lt_dar_can_shared"; then
  12767. output_verbose_link_cmd=func_echo_all
  12768. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  12769. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12770. archive_expsym_cmds_CXX="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"
  12771. module_expsym_cmds_CXX="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"
  12772. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12773. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  12774. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  12775. fi
  12776. else
  12777. ld_shlibs_CXX=no
  12778. fi
  12779. ;;
  12780. os2*)
  12781. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12782. hardcode_minus_L_CXX=yes
  12783. allow_undefined_flag_CXX=unsupported
  12784. shrext_cmds=.dll
  12785. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12786. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12787. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12788. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12789. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12790. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12791. emximp -o $lib $output_objdir/$libname.def'
  12792. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12793. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12794. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12795. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12796. prefix_cmds="$SED"~
  12797. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12798. prefix_cmds="$prefix_cmds -e 1d";
  12799. fi~
  12800. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12801. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12802. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12803. emximp -o $lib $output_objdir/$libname.def'
  12804. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12805. enable_shared_with_static_runtimes_CXX=yes
  12806. ;;
  12807. dgux*)
  12808. case $cc_basename in
  12809. ec++*)
  12810. # FIXME: insert proper C++ library support
  12811. ld_shlibs_CXX=no
  12812. ;;
  12813. ghcx*)
  12814. # Green Hills C++ Compiler
  12815. # FIXME: insert proper C++ library support
  12816. ld_shlibs_CXX=no
  12817. ;;
  12818. *)
  12819. # FIXME: insert proper C++ library support
  12820. ld_shlibs_CXX=no
  12821. ;;
  12822. esac
  12823. ;;
  12824. freebsd2.*)
  12825. # C++ shared libraries reported to be fairly broken before
  12826. # switch to ELF
  12827. ld_shlibs_CXX=no
  12828. ;;
  12829. freebsd-elf*)
  12830. archive_cmds_need_lc_CXX=no
  12831. ;;
  12832. freebsd* | dragonfly*)
  12833. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12834. # conventions
  12835. ld_shlibs_CXX=yes
  12836. ;;
  12837. haiku*)
  12838. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12839. link_all_deplibs_CXX=yes
  12840. ;;
  12841. hpux9*)
  12842. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12843. hardcode_libdir_separator_CXX=:
  12844. export_dynamic_flag_spec_CXX='$wl-E'
  12845. hardcode_direct_CXX=yes
  12846. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12847. # but as the default
  12848. # location of the library.
  12849. case $cc_basename in
  12850. CC*)
  12851. # FIXME: insert proper C++ library support
  12852. ld_shlibs_CXX=no
  12853. ;;
  12854. aCC*)
  12855. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12856. # Commands to make compiler produce verbose output that lists
  12857. # what "hidden" libraries, object files and flags are used when
  12858. # linking a shared library.
  12859. #
  12860. # There doesn't appear to be a way to prevent this compiler from
  12861. # explicitly linking system object files so we need to strip them
  12862. # from the output so that they don't get included in the library
  12863. # dependencies.
  12864. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12865. ;;
  12866. *)
  12867. if test yes = "$GXX"; then
  12868. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12869. else
  12870. # FIXME: insert proper C++ library support
  12871. ld_shlibs_CXX=no
  12872. fi
  12873. ;;
  12874. esac
  12875. ;;
  12876. hpux10*|hpux11*)
  12877. if test no = "$with_gnu_ld"; then
  12878. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12879. hardcode_libdir_separator_CXX=:
  12880. case $host_cpu in
  12881. hppa*64*|ia64*)
  12882. ;;
  12883. *)
  12884. export_dynamic_flag_spec_CXX='$wl-E'
  12885. ;;
  12886. esac
  12887. fi
  12888. case $host_cpu in
  12889. hppa*64*|ia64*)
  12890. hardcode_direct_CXX=no
  12891. hardcode_shlibpath_var_CXX=no
  12892. ;;
  12893. *)
  12894. hardcode_direct_CXX=yes
  12895. hardcode_direct_absolute_CXX=yes
  12896. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12897. # but as the default
  12898. # location of the library.
  12899. ;;
  12900. esac
  12901. case $cc_basename in
  12902. CC*)
  12903. # FIXME: insert proper C++ library support
  12904. ld_shlibs_CXX=no
  12905. ;;
  12906. aCC*)
  12907. case $host_cpu in
  12908. hppa*64*)
  12909. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12910. ;;
  12911. ia64*)
  12912. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12913. ;;
  12914. *)
  12915. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12916. ;;
  12917. esac
  12918. # Commands to make compiler produce verbose output that lists
  12919. # what "hidden" libraries, object files and flags are used when
  12920. # linking a shared library.
  12921. #
  12922. # There doesn't appear to be a way to prevent this compiler from
  12923. # explicitly linking system object files so we need to strip them
  12924. # from the output so that they don't get included in the library
  12925. # dependencies.
  12926. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12927. ;;
  12928. *)
  12929. if test yes = "$GXX"; then
  12930. if test no = "$with_gnu_ld"; then
  12931. case $host_cpu in
  12932. hppa*64*)
  12933. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12934. ;;
  12935. ia64*)
  12936. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12937. ;;
  12938. *)
  12939. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12940. ;;
  12941. esac
  12942. fi
  12943. else
  12944. # FIXME: insert proper C++ library support
  12945. ld_shlibs_CXX=no
  12946. fi
  12947. ;;
  12948. esac
  12949. ;;
  12950. interix[3-9]*)
  12951. hardcode_direct_CXX=no
  12952. hardcode_shlibpath_var_CXX=no
  12953. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12954. export_dynamic_flag_spec_CXX='$wl-E'
  12955. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12956. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12957. # default) and relocated if they conflict, which is a slow very memory
  12958. # consuming and fragmenting process. To avoid this, we pick a random,
  12959. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12960. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12961. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12962. archive_expsym_cmds_CXX='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'
  12963. ;;
  12964. irix5* | irix6*)
  12965. case $cc_basename in
  12966. CC*)
  12967. # SGI C++
  12968. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12969. # Archives containing C++ object files must be created using
  12970. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12971. # necessary to make sure instantiated templates are included
  12972. # in the archive.
  12973. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12974. ;;
  12975. *)
  12976. if test yes = "$GXX"; then
  12977. if test no = "$with_gnu_ld"; then
  12978. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  12979. else
  12980. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  12981. fi
  12982. fi
  12983. link_all_deplibs_CXX=yes
  12984. ;;
  12985. esac
  12986. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12987. hardcode_libdir_separator_CXX=:
  12988. inherit_rpath_CXX=yes
  12989. ;;
  12990. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12991. case $cc_basename in
  12992. KCC*)
  12993. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12994. # KCC will only create a shared library if the output file
  12995. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12996. # to its proper name (with version) after linking.
  12997. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  12998. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  12999. # Commands to make compiler produce verbose output that lists
  13000. # what "hidden" libraries, object files and flags are used when
  13001. # linking a shared library.
  13002. #
  13003. # There doesn't appear to be a way to prevent this compiler from
  13004. # explicitly linking system object files so we need to strip them
  13005. # from the output so that they don't get included in the library
  13006. # dependencies.
  13007. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13008. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13009. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13010. # Archives containing C++ object files must be created using
  13011. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13012. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13013. ;;
  13014. icpc* | ecpc* )
  13015. # Intel C++
  13016. with_gnu_ld=yes
  13017. # version 8.0 and above of icpc choke on multiply defined symbols
  13018. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13019. # earlier do not add the objects themselves.
  13020. case `$CC -V 2>&1` in
  13021. *"Version 7."*)
  13022. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13023. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13024. ;;
  13025. *) # Version 8.0 or newer
  13026. tmp_idyn=
  13027. case $host_cpu in
  13028. ia64*) tmp_idyn=' -i_dynamic';;
  13029. esac
  13030. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13031. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13032. ;;
  13033. esac
  13034. archive_cmds_need_lc_CXX=no
  13035. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13036. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13037. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13038. ;;
  13039. pgCC* | pgcpp*)
  13040. # Portland Group C++ compiler
  13041. case `$CC -V` in
  13042. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13043. prelink_cmds_CXX='tpldir=Template.dir~
  13044. rm -rf $tpldir~
  13045. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13046. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13047. old_archive_cmds_CXX='tpldir=Template.dir~
  13048. rm -rf $tpldir~
  13049. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13050. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13051. $RANLIB $oldlib'
  13052. archive_cmds_CXX='tpldir=Template.dir~
  13053. rm -rf $tpldir~
  13054. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13055. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13056. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13057. rm -rf $tpldir~
  13058. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13059. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13060. ;;
  13061. *) # Version 6 and above use weak symbols
  13062. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13063. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13064. ;;
  13065. esac
  13066. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13067. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13068. whole_archive_flag_spec_CXX='$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'
  13069. ;;
  13070. cxx*)
  13071. # Compaq C++
  13072. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13073. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  13074. runpath_var=LD_RUN_PATH
  13075. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13076. hardcode_libdir_separator_CXX=:
  13077. # Commands to make compiler produce verbose output that lists
  13078. # what "hidden" libraries, object files and flags are used when
  13079. # linking a shared library.
  13080. #
  13081. # There doesn't appear to be a way to prevent this compiler from
  13082. # explicitly linking system object files so we need to strip them
  13083. # from the output so that they don't get included in the library
  13084. # dependencies.
  13085. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  13086. ;;
  13087. xl* | mpixl* | bgxl*)
  13088. # IBM XL 8.0 on PPC, with GNU ld
  13089. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13090. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13091. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13092. if test yes = "$supports_anon_versioning"; then
  13093. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13094. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13095. echo "local: *; };" >> $output_objdir/$libname.ver~
  13096. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13097. fi
  13098. ;;
  13099. *)
  13100. case `$CC -V 2>&1 | sed 5q` in
  13101. *Sun\ C*)
  13102. # Sun C++ 5.9
  13103. no_undefined_flag_CXX=' -zdefs'
  13104. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13105. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  13106. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13107. whole_archive_flag_spec_CXX='$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'
  13108. compiler_needs_object_CXX=yes
  13109. # Not sure whether something based on
  13110. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13111. # would be better.
  13112. output_verbose_link_cmd='func_echo_all'
  13113. # Archives containing C++ object files must be created using
  13114. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13115. # necessary to make sure instantiated templates are included
  13116. # in the archive.
  13117. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13118. ;;
  13119. esac
  13120. ;;
  13121. esac
  13122. ;;
  13123. lynxos*)
  13124. # FIXME: insert proper C++ library support
  13125. ld_shlibs_CXX=no
  13126. ;;
  13127. m88k*)
  13128. # FIXME: insert proper C++ library support
  13129. ld_shlibs_CXX=no
  13130. ;;
  13131. mvs*)
  13132. case $cc_basename in
  13133. cxx*)
  13134. # FIXME: insert proper C++ library support
  13135. ld_shlibs_CXX=no
  13136. ;;
  13137. *)
  13138. # FIXME: insert proper C++ library support
  13139. ld_shlibs_CXX=no
  13140. ;;
  13141. esac
  13142. ;;
  13143. netbsd*)
  13144. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13145. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13146. wlarc=
  13147. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13148. hardcode_direct_CXX=yes
  13149. hardcode_shlibpath_var_CXX=no
  13150. fi
  13151. # Workaround some broken pre-1.5 toolchains
  13152. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13153. ;;
  13154. *nto* | *qnx*)
  13155. ld_shlibs_CXX=yes
  13156. ;;
  13157. openbsd* | bitrig*)
  13158. if test -f /usr/libexec/ld.so; then
  13159. hardcode_direct_CXX=yes
  13160. hardcode_shlibpath_var_CXX=no
  13161. hardcode_direct_absolute_CXX=yes
  13162. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13163. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13164. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13165. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13166. export_dynamic_flag_spec_CXX='$wl-E'
  13167. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13168. fi
  13169. output_verbose_link_cmd=func_echo_all
  13170. else
  13171. ld_shlibs_CXX=no
  13172. fi
  13173. ;;
  13174. osf3* | osf4* | osf5*)
  13175. case $cc_basename in
  13176. KCC*)
  13177. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13178. # KCC will only create a shared library if the output file
  13179. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13180. # to its proper name (with version) after linking.
  13181. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13182. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13183. hardcode_libdir_separator_CXX=:
  13184. # Archives containing C++ object files must be created using
  13185. # the KAI C++ compiler.
  13186. case $host in
  13187. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13188. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13189. esac
  13190. ;;
  13191. RCC*)
  13192. # Rational C++ 2.4.1
  13193. # FIXME: insert proper C++ library support
  13194. ld_shlibs_CXX=no
  13195. ;;
  13196. cxx*)
  13197. case $host in
  13198. osf3*)
  13199. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13200. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13201. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13202. ;;
  13203. *)
  13204. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13205. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13206. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13207. echo "-hidden">> $lib.exp~
  13208. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  13209. $RM $lib.exp'
  13210. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13211. ;;
  13212. esac
  13213. hardcode_libdir_separator_CXX=:
  13214. # Commands to make compiler produce verbose output that lists
  13215. # what "hidden" libraries, object files and flags are used when
  13216. # linking a shared library.
  13217. #
  13218. # There doesn't appear to be a way to prevent this compiler from
  13219. # explicitly linking system object files so we need to strip them
  13220. # from the output so that they don't get included in the library
  13221. # dependencies.
  13222. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13223. ;;
  13224. *)
  13225. if test yes,no = "$GXX,$with_gnu_ld"; then
  13226. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13227. case $host in
  13228. osf3*)
  13229. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
  13230. ;;
  13231. *)
  13232. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
  13233. ;;
  13234. esac
  13235. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13236. hardcode_libdir_separator_CXX=:
  13237. # Commands to make compiler produce verbose output that lists
  13238. # what "hidden" libraries, object files and flags are used when
  13239. # linking a shared library.
  13240. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13241. else
  13242. # FIXME: insert proper C++ library support
  13243. ld_shlibs_CXX=no
  13244. fi
  13245. ;;
  13246. esac
  13247. ;;
  13248. psos*)
  13249. # FIXME: insert proper C++ library support
  13250. ld_shlibs_CXX=no
  13251. ;;
  13252. sunos4*)
  13253. case $cc_basename in
  13254. CC*)
  13255. # Sun C++ 4.x
  13256. # FIXME: insert proper C++ library support
  13257. ld_shlibs_CXX=no
  13258. ;;
  13259. lcc*)
  13260. # Lucid
  13261. # FIXME: insert proper C++ library support
  13262. ld_shlibs_CXX=no
  13263. ;;
  13264. *)
  13265. # FIXME: insert proper C++ library support
  13266. ld_shlibs_CXX=no
  13267. ;;
  13268. esac
  13269. ;;
  13270. solaris*)
  13271. case $cc_basename in
  13272. CC* | sunCC*)
  13273. # Sun C++ 4.2, 5.x and Centerline C++
  13274. archive_cmds_need_lc_CXX=yes
  13275. no_undefined_flag_CXX=' -zdefs'
  13276. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13277. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13278. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13279. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13280. hardcode_shlibpath_var_CXX=no
  13281. case $host_os in
  13282. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13283. *)
  13284. # The compiler driver will combine and reorder linker options,
  13285. # but understands '-z linker_flag'.
  13286. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13287. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13288. ;;
  13289. esac
  13290. link_all_deplibs_CXX=yes
  13291. output_verbose_link_cmd='func_echo_all'
  13292. # Archives containing C++ object files must be created using
  13293. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13294. # necessary to make sure instantiated templates are included
  13295. # in the archive.
  13296. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13297. ;;
  13298. gcx*)
  13299. # Green Hills C++ Compiler
  13300. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13301. # The C++ compiler must be used to create the archive.
  13302. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13303. ;;
  13304. *)
  13305. # GNU C++ compiler with Solaris linker
  13306. if test yes,no = "$GXX,$with_gnu_ld"; then
  13307. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13308. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13309. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13310. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13311. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13312. # Commands to make compiler produce verbose output that lists
  13313. # what "hidden" libraries, object files and flags are used when
  13314. # linking a shared library.
  13315. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13316. else
  13317. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13318. # platform.
  13319. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13320. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13321. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13322. # Commands to make compiler produce verbose output that lists
  13323. # what "hidden" libraries, object files and flags are used when
  13324. # linking a shared library.
  13325. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13326. fi
  13327. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13328. case $host_os in
  13329. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13330. *)
  13331. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13332. ;;
  13333. esac
  13334. fi
  13335. ;;
  13336. esac
  13337. ;;
  13338. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13339. no_undefined_flag_CXX='$wl-z,text'
  13340. archive_cmds_need_lc_CXX=no
  13341. hardcode_shlibpath_var_CXX=no
  13342. runpath_var='LD_RUN_PATH'
  13343. case $cc_basename in
  13344. CC*)
  13345. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13346. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13347. ;;
  13348. *)
  13349. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13350. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13351. ;;
  13352. esac
  13353. ;;
  13354. sysv5* | sco3.2v5* | sco5v6*)
  13355. # Note: We CANNOT use -z defs as we might desire, because we do not
  13356. # link with -lc, and that would cause any symbols used from libc to
  13357. # always be unresolved, which means just about no library would
  13358. # ever link correctly. If we're not using GNU ld we use -z text
  13359. # though, which does catch some bad symbols but isn't as heavy-handed
  13360. # as -z defs.
  13361. no_undefined_flag_CXX='$wl-z,text'
  13362. allow_undefined_flag_CXX='$wl-z,nodefs'
  13363. archive_cmds_need_lc_CXX=no
  13364. hardcode_shlibpath_var_CXX=no
  13365. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13366. hardcode_libdir_separator_CXX=':'
  13367. link_all_deplibs_CXX=yes
  13368. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13369. runpath_var='LD_RUN_PATH'
  13370. case $cc_basename in
  13371. CC*)
  13372. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13373. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13374. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13375. '"$old_archive_cmds_CXX"
  13376. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13377. '"$reload_cmds_CXX"
  13378. ;;
  13379. *)
  13380. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13381. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13382. ;;
  13383. esac
  13384. ;;
  13385. tandem*)
  13386. case $cc_basename in
  13387. NCC*)
  13388. # NonStop-UX NCC 3.20
  13389. # FIXME: insert proper C++ library support
  13390. ld_shlibs_CXX=no
  13391. ;;
  13392. *)
  13393. # FIXME: insert proper C++ library support
  13394. ld_shlibs_CXX=no
  13395. ;;
  13396. esac
  13397. ;;
  13398. vxworks*)
  13399. # FIXME: insert proper C++ library support
  13400. ld_shlibs_CXX=no
  13401. ;;
  13402. *)
  13403. # FIXME: insert proper C++ library support
  13404. ld_shlibs_CXX=no
  13405. ;;
  13406. esac
  13407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13408. $as_echo "$ld_shlibs_CXX" >&6; }
  13409. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13410. GCC_CXX=$GXX
  13411. LD_CXX=$LD
  13412. ## CAVEAT EMPTOR:
  13413. ## There is no encapsulation within the following macros, do not change
  13414. ## the running order or otherwise move them around unless you know exactly
  13415. ## what you are doing...
  13416. # Dependencies to place before and after the object being linked:
  13417. predep_objects_CXX=
  13418. postdep_objects_CXX=
  13419. predeps_CXX=
  13420. postdeps_CXX=
  13421. compiler_lib_search_path_CXX=
  13422. cat > conftest.$ac_ext <<_LT_EOF
  13423. class Foo
  13424. {
  13425. public:
  13426. Foo (void) { a = 0; }
  13427. private:
  13428. int a;
  13429. };
  13430. _LT_EOF
  13431. _lt_libdeps_save_CFLAGS=$CFLAGS
  13432. case "$CC $CFLAGS " in #(
  13433. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13434. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13435. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13436. esac
  13437. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13438. (eval $ac_compile) 2>&5
  13439. ac_status=$?
  13440. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13441. test $ac_status = 0; }; then
  13442. # Parse the compiler output and extract the necessary
  13443. # objects, libraries and library flags.
  13444. # Sentinel used to keep track of whether or not we are before
  13445. # the conftest object file.
  13446. pre_test_object_deps_done=no
  13447. for p in `eval "$output_verbose_link_cmd"`; do
  13448. case $prev$p in
  13449. -L* | -R* | -l*)
  13450. # Some compilers place space between "-{L,R}" and the path.
  13451. # Remove the space.
  13452. if test x-L = "$p" ||
  13453. test x-R = "$p"; then
  13454. prev=$p
  13455. continue
  13456. fi
  13457. # Expand the sysroot to ease extracting the directories later.
  13458. if test -z "$prev"; then
  13459. case $p in
  13460. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13461. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13462. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13463. esac
  13464. fi
  13465. case $p in
  13466. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13467. esac
  13468. if test no = "$pre_test_object_deps_done"; then
  13469. case $prev in
  13470. -L | -R)
  13471. # Internal compiler library paths should come after those
  13472. # provided the user. The postdeps already come after the
  13473. # user supplied libs so there is no need to process them.
  13474. if test -z "$compiler_lib_search_path_CXX"; then
  13475. compiler_lib_search_path_CXX=$prev$p
  13476. else
  13477. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13478. fi
  13479. ;;
  13480. # The "-l" case would never come before the object being
  13481. # linked, so don't bother handling this case.
  13482. esac
  13483. else
  13484. if test -z "$postdeps_CXX"; then
  13485. postdeps_CXX=$prev$p
  13486. else
  13487. postdeps_CXX="${postdeps_CXX} $prev$p"
  13488. fi
  13489. fi
  13490. prev=
  13491. ;;
  13492. *.lto.$objext) ;; # Ignore GCC LTO objects
  13493. *.$objext)
  13494. # This assumes that the test object file only shows up
  13495. # once in the compiler output.
  13496. if test "$p" = "conftest.$objext"; then
  13497. pre_test_object_deps_done=yes
  13498. continue
  13499. fi
  13500. if test no = "$pre_test_object_deps_done"; then
  13501. if test -z "$predep_objects_CXX"; then
  13502. predep_objects_CXX=$p
  13503. else
  13504. predep_objects_CXX="$predep_objects_CXX $p"
  13505. fi
  13506. else
  13507. if test -z "$postdep_objects_CXX"; then
  13508. postdep_objects_CXX=$p
  13509. else
  13510. postdep_objects_CXX="$postdep_objects_CXX $p"
  13511. fi
  13512. fi
  13513. ;;
  13514. *) ;; # Ignore the rest.
  13515. esac
  13516. done
  13517. # Clean up.
  13518. rm -f a.out a.exe
  13519. else
  13520. echo "libtool.m4: error: problem compiling CXX test program"
  13521. fi
  13522. $RM -f confest.$objext
  13523. CFLAGS=$_lt_libdeps_save_CFLAGS
  13524. # PORTME: override above test on systems where it is broken
  13525. case $host_os in
  13526. interix[3-9]*)
  13527. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13528. # hack all around it, let's just trust "g++" to DTRT.
  13529. predep_objects_CXX=
  13530. postdep_objects_CXX=
  13531. postdeps_CXX=
  13532. ;;
  13533. esac
  13534. case " $postdeps_CXX " in
  13535. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13536. esac
  13537. compiler_lib_search_dirs_CXX=
  13538. if test -n "${compiler_lib_search_path_CXX}"; then
  13539. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13540. fi
  13541. lt_prog_compiler_wl_CXX=
  13542. lt_prog_compiler_pic_CXX=
  13543. lt_prog_compiler_static_CXX=
  13544. # C++ specific cases for pic, static, wl, etc.
  13545. if test yes = "$GXX"; then
  13546. lt_prog_compiler_wl_CXX='-Wl,'
  13547. lt_prog_compiler_static_CXX='-static'
  13548. case $host_os in
  13549. aix*)
  13550. # All AIX code is PIC.
  13551. if test ia64 = "$host_cpu"; then
  13552. # AIX 5 now supports IA64 processor
  13553. lt_prog_compiler_static_CXX='-Bstatic'
  13554. fi
  13555. lt_prog_compiler_pic_CXX='-fPIC'
  13556. ;;
  13557. amigaos*)
  13558. case $host_cpu in
  13559. powerpc)
  13560. # see comment about AmigaOS4 .so support
  13561. lt_prog_compiler_pic_CXX='-fPIC'
  13562. ;;
  13563. m68k)
  13564. # FIXME: we need at least 68020 code to build shared libraries, but
  13565. # adding the '-m68020' flag to GCC prevents building anything better,
  13566. # like '-m68040'.
  13567. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13568. ;;
  13569. esac
  13570. ;;
  13571. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13572. # PIC is the default for these OSes.
  13573. ;;
  13574. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13575. # This hack is so that the source file can tell whether it is being
  13576. # built for inclusion in a dll (and should export symbols for example).
  13577. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13578. # (--disable-auto-import) libraries
  13579. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13580. case $host_os in
  13581. os2*)
  13582. lt_prog_compiler_static_CXX='$wl-static'
  13583. ;;
  13584. esac
  13585. ;;
  13586. darwin* | rhapsody*)
  13587. # PIC is the default on this platform
  13588. # Common symbols not allowed in MH_DYLIB files
  13589. lt_prog_compiler_pic_CXX='-fno-common'
  13590. ;;
  13591. *djgpp*)
  13592. # DJGPP does not support shared libraries at all
  13593. lt_prog_compiler_pic_CXX=
  13594. ;;
  13595. haiku*)
  13596. # PIC is the default for Haiku.
  13597. # The "-static" flag exists, but is broken.
  13598. lt_prog_compiler_static_CXX=
  13599. ;;
  13600. interix[3-9]*)
  13601. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13602. # Instead, we relocate shared libraries at runtime.
  13603. ;;
  13604. sysv4*MP*)
  13605. if test -d /usr/nec; then
  13606. lt_prog_compiler_pic_CXX=-Kconform_pic
  13607. fi
  13608. ;;
  13609. hpux*)
  13610. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13611. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13612. # sets the default TLS model and affects inlining.
  13613. case $host_cpu in
  13614. hppa*64*)
  13615. ;;
  13616. *)
  13617. lt_prog_compiler_pic_CXX='-fPIC'
  13618. ;;
  13619. esac
  13620. ;;
  13621. *qnx* | *nto*)
  13622. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13623. # it will coredump.
  13624. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13625. ;;
  13626. *)
  13627. lt_prog_compiler_pic_CXX='-fPIC'
  13628. ;;
  13629. esac
  13630. else
  13631. case $host_os in
  13632. aix[4-9]*)
  13633. # All AIX code is PIC.
  13634. if test ia64 = "$host_cpu"; then
  13635. # AIX 5 now supports IA64 processor
  13636. lt_prog_compiler_static_CXX='-Bstatic'
  13637. else
  13638. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13639. fi
  13640. ;;
  13641. chorus*)
  13642. case $cc_basename in
  13643. cxch68*)
  13644. # Green Hills C++ Compiler
  13645. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  13646. ;;
  13647. esac
  13648. ;;
  13649. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13650. # This hack is so that the source file can tell whether it is being
  13651. # built for inclusion in a dll (and should export symbols for example).
  13652. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13653. ;;
  13654. dgux*)
  13655. case $cc_basename in
  13656. ec++*)
  13657. lt_prog_compiler_pic_CXX='-KPIC'
  13658. ;;
  13659. ghcx*)
  13660. # Green Hills C++ Compiler
  13661. lt_prog_compiler_pic_CXX='-pic'
  13662. ;;
  13663. *)
  13664. ;;
  13665. esac
  13666. ;;
  13667. freebsd* | dragonfly*)
  13668. # FreeBSD uses GNU C++
  13669. ;;
  13670. hpux9* | hpux10* | hpux11*)
  13671. case $cc_basename in
  13672. CC*)
  13673. lt_prog_compiler_wl_CXX='-Wl,'
  13674. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13675. if test ia64 != "$host_cpu"; then
  13676. lt_prog_compiler_pic_CXX='+Z'
  13677. fi
  13678. ;;
  13679. aCC*)
  13680. lt_prog_compiler_wl_CXX='-Wl,'
  13681. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13682. case $host_cpu in
  13683. hppa*64*|ia64*)
  13684. # +Z the default
  13685. ;;
  13686. *)
  13687. lt_prog_compiler_pic_CXX='+Z'
  13688. ;;
  13689. esac
  13690. ;;
  13691. *)
  13692. ;;
  13693. esac
  13694. ;;
  13695. interix*)
  13696. # This is c89, which is MS Visual C++ (no shared libs)
  13697. # Anyone wants to do a port?
  13698. ;;
  13699. irix5* | irix6* | nonstopux*)
  13700. case $cc_basename in
  13701. CC*)
  13702. lt_prog_compiler_wl_CXX='-Wl,'
  13703. lt_prog_compiler_static_CXX='-non_shared'
  13704. # CC pic flag -KPIC is the default.
  13705. ;;
  13706. *)
  13707. ;;
  13708. esac
  13709. ;;
  13710. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13711. case $cc_basename in
  13712. KCC*)
  13713. # KAI C++ Compiler
  13714. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13715. lt_prog_compiler_pic_CXX='-fPIC'
  13716. ;;
  13717. ecpc* )
  13718. # old Intel C++ for x86_64, which still supported -KPIC.
  13719. lt_prog_compiler_wl_CXX='-Wl,'
  13720. lt_prog_compiler_pic_CXX='-KPIC'
  13721. lt_prog_compiler_static_CXX='-static'
  13722. ;;
  13723. icpc* )
  13724. # Intel C++, used to be incompatible with GCC.
  13725. # ICC 10 doesn't accept -KPIC any more.
  13726. lt_prog_compiler_wl_CXX='-Wl,'
  13727. lt_prog_compiler_pic_CXX='-fPIC'
  13728. lt_prog_compiler_static_CXX='-static'
  13729. ;;
  13730. pgCC* | pgcpp*)
  13731. # Portland Group C++ compiler
  13732. lt_prog_compiler_wl_CXX='-Wl,'
  13733. lt_prog_compiler_pic_CXX='-fpic'
  13734. lt_prog_compiler_static_CXX='-Bstatic'
  13735. ;;
  13736. cxx*)
  13737. # Compaq C++
  13738. # Make sure the PIC flag is empty. It appears that all Alpha
  13739. # Linux and Compaq Tru64 Unix objects are PIC.
  13740. lt_prog_compiler_pic_CXX=
  13741. lt_prog_compiler_static_CXX='-non_shared'
  13742. ;;
  13743. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13744. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13745. lt_prog_compiler_wl_CXX='-Wl,'
  13746. lt_prog_compiler_pic_CXX='-qpic'
  13747. lt_prog_compiler_static_CXX='-qstaticlink'
  13748. ;;
  13749. *)
  13750. case `$CC -V 2>&1 | sed 5q` in
  13751. *Sun\ C*)
  13752. # Sun C++ 5.9
  13753. lt_prog_compiler_pic_CXX='-KPIC'
  13754. lt_prog_compiler_static_CXX='-Bstatic'
  13755. lt_prog_compiler_wl_CXX='-Qoption ld '
  13756. ;;
  13757. esac
  13758. ;;
  13759. esac
  13760. ;;
  13761. lynxos*)
  13762. ;;
  13763. m88k*)
  13764. ;;
  13765. mvs*)
  13766. case $cc_basename in
  13767. cxx*)
  13768. lt_prog_compiler_pic_CXX='-W c,exportall'
  13769. ;;
  13770. *)
  13771. ;;
  13772. esac
  13773. ;;
  13774. netbsd* | netbsdelf*-gnu)
  13775. ;;
  13776. *qnx* | *nto*)
  13777. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13778. # it will coredump.
  13779. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13780. ;;
  13781. osf3* | osf4* | osf5*)
  13782. case $cc_basename in
  13783. KCC*)
  13784. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13785. ;;
  13786. RCC*)
  13787. # Rational C++ 2.4.1
  13788. lt_prog_compiler_pic_CXX='-pic'
  13789. ;;
  13790. cxx*)
  13791. # Digital/Compaq C++
  13792. lt_prog_compiler_wl_CXX='-Wl,'
  13793. # Make sure the PIC flag is empty. It appears that all Alpha
  13794. # Linux and Compaq Tru64 Unix objects are PIC.
  13795. lt_prog_compiler_pic_CXX=
  13796. lt_prog_compiler_static_CXX='-non_shared'
  13797. ;;
  13798. *)
  13799. ;;
  13800. esac
  13801. ;;
  13802. psos*)
  13803. ;;
  13804. solaris*)
  13805. case $cc_basename in
  13806. CC* | sunCC*)
  13807. # Sun C++ 4.2, 5.x and Centerline C++
  13808. lt_prog_compiler_pic_CXX='-KPIC'
  13809. lt_prog_compiler_static_CXX='-Bstatic'
  13810. lt_prog_compiler_wl_CXX='-Qoption ld '
  13811. ;;
  13812. gcx*)
  13813. # Green Hills C++ Compiler
  13814. lt_prog_compiler_pic_CXX='-PIC'
  13815. ;;
  13816. *)
  13817. ;;
  13818. esac
  13819. ;;
  13820. sunos4*)
  13821. case $cc_basename in
  13822. CC*)
  13823. # Sun C++ 4.x
  13824. lt_prog_compiler_pic_CXX='-pic'
  13825. lt_prog_compiler_static_CXX='-Bstatic'
  13826. ;;
  13827. lcc*)
  13828. # Lucid
  13829. lt_prog_compiler_pic_CXX='-pic'
  13830. ;;
  13831. *)
  13832. ;;
  13833. esac
  13834. ;;
  13835. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13836. case $cc_basename in
  13837. CC*)
  13838. lt_prog_compiler_wl_CXX='-Wl,'
  13839. lt_prog_compiler_pic_CXX='-KPIC'
  13840. lt_prog_compiler_static_CXX='-Bstatic'
  13841. ;;
  13842. esac
  13843. ;;
  13844. tandem*)
  13845. case $cc_basename in
  13846. NCC*)
  13847. # NonStop-UX NCC 3.20
  13848. lt_prog_compiler_pic_CXX='-KPIC'
  13849. ;;
  13850. *)
  13851. ;;
  13852. esac
  13853. ;;
  13854. vxworks*)
  13855. ;;
  13856. *)
  13857. lt_prog_compiler_can_build_shared_CXX=no
  13858. ;;
  13859. esac
  13860. fi
  13861. case $host_os in
  13862. # For platforms that do not support PIC, -DPIC is meaningless:
  13863. *djgpp*)
  13864. lt_prog_compiler_pic_CXX=
  13865. ;;
  13866. *)
  13867. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13868. ;;
  13869. esac
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13871. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13872. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13873. $as_echo_n "(cached) " >&6
  13874. else
  13875. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13876. fi
  13877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13878. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13879. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13880. #
  13881. # Check to make sure the PIC flag actually works.
  13882. #
  13883. if test -n "$lt_prog_compiler_pic_CXX"; then
  13884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13885. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13886. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13887. $as_echo_n "(cached) " >&6
  13888. else
  13889. lt_cv_prog_compiler_pic_works_CXX=no
  13890. ac_outfile=conftest.$ac_objext
  13891. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13892. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13893. # Insert the option either (1) after the last *FLAGS variable, or
  13894. # (2) before a word containing "conftest.", or (3) at the end.
  13895. # Note that $ac_compile itself does not contain backslashes and begins
  13896. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13897. # The option is referenced via a variable to avoid confusing sed.
  13898. lt_compile=`echo "$ac_compile" | $SED \
  13899. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13900. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13901. -e 's:$: $lt_compiler_flag:'`
  13902. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13903. (eval "$lt_compile" 2>conftest.err)
  13904. ac_status=$?
  13905. cat conftest.err >&5
  13906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13907. if (exit $ac_status) && test -s "$ac_outfile"; then
  13908. # The compiler can only warn and ignore the option if not recognized
  13909. # So say no if there are warnings other than the usual output.
  13910. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13911. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13912. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13913. lt_cv_prog_compiler_pic_works_CXX=yes
  13914. fi
  13915. fi
  13916. $RM conftest*
  13917. fi
  13918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13919. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13920. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13921. case $lt_prog_compiler_pic_CXX in
  13922. "" | " "*) ;;
  13923. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13924. esac
  13925. else
  13926. lt_prog_compiler_pic_CXX=
  13927. lt_prog_compiler_can_build_shared_CXX=no
  13928. fi
  13929. fi
  13930. #
  13931. # Check to make sure the static flag actually works.
  13932. #
  13933. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13935. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13936. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13937. $as_echo_n "(cached) " >&6
  13938. else
  13939. lt_cv_prog_compiler_static_works_CXX=no
  13940. save_LDFLAGS=$LDFLAGS
  13941. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13942. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13943. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13944. # The linker can only warn and ignore the option if not recognized
  13945. # So say no if there are warnings
  13946. if test -s conftest.err; then
  13947. # Append any errors to the config.log.
  13948. cat conftest.err 1>&5
  13949. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13950. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13951. if diff conftest.exp conftest.er2 >/dev/null; then
  13952. lt_cv_prog_compiler_static_works_CXX=yes
  13953. fi
  13954. else
  13955. lt_cv_prog_compiler_static_works_CXX=yes
  13956. fi
  13957. fi
  13958. $RM -r conftest*
  13959. LDFLAGS=$save_LDFLAGS
  13960. fi
  13961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13962. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13963. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13964. :
  13965. else
  13966. lt_prog_compiler_static_CXX=
  13967. fi
  13968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13969. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13970. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13971. $as_echo_n "(cached) " >&6
  13972. else
  13973. lt_cv_prog_compiler_c_o_CXX=no
  13974. $RM -r conftest 2>/dev/null
  13975. mkdir conftest
  13976. cd conftest
  13977. mkdir out
  13978. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13979. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13980. # Insert the option either (1) after the last *FLAGS variable, or
  13981. # (2) before a word containing "conftest.", or (3) at the end.
  13982. # Note that $ac_compile itself does not contain backslashes and begins
  13983. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13984. lt_compile=`echo "$ac_compile" | $SED \
  13985. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13986. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13987. -e 's:$: $lt_compiler_flag:'`
  13988. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13989. (eval "$lt_compile" 2>out/conftest.err)
  13990. ac_status=$?
  13991. cat out/conftest.err >&5
  13992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13993. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13994. then
  13995. # The compiler can only warn and ignore the option if not recognized
  13996. # So say no if there are warnings
  13997. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13998. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13999. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14000. lt_cv_prog_compiler_c_o_CXX=yes
  14001. fi
  14002. fi
  14003. chmod u+w . 2>&5
  14004. $RM conftest*
  14005. # SGI C++ compiler will create directory out/ii_files/ for
  14006. # template instantiation
  14007. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14008. $RM out/* && rmdir out
  14009. cd ..
  14010. $RM -r conftest
  14011. $RM conftest*
  14012. fi
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14014. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14016. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14017. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14018. $as_echo_n "(cached) " >&6
  14019. else
  14020. lt_cv_prog_compiler_c_o_CXX=no
  14021. $RM -r conftest 2>/dev/null
  14022. mkdir conftest
  14023. cd conftest
  14024. mkdir out
  14025. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14026. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14027. # Insert the option either (1) after the last *FLAGS variable, or
  14028. # (2) before a word containing "conftest.", or (3) at the end.
  14029. # Note that $ac_compile itself does not contain backslashes and begins
  14030. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14031. lt_compile=`echo "$ac_compile" | $SED \
  14032. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14033. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14034. -e 's:$: $lt_compiler_flag:'`
  14035. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14036. (eval "$lt_compile" 2>out/conftest.err)
  14037. ac_status=$?
  14038. cat out/conftest.err >&5
  14039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14040. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14041. then
  14042. # The compiler can only warn and ignore the option if not recognized
  14043. # So say no if there are warnings
  14044. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14045. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14046. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14047. lt_cv_prog_compiler_c_o_CXX=yes
  14048. fi
  14049. fi
  14050. chmod u+w . 2>&5
  14051. $RM conftest*
  14052. # SGI C++ compiler will create directory out/ii_files/ for
  14053. # template instantiation
  14054. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14055. $RM out/* && rmdir out
  14056. cd ..
  14057. $RM -r conftest
  14058. $RM conftest*
  14059. fi
  14060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14061. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14062. hard_links=nottested
  14063. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14064. # do not overwrite the value of need_locks provided by the user
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14066. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14067. hard_links=yes
  14068. $RM conftest*
  14069. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14070. touch conftest.a
  14071. ln conftest.a conftest.b 2>&5 || hard_links=no
  14072. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14074. $as_echo "$hard_links" >&6; }
  14075. if test no = "$hard_links"; then
  14076. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14077. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14078. need_locks=warn
  14079. fi
  14080. else
  14081. need_locks=no
  14082. fi
  14083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14084. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14085. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14086. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14087. case $host_os in
  14088. aix[4-9]*)
  14089. # If we're using GNU nm, then we don't want the "-C" option.
  14090. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14091. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14092. # weak defined symbols like other global defined symbols, whereas
  14093. # GNU nm marks them as "W".
  14094. # While the 'weak' keyword is ignored in the Export File, we need
  14095. # it in the Import File for the 'aix-soname' feature, so we have
  14096. # to replace the "-B" option with "-P" for AIX nm.
  14097. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14098. export_symbols_cmds_CXX='$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'
  14099. else
  14100. export_symbols_cmds_CXX='`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'
  14101. fi
  14102. ;;
  14103. pw32*)
  14104. export_symbols_cmds_CXX=$ltdll_cmds
  14105. ;;
  14106. cygwin* | mingw* | cegcc*)
  14107. case $cc_basename in
  14108. cl*)
  14109. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14110. ;;
  14111. *)
  14112. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  14113. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14114. ;;
  14115. esac
  14116. ;;
  14117. linux* | k*bsd*-gnu | gnu*)
  14118. link_all_deplibs_CXX=no
  14119. ;;
  14120. *)
  14121. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14122. ;;
  14123. esac
  14124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14125. $as_echo "$ld_shlibs_CXX" >&6; }
  14126. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14127. with_gnu_ld_CXX=$with_gnu_ld
  14128. #
  14129. # Do we need to explicitly link libc?
  14130. #
  14131. case "x$archive_cmds_need_lc_CXX" in
  14132. x|xyes)
  14133. # Assume -lc should be added
  14134. archive_cmds_need_lc_CXX=yes
  14135. if test yes,yes = "$GCC,$enable_shared"; then
  14136. case $archive_cmds_CXX in
  14137. *'~'*)
  14138. # FIXME: we may have to deal with multi-command sequences.
  14139. ;;
  14140. '$CC '*)
  14141. # Test whether the compiler implicitly links with -lc since on some
  14142. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14143. # to ld, don't add -lc before -lgcc.
  14144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14145. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14146. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14147. $as_echo_n "(cached) " >&6
  14148. else
  14149. $RM conftest*
  14150. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14151. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14152. (eval $ac_compile) 2>&5
  14153. ac_status=$?
  14154. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14155. test $ac_status = 0; } 2>conftest.err; then
  14156. soname=conftest
  14157. lib=conftest
  14158. libobjs=conftest.$ac_objext
  14159. deplibs=
  14160. wl=$lt_prog_compiler_wl_CXX
  14161. pic_flag=$lt_prog_compiler_pic_CXX
  14162. compiler_flags=-v
  14163. linker_flags=-v
  14164. verstring=
  14165. output_objdir=.
  14166. libname=conftest
  14167. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14168. allow_undefined_flag_CXX=
  14169. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14170. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14171. ac_status=$?
  14172. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14173. test $ac_status = 0; }
  14174. then
  14175. lt_cv_archive_cmds_need_lc_CXX=no
  14176. else
  14177. lt_cv_archive_cmds_need_lc_CXX=yes
  14178. fi
  14179. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14180. else
  14181. cat conftest.err 1>&5
  14182. fi
  14183. $RM conftest*
  14184. fi
  14185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14186. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14187. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14188. ;;
  14189. esac
  14190. fi
  14191. ;;
  14192. esac
  14193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14194. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14195. library_names_spec=
  14196. libname_spec='lib$name'
  14197. soname_spec=
  14198. shrext_cmds=.so
  14199. postinstall_cmds=
  14200. postuninstall_cmds=
  14201. finish_cmds=
  14202. finish_eval=
  14203. shlibpath_var=
  14204. shlibpath_overrides_runpath=unknown
  14205. version_type=none
  14206. dynamic_linker="$host_os ld.so"
  14207. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14208. need_lib_prefix=unknown
  14209. hardcode_into_libs=no
  14210. # when you set need_version to no, make sure it does not cause -set_version
  14211. # flags to be left without arguments
  14212. need_version=unknown
  14213. case $host_os in
  14214. aix3*)
  14215. version_type=linux # correct to gnu/linux during the next big refactor
  14216. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14217. shlibpath_var=LIBPATH
  14218. # AIX 3 has no versioning support, so we append a major version to the name.
  14219. soname_spec='$libname$release$shared_ext$major'
  14220. ;;
  14221. aix[4-9]*)
  14222. version_type=linux # correct to gnu/linux during the next big refactor
  14223. need_lib_prefix=no
  14224. need_version=no
  14225. hardcode_into_libs=yes
  14226. if test ia64 = "$host_cpu"; then
  14227. # AIX 5 supports IA64
  14228. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14229. shlibpath_var=LD_LIBRARY_PATH
  14230. else
  14231. # With GCC up to 2.95.x, collect2 would create an import file
  14232. # for dependence libraries. The import file would start with
  14233. # the line '#! .'. This would cause the generated library to
  14234. # depend on '.', always an invalid library. This was fixed in
  14235. # development snapshots of GCC prior to 3.0.
  14236. case $host_os in
  14237. aix4 | aix4.[01] | aix4.[01].*)
  14238. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14239. echo ' yes '
  14240. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14241. :
  14242. else
  14243. can_build_shared=no
  14244. fi
  14245. ;;
  14246. esac
  14247. # Using Import Files as archive members, it is possible to support
  14248. # filename-based versioning of shared library archives on AIX. While
  14249. # this would work for both with and without runtime linking, it will
  14250. # prevent static linking of such archives. So we do filename-based
  14251. # shared library versioning with .so extension only, which is used
  14252. # when both runtime linking and shared linking is enabled.
  14253. # Unfortunately, runtime linking may impact performance, so we do
  14254. # not want this to be the default eventually. Also, we use the
  14255. # versioned .so libs for executables only if there is the -brtl
  14256. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14257. # To allow for filename-based versioning support, we need to create
  14258. # libNAME.so.V as an archive file, containing:
  14259. # *) an Import File, referring to the versioned filename of the
  14260. # archive as well as the shared archive member, telling the
  14261. # bitwidth (32 or 64) of that shared object, and providing the
  14262. # list of exported symbols of that shared object, eventually
  14263. # decorated with the 'weak' keyword
  14264. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14265. # it being seen by the linker.
  14266. # At run time we better use the real file rather than another symlink,
  14267. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14268. case $with_aix_soname,$aix_use_runtimelinking in
  14269. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14270. # soname into executable. Probably we can add versioning support to
  14271. # collect2, so additional links can be useful in future.
  14272. aix,yes) # traditional libtool
  14273. dynamic_linker='AIX unversionable lib.so'
  14274. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14275. # instead of lib<name>.a to let people know that these are not
  14276. # typical AIX shared libraries.
  14277. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14278. ;;
  14279. aix,no) # traditional AIX only
  14280. dynamic_linker='AIX lib.a(lib.so.V)'
  14281. # We preserve .a as extension for shared libraries through AIX4.2
  14282. # and later when we are not doing run time linking.
  14283. library_names_spec='$libname$release.a $libname.a'
  14284. soname_spec='$libname$release$shared_ext$major'
  14285. ;;
  14286. svr4,*) # full svr4 only
  14287. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14288. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14289. # We do not specify a path in Import Files, so LIBPATH fires.
  14290. shlibpath_overrides_runpath=yes
  14291. ;;
  14292. *,yes) # both, prefer svr4
  14293. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14294. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14295. # unpreferred sharedlib libNAME.a needs extra handling
  14296. 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"'
  14297. 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"'
  14298. # We do not specify a path in Import Files, so LIBPATH fires.
  14299. shlibpath_overrides_runpath=yes
  14300. ;;
  14301. *,no) # both, prefer aix
  14302. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14303. library_names_spec='$libname$release.a $libname.a'
  14304. soname_spec='$libname$release$shared_ext$major'
  14305. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14306. 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)'
  14307. 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"'
  14308. ;;
  14309. esac
  14310. shlibpath_var=LIBPATH
  14311. fi
  14312. ;;
  14313. amigaos*)
  14314. case $host_cpu in
  14315. powerpc)
  14316. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14317. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14318. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14319. ;;
  14320. m68k)
  14321. library_names_spec='$libname.ixlibrary $libname.a'
  14322. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14323. 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'
  14324. ;;
  14325. esac
  14326. ;;
  14327. beos*)
  14328. library_names_spec='$libname$shared_ext'
  14329. dynamic_linker="$host_os ld.so"
  14330. shlibpath_var=LIBRARY_PATH
  14331. ;;
  14332. bsdi[45]*)
  14333. version_type=linux # correct to gnu/linux during the next big refactor
  14334. need_version=no
  14335. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14336. soname_spec='$libname$release$shared_ext$major'
  14337. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14338. shlibpath_var=LD_LIBRARY_PATH
  14339. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14340. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14341. # the default ld.so.conf also contains /usr/contrib/lib and
  14342. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14343. # libtool to hard-code these into programs
  14344. ;;
  14345. cygwin* | mingw* | pw32* | cegcc*)
  14346. version_type=windows
  14347. shrext_cmds=.dll
  14348. need_version=no
  14349. need_lib_prefix=no
  14350. case $GCC,$cc_basename in
  14351. yes,*)
  14352. # gcc
  14353. library_names_spec='$libname.dll.a'
  14354. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14355. postinstall_cmds='base_file=`basename \$file`~
  14356. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14357. dldir=$destdir/`dirname \$dlpath`~
  14358. test -d \$dldir || mkdir -p \$dldir~
  14359. $install_prog $dir/$dlname \$dldir/$dlname~
  14360. chmod a+x \$dldir/$dlname~
  14361. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14362. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14363. fi'
  14364. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14365. dlpath=$dir/\$dldll~
  14366. $RM \$dlpath'
  14367. shlibpath_overrides_runpath=yes
  14368. case $host_os in
  14369. cygwin*)
  14370. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14371. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14372. ;;
  14373. mingw* | cegcc*)
  14374. # MinGW DLLs use traditional 'lib' prefix
  14375. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14376. ;;
  14377. pw32*)
  14378. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14379. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14380. ;;
  14381. esac
  14382. dynamic_linker='Win32 ld.exe'
  14383. ;;
  14384. *,cl*)
  14385. # Native MSVC
  14386. libname_spec='$name'
  14387. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14388. library_names_spec='$libname.dll.lib'
  14389. case $build_os in
  14390. mingw*)
  14391. sys_lib_search_path_spec=
  14392. lt_save_ifs=$IFS
  14393. IFS=';'
  14394. for lt_path in $LIB
  14395. do
  14396. IFS=$lt_save_ifs
  14397. # Let DOS variable expansion print the short 8.3 style file name.
  14398. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14399. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14400. done
  14401. IFS=$lt_save_ifs
  14402. # Convert to MSYS style.
  14403. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14404. ;;
  14405. cygwin*)
  14406. # Convert to unix form, then to dos form, then back to unix form
  14407. # but this time dos style (no spaces!) so that the unix form looks
  14408. # like /cygdrive/c/PROGRA~1:/cygdr...
  14409. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14410. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14411. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14412. ;;
  14413. *)
  14414. sys_lib_search_path_spec=$LIB
  14415. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14416. # It is most probably a Windows format PATH.
  14417. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14418. else
  14419. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14420. fi
  14421. # FIXME: find the short name or the path components, as spaces are
  14422. # common. (e.g. "Program Files" -> "PROGRA~1")
  14423. ;;
  14424. esac
  14425. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14426. postinstall_cmds='base_file=`basename \$file`~
  14427. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14428. dldir=$destdir/`dirname \$dlpath`~
  14429. test -d \$dldir || mkdir -p \$dldir~
  14430. $install_prog $dir/$dlname \$dldir/$dlname'
  14431. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14432. dlpath=$dir/\$dldll~
  14433. $RM \$dlpath'
  14434. shlibpath_overrides_runpath=yes
  14435. dynamic_linker='Win32 link.exe'
  14436. ;;
  14437. *)
  14438. # Assume MSVC wrapper
  14439. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14440. dynamic_linker='Win32 ld.exe'
  14441. ;;
  14442. esac
  14443. # FIXME: first we should search . and the directory the executable is in
  14444. shlibpath_var=PATH
  14445. ;;
  14446. darwin* | rhapsody*)
  14447. dynamic_linker="$host_os dyld"
  14448. version_type=darwin
  14449. need_lib_prefix=no
  14450. need_version=no
  14451. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14452. soname_spec='$libname$release$major$shared_ext'
  14453. shlibpath_overrides_runpath=yes
  14454. shlibpath_var=DYLD_LIBRARY_PATH
  14455. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14456. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14457. ;;
  14458. dgux*)
  14459. version_type=linux # correct to gnu/linux during the next big refactor
  14460. need_lib_prefix=no
  14461. need_version=no
  14462. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14463. soname_spec='$libname$release$shared_ext$major'
  14464. shlibpath_var=LD_LIBRARY_PATH
  14465. ;;
  14466. freebsd* | dragonfly*)
  14467. # DragonFly does not have aout. When/if they implement a new
  14468. # versioning mechanism, adjust this.
  14469. if test -x /usr/bin/objformat; then
  14470. objformat=`/usr/bin/objformat`
  14471. else
  14472. case $host_os in
  14473. freebsd[23].*) objformat=aout ;;
  14474. *) objformat=elf ;;
  14475. esac
  14476. fi
  14477. version_type=freebsd-$objformat
  14478. case $version_type in
  14479. freebsd-elf*)
  14480. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14481. soname_spec='$libname$release$shared_ext$major'
  14482. need_version=no
  14483. need_lib_prefix=no
  14484. ;;
  14485. freebsd-*)
  14486. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14487. need_version=yes
  14488. ;;
  14489. esac
  14490. shlibpath_var=LD_LIBRARY_PATH
  14491. case $host_os in
  14492. freebsd2.*)
  14493. shlibpath_overrides_runpath=yes
  14494. ;;
  14495. freebsd3.[01]* | freebsdelf3.[01]*)
  14496. shlibpath_overrides_runpath=yes
  14497. hardcode_into_libs=yes
  14498. ;;
  14499. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14500. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14501. shlibpath_overrides_runpath=no
  14502. hardcode_into_libs=yes
  14503. ;;
  14504. *) # from 4.6 on, and DragonFly
  14505. shlibpath_overrides_runpath=yes
  14506. hardcode_into_libs=yes
  14507. ;;
  14508. esac
  14509. ;;
  14510. haiku*)
  14511. version_type=linux # correct to gnu/linux during the next big refactor
  14512. need_lib_prefix=no
  14513. need_version=no
  14514. dynamic_linker="$host_os runtime_loader"
  14515. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14516. soname_spec='$libname$release$shared_ext$major'
  14517. shlibpath_var=LIBRARY_PATH
  14518. shlibpath_overrides_runpath=no
  14519. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14520. hardcode_into_libs=yes
  14521. ;;
  14522. hpux9* | hpux10* | hpux11*)
  14523. # Give a soname corresponding to the major version so that dld.sl refuses to
  14524. # link against other versions.
  14525. version_type=sunos
  14526. need_lib_prefix=no
  14527. need_version=no
  14528. case $host_cpu in
  14529. ia64*)
  14530. shrext_cmds='.so'
  14531. hardcode_into_libs=yes
  14532. dynamic_linker="$host_os dld.so"
  14533. shlibpath_var=LD_LIBRARY_PATH
  14534. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14535. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14536. soname_spec='$libname$release$shared_ext$major'
  14537. if test 32 = "$HPUX_IA64_MODE"; then
  14538. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14539. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14540. else
  14541. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14542. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14543. fi
  14544. ;;
  14545. hppa*64*)
  14546. shrext_cmds='.sl'
  14547. hardcode_into_libs=yes
  14548. dynamic_linker="$host_os dld.sl"
  14549. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14550. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14551. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14552. soname_spec='$libname$release$shared_ext$major'
  14553. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14554. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14555. ;;
  14556. *)
  14557. shrext_cmds='.sl'
  14558. dynamic_linker="$host_os dld.sl"
  14559. shlibpath_var=SHLIB_PATH
  14560. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14561. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14562. soname_spec='$libname$release$shared_ext$major'
  14563. ;;
  14564. esac
  14565. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14566. postinstall_cmds='chmod 555 $lib'
  14567. # or fails outright, so override atomically:
  14568. install_override_mode=555
  14569. ;;
  14570. interix[3-9]*)
  14571. version_type=linux # correct to gnu/linux during the next big refactor
  14572. need_lib_prefix=no
  14573. need_version=no
  14574. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14575. soname_spec='$libname$release$shared_ext$major'
  14576. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14577. shlibpath_var=LD_LIBRARY_PATH
  14578. shlibpath_overrides_runpath=no
  14579. hardcode_into_libs=yes
  14580. ;;
  14581. irix5* | irix6* | nonstopux*)
  14582. case $host_os in
  14583. nonstopux*) version_type=nonstopux ;;
  14584. *)
  14585. if test yes = "$lt_cv_prog_gnu_ld"; then
  14586. version_type=linux # correct to gnu/linux during the next big refactor
  14587. else
  14588. version_type=irix
  14589. fi ;;
  14590. esac
  14591. need_lib_prefix=no
  14592. need_version=no
  14593. soname_spec='$libname$release$shared_ext$major'
  14594. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14595. case $host_os in
  14596. irix5* | nonstopux*)
  14597. libsuff= shlibsuff=
  14598. ;;
  14599. *)
  14600. case $LD in # libtool.m4 will add one of these switches to LD
  14601. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14602. libsuff= shlibsuff= libmagic=32-bit;;
  14603. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14604. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14605. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14606. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14607. *) libsuff= shlibsuff= libmagic=never-match;;
  14608. esac
  14609. ;;
  14610. esac
  14611. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14612. shlibpath_overrides_runpath=no
  14613. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14614. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14615. hardcode_into_libs=yes
  14616. ;;
  14617. # No shared lib support for Linux oldld, aout, or coff.
  14618. linux*oldld* | linux*aout* | linux*coff*)
  14619. dynamic_linker=no
  14620. ;;
  14621. linux*android*)
  14622. version_type=none # Android doesn't support versioned libraries.
  14623. need_lib_prefix=no
  14624. need_version=no
  14625. library_names_spec='$libname$release$shared_ext'
  14626. soname_spec='$libname$release$shared_ext'
  14627. finish_cmds=
  14628. shlibpath_var=LD_LIBRARY_PATH
  14629. shlibpath_overrides_runpath=yes
  14630. # This implies no fast_install, which is unacceptable.
  14631. # Some rework will be needed to allow for fast_install
  14632. # before this can be enabled.
  14633. hardcode_into_libs=yes
  14634. dynamic_linker='Android linker'
  14635. # Don't embed -rpath directories since the linker doesn't support them.
  14636. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14637. ;;
  14638. # This must be glibc/ELF.
  14639. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14640. version_type=linux # correct to gnu/linux during the next big refactor
  14641. need_lib_prefix=no
  14642. need_version=no
  14643. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14644. soname_spec='$libname$release$shared_ext$major'
  14645. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14646. shlibpath_var=LD_LIBRARY_PATH
  14647. shlibpath_overrides_runpath=no
  14648. # Some binutils ld are patched to set DT_RUNPATH
  14649. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14650. $as_echo_n "(cached) " >&6
  14651. else
  14652. lt_cv_shlibpath_overrides_runpath=no
  14653. save_LDFLAGS=$LDFLAGS
  14654. save_libdir=$libdir
  14655. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14656. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14658. /* end confdefs.h. */
  14659. int
  14660. main ()
  14661. {
  14662. ;
  14663. return 0;
  14664. }
  14665. _ACEOF
  14666. if ac_fn_cxx_try_link "$LINENO"; then :
  14667. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14668. lt_cv_shlibpath_overrides_runpath=yes
  14669. fi
  14670. fi
  14671. rm -f core conftest.err conftest.$ac_objext \
  14672. conftest$ac_exeext conftest.$ac_ext
  14673. LDFLAGS=$save_LDFLAGS
  14674. libdir=$save_libdir
  14675. fi
  14676. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14677. # This implies no fast_install, which is unacceptable.
  14678. # Some rework will be needed to allow for fast_install
  14679. # before this can be enabled.
  14680. hardcode_into_libs=yes
  14681. # Ideally, we could use ldconfig to report *all* directores which are
  14682. # searched for libraries, however this is still not possible. Aside from not
  14683. # being certain /sbin/ldconfig is available, command
  14684. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14685. # even though it is searched at run-time. Try to do the best guess by
  14686. # appending ld.so.conf contents (and includes) to the search path.
  14687. if test -f /etc/ld.so.conf; then
  14688. 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' ' '`
  14689. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14690. fi
  14691. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14692. # powerpc, because MkLinux only supported shared libraries with the
  14693. # GNU dynamic linker. Since this was broken with cross compilers,
  14694. # most powerpc-linux boxes support dynamic linking these days and
  14695. # people can always --disable-shared, the test was removed, and we
  14696. # assume the GNU/Linux dynamic linker is in use.
  14697. dynamic_linker='GNU/Linux ld.so'
  14698. ;;
  14699. netbsdelf*-gnu)
  14700. version_type=linux
  14701. need_lib_prefix=no
  14702. need_version=no
  14703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14704. soname_spec='${libname}${release}${shared_ext}$major'
  14705. shlibpath_var=LD_LIBRARY_PATH
  14706. shlibpath_overrides_runpath=no
  14707. hardcode_into_libs=yes
  14708. dynamic_linker='NetBSD ld.elf_so'
  14709. ;;
  14710. netbsd*)
  14711. version_type=sunos
  14712. need_lib_prefix=no
  14713. need_version=no
  14714. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14715. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14716. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14717. dynamic_linker='NetBSD (a.out) ld.so'
  14718. else
  14719. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14720. soname_spec='$libname$release$shared_ext$major'
  14721. dynamic_linker='NetBSD ld.elf_so'
  14722. fi
  14723. shlibpath_var=LD_LIBRARY_PATH
  14724. shlibpath_overrides_runpath=yes
  14725. hardcode_into_libs=yes
  14726. ;;
  14727. newsos6)
  14728. version_type=linux # correct to gnu/linux during the next big refactor
  14729. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14730. shlibpath_var=LD_LIBRARY_PATH
  14731. shlibpath_overrides_runpath=yes
  14732. ;;
  14733. *nto* | *qnx*)
  14734. version_type=qnx
  14735. need_lib_prefix=no
  14736. need_version=no
  14737. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14738. soname_spec='$libname$release$shared_ext$major'
  14739. shlibpath_var=LD_LIBRARY_PATH
  14740. shlibpath_overrides_runpath=no
  14741. hardcode_into_libs=yes
  14742. dynamic_linker='ldqnx.so'
  14743. ;;
  14744. openbsd* | bitrig*)
  14745. version_type=sunos
  14746. sys_lib_dlsearch_path_spec=/usr/lib
  14747. need_lib_prefix=no
  14748. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14749. need_version=no
  14750. else
  14751. need_version=yes
  14752. fi
  14753. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14754. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14755. shlibpath_var=LD_LIBRARY_PATH
  14756. shlibpath_overrides_runpath=yes
  14757. ;;
  14758. os2*)
  14759. libname_spec='$name'
  14760. version_type=windows
  14761. shrext_cmds=.dll
  14762. need_version=no
  14763. need_lib_prefix=no
  14764. # OS/2 can only load a DLL with a base name of 8 characters or less.
  14765. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  14766. v=$($ECHO $release$versuffix | tr -d .-);
  14767. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14768. $ECHO $n$v`$shared_ext'
  14769. library_names_spec='${libname}_dll.$libext'
  14770. dynamic_linker='OS/2 ld.exe'
  14771. shlibpath_var=BEGINLIBPATH
  14772. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14773. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14774. postinstall_cmds='base_file=`basename \$file`~
  14775. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14776. dldir=$destdir/`dirname \$dlpath`~
  14777. test -d \$dldir || mkdir -p \$dldir~
  14778. $install_prog $dir/$dlname \$dldir/$dlname~
  14779. chmod a+x \$dldir/$dlname~
  14780. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14781. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14782. fi'
  14783. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14784. dlpath=$dir/\$dldll~
  14785. $RM \$dlpath'
  14786. ;;
  14787. osf3* | osf4* | osf5*)
  14788. version_type=osf
  14789. need_lib_prefix=no
  14790. need_version=no
  14791. soname_spec='$libname$release$shared_ext$major'
  14792. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14793. shlibpath_var=LD_LIBRARY_PATH
  14794. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14795. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14796. ;;
  14797. rdos*)
  14798. dynamic_linker=no
  14799. ;;
  14800. solaris*)
  14801. version_type=linux # correct to gnu/linux during the next big refactor
  14802. need_lib_prefix=no
  14803. need_version=no
  14804. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14805. soname_spec='$libname$release$shared_ext$major'
  14806. shlibpath_var=LD_LIBRARY_PATH
  14807. shlibpath_overrides_runpath=yes
  14808. hardcode_into_libs=yes
  14809. # ldd complains unless libraries are executable
  14810. postinstall_cmds='chmod +x $lib'
  14811. ;;
  14812. sunos4*)
  14813. version_type=sunos
  14814. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14815. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14816. shlibpath_var=LD_LIBRARY_PATH
  14817. shlibpath_overrides_runpath=yes
  14818. if test yes = "$with_gnu_ld"; then
  14819. need_lib_prefix=no
  14820. fi
  14821. need_version=yes
  14822. ;;
  14823. sysv4 | sysv4.3*)
  14824. version_type=linux # correct to gnu/linux during the next big refactor
  14825. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14826. soname_spec='$libname$release$shared_ext$major'
  14827. shlibpath_var=LD_LIBRARY_PATH
  14828. case $host_vendor in
  14829. sni)
  14830. shlibpath_overrides_runpath=no
  14831. need_lib_prefix=no
  14832. runpath_var=LD_RUN_PATH
  14833. ;;
  14834. siemens)
  14835. need_lib_prefix=no
  14836. ;;
  14837. motorola)
  14838. need_lib_prefix=no
  14839. need_version=no
  14840. shlibpath_overrides_runpath=no
  14841. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14842. ;;
  14843. esac
  14844. ;;
  14845. sysv4*MP*)
  14846. if test -d /usr/nec; then
  14847. version_type=linux # correct to gnu/linux during the next big refactor
  14848. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14849. soname_spec='$libname$shared_ext.$major'
  14850. shlibpath_var=LD_LIBRARY_PATH
  14851. fi
  14852. ;;
  14853. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14854. version_type=sco
  14855. need_lib_prefix=no
  14856. need_version=no
  14857. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14858. soname_spec='$libname$release$shared_ext$major'
  14859. shlibpath_var=LD_LIBRARY_PATH
  14860. shlibpath_overrides_runpath=yes
  14861. hardcode_into_libs=yes
  14862. if test yes = "$with_gnu_ld"; then
  14863. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14864. else
  14865. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14866. case $host_os in
  14867. sco3.2v5*)
  14868. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14869. ;;
  14870. esac
  14871. fi
  14872. sys_lib_dlsearch_path_spec='/usr/lib'
  14873. ;;
  14874. tpf*)
  14875. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14876. version_type=linux # correct to gnu/linux during the next big refactor
  14877. need_lib_prefix=no
  14878. need_version=no
  14879. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14880. shlibpath_var=LD_LIBRARY_PATH
  14881. shlibpath_overrides_runpath=no
  14882. hardcode_into_libs=yes
  14883. ;;
  14884. uts4*)
  14885. version_type=linux # correct to gnu/linux during the next big refactor
  14886. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14887. soname_spec='$libname$release$shared_ext$major'
  14888. shlibpath_var=LD_LIBRARY_PATH
  14889. ;;
  14890. *)
  14891. dynamic_linker=no
  14892. ;;
  14893. esac
  14894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14895. $as_echo "$dynamic_linker" >&6; }
  14896. test no = "$dynamic_linker" && can_build_shared=no
  14897. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14898. if test yes = "$GCC"; then
  14899. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14900. fi
  14901. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14902. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14903. fi
  14904. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14905. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14906. fi
  14907. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14908. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14909. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14910. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14911. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14912. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14914. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14915. hardcode_action_CXX=
  14916. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14917. test -n "$runpath_var_CXX" ||
  14918. test yes = "$hardcode_automatic_CXX"; then
  14919. # We can hardcode non-existent directories.
  14920. if test no != "$hardcode_direct_CXX" &&
  14921. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14922. # have to relink, otherwise we might link with an installed library
  14923. # when we should be linking with a yet-to-be-installed one
  14924. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14925. test no != "$hardcode_minus_L_CXX"; then
  14926. # Linking always hardcodes the temporary library directory.
  14927. hardcode_action_CXX=relink
  14928. else
  14929. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14930. hardcode_action_CXX=immediate
  14931. fi
  14932. else
  14933. # We cannot hardcode anything, or else we can only hardcode existing
  14934. # directories.
  14935. hardcode_action_CXX=unsupported
  14936. fi
  14937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14938. $as_echo "$hardcode_action_CXX" >&6; }
  14939. if test relink = "$hardcode_action_CXX" ||
  14940. test yes = "$inherit_rpath_CXX"; then
  14941. # Fast installation is not supported
  14942. enable_fast_install=no
  14943. elif test yes = "$shlibpath_overrides_runpath" ||
  14944. test no = "$enable_shared"; then
  14945. # Fast installation is not necessary
  14946. enable_fast_install=needless
  14947. fi
  14948. fi # test -n "$compiler"
  14949. CC=$lt_save_CC
  14950. CFLAGS=$lt_save_CFLAGS
  14951. LDCXX=$LD
  14952. LD=$lt_save_LD
  14953. GCC=$lt_save_GCC
  14954. with_gnu_ld=$lt_save_with_gnu_ld
  14955. lt_cv_path_LDCXX=$lt_cv_path_LD
  14956. lt_cv_path_LD=$lt_save_path_LD
  14957. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14958. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14959. fi # test yes != "$_lt_caught_CXX_error"
  14960. ac_ext=c
  14961. ac_cpp='$CPP $CPPFLAGS'
  14962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the CLANG C compiler" >&5
  14966. $as_echo_n "checking whether we are using the CLANG C compiler... " >&6; }
  14967. if ${xiph_cv_c_compiler_clang+:} false; then :
  14968. $as_echo_n "(cached) " >&6
  14969. else
  14970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14971. /* end confdefs.h. */
  14972. #include <stdio.h>
  14973. int
  14974. main ()
  14975. {
  14976. #ifndef __clang__
  14977. This is not clang!
  14978. #endif
  14979. ;
  14980. return 0;
  14981. }
  14982. _ACEOF
  14983. if ac_fn_c_try_link "$LINENO"; then :
  14984. xiph_cv_c_compiler_clang=yes
  14985. else
  14986. xiph_cv_c_compiler_clang=no
  14987. fi
  14988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xiph_cv_c_compiler_clang" >&5
  14989. $as_echo "$xiph_cv_c_compiler_clang" >&6; }
  14990. fi
  14991. rm -f core conftest.err conftest.$ac_objext \
  14992. conftest$ac_exeext conftest.$ac_ext
  14993. if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
  14994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14995. /* end confdefs.h. */
  14996. #include <stdio.h>
  14997. int
  14998. main ()
  14999. {
  15000. #ifdef __clang__
  15001. This is clang!
  15002. #endif
  15003. ;
  15004. return 0;
  15005. }
  15006. _ACEOF
  15007. if ac_fn_c_try_link "$LINENO"; then :
  15008. ac_cv_c_compiler_gnu=yes
  15009. else
  15010. ac_cv_c_compiler_gnu=no
  15011. fi
  15012. rm -f core conftest.err conftest.$ac_objext \
  15013. conftest$ac_exeext conftest.$ac_ext
  15014. fi
  15015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15016. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15017. set x ${MAKE-make}
  15018. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15019. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  15020. $as_echo_n "(cached) " >&6
  15021. else
  15022. cat >conftest.make <<\_ACEOF
  15023. SHELL = /bin/sh
  15024. all:
  15025. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15026. _ACEOF
  15027. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15028. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15029. *@@@%%%=?*=@@@%%%*)
  15030. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15031. *)
  15032. eval ac_cv_prog_make_${ac_make}_set=no;;
  15033. esac
  15034. rm -f conftest.make
  15035. fi
  15036. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15038. $as_echo "yes" >&6; }
  15039. SET_MAKE=
  15040. else
  15041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15042. $as_echo "no" >&6; }
  15043. SET_MAKE="MAKE=${MAKE-make}"
  15044. fi
  15045. # Check whether --enable-largefile was given.
  15046. if test "${enable_largefile+set}" = set; then :
  15047. enableval=$enable_largefile;
  15048. fi
  15049. if test "$enable_largefile" != no; then
  15050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15051. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  15052. if ${ac_cv_sys_largefile_CC+:} false; then :
  15053. $as_echo_n "(cached) " >&6
  15054. else
  15055. ac_cv_sys_largefile_CC=no
  15056. if test "$GCC" != yes; then
  15057. ac_save_CC=$CC
  15058. while :; do
  15059. # IRIX 6.2 and later do not support large files by default,
  15060. # so use the C compiler's -n32 option if that helps.
  15061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15062. /* end confdefs.h. */
  15063. #include <sys/types.h>
  15064. /* Check that off_t can represent 2**63 - 1 correctly.
  15065. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15066. since some C++ compilers masquerading as C compilers
  15067. incorrectly reject 9223372036854775807. */
  15068. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  15069. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15070. && LARGE_OFF_T % 2147483647 == 1)
  15071. ? 1 : -1];
  15072. int
  15073. main ()
  15074. {
  15075. ;
  15076. return 0;
  15077. }
  15078. _ACEOF
  15079. if ac_fn_c_try_compile "$LINENO"; then :
  15080. break
  15081. fi
  15082. rm -f core conftest.err conftest.$ac_objext
  15083. CC="$CC -n32"
  15084. if ac_fn_c_try_compile "$LINENO"; then :
  15085. ac_cv_sys_largefile_CC=' -n32'; break
  15086. fi
  15087. rm -f core conftest.err conftest.$ac_objext
  15088. break
  15089. done
  15090. CC=$ac_save_CC
  15091. rm -f conftest.$ac_ext
  15092. fi
  15093. fi
  15094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15095. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  15096. if test "$ac_cv_sys_largefile_CC" != no; then
  15097. CC=$CC$ac_cv_sys_largefile_CC
  15098. fi
  15099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15100. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15101. if ${ac_cv_sys_file_offset_bits+:} false; then :
  15102. $as_echo_n "(cached) " >&6
  15103. else
  15104. while :; do
  15105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15106. /* end confdefs.h. */
  15107. #include <sys/types.h>
  15108. /* Check that off_t can represent 2**63 - 1 correctly.
  15109. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15110. since some C++ compilers masquerading as C compilers
  15111. incorrectly reject 9223372036854775807. */
  15112. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  15113. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15114. && LARGE_OFF_T % 2147483647 == 1)
  15115. ? 1 : -1];
  15116. int
  15117. main ()
  15118. {
  15119. ;
  15120. return 0;
  15121. }
  15122. _ACEOF
  15123. if ac_fn_c_try_compile "$LINENO"; then :
  15124. ac_cv_sys_file_offset_bits=no; break
  15125. fi
  15126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15128. /* end confdefs.h. */
  15129. #define _FILE_OFFSET_BITS 64
  15130. #include <sys/types.h>
  15131. /* Check that off_t can represent 2**63 - 1 correctly.
  15132. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15133. since some C++ compilers masquerading as C compilers
  15134. incorrectly reject 9223372036854775807. */
  15135. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  15136. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15137. && LARGE_OFF_T % 2147483647 == 1)
  15138. ? 1 : -1];
  15139. int
  15140. main ()
  15141. {
  15142. ;
  15143. return 0;
  15144. }
  15145. _ACEOF
  15146. if ac_fn_c_try_compile "$LINENO"; then :
  15147. ac_cv_sys_file_offset_bits=64; break
  15148. fi
  15149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15150. ac_cv_sys_file_offset_bits=unknown
  15151. break
  15152. done
  15153. fi
  15154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15155. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  15156. case $ac_cv_sys_file_offset_bits in #(
  15157. no | unknown) ;;
  15158. *)
  15159. cat >>confdefs.h <<_ACEOF
  15160. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  15161. _ACEOF
  15162. ;;
  15163. esac
  15164. rm -rf conftest*
  15165. if test $ac_cv_sys_file_offset_bits = unknown; then
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15167. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  15168. if ${ac_cv_sys_large_files+:} false; then :
  15169. $as_echo_n "(cached) " >&6
  15170. else
  15171. while :; do
  15172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15173. /* end confdefs.h. */
  15174. #include <sys/types.h>
  15175. /* Check that off_t can represent 2**63 - 1 correctly.
  15176. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15177. since some C++ compilers masquerading as C compilers
  15178. incorrectly reject 9223372036854775807. */
  15179. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  15180. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15181. && LARGE_OFF_T % 2147483647 == 1)
  15182. ? 1 : -1];
  15183. int
  15184. main ()
  15185. {
  15186. ;
  15187. return 0;
  15188. }
  15189. _ACEOF
  15190. if ac_fn_c_try_compile "$LINENO"; then :
  15191. ac_cv_sys_large_files=no; break
  15192. fi
  15193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15195. /* end confdefs.h. */
  15196. #define _LARGE_FILES 1
  15197. #include <sys/types.h>
  15198. /* Check that off_t can represent 2**63 - 1 correctly.
  15199. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15200. since some C++ compilers masquerading as C compilers
  15201. incorrectly reject 9223372036854775807. */
  15202. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  15203. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15204. && LARGE_OFF_T % 2147483647 == 1)
  15205. ? 1 : -1];
  15206. int
  15207. main ()
  15208. {
  15209. ;
  15210. return 0;
  15211. }
  15212. _ACEOF
  15213. if ac_fn_c_try_compile "$LINENO"; then :
  15214. ac_cv_sys_large_files=1; break
  15215. fi
  15216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15217. ac_cv_sys_large_files=unknown
  15218. break
  15219. done
  15220. fi
  15221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15222. $as_echo "$ac_cv_sys_large_files" >&6; }
  15223. case $ac_cv_sys_large_files in #(
  15224. no | unknown) ;;
  15225. *)
  15226. cat >>confdefs.h <<_ACEOF
  15227. #define _LARGE_FILES $ac_cv_sys_large_files
  15228. _ACEOF
  15229. ;;
  15230. esac
  15231. rm -rf conftest*
  15232. fi
  15233. fi
  15234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  15235. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  15236. if ${ac_cv_sys_largefile_source+:} false; then :
  15237. $as_echo_n "(cached) " >&6
  15238. else
  15239. while :; do
  15240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15241. /* end confdefs.h. */
  15242. #include <sys/types.h> /* for off_t */
  15243. #include <stdio.h>
  15244. int
  15245. main ()
  15246. {
  15247. int (*fp) (FILE *, off_t, int) = fseeko;
  15248. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15249. ;
  15250. return 0;
  15251. }
  15252. _ACEOF
  15253. if ac_fn_c_try_link "$LINENO"; then :
  15254. ac_cv_sys_largefile_source=no; break
  15255. fi
  15256. rm -f core conftest.err conftest.$ac_objext \
  15257. conftest$ac_exeext conftest.$ac_ext
  15258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15259. /* end confdefs.h. */
  15260. #define _LARGEFILE_SOURCE 1
  15261. #include <sys/types.h> /* for off_t */
  15262. #include <stdio.h>
  15263. int
  15264. main ()
  15265. {
  15266. int (*fp) (FILE *, off_t, int) = fseeko;
  15267. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15268. ;
  15269. return 0;
  15270. }
  15271. _ACEOF
  15272. if ac_fn_c_try_link "$LINENO"; then :
  15273. ac_cv_sys_largefile_source=1; break
  15274. fi
  15275. rm -f core conftest.err conftest.$ac_objext \
  15276. conftest$ac_exeext conftest.$ac_ext
  15277. ac_cv_sys_largefile_source=unknown
  15278. break
  15279. done
  15280. fi
  15281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  15282. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  15283. case $ac_cv_sys_largefile_source in #(
  15284. no | unknown) ;;
  15285. *)
  15286. cat >>confdefs.h <<_ACEOF
  15287. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  15288. _ACEOF
  15289. ;;
  15290. esac
  15291. rm -rf conftest*
  15292. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  15293. # in glibc 2.1.3, but that breaks too many other things.
  15294. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  15295. if test $ac_cv_sys_largefile_source != unknown; then
  15296. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  15297. fi
  15298. # The cast to long int works around a bug in the HP C Compiler
  15299. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15300. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15301. # This bug is HP SR number 8606223364.
  15302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  15303. $as_echo_n "checking size of off_t... " >&6; }
  15304. if ${ac_cv_sizeof_off_t+:} false; then :
  15305. $as_echo_n "(cached) " >&6
  15306. else
  15307. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  15308. else
  15309. if test "$ac_cv_type_off_t" = yes; then
  15310. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15311. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15312. as_fn_error 77 "cannot compute sizeof (off_t)
  15313. See \`config.log' for more details" "$LINENO" 5; }
  15314. else
  15315. ac_cv_sizeof_off_t=0
  15316. fi
  15317. fi
  15318. fi
  15319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  15320. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  15321. cat >>confdefs.h <<_ACEOF
  15322. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  15323. _ACEOF
  15324. # Fake default value.
  15325. # The cast to long int works around a bug in the HP C Compiler
  15326. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15327. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15328. # This bug is HP SR number 8606223364.
  15329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
  15330. $as_echo_n "checking size of void*... " >&6; }
  15331. if ${ac_cv_sizeof_voidp+:} false; then :
  15332. $as_echo_n "(cached) " >&6
  15333. else
  15334. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
  15335. else
  15336. if test "$ac_cv_type_voidp" = yes; then
  15337. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15338. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15339. as_fn_error 77 "cannot compute sizeof (void*)
  15340. See \`config.log' for more details" "$LINENO" 5; }
  15341. else
  15342. ac_cv_sizeof_voidp=0
  15343. fi
  15344. fi
  15345. fi
  15346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
  15347. $as_echo "$ac_cv_sizeof_voidp" >&6; }
  15348. cat >>confdefs.h <<_ACEOF
  15349. #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
  15350. _ACEOF
  15351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lround" >&5
  15352. $as_echo_n "checking for library containing lround... " >&6; }
  15353. if ${ac_cv_search_lround+:} false; then :
  15354. $as_echo_n "(cached) " >&6
  15355. else
  15356. ac_func_search_save_LIBS=$LIBS
  15357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15358. /* end confdefs.h. */
  15359. /* Override any GCC internal prototype to avoid an error.
  15360. Use char because int might match the return type of a GCC
  15361. builtin and then its argument prototype would still apply. */
  15362. #ifdef __cplusplus
  15363. extern "C"
  15364. #endif
  15365. char lround ();
  15366. int
  15367. main ()
  15368. {
  15369. return lround ();
  15370. ;
  15371. return 0;
  15372. }
  15373. _ACEOF
  15374. for ac_lib in '' m; do
  15375. if test -z "$ac_lib"; then
  15376. ac_res="none required"
  15377. else
  15378. ac_res=-l$ac_lib
  15379. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15380. fi
  15381. if ac_fn_c_try_link "$LINENO"; then :
  15382. ac_cv_search_lround=$ac_res
  15383. fi
  15384. rm -f core conftest.err conftest.$ac_objext \
  15385. conftest$ac_exeext
  15386. if ${ac_cv_search_lround+:} false; then :
  15387. break
  15388. fi
  15389. done
  15390. if ${ac_cv_search_lround+:} false; then :
  15391. else
  15392. ac_cv_search_lround=no
  15393. fi
  15394. rm conftest.$ac_ext
  15395. LIBS=$ac_func_search_save_LIBS
  15396. fi
  15397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lround" >&5
  15398. $as_echo "$ac_cv_search_lround" >&6; }
  15399. ac_res=$ac_cv_search_lround
  15400. if test "$ac_res" != no; then :
  15401. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15402. $as_echo "#define HAVE_LROUND 1" >>confdefs.h
  15403. fi
  15404. ac_ext=cpp
  15405. ac_cpp='$CXXCPP $CPPFLAGS'
  15406. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15407. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15408. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15409. # c++ flavor first
  15410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
  15411. $as_echo_n "checking for variable-length arrays... " >&6; }
  15412. if ${ac_cv_c_vararrays+:} false; then :
  15413. $as_echo_n "(cached) " >&6
  15414. else
  15415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15416. /* end confdefs.h. */
  15417. int
  15418. main ()
  15419. {
  15420. static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];
  15421. ;
  15422. return 0;
  15423. }
  15424. _ACEOF
  15425. if ac_fn_cxx_try_compile "$LINENO"; then :
  15426. ac_cv_c_vararrays=yes
  15427. else
  15428. ac_cv_c_vararrays=no
  15429. fi
  15430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15431. fi
  15432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
  15433. $as_echo "$ac_cv_c_vararrays" >&6; }
  15434. if test $ac_cv_c_vararrays = yes; then
  15435. $as_echo "#define HAVE_C_VARARRAYS 1" >>confdefs.h
  15436. fi
  15437. if test $ac_cv_c_vararrays = yes; then
  15438. $as_echo "#define HAVE_CXX_VARARRAYS 1" >>confdefs.h
  15439. fi
  15440. ac_ext=c
  15441. ac_cpp='$CPP $CPPFLAGS'
  15442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15445. # c flavor
  15446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  15447. $as_echo_n "checking for ANSI C header files... " >&6; }
  15448. if ${ac_cv_header_stdc+:} false; then :
  15449. $as_echo_n "(cached) " >&6
  15450. else
  15451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15452. /* end confdefs.h. */
  15453. #include <stdlib.h>
  15454. #include <stdarg.h>
  15455. #include <string.h>
  15456. #include <float.h>
  15457. int
  15458. main ()
  15459. {
  15460. ;
  15461. return 0;
  15462. }
  15463. _ACEOF
  15464. if ac_fn_c_try_compile "$LINENO"; then :
  15465. ac_cv_header_stdc=yes
  15466. else
  15467. ac_cv_header_stdc=no
  15468. fi
  15469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15470. if test $ac_cv_header_stdc = yes; then
  15471. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15473. /* end confdefs.h. */
  15474. #include <string.h>
  15475. _ACEOF
  15476. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15477. $EGREP "memchr" >/dev/null 2>&1; then :
  15478. else
  15479. ac_cv_header_stdc=no
  15480. fi
  15481. rm -f conftest*
  15482. fi
  15483. if test $ac_cv_header_stdc = yes; then
  15484. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15486. /* end confdefs.h. */
  15487. #include <stdlib.h>
  15488. _ACEOF
  15489. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15490. $EGREP "free" >/dev/null 2>&1; then :
  15491. else
  15492. ac_cv_header_stdc=no
  15493. fi
  15494. rm -f conftest*
  15495. fi
  15496. if test $ac_cv_header_stdc = yes; then
  15497. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15498. if test "$cross_compiling" = yes; then :
  15499. :
  15500. else
  15501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15502. /* end confdefs.h. */
  15503. #include <ctype.h>
  15504. #include <stdlib.h>
  15505. #if ((' ' & 0x0FF) == 0x020)
  15506. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15507. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15508. #else
  15509. # define ISLOWER(c) \
  15510. (('a' <= (c) && (c) <= 'i') \
  15511. || ('j' <= (c) && (c) <= 'r') \
  15512. || ('s' <= (c) && (c) <= 'z'))
  15513. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15514. #endif
  15515. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15516. int
  15517. main ()
  15518. {
  15519. int i;
  15520. for (i = 0; i < 256; i++)
  15521. if (XOR (islower (i), ISLOWER (i))
  15522. || toupper (i) != TOUPPER (i))
  15523. return 2;
  15524. return 0;
  15525. }
  15526. _ACEOF
  15527. if ac_fn_c_try_run "$LINENO"; then :
  15528. else
  15529. ac_cv_header_stdc=no
  15530. fi
  15531. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15532. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15533. fi
  15534. fi
  15535. fi
  15536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15537. $as_echo "$ac_cv_header_stdc" >&6; }
  15538. if test $ac_cv_header_stdc = yes; then
  15539. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15540. fi
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15542. $as_echo_n "checking for inline... " >&6; }
  15543. if ${ac_cv_c_inline+:} false; then :
  15544. $as_echo_n "(cached) " >&6
  15545. else
  15546. ac_cv_c_inline=no
  15547. for ac_kw in inline __inline__ __inline; do
  15548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15549. /* end confdefs.h. */
  15550. #ifndef __cplusplus
  15551. typedef int foo_t;
  15552. static $ac_kw foo_t static_foo () {return 0; }
  15553. $ac_kw foo_t foo () {return 0; }
  15554. #endif
  15555. _ACEOF
  15556. if ac_fn_c_try_compile "$LINENO"; then :
  15557. ac_cv_c_inline=$ac_kw
  15558. fi
  15559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15560. test "$ac_cv_c_inline" != no && break
  15561. done
  15562. fi
  15563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15564. $as_echo "$ac_cv_c_inline" >&6; }
  15565. case $ac_cv_c_inline in
  15566. inline | yes) ;;
  15567. *)
  15568. case $ac_cv_c_inline in
  15569. no) ac_val=;;
  15570. *) ac_val=$ac_cv_c_inline;;
  15571. esac
  15572. cat >>confdefs.h <<_ACEOF
  15573. #ifndef __cplusplus
  15574. #define inline $ac_val
  15575. #endif
  15576. _ACEOF
  15577. ;;
  15578. esac
  15579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
  15580. $as_echo_n "checking for variable-length arrays... " >&6; }
  15581. if ${ac_cv_c_vararrays+:} false; then :
  15582. $as_echo_n "(cached) " >&6
  15583. else
  15584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15585. /* end confdefs.h. */
  15586. int
  15587. main ()
  15588. {
  15589. static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];
  15590. ;
  15591. return 0;
  15592. }
  15593. _ACEOF
  15594. if ac_fn_c_try_compile "$LINENO"; then :
  15595. ac_cv_c_vararrays=yes
  15596. else
  15597. ac_cv_c_vararrays=no
  15598. fi
  15599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15600. fi
  15601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
  15602. $as_echo "$ac_cv_c_vararrays" >&6; }
  15603. if test $ac_cv_c_vararrays = yes; then
  15604. $as_echo "#define HAVE_C_VARARRAYS 1" >>confdefs.h
  15605. fi
  15606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
  15607. $as_echo_n "checking for typeof syntax and keyword spelling... " >&6; }
  15608. if ${ac_cv_c_typeof+:} false; then :
  15609. $as_echo_n "(cached) " >&6
  15610. else
  15611. ac_cv_c_typeof=no
  15612. for ac_kw in typeof __typeof__ no; do
  15613. test $ac_kw = no && break
  15614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15615. /* end confdefs.h. */
  15616. int
  15617. main ()
  15618. {
  15619. int value;
  15620. typedef struct {
  15621. char a [1
  15622. + ! (($ac_kw (value))
  15623. (($ac_kw (value)) 0 < ($ac_kw (value)) -1
  15624. ? ($ac_kw (value)) - 1
  15625. : ~ (~ ($ac_kw (value)) 0
  15626. << sizeof ($ac_kw (value)))))]; }
  15627. ac__typeof_type_;
  15628. return
  15629. (! ((void) ((ac__typeof_type_ *) 0), 0));
  15630. ;
  15631. return 0;
  15632. }
  15633. _ACEOF
  15634. if ac_fn_c_try_compile "$LINENO"; then :
  15635. ac_cv_c_typeof=$ac_kw
  15636. fi
  15637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15638. test $ac_cv_c_typeof != no && break
  15639. done
  15640. fi
  15641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
  15642. $as_echo "$ac_cv_c_typeof" >&6; }
  15643. if test $ac_cv_c_typeof != no; then
  15644. $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
  15645. if test $ac_cv_c_typeof != typeof; then
  15646. cat >>confdefs.h <<_ACEOF
  15647. #define typeof $ac_cv_c_typeof
  15648. _ACEOF
  15649. fi
  15650. fi
  15651. for ac_header in stdint.h inttypes.h byteswap.h sys/param.h sys/ioctl.h termios.h x86intrin.h cpuid.h
  15652. do :
  15653. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15654. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15655. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15656. cat >>confdefs.h <<_ACEOF
  15657. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15658. _ACEOF
  15659. fi
  15660. done
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32 instrinsic" >&5
  15662. $as_echo_n "checking for bswap32 instrinsic... " >&6; }
  15663. if ${ac_cv_c_bswap32+:} false; then :
  15664. $as_echo_n "(cached) " >&6
  15665. else
  15666. # Initialize to no
  15667. ac_cv_c_bswap32=no
  15668. HAVE_BSWAP32=0
  15669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15670. /* end confdefs.h. */
  15671. int
  15672. main ()
  15673. {
  15674. return __builtin_bswap32 (0) ;
  15675. ;
  15676. return 0;
  15677. }
  15678. _ACEOF
  15679. if ac_fn_c_try_link "$LINENO"; then :
  15680. ac_cv_c_bswap32=yes
  15681. HAVE_BSWAP32=1
  15682. fi
  15683. rm -f core conftest.err conftest.$ac_objext \
  15684. conftest$ac_exeext conftest.$ac_ext
  15685. cat >>confdefs.h <<_ACEOF
  15686. #define HAVE_BSWAP32 ${HAVE_BSWAP32}
  15687. _ACEOF
  15688. fi
  15689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bswap32" >&5
  15690. $as_echo "$ac_cv_c_bswap32" >&6; }
  15691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 instrinsic" >&5
  15692. $as_echo_n "checking for bswap16 instrinsic... " >&6; }
  15693. if ${ac_cv_c_bswap16+:} false; then :
  15694. $as_echo_n "(cached) " >&6
  15695. else
  15696. # Initialize to no
  15697. ac_cv_c_bswap16=no
  15698. HAVE_BSWAP16=0
  15699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15700. /* end confdefs.h. */
  15701. int
  15702. main ()
  15703. {
  15704. return __builtin_bswap16 (0) ;
  15705. ;
  15706. return 0;
  15707. }
  15708. _ACEOF
  15709. if ac_fn_c_try_link "$LINENO"; then :
  15710. ac_cv_c_bswap16=yes
  15711. HAVE_BSWAP16=1
  15712. fi
  15713. rm -f core conftest.err conftest.$ac_objext \
  15714. conftest$ac_exeext conftest.$ac_ext
  15715. cat >>confdefs.h <<_ACEOF
  15716. #define HAVE_BSWAP16 ${HAVE_BSWAP16}
  15717. _ACEOF
  15718. fi
  15719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bswap16" >&5
  15720. $as_echo "$ac_cv_c_bswap16" >&6; }
  15721. ac_cv_c_big_endian=0
  15722. ac_cv_c_little_endian=0
  15723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  15724. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  15725. if ${ac_cv_c_bigendian+:} false; then :
  15726. $as_echo_n "(cached) " >&6
  15727. else
  15728. ac_cv_c_bigendian=unknown
  15729. # See if we're dealing with a universal compiler.
  15730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15731. /* end confdefs.h. */
  15732. #ifndef __APPLE_CC__
  15733. not a universal capable compiler
  15734. #endif
  15735. typedef int dummy;
  15736. _ACEOF
  15737. if ac_fn_c_try_compile "$LINENO"; then :
  15738. # Check for potential -arch flags. It is not universal unless
  15739. # there are at least two -arch flags with different values.
  15740. ac_arch=
  15741. ac_prev=
  15742. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  15743. if test -n "$ac_prev"; then
  15744. case $ac_word in
  15745. i?86 | x86_64 | ppc | ppc64)
  15746. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  15747. ac_arch=$ac_word
  15748. else
  15749. ac_cv_c_bigendian=universal
  15750. break
  15751. fi
  15752. ;;
  15753. esac
  15754. ac_prev=
  15755. elif test "x$ac_word" = "x-arch"; then
  15756. ac_prev=arch
  15757. fi
  15758. done
  15759. fi
  15760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15761. if test $ac_cv_c_bigendian = unknown; then
  15762. # See if sys/param.h defines the BYTE_ORDER macro.
  15763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15764. /* end confdefs.h. */
  15765. #include <sys/types.h>
  15766. #include <sys/param.h>
  15767. int
  15768. main ()
  15769. {
  15770. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  15771. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  15772. && LITTLE_ENDIAN)
  15773. bogus endian macros
  15774. #endif
  15775. ;
  15776. return 0;
  15777. }
  15778. _ACEOF
  15779. if ac_fn_c_try_compile "$LINENO"; then :
  15780. # It does; now see whether it defined to BIG_ENDIAN or not.
  15781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15782. /* end confdefs.h. */
  15783. #include <sys/types.h>
  15784. #include <sys/param.h>
  15785. int
  15786. main ()
  15787. {
  15788. #if BYTE_ORDER != BIG_ENDIAN
  15789. not big endian
  15790. #endif
  15791. ;
  15792. return 0;
  15793. }
  15794. _ACEOF
  15795. if ac_fn_c_try_compile "$LINENO"; then :
  15796. ac_cv_c_bigendian=yes
  15797. else
  15798. ac_cv_c_bigendian=no
  15799. fi
  15800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15801. fi
  15802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15803. fi
  15804. if test $ac_cv_c_bigendian = unknown; then
  15805. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  15806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15807. /* end confdefs.h. */
  15808. #include <limits.h>
  15809. int
  15810. main ()
  15811. {
  15812. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  15813. bogus endian macros
  15814. #endif
  15815. ;
  15816. return 0;
  15817. }
  15818. _ACEOF
  15819. if ac_fn_c_try_compile "$LINENO"; then :
  15820. # It does; now see whether it defined to _BIG_ENDIAN or not.
  15821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15822. /* end confdefs.h. */
  15823. #include <limits.h>
  15824. int
  15825. main ()
  15826. {
  15827. #ifndef _BIG_ENDIAN
  15828. not big endian
  15829. #endif
  15830. ;
  15831. return 0;
  15832. }
  15833. _ACEOF
  15834. if ac_fn_c_try_compile "$LINENO"; then :
  15835. ac_cv_c_bigendian=yes
  15836. else
  15837. ac_cv_c_bigendian=no
  15838. fi
  15839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15840. fi
  15841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15842. fi
  15843. if test $ac_cv_c_bigendian = unknown; then
  15844. # Compile a test program.
  15845. if test "$cross_compiling" = yes; then :
  15846. # Try to guess by grepping values from an object file.
  15847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15848. /* end confdefs.h. */
  15849. short int ascii_mm[] =
  15850. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  15851. short int ascii_ii[] =
  15852. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  15853. int use_ascii (int i) {
  15854. return ascii_mm[i] + ascii_ii[i];
  15855. }
  15856. short int ebcdic_ii[] =
  15857. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  15858. short int ebcdic_mm[] =
  15859. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  15860. int use_ebcdic (int i) {
  15861. return ebcdic_mm[i] + ebcdic_ii[i];
  15862. }
  15863. extern int foo;
  15864. int
  15865. main ()
  15866. {
  15867. return use_ascii (foo) == use_ebcdic (foo);
  15868. ;
  15869. return 0;
  15870. }
  15871. _ACEOF
  15872. if ac_fn_c_try_compile "$LINENO"; then :
  15873. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  15874. ac_cv_c_bigendian=yes
  15875. fi
  15876. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  15877. if test "$ac_cv_c_bigendian" = unknown; then
  15878. ac_cv_c_bigendian=no
  15879. else
  15880. # finding both strings is unlikely to happen, but who knows?
  15881. ac_cv_c_bigendian=unknown
  15882. fi
  15883. fi
  15884. fi
  15885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15886. else
  15887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15888. /* end confdefs.h. */
  15889. $ac_includes_default
  15890. int
  15891. main ()
  15892. {
  15893. /* Are we little or big endian? From Harbison&Steele. */
  15894. union
  15895. {
  15896. long int l;
  15897. char c[sizeof (long int)];
  15898. } u;
  15899. u.l = 1;
  15900. return u.c[sizeof (long int) - 1] == 1;
  15901. ;
  15902. return 0;
  15903. }
  15904. _ACEOF
  15905. if ac_fn_c_try_run "$LINENO"; then :
  15906. ac_cv_c_bigendian=no
  15907. else
  15908. ac_cv_c_bigendian=yes
  15909. fi
  15910. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15911. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15912. fi
  15913. fi
  15914. fi
  15915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  15916. $as_echo "$ac_cv_c_bigendian" >&6; }
  15917. case $ac_cv_c_bigendian in #(
  15918. yes)
  15919. ac_cv_c_big_endian=1;; #(
  15920. no)
  15921. ac_cv_c_little_endian=1 ;; #(
  15922. universal)
  15923. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  15924. ;; #(
  15925. *)
  15926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
  15927. $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
  15928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5
  15929. $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;}
  15930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5
  15931. $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;}
  15932. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** config.h may need to be hand editied. " >&5
  15933. $as_echo "$as_me: WARNING: *** config.h may need to be hand editied. " >&2;}
  15934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
  15935. $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
  15936. ;;
  15937. esac
  15938. cat >>confdefs.h <<_ACEOF
  15939. #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
  15940. _ACEOF
  15941. cat >>confdefs.h <<_ACEOF
  15942. #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
  15943. _ACEOF
  15944. cat >>confdefs.h <<_ACEOF
  15945. #define WORDS_BIGENDIAN ${ac_cv_c_big_endian}
  15946. _ACEOF
  15947. # Check whether --enable-asm-optimizations was given.
  15948. if test "${enable_asm_optimizations+set}" = set; then :
  15949. enableval=$enable_asm_optimizations; asm_opt=no
  15950. else
  15951. asm_opt=yes
  15952. fi
  15953. if test "x$asm_opt" = xno; then
  15954. FLaC__NO_ASM_TRUE=
  15955. FLaC__NO_ASM_FALSE='#'
  15956. else
  15957. FLaC__NO_ASM_TRUE='#'
  15958. FLaC__NO_ASM_FALSE=
  15959. fi
  15960. if test "x$asm_opt" = xno ; then
  15961. $as_echo "#define FLAC__NO_ASM 1" >>confdefs.h
  15962. fi
  15963. # For the XMMS plugin.
  15964. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default"
  15965. if test "x$ac_cv_type_socklen_t" = xyes; then :
  15966. cat >>confdefs.h <<_ACEOF
  15967. #define HAVE_SOCKLEN_T 1
  15968. _ACEOF
  15969. fi
  15970. for ac_func in getopt_long
  15971. do :
  15972. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  15973. if test "x$ac_cv_func_getopt_long" = xyes; then :
  15974. cat >>confdefs.h <<_ACEOF
  15975. #define HAVE_GETOPT_LONG 1
  15976. _ACEOF
  15977. fi
  15978. done
  15979. # The cast to long int works around a bug in the HP C Compiler
  15980. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15981. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15982. # This bug is HP SR number 8606223364.
  15983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
  15984. $as_echo_n "checking size of void*... " >&6; }
  15985. if ${ac_cv_sizeof_voidp+:} false; then :
  15986. $as_echo_n "(cached) " >&6
  15987. else
  15988. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
  15989. else
  15990. if test "$ac_cv_type_voidp" = yes; then
  15991. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15992. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15993. as_fn_error 77 "cannot compute sizeof (void*)
  15994. See \`config.log' for more details" "$LINENO" 5; }
  15995. else
  15996. ac_cv_sizeof_voidp=0
  15997. fi
  15998. fi
  15999. fi
  16000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
  16001. $as_echo "$ac_cv_sizeof_voidp" >&6; }
  16002. cat >>confdefs.h <<_ACEOF
  16003. #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
  16004. _ACEOF
  16005. asm_optimisation=no
  16006. case "$host_cpu" in
  16007. amd64|x86_64)
  16008. case "$host" in
  16009. *gnux32)
  16010. # x32 user space and 64 bit kernel.
  16011. cpu_x86_64=true
  16012. $as_echo "#define FLAC__CPU_X86_64 1" >>confdefs.h
  16013. asm_optimisation=$asm_opt
  16014. ;;
  16015. *)
  16016. if test $ac_cv_sizeof_voidp = 4 ; then
  16017. # This must be a 32 bit user space running on 64 bit kernel so treat
  16018. # this as ia32.
  16019. cpu_ia32=true
  16020. $as_echo "#define FLAC__CPU_IA32 1" >>confdefs.h
  16021. else
  16022. # x86_64 user space and kernel.
  16023. cpu_x86_64=true
  16024. $as_echo "#define FLAC__CPU_X86_64 1" >>confdefs.h
  16025. fi
  16026. asm_optimisation=$asm_opt
  16027. ;;
  16028. esac
  16029. ;;
  16030. i*86)
  16031. cpu_ia32=true
  16032. $as_echo "#define FLAC__CPU_IA32 1" >>confdefs.h
  16033. asm_optimisation=$asm_opt
  16034. ;;
  16035. powerpc|powerpc64)
  16036. cpu_ppc=true
  16037. $as_echo "#define FLAC__CPU_PPC 1" >>confdefs.h
  16038. asm_optimisation=$asm_opt
  16039. ;;
  16040. sparc)
  16041. cpu_sparc=true
  16042. $as_echo "#define FLAC__CPU_SPARC 1" >>confdefs.h
  16043. asm_optimisation=$asm_opt
  16044. ;;
  16045. esac
  16046. if test "x$cpu_x86_64" = xtrue; then
  16047. FLAC__CPU_X86_64_TRUE=
  16048. FLAC__CPU_X86_64_FALSE='#'
  16049. else
  16050. FLAC__CPU_X86_64_TRUE='#'
  16051. FLAC__CPU_X86_64_FALSE=
  16052. fi
  16053. if test "x$cpu_ia32" = xtrue; then
  16054. FLaC__CPU_IA32_TRUE=
  16055. FLaC__CPU_IA32_FALSE='#'
  16056. else
  16057. FLaC__CPU_IA32_TRUE='#'
  16058. FLaC__CPU_IA32_FALSE=
  16059. fi
  16060. if test "x$cpu_ppc" = xtrue; then
  16061. FLaC__CPU_PPC_TRUE=
  16062. FLaC__CPU_PPC_FALSE='#'
  16063. else
  16064. FLaC__CPU_PPC_TRUE='#'
  16065. FLaC__CPU_PPC_FALSE=
  16066. fi
  16067. if test "x$cpu_sparc" = xtrue; then
  16068. FLaC__CPU_SPARC_TRUE=
  16069. FLaC__CPU_SPARC_FALSE='#'
  16070. else
  16071. FLaC__CPU_SPARC_TRUE='#'
  16072. FLaC__CPU_SPARC_FALSE=
  16073. fi
  16074. if test "x$ac_cv_header_x86intrin_h" = xyes; then
  16075. $as_echo "#define FLAC__HAS_X86INTRIN 1" >>confdefs.h
  16076. else
  16077. $as_echo "#define FLAC__HAS_X86INTRIN 0" >>confdefs.h
  16078. fi
  16079. case "$host" in
  16080. i386-*-openbsd3.[0-3]) OBJ_FORMAT=aoutb ;;
  16081. *-*-cygwin|*mingw*) OBJ_FORMAT=win32 ;;
  16082. *-*-darwin*) OBJ_FORMAT=macho ;;
  16083. *emx*) OBJ_FORMAT=aout ;;
  16084. *) OBJ_FORMAT=elf ;;
  16085. esac
  16086. case "$host" in
  16087. *-gnuspe)
  16088. abi_spe=true
  16089. $as_echo "#define FLAC__CPU_PPC_SPE 1" >>confdefs.h
  16090. ;;
  16091. esac
  16092. if test "x$abi_spe" = xtrue; then
  16093. FLaC__CPU_PPC_SPE_TRUE=
  16094. FLaC__CPU_PPC_SPE_FALSE='#'
  16095. else
  16096. FLaC__CPU_PPC_SPE_TRUE='#'
  16097. FLaC__CPU_PPC_SPE_FALSE=
  16098. fi
  16099. os_is_windows=no
  16100. case "$host" in
  16101. *-*-cygwin|*mingw*)
  16102. CPPFLAGS="-D__MSVCRT_VERSION__=0x0601 $CPPFLAGS"
  16103. os_is_windows=yes
  16104. ;;
  16105. esac
  16106. if test "x$os_is_windows" = xyes; then
  16107. OS_IS_WINDOWS_TRUE=
  16108. OS_IS_WINDOWS_FALSE='#'
  16109. else
  16110. OS_IS_WINDOWS_TRUE='#'
  16111. OS_IS_WINDOWS_FALSE=
  16112. fi
  16113. case "$host" in
  16114. *-pc-linux-gnu)
  16115. sys_linux=true
  16116. $as_echo "#define FLAC__SYS_LINUX 1" >>confdefs.h
  16117. ;;
  16118. *-*-darwin*)
  16119. sys_darwin=true
  16120. $as_echo "#define FLAC__SYS_DARWIN 1" >>confdefs.h
  16121. ;;
  16122. esac
  16123. if test "x$sys_darwin" = xtrue; then
  16124. FLaC__SYS_DARWIN_TRUE=
  16125. FLaC__SYS_DARWIN_FALSE='#'
  16126. else
  16127. FLaC__SYS_DARWIN_TRUE='#'
  16128. FLaC__SYS_DARWIN_FALSE=
  16129. fi
  16130. if test "x$sys_linux" = xtrue; then
  16131. FLaC__SYS_LINUX_TRUE=
  16132. FLaC__SYS_LINUX_FALSE='#'
  16133. else
  16134. FLaC__SYS_LINUX_TRUE='#'
  16135. FLaC__SYS_LINUX_FALSE=
  16136. fi
  16137. if test "x$cpu_ia32" = xtrue || test "x$cpu_x86_64" = xtrue ; then
  16138. $as_echo "#define FLAC__ALIGN_MALLOC_DATA 1" >>confdefs.h
  16139. fi
  16140. # Check whether --enable-debug was given.
  16141. if test "${enable_debug+set}" = set; then :
  16142. enableval=$enable_debug; case "${enableval}" in
  16143. yes) debug=true ;;
  16144. no) debug=false ;;
  16145. *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
  16146. esac
  16147. else
  16148. debug=false
  16149. fi
  16150. if test "x$debug" = xtrue; then
  16151. DEBUG_TRUE=
  16152. DEBUG_FALSE='#'
  16153. else
  16154. DEBUG_TRUE='#'
  16155. DEBUG_FALSE=
  16156. fi
  16157. # Check whether --enable-sse was given.
  16158. if test "${enable_sse+set}" = set; then :
  16159. enableval=$enable_sse; case "${enableval}" in
  16160. yes) sse_os=yes ;;
  16161. no) sse_os=no ;;
  16162. *) as_fn_error $? "bad value ${enableval} for --enable-sse" "$LINENO" 5 ;;
  16163. esac
  16164. else
  16165. sse_os=yes
  16166. fi
  16167. # Check whether --enable-altivec was given.
  16168. if test "${enable_altivec+set}" = set; then :
  16169. enableval=$enable_altivec; case "${enableval}" in
  16170. yes) use_altivec=true ;;
  16171. no) use_altivec=false ;;
  16172. *) as_fn_error $? "bad value ${enableval} for --enable-altivec" "$LINENO" 5 ;;
  16173. esac
  16174. else
  16175. use_altivec=true
  16176. fi
  16177. if test "x$use_altivec" = xtrue; then
  16178. FLaC__USE_ALTIVEC_TRUE=
  16179. FLaC__USE_ALTIVEC_FALSE='#'
  16180. else
  16181. FLaC__USE_ALTIVEC_TRUE='#'
  16182. FLaC__USE_ALTIVEC_FALSE=
  16183. fi
  16184. if test "x$use_altivec" = xtrue ; then
  16185. $as_echo "#define FLAC__USE_ALTIVEC 1" >>confdefs.h
  16186. fi
  16187. # Check whether --enable-avx was given.
  16188. if test "${enable_avx+set}" = set; then :
  16189. enableval=$enable_avx; case "${enableval}" in
  16190. yes) use_avx=true ;;
  16191. no) use_avx=false ;;
  16192. *) as_fn_error $? "bad value ${enableval} for --enable-avx" "$LINENO" 5 ;;
  16193. esac
  16194. else
  16195. use_avx=true
  16196. fi
  16197. if test "x$use_avx" = xtrue; then
  16198. FLaC__USE_AVX_TRUE=
  16199. FLaC__USE_AVX_FALSE='#'
  16200. else
  16201. FLaC__USE_AVX_TRUE='#'
  16202. FLaC__USE_AVX_FALSE=
  16203. fi
  16204. if test "x$use_avx" = xtrue ; then
  16205. $as_echo "#define FLAC__USE_AVX 1" >>confdefs.h
  16206. fi
  16207. # Check whether --enable-thorough-tests was given.
  16208. if test "${enable_thorough_tests+set}" = set; then :
  16209. enableval=$enable_thorough_tests; case "${enableval}" in
  16210. yes) thorough_tests=true ;;
  16211. no) thorough_tests=false ;;
  16212. *) as_fn_error $? "bad value ${enableval} for --enable-thorough-tests" "$LINENO" 5 ;;
  16213. esac
  16214. else
  16215. thorough_tests=true
  16216. fi
  16217. # Check whether --enable-exhaustive-tests was given.
  16218. if test "${enable_exhaustive_tests+set}" = set; then :
  16219. enableval=$enable_exhaustive_tests; case "${enableval}" in
  16220. yes) exhaustive_tests=true ;;
  16221. no) exhaustive_tests=false ;;
  16222. *) as_fn_error $? "bad value ${enableval} for --enable-exhaustive-tests" "$LINENO" 5 ;;
  16223. esac
  16224. else
  16225. exhaustive_tests=false
  16226. fi
  16227. if test "x$thorough_tests" = xfalse ; then
  16228. FLAC__TEST_LEVEL=0
  16229. elif test "x$exhaustive_tests" = xfalse ; then
  16230. FLAC__TEST_LEVEL=1
  16231. else
  16232. FLAC__TEST_LEVEL=2
  16233. fi
  16234. # Check whether --enable-werror was given.
  16235. if test "${enable_werror+set}" = set; then :
  16236. enableval=$enable_werror;
  16237. fi
  16238. # Check whether --enable-stack-smash-protection was given.
  16239. if test "${enable_stack_smash_protection+set}" = set; then :
  16240. enableval=$enable_stack_smash_protection;
  16241. fi
  16242. # Check whether --enable-64-bit-words was given.
  16243. if test "${enable_64_bit_words+set}" = set; then :
  16244. enableval=$enable_64_bit_words;
  16245. fi
  16246. if test "x$enable_64_bit_words" = xyes ; then
  16247. cat >>confdefs.h <<_ACEOF
  16248. #define ENABLE_64_BIT_WORDS 1
  16249. _ACEOF
  16250. else
  16251. cat >>confdefs.h <<_ACEOF
  16252. #define ENABLE_64_BIT_WORDS 0
  16253. _ACEOF
  16254. fi
  16255. # Check whether --enable-valgrind-testing was given.
  16256. if test "${enable_valgrind_testing+set}" = set; then :
  16257. enableval=$enable_valgrind_testing; case "${enableval}" in
  16258. yes) FLAC__TEST_WITH_VALGRIND=yes ;;
  16259. no) FLAC__TEST_WITH_VALGRIND=no ;;
  16260. *) as_fn_error $? "bad value ${enableval} for --enable-valgrind-testing" "$LINENO" 5 ;;
  16261. esac
  16262. else
  16263. FLAC__TEST_WITH_VALGRIND=no
  16264. fi
  16265. # Check whether --enable-doxygen-docs was given.
  16266. if test "${enable_doxygen_docs+set}" = set; then :
  16267. enableval=$enable_doxygen_docs; case "${enableval}" in
  16268. yes) enable_doxygen_docs=true ;;
  16269. no) enable_doxygen_docs=false ;;
  16270. *) as_fn_error $? "bad value ${enableval} for --enable-doxygen-docs" "$LINENO" 5 ;;
  16271. esac
  16272. else
  16273. enable_doxygen_docs=true
  16274. fi
  16275. if test "x$enable_doxygen_docs" != xfalse ; then
  16276. for ac_prog in doxygen
  16277. do
  16278. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16279. set dummy $ac_prog; ac_word=$2
  16280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16281. $as_echo_n "checking for $ac_word... " >&6; }
  16282. if ${ac_cv_prog_DOXYGEN+:} false; then :
  16283. $as_echo_n "(cached) " >&6
  16284. else
  16285. if test -n "$DOXYGEN"; then
  16286. ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
  16287. else
  16288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16289. for as_dir in $PATH
  16290. do
  16291. IFS=$as_save_IFS
  16292. test -z "$as_dir" && as_dir=.
  16293. for ac_exec_ext in '' $ac_executable_extensions; do
  16294. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16295. ac_cv_prog_DOXYGEN="$ac_prog"
  16296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16297. break 2
  16298. fi
  16299. done
  16300. done
  16301. IFS=$as_save_IFS
  16302. fi
  16303. fi
  16304. DOXYGEN=$ac_cv_prog_DOXYGEN
  16305. if test -n "$DOXYGEN"; then
  16306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
  16307. $as_echo "$DOXYGEN" >&6; }
  16308. else
  16309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16310. $as_echo "no" >&6; }
  16311. fi
  16312. test -n "$DOXYGEN" && break
  16313. done
  16314. fi
  16315. if test -n "$DOXYGEN"; then
  16316. FLaC__HAS_DOXYGEN_TRUE=
  16317. FLaC__HAS_DOXYGEN_FALSE='#'
  16318. else
  16319. FLaC__HAS_DOXYGEN_TRUE='#'
  16320. FLaC__HAS_DOXYGEN_FALSE=
  16321. fi
  16322. # Check whether --enable-local-xmms-plugin was given.
  16323. if test "${enable_local_xmms_plugin+set}" = set; then :
  16324. enableval=$enable_local_xmms_plugin; case "${enableval}" in
  16325. yes) install_xmms_plugin_locally=true ;;
  16326. no) install_xmms_plugin_locally=false ;;
  16327. *) as_fn_error $? "bad value ${enableval} for --enable-local-xmms-plugin" "$LINENO" 5 ;;
  16328. esac
  16329. else
  16330. install_xmms_plugin_locally=false
  16331. fi
  16332. if test "x$install_xmms_plugin_locally" = xtrue; then
  16333. FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE=
  16334. FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE='#'
  16335. else
  16336. FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE='#'
  16337. FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE=
  16338. fi
  16339. # Check whether --enable-xmms-plugin was given.
  16340. if test "${enable_xmms_plugin+set}" = set; then :
  16341. enableval=$enable_xmms_plugin; case "${enableval}" in
  16342. yes) enable_xmms_plugin=true ;;
  16343. no) enable_xmms_plugin=false ;;
  16344. *) as_fn_error $? "bad value ${enableval} for --enable-xmms-plugin" "$LINENO" 5 ;;
  16345. esac
  16346. else
  16347. enable_xmms_plugin=true
  16348. fi
  16349. if test "x$enable_xmms_plugin" != xfalse ; then
  16350. # Check whether --with-xmms-prefix was given.
  16351. if test "${with_xmms_prefix+set}" = set; then :
  16352. withval=$with_xmms_prefix; xmms_config_prefix="$withval"
  16353. else
  16354. xmms_config_prefix=""
  16355. fi
  16356. # Check whether --with-xmms-exec-prefix was given.
  16357. if test "${with_xmms_exec_prefix+set}" = set; then :
  16358. withval=$with_xmms_exec_prefix; xmms_config_exec_prefix="$withval"
  16359. else
  16360. xmms_config_exec_prefix=""
  16361. fi
  16362. if test x$xmms_config_exec_prefix != x; then
  16363. xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix"
  16364. if test x${XMMS_CONFIG+set} != xset; then
  16365. XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config
  16366. fi
  16367. fi
  16368. if test x$xmms_config_prefix != x; then
  16369. xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix"
  16370. if test x${XMMS_CONFIG+set} != xset; then
  16371. XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config
  16372. fi
  16373. fi
  16374. # Extract the first word of "xmms-config", so it can be a program name with args.
  16375. set dummy xmms-config; ac_word=$2
  16376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16377. $as_echo_n "checking for $ac_word... " >&6; }
  16378. if ${ac_cv_path_XMMS_CONFIG+:} false; then :
  16379. $as_echo_n "(cached) " >&6
  16380. else
  16381. case $XMMS_CONFIG in
  16382. [\\/]* | ?:[\\/]*)
  16383. ac_cv_path_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test with a path.
  16384. ;;
  16385. *)
  16386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16387. for as_dir in $PATH
  16388. do
  16389. IFS=$as_save_IFS
  16390. test -z "$as_dir" && as_dir=.
  16391. for ac_exec_ext in '' $ac_executable_extensions; do
  16392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16393. ac_cv_path_XMMS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16395. break 2
  16396. fi
  16397. done
  16398. done
  16399. IFS=$as_save_IFS
  16400. test -z "$ac_cv_path_XMMS_CONFIG" && ac_cv_path_XMMS_CONFIG="no"
  16401. ;;
  16402. esac
  16403. fi
  16404. XMMS_CONFIG=$ac_cv_path_XMMS_CONFIG
  16405. if test -n "$XMMS_CONFIG"; then
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMMS_CONFIG" >&5
  16407. $as_echo "$XMMS_CONFIG" >&6; }
  16408. else
  16409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16410. $as_echo "no" >&6; }
  16411. fi
  16412. min_xmms_version=0.9.5.1
  16413. if test "$XMMS_CONFIG" = "no"; then
  16414. no_xmms=yes
  16415. else
  16416. XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags`
  16417. XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs`
  16418. XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version`
  16419. XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir`
  16420. XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir`
  16421. XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \
  16422. --visualization-plugin-dir`
  16423. XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir`
  16424. XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir`
  16425. XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir`
  16426. XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir`
  16427. # Determine which version number is greater. Prints 2 to stdout if
  16428. # the second number is greater, 1 if the first number is greater,
  16429. # 0 if the numbers are equal.
  16430. # Written 15 December 1999 by Ben Gertzfield <[email protected]>
  16431. # Revised 15 December 1999 by Jim Monty <[email protected]>
  16432. for ac_prog in gawk mawk nawk awk
  16433. do
  16434. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16435. set dummy $ac_prog; ac_word=$2
  16436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16437. $as_echo_n "checking for $ac_word... " >&6; }
  16438. if ${ac_cv_prog_AWK+:} false; then :
  16439. $as_echo_n "(cached) " >&6
  16440. else
  16441. if test -n "$AWK"; then
  16442. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  16443. else
  16444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16445. for as_dir in $PATH
  16446. do
  16447. IFS=$as_save_IFS
  16448. test -z "$as_dir" && as_dir=.
  16449. for ac_exec_ext in '' $ac_executable_extensions; do
  16450. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16451. ac_cv_prog_AWK="$ac_prog"
  16452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16453. break 2
  16454. fi
  16455. done
  16456. done
  16457. IFS=$as_save_IFS
  16458. fi
  16459. fi
  16460. AWK=$ac_cv_prog_AWK
  16461. if test -n "$AWK"; then
  16462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  16463. $as_echo "$AWK" >&6; }
  16464. else
  16465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16466. $as_echo "no" >&6; }
  16467. fi
  16468. test -n "$AWK" && break
  16469. done
  16470. xmms_got_version=` $AWK ' \
  16471. BEGIN { \
  16472. print vercmp(ARGV[1], ARGV[2]); \
  16473. } \
  16474. \
  16475. function vercmp(ver1, ver2, ver1arr, ver2arr, \
  16476. ver1len, ver2len, \
  16477. ver1int, ver2int, len, i, p) { \
  16478. \
  16479. ver1len = split(ver1, ver1arr, /\./); \
  16480. ver2len = split(ver2, ver2arr, /\./); \
  16481. \
  16482. len = ver1len > ver2len ? ver1len : ver2len; \
  16483. \
  16484. for (i = 1; i <= len; i++) { \
  16485. p = 1000 ^ (len - i); \
  16486. ver1int += ver1arr[i] * p; \
  16487. ver2int += ver2arr[i] * p; \
  16488. } \
  16489. \
  16490. if (ver1int < ver2int) \
  16491. return 2; \
  16492. else if (ver1int > ver2int) \
  16493. return 1; \
  16494. else \
  16495. return 0; \
  16496. }' $XMMS_VERSION $min_xmms_version`
  16497. if test $xmms_got_version -eq 2; then # failure
  16498. no_xmms=version
  16499. else # success!
  16500. :
  16501. fi
  16502. fi
  16503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMMS - version >= $min_xmms_version" >&5
  16504. $as_echo_n "checking for XMMS - version >= $min_xmms_version... " >&6; }
  16505. if test "x$no_xmms" = x; then
  16506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16507. $as_echo "yes" >&6; }
  16508. :
  16509. else
  16510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16511. $as_echo "no" >&6; }
  16512. if test "$XMMS_CONFIG" = "no" ; then
  16513. echo "*** The xmms-config script installed by XMMS could not be found."
  16514. echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in"
  16515. echo "*** your path, or set the XMMS_CONFIG environment variable to the"
  16516. echo "*** full path to xmms-config."
  16517. else
  16518. if test "$no_xmms" = "version"; then
  16519. echo "*** An old version of XMMS, $XMMS_VERSION, was found."
  16520. echo "*** You need a version of XMMS newer than $min_xmms_version."
  16521. echo "*** The latest version of XMMS is always available from"
  16522. echo "*** http://www.xmms.org/"
  16523. echo "***"
  16524. echo "*** If you have already installed a sufficiently new version, this error"
  16525. echo "*** probably means that the wrong copy of the xmms-config shell script is"
  16526. echo "*** being found. The easiest way to fix this is to remove the old version"
  16527. echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the"
  16528. echo "*** correct copy of xmms-config. (In this case, you will have to"
  16529. echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf"
  16530. echo "*** so that the correct libraries are found at run-time)"
  16531. fi
  16532. fi
  16533. XMMS_CFLAGS=""
  16534. XMMS_LIBS=""
  16535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&5
  16536. $as_echo "$as_me: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&2;}
  16537. fi
  16538. fi
  16539. if test -n "$XMMS_INPUT_PLUGIN_DIR"; then
  16540. FLaC__HAS_XMMS_TRUE=
  16541. FLaC__HAS_XMMS_FALSE='#'
  16542. else
  16543. FLaC__HAS_XMMS_TRUE='#'
  16544. FLaC__HAS_XMMS_FALSE=
  16545. fi
  16546. # Check whether --enable-cpplibs was given.
  16547. if test "${enable_cpplibs+set}" = set; then :
  16548. enableval=$enable_cpplibs; case "${enableval}" in
  16549. yes) disable_cpplibs=false ;;
  16550. no) disable_cpplibs=true ;;
  16551. *) as_fn_error $? "bad value ${enableval} for --enable-cpplibs" "$LINENO" 5 ;;
  16552. esac
  16553. else
  16554. disable_cpplibs=false
  16555. fi
  16556. if test "x$disable_cpplibs" != xtrue; then
  16557. FLaC__WITH_CPPLIBS_TRUE=
  16558. FLaC__WITH_CPPLIBS_FALSE='#'
  16559. else
  16560. FLaC__WITH_CPPLIBS_TRUE='#'
  16561. FLaC__WITH_CPPLIBS_FALSE=
  16562. fi
  16563. # Check whether --enable-ogg was given.
  16564. if test "${enable_ogg+set}" = set; then :
  16565. enableval=$enable_ogg; want_ogg=$enableval
  16566. else
  16567. want_ogg=yes
  16568. fi
  16569. if test "x$want_ogg" != "xno"; then
  16570. # Check whether --with-ogg was given.
  16571. if test "${with_ogg+set}" = set; then :
  16572. withval=$with_ogg; ogg_prefix="$withval"
  16573. else
  16574. ogg_prefix=""
  16575. fi
  16576. # Check whether --with-ogg-libraries was given.
  16577. if test "${with_ogg_libraries+set}" = set; then :
  16578. withval=$with_ogg_libraries; ogg_libraries="$withval"
  16579. else
  16580. ogg_libraries=""
  16581. fi
  16582. # Check whether --with-ogg-includes was given.
  16583. if test "${with_ogg_includes+set}" = set; then :
  16584. withval=$with_ogg_includes; ogg_includes="$withval"
  16585. else
  16586. ogg_includes=""
  16587. fi
  16588. # Check whether --enable-oggtest was given.
  16589. if test "${enable_oggtest+set}" = set; then :
  16590. enableval=$enable_oggtest;
  16591. else
  16592. enable_oggtest=yes
  16593. fi
  16594. if test "x$ogg_libraries" != "x" ; then
  16595. OGG_LIBS="-L$ogg_libraries"
  16596. elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
  16597. OGG_LIBS=""
  16598. elif test "x$ogg_prefix" != "x" ; then
  16599. OGG_LIBS="-L$ogg_prefix/lib"
  16600. elif test "x$prefix" != "xNONE" ; then
  16601. OGG_LIBS="-L$prefix/lib"
  16602. fi
  16603. if test "x$ogg_prefix" != "xno" ; then
  16604. OGG_LIBS="$OGG_LIBS -logg"
  16605. fi
  16606. if test "x$ogg_includes" != "x" ; then
  16607. OGG_CFLAGS="-I$ogg_includes"
  16608. elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
  16609. OGG_CFLAGS=""
  16610. elif test "x$ogg_prefix" != "x" ; then
  16611. OGG_CFLAGS="-I$ogg_prefix/include"
  16612. elif test "x$prefix" != "xNONE"; then
  16613. OGG_CFLAGS="-I$prefix/include"
  16614. fi
  16615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5
  16616. $as_echo_n "checking for Ogg... " >&6; }
  16617. if test "x$ogg_prefix" = "xno" ; then
  16618. no_ogg="disabled"
  16619. enable_oggtest="no"
  16620. else
  16621. no_ogg=""
  16622. fi
  16623. if test "x$enable_oggtest" = "xyes" ; then
  16624. ac_save_CFLAGS="$CFLAGS"
  16625. ac_save_LIBS="$LIBS"
  16626. CFLAGS="$CFLAGS $OGG_CFLAGS"
  16627. LIBS="$LIBS $OGG_LIBS"
  16628. rm -f conf.oggtest
  16629. if test "$cross_compiling" = yes; then :
  16630. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16631. else
  16632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16633. /* end confdefs.h. */
  16634. #include <stdio.h>
  16635. #include <stdlib.h>
  16636. #include <string.h>
  16637. #include <ogg/ogg.h>
  16638. int main ()
  16639. {
  16640. system("touch conf.oggtest");
  16641. return 0;
  16642. }
  16643. _ACEOF
  16644. if ac_fn_c_try_run "$LINENO"; then :
  16645. else
  16646. no_ogg=yes
  16647. fi
  16648. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16649. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16650. fi
  16651. CFLAGS="$ac_save_CFLAGS"
  16652. LIBS="$ac_save_LIBS"
  16653. fi
  16654. if test "x$no_ogg" = "xdisabled" ; then
  16655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16656. $as_echo "no" >&6; }
  16657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&5
  16658. $as_echo "$as_me: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&2;}
  16659. elif test "x$no_ogg" = "x" ; then
  16660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16661. $as_echo "yes" >&6; }
  16662. have_ogg=yes
  16663. else
  16664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16665. $as_echo "no" >&6; }
  16666. if test -f conf.oggtest ; then
  16667. :
  16668. else
  16669. echo "*** Could not run Ogg test program, checking why..."
  16670. CFLAGS="$CFLAGS $OGG_CFLAGS"
  16671. LIBS="$LIBS $OGG_LIBS"
  16672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16673. /* end confdefs.h. */
  16674. #include <stdio.h>
  16675. #include <ogg/ogg.h>
  16676. int
  16677. main ()
  16678. {
  16679. return 0;
  16680. ;
  16681. return 0;
  16682. }
  16683. _ACEOF
  16684. if ac_fn_c_try_link "$LINENO"; then :
  16685. echo "*** The test program compiled, but did not run. This usually means"
  16686. echo "*** that the run-time linker is not finding Ogg or finding the wrong"
  16687. echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
  16688. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16689. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16690. echo "*** is required on your system"
  16691. echo "***"
  16692. echo "*** If you have an old version installed, it is best to remove it, although"
  16693. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16694. else
  16695. echo "*** The test program failed to compile or link. See the file config.log for the"
  16696. echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
  16697. echo "*** or that you have moved Ogg since it was installed."
  16698. fi
  16699. rm -f core conftest.err conftest.$ac_objext \
  16700. conftest$ac_exeext conftest.$ac_ext
  16701. CFLAGS="$ac_save_CFLAGS"
  16702. LIBS="$ac_save_LIBS"
  16703. fi
  16704. OGG_CFLAGS=""
  16705. OGG_LIBS=""
  16706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&5
  16707. $as_echo "$as_me: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&2;}
  16708. fi
  16709. rm -f conf.oggtest
  16710. fi
  16711. FLAC__HAS_OGG=0
  16712. if test "x$have_ogg" = xyes; then
  16713. FLaC__HAS_OGG_TRUE=
  16714. FLaC__HAS_OGG_FALSE='#'
  16715. else
  16716. FLaC__HAS_OGG_TRUE='#'
  16717. FLaC__HAS_OGG_FALSE=
  16718. fi
  16719. if test "x$have_ogg" = xyes ; then
  16720. FLAC__HAS_OGG=1
  16721. OGG_PACKAGE="ogg"
  16722. else
  16723. have_ogg=no
  16724. fi
  16725. cat >>confdefs.h <<_ACEOF
  16726. #define FLAC__HAS_OGG $FLAC__HAS_OGG
  16727. _ACEOF
  16728. if test "X$prefix" = "XNONE"; then
  16729. acl_final_prefix="$ac_default_prefix"
  16730. else
  16731. acl_final_prefix="$prefix"
  16732. fi
  16733. if test "X$exec_prefix" = "XNONE"; then
  16734. acl_final_exec_prefix='${prefix}'
  16735. else
  16736. acl_final_exec_prefix="$exec_prefix"
  16737. fi
  16738. acl_save_prefix="$prefix"
  16739. prefix="$acl_final_prefix"
  16740. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  16741. prefix="$acl_save_prefix"
  16742. # Check whether --with-gnu-ld was given.
  16743. if test "${with_gnu_ld+set}" = set; then :
  16744. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  16745. else
  16746. with_gnu_ld=no
  16747. fi
  16748. # Prepare PATH_SEPARATOR.
  16749. # The user is always right.
  16750. if test "${PATH_SEPARATOR+set}" != set; then
  16751. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  16752. # contains only /bin. Note that ksh looks also at the FPATH variable,
  16753. # so we have to set that as well for the test.
  16754. PATH_SEPARATOR=:
  16755. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  16756. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  16757. || PATH_SEPARATOR=';'
  16758. }
  16759. fi
  16760. ac_prog=ld
  16761. if test "$GCC" = yes; then
  16762. # Check if gcc -print-prog-name=ld gives a path.
  16763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  16764. $as_echo_n "checking for ld used by $CC... " >&6; }
  16765. case $host in
  16766. *-*-mingw*)
  16767. # gcc leaves a trailing carriage return which upsets mingw
  16768. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  16769. *)
  16770. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  16771. esac
  16772. case $ac_prog in
  16773. # Accept absolute paths.
  16774. [\\/]* | ?:[\\/]*)
  16775. re_direlt='/[^/][^/]*/\.\./'
  16776. # Canonicalize the pathname of ld
  16777. ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
  16778. while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
  16779. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  16780. done
  16781. test -z "$LD" && LD="$ac_prog"
  16782. ;;
  16783. "")
  16784. # If it fails, then pretend we aren't using GCC.
  16785. ac_prog=ld
  16786. ;;
  16787. *)
  16788. # If it is relative, then search for the first ld in PATH.
  16789. with_gnu_ld=unknown
  16790. ;;
  16791. esac
  16792. elif test "$with_gnu_ld" = yes; then
  16793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  16794. $as_echo_n "checking for GNU ld... " >&6; }
  16795. else
  16796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  16797. $as_echo_n "checking for non-GNU ld... " >&6; }
  16798. fi
  16799. if ${acl_cv_path_LD+:} false; then :
  16800. $as_echo_n "(cached) " >&6
  16801. else
  16802. if test -z "$LD"; then
  16803. acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16804. for ac_dir in $PATH; do
  16805. IFS="$acl_save_ifs"
  16806. test -z "$ac_dir" && ac_dir=.
  16807. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  16808. acl_cv_path_LD="$ac_dir/$ac_prog"
  16809. # Check to see if the program is GNU ld. I'd rather use --version,
  16810. # but apparently some variants of GNU ld only accept -v.
  16811. # Break only if it was the GNU/non-GNU ld that we prefer.
  16812. case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
  16813. *GNU* | *'with BFD'*)
  16814. test "$with_gnu_ld" != no && break
  16815. ;;
  16816. *)
  16817. test "$with_gnu_ld" != yes && break
  16818. ;;
  16819. esac
  16820. fi
  16821. done
  16822. IFS="$acl_save_ifs"
  16823. else
  16824. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  16825. fi
  16826. fi
  16827. LD="$acl_cv_path_LD"
  16828. if test -n "$LD"; then
  16829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  16830. $as_echo "$LD" >&6; }
  16831. else
  16832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16833. $as_echo "no" >&6; }
  16834. fi
  16835. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  16836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  16837. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  16838. if ${acl_cv_prog_gnu_ld+:} false; then :
  16839. $as_echo_n "(cached) " >&6
  16840. else
  16841. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  16842. case `$LD -v 2>&1 </dev/null` in
  16843. *GNU* | *'with BFD'*)
  16844. acl_cv_prog_gnu_ld=yes
  16845. ;;
  16846. *)
  16847. acl_cv_prog_gnu_ld=no
  16848. ;;
  16849. esac
  16850. fi
  16851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  16852. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  16853. with_gnu_ld=$acl_cv_prog_gnu_ld
  16854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  16855. $as_echo_n "checking for shared library run path origin... " >&6; }
  16856. if ${acl_cv_rpath+:} false; then :
  16857. $as_echo_n "(cached) " >&6
  16858. else
  16859. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  16860. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  16861. . ./conftest.sh
  16862. rm -f ./conftest.sh
  16863. acl_cv_rpath=done
  16864. fi
  16865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  16866. $as_echo "$acl_cv_rpath" >&6; }
  16867. wl="$acl_cv_wl"
  16868. acl_libext="$acl_cv_libext"
  16869. acl_shlibext="$acl_cv_shlibext"
  16870. acl_libname_spec="$acl_cv_libname_spec"
  16871. acl_library_names_spec="$acl_cv_library_names_spec"
  16872. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  16873. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  16874. acl_hardcode_direct="$acl_cv_hardcode_direct"
  16875. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  16876. # Check whether --enable-rpath was given.
  16877. if test "${enable_rpath+set}" = set; then :
  16878. enableval=$enable_rpath; :
  16879. else
  16880. enable_rpath=yes
  16881. fi
  16882. acl_libdirstem=lib
  16883. acl_libdirstem2=
  16884. case "$host_os" in
  16885. solaris*)
  16886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
  16887. $as_echo_n "checking for 64-bit host... " >&6; }
  16888. if ${gl_cv_solaris_64bit+:} false; then :
  16889. $as_echo_n "(cached) " >&6
  16890. else
  16891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16892. /* end confdefs.h. */
  16893. #ifdef _LP64
  16894. sixtyfour bits
  16895. #endif
  16896. _ACEOF
  16897. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16898. $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
  16899. gl_cv_solaris_64bit=yes
  16900. else
  16901. gl_cv_solaris_64bit=no
  16902. fi
  16903. rm -f conftest*
  16904. fi
  16905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
  16906. $as_echo "$gl_cv_solaris_64bit" >&6; }
  16907. if test $gl_cv_solaris_64bit = yes; then
  16908. acl_libdirstem=lib/64
  16909. case "$host_cpu" in
  16910. sparc*) acl_libdirstem2=lib/sparcv9 ;;
  16911. i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
  16912. esac
  16913. fi
  16914. ;;
  16915. *)
  16916. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  16917. if test -n "$searchpath"; then
  16918. acl_save_IFS="${IFS= }"; IFS=":"
  16919. for searchdir in $searchpath; do
  16920. if test -d "$searchdir"; then
  16921. case "$searchdir" in
  16922. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  16923. */../ | */.. )
  16924. # Better ignore directories of this form. They are misleading.
  16925. ;;
  16926. *) searchdir=`cd "$searchdir" && pwd`
  16927. case "$searchdir" in
  16928. */lib64 ) acl_libdirstem=lib64 ;;
  16929. esac ;;
  16930. esac
  16931. fi
  16932. done
  16933. IFS="$acl_save_IFS"
  16934. fi
  16935. ;;
  16936. esac
  16937. test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
  16938. use_additional=yes
  16939. acl_save_prefix="$prefix"
  16940. prefix="$acl_final_prefix"
  16941. acl_save_exec_prefix="$exec_prefix"
  16942. exec_prefix="$acl_final_exec_prefix"
  16943. eval additional_includedir=\"$includedir\"
  16944. eval additional_libdir=\"$libdir\"
  16945. exec_prefix="$acl_save_exec_prefix"
  16946. prefix="$acl_save_prefix"
  16947. # Check whether --with-libiconv-prefix was given.
  16948. if test "${with_libiconv_prefix+set}" = set; then :
  16949. withval=$with_libiconv_prefix;
  16950. if test "X$withval" = "Xno"; then
  16951. use_additional=no
  16952. else
  16953. if test "X$withval" = "X"; then
  16954. acl_save_prefix="$prefix"
  16955. prefix="$acl_final_prefix"
  16956. acl_save_exec_prefix="$exec_prefix"
  16957. exec_prefix="$acl_final_exec_prefix"
  16958. eval additional_includedir=\"$includedir\"
  16959. eval additional_libdir=\"$libdir\"
  16960. exec_prefix="$acl_save_exec_prefix"
  16961. prefix="$acl_save_prefix"
  16962. else
  16963. additional_includedir="$withval/include"
  16964. additional_libdir="$withval/$acl_libdirstem"
  16965. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  16966. && ! test -d "$withval/$acl_libdirstem"; then
  16967. additional_libdir="$withval/$acl_libdirstem2"
  16968. fi
  16969. fi
  16970. fi
  16971. fi
  16972. LIBICONV=
  16973. LTLIBICONV=
  16974. INCICONV=
  16975. LIBICONV_PREFIX=
  16976. HAVE_LIBICONV=
  16977. rpathdirs=
  16978. ltrpathdirs=
  16979. names_already_handled=
  16980. names_next_round='iconv '
  16981. while test -n "$names_next_round"; do
  16982. names_this_round="$names_next_round"
  16983. names_next_round=
  16984. for name in $names_this_round; do
  16985. already_handled=
  16986. for n in $names_already_handled; do
  16987. if test "$n" = "$name"; then
  16988. already_handled=yes
  16989. break
  16990. fi
  16991. done
  16992. if test -z "$already_handled"; then
  16993. names_already_handled="$names_already_handled $name"
  16994. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  16995. eval value=\"\$HAVE_LIB$uppername\"
  16996. if test -n "$value"; then
  16997. if test "$value" = yes; then
  16998. eval value=\"\$LIB$uppername\"
  16999. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  17000. eval value=\"\$LTLIB$uppername\"
  17001. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  17002. else
  17003. :
  17004. fi
  17005. else
  17006. found_dir=
  17007. found_la=
  17008. found_so=
  17009. found_a=
  17010. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  17011. if test -n "$acl_shlibext"; then
  17012. shrext=".$acl_shlibext" # typically: shrext=.so
  17013. else
  17014. shrext=
  17015. fi
  17016. if test $use_additional = yes; then
  17017. dir="$additional_libdir"
  17018. if test -n "$acl_shlibext"; then
  17019. if test -f "$dir/$libname$shrext"; then
  17020. found_dir="$dir"
  17021. found_so="$dir/$libname$shrext"
  17022. else
  17023. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17024. ver=`(cd "$dir" && \
  17025. for f in "$libname$shrext".*; do echo "$f"; done \
  17026. | sed -e "s,^$libname$shrext\\\\.,," \
  17027. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17028. | sed 1q ) 2>/dev/null`
  17029. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17030. found_dir="$dir"
  17031. found_so="$dir/$libname$shrext.$ver"
  17032. fi
  17033. else
  17034. eval library_names=\"$acl_library_names_spec\"
  17035. for f in $library_names; do
  17036. if test -f "$dir/$f"; then
  17037. found_dir="$dir"
  17038. found_so="$dir/$f"
  17039. break
  17040. fi
  17041. done
  17042. fi
  17043. fi
  17044. fi
  17045. if test "X$found_dir" = "X"; then
  17046. if test -f "$dir/$libname.$acl_libext"; then
  17047. found_dir="$dir"
  17048. found_a="$dir/$libname.$acl_libext"
  17049. fi
  17050. fi
  17051. if test "X$found_dir" != "X"; then
  17052. if test -f "$dir/$libname.la"; then
  17053. found_la="$dir/$libname.la"
  17054. fi
  17055. fi
  17056. fi
  17057. if test "X$found_dir" = "X"; then
  17058. for x in $LDFLAGS $LTLIBICONV; do
  17059. acl_save_prefix="$prefix"
  17060. prefix="$acl_final_prefix"
  17061. acl_save_exec_prefix="$exec_prefix"
  17062. exec_prefix="$acl_final_exec_prefix"
  17063. eval x=\"$x\"
  17064. exec_prefix="$acl_save_exec_prefix"
  17065. prefix="$acl_save_prefix"
  17066. case "$x" in
  17067. -L*)
  17068. dir=`echo "X$x" | sed -e 's/^X-L//'`
  17069. if test -n "$acl_shlibext"; then
  17070. if test -f "$dir/$libname$shrext"; then
  17071. found_dir="$dir"
  17072. found_so="$dir/$libname$shrext"
  17073. else
  17074. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17075. ver=`(cd "$dir" && \
  17076. for f in "$libname$shrext".*; do echo "$f"; done \
  17077. | sed -e "s,^$libname$shrext\\\\.,," \
  17078. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17079. | sed 1q ) 2>/dev/null`
  17080. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17081. found_dir="$dir"
  17082. found_so="$dir/$libname$shrext.$ver"
  17083. fi
  17084. else
  17085. eval library_names=\"$acl_library_names_spec\"
  17086. for f in $library_names; do
  17087. if test -f "$dir/$f"; then
  17088. found_dir="$dir"
  17089. found_so="$dir/$f"
  17090. break
  17091. fi
  17092. done
  17093. fi
  17094. fi
  17095. fi
  17096. if test "X$found_dir" = "X"; then
  17097. if test -f "$dir/$libname.$acl_libext"; then
  17098. found_dir="$dir"
  17099. found_a="$dir/$libname.$acl_libext"
  17100. fi
  17101. fi
  17102. if test "X$found_dir" != "X"; then
  17103. if test -f "$dir/$libname.la"; then
  17104. found_la="$dir/$libname.la"
  17105. fi
  17106. fi
  17107. ;;
  17108. esac
  17109. if test "X$found_dir" != "X"; then
  17110. break
  17111. fi
  17112. done
  17113. fi
  17114. if test "X$found_dir" != "X"; then
  17115. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  17116. if test "X$found_so" != "X"; then
  17117. if test "$enable_rpath" = no \
  17118. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  17119. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  17120. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  17121. else
  17122. haveit=
  17123. for x in $ltrpathdirs; do
  17124. if test "X$x" = "X$found_dir"; then
  17125. haveit=yes
  17126. break
  17127. fi
  17128. done
  17129. if test -z "$haveit"; then
  17130. ltrpathdirs="$ltrpathdirs $found_dir"
  17131. fi
  17132. if test "$acl_hardcode_direct" = yes; then
  17133. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  17134. else
  17135. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  17136. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  17137. haveit=
  17138. for x in $rpathdirs; do
  17139. if test "X$x" = "X$found_dir"; then
  17140. haveit=yes
  17141. break
  17142. fi
  17143. done
  17144. if test -z "$haveit"; then
  17145. rpathdirs="$rpathdirs $found_dir"
  17146. fi
  17147. else
  17148. haveit=
  17149. for x in $LDFLAGS $LIBICONV; do
  17150. acl_save_prefix="$prefix"
  17151. prefix="$acl_final_prefix"
  17152. acl_save_exec_prefix="$exec_prefix"
  17153. exec_prefix="$acl_final_exec_prefix"
  17154. eval x=\"$x\"
  17155. exec_prefix="$acl_save_exec_prefix"
  17156. prefix="$acl_save_prefix"
  17157. if test "X$x" = "X-L$found_dir"; then
  17158. haveit=yes
  17159. break
  17160. fi
  17161. done
  17162. if test -z "$haveit"; then
  17163. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  17164. fi
  17165. if test "$acl_hardcode_minus_L" != no; then
  17166. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  17167. else
  17168. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  17169. fi
  17170. fi
  17171. fi
  17172. fi
  17173. else
  17174. if test "X$found_a" != "X"; then
  17175. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  17176. else
  17177. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  17178. fi
  17179. fi
  17180. additional_includedir=
  17181. case "$found_dir" in
  17182. */$acl_libdirstem | */$acl_libdirstem/)
  17183. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  17184. if test "$name" = 'iconv'; then
  17185. LIBICONV_PREFIX="$basedir"
  17186. fi
  17187. additional_includedir="$basedir/include"
  17188. ;;
  17189. */$acl_libdirstem2 | */$acl_libdirstem2/)
  17190. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  17191. if test "$name" = 'iconv'; then
  17192. LIBICONV_PREFIX="$basedir"
  17193. fi
  17194. additional_includedir="$basedir/include"
  17195. ;;
  17196. esac
  17197. if test "X$additional_includedir" != "X"; then
  17198. if test "X$additional_includedir" != "X/usr/include"; then
  17199. haveit=
  17200. if test "X$additional_includedir" = "X/usr/local/include"; then
  17201. if test -n "$GCC"; then
  17202. case $host_os in
  17203. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17204. esac
  17205. fi
  17206. fi
  17207. if test -z "$haveit"; then
  17208. for x in $CPPFLAGS $INCICONV; do
  17209. acl_save_prefix="$prefix"
  17210. prefix="$acl_final_prefix"
  17211. acl_save_exec_prefix="$exec_prefix"
  17212. exec_prefix="$acl_final_exec_prefix"
  17213. eval x=\"$x\"
  17214. exec_prefix="$acl_save_exec_prefix"
  17215. prefix="$acl_save_prefix"
  17216. if test "X$x" = "X-I$additional_includedir"; then
  17217. haveit=yes
  17218. break
  17219. fi
  17220. done
  17221. if test -z "$haveit"; then
  17222. if test -d "$additional_includedir"; then
  17223. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  17224. fi
  17225. fi
  17226. fi
  17227. fi
  17228. fi
  17229. if test -n "$found_la"; then
  17230. save_libdir="$libdir"
  17231. case "$found_la" in
  17232. */* | *\\*) . "$found_la" ;;
  17233. *) . "./$found_la" ;;
  17234. esac
  17235. libdir="$save_libdir"
  17236. for dep in $dependency_libs; do
  17237. case "$dep" in
  17238. -L*)
  17239. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  17240. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  17241. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  17242. haveit=
  17243. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  17244. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  17245. if test -n "$GCC"; then
  17246. case $host_os in
  17247. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17248. esac
  17249. fi
  17250. fi
  17251. if test -z "$haveit"; then
  17252. haveit=
  17253. for x in $LDFLAGS $LIBICONV; do
  17254. acl_save_prefix="$prefix"
  17255. prefix="$acl_final_prefix"
  17256. acl_save_exec_prefix="$exec_prefix"
  17257. exec_prefix="$acl_final_exec_prefix"
  17258. eval x=\"$x\"
  17259. exec_prefix="$acl_save_exec_prefix"
  17260. prefix="$acl_save_prefix"
  17261. if test "X$x" = "X-L$additional_libdir"; then
  17262. haveit=yes
  17263. break
  17264. fi
  17265. done
  17266. if test -z "$haveit"; then
  17267. if test -d "$additional_libdir"; then
  17268. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  17269. fi
  17270. fi
  17271. haveit=
  17272. for x in $LDFLAGS $LTLIBICONV; do
  17273. acl_save_prefix="$prefix"
  17274. prefix="$acl_final_prefix"
  17275. acl_save_exec_prefix="$exec_prefix"
  17276. exec_prefix="$acl_final_exec_prefix"
  17277. eval x=\"$x\"
  17278. exec_prefix="$acl_save_exec_prefix"
  17279. prefix="$acl_save_prefix"
  17280. if test "X$x" = "X-L$additional_libdir"; then
  17281. haveit=yes
  17282. break
  17283. fi
  17284. done
  17285. if test -z "$haveit"; then
  17286. if test -d "$additional_libdir"; then
  17287. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  17288. fi
  17289. fi
  17290. fi
  17291. fi
  17292. ;;
  17293. -R*)
  17294. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  17295. if test "$enable_rpath" != no; then
  17296. haveit=
  17297. for x in $rpathdirs; do
  17298. if test "X$x" = "X$dir"; then
  17299. haveit=yes
  17300. break
  17301. fi
  17302. done
  17303. if test -z "$haveit"; then
  17304. rpathdirs="$rpathdirs $dir"
  17305. fi
  17306. haveit=
  17307. for x in $ltrpathdirs; do
  17308. if test "X$x" = "X$dir"; then
  17309. haveit=yes
  17310. break
  17311. fi
  17312. done
  17313. if test -z "$haveit"; then
  17314. ltrpathdirs="$ltrpathdirs $dir"
  17315. fi
  17316. fi
  17317. ;;
  17318. -l*)
  17319. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  17320. ;;
  17321. *.la)
  17322. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  17323. ;;
  17324. *)
  17325. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  17326. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  17327. ;;
  17328. esac
  17329. done
  17330. fi
  17331. else
  17332. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  17333. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  17334. fi
  17335. fi
  17336. fi
  17337. done
  17338. done
  17339. if test "X$rpathdirs" != "X"; then
  17340. if test -n "$acl_hardcode_libdir_separator"; then
  17341. alldirs=
  17342. for found_dir in $rpathdirs; do
  17343. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  17344. done
  17345. acl_save_libdir="$libdir"
  17346. libdir="$alldirs"
  17347. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17348. libdir="$acl_save_libdir"
  17349. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  17350. else
  17351. for found_dir in $rpathdirs; do
  17352. acl_save_libdir="$libdir"
  17353. libdir="$found_dir"
  17354. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17355. libdir="$acl_save_libdir"
  17356. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  17357. done
  17358. fi
  17359. fi
  17360. if test "X$ltrpathdirs" != "X"; then
  17361. for found_dir in $ltrpathdirs; do
  17362. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  17363. done
  17364. fi
  17365. am_save_CPPFLAGS="$CPPFLAGS"
  17366. for element in $INCICONV; do
  17367. haveit=
  17368. for x in $CPPFLAGS; do
  17369. acl_save_prefix="$prefix"
  17370. prefix="$acl_final_prefix"
  17371. acl_save_exec_prefix="$exec_prefix"
  17372. exec_prefix="$acl_final_exec_prefix"
  17373. eval x=\"$x\"
  17374. exec_prefix="$acl_save_exec_prefix"
  17375. prefix="$acl_save_prefix"
  17376. if test "X$x" = "X$element"; then
  17377. haveit=yes
  17378. break
  17379. fi
  17380. done
  17381. if test -z "$haveit"; then
  17382. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17383. fi
  17384. done
  17385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  17386. $as_echo_n "checking for iconv... " >&6; }
  17387. if ${am_cv_func_iconv+:} false; then :
  17388. $as_echo_n "(cached) " >&6
  17389. else
  17390. am_cv_func_iconv="no, consider installing GNU libiconv"
  17391. am_cv_lib_iconv=no
  17392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17393. /* end confdefs.h. */
  17394. #include <stdlib.h>
  17395. #include <iconv.h>
  17396. int
  17397. main ()
  17398. {
  17399. iconv_t cd = iconv_open("","");
  17400. iconv(cd,NULL,NULL,NULL,NULL);
  17401. iconv_close(cd);
  17402. ;
  17403. return 0;
  17404. }
  17405. _ACEOF
  17406. if ac_fn_c_try_link "$LINENO"; then :
  17407. am_cv_func_iconv=yes
  17408. fi
  17409. rm -f core conftest.err conftest.$ac_objext \
  17410. conftest$ac_exeext conftest.$ac_ext
  17411. if test "$am_cv_func_iconv" != yes; then
  17412. am_save_LIBS="$LIBS"
  17413. LIBS="$LIBS $LIBICONV"
  17414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17415. /* end confdefs.h. */
  17416. #include <stdlib.h>
  17417. #include <iconv.h>
  17418. int
  17419. main ()
  17420. {
  17421. iconv_t cd = iconv_open("","");
  17422. iconv(cd,NULL,NULL,NULL,NULL);
  17423. iconv_close(cd);
  17424. ;
  17425. return 0;
  17426. }
  17427. _ACEOF
  17428. if ac_fn_c_try_link "$LINENO"; then :
  17429. am_cv_lib_iconv=yes
  17430. am_cv_func_iconv=yes
  17431. fi
  17432. rm -f core conftest.err conftest.$ac_objext \
  17433. conftest$ac_exeext conftest.$ac_ext
  17434. LIBS="$am_save_LIBS"
  17435. fi
  17436. fi
  17437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  17438. $as_echo "$am_cv_func_iconv" >&6; }
  17439. if test "$am_cv_func_iconv" = yes; then
  17440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  17441. $as_echo_n "checking for working iconv... " >&6; }
  17442. if ${am_cv_func_iconv_works+:} false; then :
  17443. $as_echo_n "(cached) " >&6
  17444. else
  17445. am_save_LIBS="$LIBS"
  17446. if test $am_cv_lib_iconv = yes; then
  17447. LIBS="$LIBS $LIBICONV"
  17448. fi
  17449. if test "$cross_compiling" = yes; then :
  17450. case "$host_os" in
  17451. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  17452. *) am_cv_func_iconv_works="guessing yes" ;;
  17453. esac
  17454. else
  17455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17456. /* end confdefs.h. */
  17457. #include <iconv.h>
  17458. #include <string.h>
  17459. int main ()
  17460. {
  17461. int result = 0;
  17462. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  17463. returns. */
  17464. {
  17465. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  17466. if (cd_utf8_to_88591 != (iconv_t)(-1))
  17467. {
  17468. static const char input[] = "\342\202\254"; /* EURO SIGN */
  17469. char buf[10];
  17470. const char *inptr = input;
  17471. size_t inbytesleft = strlen (input);
  17472. char *outptr = buf;
  17473. size_t outbytesleft = sizeof (buf);
  17474. size_t res = iconv (cd_utf8_to_88591,
  17475. (char **) &inptr, &inbytesleft,
  17476. &outptr, &outbytesleft);
  17477. if (res == 0)
  17478. result |= 1;
  17479. iconv_close (cd_utf8_to_88591);
  17480. }
  17481. }
  17482. /* Test against Solaris 10 bug: Failures are not distinguishable from
  17483. successful returns. */
  17484. {
  17485. iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  17486. if (cd_ascii_to_88591 != (iconv_t)(-1))
  17487. {
  17488. static const char input[] = "\263";
  17489. char buf[10];
  17490. const char *inptr = input;
  17491. size_t inbytesleft = strlen (input);
  17492. char *outptr = buf;
  17493. size_t outbytesleft = sizeof (buf);
  17494. size_t res = iconv (cd_ascii_to_88591,
  17495. (char **) &inptr, &inbytesleft,
  17496. &outptr, &outbytesleft);
  17497. if (res == 0)
  17498. result |= 2;
  17499. iconv_close (cd_ascii_to_88591);
  17500. }
  17501. }
  17502. /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
  17503. {
  17504. iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
  17505. if (cd_88591_to_utf8 != (iconv_t)(-1))
  17506. {
  17507. static const char input[] = "\304";
  17508. static char buf[2] = { (char)0xDE, (char)0xAD };
  17509. const char *inptr = input;
  17510. size_t inbytesleft = 1;
  17511. char *outptr = buf;
  17512. size_t outbytesleft = 1;
  17513. size_t res = iconv (cd_88591_to_utf8,
  17514. (char **) &inptr, &inbytesleft,
  17515. &outptr, &outbytesleft);
  17516. if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
  17517. result |= 4;
  17518. iconv_close (cd_88591_to_utf8);
  17519. }
  17520. }
  17521. #if 0 /* This bug could be worked around by the caller. */
  17522. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  17523. {
  17524. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  17525. if (cd_88591_to_utf8 != (iconv_t)(-1))
  17526. {
  17527. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  17528. char buf[50];
  17529. const char *inptr = input;
  17530. size_t inbytesleft = strlen (input);
  17531. char *outptr = buf;
  17532. size_t outbytesleft = sizeof (buf);
  17533. size_t res = iconv (cd_88591_to_utf8,
  17534. (char **) &inptr, &inbytesleft,
  17535. &outptr, &outbytesleft);
  17536. if ((int)res > 0)
  17537. result |= 8;
  17538. iconv_close (cd_88591_to_utf8);
  17539. }
  17540. }
  17541. #endif
  17542. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  17543. provided. */
  17544. if (/* Try standardized names. */
  17545. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  17546. /* Try IRIX, OSF/1 names. */
  17547. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  17548. /* Try AIX names. */
  17549. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  17550. /* Try HP-UX names. */
  17551. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  17552. result |= 16;
  17553. return result;
  17554. }
  17555. _ACEOF
  17556. if ac_fn_c_try_run "$LINENO"; then :
  17557. am_cv_func_iconv_works=yes
  17558. else
  17559. am_cv_func_iconv_works=no
  17560. fi
  17561. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17562. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17563. fi
  17564. LIBS="$am_save_LIBS"
  17565. fi
  17566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  17567. $as_echo "$am_cv_func_iconv_works" >&6; }
  17568. case "$am_cv_func_iconv_works" in
  17569. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  17570. *) am_func_iconv=yes ;;
  17571. esac
  17572. else
  17573. am_func_iconv=no am_cv_lib_iconv=no
  17574. fi
  17575. if test "$am_func_iconv" = yes; then
  17576. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  17577. fi
  17578. if test "$am_cv_lib_iconv" = yes; then
  17579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  17580. $as_echo_n "checking how to link with libiconv... " >&6; }
  17581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  17582. $as_echo "$LIBICONV" >&6; }
  17583. else
  17584. CPPFLAGS="$am_save_CPPFLAGS"
  17585. LIBICONV=
  17586. LTLIBICONV=
  17587. fi
  17588. if test "$am_cv_func_iconv" = yes; then
  17589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  17590. $as_echo_n "checking for iconv declaration... " >&6; }
  17591. if ${am_cv_proto_iconv+:} false; then :
  17592. $as_echo_n "(cached) " >&6
  17593. else
  17594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17595. /* end confdefs.h. */
  17596. #include <stdlib.h>
  17597. #include <iconv.h>
  17598. extern
  17599. #ifdef __cplusplus
  17600. "C"
  17601. #endif
  17602. #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
  17603. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  17604. #else
  17605. size_t iconv();
  17606. #endif
  17607. int
  17608. main ()
  17609. {
  17610. ;
  17611. return 0;
  17612. }
  17613. _ACEOF
  17614. if ac_fn_c_try_compile "$LINENO"; then :
  17615. am_cv_proto_iconv_arg1=""
  17616. else
  17617. am_cv_proto_iconv_arg1="const"
  17618. fi
  17619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17620. 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);"
  17621. fi
  17622. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  17623. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  17624. $am_cv_proto_iconv" >&5
  17625. $as_echo "
  17626. $am_cv_proto_iconv" >&6; }
  17627. cat >>confdefs.h <<_ACEOF
  17628. #define ICONV_CONST $am_cv_proto_iconv_arg1
  17629. _ACEOF
  17630. fi
  17631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  17632. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  17633. if ${am_cv_langinfo_codeset+:} false; then :
  17634. $as_echo_n "(cached) " >&6
  17635. else
  17636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17637. /* end confdefs.h. */
  17638. #include <langinfo.h>
  17639. int
  17640. main ()
  17641. {
  17642. char* cs = nl_langinfo(CODESET); return !cs;
  17643. ;
  17644. return 0;
  17645. }
  17646. _ACEOF
  17647. if ac_fn_c_try_link "$LINENO"; then :
  17648. am_cv_langinfo_codeset=yes
  17649. else
  17650. am_cv_langinfo_codeset=no
  17651. fi
  17652. rm -f core conftest.err conftest.$ac_objext \
  17653. conftest$ac_exeext conftest.$ac_ext
  17654. fi
  17655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  17656. $as_echo "$am_cv_langinfo_codeset" >&6; }
  17657. if test $am_cv_langinfo_codeset = yes; then
  17658. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  17659. fi
  17660. for ac_prog in docbook-to-man docbook2man
  17661. do
  17662. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17663. set dummy $ac_prog; ac_word=$2
  17664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17665. $as_echo_n "checking for $ac_word... " >&6; }
  17666. if ${ac_cv_prog_DOCBOOK_TO_MAN+:} false; then :
  17667. $as_echo_n "(cached) " >&6
  17668. else
  17669. if test -n "$DOCBOOK_TO_MAN"; then
  17670. ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
  17671. else
  17672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17673. for as_dir in $PATH
  17674. do
  17675. IFS=$as_save_IFS
  17676. test -z "$as_dir" && as_dir=.
  17677. for ac_exec_ext in '' $ac_executable_extensions; do
  17678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17679. ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
  17680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17681. break 2
  17682. fi
  17683. done
  17684. done
  17685. IFS=$as_save_IFS
  17686. fi
  17687. fi
  17688. DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
  17689. if test -n "$DOCBOOK_TO_MAN"; then
  17690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5
  17691. $as_echo "$DOCBOOK_TO_MAN" >&6; }
  17692. else
  17693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17694. $as_echo "no" >&6; }
  17695. fi
  17696. test -n "$DOCBOOK_TO_MAN" && break
  17697. done
  17698. if test -n "$DOCBOOK_TO_MAN"; then
  17699. FLaC__HAS_DOCBOOK_TO_MAN_TRUE=
  17700. FLaC__HAS_DOCBOOK_TO_MAN_FALSE='#'
  17701. else
  17702. FLaC__HAS_DOCBOOK_TO_MAN_TRUE='#'
  17703. FLaC__HAS_DOCBOOK_TO_MAN_FALSE=
  17704. fi
  17705. if test -n "$DOCBOOK_TO_MAN" ; then
  17706. $as_echo "#define FLAC__HAS_DOCBOOK_TO_MAN 1" >>confdefs.h
  17707. fi
  17708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  17709. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  17710. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  17711. $as_echo_n "(cached) " >&6
  17712. else
  17713. ac_check_lib_save_LIBS=$LIBS
  17714. LIBS="-lrt $LIBS"
  17715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17716. /* end confdefs.h. */
  17717. /* Override any GCC internal prototype to avoid an error.
  17718. Use char because int might match the return type of a GCC
  17719. builtin and then its argument prototype would still apply. */
  17720. #ifdef __cplusplus
  17721. extern "C"
  17722. #endif
  17723. char clock_gettime ();
  17724. int
  17725. main ()
  17726. {
  17727. return clock_gettime ();
  17728. ;
  17729. return 0;
  17730. }
  17731. _ACEOF
  17732. if ac_fn_c_try_link "$LINENO"; then :
  17733. ac_cv_lib_rt_clock_gettime=yes
  17734. else
  17735. ac_cv_lib_rt_clock_gettime=no
  17736. fi
  17737. rm -f core conftest.err conftest.$ac_objext \
  17738. conftest$ac_exeext conftest.$ac_ext
  17739. LIBS=$ac_check_lib_save_LIBS
  17740. fi
  17741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  17742. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  17743. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  17744. have_clock_gettime=yes
  17745. fi
  17746. if test x$have_clock_gettime = xyes; then
  17747. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  17748. fi
  17749. # only matters for x86
  17750. for ac_prog in nasm
  17751. do
  17752. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17753. set dummy $ac_prog; ac_word=$2
  17754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17755. $as_echo_n "checking for $ac_word... " >&6; }
  17756. if ${ac_cv_prog_NASM+:} false; then :
  17757. $as_echo_n "(cached) " >&6
  17758. else
  17759. if test -n "$NASM"; then
  17760. ac_cv_prog_NASM="$NASM" # Let the user override the test.
  17761. else
  17762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17763. for as_dir in $PATH
  17764. do
  17765. IFS=$as_save_IFS
  17766. test -z "$as_dir" && as_dir=.
  17767. for ac_exec_ext in '' $ac_executable_extensions; do
  17768. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17769. ac_cv_prog_NASM="$ac_prog"
  17770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17771. break 2
  17772. fi
  17773. done
  17774. done
  17775. IFS=$as_save_IFS
  17776. fi
  17777. fi
  17778. NASM=$ac_cv_prog_NASM
  17779. if test -n "$NASM"; then
  17780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5
  17781. $as_echo "$NASM" >&6; }
  17782. else
  17783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17784. $as_echo "no" >&6; }
  17785. fi
  17786. test -n "$NASM" && break
  17787. done
  17788. if test -n "$NASM"; then
  17789. FLaC__HAS_NASM_TRUE=
  17790. FLaC__HAS_NASM_FALSE='#'
  17791. else
  17792. FLaC__HAS_NASM_TRUE='#'
  17793. FLaC__HAS_NASM_FALSE=
  17794. fi
  17795. if test -n "$NASM" ; then
  17796. $as_echo "#define FLAC__HAS_NASM 1" >>confdefs.h
  17797. fi
  17798. if test "x$debug" = xtrue; then
  17799. CPPFLAGS="-DDEBUG $CPPFLAGS"
  17800. CFLAGS="-g $CFLAGS"
  17801. else
  17802. CPPFLAGS="-DNDEBUG $CPPFLAGS"
  17803. CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//')
  17804. CFLAGS="-O3 -funroll-loops $CFLAGS"
  17805. fi
  17806. if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
  17807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $CC" >&5
  17808. $as_echo_n "checking for version of $CC... " >&6; }
  17809. GCC_VERSION=`$CC -dumpversion`
  17810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
  17811. $as_echo "$GCC_VERSION" >&6; }
  17812. GCC_MAJOR_VERSION=`echo $GCC_VERSION | cut -d. -f 1`
  17813. GCC_MINOR_VERSION=`echo $GCC_VERSION | cut -d. -f 2`
  17814. fi
  17815. if test x$ac_cv_c_compiler_gnu = xyes ; then
  17816. CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Wconversion
  17817. CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Woverloaded-virtual -Wmissing-declarations
  17818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
  17819. $as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
  17820. ac_add_cflags__old_cflags="$CFLAGS"
  17821. CFLAGS="-Wdeclaration-after-statement"
  17822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17823. /* end confdefs.h. */
  17824. #include <stdio.h>
  17825. int
  17826. main ()
  17827. {
  17828. puts("Hello, World!"); return 0;
  17829. ;
  17830. return 0;
  17831. }
  17832. _ACEOF
  17833. if ac_fn_c_try_link "$LINENO"; then :
  17834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17835. $as_echo "yes" >&6; }
  17836. CFLAGS="$ac_add_cflags__old_cflags -Wdeclaration-after-statement"
  17837. else
  17838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17839. $as_echo "no" >&6; }
  17840. CFLAGS="$ac_add_cflags__old_cflags"
  17841. fi
  17842. rm -f core conftest.err conftest.$ac_objext \
  17843. conftest$ac_exeext conftest.$ac_ext
  17844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -D_FORTIFY_SOURCE=2" >&5
  17845. $as_echo_n "checking if $CC accepts -D_FORTIFY_SOURCE=2... " >&6; }
  17846. ac_add_cflags__old_cflags="$CFLAGS"
  17847. CFLAGS="-D_FORTIFY_SOURCE=2"
  17848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17849. /* end confdefs.h. */
  17850. #include <stdio.h>
  17851. int
  17852. main ()
  17853. {
  17854. puts("Hello, World!"); return 0;
  17855. ;
  17856. return 0;
  17857. }
  17858. _ACEOF
  17859. if ac_fn_c_try_link "$LINENO"; then :
  17860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17861. $as_echo "yes" >&6; }
  17862. CFLAGS="$ac_add_cflags__old_cflags -D_FORTIFY_SOURCE=2"
  17863. else
  17864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17865. $as_echo "no" >&6; }
  17866. CFLAGS="$ac_add_cflags__old_cflags"
  17867. fi
  17868. rm -f core conftest.err conftest.$ac_objext \
  17869. conftest$ac_exeext conftest.$ac_ext
  17870. ac_ext=cpp
  17871. ac_cpp='$CXXCPP $CPPFLAGS'
  17872. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17873. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17874. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Weffc++" >&5
  17876. $as_echo_n "checking if $CXX accepts -Weffc++... " >&6; }
  17877. ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
  17878. CXXFLAGS="-Weffc++"
  17879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17880. /* end confdefs.h. */
  17881. #include <cstdio>
  17882. int
  17883. main ()
  17884. {
  17885. puts("Hello, World!"); return 0;
  17886. ;
  17887. return 0;
  17888. }
  17889. _ACEOF
  17890. if ac_fn_cxx_try_link "$LINENO"; then :
  17891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17892. $as_echo "yes" >&6; }
  17893. CXXFLAGS="$ac_add_cxxflags__old_cxxflags -Weffc++"
  17894. else
  17895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17896. $as_echo "no" >&6; }
  17897. CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
  17898. fi
  17899. rm -f core conftest.err conftest.$ac_objext \
  17900. conftest$ac_exeext conftest.$ac_ext
  17901. ac_ext=c
  17902. ac_cpp='$CPP $CPPFLAGS'
  17903. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17904. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17905. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17906. if test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = elf; then
  17907. CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR"
  17908. CFLAGS="$CFLAGS -fvisibility=hidden"
  17909. CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
  17910. fi
  17911. if test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = macho; then
  17912. CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR"
  17913. CFLAGS="$CFLAGS -fvisibility=hidden"
  17914. CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
  17915. fi
  17916. if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x42" ; then
  17917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fgnu89-inline" >&5
  17918. $as_echo_n "checking if $CC accepts -fgnu89-inline... " >&6; }
  17919. ac_add_cflags__old_cflags="$CFLAGS"
  17920. CFLAGS="-fgnu89-inline"
  17921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17922. /* end confdefs.h. */
  17923. #include <stdio.h>
  17924. int
  17925. main ()
  17926. {
  17927. puts("Hello, World!"); return 0;
  17928. ;
  17929. return 0;
  17930. }
  17931. _ACEOF
  17932. if ac_fn_c_try_link "$LINENO"; then :
  17933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17934. $as_echo "yes" >&6; }
  17935. CFLAGS="$ac_add_cflags__old_cflags -fgnu89-inline"
  17936. else
  17937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17938. $as_echo "no" >&6; }
  17939. CFLAGS="$ac_add_cflags__old_cflags"
  17940. fi
  17941. rm -f core conftest.err conftest.$ac_objext \
  17942. conftest$ac_exeext conftest.$ac_ext
  17943. fi
  17944. if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x47" ; then
  17945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline-small-functions" >&5
  17946. $as_echo_n "checking if $CC accepts -fno-inline-small-functions... " >&6; }
  17947. ac_add_cflags__old_cflags="$CFLAGS"
  17948. CFLAGS="-fno-inline-small-functions"
  17949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17950. /* end confdefs.h. */
  17951. #include <stdio.h>
  17952. int
  17953. main ()
  17954. {
  17955. puts("Hello, World!"); return 0;
  17956. ;
  17957. return 0;
  17958. }
  17959. _ACEOF
  17960. if ac_fn_c_try_link "$LINENO"; then :
  17961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17962. $as_echo "yes" >&6; }
  17963. CFLAGS="$ac_add_cflags__old_cflags -fno-inline-small-functions"
  17964. else
  17965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17966. $as_echo "no" >&6; }
  17967. CFLAGS="$ac_add_cflags__old_cflags"
  17968. fi
  17969. rm -f core conftest.err conftest.$ac_objext \
  17970. conftest$ac_exeext conftest.$ac_ext
  17971. fi
  17972. if test "x$asm_optimisation$sse_os" = "xyesyes" ; then
  17973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -msse2" >&5
  17974. $as_echo_n "checking if $CC accepts -msse2... " >&6; }
  17975. ac_add_cflags__old_cflags="$CFLAGS"
  17976. CFLAGS="-msse2"
  17977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17978. /* end confdefs.h. */
  17979. #include <stdio.h>
  17980. int
  17981. main ()
  17982. {
  17983. puts("Hello, World!"); return 0;
  17984. ;
  17985. return 0;
  17986. }
  17987. _ACEOF
  17988. if ac_fn_c_try_link "$LINENO"; then :
  17989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17990. $as_echo "yes" >&6; }
  17991. CFLAGS="$ac_add_cflags__old_cflags -msse2"
  17992. else
  17993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17994. $as_echo "no" >&6; }
  17995. CFLAGS="$ac_add_cflags__old_cflags"
  17996. fi
  17997. rm -f core conftest.err conftest.$ac_objext \
  17998. conftest$ac_exeext conftest.$ac_ext
  17999. fi
  18000. fi
  18001. case "$host_os" in
  18002. "mingw32"|"os2")
  18003. if test "$host_cpu" = "i686"; then
  18004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -mstackrealign" >&5
  18005. $as_echo_n "checking if $CC accepts -mstackrealign... " >&6; }
  18006. ac_add_cflags__old_cflags="$CFLAGS"
  18007. CFLAGS="-mstackrealign"
  18008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18009. /* end confdefs.h. */
  18010. #include <stdio.h>
  18011. int
  18012. main ()
  18013. {
  18014. puts("Hello, World!"); return 0;
  18015. ;
  18016. return 0;
  18017. }
  18018. _ACEOF
  18019. if ac_fn_c_try_link "$LINENO"; then :
  18020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18021. $as_echo "yes" >&6; }
  18022. CFLAGS="$ac_add_cflags__old_cflags -mstackrealign"
  18023. else
  18024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18025. $as_echo "no" >&6; }
  18026. CFLAGS="$ac_add_cflags__old_cflags"
  18027. fi
  18028. rm -f core conftest.err conftest.$ac_objext \
  18029. conftest$ac_exeext conftest.$ac_ext
  18030. fi
  18031. esac
  18032. if test x$enable_werror = "xyes" ; then
  18033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror" >&5
  18034. $as_echo_n "checking if $CC accepts -Werror... " >&6; }
  18035. ac_add_cflags__old_cflags="$CFLAGS"
  18036. CFLAGS="-Werror"
  18037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18038. /* end confdefs.h. */
  18039. #include <stdio.h>
  18040. int
  18041. main ()
  18042. {
  18043. puts("Hello, World!"); return 0;
  18044. ;
  18045. return 0;
  18046. }
  18047. _ACEOF
  18048. if ac_fn_c_try_link "$LINENO"; then :
  18049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18050. $as_echo "yes" >&6; }
  18051. CFLAGS="$ac_add_cflags__old_cflags -Werror"
  18052. else
  18053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18054. $as_echo "no" >&6; }
  18055. CFLAGS="$ac_add_cflags__old_cflags"
  18056. fi
  18057. rm -f core conftest.err conftest.$ac_objext \
  18058. conftest$ac_exeext conftest.$ac_ext
  18059. ac_ext=cpp
  18060. ac_cpp='$CXXCPP $CPPFLAGS'
  18061. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18062. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18063. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror" >&5
  18065. $as_echo_n "checking if $CXX accepts -Werror... " >&6; }
  18066. ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
  18067. CXXFLAGS="-Werror"
  18068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18069. /* end confdefs.h. */
  18070. #include <cstdio>
  18071. int
  18072. main ()
  18073. {
  18074. puts("Hello, World!"); return 0;
  18075. ;
  18076. return 0;
  18077. }
  18078. _ACEOF
  18079. if ac_fn_cxx_try_link "$LINENO"; then :
  18080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18081. $as_echo "yes" >&6; }
  18082. CXXFLAGS="$ac_add_cxxflags__old_cxxflags -Werror"
  18083. else
  18084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18085. $as_echo "no" >&6; }
  18086. CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
  18087. fi
  18088. rm -f core conftest.err conftest.$ac_objext \
  18089. conftest$ac_exeext conftest.$ac_ext
  18090. ac_ext=c
  18091. ac_cpp='$CPP $CPPFLAGS'
  18092. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18093. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18094. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18095. fi
  18096. if test x$enable_stack_smash_protection = "xyes" ; then
  18097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports stack smash protection" >&5
  18098. $as_echo_n "checking if $CC supports stack smash protection... " >&6; }
  18099. xiph_stack_check_old_cflags="$CFLAGS"
  18100. SSP_FLAGS="-fstack-protector --param ssp-buffer-size=4"
  18101. CFLAGS=$SSP_FLAGS
  18102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18103. /* end confdefs.h. */
  18104. #include <stdio.h>
  18105. int
  18106. main ()
  18107. {
  18108. puts("Hello, World!"); return 0;
  18109. ;
  18110. return 0;
  18111. }
  18112. _ACEOF
  18113. if ac_fn_c_try_link "$LINENO"; then :
  18114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18115. $as_echo "yes" >&6; }
  18116. CFLAGS="$xiph_stack_check_old_cflags $SSP_FLAGS"
  18117. else
  18118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18119. $as_echo "no" >&6; }
  18120. CFLAGS="$xiph_stack_check_old_cflags"
  18121. fi
  18122. rm -f core conftest.err conftest.$ac_objext \
  18123. conftest$ac_exeext conftest.$ac_ext
  18124. ac_ext=cpp
  18125. ac_cpp='$CXXCPP $CPPFLAGS'
  18126. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18127. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18128. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX supports stack smash protection" >&5
  18130. $as_echo_n "checking if $CXX supports stack smash protection... " >&6; }
  18131. xiph_stack_check_old_cflags="$CFLAGS"
  18132. SSP_FLAGS="-fstack-protector --param ssp-buffer-size=4"
  18133. CFLAGS=$SSP_FLAGS
  18134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18135. /* end confdefs.h. */
  18136. #include <cstdio>
  18137. int
  18138. main ()
  18139. {
  18140. puts("Hello, World!"); return 0;
  18141. ;
  18142. return 0;
  18143. }
  18144. _ACEOF
  18145. if ac_fn_cxx_try_link "$LINENO"; then :
  18146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18147. $as_echo "yes" >&6; }
  18148. CFLAGS="$xiph_stack_check_old_cflags $SSP_FLAGS"
  18149. else
  18150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18151. $as_echo "no" >&6; }
  18152. CFLAGS="$xiph_stack_check_old_cflags"
  18153. fi
  18154. rm -f core conftest.err conftest.$ac_objext \
  18155. conftest$ac_exeext conftest.$ac_ext
  18156. ac_ext=c
  18157. ac_cpp='$CPP $CPPFLAGS'
  18158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18161. fi
  18162. if test "x$sys_linux" = xtrue ; then
  18163. LIB_CLOCK_GETTIME=-lrt
  18164. fi
  18165. ac_config_files="$ac_config_files Makefile src/Makefile src/libFLAC/Makefile src/libFLAC/flac.pc src/libFLAC/ia32/Makefile src/libFLAC/include/Makefile src/libFLAC/include/private/Makefile src/libFLAC/include/protected/Makefile src/libFLAC++/Makefile src/libFLAC++/flac++.pc src/flac/Makefile src/metaflac/Makefile src/plugin_common/Makefile src/plugin_xmms/Makefile src/share/Makefile src/test_grabbag/Makefile src/test_grabbag/cuesheet/Makefile src/test_grabbag/picture/Makefile src/test_libs_common/Makefile src/test_libFLAC/Makefile src/test_libFLAC++/Makefile src/test_seeking/Makefile src/test_streams/Makefile src/utils/Makefile src/utils/flacdiff/Makefile src/utils/flactimer/Makefile examples/Makefile examples/c/Makefile examples/c/decode/Makefile examples/c/decode/file/Makefile examples/c/encode/Makefile examples/c/encode/file/Makefile examples/cpp/Makefile examples/cpp/decode/Makefile examples/cpp/decode/file/Makefile examples/cpp/encode/Makefile examples/cpp/encode/file/Makefile include/Makefile include/FLAC/Makefile include/FLAC++/Makefile include/share/Makefile include/share/grabbag/Makefile include/test_libs_common/Makefile doc/Doxyfile doc/Makefile doc/html/Makefile doc/html/images/Makefile m4/Makefile man/Makefile test/common.sh test/Makefile test/cuesheets/Makefile test/flac-to-flac-metadata-test-files/Makefile test/metaflac-test-files/Makefile test/pictures/Makefile build/Makefile objs/Makefile objs/debug/Makefile objs/debug/bin/Makefile objs/debug/lib/Makefile objs/release/Makefile objs/release/bin/Makefile objs/release/lib/Makefile microbench/Makefile"
  18166. cat >confcache <<\_ACEOF
  18167. # This file is a shell script that caches the results of configure
  18168. # tests run on this system so they can be shared between configure
  18169. # scripts and configure runs, see configure's option --config-cache.
  18170. # It is not useful on other systems. If it contains results you don't
  18171. # want to keep, you may remove or edit it.
  18172. #
  18173. # config.status only pays attention to the cache file if you give it
  18174. # the --recheck option to rerun configure.
  18175. #
  18176. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18177. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18178. # following values.
  18179. _ACEOF
  18180. # The following way of writing the cache mishandles newlines in values,
  18181. # but we know of no workaround that is simple, portable, and efficient.
  18182. # So, we kill variables containing newlines.
  18183. # Ultrix sh set writes to stderr and can't be redirected directly,
  18184. # and sets the high bit in the cache file unless we assign to the vars.
  18185. (
  18186. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18187. eval ac_val=\$$ac_var
  18188. case $ac_val in #(
  18189. *${as_nl}*)
  18190. case $ac_var in #(
  18191. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18192. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18193. esac
  18194. case $ac_var in #(
  18195. _ | IFS | as_nl) ;; #(
  18196. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18197. *) { eval $ac_var=; unset $ac_var;} ;;
  18198. esac ;;
  18199. esac
  18200. done
  18201. (set) 2>&1 |
  18202. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18203. *${as_nl}ac_space=\ *)
  18204. # `set' does not quote correctly, so add quotes: double-quote
  18205. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18206. sed -n \
  18207. "s/'/'\\\\''/g;
  18208. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18209. ;; #(
  18210. *)
  18211. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18212. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18213. ;;
  18214. esac |
  18215. sort
  18216. ) |
  18217. sed '
  18218. /^ac_cv_env_/b end
  18219. t clear
  18220. :clear
  18221. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18222. t end
  18223. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18224. :end' >>confcache
  18225. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18226. if test -w "$cache_file"; then
  18227. if test "x$cache_file" != "x/dev/null"; then
  18228. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18229. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18230. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18231. cat confcache >"$cache_file"
  18232. else
  18233. case $cache_file in #(
  18234. */* | ?:*)
  18235. mv -f confcache "$cache_file"$$ &&
  18236. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18237. *)
  18238. mv -f confcache "$cache_file" ;;
  18239. esac
  18240. fi
  18241. fi
  18242. else
  18243. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18244. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18245. fi
  18246. fi
  18247. rm -f confcache
  18248. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18249. # Let make expand exec_prefix.
  18250. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18251. DEFS=-DHAVE_CONFIG_H
  18252. ac_libobjs=
  18253. ac_ltlibobjs=
  18254. U=
  18255. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18256. # 1. Remove the extension, and $U if already installed.
  18257. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18258. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18259. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18260. # will be set to the directory where LIBOBJS objects are built.
  18261. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18262. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18263. done
  18264. LIBOBJS=$ac_libobjs
  18265. LTLIBOBJS=$ac_ltlibobjs
  18266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18267. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18268. if test -n "$am_sleep_pid"; then
  18269. # Hide warnings about reused PIDs.
  18270. wait $am_sleep_pid 2>/dev/null
  18271. fi
  18272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18273. $as_echo "done" >&6; }
  18274. if test -n "$EXEEXT"; then
  18275. am__EXEEXT_TRUE=
  18276. am__EXEEXT_FALSE='#'
  18277. else
  18278. am__EXEEXT_TRUE='#'
  18279. am__EXEEXT_FALSE=
  18280. fi
  18281. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18282. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18283. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18284. fi
  18285. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18286. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18287. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18288. fi
  18289. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18290. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18291. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18292. fi
  18293. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18294. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18295. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18296. fi
  18297. if test -z "${FLaC__NO_ASM_TRUE}" && test -z "${FLaC__NO_ASM_FALSE}"; then
  18298. as_fn_error $? "conditional \"FLaC__NO_ASM\" was never defined.
  18299. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18300. fi
  18301. if test -z "${FLAC__CPU_X86_64_TRUE}" && test -z "${FLAC__CPU_X86_64_FALSE}"; then
  18302. as_fn_error $? "conditional \"FLAC__CPU_X86_64\" was never defined.
  18303. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18304. fi
  18305. if test -z "${FLaC__CPU_IA32_TRUE}" && test -z "${FLaC__CPU_IA32_FALSE}"; then
  18306. as_fn_error $? "conditional \"FLaC__CPU_IA32\" was never defined.
  18307. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18308. fi
  18309. if test -z "${FLaC__CPU_PPC_TRUE}" && test -z "${FLaC__CPU_PPC_FALSE}"; then
  18310. as_fn_error $? "conditional \"FLaC__CPU_PPC\" was never defined.
  18311. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18312. fi
  18313. if test -z "${FLaC__CPU_SPARC_TRUE}" && test -z "${FLaC__CPU_SPARC_FALSE}"; then
  18314. as_fn_error $? "conditional \"FLaC__CPU_SPARC\" was never defined.
  18315. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18316. fi
  18317. if test -z "${FLaC__CPU_PPC_SPE_TRUE}" && test -z "${FLaC__CPU_PPC_SPE_FALSE}"; then
  18318. as_fn_error $? "conditional \"FLaC__CPU_PPC_SPE\" was never defined.
  18319. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18320. fi
  18321. if test -z "${OS_IS_WINDOWS_TRUE}" && test -z "${OS_IS_WINDOWS_FALSE}"; then
  18322. as_fn_error $? "conditional \"OS_IS_WINDOWS\" was never defined.
  18323. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18324. fi
  18325. if test -z "${FLaC__SYS_DARWIN_TRUE}" && test -z "${FLaC__SYS_DARWIN_FALSE}"; then
  18326. as_fn_error $? "conditional \"FLaC__SYS_DARWIN\" was never defined.
  18327. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18328. fi
  18329. if test -z "${FLaC__SYS_LINUX_TRUE}" && test -z "${FLaC__SYS_LINUX_FALSE}"; then
  18330. as_fn_error $? "conditional \"FLaC__SYS_LINUX\" was never defined.
  18331. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18332. fi
  18333. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  18334. as_fn_error $? "conditional \"DEBUG\" was never defined.
  18335. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18336. fi
  18337. if test -z "${FLaC__USE_ALTIVEC_TRUE}" && test -z "${FLaC__USE_ALTIVEC_FALSE}"; then
  18338. as_fn_error $? "conditional \"FLaC__USE_ALTIVEC\" was never defined.
  18339. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18340. fi
  18341. if test -z "${FLaC__USE_AVX_TRUE}" && test -z "${FLaC__USE_AVX_FALSE}"; then
  18342. as_fn_error $? "conditional \"FLaC__USE_AVX\" was never defined.
  18343. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18344. fi
  18345. if test -z "${FLaC__HAS_DOXYGEN_TRUE}" && test -z "${FLaC__HAS_DOXYGEN_FALSE}"; then
  18346. as_fn_error $? "conditional \"FLaC__HAS_DOXYGEN\" was never defined.
  18347. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18348. fi
  18349. if test -z "${FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE}" && test -z "${FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE}"; then
  18350. as_fn_error $? "conditional \"FLaC__INSTALL_XMMS_PLUGIN_LOCALLY\" was never defined.
  18351. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18352. fi
  18353. if test -z "${FLaC__HAS_XMMS_TRUE}" && test -z "${FLaC__HAS_XMMS_FALSE}"; then
  18354. as_fn_error $? "conditional \"FLaC__HAS_XMMS\" was never defined.
  18355. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18356. fi
  18357. if test -z "${FLaC__WITH_CPPLIBS_TRUE}" && test -z "${FLaC__WITH_CPPLIBS_FALSE}"; then
  18358. as_fn_error $? "conditional \"FLaC__WITH_CPPLIBS\" was never defined.
  18359. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18360. fi
  18361. if test -z "${FLaC__HAS_OGG_TRUE}" && test -z "${FLaC__HAS_OGG_FALSE}"; then
  18362. as_fn_error $? "conditional \"FLaC__HAS_OGG\" was never defined.
  18363. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18364. fi
  18365. if test -z "${FLaC__HAS_DOCBOOK_TO_MAN_TRUE}" && test -z "${FLaC__HAS_DOCBOOK_TO_MAN_FALSE}"; then
  18366. as_fn_error $? "conditional \"FLaC__HAS_DOCBOOK_TO_MAN\" was never defined.
  18367. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18368. fi
  18369. if test -z "${FLaC__HAS_NASM_TRUE}" && test -z "${FLaC__HAS_NASM_FALSE}"; then
  18370. as_fn_error $? "conditional \"FLaC__HAS_NASM\" was never defined.
  18371. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18372. fi
  18373. : "${CONFIG_STATUS=./config.status}"
  18374. ac_write_fail=0
  18375. ac_clean_files_save=$ac_clean_files
  18376. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18377. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18378. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18379. as_write_fail=0
  18380. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18381. #! $SHELL
  18382. # Generated by $as_me.
  18383. # Run this file to recreate the current configuration.
  18384. # Compiler output produced by configure, useful for debugging
  18385. # configure, is in config.log if it exists.
  18386. debug=false
  18387. ac_cs_recheck=false
  18388. ac_cs_silent=false
  18389. SHELL=\${CONFIG_SHELL-$SHELL}
  18390. export SHELL
  18391. _ASEOF
  18392. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18393. ## -------------------- ##
  18394. ## M4sh Initialization. ##
  18395. ## -------------------- ##
  18396. # Be more Bourne compatible
  18397. DUALCASE=1; export DUALCASE # for MKS sh
  18398. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18399. emulate sh
  18400. NULLCMD=:
  18401. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18402. # is contrary to our usage. Disable this feature.
  18403. alias -g '${1+"$@"}'='"$@"'
  18404. setopt NO_GLOB_SUBST
  18405. else
  18406. case `(set -o) 2>/dev/null` in #(
  18407. *posix*) :
  18408. set -o posix ;; #(
  18409. *) :
  18410. ;;
  18411. esac
  18412. fi
  18413. as_nl='
  18414. '
  18415. export as_nl
  18416. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18417. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18418. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18419. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18420. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18421. # but without wasting forks for bash or zsh.
  18422. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18423. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18424. as_echo='print -r --'
  18425. as_echo_n='print -rn --'
  18426. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18427. as_echo='printf %s\n'
  18428. as_echo_n='printf %s'
  18429. else
  18430. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18431. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18432. as_echo_n='/usr/ucb/echo -n'
  18433. else
  18434. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18435. as_echo_n_body='eval
  18436. arg=$1;
  18437. case $arg in #(
  18438. *"$as_nl"*)
  18439. expr "X$arg" : "X\\(.*\\)$as_nl";
  18440. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18441. esac;
  18442. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18443. '
  18444. export as_echo_n_body
  18445. as_echo_n='sh -c $as_echo_n_body as_echo'
  18446. fi
  18447. export as_echo_body
  18448. as_echo='sh -c $as_echo_body as_echo'
  18449. fi
  18450. # The user is always right.
  18451. if test "${PATH_SEPARATOR+set}" != set; then
  18452. PATH_SEPARATOR=:
  18453. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18454. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18455. PATH_SEPARATOR=';'
  18456. }
  18457. fi
  18458. # IFS
  18459. # We need space, tab and new line, in precisely that order. Quoting is
  18460. # there to prevent editors from complaining about space-tab.
  18461. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18462. # splitting by setting IFS to empty value.)
  18463. IFS=" "" $as_nl"
  18464. # Find who we are. Look in the path if we contain no directory separator.
  18465. as_myself=
  18466. case $0 in #((
  18467. *[\\/]* ) as_myself=$0 ;;
  18468. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18469. for as_dir in $PATH
  18470. do
  18471. IFS=$as_save_IFS
  18472. test -z "$as_dir" && as_dir=.
  18473. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18474. done
  18475. IFS=$as_save_IFS
  18476. ;;
  18477. esac
  18478. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18479. # in which case we are not to be found in the path.
  18480. if test "x$as_myself" = x; then
  18481. as_myself=$0
  18482. fi
  18483. if test ! -f "$as_myself"; then
  18484. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18485. exit 1
  18486. fi
  18487. # Unset variables that we do not need and which cause bugs (e.g. in
  18488. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18489. # suppresses any "Segmentation fault" message there. '((' could
  18490. # trigger a bug in pdksh 5.2.14.
  18491. for as_var in BASH_ENV ENV MAIL MAILPATH
  18492. do eval test x\${$as_var+set} = xset \
  18493. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18494. done
  18495. PS1='$ '
  18496. PS2='> '
  18497. PS4='+ '
  18498. # NLS nuisances.
  18499. LC_ALL=C
  18500. export LC_ALL
  18501. LANGUAGE=C
  18502. export LANGUAGE
  18503. # CDPATH.
  18504. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18505. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18506. # ----------------------------------------
  18507. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18508. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18509. # script with STATUS, using 1 if that was 0.
  18510. as_fn_error ()
  18511. {
  18512. as_status=$1; test $as_status -eq 0 && as_status=1
  18513. if test "$4"; then
  18514. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18515. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18516. fi
  18517. $as_echo "$as_me: error: $2" >&2
  18518. as_fn_exit $as_status
  18519. } # as_fn_error
  18520. # as_fn_set_status STATUS
  18521. # -----------------------
  18522. # Set $? to STATUS, without forking.
  18523. as_fn_set_status ()
  18524. {
  18525. return $1
  18526. } # as_fn_set_status
  18527. # as_fn_exit STATUS
  18528. # -----------------
  18529. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18530. as_fn_exit ()
  18531. {
  18532. set +e
  18533. as_fn_set_status $1
  18534. exit $1
  18535. } # as_fn_exit
  18536. # as_fn_unset VAR
  18537. # ---------------
  18538. # Portably unset VAR.
  18539. as_fn_unset ()
  18540. {
  18541. { eval $1=; unset $1;}
  18542. }
  18543. as_unset=as_fn_unset
  18544. # as_fn_append VAR VALUE
  18545. # ----------------------
  18546. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18547. # advantage of any shell optimizations that allow amortized linear growth over
  18548. # repeated appends, instead of the typical quadratic growth present in naive
  18549. # implementations.
  18550. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18551. eval 'as_fn_append ()
  18552. {
  18553. eval $1+=\$2
  18554. }'
  18555. else
  18556. as_fn_append ()
  18557. {
  18558. eval $1=\$$1\$2
  18559. }
  18560. fi # as_fn_append
  18561. # as_fn_arith ARG...
  18562. # ------------------
  18563. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18564. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18565. # must be portable across $(()) and expr.
  18566. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18567. eval 'as_fn_arith ()
  18568. {
  18569. as_val=$(( $* ))
  18570. }'
  18571. else
  18572. as_fn_arith ()
  18573. {
  18574. as_val=`expr "$@" || test $? -eq 1`
  18575. }
  18576. fi # as_fn_arith
  18577. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18578. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18579. as_expr=expr
  18580. else
  18581. as_expr=false
  18582. fi
  18583. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18584. as_basename=basename
  18585. else
  18586. as_basename=false
  18587. fi
  18588. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18589. as_dirname=dirname
  18590. else
  18591. as_dirname=false
  18592. fi
  18593. as_me=`$as_basename -- "$0" ||
  18594. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18595. X"$0" : 'X\(//\)$' \| \
  18596. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18597. $as_echo X/"$0" |
  18598. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18599. s//\1/
  18600. q
  18601. }
  18602. /^X\/\(\/\/\)$/{
  18603. s//\1/
  18604. q
  18605. }
  18606. /^X\/\(\/\).*/{
  18607. s//\1/
  18608. q
  18609. }
  18610. s/.*/./; q'`
  18611. # Avoid depending upon Character Ranges.
  18612. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18613. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18614. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18615. as_cr_digits='0123456789'
  18616. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18617. ECHO_C= ECHO_N= ECHO_T=
  18618. case `echo -n x` in #(((((
  18619. -n*)
  18620. case `echo 'xy\c'` in
  18621. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18622. xy) ECHO_C='\c';;
  18623. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18624. ECHO_T=' ';;
  18625. esac;;
  18626. *)
  18627. ECHO_N='-n';;
  18628. esac
  18629. rm -f conf$$ conf$$.exe conf$$.file
  18630. if test -d conf$$.dir; then
  18631. rm -f conf$$.dir/conf$$.file
  18632. else
  18633. rm -f conf$$.dir
  18634. mkdir conf$$.dir 2>/dev/null
  18635. fi
  18636. if (echo >conf$$.file) 2>/dev/null; then
  18637. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18638. as_ln_s='ln -s'
  18639. # ... but there are two gotchas:
  18640. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18641. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18642. # In both cases, we have to default to `cp -pR'.
  18643. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18644. as_ln_s='cp -pR'
  18645. elif ln conf$$.file conf$$ 2>/dev/null; then
  18646. as_ln_s=ln
  18647. else
  18648. as_ln_s='cp -pR'
  18649. fi
  18650. else
  18651. as_ln_s='cp -pR'
  18652. fi
  18653. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18654. rmdir conf$$.dir 2>/dev/null
  18655. # as_fn_mkdir_p
  18656. # -------------
  18657. # Create "$as_dir" as a directory, including parents if necessary.
  18658. as_fn_mkdir_p ()
  18659. {
  18660. case $as_dir in #(
  18661. -*) as_dir=./$as_dir;;
  18662. esac
  18663. test -d "$as_dir" || eval $as_mkdir_p || {
  18664. as_dirs=
  18665. while :; do
  18666. case $as_dir in #(
  18667. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18668. *) as_qdir=$as_dir;;
  18669. esac
  18670. as_dirs="'$as_qdir' $as_dirs"
  18671. as_dir=`$as_dirname -- "$as_dir" ||
  18672. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18673. X"$as_dir" : 'X\(//\)[^/]' \| \
  18674. X"$as_dir" : 'X\(//\)$' \| \
  18675. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18676. $as_echo X"$as_dir" |
  18677. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18678. s//\1/
  18679. q
  18680. }
  18681. /^X\(\/\/\)[^/].*/{
  18682. s//\1/
  18683. q
  18684. }
  18685. /^X\(\/\/\)$/{
  18686. s//\1/
  18687. q
  18688. }
  18689. /^X\(\/\).*/{
  18690. s//\1/
  18691. q
  18692. }
  18693. s/.*/./; q'`
  18694. test -d "$as_dir" && break
  18695. done
  18696. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18697. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18698. } # as_fn_mkdir_p
  18699. if mkdir -p . 2>/dev/null; then
  18700. as_mkdir_p='mkdir -p "$as_dir"'
  18701. else
  18702. test -d ./-p && rmdir ./-p
  18703. as_mkdir_p=false
  18704. fi
  18705. # as_fn_executable_p FILE
  18706. # -----------------------
  18707. # Test if FILE is an executable regular file.
  18708. as_fn_executable_p ()
  18709. {
  18710. test -f "$1" && test -x "$1"
  18711. } # as_fn_executable_p
  18712. as_test_x='test -x'
  18713. as_executable_p=as_fn_executable_p
  18714. # Sed expression to map a string onto a valid CPP name.
  18715. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18716. # Sed expression to map a string onto a valid variable name.
  18717. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18718. exec 6>&1
  18719. ## ----------------------------------- ##
  18720. ## Main body of $CONFIG_STATUS script. ##
  18721. ## ----------------------------------- ##
  18722. _ASEOF
  18723. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18725. # Save the log message, to keep $0 and so on meaningful, and to
  18726. # report actual input values of CONFIG_FILES etc. instead of their
  18727. # values after options handling.
  18728. ac_log="
  18729. This file was extended by flac $as_me 1.3.2, which was
  18730. generated by GNU Autoconf 2.69. Invocation command line was
  18731. CONFIG_FILES = $CONFIG_FILES
  18732. CONFIG_HEADERS = $CONFIG_HEADERS
  18733. CONFIG_LINKS = $CONFIG_LINKS
  18734. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18735. $ $0 $@
  18736. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18737. "
  18738. _ACEOF
  18739. case $ac_config_files in *"
  18740. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18741. esac
  18742. case $ac_config_headers in *"
  18743. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18744. esac
  18745. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18746. # Files that config.status was made for.
  18747. config_files="$ac_config_files"
  18748. config_headers="$ac_config_headers"
  18749. config_commands="$ac_config_commands"
  18750. _ACEOF
  18751. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18752. ac_cs_usage="\
  18753. \`$as_me' instantiates files and other configuration actions
  18754. from templates according to the current configuration. Unless the files
  18755. and actions are specified as TAGs, all are instantiated by default.
  18756. Usage: $0 [OPTION]... [TAG]...
  18757. -h, --help print this help, then exit
  18758. -V, --version print version number and configuration settings, then exit
  18759. --config print configuration, then exit
  18760. -q, --quiet, --silent
  18761. do not print progress messages
  18762. -d, --debug don't remove temporary files
  18763. --recheck update $as_me by reconfiguring in the same conditions
  18764. --file=FILE[:TEMPLATE]
  18765. instantiate the configuration file FILE
  18766. --header=FILE[:TEMPLATE]
  18767. instantiate the configuration header FILE
  18768. Configuration files:
  18769. $config_files
  18770. Configuration headers:
  18771. $config_headers
  18772. Configuration commands:
  18773. $config_commands
  18774. Report bugs to <[email protected]>.
  18775. flac home page: <https://www.xiph.org/flac/>."
  18776. _ACEOF
  18777. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18778. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18779. ac_cs_version="\\
  18780. flac config.status 1.3.2
  18781. configured by $0, generated by GNU Autoconf 2.69,
  18782. with options \\"\$ac_cs_config\\"
  18783. Copyright (C) 2012 Free Software Foundation, Inc.
  18784. This config.status script is free software; the Free Software Foundation
  18785. gives unlimited permission to copy, distribute and modify it."
  18786. ac_pwd='$ac_pwd'
  18787. srcdir='$srcdir'
  18788. INSTALL='$INSTALL'
  18789. MKDIR_P='$MKDIR_P'
  18790. AWK='$AWK'
  18791. test -n "\$AWK" || AWK=awk
  18792. _ACEOF
  18793. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18794. # The default lists apply if the user does not specify any file.
  18795. ac_need_defaults=:
  18796. while test $# != 0
  18797. do
  18798. case $1 in
  18799. --*=?*)
  18800. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18801. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18802. ac_shift=:
  18803. ;;
  18804. --*=)
  18805. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18806. ac_optarg=
  18807. ac_shift=:
  18808. ;;
  18809. *)
  18810. ac_option=$1
  18811. ac_optarg=$2
  18812. ac_shift=shift
  18813. ;;
  18814. esac
  18815. case $ac_option in
  18816. # Handling of the options.
  18817. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18818. ac_cs_recheck=: ;;
  18819. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18820. $as_echo "$ac_cs_version"; exit ;;
  18821. --config | --confi | --conf | --con | --co | --c )
  18822. $as_echo "$ac_cs_config"; exit ;;
  18823. --debug | --debu | --deb | --de | --d | -d )
  18824. debug=: ;;
  18825. --file | --fil | --fi | --f )
  18826. $ac_shift
  18827. case $ac_optarg in
  18828. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18829. '') as_fn_error $? "missing file argument" ;;
  18830. esac
  18831. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18832. ac_need_defaults=false;;
  18833. --header | --heade | --head | --hea )
  18834. $ac_shift
  18835. case $ac_optarg in
  18836. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18837. esac
  18838. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18839. ac_need_defaults=false;;
  18840. --he | --h)
  18841. # Conflict between --help and --header
  18842. as_fn_error $? "ambiguous option: \`$1'
  18843. Try \`$0 --help' for more information.";;
  18844. --help | --hel | -h )
  18845. $as_echo "$ac_cs_usage"; exit ;;
  18846. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18847. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18848. ac_cs_silent=: ;;
  18849. # This is an error.
  18850. -*) as_fn_error $? "unrecognized option: \`$1'
  18851. Try \`$0 --help' for more information." ;;
  18852. *) as_fn_append ac_config_targets " $1"
  18853. ac_need_defaults=false ;;
  18854. esac
  18855. shift
  18856. done
  18857. ac_configure_extra_args=
  18858. if $ac_cs_silent; then
  18859. exec 6>/dev/null
  18860. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18861. fi
  18862. _ACEOF
  18863. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18864. if \$ac_cs_recheck; then
  18865. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18866. shift
  18867. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18868. CONFIG_SHELL='$SHELL'
  18869. export CONFIG_SHELL
  18870. exec "\$@"
  18871. fi
  18872. _ACEOF
  18873. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18874. exec 5>>config.log
  18875. {
  18876. echo
  18877. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18878. ## Running $as_me. ##
  18879. _ASBOX
  18880. $as_echo "$ac_log"
  18881. } >&5
  18882. _ACEOF
  18883. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18884. #
  18885. # INIT-COMMANDS
  18886. #
  18887. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18888. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18889. # if CDPATH is set.
  18890. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18891. sed_quote_subst='$sed_quote_subst'
  18892. double_quote_subst='$double_quote_subst'
  18893. delay_variable_subst='$delay_variable_subst'
  18894. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18895. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18896. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  18897. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18898. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18899. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18900. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18901. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18902. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18903. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  18904. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18905. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18906. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18907. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18908. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18909. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18910. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18911. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18912. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18913. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18914. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18915. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18916. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18917. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18918. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18919. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18920. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18921. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18922. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18923. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18924. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18925. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18926. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18927. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18928. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18929. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18930. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18931. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18932. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18933. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18934. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18935. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18936. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18937. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18938. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18939. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18940. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18941. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18942. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18943. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18944. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18945. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18946. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18947. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18948. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18949. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18950. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18951. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  18952. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18953. 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"`'
  18954. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  18955. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18956. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18957. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  18958. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18959. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18960. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18961. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18962. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18963. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18964. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18965. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18966. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18967. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18968. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18969. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18970. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18971. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18972. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18973. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18974. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18975. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18976. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18977. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18978. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18979. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18980. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18981. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18982. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18983. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18984. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18985. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18986. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18987. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18988. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18989. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18990. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18991. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18992. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18993. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18994. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18995. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18996. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18997. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18998. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18999. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19000. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19001. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19002. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19003. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19004. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19005. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19006. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19007. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19008. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19009. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19010. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19011. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19012. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19013. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19014. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19015. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19016. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19017. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19018. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19019. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19020. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19021. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19022. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  19023. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  19024. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19025. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19026. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19027. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19028. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19029. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19030. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19031. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19032. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19033. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19034. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19035. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19036. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19037. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19038. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19039. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19040. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19041. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19042. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19043. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19044. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19045. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19046. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19047. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19048. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19049. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19050. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19051. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19052. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19053. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19054. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19055. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19056. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19057. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19058. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19059. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19060. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19061. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19062. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19063. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19064. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19065. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19066. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19067. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19068. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19069. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19070. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19071. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19072. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19073. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19074. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19075. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19076. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19077. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19078. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19079. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19080. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19081. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19082. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19083. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19084. LTCC='$LTCC'
  19085. LTCFLAGS='$LTCFLAGS'
  19086. compiler='$compiler_DEFAULT'
  19087. # A function that is used when there is no print builtin or printf.
  19088. func_fallback_echo ()
  19089. {
  19090. eval 'cat <<_LTECHO_EOF
  19091. \$1
  19092. _LTECHO_EOF'
  19093. }
  19094. # Quote evaled strings.
  19095. for var in AS \
  19096. DLLTOOL \
  19097. OBJDUMP \
  19098. SHELL \
  19099. ECHO \
  19100. PATH_SEPARATOR \
  19101. SED \
  19102. GREP \
  19103. EGREP \
  19104. FGREP \
  19105. LD \
  19106. NM \
  19107. LN_S \
  19108. lt_SP2NL \
  19109. lt_NL2SP \
  19110. reload_flag \
  19111. deplibs_check_method \
  19112. file_magic_cmd \
  19113. file_magic_glob \
  19114. want_nocaseglob \
  19115. sharedlib_from_linklib_cmd \
  19116. AR \
  19117. AR_FLAGS \
  19118. archiver_list_spec \
  19119. STRIP \
  19120. RANLIB \
  19121. CC \
  19122. CFLAGS \
  19123. compiler \
  19124. lt_cv_sys_global_symbol_pipe \
  19125. lt_cv_sys_global_symbol_to_cdecl \
  19126. lt_cv_sys_global_symbol_to_import \
  19127. lt_cv_sys_global_symbol_to_c_name_address \
  19128. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19129. lt_cv_nm_interface \
  19130. nm_file_list_spec \
  19131. lt_cv_truncate_bin \
  19132. lt_prog_compiler_no_builtin_flag \
  19133. lt_prog_compiler_pic \
  19134. lt_prog_compiler_wl \
  19135. lt_prog_compiler_static \
  19136. lt_cv_prog_compiler_c_o \
  19137. need_locks \
  19138. MANIFEST_TOOL \
  19139. DSYMUTIL \
  19140. NMEDIT \
  19141. LIPO \
  19142. OTOOL \
  19143. OTOOL64 \
  19144. shrext_cmds \
  19145. export_dynamic_flag_spec \
  19146. whole_archive_flag_spec \
  19147. compiler_needs_object \
  19148. with_gnu_ld \
  19149. allow_undefined_flag \
  19150. no_undefined_flag \
  19151. hardcode_libdir_flag_spec \
  19152. hardcode_libdir_separator \
  19153. exclude_expsyms \
  19154. include_expsyms \
  19155. file_list_spec \
  19156. variables_saved_for_relink \
  19157. libname_spec \
  19158. library_names_spec \
  19159. soname_spec \
  19160. install_override_mode \
  19161. finish_eval \
  19162. old_striplib \
  19163. striplib \
  19164. compiler_lib_search_dirs \
  19165. predep_objects \
  19166. postdep_objects \
  19167. predeps \
  19168. postdeps \
  19169. compiler_lib_search_path \
  19170. LD_CXX \
  19171. reload_flag_CXX \
  19172. compiler_CXX \
  19173. lt_prog_compiler_no_builtin_flag_CXX \
  19174. lt_prog_compiler_pic_CXX \
  19175. lt_prog_compiler_wl_CXX \
  19176. lt_prog_compiler_static_CXX \
  19177. lt_cv_prog_compiler_c_o_CXX \
  19178. export_dynamic_flag_spec_CXX \
  19179. whole_archive_flag_spec_CXX \
  19180. compiler_needs_object_CXX \
  19181. with_gnu_ld_CXX \
  19182. allow_undefined_flag_CXX \
  19183. no_undefined_flag_CXX \
  19184. hardcode_libdir_flag_spec_CXX \
  19185. hardcode_libdir_separator_CXX \
  19186. exclude_expsyms_CXX \
  19187. include_expsyms_CXX \
  19188. file_list_spec_CXX \
  19189. compiler_lib_search_dirs_CXX \
  19190. predep_objects_CXX \
  19191. postdep_objects_CXX \
  19192. predeps_CXX \
  19193. postdeps_CXX \
  19194. compiler_lib_search_path_CXX; do
  19195. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19196. *[\\\\\\\`\\"\\\$]*)
  19197. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  19198. ;;
  19199. *)
  19200. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19201. ;;
  19202. esac
  19203. done
  19204. # Double-quote double-evaled strings.
  19205. for var in reload_cmds \
  19206. old_postinstall_cmds \
  19207. old_postuninstall_cmds \
  19208. old_archive_cmds \
  19209. extract_expsyms_cmds \
  19210. old_archive_from_new_cmds \
  19211. old_archive_from_expsyms_cmds \
  19212. archive_cmds \
  19213. archive_expsym_cmds \
  19214. module_cmds \
  19215. module_expsym_cmds \
  19216. export_symbols_cmds \
  19217. prelink_cmds \
  19218. postlink_cmds \
  19219. postinstall_cmds \
  19220. postuninstall_cmds \
  19221. finish_cmds \
  19222. sys_lib_search_path_spec \
  19223. configure_time_dlsearch_path \
  19224. configure_time_lt_sys_library_path \
  19225. reload_cmds_CXX \
  19226. old_archive_cmds_CXX \
  19227. old_archive_from_new_cmds_CXX \
  19228. old_archive_from_expsyms_cmds_CXX \
  19229. archive_cmds_CXX \
  19230. archive_expsym_cmds_CXX \
  19231. module_cmds_CXX \
  19232. module_expsym_cmds_CXX \
  19233. export_symbols_cmds_CXX \
  19234. prelink_cmds_CXX \
  19235. postlink_cmds_CXX; do
  19236. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19237. *[\\\\\\\`\\"\\\$]*)
  19238. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  19239. ;;
  19240. *)
  19241. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19242. ;;
  19243. esac
  19244. done
  19245. ac_aux_dir='$ac_aux_dir'
  19246. # See if we are running on zsh, and set the options that allow our
  19247. # commands through without removal of \ escapes INIT.
  19248. if test -n "\${ZSH_VERSION+set}"; then
  19249. setopt NO_GLOB_SUBST
  19250. fi
  19251. PACKAGE='$PACKAGE'
  19252. VERSION='$VERSION'
  19253. RM='$RM'
  19254. ofile='$ofile'
  19255. _ACEOF
  19256. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19257. # Handling of arguments.
  19258. for ac_config_target in $ac_config_targets
  19259. do
  19260. case $ac_config_target in
  19261. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19262. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19263. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19264. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19265. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19266. "src/libFLAC/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/Makefile" ;;
  19267. "src/libFLAC/flac.pc") CONFIG_FILES="$CONFIG_FILES src/libFLAC/flac.pc" ;;
  19268. "src/libFLAC/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/ia32/Makefile" ;;
  19269. "src/libFLAC/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/Makefile" ;;
  19270. "src/libFLAC/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/private/Makefile" ;;
  19271. "src/libFLAC/include/protected/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/protected/Makefile" ;;
  19272. "src/libFLAC++/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC++/Makefile" ;;
  19273. "src/libFLAC++/flac++.pc") CONFIG_FILES="$CONFIG_FILES src/libFLAC++/flac++.pc" ;;
  19274. "src/flac/Makefile") CONFIG_FILES="$CONFIG_FILES src/flac/Makefile" ;;
  19275. "src/metaflac/Makefile") CONFIG_FILES="$CONFIG_FILES src/metaflac/Makefile" ;;
  19276. "src/plugin_common/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugin_common/Makefile" ;;
  19277. "src/plugin_xmms/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugin_xmms/Makefile" ;;
  19278. "src/share/Makefile") CONFIG_FILES="$CONFIG_FILES src/share/Makefile" ;;
  19279. "src/test_grabbag/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_grabbag/Makefile" ;;
  19280. "src/test_grabbag/cuesheet/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_grabbag/cuesheet/Makefile" ;;
  19281. "src/test_grabbag/picture/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_grabbag/picture/Makefile" ;;
  19282. "src/test_libs_common/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_libs_common/Makefile" ;;
  19283. "src/test_libFLAC/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_libFLAC/Makefile" ;;
  19284. "src/test_libFLAC++/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_libFLAC++/Makefile" ;;
  19285. "src/test_seeking/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_seeking/Makefile" ;;
  19286. "src/test_streams/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_streams/Makefile" ;;
  19287. "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
  19288. "src/utils/flacdiff/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/flacdiff/Makefile" ;;
  19289. "src/utils/flactimer/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/flactimer/Makefile" ;;
  19290. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  19291. "examples/c/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/Makefile" ;;
  19292. "examples/c/decode/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/decode/Makefile" ;;
  19293. "examples/c/decode/file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/decode/file/Makefile" ;;
  19294. "examples/c/encode/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/encode/Makefile" ;;
  19295. "examples/c/encode/file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/encode/file/Makefile" ;;
  19296. "examples/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/Makefile" ;;
  19297. "examples/cpp/decode/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/Makefile" ;;
  19298. "examples/cpp/decode/file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/file/Makefile" ;;
  19299. "examples/cpp/encode/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/Makefile" ;;
  19300. "examples/cpp/encode/file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/file/Makefile" ;;
  19301. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  19302. "include/FLAC/Makefile") CONFIG_FILES="$CONFIG_FILES include/FLAC/Makefile" ;;
  19303. "include/FLAC++/Makefile") CONFIG_FILES="$CONFIG_FILES include/FLAC++/Makefile" ;;
  19304. "include/share/Makefile") CONFIG_FILES="$CONFIG_FILES include/share/Makefile" ;;
  19305. "include/share/grabbag/Makefile") CONFIG_FILES="$CONFIG_FILES include/share/grabbag/Makefile" ;;
  19306. "include/test_libs_common/Makefile") CONFIG_FILES="$CONFIG_FILES include/test_libs_common/Makefile" ;;
  19307. "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
  19308. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19309. "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
  19310. "doc/html/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/images/Makefile" ;;
  19311. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  19312. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  19313. "test/common.sh") CONFIG_FILES="$CONFIG_FILES test/common.sh" ;;
  19314. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19315. "test/cuesheets/Makefile") CONFIG_FILES="$CONFIG_FILES test/cuesheets/Makefile" ;;
  19316. "test/flac-to-flac-metadata-test-files/Makefile") CONFIG_FILES="$CONFIG_FILES test/flac-to-flac-metadata-test-files/Makefile" ;;
  19317. "test/metaflac-test-files/Makefile") CONFIG_FILES="$CONFIG_FILES test/metaflac-test-files/Makefile" ;;
  19318. "test/pictures/Makefile") CONFIG_FILES="$CONFIG_FILES test/pictures/Makefile" ;;
  19319. "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
  19320. "objs/Makefile") CONFIG_FILES="$CONFIG_FILES objs/Makefile" ;;
  19321. "objs/debug/Makefile") CONFIG_FILES="$CONFIG_FILES objs/debug/Makefile" ;;
  19322. "objs/debug/bin/Makefile") CONFIG_FILES="$CONFIG_FILES objs/debug/bin/Makefile" ;;
  19323. "objs/debug/lib/Makefile") CONFIG_FILES="$CONFIG_FILES objs/debug/lib/Makefile" ;;
  19324. "objs/release/Makefile") CONFIG_FILES="$CONFIG_FILES objs/release/Makefile" ;;
  19325. "objs/release/bin/Makefile") CONFIG_FILES="$CONFIG_FILES objs/release/bin/Makefile" ;;
  19326. "objs/release/lib/Makefile") CONFIG_FILES="$CONFIG_FILES objs/release/lib/Makefile" ;;
  19327. "microbench/Makefile") CONFIG_FILES="$CONFIG_FILES microbench/Makefile" ;;
  19328. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19329. esac
  19330. done
  19331. # If the user did not use the arguments to specify the items to instantiate,
  19332. # then the envvar interface is used. Set only those that are not.
  19333. # We use the long form for the default assignment because of an extremely
  19334. # bizarre bug on SunOS 4.1.3.
  19335. if $ac_need_defaults; then
  19336. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19337. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19338. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19339. fi
  19340. # Have a temporary directory for convenience. Make it in the build tree
  19341. # simply because there is no reason against having it here, and in addition,
  19342. # creating and moving files from /tmp can sometimes cause problems.
  19343. # Hook for its removal unless debugging.
  19344. # Note that there is a small window in which the directory will not be cleaned:
  19345. # after its creation but before its name has been assigned to `$tmp'.
  19346. $debug ||
  19347. {
  19348. tmp= ac_tmp=
  19349. trap 'exit_status=$?
  19350. : "${ac_tmp:=$tmp}"
  19351. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19352. ' 0
  19353. trap 'as_fn_exit 1' 1 2 13 15
  19354. }
  19355. # Create a (secure) tmp directory for tmp files.
  19356. {
  19357. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19358. test -d "$tmp"
  19359. } ||
  19360. {
  19361. tmp=./conf$$-$RANDOM
  19362. (umask 077 && mkdir "$tmp")
  19363. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19364. ac_tmp=$tmp
  19365. # Set up the scripts for CONFIG_FILES section.
  19366. # No need to generate them if there are no CONFIG_FILES.
  19367. # This happens for instance with `./config.status config.h'.
  19368. if test -n "$CONFIG_FILES"; then
  19369. ac_cr=`echo X | tr X '\015'`
  19370. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19371. # But we know of no other shell where ac_cr would be empty at this
  19372. # point, so we can use a bashism as a fallback.
  19373. if test "x$ac_cr" = x; then
  19374. eval ac_cr=\$\'\\r\'
  19375. fi
  19376. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19377. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19378. ac_cs_awk_cr='\\r'
  19379. else
  19380. ac_cs_awk_cr=$ac_cr
  19381. fi
  19382. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19383. _ACEOF
  19384. {
  19385. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19386. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19387. echo "_ACEOF"
  19388. } >conf$$subs.sh ||
  19389. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19390. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19391. ac_delim='%!_!# '
  19392. for ac_last_try in false false false false false :; do
  19393. . ./conf$$subs.sh ||
  19394. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19395. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19396. if test $ac_delim_n = $ac_delim_num; then
  19397. break
  19398. elif $ac_last_try; then
  19399. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19400. else
  19401. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19402. fi
  19403. done
  19404. rm -f conf$$subs.sh
  19405. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19406. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19407. _ACEOF
  19408. sed -n '
  19409. h
  19410. s/^/S["/; s/!.*/"]=/
  19411. p
  19412. g
  19413. s/^[^!]*!//
  19414. :repl
  19415. t repl
  19416. s/'"$ac_delim"'$//
  19417. t delim
  19418. :nl
  19419. h
  19420. s/\(.\{148\}\)..*/\1/
  19421. t more1
  19422. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19423. p
  19424. n
  19425. b repl
  19426. :more1
  19427. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19428. p
  19429. g
  19430. s/.\{148\}//
  19431. t nl
  19432. :delim
  19433. h
  19434. s/\(.\{148\}\)..*/\1/
  19435. t more2
  19436. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19437. p
  19438. b
  19439. :more2
  19440. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19441. p
  19442. g
  19443. s/.\{148\}//
  19444. t delim
  19445. ' <conf$$subs.awk | sed '
  19446. /^[^""]/{
  19447. N
  19448. s/\n//
  19449. }
  19450. ' >>$CONFIG_STATUS || ac_write_fail=1
  19451. rm -f conf$$subs.awk
  19452. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19453. _ACAWK
  19454. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19455. for (key in S) S_is_set[key] = 1
  19456. FS = ""
  19457. }
  19458. {
  19459. line = $ 0
  19460. nfields = split(line, field, "@")
  19461. substed = 0
  19462. len = length(field[1])
  19463. for (i = 2; i < nfields; i++) {
  19464. key = field[i]
  19465. keylen = length(key)
  19466. if (S_is_set[key]) {
  19467. value = S[key]
  19468. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19469. len += length(value) + length(field[++i])
  19470. substed = 1
  19471. } else
  19472. len += 1 + keylen
  19473. }
  19474. print line
  19475. }
  19476. _ACAWK
  19477. _ACEOF
  19478. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19479. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19480. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19481. else
  19482. cat
  19483. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19484. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19485. _ACEOF
  19486. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19487. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19488. # trailing colons and then remove the whole line if VPATH becomes empty
  19489. # (actually we leave an empty line to preserve line numbers).
  19490. if test "x$srcdir" = x.; then
  19491. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19492. h
  19493. s///
  19494. s/^/:/
  19495. s/[ ]*$/:/
  19496. s/:\$(srcdir):/:/g
  19497. s/:\${srcdir}:/:/g
  19498. s/:@srcdir@:/:/g
  19499. s/^:*//
  19500. s/:*$//
  19501. x
  19502. s/\(=[ ]*\).*/\1/
  19503. G
  19504. s/\n//
  19505. s/^[^=]*=[ ]*$//
  19506. }'
  19507. fi
  19508. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19509. fi # test -n "$CONFIG_FILES"
  19510. # Set up the scripts for CONFIG_HEADERS section.
  19511. # No need to generate them if there are no CONFIG_HEADERS.
  19512. # This happens for instance with `./config.status Makefile'.
  19513. if test -n "$CONFIG_HEADERS"; then
  19514. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19515. BEGIN {
  19516. _ACEOF
  19517. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19518. # here-document in config.status, that substitutes the proper values into
  19519. # config.h.in to produce config.h.
  19520. # Create a delimiter string that does not exist in confdefs.h, to ease
  19521. # handling of long lines.
  19522. ac_delim='%!_!# '
  19523. for ac_last_try in false false :; do
  19524. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19525. if test -z "$ac_tt"; then
  19526. break
  19527. elif $ac_last_try; then
  19528. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19529. else
  19530. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19531. fi
  19532. done
  19533. # For the awk script, D is an array of macro values keyed by name,
  19534. # likewise P contains macro parameters if any. Preserve backslash
  19535. # newline sequences.
  19536. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19537. sed -n '
  19538. s/.\{148\}/&'"$ac_delim"'/g
  19539. t rset
  19540. :rset
  19541. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19542. t def
  19543. d
  19544. :def
  19545. s/\\$//
  19546. t bsnl
  19547. s/["\\]/\\&/g
  19548. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19549. D["\1"]=" \3"/p
  19550. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19551. d
  19552. :bsnl
  19553. s/["\\]/\\&/g
  19554. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19555. D["\1"]=" \3\\\\\\n"\\/p
  19556. t cont
  19557. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19558. t cont
  19559. d
  19560. :cont
  19561. n
  19562. s/.\{148\}/&'"$ac_delim"'/g
  19563. t clear
  19564. :clear
  19565. s/\\$//
  19566. t bsnlc
  19567. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19568. d
  19569. :bsnlc
  19570. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19571. b cont
  19572. ' <confdefs.h | sed '
  19573. s/'"$ac_delim"'/"\\\
  19574. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19575. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19576. for (key in D) D_is_set[key] = 1
  19577. FS = ""
  19578. }
  19579. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19580. line = \$ 0
  19581. split(line, arg, " ")
  19582. if (arg[1] == "#") {
  19583. defundef = arg[2]
  19584. mac1 = arg[3]
  19585. } else {
  19586. defundef = substr(arg[1], 2)
  19587. mac1 = arg[2]
  19588. }
  19589. split(mac1, mac2, "(") #)
  19590. macro = mac2[1]
  19591. prefix = substr(line, 1, index(line, defundef) - 1)
  19592. if (D_is_set[macro]) {
  19593. # Preserve the white space surrounding the "#".
  19594. print prefix "define", macro P[macro] D[macro]
  19595. next
  19596. } else {
  19597. # Replace #undef with comments. This is necessary, for example,
  19598. # in the case of _POSIX_SOURCE, which is predefined and required
  19599. # on some systems where configure will not decide to define it.
  19600. if (defundef == "undef") {
  19601. print "/*", prefix defundef, macro, "*/"
  19602. next
  19603. }
  19604. }
  19605. }
  19606. { print }
  19607. _ACAWK
  19608. _ACEOF
  19609. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19610. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19611. fi # test -n "$CONFIG_HEADERS"
  19612. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19613. shift
  19614. for ac_tag
  19615. do
  19616. case $ac_tag in
  19617. :[FHLC]) ac_mode=$ac_tag; continue;;
  19618. esac
  19619. case $ac_mode$ac_tag in
  19620. :[FHL]*:*);;
  19621. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19622. :[FH]-) ac_tag=-:-;;
  19623. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19624. esac
  19625. ac_save_IFS=$IFS
  19626. IFS=:
  19627. set x $ac_tag
  19628. IFS=$ac_save_IFS
  19629. shift
  19630. ac_file=$1
  19631. shift
  19632. case $ac_mode in
  19633. :L) ac_source=$1;;
  19634. :[FH])
  19635. ac_file_inputs=
  19636. for ac_f
  19637. do
  19638. case $ac_f in
  19639. -) ac_f="$ac_tmp/stdin";;
  19640. *) # Look for the file first in the build tree, then in the source tree
  19641. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19642. # because $ac_f cannot contain `:'.
  19643. test -f "$ac_f" ||
  19644. case $ac_f in
  19645. [\\/$]*) false;;
  19646. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19647. esac ||
  19648. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19649. esac
  19650. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19651. as_fn_append ac_file_inputs " '$ac_f'"
  19652. done
  19653. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19654. # use $as_me), people would be surprised to read:
  19655. # /* config.h. Generated by config.status. */
  19656. configure_input='Generated from '`
  19657. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19658. `' by configure.'
  19659. if test x"$ac_file" != x-; then
  19660. configure_input="$ac_file. $configure_input"
  19661. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19662. $as_echo "$as_me: creating $ac_file" >&6;}
  19663. fi
  19664. # Neutralize special characters interpreted by sed in replacement strings.
  19665. case $configure_input in #(
  19666. *\&* | *\|* | *\\* )
  19667. ac_sed_conf_input=`$as_echo "$configure_input" |
  19668. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19669. *) ac_sed_conf_input=$configure_input;;
  19670. esac
  19671. case $ac_tag in
  19672. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19673. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19674. esac
  19675. ;;
  19676. esac
  19677. ac_dir=`$as_dirname -- "$ac_file" ||
  19678. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19679. X"$ac_file" : 'X\(//\)[^/]' \| \
  19680. X"$ac_file" : 'X\(//\)$' \| \
  19681. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19682. $as_echo X"$ac_file" |
  19683. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19684. s//\1/
  19685. q
  19686. }
  19687. /^X\(\/\/\)[^/].*/{
  19688. s//\1/
  19689. q
  19690. }
  19691. /^X\(\/\/\)$/{
  19692. s//\1/
  19693. q
  19694. }
  19695. /^X\(\/\).*/{
  19696. s//\1/
  19697. q
  19698. }
  19699. s/.*/./; q'`
  19700. as_dir="$ac_dir"; as_fn_mkdir_p
  19701. ac_builddir=.
  19702. case "$ac_dir" in
  19703. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19704. *)
  19705. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19706. # A ".." for each directory in $ac_dir_suffix.
  19707. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19708. case $ac_top_builddir_sub in
  19709. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19710. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19711. esac ;;
  19712. esac
  19713. ac_abs_top_builddir=$ac_pwd
  19714. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19715. # for backward compatibility:
  19716. ac_top_builddir=$ac_top_build_prefix
  19717. case $srcdir in
  19718. .) # We are building in place.
  19719. ac_srcdir=.
  19720. ac_top_srcdir=$ac_top_builddir_sub
  19721. ac_abs_top_srcdir=$ac_pwd ;;
  19722. [\\/]* | ?:[\\/]* ) # Absolute name.
  19723. ac_srcdir=$srcdir$ac_dir_suffix;
  19724. ac_top_srcdir=$srcdir
  19725. ac_abs_top_srcdir=$srcdir ;;
  19726. *) # Relative name.
  19727. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19728. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19729. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19730. esac
  19731. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19732. case $ac_mode in
  19733. :F)
  19734. #
  19735. # CONFIG_FILE
  19736. #
  19737. case $INSTALL in
  19738. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19739. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19740. esac
  19741. ac_MKDIR_P=$MKDIR_P
  19742. case $MKDIR_P in
  19743. [\\/$]* | ?:[\\/]* ) ;;
  19744. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19745. esac
  19746. _ACEOF
  19747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19748. # If the template does not know about datarootdir, expand it.
  19749. # FIXME: This hack should be removed a few years after 2.60.
  19750. ac_datarootdir_hack=; ac_datarootdir_seen=
  19751. ac_sed_dataroot='
  19752. /datarootdir/ {
  19753. p
  19754. q
  19755. }
  19756. /@datadir@/p
  19757. /@docdir@/p
  19758. /@infodir@/p
  19759. /@localedir@/p
  19760. /@mandir@/p'
  19761. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19762. *datarootdir*) ac_datarootdir_seen=yes;;
  19763. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19765. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19766. _ACEOF
  19767. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19768. ac_datarootdir_hack='
  19769. s&@datadir@&$datadir&g
  19770. s&@docdir@&$docdir&g
  19771. s&@infodir@&$infodir&g
  19772. s&@localedir@&$localedir&g
  19773. s&@mandir@&$mandir&g
  19774. s&\\\${datarootdir}&$datarootdir&g' ;;
  19775. esac
  19776. _ACEOF
  19777. # Neutralize VPATH when `$srcdir' = `.'.
  19778. # Shell code in configure.ac might set extrasub.
  19779. # FIXME: do we really want to maintain this feature?
  19780. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19781. ac_sed_extra="$ac_vpsub
  19782. $extrasub
  19783. _ACEOF
  19784. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19785. :t
  19786. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19787. s|@configure_input@|$ac_sed_conf_input|;t t
  19788. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19789. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19790. s&@srcdir@&$ac_srcdir&;t t
  19791. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19792. s&@top_srcdir@&$ac_top_srcdir&;t t
  19793. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19794. s&@builddir@&$ac_builddir&;t t
  19795. s&@abs_builddir@&$ac_abs_builddir&;t t
  19796. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19797. s&@INSTALL@&$ac_INSTALL&;t t
  19798. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19799. $ac_datarootdir_hack
  19800. "
  19801. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19802. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19803. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19804. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19805. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19806. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19808. which seems to be undefined. Please make sure it is defined" >&5
  19809. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19810. which seems to be undefined. Please make sure it is defined" >&2;}
  19811. rm -f "$ac_tmp/stdin"
  19812. case $ac_file in
  19813. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19814. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19815. esac \
  19816. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19817. ;;
  19818. :H)
  19819. #
  19820. # CONFIG_HEADER
  19821. #
  19822. if test x"$ac_file" != x-; then
  19823. {
  19824. $as_echo "/* $configure_input */" \
  19825. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19826. } >"$ac_tmp/config.h" \
  19827. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19828. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19829. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19830. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19831. else
  19832. rm -f "$ac_file"
  19833. mv "$ac_tmp/config.h" "$ac_file" \
  19834. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19835. fi
  19836. else
  19837. $as_echo "/* $configure_input */" \
  19838. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19839. || as_fn_error $? "could not create -" "$LINENO" 5
  19840. fi
  19841. # Compute "$ac_file"'s index in $config_headers.
  19842. _am_arg="$ac_file"
  19843. _am_stamp_count=1
  19844. for _am_header in $config_headers :; do
  19845. case $_am_header in
  19846. $_am_arg | $_am_arg:* )
  19847. break ;;
  19848. * )
  19849. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19850. esac
  19851. done
  19852. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19853. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19854. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19855. X"$_am_arg" : 'X\(//\)$' \| \
  19856. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19857. $as_echo X"$_am_arg" |
  19858. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19859. s//\1/
  19860. q
  19861. }
  19862. /^X\(\/\/\)[^/].*/{
  19863. s//\1/
  19864. q
  19865. }
  19866. /^X\(\/\/\)$/{
  19867. s//\1/
  19868. q
  19869. }
  19870. /^X\(\/\).*/{
  19871. s//\1/
  19872. q
  19873. }
  19874. s/.*/./; q'`/stamp-h$_am_stamp_count
  19875. ;;
  19876. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19877. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19878. ;;
  19879. esac
  19880. case $ac_file$ac_mode in
  19881. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19882. # Older Autoconf quotes --file arguments for eval, but not when files
  19883. # are listed without --file. Let's play safe and only enable the eval
  19884. # if we detect the quoting.
  19885. case $CONFIG_FILES in
  19886. *\'*) eval set x "$CONFIG_FILES" ;;
  19887. *) set x $CONFIG_FILES ;;
  19888. esac
  19889. shift
  19890. for mf
  19891. do
  19892. # Strip MF so we end up with the name of the file.
  19893. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19894. # Check whether this is an Automake generated Makefile or not.
  19895. # We used to match only the files named 'Makefile.in', but
  19896. # some people rename them; so instead we look at the file content.
  19897. # Grep'ing the first line is not enough: some people post-process
  19898. # each Makefile.in and add a new line on top of each file to say so.
  19899. # Grep'ing the whole file is not good either: AIX grep has a line
  19900. # limit of 2048, but all sed's we know have understand at least 4000.
  19901. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19902. dirpart=`$as_dirname -- "$mf" ||
  19903. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19904. X"$mf" : 'X\(//\)[^/]' \| \
  19905. X"$mf" : 'X\(//\)$' \| \
  19906. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19907. $as_echo X"$mf" |
  19908. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19909. s//\1/
  19910. q
  19911. }
  19912. /^X\(\/\/\)[^/].*/{
  19913. s//\1/
  19914. q
  19915. }
  19916. /^X\(\/\/\)$/{
  19917. s//\1/
  19918. q
  19919. }
  19920. /^X\(\/\).*/{
  19921. s//\1/
  19922. q
  19923. }
  19924. s/.*/./; q'`
  19925. else
  19926. continue
  19927. fi
  19928. # Extract the definition of DEPDIR, am__include, and am__quote
  19929. # from the Makefile without running 'make'.
  19930. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19931. test -z "$DEPDIR" && continue
  19932. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19933. test -z "$am__include" && continue
  19934. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19935. # Find all dependency output files, they are included files with
  19936. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19937. # simplest approach to changing $(DEPDIR) to its actual value in the
  19938. # expansion.
  19939. for file in `sed -n "
  19940. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19941. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  19942. # Make sure the directory exists.
  19943. test -f "$dirpart/$file" && continue
  19944. fdir=`$as_dirname -- "$file" ||
  19945. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19946. X"$file" : 'X\(//\)[^/]' \| \
  19947. X"$file" : 'X\(//\)$' \| \
  19948. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19949. $as_echo X"$file" |
  19950. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19951. s//\1/
  19952. q
  19953. }
  19954. /^X\(\/\/\)[^/].*/{
  19955. s//\1/
  19956. q
  19957. }
  19958. /^X\(\/\/\)$/{
  19959. s//\1/
  19960. q
  19961. }
  19962. /^X\(\/\).*/{
  19963. s//\1/
  19964. q
  19965. }
  19966. s/.*/./; q'`
  19967. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  19968. # echo "creating $dirpart/$file"
  19969. echo '# dummy' > "$dirpart/$file"
  19970. done
  19971. done
  19972. }
  19973. ;;
  19974. "libtool":C)
  19975. # See if we are running on zsh, and set the options that allow our
  19976. # commands through without removal of \ escapes.
  19977. if test -n "${ZSH_VERSION+set}"; then
  19978. setopt NO_GLOB_SUBST
  19979. fi
  19980. cfgfile=${ofile}T
  19981. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19982. $RM "$cfgfile"
  19983. cat <<_LT_EOF >> "$cfgfile"
  19984. #! $SHELL
  19985. # Generated automatically by $as_me ($PACKAGE) $VERSION
  19986. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19987. # Provide generalized library-building support services.
  19988. # Written by Gordon Matzigkeit, 1996
  19989. # Copyright (C) 2014 Free Software Foundation, Inc.
  19990. # This is free software; see the source for copying conditions. There is NO
  19991. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19992. # GNU Libtool is free software; you can redistribute it and/or modify
  19993. # it under the terms of the GNU General Public License as published by
  19994. # the Free Software Foundation; either version 2 of of the License, or
  19995. # (at your option) any later version.
  19996. #
  19997. # As a special exception to the GNU General Public License, if you
  19998. # distribute this file as part of a program or library that is built
  19999. # using GNU Libtool, you may include this file under the same
  20000. # distribution terms that you use for the rest of that program.
  20001. #
  20002. # GNU Libtool is distributed in the hope that it will be useful, but
  20003. # WITHOUT ANY WARRANTY; without even the implied warranty of
  20004. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20005. # GNU General Public License for more details.
  20006. #
  20007. # You should have received a copy of the GNU General Public License
  20008. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  20009. # The names of the tagged configurations supported by this script.
  20010. available_tags='CXX '
  20011. # Configured defaults for sys_lib_dlsearch_path munging.
  20012. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  20013. # ### BEGIN LIBTOOL CONFIG
  20014. # Which release of libtool.m4 was used?
  20015. macro_version=$macro_version
  20016. macro_revision=$macro_revision
  20017. # Assembler program.
  20018. AS=$lt_AS
  20019. # DLL creation program.
  20020. DLLTOOL=$lt_DLLTOOL
  20021. # Object dumper program.
  20022. OBJDUMP=$lt_OBJDUMP
  20023. # Whether or not to build static libraries.
  20024. build_old_libs=$enable_static
  20025. # What type of objects to build.
  20026. pic_mode=$pic_mode
  20027. # Whether or not to build shared libraries.
  20028. build_libtool_libs=$enable_shared
  20029. # Whether or not to optimize for fast installation.
  20030. fast_install=$enable_fast_install
  20031. # Shared archive member basename,for filename based shared library versioning on AIX.
  20032. shared_archive_member_spec=$shared_archive_member_spec
  20033. # Shell to use when invoking shell scripts.
  20034. SHELL=$lt_SHELL
  20035. # An echo program that protects backslashes.
  20036. ECHO=$lt_ECHO
  20037. # The PATH separator for the build system.
  20038. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20039. # The host system.
  20040. host_alias=$host_alias
  20041. host=$host
  20042. host_os=$host_os
  20043. # The build system.
  20044. build_alias=$build_alias
  20045. build=$build
  20046. build_os=$build_os
  20047. # A sed program that does not truncate output.
  20048. SED=$lt_SED
  20049. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20050. Xsed="\$SED -e 1s/^X//"
  20051. # A grep program that handles long lines.
  20052. GREP=$lt_GREP
  20053. # An ERE matcher.
  20054. EGREP=$lt_EGREP
  20055. # A literal string matcher.
  20056. FGREP=$lt_FGREP
  20057. # A BSD- or MS-compatible name lister.
  20058. NM=$lt_NM
  20059. # Whether we need soft or hard links.
  20060. LN_S=$lt_LN_S
  20061. # What is the maximum length of a command?
  20062. max_cmd_len=$max_cmd_len
  20063. # Object file suffix (normally "o").
  20064. objext=$ac_objext
  20065. # Executable file suffix (normally "").
  20066. exeext=$exeext
  20067. # whether the shell understands "unset".
  20068. lt_unset=$lt_unset
  20069. # turn spaces into newlines.
  20070. SP2NL=$lt_lt_SP2NL
  20071. # turn newlines into spaces.
  20072. NL2SP=$lt_lt_NL2SP
  20073. # convert \$build file names to \$host format.
  20074. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20075. # convert \$build files to toolchain format.
  20076. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20077. # Method to check whether dependent libraries are shared objects.
  20078. deplibs_check_method=$lt_deplibs_check_method
  20079. # Command to use when deplibs_check_method = "file_magic".
  20080. file_magic_cmd=$lt_file_magic_cmd
  20081. # How to find potential files when deplibs_check_method = "file_magic".
  20082. file_magic_glob=$lt_file_magic_glob
  20083. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20084. want_nocaseglob=$lt_want_nocaseglob
  20085. # Command to associate shared and link libraries.
  20086. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20087. # The archiver.
  20088. AR=$lt_AR
  20089. # Flags to create an archive.
  20090. AR_FLAGS=$lt_AR_FLAGS
  20091. # How to feed a file listing to the archiver.
  20092. archiver_list_spec=$lt_archiver_list_spec
  20093. # A symbol stripping program.
  20094. STRIP=$lt_STRIP
  20095. # Commands used to install an old-style archive.
  20096. RANLIB=$lt_RANLIB
  20097. old_postinstall_cmds=$lt_old_postinstall_cmds
  20098. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20099. # Whether to use a lock for old archive extraction.
  20100. lock_old_archive_extraction=$lock_old_archive_extraction
  20101. # A C compiler.
  20102. LTCC=$lt_CC
  20103. # LTCC compiler flags.
  20104. LTCFLAGS=$lt_CFLAGS
  20105. # Take the output of nm and produce a listing of raw symbols and C names.
  20106. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20107. # Transform the output of nm in a proper C declaration.
  20108. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20109. # Transform the output of nm into a list of symbols to manually relocate.
  20110. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  20111. # Transform the output of nm in a C name address pair.
  20112. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20113. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20114. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20115. # The name lister interface.
  20116. nm_interface=$lt_lt_cv_nm_interface
  20117. # Specify filename containing input files for \$NM.
  20118. nm_file_list_spec=$lt_nm_file_list_spec
  20119. # The root where to search for dependent libraries,and where our libraries should be installed.
  20120. lt_sysroot=$lt_sysroot
  20121. # Command to truncate a binary pipe.
  20122. lt_truncate_bin=$lt_lt_cv_truncate_bin
  20123. # The name of the directory that contains temporary libtool files.
  20124. objdir=$objdir
  20125. # Used to examine libraries when file_magic_cmd begins with "file".
  20126. MAGIC_CMD=$MAGIC_CMD
  20127. # Must we lock files when doing compilation?
  20128. need_locks=$lt_need_locks
  20129. # Manifest tool.
  20130. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20131. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20132. DSYMUTIL=$lt_DSYMUTIL
  20133. # Tool to change global to local symbols on Mac OS X.
  20134. NMEDIT=$lt_NMEDIT
  20135. # Tool to manipulate fat objects and archives on Mac OS X.
  20136. LIPO=$lt_LIPO
  20137. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20138. OTOOL=$lt_OTOOL
  20139. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20140. OTOOL64=$lt_OTOOL64
  20141. # Old archive suffix (normally "a").
  20142. libext=$libext
  20143. # Shared library suffix (normally ".so").
  20144. shrext_cmds=$lt_shrext_cmds
  20145. # The commands to extract the exported symbol list from a shared archive.
  20146. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20147. # Variables whose values should be saved in libtool wrapper scripts and
  20148. # restored at link time.
  20149. variables_saved_for_relink=$lt_variables_saved_for_relink
  20150. # Do we need the "lib" prefix for modules?
  20151. need_lib_prefix=$need_lib_prefix
  20152. # Do we need a version for libraries?
  20153. need_version=$need_version
  20154. # Library versioning type.
  20155. version_type=$version_type
  20156. # Shared library runtime path variable.
  20157. runpath_var=$runpath_var
  20158. # Shared library path variable.
  20159. shlibpath_var=$shlibpath_var
  20160. # Is shlibpath searched before the hard-coded library search path?
  20161. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20162. # Format of library name prefix.
  20163. libname_spec=$lt_libname_spec
  20164. # List of archive names. First name is the real one, the rest are links.
  20165. # The last name is the one that the linker finds with -lNAME
  20166. library_names_spec=$lt_library_names_spec
  20167. # The coded name of the library, if different from the real name.
  20168. soname_spec=$lt_soname_spec
  20169. # Permission mode override for installation of shared libraries.
  20170. install_override_mode=$lt_install_override_mode
  20171. # Command to use after installation of a shared archive.
  20172. postinstall_cmds=$lt_postinstall_cmds
  20173. # Command to use after uninstallation of a shared archive.
  20174. postuninstall_cmds=$lt_postuninstall_cmds
  20175. # Commands used to finish a libtool library installation in a directory.
  20176. finish_cmds=$lt_finish_cmds
  20177. # As "finish_cmds", except a single script fragment to be evaled but
  20178. # not shown.
  20179. finish_eval=$lt_finish_eval
  20180. # Whether we should hardcode library paths into libraries.
  20181. hardcode_into_libs=$hardcode_into_libs
  20182. # Compile-time system search path for libraries.
  20183. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20184. # Detected run-time system search path for libraries.
  20185. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  20186. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  20187. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  20188. # Whether dlopen is supported.
  20189. dlopen_support=$enable_dlopen
  20190. # Whether dlopen of programs is supported.
  20191. dlopen_self=$enable_dlopen_self
  20192. # Whether dlopen of statically linked programs is supported.
  20193. dlopen_self_static=$enable_dlopen_self_static
  20194. # Commands to strip libraries.
  20195. old_striplib=$lt_old_striplib
  20196. striplib=$lt_striplib
  20197. # The linker used to build libraries.
  20198. LD=$lt_LD
  20199. # How to create reloadable object files.
  20200. reload_flag=$lt_reload_flag
  20201. reload_cmds=$lt_reload_cmds
  20202. # Commands used to build an old-style archive.
  20203. old_archive_cmds=$lt_old_archive_cmds
  20204. # A language specific compiler.
  20205. CC=$lt_compiler
  20206. # Is the compiler the GNU compiler?
  20207. with_gcc=$GCC
  20208. # Compiler flag to turn off builtin functions.
  20209. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20210. # Additional compiler flags for building library objects.
  20211. pic_flag=$lt_lt_prog_compiler_pic
  20212. # How to pass a linker flag through the compiler.
  20213. wl=$lt_lt_prog_compiler_wl
  20214. # Compiler flag to prevent dynamic linking.
  20215. link_static_flag=$lt_lt_prog_compiler_static
  20216. # Does compiler simultaneously support -c and -o options?
  20217. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20218. # Whether or not to add -lc for building shared libraries.
  20219. build_libtool_need_lc=$archive_cmds_need_lc
  20220. # Whether or not to disallow shared libs when runtime libs are static.
  20221. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20222. # Compiler flag to allow reflexive dlopens.
  20223. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20224. # Compiler flag to generate shared objects directly from archives.
  20225. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20226. # Whether the compiler copes with passing no objects directly.
  20227. compiler_needs_object=$lt_compiler_needs_object
  20228. # Create an old-style archive from a shared archive.
  20229. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20230. # Create a temporary old-style archive to link instead of a shared archive.
  20231. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20232. # Commands used to build a shared archive.
  20233. archive_cmds=$lt_archive_cmds
  20234. archive_expsym_cmds=$lt_archive_expsym_cmds
  20235. # Commands used to build a loadable module if different from building
  20236. # a shared archive.
  20237. module_cmds=$lt_module_cmds
  20238. module_expsym_cmds=$lt_module_expsym_cmds
  20239. # Whether we are building with GNU ld or not.
  20240. with_gnu_ld=$lt_with_gnu_ld
  20241. # Flag that allows shared libraries with undefined symbols to be built.
  20242. allow_undefined_flag=$lt_allow_undefined_flag
  20243. # Flag that enforces no undefined symbols.
  20244. no_undefined_flag=$lt_no_undefined_flag
  20245. # Flag to hardcode \$libdir into a binary during linking.
  20246. # This must work even if \$libdir does not exist
  20247. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20248. # Whether we need a single "-rpath" flag with a separated argument.
  20249. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20250. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20251. # DIR into the resulting binary.
  20252. hardcode_direct=$hardcode_direct
  20253. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20254. # DIR into the resulting binary and the resulting library dependency is
  20255. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  20256. # library is relocated.
  20257. hardcode_direct_absolute=$hardcode_direct_absolute
  20258. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20259. # into the resulting binary.
  20260. hardcode_minus_L=$hardcode_minus_L
  20261. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20262. # into the resulting binary.
  20263. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20264. # Set to "yes" if building a shared library automatically hardcodes DIR
  20265. # into the library and all subsequent libraries and executables linked
  20266. # against it.
  20267. hardcode_automatic=$hardcode_automatic
  20268. # Set to yes if linker adds runtime paths of dependent libraries
  20269. # to runtime path list.
  20270. inherit_rpath=$inherit_rpath
  20271. # Whether libtool must link a program against all its dependency libraries.
  20272. link_all_deplibs=$link_all_deplibs
  20273. # Set to "yes" if exported symbols are required.
  20274. always_export_symbols=$always_export_symbols
  20275. # The commands to list exported symbols.
  20276. export_symbols_cmds=$lt_export_symbols_cmds
  20277. # Symbols that should not be listed in the preloaded symbols.
  20278. exclude_expsyms=$lt_exclude_expsyms
  20279. # Symbols that must always be exported.
  20280. include_expsyms=$lt_include_expsyms
  20281. # Commands necessary for linking programs (against libraries) with templates.
  20282. prelink_cmds=$lt_prelink_cmds
  20283. # Commands necessary for finishing linking programs.
  20284. postlink_cmds=$lt_postlink_cmds
  20285. # Specify filename containing input files.
  20286. file_list_spec=$lt_file_list_spec
  20287. # How to hardcode a shared library path into an executable.
  20288. hardcode_action=$hardcode_action
  20289. # The directories searched by this compiler when creating a shared library.
  20290. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20291. # Dependencies to place before and after the objects being linked to
  20292. # create a shared library.
  20293. predep_objects=$lt_predep_objects
  20294. postdep_objects=$lt_postdep_objects
  20295. predeps=$lt_predeps
  20296. postdeps=$lt_postdeps
  20297. # The library search path used internally by the compiler when linking
  20298. # a shared library.
  20299. compiler_lib_search_path=$lt_compiler_lib_search_path
  20300. # ### END LIBTOOL CONFIG
  20301. _LT_EOF
  20302. cat <<'_LT_EOF' >> "$cfgfile"
  20303. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  20304. # func_munge_path_list VARIABLE PATH
  20305. # -----------------------------------
  20306. # VARIABLE is name of variable containing _space_ separated list of
  20307. # directories to be munged by the contents of PATH, which is string
  20308. # having a format:
  20309. # "DIR[:DIR]:"
  20310. # string "DIR[ DIR]" will be prepended to VARIABLE
  20311. # ":DIR[:DIR]"
  20312. # string "DIR[ DIR]" will be appended to VARIABLE
  20313. # "DIRP[:DIRP]::[DIRA:]DIRA"
  20314. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  20315. # "DIRA[ DIRA]" will be appended to VARIABLE
  20316. # "DIR[:DIR]"
  20317. # VARIABLE will be replaced by "DIR[ DIR]"
  20318. func_munge_path_list ()
  20319. {
  20320. case x$2 in
  20321. x)
  20322. ;;
  20323. *:)
  20324. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  20325. ;;
  20326. x:*)
  20327. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  20328. ;;
  20329. *::*)
  20330. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  20331. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  20332. ;;
  20333. *)
  20334. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  20335. ;;
  20336. esac
  20337. }
  20338. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  20339. func_cc_basename ()
  20340. {
  20341. for cc_temp in $*""; do
  20342. case $cc_temp in
  20343. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  20344. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  20345. \-*) ;;
  20346. *) break;;
  20347. esac
  20348. done
  20349. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  20350. }
  20351. # ### END FUNCTIONS SHARED WITH CONFIGURE
  20352. _LT_EOF
  20353. case $host_os in
  20354. aix3*)
  20355. cat <<\_LT_EOF >> "$cfgfile"
  20356. # AIX sometimes has problems with the GCC collect2 program. For some
  20357. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20358. # vanish in a puff of smoke.
  20359. if test set != "${COLLECT_NAMES+set}"; then
  20360. COLLECT_NAMES=
  20361. export COLLECT_NAMES
  20362. fi
  20363. _LT_EOF
  20364. ;;
  20365. esac
  20366. ltmain=$ac_aux_dir/ltmain.sh
  20367. # We use sed instead of cat because bash on DJGPP gets confused if
  20368. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20369. # text mode, it properly converts lines to CR/LF. This bash problem
  20370. # is reportedly fixed, but why not run on old versions too?
  20371. sed '$q' "$ltmain" >> "$cfgfile" \
  20372. || (rm -f "$cfgfile"; exit 1)
  20373. mv -f "$cfgfile" "$ofile" ||
  20374. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20375. chmod +x "$ofile"
  20376. cat <<_LT_EOF >> "$ofile"
  20377. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20378. # The linker used to build libraries.
  20379. LD=$lt_LD_CXX
  20380. # How to create reloadable object files.
  20381. reload_flag=$lt_reload_flag_CXX
  20382. reload_cmds=$lt_reload_cmds_CXX
  20383. # Commands used to build an old-style archive.
  20384. old_archive_cmds=$lt_old_archive_cmds_CXX
  20385. # A language specific compiler.
  20386. CC=$lt_compiler_CXX
  20387. # Is the compiler the GNU compiler?
  20388. with_gcc=$GCC_CXX
  20389. # Compiler flag to turn off builtin functions.
  20390. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20391. # Additional compiler flags for building library objects.
  20392. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20393. # How to pass a linker flag through the compiler.
  20394. wl=$lt_lt_prog_compiler_wl_CXX
  20395. # Compiler flag to prevent dynamic linking.
  20396. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20397. # Does compiler simultaneously support -c and -o options?
  20398. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20399. # Whether or not to add -lc for building shared libraries.
  20400. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20401. # Whether or not to disallow shared libs when runtime libs are static.
  20402. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20403. # Compiler flag to allow reflexive dlopens.
  20404. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20405. # Compiler flag to generate shared objects directly from archives.
  20406. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20407. # Whether the compiler copes with passing no objects directly.
  20408. compiler_needs_object=$lt_compiler_needs_object_CXX
  20409. # Create an old-style archive from a shared archive.
  20410. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20411. # Create a temporary old-style archive to link instead of a shared archive.
  20412. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20413. # Commands used to build a shared archive.
  20414. archive_cmds=$lt_archive_cmds_CXX
  20415. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20416. # Commands used to build a loadable module if different from building
  20417. # a shared archive.
  20418. module_cmds=$lt_module_cmds_CXX
  20419. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20420. # Whether we are building with GNU ld or not.
  20421. with_gnu_ld=$lt_with_gnu_ld_CXX
  20422. # Flag that allows shared libraries with undefined symbols to be built.
  20423. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20424. # Flag that enforces no undefined symbols.
  20425. no_undefined_flag=$lt_no_undefined_flag_CXX
  20426. # Flag to hardcode \$libdir into a binary during linking.
  20427. # This must work even if \$libdir does not exist
  20428. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20429. # Whether we need a single "-rpath" flag with a separated argument.
  20430. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20431. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20432. # DIR into the resulting binary.
  20433. hardcode_direct=$hardcode_direct_CXX
  20434. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20435. # DIR into the resulting binary and the resulting library dependency is
  20436. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  20437. # library is relocated.
  20438. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20439. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20440. # into the resulting binary.
  20441. hardcode_minus_L=$hardcode_minus_L_CXX
  20442. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20443. # into the resulting binary.
  20444. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20445. # Set to "yes" if building a shared library automatically hardcodes DIR
  20446. # into the library and all subsequent libraries and executables linked
  20447. # against it.
  20448. hardcode_automatic=$hardcode_automatic_CXX
  20449. # Set to yes if linker adds runtime paths of dependent libraries
  20450. # to runtime path list.
  20451. inherit_rpath=$inherit_rpath_CXX
  20452. # Whether libtool must link a program against all its dependency libraries.
  20453. link_all_deplibs=$link_all_deplibs_CXX
  20454. # Set to "yes" if exported symbols are required.
  20455. always_export_symbols=$always_export_symbols_CXX
  20456. # The commands to list exported symbols.
  20457. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20458. # Symbols that should not be listed in the preloaded symbols.
  20459. exclude_expsyms=$lt_exclude_expsyms_CXX
  20460. # Symbols that must always be exported.
  20461. include_expsyms=$lt_include_expsyms_CXX
  20462. # Commands necessary for linking programs (against libraries) with templates.
  20463. prelink_cmds=$lt_prelink_cmds_CXX
  20464. # Commands necessary for finishing linking programs.
  20465. postlink_cmds=$lt_postlink_cmds_CXX
  20466. # Specify filename containing input files.
  20467. file_list_spec=$lt_file_list_spec_CXX
  20468. # How to hardcode a shared library path into an executable.
  20469. hardcode_action=$hardcode_action_CXX
  20470. # The directories searched by this compiler when creating a shared library.
  20471. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20472. # Dependencies to place before and after the objects being linked to
  20473. # create a shared library.
  20474. predep_objects=$lt_predep_objects_CXX
  20475. postdep_objects=$lt_postdep_objects_CXX
  20476. predeps=$lt_predeps_CXX
  20477. postdeps=$lt_postdeps_CXX
  20478. # The library search path used internally by the compiler when linking
  20479. # a shared library.
  20480. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20481. # ### END LIBTOOL TAG CONFIG: CXX
  20482. _LT_EOF
  20483. ;;
  20484. esac
  20485. done # for ac_tag
  20486. as_fn_exit 0
  20487. _ACEOF
  20488. ac_clean_files=$ac_clean_files_save
  20489. test $ac_write_fail = 0 ||
  20490. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20491. # configure is writing to config.log, and then calls config.status.
  20492. # config.status does its own redirection, appending to config.log.
  20493. # Unfortunately, on DOS this fails, as config.log is still kept open
  20494. # by configure, so config.status won't be able to write to it; its
  20495. # output is simply discarded. So we exec the FD to /dev/null,
  20496. # effectively closing config.log, so it can be properly (re)opened and
  20497. # appended to by config.status. When coming back to configure, we
  20498. # need to make the FD available again.
  20499. if test "$no_create" != yes; then
  20500. ac_cs_success=:
  20501. ac_config_status_args=
  20502. test "$silent" = yes &&
  20503. ac_config_status_args="$ac_config_status_args --quiet"
  20504. exec 5>/dev/null
  20505. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20506. exec 5>>config.log
  20507. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20508. # would make configure fail if this is the last instruction.
  20509. $ac_cs_success || as_fn_exit 1
  20510. fi
  20511. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20513. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20514. fi
  20515. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  20516. -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
  20517. Configuration summary :
  20518. FLAC version : ........................ ${VERSION}
  20519. Host CPU : ............................ ${host_cpu}
  20520. Host Vendor : ......................... ${host_vendor}
  20521. Host OS : ............................. ${host_os}
  20522. " >&5
  20523. $as_echo "
  20524. -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
  20525. Configuration summary :
  20526. FLAC version : ........................ ${VERSION}
  20527. Host CPU : ............................ ${host_cpu}
  20528. Host Vendor : ......................... ${host_vendor}
  20529. Host OS : ............................. ${host_os}
  20530. " >&6; }
  20531. echo " Compiler is GCC : ..................... ${ac_cv_c_compiler_gnu}"
  20532. if test x$ac_cv_c_compiler_gnu = xyes ; then
  20533. echo " GCC version : ......................... ${GCC_VERSION}"
  20534. fi
  20535. echo " Compiler is Clang : ................... ${xiph_cv_c_compiler_clang}"
  20536. echo " SSE optimizations : ................... ${sse_os}"
  20537. echo " Asm optimizations : ................... ${asm_optimisation}"
  20538. echo " Ogg/FLAC support : .................... ${have_ogg}"
  20539. echo