configure 682 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for gperftools 2.5.
  4. #
  5. # Report bugs to <gperftools@googlegroups.com>.
  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 -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: gperftools@googlegroups.com about your system,
  260. $0: including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='gperftools'
  542. PACKAGE_TARNAME='gperftools'
  543. PACKAGE_VERSION='2.5'
  544. PACKAGE_STRING='gperftools 2.5'
  545. PACKAGE_BUGREPORT='gperftools@googlegroups.com'
  546. PACKAGE_URL=''
  547. ac_unique_file="README"
  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_header_list=
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. LIBOBJS
  588. WITH_STACK_TRACE_FALSE
  589. WITH_STACK_TRACE_TRUE
  590. WITH_HEAP_PROFILER_OR_CHECKER_FALSE
  591. WITH_HEAP_PROFILER_OR_CHECKER_TRUE
  592. WITH_DEBUGALLOC_FALSE
  593. WITH_DEBUGALLOC_TRUE
  594. WITH_HEAP_CHECKER_FALSE
  595. WITH_HEAP_CHECKER_TRUE
  596. WITH_HEAP_PROFILER_FALSE
  597. WITH_HEAP_PROFILER_TRUE
  598. WITH_CPU_PROFILER_FALSE
  599. WITH_CPU_PROFILER_TRUE
  600. OSX_FALSE
  601. OSX_TRUE
  602. MINGW_FALSE
  603. MINGW_TRUE
  604. HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE
  605. HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE
  606. PTHREAD_CFLAGS
  607. PTHREAD_LIBS
  608. PTHREAD_CC
  609. acx_pthread_config
  610. LIBSTDCXX_LA_LINKER_FLAG
  611. NANOSLEEP_LIBS
  612. BUILD_EMERGENCY_MALLOC_FALSE
  613. BUILD_EMERGENCY_MALLOC_TRUE
  614. HAVE_SIZED_DEALLOCATION_FALSE
  615. HAVE_SIZED_DEALLOCATION_TRUE
  616. HAVE_W_NO_UNUSED_RESULT_FALSE
  617. HAVE_W_NO_UNUSED_RESULT_TRUE
  618. I386_FALSE
  619. I386_TRUE
  620. X86_64_AND_NO_FP_BY_DEFAULT_FALSE
  621. X86_64_AND_NO_FP_BY_DEFAULT_TRUE
  622. ENABLE_FRAME_POINTERS_FALSE
  623. ENABLE_FRAME_POINTERS_TRUE
  624. UNWIND_LIBS
  625. ENABLE_STATIC_FALSE
  626. ENABLE_STATIC_TRUE
  627. ac_cv_have_struct_mallinfo
  628. CXXCPP
  629. LT_SYS_LIBRARY_PATH
  630. OTOOL64
  631. OTOOL
  632. LIPO
  633. NMEDIT
  634. DSYMUTIL
  635. MANIFEST_TOOL
  636. RANLIB
  637. ac_ct_AR
  638. AR
  639. DLLTOOL
  640. OBJDUMP
  641. LN_S
  642. NM
  643. ac_ct_DUMPBIN
  644. DUMPBIN
  645. LD
  646. FGREP
  647. EGREP
  648. GREP
  649. SED
  650. LIBTOOL
  651. HAVE_OBJCOPY_WEAKEN_FALSE
  652. HAVE_OBJCOPY_WEAKEN_TRUE
  653. OBJCOPY
  654. GCC_FALSE
  655. GCC_TRUE
  656. CPP
  657. am__fastdepCXX_FALSE
  658. am__fastdepCXX_TRUE
  659. CXXDEPMODE
  660. ac_ct_CXX
  661. CXXFLAGS
  662. CXX
  663. am__fastdepCC_FALSE
  664. am__fastdepCC_TRUE
  665. CCDEPMODE
  666. am__nodep
  667. AMDEPBACKSLASH
  668. AMDEP_FALSE
  669. AMDEP_TRUE
  670. am__quote
  671. am__include
  672. DEPDIR
  673. OBJEXT
  674. EXEEXT
  675. ac_ct_CC
  676. CPPFLAGS
  677. LDFLAGS
  678. CFLAGS
  679. CC
  680. TC_VERSION_PATCH
  681. TC_VERSION_MINOR
  682. TC_VERSION_MAJOR
  683. MAINT
  684. MAINTAINER_MODE_FALSE
  685. MAINTAINER_MODE_TRUE
  686. AM_BACKSLASH
  687. AM_DEFAULT_VERBOSITY
  688. AM_DEFAULT_V
  689. AM_V
  690. am__untar
  691. am__tar
  692. AMTAR
  693. am__leading_dot
  694. SET_MAKE
  695. AWK
  696. mkdir_p
  697. MKDIR_P
  698. INSTALL_STRIP_PROGRAM
  699. STRIP
  700. install_sh
  701. MAKEINFO
  702. AUTOHEADER
  703. AUTOMAKE
  704. AUTOCONF
  705. ACLOCAL
  706. VERSION
  707. PACKAGE
  708. CYGPATH_W
  709. am__isrc
  710. INSTALL_DATA
  711. INSTALL_SCRIPT
  712. INSTALL_PROGRAM
  713. host_os
  714. host_vendor
  715. host_cpu
  716. host
  717. build_os
  718. build_vendor
  719. build_cpu
  720. build
  721. PROFILER_SO_VERSION
  722. TCMALLOC_SO_VERSION
  723. target_alias
  724. host_alias
  725. build_alias
  726. LIBS
  727. ECHO_T
  728. ECHO_N
  729. ECHO_C
  730. DEFS
  731. mandir
  732. localedir
  733. libdir
  734. psdir
  735. pdfdir
  736. dvidir
  737. htmldir
  738. infodir
  739. docdir
  740. oldincludedir
  741. includedir
  742. runstatedir
  743. localstatedir
  744. sharedstatedir
  745. sysconfdir
  746. datadir
  747. datarootdir
  748. libexecdir
  749. sbindir
  750. bindir
  751. program_transform_name
  752. prefix
  753. exec_prefix
  754. PACKAGE_URL
  755. PACKAGE_BUGREPORT
  756. PACKAGE_STRING
  757. PACKAGE_VERSION
  758. PACKAGE_TARNAME
  759. PACKAGE_NAME
  760. PATH_SEPARATOR
  761. SHELL'
  762. ac_subst_files=''
  763. ac_user_opts='
  764. enable_option_checking
  765. enable_silent_rules
  766. enable_maintainer_mode
  767. enable_dependency_tracking
  768. enable_cpu_profiler
  769. enable_heap_profiler
  770. enable_heap_checker
  771. enable_debugalloc
  772. enable_minimal
  773. enable_stacktrace_via_backtrace
  774. enable_libunwind
  775. with_tcmalloc_pagesize
  776. with_tcmalloc_alignment
  777. enable_shared
  778. enable_static
  779. with_pic
  780. enable_fast_install
  781. with_aix_soname
  782. with_gnu_ld
  783. with_sysroot
  784. enable_libtool_lock
  785. enable_frame_pointers
  786. enable_dynamic_sized_delete_support
  787. enable_sized_delete
  788. enable_emergency_malloc
  789. '
  790. ac_precious_vars='build_alias
  791. host_alias
  792. target_alias
  793. CC
  794. CFLAGS
  795. LDFLAGS
  796. LIBS
  797. CPPFLAGS
  798. CXX
  799. CXXFLAGS
  800. CCC
  801. CPP
  802. LT_SYS_LIBRARY_PATH
  803. CXXCPP'
  804. # Initialize some variables set by options.
  805. ac_init_help=
  806. ac_init_version=false
  807. ac_unrecognized_opts=
  808. ac_unrecognized_sep=
  809. # The variables have the same names as the options, with
  810. # dashes changed to underlines.
  811. cache_file=/dev/null
  812. exec_prefix=NONE
  813. no_create=
  814. no_recursion=
  815. prefix=NONE
  816. program_prefix=NONE
  817. program_suffix=NONE
  818. program_transform_name=s,x,x,
  819. silent=
  820. site=
  821. srcdir=
  822. verbose=
  823. x_includes=NONE
  824. x_libraries=NONE
  825. # Installation directory options.
  826. # These are left unexpanded so users can "make install exec_prefix=/foo"
  827. # and all the variables that are supposed to be based on exec_prefix
  828. # by default will actually change.
  829. # Use braces instead of parens because sh, perl, etc. also accept them.
  830. # (The list follows the same order as the GNU Coding Standards.)
  831. bindir='${exec_prefix}/bin'
  832. sbindir='${exec_prefix}/sbin'
  833. libexecdir='${exec_prefix}/libexec'
  834. datarootdir='${prefix}/share'
  835. datadir='${datarootdir}'
  836. sysconfdir='${prefix}/etc'
  837. sharedstatedir='${prefix}/com'
  838. localstatedir='${prefix}/var'
  839. runstatedir='${localstatedir}/run'
  840. includedir='${prefix}/include'
  841. oldincludedir='/usr/include'
  842. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  843. infodir='${datarootdir}/info'
  844. htmldir='${docdir}'
  845. dvidir='${docdir}'
  846. pdfdir='${docdir}'
  847. psdir='${docdir}'
  848. libdir='${exec_prefix}/lib'
  849. localedir='${datarootdir}/locale'
  850. mandir='${datarootdir}/man'
  851. ac_prev=
  852. ac_dashdash=
  853. for ac_option
  854. do
  855. # If the previous option needs an argument, assign it.
  856. if test -n "$ac_prev"; then
  857. eval $ac_prev=\$ac_option
  858. ac_prev=
  859. continue
  860. fi
  861. case $ac_option in
  862. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  863. *=) ac_optarg= ;;
  864. *) ac_optarg=yes ;;
  865. esac
  866. # Accept the important Cygnus configure options, so we can diagnose typos.
  867. case $ac_dashdash$ac_option in
  868. --)
  869. ac_dashdash=yes ;;
  870. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  871. ac_prev=bindir ;;
  872. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  873. bindir=$ac_optarg ;;
  874. -build | --build | --buil | --bui | --bu)
  875. ac_prev=build_alias ;;
  876. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  877. build_alias=$ac_optarg ;;
  878. -cache-file | --cache-file | --cache-fil | --cache-fi \
  879. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  880. ac_prev=cache_file ;;
  881. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  882. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  883. cache_file=$ac_optarg ;;
  884. --config-cache | -C)
  885. cache_file=config.cache ;;
  886. -datadir | --datadir | --datadi | --datad)
  887. ac_prev=datadir ;;
  888. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  889. datadir=$ac_optarg ;;
  890. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  891. | --dataroo | --dataro | --datar)
  892. ac_prev=datarootdir ;;
  893. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  894. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  895. datarootdir=$ac_optarg ;;
  896. -disable-* | --disable-*)
  897. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  898. # Reject names that are not valid shell variable names.
  899. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  900. as_fn_error $? "invalid feature name: $ac_useropt"
  901. ac_useropt_orig=$ac_useropt
  902. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  903. case $ac_user_opts in
  904. *"
  905. "enable_$ac_useropt"
  906. "*) ;;
  907. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  908. ac_unrecognized_sep=', ';;
  909. esac
  910. eval enable_$ac_useropt=no ;;
  911. -docdir | --docdir | --docdi | --doc | --do)
  912. ac_prev=docdir ;;
  913. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  914. docdir=$ac_optarg ;;
  915. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  916. ac_prev=dvidir ;;
  917. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  918. dvidir=$ac_optarg ;;
  919. -enable-* | --enable-*)
  920. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  921. # Reject names that are not valid shell variable names.
  922. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  923. as_fn_error $? "invalid feature name: $ac_useropt"
  924. ac_useropt_orig=$ac_useropt
  925. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  926. case $ac_user_opts in
  927. *"
  928. "enable_$ac_useropt"
  929. "*) ;;
  930. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  931. ac_unrecognized_sep=', ';;
  932. esac
  933. eval enable_$ac_useropt=\$ac_optarg ;;
  934. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  935. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  936. | --exec | --exe | --ex)
  937. ac_prev=exec_prefix ;;
  938. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  939. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  940. | --exec=* | --exe=* | --ex=*)
  941. exec_prefix=$ac_optarg ;;
  942. -gas | --gas | --ga | --g)
  943. # Obsolete; use --with-gas.
  944. with_gas=yes ;;
  945. -help | --help | --hel | --he | -h)
  946. ac_init_help=long ;;
  947. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  948. ac_init_help=recursive ;;
  949. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  950. ac_init_help=short ;;
  951. -host | --host | --hos | --ho)
  952. ac_prev=host_alias ;;
  953. -host=* | --host=* | --hos=* | --ho=*)
  954. host_alias=$ac_optarg ;;
  955. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  956. ac_prev=htmldir ;;
  957. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  958. | --ht=*)
  959. htmldir=$ac_optarg ;;
  960. -includedir | --includedir | --includedi | --included | --include \
  961. | --includ | --inclu | --incl | --inc)
  962. ac_prev=includedir ;;
  963. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  964. | --includ=* | --inclu=* | --incl=* | --inc=*)
  965. includedir=$ac_optarg ;;
  966. -infodir | --infodir | --infodi | --infod | --info | --inf)
  967. ac_prev=infodir ;;
  968. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  969. infodir=$ac_optarg ;;
  970. -libdir | --libdir | --libdi | --libd)
  971. ac_prev=libdir ;;
  972. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  973. libdir=$ac_optarg ;;
  974. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  975. | --libexe | --libex | --libe)
  976. ac_prev=libexecdir ;;
  977. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  978. | --libexe=* | --libex=* | --libe=*)
  979. libexecdir=$ac_optarg ;;
  980. -localedir | --localedir | --localedi | --localed | --locale)
  981. ac_prev=localedir ;;
  982. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  983. localedir=$ac_optarg ;;
  984. -localstatedir | --localstatedir | --localstatedi | --localstated \
  985. | --localstate | --localstat | --localsta | --localst | --locals)
  986. ac_prev=localstatedir ;;
  987. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  988. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  989. localstatedir=$ac_optarg ;;
  990. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  991. ac_prev=mandir ;;
  992. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  993. mandir=$ac_optarg ;;
  994. -nfp | --nfp | --nf)
  995. # Obsolete; use --without-fp.
  996. with_fp=no ;;
  997. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  998. | --no-cr | --no-c | -n)
  999. no_create=yes ;;
  1000. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1001. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1002. no_recursion=yes ;;
  1003. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1004. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1005. | --oldin | --oldi | --old | --ol | --o)
  1006. ac_prev=oldincludedir ;;
  1007. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1008. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1009. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1010. oldincludedir=$ac_optarg ;;
  1011. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1012. ac_prev=prefix ;;
  1013. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1014. prefix=$ac_optarg ;;
  1015. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1016. | --program-pre | --program-pr | --program-p)
  1017. ac_prev=program_prefix ;;
  1018. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1019. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1020. program_prefix=$ac_optarg ;;
  1021. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1022. | --program-suf | --program-su | --program-s)
  1023. ac_prev=program_suffix ;;
  1024. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1025. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1026. program_suffix=$ac_optarg ;;
  1027. -program-transform-name | --program-transform-name \
  1028. | --program-transform-nam | --program-transform-na \
  1029. | --program-transform-n | --program-transform- \
  1030. | --program-transform | --program-transfor \
  1031. | --program-transfo | --program-transf \
  1032. | --program-trans | --program-tran \
  1033. | --progr-tra | --program-tr | --program-t)
  1034. ac_prev=program_transform_name ;;
  1035. -program-transform-name=* | --program-transform-name=* \
  1036. | --program-transform-nam=* | --program-transform-na=* \
  1037. | --program-transform-n=* | --program-transform-=* \
  1038. | --program-transform=* | --program-transfor=* \
  1039. | --program-transfo=* | --program-transf=* \
  1040. | --program-trans=* | --program-tran=* \
  1041. | --progr-tra=* | --program-tr=* | --program-t=*)
  1042. program_transform_name=$ac_optarg ;;
  1043. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1044. ac_prev=pdfdir ;;
  1045. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1046. pdfdir=$ac_optarg ;;
  1047. -psdir | --psdir | --psdi | --psd | --ps)
  1048. ac_prev=psdir ;;
  1049. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1050. psdir=$ac_optarg ;;
  1051. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1052. | -silent | --silent | --silen | --sile | --sil)
  1053. silent=yes ;;
  1054. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1055. | --runstate | --runstat | --runsta | --runst | --runs \
  1056. | --run | --ru | --r)
  1057. ac_prev=runstatedir ;;
  1058. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1059. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1060. | --run=* | --ru=* | --r=*)
  1061. runstatedir=$ac_optarg ;;
  1062. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1063. ac_prev=sbindir ;;
  1064. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1065. | --sbi=* | --sb=*)
  1066. sbindir=$ac_optarg ;;
  1067. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1068. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1069. | --sharedst | --shareds | --shared | --share | --shar \
  1070. | --sha | --sh)
  1071. ac_prev=sharedstatedir ;;
  1072. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1073. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1074. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1075. | --sha=* | --sh=*)
  1076. sharedstatedir=$ac_optarg ;;
  1077. -site | --site | --sit)
  1078. ac_prev=site ;;
  1079. -site=* | --site=* | --sit=*)
  1080. site=$ac_optarg ;;
  1081. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1082. ac_prev=srcdir ;;
  1083. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1084. srcdir=$ac_optarg ;;
  1085. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1086. | --syscon | --sysco | --sysc | --sys | --sy)
  1087. ac_prev=sysconfdir ;;
  1088. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1089. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1090. sysconfdir=$ac_optarg ;;
  1091. -target | --target | --targe | --targ | --tar | --ta | --t)
  1092. ac_prev=target_alias ;;
  1093. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1094. target_alias=$ac_optarg ;;
  1095. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1096. verbose=yes ;;
  1097. -version | --version | --versio | --versi | --vers | -V)
  1098. ac_init_version=: ;;
  1099. -with-* | --with-*)
  1100. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1101. # Reject names that are not valid shell variable names.
  1102. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1103. as_fn_error $? "invalid package name: $ac_useropt"
  1104. ac_useropt_orig=$ac_useropt
  1105. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1106. case $ac_user_opts in
  1107. *"
  1108. "with_$ac_useropt"
  1109. "*) ;;
  1110. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1111. ac_unrecognized_sep=', ';;
  1112. esac
  1113. eval with_$ac_useropt=\$ac_optarg ;;
  1114. -without-* | --without-*)
  1115. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1116. # Reject names that are not valid shell variable names.
  1117. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1118. as_fn_error $? "invalid package name: $ac_useropt"
  1119. ac_useropt_orig=$ac_useropt
  1120. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1121. case $ac_user_opts in
  1122. *"
  1123. "with_$ac_useropt"
  1124. "*) ;;
  1125. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1126. ac_unrecognized_sep=', ';;
  1127. esac
  1128. eval with_$ac_useropt=no ;;
  1129. --x)
  1130. # Obsolete; use --with-x.
  1131. with_x=yes ;;
  1132. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1133. | --x-incl | --x-inc | --x-in | --x-i)
  1134. ac_prev=x_includes ;;
  1135. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1136. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1137. x_includes=$ac_optarg ;;
  1138. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1139. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1140. ac_prev=x_libraries ;;
  1141. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1142. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1143. x_libraries=$ac_optarg ;;
  1144. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1145. Try \`$0 --help' for more information"
  1146. ;;
  1147. *=*)
  1148. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1149. # Reject names that are not valid shell variable names.
  1150. case $ac_envvar in #(
  1151. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1152. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1153. esac
  1154. eval $ac_envvar=\$ac_optarg
  1155. export $ac_envvar ;;
  1156. *)
  1157. # FIXME: should be removed in autoconf 3.0.
  1158. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1159. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1160. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1161. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1162. ;;
  1163. esac
  1164. done
  1165. if test -n "$ac_prev"; then
  1166. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1167. as_fn_error $? "missing argument to $ac_option"
  1168. fi
  1169. if test -n "$ac_unrecognized_opts"; then
  1170. case $enable_option_checking in
  1171. no) ;;
  1172. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1173. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1174. esac
  1175. fi
  1176. # Check all directory arguments for consistency.
  1177. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1178. datadir sysconfdir sharedstatedir localstatedir includedir \
  1179. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1180. libdir localedir mandir runstatedir
  1181. do
  1182. eval ac_val=\$$ac_var
  1183. # Remove trailing slashes.
  1184. case $ac_val in
  1185. */ )
  1186. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1187. eval $ac_var=\$ac_val;;
  1188. esac
  1189. # Be sure to have absolute directory names.
  1190. case $ac_val in
  1191. [\\/$]* | ?:[\\/]* ) continue;;
  1192. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1193. esac
  1194. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1195. done
  1196. # There might be people who depend on the old broken behavior: `$host'
  1197. # used to hold the argument of --host etc.
  1198. # FIXME: To remove some day.
  1199. build=$build_alias
  1200. host=$host_alias
  1201. target=$target_alias
  1202. # FIXME: To remove some day.
  1203. if test "x$host_alias" != x; then
  1204. if test "x$build_alias" = x; then
  1205. cross_compiling=maybe
  1206. elif test "x$build_alias" != "x$host_alias"; then
  1207. cross_compiling=yes
  1208. fi
  1209. fi
  1210. ac_tool_prefix=
  1211. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1212. test "$silent" = yes && exec 6>/dev/null
  1213. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1214. ac_ls_di=`ls -di .` &&
  1215. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1216. as_fn_error $? "working directory cannot be determined"
  1217. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1218. as_fn_error $? "pwd does not report name of working directory"
  1219. # Find the source files, if location was not specified.
  1220. if test -z "$srcdir"; then
  1221. ac_srcdir_defaulted=yes
  1222. # Try the directory containing this script, then the parent directory.
  1223. ac_confdir=`$as_dirname -- "$as_myself" ||
  1224. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1225. X"$as_myself" : 'X\(//\)[^/]' \| \
  1226. X"$as_myself" : 'X\(//\)$' \| \
  1227. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1228. $as_echo X"$as_myself" |
  1229. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1230. s//\1/
  1231. q
  1232. }
  1233. /^X\(\/\/\)[^/].*/{
  1234. s//\1/
  1235. q
  1236. }
  1237. /^X\(\/\/\)$/{
  1238. s//\1/
  1239. q
  1240. }
  1241. /^X\(\/\).*/{
  1242. s//\1/
  1243. q
  1244. }
  1245. s/.*/./; q'`
  1246. srcdir=$ac_confdir
  1247. if test ! -r "$srcdir/$ac_unique_file"; then
  1248. srcdir=..
  1249. fi
  1250. else
  1251. ac_srcdir_defaulted=no
  1252. fi
  1253. if test ! -r "$srcdir/$ac_unique_file"; then
  1254. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1255. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1256. fi
  1257. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1258. ac_abs_confdir=`(
  1259. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1260. pwd)`
  1261. # When building in place, set srcdir=.
  1262. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1263. srcdir=.
  1264. fi
  1265. # Remove unnecessary trailing slashes from srcdir.
  1266. # Double slashes in file names in object file debugging info
  1267. # mess up M-x gdb in Emacs.
  1268. case $srcdir in
  1269. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1270. esac
  1271. for ac_var in $ac_precious_vars; do
  1272. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1273. eval ac_env_${ac_var}_value=\$${ac_var}
  1274. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1275. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1276. done
  1277. #
  1278. # Report the --help message.
  1279. #
  1280. if test "$ac_init_help" = "long"; then
  1281. # Omit some internal or obsolete options to make the list less imposing.
  1282. # This message is too long to be a string in the A/UX 3.1 sh.
  1283. cat <<_ACEOF
  1284. \`configure' configures gperftools 2.5 to adapt to many kinds of systems.
  1285. Usage: $0 [OPTION]... [VAR=VALUE]...
  1286. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1287. VAR=VALUE. See below for descriptions of some of the useful variables.
  1288. Defaults for the options are specified in brackets.
  1289. Configuration:
  1290. -h, --help display this help and exit
  1291. --help=short display options specific to this package
  1292. --help=recursive display the short help of all the included packages
  1293. -V, --version display version information and exit
  1294. -q, --quiet, --silent do not print \`checking ...' messages
  1295. --cache-file=FILE cache test results in FILE [disabled]
  1296. -C, --config-cache alias for \`--cache-file=config.cache'
  1297. -n, --no-create do not create output files
  1298. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1299. Installation directories:
  1300. --prefix=PREFIX install architecture-independent files in PREFIX
  1301. [$ac_default_prefix]
  1302. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1303. [PREFIX]
  1304. By default, \`make install' will install all the files in
  1305. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1306. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1307. for instance \`--prefix=\$HOME'.
  1308. For better control, use the options below.
  1309. Fine tuning of the installation directories:
  1310. --bindir=DIR user executables [EPREFIX/bin]
  1311. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1312. --libexecdir=DIR program executables [EPREFIX/libexec]
  1313. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1314. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1315. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1316. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1317. --libdir=DIR object code libraries [EPREFIX/lib]
  1318. --includedir=DIR C header files [PREFIX/include]
  1319. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1320. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1321. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1322. --infodir=DIR info documentation [DATAROOTDIR/info]
  1323. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1324. --mandir=DIR man documentation [DATAROOTDIR/man]
  1325. --docdir=DIR documentation root [DATAROOTDIR/doc/gperftools]
  1326. --htmldir=DIR html documentation [DOCDIR]
  1327. --dvidir=DIR dvi documentation [DOCDIR]
  1328. --pdfdir=DIR pdf documentation [DOCDIR]
  1329. --psdir=DIR ps documentation [DOCDIR]
  1330. _ACEOF
  1331. cat <<\_ACEOF
  1332. Program names:
  1333. --program-prefix=PREFIX prepend PREFIX to installed program names
  1334. --program-suffix=SUFFIX append SUFFIX to installed program names
  1335. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1336. System types:
  1337. --build=BUILD configure for building on BUILD [guessed]
  1338. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1339. _ACEOF
  1340. fi
  1341. if test -n "$ac_init_help"; then
  1342. case $ac_init_help in
  1343. short | recursive ) echo "Configuration of gperftools 2.5:";;
  1344. esac
  1345. cat <<\_ACEOF
  1346. Optional Features:
  1347. --disable-option-checking ignore unrecognized --enable/--with options
  1348. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1349. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1350. --enable-silent-rules less verbose build output (undo: "make V=1")
  1351. --disable-silent-rules verbose build output (undo: "make V=0")
  1352. --enable-maintainer-mode
  1353. enable make rules and dependencies not useful (and
  1354. sometimes confusing) to the casual installer
  1355. --enable-dependency-tracking
  1356. do not reject slow dependency extractors
  1357. --disable-dependency-tracking
  1358. speeds up one-time build
  1359. --disable-cpu-profiler do not build the cpu profiler
  1360. --disable-heap-profiler do not build the heap profiler
  1361. --disable-heap-checker do not build the heap checker
  1362. --disable-debugalloc do not build versions of libs with debugalloc
  1363. --enable-minimal build only tcmalloc-minimal (and maybe
  1364. tcmalloc-minimal-debug)
  1365. --enable-stacktrace-via-backtrace
  1366. enable use of backtrace() for stacktrace capturing
  1367. (may deadlock)
  1368. --enable-libunwind enable libunwind linking
  1369. --enable-shared[=PKGS] build shared libraries [default=yes]
  1370. --enable-static[=PKGS] build static libraries [default=yes]
  1371. --enable-fast-install[=PKGS]
  1372. optimize for fast installation [default=yes]
  1373. --disable-libtool-lock avoid locking (might break parallel builds)
  1374. --enable-frame-pointers On x86_64 systems, compile with
  1375. -fno-omit-frame-pointer (see INSTALL)
  1376. --enable-dynamic-sized-delete-support
  1377. try to build run-time switch for sized delete
  1378. operator
  1379. --enable-sized-delete build sized delete operator
  1380. --enable-emergency-malloc
  1381. build emergency malloc feature
  1382. Optional Packages:
  1383. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1384. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1385. --with-tcmalloc-pagesize
  1386. Set the tcmalloc internal page size to 8K, 32K or
  1387. 64K
  1388. --with-tcmalloc-alignment
  1389. Set the tcmalloc allocation alignment to 8 or 16
  1390. bytes
  1391. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1392. both]
  1393. --with-aix-soname=aix|svr4|both
  1394. shared library versioning (aka "SONAME") variant to
  1395. provide on AIX, [default=aix].
  1396. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1397. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1398. compiler's sysroot if not specified).
  1399. Some influential environment variables:
  1400. CC C compiler command
  1401. CFLAGS C compiler flags
  1402. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1403. nonstandard directory <lib dir>
  1404. LIBS libraries to pass to the linker, e.g. -l<library>
  1405. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1406. you have headers in a nonstandard directory <include dir>
  1407. CXX C++ compiler command
  1408. CXXFLAGS C++ compiler flags
  1409. CPP C preprocessor
  1410. LT_SYS_LIBRARY_PATH
  1411. User-defined run-time library search path.
  1412. CXXCPP C++ preprocessor
  1413. Use these variables to override the choices made by `configure' or to help
  1414. it to find libraries and programs with nonstandard names/locations.
  1415. Report bugs to <gperftools@googlegroups.com>.
  1416. _ACEOF
  1417. ac_status=$?
  1418. fi
  1419. if test "$ac_init_help" = "recursive"; then
  1420. # If there are subdirs, report their specific --help.
  1421. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1422. test -d "$ac_dir" ||
  1423. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1424. continue
  1425. ac_builddir=.
  1426. case "$ac_dir" in
  1427. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1428. *)
  1429. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1430. # A ".." for each directory in $ac_dir_suffix.
  1431. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1432. case $ac_top_builddir_sub in
  1433. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1434. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1435. esac ;;
  1436. esac
  1437. ac_abs_top_builddir=$ac_pwd
  1438. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1439. # for backward compatibility:
  1440. ac_top_builddir=$ac_top_build_prefix
  1441. case $srcdir in
  1442. .) # We are building in place.
  1443. ac_srcdir=.
  1444. ac_top_srcdir=$ac_top_builddir_sub
  1445. ac_abs_top_srcdir=$ac_pwd ;;
  1446. [\\/]* | ?:[\\/]* ) # Absolute name.
  1447. ac_srcdir=$srcdir$ac_dir_suffix;
  1448. ac_top_srcdir=$srcdir
  1449. ac_abs_top_srcdir=$srcdir ;;
  1450. *) # Relative name.
  1451. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1452. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1453. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1454. esac
  1455. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1456. cd "$ac_dir" || { ac_status=$?; continue; }
  1457. # Check for guested configure.
  1458. if test -f "$ac_srcdir/configure.gnu"; then
  1459. echo &&
  1460. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1461. elif test -f "$ac_srcdir/configure"; then
  1462. echo &&
  1463. $SHELL "$ac_srcdir/configure" --help=recursive
  1464. else
  1465. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1466. fi || ac_status=$?
  1467. cd "$ac_pwd" || { ac_status=$?; break; }
  1468. done
  1469. fi
  1470. test -n "$ac_init_help" && exit $ac_status
  1471. if $ac_init_version; then
  1472. cat <<\_ACEOF
  1473. gperftools configure 2.5
  1474. generated by GNU Autoconf 2.69
  1475. Copyright (C) 2012 Free Software Foundation, Inc.
  1476. This configure script is free software; the Free Software Foundation
  1477. gives unlimited permission to copy, distribute and modify it.
  1478. _ACEOF
  1479. exit
  1480. fi
  1481. ## ------------------------ ##
  1482. ## Autoconf initialization. ##
  1483. ## ------------------------ ##
  1484. # ac_fn_c_try_compile LINENO
  1485. # --------------------------
  1486. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1487. ac_fn_c_try_compile ()
  1488. {
  1489. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1490. rm -f conftest.$ac_objext
  1491. if { { ac_try="$ac_compile"
  1492. case "(($ac_try" in
  1493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1494. *) ac_try_echo=$ac_try;;
  1495. esac
  1496. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1497. $as_echo "$ac_try_echo"; } >&5
  1498. (eval "$ac_compile") 2>conftest.err
  1499. ac_status=$?
  1500. if test -s conftest.err; then
  1501. grep -v '^ *+' conftest.err >conftest.er1
  1502. cat conftest.er1 >&5
  1503. mv -f conftest.er1 conftest.err
  1504. fi
  1505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1506. test $ac_status = 0; } && {
  1507. test -z "$ac_c_werror_flag" ||
  1508. test ! -s conftest.err
  1509. } && test -s conftest.$ac_objext; then :
  1510. ac_retval=0
  1511. else
  1512. $as_echo "$as_me: failed program was:" >&5
  1513. sed 's/^/| /' conftest.$ac_ext >&5
  1514. ac_retval=1
  1515. fi
  1516. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1517. as_fn_set_status $ac_retval
  1518. } # ac_fn_c_try_compile
  1519. # ac_fn_cxx_try_compile LINENO
  1520. # ----------------------------
  1521. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1522. ac_fn_cxx_try_compile ()
  1523. {
  1524. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. rm -f conftest.$ac_objext
  1526. if { { ac_try="$ac_compile"
  1527. case "(($ac_try" in
  1528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1529. *) ac_try_echo=$ac_try;;
  1530. esac
  1531. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1532. $as_echo "$ac_try_echo"; } >&5
  1533. (eval "$ac_compile") 2>conftest.err
  1534. ac_status=$?
  1535. if test -s conftest.err; then
  1536. grep -v '^ *+' conftest.err >conftest.er1
  1537. cat conftest.er1 >&5
  1538. mv -f conftest.er1 conftest.err
  1539. fi
  1540. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1541. test $ac_status = 0; } && {
  1542. test -z "$ac_cxx_werror_flag" ||
  1543. test ! -s conftest.err
  1544. } && test -s conftest.$ac_objext; then :
  1545. ac_retval=0
  1546. else
  1547. $as_echo "$as_me: failed program was:" >&5
  1548. sed 's/^/| /' conftest.$ac_ext >&5
  1549. ac_retval=1
  1550. fi
  1551. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1552. as_fn_set_status $ac_retval
  1553. } # ac_fn_cxx_try_compile
  1554. # ac_fn_c_try_cpp LINENO
  1555. # ----------------------
  1556. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1557. ac_fn_c_try_cpp ()
  1558. {
  1559. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1560. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1561. case "(($ac_try" in
  1562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1563. *) ac_try_echo=$ac_try;;
  1564. esac
  1565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1566. $as_echo "$ac_try_echo"; } >&5
  1567. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1568. ac_status=$?
  1569. if test -s conftest.err; then
  1570. grep -v '^ *+' conftest.err >conftest.er1
  1571. cat conftest.er1 >&5
  1572. mv -f conftest.er1 conftest.err
  1573. fi
  1574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1575. test $ac_status = 0; } > conftest.i && {
  1576. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1577. test ! -s conftest.err
  1578. }; then :
  1579. ac_retval=0
  1580. else
  1581. $as_echo "$as_me: failed program was:" >&5
  1582. sed 's/^/| /' conftest.$ac_ext >&5
  1583. ac_retval=1
  1584. fi
  1585. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1586. as_fn_set_status $ac_retval
  1587. } # ac_fn_c_try_cpp
  1588. # ac_fn_c_try_link LINENO
  1589. # -----------------------
  1590. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1591. ac_fn_c_try_link ()
  1592. {
  1593. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1594. rm -f conftest.$ac_objext conftest$ac_exeext
  1595. if { { ac_try="$ac_link"
  1596. case "(($ac_try" in
  1597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1598. *) ac_try_echo=$ac_try;;
  1599. esac
  1600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1601. $as_echo "$ac_try_echo"; } >&5
  1602. (eval "$ac_link") 2>conftest.err
  1603. ac_status=$?
  1604. if test -s conftest.err; then
  1605. grep -v '^ *+' conftest.err >conftest.er1
  1606. cat conftest.er1 >&5
  1607. mv -f conftest.er1 conftest.err
  1608. fi
  1609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1610. test $ac_status = 0; } && {
  1611. test -z "$ac_c_werror_flag" ||
  1612. test ! -s conftest.err
  1613. } && test -s conftest$ac_exeext && {
  1614. test "$cross_compiling" = yes ||
  1615. test -x conftest$ac_exeext
  1616. }; then :
  1617. ac_retval=0
  1618. else
  1619. $as_echo "$as_me: failed program was:" >&5
  1620. sed 's/^/| /' conftest.$ac_ext >&5
  1621. ac_retval=1
  1622. fi
  1623. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1624. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1625. # interfere with the next link command; also delete a directory that is
  1626. # left behind by Apple's compiler. We do this before executing the actions.
  1627. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1628. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1629. as_fn_set_status $ac_retval
  1630. } # ac_fn_c_try_link
  1631. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1632. # -------------------------------------------------------
  1633. # Tests whether HEADER exists and can be compiled using the include files in
  1634. # INCLUDES, setting the cache variable VAR accordingly.
  1635. ac_fn_c_check_header_compile ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1639. $as_echo_n "checking for $2... " >&6; }
  1640. if eval \${$3+:} false; then :
  1641. $as_echo_n "(cached) " >&6
  1642. else
  1643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1644. /* end confdefs.h. */
  1645. $4
  1646. #include <$2>
  1647. _ACEOF
  1648. if ac_fn_c_try_compile "$LINENO"; then :
  1649. eval "$3=yes"
  1650. else
  1651. eval "$3=no"
  1652. fi
  1653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1654. fi
  1655. eval ac_res=\$$3
  1656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1657. $as_echo "$ac_res" >&6; }
  1658. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1659. } # ac_fn_c_check_header_compile
  1660. # ac_fn_c_try_run LINENO
  1661. # ----------------------
  1662. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1663. # that executables *can* be run.
  1664. ac_fn_c_try_run ()
  1665. {
  1666. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1667. if { { ac_try="$ac_link"
  1668. case "(($ac_try" in
  1669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1670. *) ac_try_echo=$ac_try;;
  1671. esac
  1672. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1673. $as_echo "$ac_try_echo"; } >&5
  1674. (eval "$ac_link") 2>&5
  1675. ac_status=$?
  1676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1677. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1678. { { case "(($ac_try" in
  1679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1680. *) ac_try_echo=$ac_try;;
  1681. esac
  1682. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1683. $as_echo "$ac_try_echo"; } >&5
  1684. (eval "$ac_try") 2>&5
  1685. ac_status=$?
  1686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1687. test $ac_status = 0; }; }; then :
  1688. ac_retval=0
  1689. else
  1690. $as_echo "$as_me: program exited with status $ac_status" >&5
  1691. $as_echo "$as_me: failed program was:" >&5
  1692. sed 's/^/| /' conftest.$ac_ext >&5
  1693. ac_retval=$ac_status
  1694. fi
  1695. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1696. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1697. as_fn_set_status $ac_retval
  1698. } # ac_fn_c_try_run
  1699. # ac_fn_c_check_func LINENO FUNC VAR
  1700. # ----------------------------------
  1701. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1702. ac_fn_c_check_func ()
  1703. {
  1704. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1706. $as_echo_n "checking for $2... " >&6; }
  1707. if eval \${$3+:} false; then :
  1708. $as_echo_n "(cached) " >&6
  1709. else
  1710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1711. /* end confdefs.h. */
  1712. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1713. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1714. #define $2 innocuous_$2
  1715. /* System header to define __stub macros and hopefully few prototypes,
  1716. which can conflict with char $2 (); below.
  1717. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1718. <limits.h> exists even on freestanding compilers. */
  1719. #ifdef __STDC__
  1720. # include <limits.h>
  1721. #else
  1722. # include <assert.h>
  1723. #endif
  1724. #undef $2
  1725. /* Override any GCC internal prototype to avoid an error.
  1726. Use char because int might match the return type of a GCC
  1727. builtin and then its argument prototype would still apply. */
  1728. #ifdef __cplusplus
  1729. extern "C"
  1730. #endif
  1731. char $2 ();
  1732. /* The GNU C library defines this for functions which it implements
  1733. to always fail with ENOSYS. Some functions are actually named
  1734. something starting with __ and the normal name is an alias. */
  1735. #if defined __stub_$2 || defined __stub___$2
  1736. choke me
  1737. #endif
  1738. int
  1739. main ()
  1740. {
  1741. return $2 ();
  1742. ;
  1743. return 0;
  1744. }
  1745. _ACEOF
  1746. if ac_fn_c_try_link "$LINENO"; then :
  1747. eval "$3=yes"
  1748. else
  1749. eval "$3=no"
  1750. fi
  1751. rm -f core conftest.err conftest.$ac_objext \
  1752. conftest$ac_exeext conftest.$ac_ext
  1753. fi
  1754. eval ac_res=\$$3
  1755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1756. $as_echo "$ac_res" >&6; }
  1757. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1758. } # ac_fn_c_check_func
  1759. # ac_fn_cxx_try_cpp LINENO
  1760. # ------------------------
  1761. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1762. ac_fn_cxx_try_cpp ()
  1763. {
  1764. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1765. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1766. case "(($ac_try" in
  1767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1768. *) ac_try_echo=$ac_try;;
  1769. esac
  1770. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1771. $as_echo "$ac_try_echo"; } >&5
  1772. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1773. ac_status=$?
  1774. if test -s conftest.err; then
  1775. grep -v '^ *+' conftest.err >conftest.er1
  1776. cat conftest.er1 >&5
  1777. mv -f conftest.er1 conftest.err
  1778. fi
  1779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1780. test $ac_status = 0; } > conftest.i && {
  1781. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1782. test ! -s conftest.err
  1783. }; then :
  1784. ac_retval=0
  1785. else
  1786. $as_echo "$as_me: failed program was:" >&5
  1787. sed 's/^/| /' conftest.$ac_ext >&5
  1788. ac_retval=1
  1789. fi
  1790. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1791. as_fn_set_status $ac_retval
  1792. } # ac_fn_cxx_try_cpp
  1793. # ac_fn_cxx_try_link LINENO
  1794. # -------------------------
  1795. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1796. ac_fn_cxx_try_link ()
  1797. {
  1798. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1799. rm -f conftest.$ac_objext conftest$ac_exeext
  1800. if { { ac_try="$ac_link"
  1801. case "(($ac_try" in
  1802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1803. *) ac_try_echo=$ac_try;;
  1804. esac
  1805. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1806. $as_echo "$ac_try_echo"; } >&5
  1807. (eval "$ac_link") 2>conftest.err
  1808. ac_status=$?
  1809. if test -s conftest.err; then
  1810. grep -v '^ *+' conftest.err >conftest.er1
  1811. cat conftest.er1 >&5
  1812. mv -f conftest.er1 conftest.err
  1813. fi
  1814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1815. test $ac_status = 0; } && {
  1816. test -z "$ac_cxx_werror_flag" ||
  1817. test ! -s conftest.err
  1818. } && test -s conftest$ac_exeext && {
  1819. test "$cross_compiling" = yes ||
  1820. test -x conftest$ac_exeext
  1821. }; then :
  1822. ac_retval=0
  1823. else
  1824. $as_echo "$as_me: failed program was:" >&5
  1825. sed 's/^/| /' conftest.$ac_ext >&5
  1826. ac_retval=1
  1827. fi
  1828. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1829. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1830. # interfere with the next link command; also delete a directory that is
  1831. # left behind by Apple's compiler. We do this before executing the actions.
  1832. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1833. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1834. as_fn_set_status $ac_retval
  1835. } # ac_fn_cxx_try_link
  1836. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1837. # -------------------------------------------
  1838. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1839. # variable VAR accordingly.
  1840. ac_fn_c_check_type ()
  1841. {
  1842. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1844. $as_echo_n "checking for $2... " >&6; }
  1845. if eval \${$3+:} false; then :
  1846. $as_echo_n "(cached) " >&6
  1847. else
  1848. eval "$3=no"
  1849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1850. /* end confdefs.h. */
  1851. $4
  1852. int
  1853. main ()
  1854. {
  1855. if (sizeof ($2))
  1856. return 0;
  1857. ;
  1858. return 0;
  1859. }
  1860. _ACEOF
  1861. if ac_fn_c_try_compile "$LINENO"; then :
  1862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1863. /* end confdefs.h. */
  1864. $4
  1865. int
  1866. main ()
  1867. {
  1868. if (sizeof (($2)))
  1869. return 0;
  1870. ;
  1871. return 0;
  1872. }
  1873. _ACEOF
  1874. if ac_fn_c_try_compile "$LINENO"; then :
  1875. else
  1876. eval "$3=yes"
  1877. fi
  1878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1879. fi
  1880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1881. fi
  1882. eval ac_res=\$$3
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1884. $as_echo "$ac_res" >&6; }
  1885. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1886. } # ac_fn_c_check_type
  1887. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1888. # -------------------------------------------------------
  1889. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1890. # the include files in INCLUDES and setting the cache variable VAR
  1891. # accordingly.
  1892. ac_fn_c_check_header_mongrel ()
  1893. {
  1894. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1895. if eval \${$3+:} false; then :
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1897. $as_echo_n "checking for $2... " >&6; }
  1898. if eval \${$3+:} false; then :
  1899. $as_echo_n "(cached) " >&6
  1900. fi
  1901. eval ac_res=\$$3
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1903. $as_echo "$ac_res" >&6; }
  1904. else
  1905. # Is the header compilable?
  1906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1907. $as_echo_n "checking $2 usability... " >&6; }
  1908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1909. /* end confdefs.h. */
  1910. $4
  1911. #include <$2>
  1912. _ACEOF
  1913. if ac_fn_c_try_compile "$LINENO"; then :
  1914. ac_header_compiler=yes
  1915. else
  1916. ac_header_compiler=no
  1917. fi
  1918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1920. $as_echo "$ac_header_compiler" >&6; }
  1921. # Is the header present?
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1923. $as_echo_n "checking $2 presence... " >&6; }
  1924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1925. /* end confdefs.h. */
  1926. #include <$2>
  1927. _ACEOF
  1928. if ac_fn_c_try_cpp "$LINENO"; then :
  1929. ac_header_preproc=yes
  1930. else
  1931. ac_header_preproc=no
  1932. fi
  1933. rm -f conftest.err conftest.i conftest.$ac_ext
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1935. $as_echo "$ac_header_preproc" >&6; }
  1936. # So? What about this header?
  1937. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1938. yes:no: )
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1940. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1942. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1943. ;;
  1944. no:yes:* )
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1946. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1948. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1950. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1952. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1954. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1955. ( $as_echo "## ------------------------------------------ ##
  1956. ## Report this to gperftools@googlegroups.com ##
  1957. ## ------------------------------------------ ##"
  1958. ) | sed "s/^/$as_me: WARNING: /" >&2
  1959. ;;
  1960. esac
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1962. $as_echo_n "checking for $2... " >&6; }
  1963. if eval \${$3+:} false; then :
  1964. $as_echo_n "(cached) " >&6
  1965. else
  1966. eval "$3=\$ac_header_compiler"
  1967. fi
  1968. eval ac_res=\$$3
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1970. $as_echo "$ac_res" >&6; }
  1971. fi
  1972. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1973. } # ac_fn_c_check_header_mongrel
  1974. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1975. # ---------------------------------------------
  1976. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1977. # accordingly.
  1978. ac_fn_c_check_decl ()
  1979. {
  1980. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1981. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1982. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1984. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1985. if eval \${$3+:} false; then :
  1986. $as_echo_n "(cached) " >&6
  1987. else
  1988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1989. /* end confdefs.h. */
  1990. $4
  1991. int
  1992. main ()
  1993. {
  1994. #ifndef $as_decl_name
  1995. #ifdef __cplusplus
  1996. (void) $as_decl_use;
  1997. #else
  1998. (void) $as_decl_name;
  1999. #endif
  2000. #endif
  2001. ;
  2002. return 0;
  2003. }
  2004. _ACEOF
  2005. if ac_fn_c_try_compile "$LINENO"; then :
  2006. eval "$3=yes"
  2007. else
  2008. eval "$3=no"
  2009. fi
  2010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2011. fi
  2012. eval ac_res=\$$3
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2014. $as_echo "$ac_res" >&6; }
  2015. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2016. } # ac_fn_c_check_decl
  2017. cat >config.log <<_ACEOF
  2018. This file contains any messages produced by compilers while
  2019. running configure, to aid debugging if configure makes a mistake.
  2020. It was created by gperftools $as_me 2.5, which was
  2021. generated by GNU Autoconf 2.69. Invocation command line was
  2022. $ $0 $@
  2023. _ACEOF
  2024. exec 5>>config.log
  2025. {
  2026. cat <<_ASUNAME
  2027. ## --------- ##
  2028. ## Platform. ##
  2029. ## --------- ##
  2030. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2031. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2032. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2033. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2034. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2035. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2036. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2037. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2038. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2039. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2040. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2041. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2042. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2043. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2044. _ASUNAME
  2045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2046. for as_dir in $PATH
  2047. do
  2048. IFS=$as_save_IFS
  2049. test -z "$as_dir" && as_dir=.
  2050. $as_echo "PATH: $as_dir"
  2051. done
  2052. IFS=$as_save_IFS
  2053. } >&5
  2054. cat >&5 <<_ACEOF
  2055. ## ----------- ##
  2056. ## Core tests. ##
  2057. ## ----------- ##
  2058. _ACEOF
  2059. # Keep a trace of the command line.
  2060. # Strip out --no-create and --no-recursion so they do not pile up.
  2061. # Strip out --silent because we don't want to record it for future runs.
  2062. # Also quote any args containing shell meta-characters.
  2063. # Make two passes to allow for proper duplicate-argument suppression.
  2064. ac_configure_args=
  2065. ac_configure_args0=
  2066. ac_configure_args1=
  2067. ac_must_keep_next=false
  2068. for ac_pass in 1 2
  2069. do
  2070. for ac_arg
  2071. do
  2072. case $ac_arg in
  2073. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2074. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2075. | -silent | --silent | --silen | --sile | --sil)
  2076. continue ;;
  2077. *\'*)
  2078. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2079. esac
  2080. case $ac_pass in
  2081. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2082. 2)
  2083. as_fn_append ac_configure_args1 " '$ac_arg'"
  2084. if test $ac_must_keep_next = true; then
  2085. ac_must_keep_next=false # Got value, back to normal.
  2086. else
  2087. case $ac_arg in
  2088. *=* | --config-cache | -C | -disable-* | --disable-* \
  2089. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2090. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2091. | -with-* | --with-* | -without-* | --without-* | --x)
  2092. case "$ac_configure_args0 " in
  2093. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2094. esac
  2095. ;;
  2096. -* ) ac_must_keep_next=true ;;
  2097. esac
  2098. fi
  2099. as_fn_append ac_configure_args " '$ac_arg'"
  2100. ;;
  2101. esac
  2102. done
  2103. done
  2104. { ac_configure_args0=; unset ac_configure_args0;}
  2105. { ac_configure_args1=; unset ac_configure_args1;}
  2106. # When interrupted or exit'd, cleanup temporary files, and complete
  2107. # config.log. We remove comments because anyway the quotes in there
  2108. # would cause problems or look ugly.
  2109. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2110. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2111. trap 'exit_status=$?
  2112. # Save into config.log some information that might help in debugging.
  2113. {
  2114. echo
  2115. $as_echo "## ---------------- ##
  2116. ## Cache variables. ##
  2117. ## ---------------- ##"
  2118. echo
  2119. # The following way of writing the cache mishandles newlines in values,
  2120. (
  2121. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2122. eval ac_val=\$$ac_var
  2123. case $ac_val in #(
  2124. *${as_nl}*)
  2125. case $ac_var in #(
  2126. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2127. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2128. esac
  2129. case $ac_var in #(
  2130. _ | IFS | as_nl) ;; #(
  2131. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2132. *) { eval $ac_var=; unset $ac_var;} ;;
  2133. esac ;;
  2134. esac
  2135. done
  2136. (set) 2>&1 |
  2137. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2138. *${as_nl}ac_space=\ *)
  2139. sed -n \
  2140. "s/'\''/'\''\\\\'\'''\''/g;
  2141. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2142. ;; #(
  2143. *)
  2144. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2145. ;;
  2146. esac |
  2147. sort
  2148. )
  2149. echo
  2150. $as_echo "## ----------------- ##
  2151. ## Output variables. ##
  2152. ## ----------------- ##"
  2153. echo
  2154. for ac_var in $ac_subst_vars
  2155. do
  2156. eval ac_val=\$$ac_var
  2157. case $ac_val in
  2158. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2159. esac
  2160. $as_echo "$ac_var='\''$ac_val'\''"
  2161. done | sort
  2162. echo
  2163. if test -n "$ac_subst_files"; then
  2164. $as_echo "## ------------------- ##
  2165. ## File substitutions. ##
  2166. ## ------------------- ##"
  2167. echo
  2168. for ac_var in $ac_subst_files
  2169. do
  2170. eval ac_val=\$$ac_var
  2171. case $ac_val in
  2172. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2173. esac
  2174. $as_echo "$ac_var='\''$ac_val'\''"
  2175. done | sort
  2176. echo
  2177. fi
  2178. if test -s confdefs.h; then
  2179. $as_echo "## ----------- ##
  2180. ## confdefs.h. ##
  2181. ## ----------- ##"
  2182. echo
  2183. cat confdefs.h
  2184. echo
  2185. fi
  2186. test "$ac_signal" != 0 &&
  2187. $as_echo "$as_me: caught signal $ac_signal"
  2188. $as_echo "$as_me: exit $exit_status"
  2189. } >&5
  2190. rm -f core *.core core.conftest.* &&
  2191. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2192. exit $exit_status
  2193. ' 0
  2194. for ac_signal in 1 2 13 15; do
  2195. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2196. done
  2197. ac_signal=0
  2198. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2199. rm -f -r conftest* confdefs.h
  2200. $as_echo "/* confdefs.h */" > confdefs.h
  2201. # Predefined preprocessor variables.
  2202. cat >>confdefs.h <<_ACEOF
  2203. #define PACKAGE_NAME "$PACKAGE_NAME"
  2204. _ACEOF
  2205. cat >>confdefs.h <<_ACEOF
  2206. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2207. _ACEOF
  2208. cat >>confdefs.h <<_ACEOF
  2209. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2210. _ACEOF
  2211. cat >>confdefs.h <<_ACEOF
  2212. #define PACKAGE_STRING "$PACKAGE_STRING"
  2213. _ACEOF
  2214. cat >>confdefs.h <<_ACEOF
  2215. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2216. _ACEOF
  2217. cat >>confdefs.h <<_ACEOF
  2218. #define PACKAGE_URL "$PACKAGE_URL"
  2219. _ACEOF
  2220. # Let the site file select an alternate cache file if it wants to.
  2221. # Prefer an explicitly selected file to automatically selected ones.
  2222. ac_site_file1=NONE
  2223. ac_site_file2=NONE
  2224. if test -n "$CONFIG_SITE"; then
  2225. # We do not want a PATH search for config.site.
  2226. case $CONFIG_SITE in #((
  2227. -*) ac_site_file1=./$CONFIG_SITE;;
  2228. */*) ac_site_file1=$CONFIG_SITE;;
  2229. *) ac_site_file1=./$CONFIG_SITE;;
  2230. esac
  2231. elif test "x$prefix" != xNONE; then
  2232. ac_site_file1=$prefix/share/config.site
  2233. ac_site_file2=$prefix/etc/config.site
  2234. else
  2235. ac_site_file1=$ac_default_prefix/share/config.site
  2236. ac_site_file2=$ac_default_prefix/etc/config.site
  2237. fi
  2238. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2239. do
  2240. test "x$ac_site_file" = xNONE && continue
  2241. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2243. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2244. sed 's/^/| /' "$ac_site_file" >&5
  2245. . "$ac_site_file" \
  2246. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2247. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2248. as_fn_error $? "failed to load site script $ac_site_file
  2249. See \`config.log' for more details" "$LINENO" 5; }
  2250. fi
  2251. done
  2252. if test -r "$cache_file"; then
  2253. # Some versions of bash will fail to source /dev/null (special files
  2254. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2255. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2257. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2258. case $cache_file in
  2259. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2260. *) . "./$cache_file";;
  2261. esac
  2262. fi
  2263. else
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2265. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2266. >$cache_file
  2267. fi
  2268. as_fn_append ac_header_list " stdlib.h"
  2269. as_fn_append ac_header_list " unistd.h"
  2270. as_fn_append ac_header_list " sys/param.h"
  2271. # Check that the precious variables saved in the cache have kept the same
  2272. # value.
  2273. ac_cache_corrupted=false
  2274. for ac_var in $ac_precious_vars; do
  2275. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2276. eval ac_new_set=\$ac_env_${ac_var}_set
  2277. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2278. eval ac_new_val=\$ac_env_${ac_var}_value
  2279. case $ac_old_set,$ac_new_set in
  2280. set,)
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2282. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2283. ac_cache_corrupted=: ;;
  2284. ,set)
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2286. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2287. ac_cache_corrupted=: ;;
  2288. ,);;
  2289. *)
  2290. if test "x$ac_old_val" != "x$ac_new_val"; then
  2291. # differences in whitespace do not lead to failure.
  2292. ac_old_val_w=`echo x $ac_old_val`
  2293. ac_new_val_w=`echo x $ac_new_val`
  2294. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2295. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2296. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2297. ac_cache_corrupted=:
  2298. else
  2299. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2300. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2301. eval $ac_var=\$ac_old_val
  2302. fi
  2303. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2304. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2306. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2307. fi;;
  2308. esac
  2309. # Pass precious variables to config.status.
  2310. if test "$ac_new_set" = set; then
  2311. case $ac_new_val in
  2312. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2313. *) ac_arg=$ac_var=$ac_new_val ;;
  2314. esac
  2315. case " $ac_configure_args " in
  2316. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2317. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2318. esac
  2319. fi
  2320. done
  2321. if $ac_cache_corrupted; then
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2323. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2325. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2326. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2327. fi
  2328. ## -------------------- ##
  2329. ## Main body of script. ##
  2330. ## -------------------- ##
  2331. ac_ext=c
  2332. ac_cpp='$CPP $CPPFLAGS'
  2333. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2334. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2335. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2336. # Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
  2337. # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
  2338. TCMALLOC_SO_VERSION=7:0:3
  2339. PROFILER_SO_VERSION=4:8:4
  2340. # The argument here is just something that should be in the current directory
  2341. # (for sanity checking)
  2342. ac_aux_dir=
  2343. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2344. if test -f "$ac_dir/install-sh"; then
  2345. ac_aux_dir=$ac_dir
  2346. ac_install_sh="$ac_aux_dir/install-sh -c"
  2347. break
  2348. elif test -f "$ac_dir/install.sh"; then
  2349. ac_aux_dir=$ac_dir
  2350. ac_install_sh="$ac_aux_dir/install.sh -c"
  2351. break
  2352. elif test -f "$ac_dir/shtool"; then
  2353. ac_aux_dir=$ac_dir
  2354. ac_install_sh="$ac_aux_dir/shtool install -c"
  2355. break
  2356. fi
  2357. done
  2358. if test -z "$ac_aux_dir"; then
  2359. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2360. fi
  2361. # These three variables are undocumented and unsupported,
  2362. # and are intended to be withdrawn in a future Autoconf release.
  2363. # They can cause serious problems if a builder's source tree is in a directory
  2364. # whose full name contains unusual characters.
  2365. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2366. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2367. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2368. # Make sure we can run config.sub.
  2369. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2370. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2372. $as_echo_n "checking build system type... " >&6; }
  2373. if ${ac_cv_build+:} false; then :
  2374. $as_echo_n "(cached) " >&6
  2375. else
  2376. ac_build_alias=$build_alias
  2377. test "x$ac_build_alias" = x &&
  2378. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2379. test "x$ac_build_alias" = x &&
  2380. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2381. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2382. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2383. fi
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2385. $as_echo "$ac_cv_build" >&6; }
  2386. case $ac_cv_build in
  2387. *-*-*) ;;
  2388. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2389. esac
  2390. build=$ac_cv_build
  2391. ac_save_IFS=$IFS; IFS='-'
  2392. set x $ac_cv_build
  2393. shift
  2394. build_cpu=$1
  2395. build_vendor=$2
  2396. shift; shift
  2397. # Remember, the first character of IFS is used to create $*,
  2398. # except with old shells:
  2399. build_os=$*
  2400. IFS=$ac_save_IFS
  2401. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2403. $as_echo_n "checking host system type... " >&6; }
  2404. if ${ac_cv_host+:} false; then :
  2405. $as_echo_n "(cached) " >&6
  2406. else
  2407. if test "x$host_alias" = x; then
  2408. ac_cv_host=$ac_cv_build
  2409. else
  2410. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2411. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2412. fi
  2413. fi
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2415. $as_echo "$ac_cv_host" >&6; }
  2416. case $ac_cv_host in
  2417. *-*-*) ;;
  2418. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2419. esac
  2420. host=$ac_cv_host
  2421. ac_save_IFS=$IFS; IFS='-'
  2422. set x $ac_cv_host
  2423. shift
  2424. host_cpu=$1
  2425. host_vendor=$2
  2426. shift; shift
  2427. # Remember, the first character of IFS is used to create $*,
  2428. # except with old shells:
  2429. host_os=$*
  2430. IFS=$ac_save_IFS
  2431. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2432. am__api_version='1.15'
  2433. # Find a good install program. We prefer a C program (faster),
  2434. # so one script is as good as another. But avoid the broken or
  2435. # incompatible versions:
  2436. # SysV /etc/install, /usr/sbin/install
  2437. # SunOS /usr/etc/install
  2438. # IRIX /sbin/install
  2439. # AIX /bin/install
  2440. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2441. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2442. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2443. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2444. # OS/2's system install, which has a completely different semantic
  2445. # ./install, which can be erroneously created by make from ./install.sh.
  2446. # Reject install programs that cannot install multiple files.
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2448. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2449. if test -z "$INSTALL"; then
  2450. if ${ac_cv_path_install+:} false; then :
  2451. $as_echo_n "(cached) " >&6
  2452. else
  2453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2454. for as_dir in $PATH
  2455. do
  2456. IFS=$as_save_IFS
  2457. test -z "$as_dir" && as_dir=.
  2458. # Account for people who put trailing slashes in PATH elements.
  2459. case $as_dir/ in #((
  2460. ./ | .// | /[cC]/* | \
  2461. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2462. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2463. /usr/ucb/* ) ;;
  2464. *)
  2465. # OSF1 and SCO ODT 3.0 have their own names for install.
  2466. # Don't use installbsd from OSF since it installs stuff as root
  2467. # by default.
  2468. for ac_prog in ginstall scoinst install; do
  2469. for ac_exec_ext in '' $ac_executable_extensions; do
  2470. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2471. if test $ac_prog = install &&
  2472. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2473. # AIX install. It has an incompatible calling convention.
  2474. :
  2475. elif test $ac_prog = install &&
  2476. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2477. # program-specific install script used by HP pwplus--don't use.
  2478. :
  2479. else
  2480. rm -rf conftest.one conftest.two conftest.dir
  2481. echo one > conftest.one
  2482. echo two > conftest.two
  2483. mkdir conftest.dir
  2484. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2485. test -s conftest.one && test -s conftest.two &&
  2486. test -s conftest.dir/conftest.one &&
  2487. test -s conftest.dir/conftest.two
  2488. then
  2489. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2490. break 3
  2491. fi
  2492. fi
  2493. fi
  2494. done
  2495. done
  2496. ;;
  2497. esac
  2498. done
  2499. IFS=$as_save_IFS
  2500. rm -rf conftest.one conftest.two conftest.dir
  2501. fi
  2502. if test "${ac_cv_path_install+set}" = set; then
  2503. INSTALL=$ac_cv_path_install
  2504. else
  2505. # As a last resort, use the slow shell script. Don't cache a
  2506. # value for INSTALL within a source directory, because that will
  2507. # break other packages using the cache if that directory is
  2508. # removed, or if the value is a relative name.
  2509. INSTALL=$ac_install_sh
  2510. fi
  2511. fi
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2513. $as_echo "$INSTALL" >&6; }
  2514. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2515. # It thinks the first close brace ends the variable substitution.
  2516. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2517. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2518. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2520. $as_echo_n "checking whether build environment is sane... " >&6; }
  2521. # Reject unsafe characters in $srcdir or the absolute working directory
  2522. # name. Accept space and tab only in the latter.
  2523. am_lf='
  2524. '
  2525. case `pwd` in
  2526. *[\\\"\#\$\&\'\`$am_lf]*)
  2527. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2528. esac
  2529. case $srcdir in
  2530. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2531. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2532. esac
  2533. # Do 'set' in a subshell so we don't clobber the current shell's
  2534. # arguments. Must try -L first in case configure is actually a
  2535. # symlink; some systems play weird games with the mod time of symlinks
  2536. # (eg FreeBSD returns the mod time of the symlink's containing
  2537. # directory).
  2538. if (
  2539. am_has_slept=no
  2540. for am_try in 1 2; do
  2541. echo "timestamp, slept: $am_has_slept" > conftest.file
  2542. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2543. if test "$*" = "X"; then
  2544. # -L didn't work.
  2545. set X `ls -t "$srcdir/configure" conftest.file`
  2546. fi
  2547. if test "$*" != "X $srcdir/configure conftest.file" \
  2548. && test "$*" != "X conftest.file $srcdir/configure"; then
  2549. # If neither matched, then we have a broken ls. This can happen
  2550. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2551. # broken ls alias from the environment. This has actually
  2552. # happened. Such a system could not be considered "sane".
  2553. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2554. alias in your environment" "$LINENO" 5
  2555. fi
  2556. if test "$2" = conftest.file || test $am_try -eq 2; then
  2557. break
  2558. fi
  2559. # Just in case.
  2560. sleep 1
  2561. am_has_slept=yes
  2562. done
  2563. test "$2" = conftest.file
  2564. )
  2565. then
  2566. # Ok.
  2567. :
  2568. else
  2569. as_fn_error $? "newly created file is older than distributed files!
  2570. Check your system clock" "$LINENO" 5
  2571. fi
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2573. $as_echo "yes" >&6; }
  2574. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2575. # generated files are strictly newer.
  2576. am_sleep_pid=
  2577. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2578. ( sleep 1 ) &
  2579. am_sleep_pid=$!
  2580. fi
  2581. rm -f conftest.file
  2582. test "$program_prefix" != NONE &&
  2583. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2584. # Use a double $ so make ignores it.
  2585. test "$program_suffix" != NONE &&
  2586. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2587. # Double any \ or $.
  2588. # By default was `s,x,x', remove it if useless.
  2589. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2590. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2591. # Expand $ac_aux_dir to an absolute path.
  2592. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2593. if test x"${MISSING+set}" != xset; then
  2594. case $am_aux_dir in
  2595. *\ * | *\ *)
  2596. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2597. *)
  2598. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2599. esac
  2600. fi
  2601. # Use eval to expand $SHELL
  2602. if eval "$MISSING --is-lightweight"; then
  2603. am_missing_run="$MISSING "
  2604. else
  2605. am_missing_run=
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2607. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2608. fi
  2609. if test x"${install_sh+set}" != xset; then
  2610. case $am_aux_dir in
  2611. *\ * | *\ *)
  2612. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2613. *)
  2614. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2615. esac
  2616. fi
  2617. # Installed binaries are usually stripped using 'strip' when the user
  2618. # run "make install-strip". However 'strip' might not be the right
  2619. # tool to use in cross-compilation environments, therefore Automake
  2620. # will honor the 'STRIP' environment variable to overrule this program.
  2621. if test "$cross_compiling" != no; then
  2622. if test -n "$ac_tool_prefix"; then
  2623. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2624. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2626. $as_echo_n "checking for $ac_word... " >&6; }
  2627. if ${ac_cv_prog_STRIP+:} false; then :
  2628. $as_echo_n "(cached) " >&6
  2629. else
  2630. if test -n "$STRIP"; then
  2631. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2632. else
  2633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2634. for as_dir in $PATH
  2635. do
  2636. IFS=$as_save_IFS
  2637. test -z "$as_dir" && as_dir=.
  2638. for ac_exec_ext in '' $ac_executable_extensions; do
  2639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2640. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2642. break 2
  2643. fi
  2644. done
  2645. done
  2646. IFS=$as_save_IFS
  2647. fi
  2648. fi
  2649. STRIP=$ac_cv_prog_STRIP
  2650. if test -n "$STRIP"; then
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2652. $as_echo "$STRIP" >&6; }
  2653. else
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2655. $as_echo "no" >&6; }
  2656. fi
  2657. fi
  2658. if test -z "$ac_cv_prog_STRIP"; then
  2659. ac_ct_STRIP=$STRIP
  2660. # Extract the first word of "strip", so it can be a program name with args.
  2661. set dummy strip; ac_word=$2
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2663. $as_echo_n "checking for $ac_word... " >&6; }
  2664. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2665. $as_echo_n "(cached) " >&6
  2666. else
  2667. if test -n "$ac_ct_STRIP"; then
  2668. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2669. else
  2670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2671. for as_dir in $PATH
  2672. do
  2673. IFS=$as_save_IFS
  2674. test -z "$as_dir" && as_dir=.
  2675. for ac_exec_ext in '' $ac_executable_extensions; do
  2676. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2677. ac_cv_prog_ac_ct_STRIP="strip"
  2678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2679. break 2
  2680. fi
  2681. done
  2682. done
  2683. IFS=$as_save_IFS
  2684. fi
  2685. fi
  2686. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2687. if test -n "$ac_ct_STRIP"; then
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2689. $as_echo "$ac_ct_STRIP" >&6; }
  2690. else
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2692. $as_echo "no" >&6; }
  2693. fi
  2694. if test "x$ac_ct_STRIP" = x; then
  2695. STRIP=":"
  2696. else
  2697. case $cross_compiling:$ac_tool_warned in
  2698. yes:)
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2700. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2701. ac_tool_warned=yes ;;
  2702. esac
  2703. STRIP=$ac_ct_STRIP
  2704. fi
  2705. else
  2706. STRIP="$ac_cv_prog_STRIP"
  2707. fi
  2708. fi
  2709. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2711. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2712. if test -z "$MKDIR_P"; then
  2713. if ${ac_cv_path_mkdir+:} false; then :
  2714. $as_echo_n "(cached) " >&6
  2715. else
  2716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2717. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2718. do
  2719. IFS=$as_save_IFS
  2720. test -z "$as_dir" && as_dir=.
  2721. for ac_prog in mkdir gmkdir; do
  2722. for ac_exec_ext in '' $ac_executable_extensions; do
  2723. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2724. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2725. 'mkdir (GNU coreutils) '* | \
  2726. 'mkdir (coreutils) '* | \
  2727. 'mkdir (fileutils) '4.1*)
  2728. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2729. break 3;;
  2730. esac
  2731. done
  2732. done
  2733. done
  2734. IFS=$as_save_IFS
  2735. fi
  2736. test -d ./--version && rmdir ./--version
  2737. if test "${ac_cv_path_mkdir+set}" = set; then
  2738. MKDIR_P="$ac_cv_path_mkdir -p"
  2739. else
  2740. # As a last resort, use the slow shell script. Don't cache a
  2741. # value for MKDIR_P within a source directory, because that will
  2742. # break other packages using the cache if that directory is
  2743. # removed, or if the value is a relative name.
  2744. MKDIR_P="$ac_install_sh -d"
  2745. fi
  2746. fi
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2748. $as_echo "$MKDIR_P" >&6; }
  2749. for ac_prog in gawk mawk nawk awk
  2750. do
  2751. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2752. set dummy $ac_prog; ac_word=$2
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2754. $as_echo_n "checking for $ac_word... " >&6; }
  2755. if ${ac_cv_prog_AWK+:} false; then :
  2756. $as_echo_n "(cached) " >&6
  2757. else
  2758. if test -n "$AWK"; then
  2759. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2760. else
  2761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2762. for as_dir in $PATH
  2763. do
  2764. IFS=$as_save_IFS
  2765. test -z "$as_dir" && as_dir=.
  2766. for ac_exec_ext in '' $ac_executable_extensions; do
  2767. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2768. ac_cv_prog_AWK="$ac_prog"
  2769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2770. break 2
  2771. fi
  2772. done
  2773. done
  2774. IFS=$as_save_IFS
  2775. fi
  2776. fi
  2777. AWK=$ac_cv_prog_AWK
  2778. if test -n "$AWK"; then
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2780. $as_echo "$AWK" >&6; }
  2781. else
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2783. $as_echo "no" >&6; }
  2784. fi
  2785. test -n "$AWK" && break
  2786. done
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2788. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2789. set x ${MAKE-make}
  2790. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2791. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2792. $as_echo_n "(cached) " >&6
  2793. else
  2794. cat >conftest.make <<\_ACEOF
  2795. SHELL = /bin/sh
  2796. all:
  2797. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2798. _ACEOF
  2799. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2800. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2801. *@@@%%%=?*=@@@%%%*)
  2802. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2803. *)
  2804. eval ac_cv_prog_make_${ac_make}_set=no;;
  2805. esac
  2806. rm -f conftest.make
  2807. fi
  2808. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2810. $as_echo "yes" >&6; }
  2811. SET_MAKE=
  2812. else
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2814. $as_echo "no" >&6; }
  2815. SET_MAKE="MAKE=${MAKE-make}"
  2816. fi
  2817. rm -rf .tst 2>/dev/null
  2818. mkdir .tst 2>/dev/null
  2819. if test -d .tst; then
  2820. am__leading_dot=.
  2821. else
  2822. am__leading_dot=_
  2823. fi
  2824. rmdir .tst 2>/dev/null
  2825. # Check whether --enable-silent-rules was given.
  2826. if test "${enable_silent_rules+set}" = set; then :
  2827. enableval=$enable_silent_rules;
  2828. fi
  2829. case $enable_silent_rules in # (((
  2830. yes) AM_DEFAULT_VERBOSITY=0;;
  2831. no) AM_DEFAULT_VERBOSITY=1;;
  2832. *) AM_DEFAULT_VERBOSITY=1;;
  2833. esac
  2834. am_make=${MAKE-make}
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2836. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2837. if ${am_cv_make_support_nested_variables+:} false; then :
  2838. $as_echo_n "(cached) " >&6
  2839. else
  2840. if $as_echo 'TRUE=$(BAR$(V))
  2841. BAR0=false
  2842. BAR1=true
  2843. V=1
  2844. am__doit:
  2845. @$(TRUE)
  2846. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2847. am_cv_make_support_nested_variables=yes
  2848. else
  2849. am_cv_make_support_nested_variables=no
  2850. fi
  2851. fi
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2853. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2854. if test $am_cv_make_support_nested_variables = yes; then
  2855. AM_V='$(V)'
  2856. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2857. else
  2858. AM_V=$AM_DEFAULT_VERBOSITY
  2859. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2860. fi
  2861. AM_BACKSLASH='\'
  2862. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2863. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2864. # is not polluted with repeated "-I."
  2865. am__isrc=' -I$(srcdir)'
  2866. # test to see if srcdir already configured
  2867. if test -f $srcdir/config.status; then
  2868. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2869. fi
  2870. fi
  2871. # test whether we have cygpath
  2872. if test -z "$CYGPATH_W"; then
  2873. if (cygpath --version) >/dev/null 2>/dev/null; then
  2874. CYGPATH_W='cygpath -w'
  2875. else
  2876. CYGPATH_W=echo
  2877. fi
  2878. fi
  2879. # Define the identity of the package.
  2880. PACKAGE='gperftools'
  2881. VERSION='2.5'
  2882. cat >>confdefs.h <<_ACEOF
  2883. #define PACKAGE "$PACKAGE"
  2884. _ACEOF
  2885. cat >>confdefs.h <<_ACEOF
  2886. #define VERSION "$VERSION"
  2887. _ACEOF
  2888. # Some tools Automake needs.
  2889. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2890. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2891. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2892. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2893. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2894. # For better backward compatibility. To be removed once Automake 1.9.x
  2895. # dies out for good. For more background, see:
  2896. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2897. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2898. mkdir_p='$(MKDIR_P)'
  2899. # We need awk for the "check" target (and possibly the TAP driver). The
  2900. # system "awk" is bad on some platforms.
  2901. # Always define AMTAR for backward compatibility. Yes, it's still used
  2902. # in the wild :-( We should find a proper way to deprecate it ...
  2903. AMTAR='$${TAR-tar}'
  2904. # We'll loop over all known methods to create a tar archive until one works.
  2905. _am_tools='gnutar pax cpio none'
  2906. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2907. # POSIX will say in a future version that running "rm -f" with no argument
  2908. # is OK; and we want to be able to make that assumption in our Makefile
  2909. # recipes. So use an aggressive probe to check that the usage we want is
  2910. # actually supported "in the wild" to an acceptable degree.
  2911. # See automake bug#10828.
  2912. # To make any issue more visible, cause the running configure to be aborted
  2913. # by default if the 'rm' program in use doesn't match our expectations; the
  2914. # user can still override this though.
  2915. if rm -f && rm -fr && rm -rf; then : OK; else
  2916. cat >&2 <<'END'
  2917. Oops!
  2918. Your 'rm' program seems unable to run without file operands specified
  2919. on the command line, even when the '-f' option is present. This is contrary
  2920. to the behaviour of most rm programs out there, and not conforming with
  2921. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2922. Please tell bug-automake@gnu.org about your system, including the value
  2923. of your $PATH and any error possibly output before this message. This
  2924. can help us improve future automake versions.
  2925. END
  2926. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2927. echo 'Configuration will proceed anyway, since you have set the' >&2
  2928. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2929. echo >&2
  2930. else
  2931. cat >&2 <<'END'
  2932. Aborting the configuration process, to ensure you take notice of the issue.
  2933. You can download and install GNU coreutils to get an 'rm' implementation
  2934. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2935. If you want to complete the configuration process using your problematic
  2936. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2937. to "yes", and re-run configure.
  2938. END
  2939. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2940. fi
  2941. fi
  2942. ac_config_headers="$ac_config_headers src/config.h"
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2944. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2945. # Check whether --enable-maintainer-mode was given.
  2946. if test "${enable_maintainer_mode+set}" = set; then :
  2947. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2948. else
  2949. USE_MAINTAINER_MODE=no
  2950. fi
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2952. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2953. if test $USE_MAINTAINER_MODE = yes; then
  2954. MAINTAINER_MODE_TRUE=
  2955. MAINTAINER_MODE_FALSE='#'
  2956. else
  2957. MAINTAINER_MODE_TRUE='#'
  2958. MAINTAINER_MODE_FALSE=
  2959. fi
  2960. MAINT=$MAINTAINER_MODE_TRUE
  2961. # Export the version information (for tc_version and friends)
  2962. TC_VERSION_MAJOR=`expr "$PACKAGE_VERSION" : '\([0-9]*\)'`
  2963. TC_VERSION_MINOR=`expr "$PACKAGE_VERSION" : '[0-9]*\.\([0-9]*\)'`
  2964. TC_VERSION_PATCH=`expr "$PACKAGE_VERSION" : '[0-9]*\.[0-9]*\(.*\)$'`
  2965. # The user can choose not to compile in the heap-profiler, the
  2966. # heap-checker, or the cpu-profiler. There's also the possibility
  2967. # for a 'fully minimal' compile, which leaves out the stacktrace
  2968. # code as well. By default, we include all of these that the
  2969. # target system supports.
  2970. default_enable_cpu_profiler=yes
  2971. default_enable_heap_profiler=yes
  2972. default_enable_heap_checker=yes
  2973. default_enable_debugalloc=yes
  2974. default_enable_minimal=no
  2975. default_tcmalloc_alignment=16
  2976. need_nanosleep=no # Used later, to decide if to run ACX_NANOSLEEP
  2977. case "$host" in
  2978. *-mingw*) default_enable_minimal=yes; default_enable_debugalloc=no;
  2979. need_nanosleep=no;;
  2980. *-cygwin*) default_enable_heap_checker=no; default_enable_cpu_profiler=no;;
  2981. *-freebsd*) default_enable_heap_checker=no;;
  2982. *-darwin*) default_enable_heap_checker=no;;
  2983. esac
  2984. # Currently only backtrace works on s390x.
  2985. DEPDIR="${am__leading_dot}deps"
  2986. ac_config_commands="$ac_config_commands depfiles"
  2987. am_make=${MAKE-make}
  2988. cat > confinc << 'END'
  2989. am__doit:
  2990. @echo this is the am__doit target
  2991. .PHONY: am__doit
  2992. END
  2993. # If we don't find an include directive, just comment out the code.
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2995. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2996. am__include="#"
  2997. am__quote=
  2998. _am_result=none
  2999. # First try GNU make style include.
  3000. echo "include confinc" > confmf
  3001. # Ignore all kinds of additional output from 'make'.
  3002. case `$am_make -s -f confmf 2> /dev/null` in #(
  3003. *the\ am__doit\ target*)
  3004. am__include=include
  3005. am__quote=
  3006. _am_result=GNU
  3007. ;;
  3008. esac
  3009. # Now try BSD make style include.
  3010. if test "$am__include" = "#"; then
  3011. echo '.include "confinc"' > confmf
  3012. case `$am_make -s -f confmf 2> /dev/null` in #(
  3013. *the\ am__doit\ target*)
  3014. am__include=.include
  3015. am__quote="\""
  3016. _am_result=BSD
  3017. ;;
  3018. esac
  3019. fi
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3021. $as_echo "$_am_result" >&6; }
  3022. rm -f confinc confmf
  3023. # Check whether --enable-dependency-tracking was given.
  3024. if test "${enable_dependency_tracking+set}" = set; then :
  3025. enableval=$enable_dependency_tracking;
  3026. fi
  3027. if test "x$enable_dependency_tracking" != xno; then
  3028. am_depcomp="$ac_aux_dir/depcomp"
  3029. AMDEPBACKSLASH='\'
  3030. am__nodep='_no'
  3031. fi
  3032. if test "x$enable_dependency_tracking" != xno; then
  3033. AMDEP_TRUE=
  3034. AMDEP_FALSE='#'
  3035. else
  3036. AMDEP_TRUE='#'
  3037. AMDEP_FALSE=
  3038. fi
  3039. ac_ext=c
  3040. ac_cpp='$CPP $CPPFLAGS'
  3041. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3042. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3044. if test -n "$ac_tool_prefix"; then
  3045. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3046. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3048. $as_echo_n "checking for $ac_word... " >&6; }
  3049. if ${ac_cv_prog_CC+:} false; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. if test -n "$CC"; then
  3053. ac_cv_prog_CC="$CC" # Let the user override the test.
  3054. else
  3055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3056. for as_dir in $PATH
  3057. do
  3058. IFS=$as_save_IFS
  3059. test -z "$as_dir" && as_dir=.
  3060. for ac_exec_ext in '' $ac_executable_extensions; do
  3061. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3062. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3064. break 2
  3065. fi
  3066. done
  3067. done
  3068. IFS=$as_save_IFS
  3069. fi
  3070. fi
  3071. CC=$ac_cv_prog_CC
  3072. if test -n "$CC"; then
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3074. $as_echo "$CC" >&6; }
  3075. else
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3077. $as_echo "no" >&6; }
  3078. fi
  3079. fi
  3080. if test -z "$ac_cv_prog_CC"; then
  3081. ac_ct_CC=$CC
  3082. # Extract the first word of "gcc", so it can be a program name with args.
  3083. set dummy gcc; ac_word=$2
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3085. $as_echo_n "checking for $ac_word... " >&6; }
  3086. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3087. $as_echo_n "(cached) " >&6
  3088. else
  3089. if test -n "$ac_ct_CC"; then
  3090. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3091. else
  3092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3093. for as_dir in $PATH
  3094. do
  3095. IFS=$as_save_IFS
  3096. test -z "$as_dir" && as_dir=.
  3097. for ac_exec_ext in '' $ac_executable_extensions; do
  3098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3099. ac_cv_prog_ac_ct_CC="gcc"
  3100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3101. break 2
  3102. fi
  3103. done
  3104. done
  3105. IFS=$as_save_IFS
  3106. fi
  3107. fi
  3108. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3109. if test -n "$ac_ct_CC"; then
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3111. $as_echo "$ac_ct_CC" >&6; }
  3112. else
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3114. $as_echo "no" >&6; }
  3115. fi
  3116. if test "x$ac_ct_CC" = x; then
  3117. CC=""
  3118. else
  3119. case $cross_compiling:$ac_tool_warned in
  3120. yes:)
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3122. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3123. ac_tool_warned=yes ;;
  3124. esac
  3125. CC=$ac_ct_CC
  3126. fi
  3127. else
  3128. CC="$ac_cv_prog_CC"
  3129. fi
  3130. if test -z "$CC"; then
  3131. if test -n "$ac_tool_prefix"; then
  3132. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3133. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3135. $as_echo_n "checking for $ac_word... " >&6; }
  3136. if ${ac_cv_prog_CC+:} false; then :
  3137. $as_echo_n "(cached) " >&6
  3138. else
  3139. if test -n "$CC"; then
  3140. ac_cv_prog_CC="$CC" # Let the user override the test.
  3141. else
  3142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3143. for as_dir in $PATH
  3144. do
  3145. IFS=$as_save_IFS
  3146. test -z "$as_dir" && as_dir=.
  3147. for ac_exec_ext in '' $ac_executable_extensions; do
  3148. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3149. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3151. break 2
  3152. fi
  3153. done
  3154. done
  3155. IFS=$as_save_IFS
  3156. fi
  3157. fi
  3158. CC=$ac_cv_prog_CC
  3159. if test -n "$CC"; then
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3161. $as_echo "$CC" >&6; }
  3162. else
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3164. $as_echo "no" >&6; }
  3165. fi
  3166. fi
  3167. fi
  3168. if test -z "$CC"; then
  3169. # Extract the first word of "cc", so it can be a program name with args.
  3170. set dummy cc; ac_word=$2
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3172. $as_echo_n "checking for $ac_word... " >&6; }
  3173. if ${ac_cv_prog_CC+:} false; then :
  3174. $as_echo_n "(cached) " >&6
  3175. else
  3176. if test -n "$CC"; then
  3177. ac_cv_prog_CC="$CC" # Let the user override the test.
  3178. else
  3179. ac_prog_rejected=no
  3180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3181. for as_dir in $PATH
  3182. do
  3183. IFS=$as_save_IFS
  3184. test -z "$as_dir" && as_dir=.
  3185. for ac_exec_ext in '' $ac_executable_extensions; do
  3186. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3187. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3188. ac_prog_rejected=yes
  3189. continue
  3190. fi
  3191. ac_cv_prog_CC="cc"
  3192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3193. break 2
  3194. fi
  3195. done
  3196. done
  3197. IFS=$as_save_IFS
  3198. if test $ac_prog_rejected = yes; then
  3199. # We found a bogon in the path, so make sure we never use it.
  3200. set dummy $ac_cv_prog_CC
  3201. shift
  3202. if test $# != 0; then
  3203. # We chose a different compiler from the bogus one.
  3204. # However, it has the same basename, so the bogon will be chosen
  3205. # first if we set CC to just the basename; use the full file name.
  3206. shift
  3207. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3208. fi
  3209. fi
  3210. fi
  3211. fi
  3212. CC=$ac_cv_prog_CC
  3213. if test -n "$CC"; then
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3215. $as_echo "$CC" >&6; }
  3216. else
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3218. $as_echo "no" >&6; }
  3219. fi
  3220. fi
  3221. if test -z "$CC"; then
  3222. if test -n "$ac_tool_prefix"; then
  3223. for ac_prog in cl.exe
  3224. do
  3225. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3226. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3228. $as_echo_n "checking for $ac_word... " >&6; }
  3229. if ${ac_cv_prog_CC+:} false; then :
  3230. $as_echo_n "(cached) " >&6
  3231. else
  3232. if test -n "$CC"; then
  3233. ac_cv_prog_CC="$CC" # Let the user override the test.
  3234. else
  3235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3236. for as_dir in $PATH
  3237. do
  3238. IFS=$as_save_IFS
  3239. test -z "$as_dir" && as_dir=.
  3240. for ac_exec_ext in '' $ac_executable_extensions; do
  3241. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3242. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3244. break 2
  3245. fi
  3246. done
  3247. done
  3248. IFS=$as_save_IFS
  3249. fi
  3250. fi
  3251. CC=$ac_cv_prog_CC
  3252. if test -n "$CC"; then
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3254. $as_echo "$CC" >&6; }
  3255. else
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3257. $as_echo "no" >&6; }
  3258. fi
  3259. test -n "$CC" && break
  3260. done
  3261. fi
  3262. if test -z "$CC"; then
  3263. ac_ct_CC=$CC
  3264. for ac_prog in cl.exe
  3265. do
  3266. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3267. set dummy $ac_prog; ac_word=$2
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3269. $as_echo_n "checking for $ac_word... " >&6; }
  3270. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3271. $as_echo_n "(cached) " >&6
  3272. else
  3273. if test -n "$ac_ct_CC"; then
  3274. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3275. else
  3276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3277. for as_dir in $PATH
  3278. do
  3279. IFS=$as_save_IFS
  3280. test -z "$as_dir" && as_dir=.
  3281. for ac_exec_ext in '' $ac_executable_extensions; do
  3282. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3283. ac_cv_prog_ac_ct_CC="$ac_prog"
  3284. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3285. break 2
  3286. fi
  3287. done
  3288. done
  3289. IFS=$as_save_IFS
  3290. fi
  3291. fi
  3292. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3293. if test -n "$ac_ct_CC"; then
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3295. $as_echo "$ac_ct_CC" >&6; }
  3296. else
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3298. $as_echo "no" >&6; }
  3299. fi
  3300. test -n "$ac_ct_CC" && break
  3301. done
  3302. if test "x$ac_ct_CC" = x; then
  3303. CC=""
  3304. else
  3305. case $cross_compiling:$ac_tool_warned in
  3306. yes:)
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3308. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3309. ac_tool_warned=yes ;;
  3310. esac
  3311. CC=$ac_ct_CC
  3312. fi
  3313. fi
  3314. fi
  3315. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3316. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3317. as_fn_error $? "no acceptable C compiler found in \$PATH
  3318. See \`config.log' for more details" "$LINENO" 5; }
  3319. # Provide some information about the compiler.
  3320. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3321. set X $ac_compile
  3322. ac_compiler=$2
  3323. for ac_option in --version -v -V -qversion; do
  3324. { { ac_try="$ac_compiler $ac_option >&5"
  3325. case "(($ac_try" in
  3326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3327. *) ac_try_echo=$ac_try;;
  3328. esac
  3329. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3330. $as_echo "$ac_try_echo"; } >&5
  3331. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3332. ac_status=$?
  3333. if test -s conftest.err; then
  3334. sed '10a\
  3335. ... rest of stderr output deleted ...
  3336. 10q' conftest.err >conftest.er1
  3337. cat conftest.er1 >&5
  3338. fi
  3339. rm -f conftest.er1 conftest.err
  3340. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3341. test $ac_status = 0; }
  3342. done
  3343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3344. /* end confdefs.h. */
  3345. int
  3346. main ()
  3347. {
  3348. ;
  3349. return 0;
  3350. }
  3351. _ACEOF
  3352. ac_clean_files_save=$ac_clean_files
  3353. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3354. # Try to create an executable without -o first, disregard a.out.
  3355. # It will help us diagnose broken compilers, and finding out an intuition
  3356. # of exeext.
  3357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3358. $as_echo_n "checking whether the C compiler works... " >&6; }
  3359. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3360. # The possible output files:
  3361. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3362. ac_rmfiles=
  3363. for ac_file in $ac_files
  3364. do
  3365. case $ac_file in
  3366. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3367. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3368. esac
  3369. done
  3370. rm -f $ac_rmfiles
  3371. if { { ac_try="$ac_link_default"
  3372. case "(($ac_try" in
  3373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3374. *) ac_try_echo=$ac_try;;
  3375. esac
  3376. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3377. $as_echo "$ac_try_echo"; } >&5
  3378. (eval "$ac_link_default") 2>&5
  3379. ac_status=$?
  3380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3381. test $ac_status = 0; }; then :
  3382. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3383. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3384. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3385. # so that the user can short-circuit this test for compilers unknown to
  3386. # Autoconf.
  3387. for ac_file in $ac_files ''
  3388. do
  3389. test -f "$ac_file" || continue
  3390. case $ac_file in
  3391. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3392. ;;
  3393. [ab].out )
  3394. # We found the default executable, but exeext='' is most
  3395. # certainly right.
  3396. break;;
  3397. *.* )
  3398. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3399. then :; else
  3400. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3401. fi
  3402. # We set ac_cv_exeext here because the later test for it is not
  3403. # safe: cross compilers may not add the suffix if given an `-o'
  3404. # argument, so we may need to know it at that point already.
  3405. # Even if this section looks crufty: it has the advantage of
  3406. # actually working.
  3407. break;;
  3408. * )
  3409. break;;
  3410. esac
  3411. done
  3412. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3413. else
  3414. ac_file=''
  3415. fi
  3416. if test -z "$ac_file"; then :
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3418. $as_echo "no" >&6; }
  3419. $as_echo "$as_me: failed program was:" >&5
  3420. sed 's/^/| /' conftest.$ac_ext >&5
  3421. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3422. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3423. as_fn_error 77 "C compiler cannot create executables
  3424. See \`config.log' for more details" "$LINENO" 5; }
  3425. else
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3427. $as_echo "yes" >&6; }
  3428. fi
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3430. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3432. $as_echo "$ac_file" >&6; }
  3433. ac_exeext=$ac_cv_exeext
  3434. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3435. ac_clean_files=$ac_clean_files_save
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3437. $as_echo_n "checking for suffix of executables... " >&6; }
  3438. if { { ac_try="$ac_link"
  3439. case "(($ac_try" in
  3440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3441. *) ac_try_echo=$ac_try;;
  3442. esac
  3443. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3444. $as_echo "$ac_try_echo"; } >&5
  3445. (eval "$ac_link") 2>&5
  3446. ac_status=$?
  3447. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3448. test $ac_status = 0; }; then :
  3449. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3450. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3451. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3452. # `rm'.
  3453. for ac_file in conftest.exe conftest conftest.*; do
  3454. test -f "$ac_file" || continue
  3455. case $ac_file in
  3456. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3457. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3458. break;;
  3459. * ) break;;
  3460. esac
  3461. done
  3462. else
  3463. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3464. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3465. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3466. See \`config.log' for more details" "$LINENO" 5; }
  3467. fi
  3468. rm -f conftest conftest$ac_cv_exeext
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3470. $as_echo "$ac_cv_exeext" >&6; }
  3471. rm -f conftest.$ac_ext
  3472. EXEEXT=$ac_cv_exeext
  3473. ac_exeext=$EXEEXT
  3474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3475. /* end confdefs.h. */
  3476. #include <stdio.h>
  3477. int
  3478. main ()
  3479. {
  3480. ;
  3481. return 0;
  3482. }
  3483. _ACEOF
  3484. ac_clean_files="$ac_clean_files conftest.out"
  3485. # Check that the compiler produces executables we can run. If not, either
  3486. # the compiler is broken, or we cross compile.
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3488. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3489. if test "$cross_compiling" != yes; then
  3490. { { ac_try="$ac_link"
  3491. case "(($ac_try" in
  3492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3493. *) ac_try_echo=$ac_try;;
  3494. esac
  3495. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3496. $as_echo "$ac_try_echo"; } >&5
  3497. (eval "$ac_link") 2>&5
  3498. ac_status=$?
  3499. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3500. test $ac_status = 0; }
  3501. if { ac_try='./conftest$ac_cv_exeext'
  3502. { { case "(($ac_try" in
  3503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3504. *) ac_try_echo=$ac_try;;
  3505. esac
  3506. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3507. $as_echo "$ac_try_echo"; } >&5
  3508. (eval "$ac_try") 2>&5
  3509. ac_status=$?
  3510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3511. test $ac_status = 0; }; }; then
  3512. cross_compiling=no
  3513. else
  3514. if test "$cross_compiling" = maybe; then
  3515. cross_compiling=yes
  3516. else
  3517. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3518. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3519. as_fn_error $? "cannot run C compiled programs.
  3520. If you meant to cross compile, use \`--host'.
  3521. See \`config.log' for more details" "$LINENO" 5; }
  3522. fi
  3523. fi
  3524. fi
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3526. $as_echo "$cross_compiling" >&6; }
  3527. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3528. ac_clean_files=$ac_clean_files_save
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3530. $as_echo_n "checking for suffix of object files... " >&6; }
  3531. if ${ac_cv_objext+:} false; then :
  3532. $as_echo_n "(cached) " >&6
  3533. else
  3534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3535. /* end confdefs.h. */
  3536. int
  3537. main ()
  3538. {
  3539. ;
  3540. return 0;
  3541. }
  3542. _ACEOF
  3543. rm -f conftest.o conftest.obj
  3544. if { { ac_try="$ac_compile"
  3545. case "(($ac_try" in
  3546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3547. *) ac_try_echo=$ac_try;;
  3548. esac
  3549. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3550. $as_echo "$ac_try_echo"; } >&5
  3551. (eval "$ac_compile") 2>&5
  3552. ac_status=$?
  3553. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3554. test $ac_status = 0; }; then :
  3555. for ac_file in conftest.o conftest.obj conftest.*; do
  3556. test -f "$ac_file" || continue;
  3557. case $ac_file in
  3558. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3559. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3560. break;;
  3561. esac
  3562. done
  3563. else
  3564. $as_echo "$as_me: failed program was:" >&5
  3565. sed 's/^/| /' conftest.$ac_ext >&5
  3566. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3567. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3568. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3569. See \`config.log' for more details" "$LINENO" 5; }
  3570. fi
  3571. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3572. fi
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3574. $as_echo "$ac_cv_objext" >&6; }
  3575. OBJEXT=$ac_cv_objext
  3576. ac_objext=$OBJEXT
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3578. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3579. if ${ac_cv_c_compiler_gnu+:} false; then :
  3580. $as_echo_n "(cached) " >&6
  3581. else
  3582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3583. /* end confdefs.h. */
  3584. int
  3585. main ()
  3586. {
  3587. #ifndef __GNUC__
  3588. choke me
  3589. #endif
  3590. ;
  3591. return 0;
  3592. }
  3593. _ACEOF
  3594. if ac_fn_c_try_compile "$LINENO"; then :
  3595. ac_compiler_gnu=yes
  3596. else
  3597. ac_compiler_gnu=no
  3598. fi
  3599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3600. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3601. fi
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3603. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3604. if test $ac_compiler_gnu = yes; then
  3605. GCC=yes
  3606. else
  3607. GCC=
  3608. fi
  3609. ac_test_CFLAGS=${CFLAGS+set}
  3610. ac_save_CFLAGS=$CFLAGS
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3612. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3613. if ${ac_cv_prog_cc_g+:} false; then :
  3614. $as_echo_n "(cached) " >&6
  3615. else
  3616. ac_save_c_werror_flag=$ac_c_werror_flag
  3617. ac_c_werror_flag=yes
  3618. ac_cv_prog_cc_g=no
  3619. CFLAGS="-g"
  3620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3621. /* end confdefs.h. */
  3622. int
  3623. main ()
  3624. {
  3625. ;
  3626. return 0;
  3627. }
  3628. _ACEOF
  3629. if ac_fn_c_try_compile "$LINENO"; then :
  3630. ac_cv_prog_cc_g=yes
  3631. else
  3632. CFLAGS=""
  3633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3634. /* end confdefs.h. */
  3635. int
  3636. main ()
  3637. {
  3638. ;
  3639. return 0;
  3640. }
  3641. _ACEOF
  3642. if ac_fn_c_try_compile "$LINENO"; then :
  3643. else
  3644. ac_c_werror_flag=$ac_save_c_werror_flag
  3645. CFLAGS="-g"
  3646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3647. /* end confdefs.h. */
  3648. int
  3649. main ()
  3650. {
  3651. ;
  3652. return 0;
  3653. }
  3654. _ACEOF
  3655. if ac_fn_c_try_compile "$LINENO"; then :
  3656. ac_cv_prog_cc_g=yes
  3657. fi
  3658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3659. fi
  3660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3661. fi
  3662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3663. ac_c_werror_flag=$ac_save_c_werror_flag
  3664. fi
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3666. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3667. if test "$ac_test_CFLAGS" = set; then
  3668. CFLAGS=$ac_save_CFLAGS
  3669. elif test $ac_cv_prog_cc_g = yes; then
  3670. if test "$GCC" = yes; then
  3671. CFLAGS="-g -O2"
  3672. else
  3673. CFLAGS="-g"
  3674. fi
  3675. else
  3676. if test "$GCC" = yes; then
  3677. CFLAGS="-O2"
  3678. else
  3679. CFLAGS=
  3680. fi
  3681. fi
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3683. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3684. if ${ac_cv_prog_cc_c89+:} false; then :
  3685. $as_echo_n "(cached) " >&6
  3686. else
  3687. ac_cv_prog_cc_c89=no
  3688. ac_save_CC=$CC
  3689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3690. /* end confdefs.h. */
  3691. #include <stdarg.h>
  3692. #include <stdio.h>
  3693. struct stat;
  3694. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3695. struct buf { int x; };
  3696. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3697. static char *e (p, i)
  3698. char **p;
  3699. int i;
  3700. {
  3701. return p[i];
  3702. }
  3703. static char *f (char * (*g) (char **, int), char **p, ...)
  3704. {
  3705. char *s;
  3706. va_list v;
  3707. va_start (v,p);
  3708. s = g (p, va_arg (v,int));
  3709. va_end (v);
  3710. return s;
  3711. }
  3712. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3713. function prototypes and stuff, but not '\xHH' hex character constants.
  3714. These don't provoke an error unfortunately, instead are silently treated
  3715. as 'x'. The following induces an error, until -std is added to get
  3716. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3717. array size at least. It's necessary to write '\x00'==0 to get something
  3718. that's true only with -std. */
  3719. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3720. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3721. inside strings and character constants. */
  3722. #define FOO(x) 'x'
  3723. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3724. int test (int i, double x);
  3725. struct s1 {int (*f) (int a);};
  3726. struct s2 {int (*f) (double a);};
  3727. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3728. int argc;
  3729. char **argv;
  3730. int
  3731. main ()
  3732. {
  3733. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3734. ;
  3735. return 0;
  3736. }
  3737. _ACEOF
  3738. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3739. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3740. do
  3741. CC="$ac_save_CC $ac_arg"
  3742. if ac_fn_c_try_compile "$LINENO"; then :
  3743. ac_cv_prog_cc_c89=$ac_arg
  3744. fi
  3745. rm -f core conftest.err conftest.$ac_objext
  3746. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3747. done
  3748. rm -f conftest.$ac_ext
  3749. CC=$ac_save_CC
  3750. fi
  3751. # AC_CACHE_VAL
  3752. case "x$ac_cv_prog_cc_c89" in
  3753. x)
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3755. $as_echo "none needed" >&6; } ;;
  3756. xno)
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3758. $as_echo "unsupported" >&6; } ;;
  3759. *)
  3760. CC="$CC $ac_cv_prog_cc_c89"
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3762. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3763. esac
  3764. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3765. fi
  3766. ac_ext=c
  3767. ac_cpp='$CPP $CPPFLAGS'
  3768. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3769. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3770. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3771. ac_ext=c
  3772. ac_cpp='$CPP $CPPFLAGS'
  3773. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3774. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3777. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3778. if ${am_cv_prog_cc_c_o+:} false; then :
  3779. $as_echo_n "(cached) " >&6
  3780. else
  3781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3782. /* end confdefs.h. */
  3783. int
  3784. main ()
  3785. {
  3786. ;
  3787. return 0;
  3788. }
  3789. _ACEOF
  3790. # Make sure it works both with $CC and with simple cc.
  3791. # Following AC_PROG_CC_C_O, we do the test twice because some
  3792. # compilers refuse to overwrite an existing .o file with -o,
  3793. # though they will create one.
  3794. am_cv_prog_cc_c_o=yes
  3795. for am_i in 1 2; do
  3796. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3797. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3798. ac_status=$?
  3799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3800. (exit $ac_status); } \
  3801. && test -f conftest2.$ac_objext; then
  3802. : OK
  3803. else
  3804. am_cv_prog_cc_c_o=no
  3805. break
  3806. fi
  3807. done
  3808. rm -f core conftest*
  3809. unset am_i
  3810. fi
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3812. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3813. if test "$am_cv_prog_cc_c_o" != yes; then
  3814. # Losing compiler, so override with the script.
  3815. # FIXME: It is wrong to rewrite CC.
  3816. # But if we don't then we get into trouble of one sort or another.
  3817. # A longer-term fix would be to have automake use am__CC in this case,
  3818. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3819. CC="$am_aux_dir/compile $CC"
  3820. fi
  3821. ac_ext=c
  3822. ac_cpp='$CPP $CPPFLAGS'
  3823. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3824. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3825. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3826. depcc="$CC" am_compiler_list=
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3828. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3829. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3833. # We make a subdir and do the tests there. Otherwise we can end up
  3834. # making bogus files that we don't know about and never remove. For
  3835. # instance it was reported that on HP-UX the gcc test will end up
  3836. # making a dummy file named 'D' -- because '-MD' means "put the output
  3837. # in D".
  3838. rm -rf conftest.dir
  3839. mkdir conftest.dir
  3840. # Copy depcomp to subdir because otherwise we won't find it if we're
  3841. # using a relative directory.
  3842. cp "$am_depcomp" conftest.dir
  3843. cd conftest.dir
  3844. # We will build objects and dependencies in a subdirectory because
  3845. # it helps to detect inapplicable dependency modes. For instance
  3846. # both Tru64's cc and ICC support -MD to output dependencies as a
  3847. # side effect of compilation, but ICC will put the dependencies in
  3848. # the current directory while Tru64 will put them in the object
  3849. # directory.
  3850. mkdir sub
  3851. am_cv_CC_dependencies_compiler_type=none
  3852. if test "$am_compiler_list" = ""; then
  3853. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3854. fi
  3855. am__universal=false
  3856. case " $depcc " in #(
  3857. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3858. esac
  3859. for depmode in $am_compiler_list; do
  3860. # Setup a source with many dependencies, because some compilers
  3861. # like to wrap large dependency lists on column 80 (with \), and
  3862. # we should not choose a depcomp mode which is confused by this.
  3863. #
  3864. # We need to recreate these files for each test, as the compiler may
  3865. # overwrite some of them when testing with obscure command lines.
  3866. # This happens at least with the AIX C compiler.
  3867. : > sub/conftest.c
  3868. for i in 1 2 3 4 5 6; do
  3869. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3870. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3871. # Solaris 10 /bin/sh.
  3872. echo '/* dummy */' > sub/conftst$i.h
  3873. done
  3874. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3875. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3876. # mode. It turns out that the SunPro C++ compiler does not properly
  3877. # handle '-M -o', and we need to detect this. Also, some Intel
  3878. # versions had trouble with output in subdirs.
  3879. am__obj=sub/conftest.${OBJEXT-o}
  3880. am__minus_obj="-o $am__obj"
  3881. case $depmode in
  3882. gcc)
  3883. # This depmode causes a compiler race in universal mode.
  3884. test "$am__universal" = false || continue
  3885. ;;
  3886. nosideeffect)
  3887. # After this tag, mechanisms are not by side-effect, so they'll
  3888. # only be used when explicitly requested.
  3889. if test "x$enable_dependency_tracking" = xyes; then
  3890. continue
  3891. else
  3892. break
  3893. fi
  3894. ;;
  3895. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3896. # This compiler won't grok '-c -o', but also, the minuso test has
  3897. # not run yet. These depmodes are late enough in the game, and
  3898. # so weak that their functioning should not be impacted.
  3899. am__obj=conftest.${OBJEXT-o}
  3900. am__minus_obj=
  3901. ;;
  3902. none) break ;;
  3903. esac
  3904. if depmode=$depmode \
  3905. source=sub/conftest.c object=$am__obj \
  3906. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3907. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3908. >/dev/null 2>conftest.err &&
  3909. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3910. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3911. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3912. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3913. # icc doesn't choke on unknown options, it will just issue warnings
  3914. # or remarks (even with -Werror). So we grep stderr for any message
  3915. # that says an option was ignored or not supported.
  3916. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3917. # icc: Command line warning: ignoring option '-M'; no argument required
  3918. # The diagnosis changed in icc 8.0:
  3919. # icc: Command line remark: option '-MP' not supported
  3920. if (grep 'ignoring option' conftest.err ||
  3921. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3922. am_cv_CC_dependencies_compiler_type=$depmode
  3923. break
  3924. fi
  3925. fi
  3926. done
  3927. cd ..
  3928. rm -rf conftest.dir
  3929. else
  3930. am_cv_CC_dependencies_compiler_type=none
  3931. fi
  3932. fi
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3934. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3935. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3936. if
  3937. test "x$enable_dependency_tracking" != xno \
  3938. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3939. am__fastdepCC_TRUE=
  3940. am__fastdepCC_FALSE='#'
  3941. else
  3942. am__fastdepCC_TRUE='#'
  3943. am__fastdepCC_FALSE=
  3944. fi
  3945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3946. /* end confdefs.h. */
  3947. int
  3948. main ()
  3949. {
  3950. return __s390x__
  3951. ;
  3952. return 0;
  3953. }
  3954. _ACEOF
  3955. if ac_fn_c_try_compile "$LINENO"; then :
  3956. default_enable_libunwind=no
  3957. default_enable_backtrace=yes
  3958. else
  3959. default_enable_libunwind=yes
  3960. default_enable_backtrace=no
  3961. fi
  3962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3963. # Disable libunwind linking on ppc64 by default.
  3964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3965. /* end confdefs.h. */
  3966. int
  3967. main ()
  3968. {
  3969. return __PPC64__
  3970. ;
  3971. return 0;
  3972. }
  3973. _ACEOF
  3974. if ac_fn_c_try_compile "$LINENO"; then :
  3975. default_enable_libunwind=no
  3976. default_tcmalloc_pagesize=64
  3977. else
  3978. default_enable_libunwind=yes
  3979. default_tcmalloc_pagesize=8
  3980. fi
  3981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3982. # Check whether --enable-cpu-profiler was given.
  3983. if test "${enable_cpu_profiler+set}" = set; then :
  3984. enableval=$enable_cpu_profiler;
  3985. else
  3986. enable_cpu_profiler="$default_enable_cpu_profiler"
  3987. fi
  3988. # Check whether --enable-heap-profiler was given.
  3989. if test "${enable_heap_profiler+set}" = set; then :
  3990. enableval=$enable_heap_profiler;
  3991. else
  3992. enable_heap_profiler="$default_enable_heap_profiler"
  3993. fi
  3994. # Check whether --enable-heap-checker was given.
  3995. if test "${enable_heap_checker+set}" = set; then :
  3996. enableval=$enable_heap_checker;
  3997. else
  3998. enable_heap_checker="$default_enable_heap_checker"
  3999. fi
  4000. # Check whether --enable-debugalloc was given.
  4001. if test "${enable_debugalloc+set}" = set; then :
  4002. enableval=$enable_debugalloc;
  4003. else
  4004. enable_debugalloc="$default_enable_debugalloc"
  4005. fi
  4006. # Check whether --enable-minimal was given.
  4007. if test "${enable_minimal+set}" = set; then :
  4008. enableval=$enable_minimal;
  4009. else
  4010. enable_minimal="$default_enable_minimal"
  4011. fi
  4012. if test "$enable_minimal" = yes; then
  4013. enable_cpu_profiler=no
  4014. enable_heap_profiler=no
  4015. enable_heap_checker=no
  4016. fi
  4017. # Check whether --enable-stacktrace-via-backtrace was given.
  4018. if test "${enable_stacktrace_via_backtrace+set}" = set; then :
  4019. enableval=$enable_stacktrace_via_backtrace; enable_backtrace=yes
  4020. else
  4021. enable_backtrace="$default_enable_backtrace"
  4022. fi
  4023. # Check whether --enable-libunwind was given.
  4024. if test "${enable_libunwind+set}" = set; then :
  4025. enableval=$enable_libunwind;
  4026. else
  4027. enable_libunwind="$default_enable_libunwind"
  4028. fi
  4029. # Check whether --with-tcmalloc-pagesize was given.
  4030. if test "${with_tcmalloc_pagesize+set}" = set; then :
  4031. withval=$with_tcmalloc_pagesize;
  4032. else
  4033. with_tcmalloc_pagesize=$default_tcmalloc_pagesize
  4034. fi
  4035. # Check whether --with-tcmalloc-alignment was given.
  4036. if test "${with_tcmalloc_alignment+set}" = set; then :
  4037. withval=$with_tcmalloc_alignment;
  4038. else
  4039. with_tcmalloc_alignment=$default_tcmalloc_alignment
  4040. fi
  4041. case "$with_tcmalloc_pagesize" in
  4042. 8)
  4043. #Default tcmalloc page size.
  4044. ;;
  4045. 32)
  4046. $as_echo "#define TCMALLOC_32K_PAGES 1" >>confdefs.h
  4047. ;;
  4048. 64)
  4049. $as_echo "#define TCMALLOC_64K_PAGES 1" >>confdefs.h
  4050. ;;
  4051. *)
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${with_tcmalloc_pagesize}K size not supported, using default tcmalloc page size." >&5
  4053. $as_echo "$as_me: WARNING: ${with_tcmalloc_pagesize}K size not supported, using default tcmalloc page size." >&2;}
  4054. esac
  4055. case "$with_tcmalloc_alignment" in
  4056. 8)
  4057. $as_echo "#define TCMALLOC_ALIGN_8BYTES 1" >>confdefs.h
  4058. ;;
  4059. 16)
  4060. #Default tcmalloc allocation alignment.
  4061. ;;
  4062. *)
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${with_tcmalloc_alignment} bytes not supported, using default tcmalloc allocation alignment." >&5
  4064. $as_echo "$as_me: WARNING: ${with_tcmalloc_alignment} bytes not supported, using default tcmalloc allocation alignment." >&2;}
  4065. esac
  4066. # Checks for programs.
  4067. ac_ext=cpp
  4068. ac_cpp='$CXXCPP $CPPFLAGS'
  4069. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4070. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4071. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4072. if test -z "$CXX"; then
  4073. if test -n "$CCC"; then
  4074. CXX=$CCC
  4075. else
  4076. if test -n "$ac_tool_prefix"; then
  4077. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4078. do
  4079. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4080. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4082. $as_echo_n "checking for $ac_word... " >&6; }
  4083. if ${ac_cv_prog_CXX+:} false; then :
  4084. $as_echo_n "(cached) " >&6
  4085. else
  4086. if test -n "$CXX"; then
  4087. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4088. else
  4089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4090. for as_dir in $PATH
  4091. do
  4092. IFS=$as_save_IFS
  4093. test -z "$as_dir" && as_dir=.
  4094. for ac_exec_ext in '' $ac_executable_extensions; do
  4095. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4096. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4098. break 2
  4099. fi
  4100. done
  4101. done
  4102. IFS=$as_save_IFS
  4103. fi
  4104. fi
  4105. CXX=$ac_cv_prog_CXX
  4106. if test -n "$CXX"; then
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4108. $as_echo "$CXX" >&6; }
  4109. else
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4111. $as_echo "no" >&6; }
  4112. fi
  4113. test -n "$CXX" && break
  4114. done
  4115. fi
  4116. if test -z "$CXX"; then
  4117. ac_ct_CXX=$CXX
  4118. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4119. do
  4120. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4121. set dummy $ac_prog; ac_word=$2
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4123. $as_echo_n "checking for $ac_word... " >&6; }
  4124. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4125. $as_echo_n "(cached) " >&6
  4126. else
  4127. if test -n "$ac_ct_CXX"; then
  4128. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4129. else
  4130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4131. for as_dir in $PATH
  4132. do
  4133. IFS=$as_save_IFS
  4134. test -z "$as_dir" && as_dir=.
  4135. for ac_exec_ext in '' $ac_executable_extensions; do
  4136. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4137. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4138. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4139. break 2
  4140. fi
  4141. done
  4142. done
  4143. IFS=$as_save_IFS
  4144. fi
  4145. fi
  4146. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4147. if test -n "$ac_ct_CXX"; then
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4149. $as_echo "$ac_ct_CXX" >&6; }
  4150. else
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4152. $as_echo "no" >&6; }
  4153. fi
  4154. test -n "$ac_ct_CXX" && break
  4155. done
  4156. if test "x$ac_ct_CXX" = x; then
  4157. CXX="g++"
  4158. else
  4159. case $cross_compiling:$ac_tool_warned in
  4160. yes:)
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4162. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4163. ac_tool_warned=yes ;;
  4164. esac
  4165. CXX=$ac_ct_CXX
  4166. fi
  4167. fi
  4168. fi
  4169. fi
  4170. # Provide some information about the compiler.
  4171. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4172. set X $ac_compile
  4173. ac_compiler=$2
  4174. for ac_option in --version -v -V -qversion; do
  4175. { { ac_try="$ac_compiler $ac_option >&5"
  4176. case "(($ac_try" in
  4177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4178. *) ac_try_echo=$ac_try;;
  4179. esac
  4180. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4181. $as_echo "$ac_try_echo"; } >&5
  4182. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4183. ac_status=$?
  4184. if test -s conftest.err; then
  4185. sed '10a\
  4186. ... rest of stderr output deleted ...
  4187. 10q' conftest.err >conftest.er1
  4188. cat conftest.er1 >&5
  4189. fi
  4190. rm -f conftest.er1 conftest.err
  4191. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4192. test $ac_status = 0; }
  4193. done
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4195. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4196. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4197. $as_echo_n "(cached) " >&6
  4198. else
  4199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4200. /* end confdefs.h. */
  4201. int
  4202. main ()
  4203. {
  4204. #ifndef __GNUC__
  4205. choke me
  4206. #endif
  4207. ;
  4208. return 0;
  4209. }
  4210. _ACEOF
  4211. if ac_fn_cxx_try_compile "$LINENO"; then :
  4212. ac_compiler_gnu=yes
  4213. else
  4214. ac_compiler_gnu=no
  4215. fi
  4216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4217. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4218. fi
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4220. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4221. if test $ac_compiler_gnu = yes; then
  4222. GXX=yes
  4223. else
  4224. GXX=
  4225. fi
  4226. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4227. ac_save_CXXFLAGS=$CXXFLAGS
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4229. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4230. if ${ac_cv_prog_cxx_g+:} false; then :
  4231. $as_echo_n "(cached) " >&6
  4232. else
  4233. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4234. ac_cxx_werror_flag=yes
  4235. ac_cv_prog_cxx_g=no
  4236. CXXFLAGS="-g"
  4237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4238. /* end confdefs.h. */
  4239. int
  4240. main ()
  4241. {
  4242. ;
  4243. return 0;
  4244. }
  4245. _ACEOF
  4246. if ac_fn_cxx_try_compile "$LINENO"; then :
  4247. ac_cv_prog_cxx_g=yes
  4248. else
  4249. CXXFLAGS=""
  4250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4251. /* end confdefs.h. */
  4252. int
  4253. main ()
  4254. {
  4255. ;
  4256. return 0;
  4257. }
  4258. _ACEOF
  4259. if ac_fn_cxx_try_compile "$LINENO"; then :
  4260. else
  4261. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4262. CXXFLAGS="-g"
  4263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4264. /* end confdefs.h. */
  4265. int
  4266. main ()
  4267. {
  4268. ;
  4269. return 0;
  4270. }
  4271. _ACEOF
  4272. if ac_fn_cxx_try_compile "$LINENO"; then :
  4273. ac_cv_prog_cxx_g=yes
  4274. fi
  4275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4276. fi
  4277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4278. fi
  4279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4280. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4281. fi
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4283. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4284. if test "$ac_test_CXXFLAGS" = set; then
  4285. CXXFLAGS=$ac_save_CXXFLAGS
  4286. elif test $ac_cv_prog_cxx_g = yes; then
  4287. if test "$GXX" = yes; then
  4288. CXXFLAGS="-g -O2"
  4289. else
  4290. CXXFLAGS="-g"
  4291. fi
  4292. else
  4293. if test "$GXX" = yes; then
  4294. CXXFLAGS="-O2"
  4295. else
  4296. CXXFLAGS=
  4297. fi
  4298. fi
  4299. ac_ext=c
  4300. ac_cpp='$CPP $CPPFLAGS'
  4301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4304. depcc="$CXX" am_compiler_list=
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4306. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4307. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4308. $as_echo_n "(cached) " >&6
  4309. else
  4310. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4311. # We make a subdir and do the tests there. Otherwise we can end up
  4312. # making bogus files that we don't know about and never remove. For
  4313. # instance it was reported that on HP-UX the gcc test will end up
  4314. # making a dummy file named 'D' -- because '-MD' means "put the output
  4315. # in D".
  4316. rm -rf conftest.dir
  4317. mkdir conftest.dir
  4318. # Copy depcomp to subdir because otherwise we won't find it if we're
  4319. # using a relative directory.
  4320. cp "$am_depcomp" conftest.dir
  4321. cd conftest.dir
  4322. # We will build objects and dependencies in a subdirectory because
  4323. # it helps to detect inapplicable dependency modes. For instance
  4324. # both Tru64's cc and ICC support -MD to output dependencies as a
  4325. # side effect of compilation, but ICC will put the dependencies in
  4326. # the current directory while Tru64 will put them in the object
  4327. # directory.
  4328. mkdir sub
  4329. am_cv_CXX_dependencies_compiler_type=none
  4330. if test "$am_compiler_list" = ""; then
  4331. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4332. fi
  4333. am__universal=false
  4334. case " $depcc " in #(
  4335. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4336. esac
  4337. for depmode in $am_compiler_list; do
  4338. # Setup a source with many dependencies, because some compilers
  4339. # like to wrap large dependency lists on column 80 (with \), and
  4340. # we should not choose a depcomp mode which is confused by this.
  4341. #
  4342. # We need to recreate these files for each test, as the compiler may
  4343. # overwrite some of them when testing with obscure command lines.
  4344. # This happens at least with the AIX C compiler.
  4345. : > sub/conftest.c
  4346. for i in 1 2 3 4 5 6; do
  4347. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4348. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4349. # Solaris 10 /bin/sh.
  4350. echo '/* dummy */' > sub/conftst$i.h
  4351. done
  4352. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4353. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4354. # mode. It turns out that the SunPro C++ compiler does not properly
  4355. # handle '-M -o', and we need to detect this. Also, some Intel
  4356. # versions had trouble with output in subdirs.
  4357. am__obj=sub/conftest.${OBJEXT-o}
  4358. am__minus_obj="-o $am__obj"
  4359. case $depmode in
  4360. gcc)
  4361. # This depmode causes a compiler race in universal mode.
  4362. test "$am__universal" = false || continue
  4363. ;;
  4364. nosideeffect)
  4365. # After this tag, mechanisms are not by side-effect, so they'll
  4366. # only be used when explicitly requested.
  4367. if test "x$enable_dependency_tracking" = xyes; then
  4368. continue
  4369. else
  4370. break
  4371. fi
  4372. ;;
  4373. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4374. # This compiler won't grok '-c -o', but also, the minuso test has
  4375. # not run yet. These depmodes are late enough in the game, and
  4376. # so weak that their functioning should not be impacted.
  4377. am__obj=conftest.${OBJEXT-o}
  4378. am__minus_obj=
  4379. ;;
  4380. none) break ;;
  4381. esac
  4382. if depmode=$depmode \
  4383. source=sub/conftest.c object=$am__obj \
  4384. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4385. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4386. >/dev/null 2>conftest.err &&
  4387. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4388. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4389. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4390. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4391. # icc doesn't choke on unknown options, it will just issue warnings
  4392. # or remarks (even with -Werror). So we grep stderr for any message
  4393. # that says an option was ignored or not supported.
  4394. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4395. # icc: Command line warning: ignoring option '-M'; no argument required
  4396. # The diagnosis changed in icc 8.0:
  4397. # icc: Command line remark: option '-MP' not supported
  4398. if (grep 'ignoring option' conftest.err ||
  4399. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4400. am_cv_CXX_dependencies_compiler_type=$depmode
  4401. break
  4402. fi
  4403. fi
  4404. done
  4405. cd ..
  4406. rm -rf conftest.dir
  4407. else
  4408. am_cv_CXX_dependencies_compiler_type=none
  4409. fi
  4410. fi
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4412. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4413. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4414. if
  4415. test "x$enable_dependency_tracking" != xno \
  4416. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4417. am__fastdepCXX_TRUE=
  4418. am__fastdepCXX_FALSE='#'
  4419. else
  4420. am__fastdepCXX_TRUE='#'
  4421. am__fastdepCXX_FALSE=
  4422. fi
  4423. ac_ext=c
  4424. ac_cpp='$CPP $CPPFLAGS'
  4425. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4426. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4427. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4428. if test -n "$ac_tool_prefix"; then
  4429. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4430. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4432. $as_echo_n "checking for $ac_word... " >&6; }
  4433. if ${ac_cv_prog_CC+:} false; then :
  4434. $as_echo_n "(cached) " >&6
  4435. else
  4436. if test -n "$CC"; then
  4437. ac_cv_prog_CC="$CC" # Let the user override the test.
  4438. else
  4439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4440. for as_dir in $PATH
  4441. do
  4442. IFS=$as_save_IFS
  4443. test -z "$as_dir" && as_dir=.
  4444. for ac_exec_ext in '' $ac_executable_extensions; do
  4445. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4446. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4448. break 2
  4449. fi
  4450. done
  4451. done
  4452. IFS=$as_save_IFS
  4453. fi
  4454. fi
  4455. CC=$ac_cv_prog_CC
  4456. if test -n "$CC"; then
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4458. $as_echo "$CC" >&6; }
  4459. else
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4461. $as_echo "no" >&6; }
  4462. fi
  4463. fi
  4464. if test -z "$ac_cv_prog_CC"; then
  4465. ac_ct_CC=$CC
  4466. # Extract the first word of "gcc", so it can be a program name with args.
  4467. set dummy gcc; ac_word=$2
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4469. $as_echo_n "checking for $ac_word... " >&6; }
  4470. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4471. $as_echo_n "(cached) " >&6
  4472. else
  4473. if test -n "$ac_ct_CC"; then
  4474. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4475. else
  4476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4477. for as_dir in $PATH
  4478. do
  4479. IFS=$as_save_IFS
  4480. test -z "$as_dir" && as_dir=.
  4481. for ac_exec_ext in '' $ac_executable_extensions; do
  4482. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4483. ac_cv_prog_ac_ct_CC="gcc"
  4484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4485. break 2
  4486. fi
  4487. done
  4488. done
  4489. IFS=$as_save_IFS
  4490. fi
  4491. fi
  4492. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4493. if test -n "$ac_ct_CC"; then
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4495. $as_echo "$ac_ct_CC" >&6; }
  4496. else
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4498. $as_echo "no" >&6; }
  4499. fi
  4500. if test "x$ac_ct_CC" = x; then
  4501. CC=""
  4502. else
  4503. case $cross_compiling:$ac_tool_warned in
  4504. yes:)
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4506. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4507. ac_tool_warned=yes ;;
  4508. esac
  4509. CC=$ac_ct_CC
  4510. fi
  4511. else
  4512. CC="$ac_cv_prog_CC"
  4513. fi
  4514. if test -z "$CC"; then
  4515. if test -n "$ac_tool_prefix"; then
  4516. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4517. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4519. $as_echo_n "checking for $ac_word... " >&6; }
  4520. if ${ac_cv_prog_CC+:} false; then :
  4521. $as_echo_n "(cached) " >&6
  4522. else
  4523. if test -n "$CC"; then
  4524. ac_cv_prog_CC="$CC" # Let the user override the test.
  4525. else
  4526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4527. for as_dir in $PATH
  4528. do
  4529. IFS=$as_save_IFS
  4530. test -z "$as_dir" && as_dir=.
  4531. for ac_exec_ext in '' $ac_executable_extensions; do
  4532. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4533. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4534. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4535. break 2
  4536. fi
  4537. done
  4538. done
  4539. IFS=$as_save_IFS
  4540. fi
  4541. fi
  4542. CC=$ac_cv_prog_CC
  4543. if test -n "$CC"; then
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4545. $as_echo "$CC" >&6; }
  4546. else
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4548. $as_echo "no" >&6; }
  4549. fi
  4550. fi
  4551. fi
  4552. if test -z "$CC"; then
  4553. # Extract the first word of "cc", so it can be a program name with args.
  4554. set dummy cc; ac_word=$2
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4556. $as_echo_n "checking for $ac_word... " >&6; }
  4557. if ${ac_cv_prog_CC+:} false; then :
  4558. $as_echo_n "(cached) " >&6
  4559. else
  4560. if test -n "$CC"; then
  4561. ac_cv_prog_CC="$CC" # Let the user override the test.
  4562. else
  4563. ac_prog_rejected=no
  4564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4565. for as_dir in $PATH
  4566. do
  4567. IFS=$as_save_IFS
  4568. test -z "$as_dir" && as_dir=.
  4569. for ac_exec_ext in '' $ac_executable_extensions; do
  4570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4571. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4572. ac_prog_rejected=yes
  4573. continue
  4574. fi
  4575. ac_cv_prog_CC="cc"
  4576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4577. break 2
  4578. fi
  4579. done
  4580. done
  4581. IFS=$as_save_IFS
  4582. if test $ac_prog_rejected = yes; then
  4583. # We found a bogon in the path, so make sure we never use it.
  4584. set dummy $ac_cv_prog_CC
  4585. shift
  4586. if test $# != 0; then
  4587. # We chose a different compiler from the bogus one.
  4588. # However, it has the same basename, so the bogon will be chosen
  4589. # first if we set CC to just the basename; use the full file name.
  4590. shift
  4591. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4592. fi
  4593. fi
  4594. fi
  4595. fi
  4596. CC=$ac_cv_prog_CC
  4597. if test -n "$CC"; then
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4599. $as_echo "$CC" >&6; }
  4600. else
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4602. $as_echo "no" >&6; }
  4603. fi
  4604. fi
  4605. if test -z "$CC"; then
  4606. if test -n "$ac_tool_prefix"; then
  4607. for ac_prog in cl.exe
  4608. do
  4609. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4610. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4612. $as_echo_n "checking for $ac_word... " >&6; }
  4613. if ${ac_cv_prog_CC+:} false; then :
  4614. $as_echo_n "(cached) " >&6
  4615. else
  4616. if test -n "$CC"; then
  4617. ac_cv_prog_CC="$CC" # Let the user override the test.
  4618. else
  4619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4620. for as_dir in $PATH
  4621. do
  4622. IFS=$as_save_IFS
  4623. test -z "$as_dir" && as_dir=.
  4624. for ac_exec_ext in '' $ac_executable_extensions; do
  4625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4626. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4628. break 2
  4629. fi
  4630. done
  4631. done
  4632. IFS=$as_save_IFS
  4633. fi
  4634. fi
  4635. CC=$ac_cv_prog_CC
  4636. if test -n "$CC"; then
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4638. $as_echo "$CC" >&6; }
  4639. else
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4641. $as_echo "no" >&6; }
  4642. fi
  4643. test -n "$CC" && break
  4644. done
  4645. fi
  4646. if test -z "$CC"; then
  4647. ac_ct_CC=$CC
  4648. for ac_prog in cl.exe
  4649. do
  4650. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4651. set dummy $ac_prog; ac_word=$2
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4653. $as_echo_n "checking for $ac_word... " >&6; }
  4654. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4655. $as_echo_n "(cached) " >&6
  4656. else
  4657. if test -n "$ac_ct_CC"; then
  4658. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4659. else
  4660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4661. for as_dir in $PATH
  4662. do
  4663. IFS=$as_save_IFS
  4664. test -z "$as_dir" && as_dir=.
  4665. for ac_exec_ext in '' $ac_executable_extensions; do
  4666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4667. ac_cv_prog_ac_ct_CC="$ac_prog"
  4668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4669. break 2
  4670. fi
  4671. done
  4672. done
  4673. IFS=$as_save_IFS
  4674. fi
  4675. fi
  4676. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4677. if test -n "$ac_ct_CC"; then
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4679. $as_echo "$ac_ct_CC" >&6; }
  4680. else
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4682. $as_echo "no" >&6; }
  4683. fi
  4684. test -n "$ac_ct_CC" && break
  4685. done
  4686. if test "x$ac_ct_CC" = x; then
  4687. CC=""
  4688. else
  4689. case $cross_compiling:$ac_tool_warned in
  4690. yes:)
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4692. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4693. ac_tool_warned=yes ;;
  4694. esac
  4695. CC=$ac_ct_CC
  4696. fi
  4697. fi
  4698. fi
  4699. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4700. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4701. as_fn_error $? "no acceptable C compiler found in \$PATH
  4702. See \`config.log' for more details" "$LINENO" 5; }
  4703. # Provide some information about the compiler.
  4704. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4705. set X $ac_compile
  4706. ac_compiler=$2
  4707. for ac_option in --version -v -V -qversion; do
  4708. { { ac_try="$ac_compiler $ac_option >&5"
  4709. case "(($ac_try" in
  4710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4711. *) ac_try_echo=$ac_try;;
  4712. esac
  4713. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4714. $as_echo "$ac_try_echo"; } >&5
  4715. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4716. ac_status=$?
  4717. if test -s conftest.err; then
  4718. sed '10a\
  4719. ... rest of stderr output deleted ...
  4720. 10q' conftest.err >conftest.er1
  4721. cat conftest.er1 >&5
  4722. fi
  4723. rm -f conftest.er1 conftest.err
  4724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4725. test $ac_status = 0; }
  4726. done
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4728. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4729. if ${ac_cv_c_compiler_gnu+:} false; then :
  4730. $as_echo_n "(cached) " >&6
  4731. else
  4732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4733. /* end confdefs.h. */
  4734. int
  4735. main ()
  4736. {
  4737. #ifndef __GNUC__
  4738. choke me
  4739. #endif
  4740. ;
  4741. return 0;
  4742. }
  4743. _ACEOF
  4744. if ac_fn_c_try_compile "$LINENO"; then :
  4745. ac_compiler_gnu=yes
  4746. else
  4747. ac_compiler_gnu=no
  4748. fi
  4749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4750. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4751. fi
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4753. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4754. if test $ac_compiler_gnu = yes; then
  4755. GCC=yes
  4756. else
  4757. GCC=
  4758. fi
  4759. ac_test_CFLAGS=${CFLAGS+set}
  4760. ac_save_CFLAGS=$CFLAGS
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4762. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4763. if ${ac_cv_prog_cc_g+:} false; then :
  4764. $as_echo_n "(cached) " >&6
  4765. else
  4766. ac_save_c_werror_flag=$ac_c_werror_flag
  4767. ac_c_werror_flag=yes
  4768. ac_cv_prog_cc_g=no
  4769. CFLAGS="-g"
  4770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4771. /* end confdefs.h. */
  4772. int
  4773. main ()
  4774. {
  4775. ;
  4776. return 0;
  4777. }
  4778. _ACEOF
  4779. if ac_fn_c_try_compile "$LINENO"; then :
  4780. ac_cv_prog_cc_g=yes
  4781. else
  4782. CFLAGS=""
  4783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4784. /* end confdefs.h. */
  4785. int
  4786. main ()
  4787. {
  4788. ;
  4789. return 0;
  4790. }
  4791. _ACEOF
  4792. if ac_fn_c_try_compile "$LINENO"; then :
  4793. else
  4794. ac_c_werror_flag=$ac_save_c_werror_flag
  4795. CFLAGS="-g"
  4796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4797. /* end confdefs.h. */
  4798. int
  4799. main ()
  4800. {
  4801. ;
  4802. return 0;
  4803. }
  4804. _ACEOF
  4805. if ac_fn_c_try_compile "$LINENO"; then :
  4806. ac_cv_prog_cc_g=yes
  4807. fi
  4808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4809. fi
  4810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4811. fi
  4812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4813. ac_c_werror_flag=$ac_save_c_werror_flag
  4814. fi
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4816. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4817. if test "$ac_test_CFLAGS" = set; then
  4818. CFLAGS=$ac_save_CFLAGS
  4819. elif test $ac_cv_prog_cc_g = yes; then
  4820. if test "$GCC" = yes; then
  4821. CFLAGS="-g -O2"
  4822. else
  4823. CFLAGS="-g"
  4824. fi
  4825. else
  4826. if test "$GCC" = yes; then
  4827. CFLAGS="-O2"
  4828. else
  4829. CFLAGS=
  4830. fi
  4831. fi
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4833. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4834. if ${ac_cv_prog_cc_c89+:} false; then :
  4835. $as_echo_n "(cached) " >&6
  4836. else
  4837. ac_cv_prog_cc_c89=no
  4838. ac_save_CC=$CC
  4839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4840. /* end confdefs.h. */
  4841. #include <stdarg.h>
  4842. #include <stdio.h>
  4843. struct stat;
  4844. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4845. struct buf { int x; };
  4846. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4847. static char *e (p, i)
  4848. char **p;
  4849. int i;
  4850. {
  4851. return p[i];
  4852. }
  4853. static char *f (char * (*g) (char **, int), char **p, ...)
  4854. {
  4855. char *s;
  4856. va_list v;
  4857. va_start (v,p);
  4858. s = g (p, va_arg (v,int));
  4859. va_end (v);
  4860. return s;
  4861. }
  4862. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4863. function prototypes and stuff, but not '\xHH' hex character constants.
  4864. These don't provoke an error unfortunately, instead are silently treated
  4865. as 'x'. The following induces an error, until -std is added to get
  4866. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4867. array size at least. It's necessary to write '\x00'==0 to get something
  4868. that's true only with -std. */
  4869. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4870. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4871. inside strings and character constants. */
  4872. #define FOO(x) 'x'
  4873. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4874. int test (int i, double x);
  4875. struct s1 {int (*f) (int a);};
  4876. struct s2 {int (*f) (double a);};
  4877. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4878. int argc;
  4879. char **argv;
  4880. int
  4881. main ()
  4882. {
  4883. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4884. ;
  4885. return 0;
  4886. }
  4887. _ACEOF
  4888. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4889. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4890. do
  4891. CC="$ac_save_CC $ac_arg"
  4892. if ac_fn_c_try_compile "$LINENO"; then :
  4893. ac_cv_prog_cc_c89=$ac_arg
  4894. fi
  4895. rm -f core conftest.err conftest.$ac_objext
  4896. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4897. done
  4898. rm -f conftest.$ac_ext
  4899. CC=$ac_save_CC
  4900. fi
  4901. # AC_CACHE_VAL
  4902. case "x$ac_cv_prog_cc_c89" in
  4903. x)
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4905. $as_echo "none needed" >&6; } ;;
  4906. xno)
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4908. $as_echo "unsupported" >&6; } ;;
  4909. *)
  4910. CC="$CC $ac_cv_prog_cc_c89"
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4912. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4913. esac
  4914. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4915. fi
  4916. ac_ext=c
  4917. ac_cpp='$CPP $CPPFLAGS'
  4918. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4919. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4920. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4921. ac_ext=c
  4922. ac_cpp='$CPP $CPPFLAGS'
  4923. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4924. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4925. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4927. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4928. if ${am_cv_prog_cc_c_o+:} false; then :
  4929. $as_echo_n "(cached) " >&6
  4930. else
  4931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4932. /* end confdefs.h. */
  4933. int
  4934. main ()
  4935. {
  4936. ;
  4937. return 0;
  4938. }
  4939. _ACEOF
  4940. # Make sure it works both with $CC and with simple cc.
  4941. # Following AC_PROG_CC_C_O, we do the test twice because some
  4942. # compilers refuse to overwrite an existing .o file with -o,
  4943. # though they will create one.
  4944. am_cv_prog_cc_c_o=yes
  4945. for am_i in 1 2; do
  4946. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4947. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4948. ac_status=$?
  4949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4950. (exit $ac_status); } \
  4951. && test -f conftest2.$ac_objext; then
  4952. : OK
  4953. else
  4954. am_cv_prog_cc_c_o=no
  4955. break
  4956. fi
  4957. done
  4958. rm -f core conftest*
  4959. unset am_i
  4960. fi
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4962. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4963. if test "$am_cv_prog_cc_c_o" != yes; then
  4964. # Losing compiler, so override with the script.
  4965. # FIXME: It is wrong to rewrite CC.
  4966. # But if we don't then we get into trouble of one sort or another.
  4967. # A longer-term fix would be to have automake use am__CC in this case,
  4968. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4969. CC="$am_aux_dir/compile $CC"
  4970. fi
  4971. ac_ext=c
  4972. ac_cpp='$CPP $CPPFLAGS'
  4973. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4974. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4975. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4976. depcc="$CC" am_compiler_list=
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4978. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4979. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4980. $as_echo_n "(cached) " >&6
  4981. else
  4982. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4983. # We make a subdir and do the tests there. Otherwise we can end up
  4984. # making bogus files that we don't know about and never remove. For
  4985. # instance it was reported that on HP-UX the gcc test will end up
  4986. # making a dummy file named 'D' -- because '-MD' means "put the output
  4987. # in D".
  4988. rm -rf conftest.dir
  4989. mkdir conftest.dir
  4990. # Copy depcomp to subdir because otherwise we won't find it if we're
  4991. # using a relative directory.
  4992. cp "$am_depcomp" conftest.dir
  4993. cd conftest.dir
  4994. # We will build objects and dependencies in a subdirectory because
  4995. # it helps to detect inapplicable dependency modes. For instance
  4996. # both Tru64's cc and ICC support -MD to output dependencies as a
  4997. # side effect of compilation, but ICC will put the dependencies in
  4998. # the current directory while Tru64 will put them in the object
  4999. # directory.
  5000. mkdir sub
  5001. am_cv_CC_dependencies_compiler_type=none
  5002. if test "$am_compiler_list" = ""; then
  5003. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5004. fi
  5005. am__universal=false
  5006. case " $depcc " in #(
  5007. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5008. esac
  5009. for depmode in $am_compiler_list; do
  5010. # Setup a source with many dependencies, because some compilers
  5011. # like to wrap large dependency lists on column 80 (with \), and
  5012. # we should not choose a depcomp mode which is confused by this.
  5013. #
  5014. # We need to recreate these files for each test, as the compiler may
  5015. # overwrite some of them when testing with obscure command lines.
  5016. # This happens at least with the AIX C compiler.
  5017. : > sub/conftest.c
  5018. for i in 1 2 3 4 5 6; do
  5019. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5020. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5021. # Solaris 10 /bin/sh.
  5022. echo '/* dummy */' > sub/conftst$i.h
  5023. done
  5024. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5025. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5026. # mode. It turns out that the SunPro C++ compiler does not properly
  5027. # handle '-M -o', and we need to detect this. Also, some Intel
  5028. # versions had trouble with output in subdirs.
  5029. am__obj=sub/conftest.${OBJEXT-o}
  5030. am__minus_obj="-o $am__obj"
  5031. case $depmode in
  5032. gcc)
  5033. # This depmode causes a compiler race in universal mode.
  5034. test "$am__universal" = false || continue
  5035. ;;
  5036. nosideeffect)
  5037. # After this tag, mechanisms are not by side-effect, so they'll
  5038. # only be used when explicitly requested.
  5039. if test "x$enable_dependency_tracking" = xyes; then
  5040. continue
  5041. else
  5042. break
  5043. fi
  5044. ;;
  5045. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5046. # This compiler won't grok '-c -o', but also, the minuso test has
  5047. # not run yet. These depmodes are late enough in the game, and
  5048. # so weak that their functioning should not be impacted.
  5049. am__obj=conftest.${OBJEXT-o}
  5050. am__minus_obj=
  5051. ;;
  5052. none) break ;;
  5053. esac
  5054. if depmode=$depmode \
  5055. source=sub/conftest.c object=$am__obj \
  5056. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5057. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5058. >/dev/null 2>conftest.err &&
  5059. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5060. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5061. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5062. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5063. # icc doesn't choke on unknown options, it will just issue warnings
  5064. # or remarks (even with -Werror). So we grep stderr for any message
  5065. # that says an option was ignored or not supported.
  5066. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5067. # icc: Command line warning: ignoring option '-M'; no argument required
  5068. # The diagnosis changed in icc 8.0:
  5069. # icc: Command line remark: option '-MP' not supported
  5070. if (grep 'ignoring option' conftest.err ||
  5071. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5072. am_cv_CC_dependencies_compiler_type=$depmode
  5073. break
  5074. fi
  5075. fi
  5076. done
  5077. cd ..
  5078. rm -rf conftest.dir
  5079. else
  5080. am_cv_CC_dependencies_compiler_type=none
  5081. fi
  5082. fi
  5083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5084. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5085. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5086. if
  5087. test "x$enable_dependency_tracking" != xno \
  5088. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5089. am__fastdepCC_TRUE=
  5090. am__fastdepCC_FALSE='#'
  5091. else
  5092. am__fastdepCC_TRUE='#'
  5093. am__fastdepCC_FALSE=
  5094. fi
  5095. ac_ext=c
  5096. ac_cpp='$CPP $CPPFLAGS'
  5097. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5098. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5099. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5101. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5102. # On Suns, sometimes $CPP names a directory.
  5103. if test -n "$CPP" && test -d "$CPP"; then
  5104. CPP=
  5105. fi
  5106. if test -z "$CPP"; then
  5107. if ${ac_cv_prog_CPP+:} false; then :
  5108. $as_echo_n "(cached) " >&6
  5109. else
  5110. # Double quotes because CPP needs to be expanded
  5111. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5112. do
  5113. ac_preproc_ok=false
  5114. for ac_c_preproc_warn_flag in '' yes
  5115. do
  5116. # Use a header file that comes with gcc, so configuring glibc
  5117. # with a fresh cross-compiler works.
  5118. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5119. # <limits.h> exists even on freestanding compilers.
  5120. # On the NeXT, cc -E runs the code through the compiler's parser,
  5121. # not just through cpp. "Syntax error" is here to catch this case.
  5122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5123. /* end confdefs.h. */
  5124. #ifdef __STDC__
  5125. # include <limits.h>
  5126. #else
  5127. # include <assert.h>
  5128. #endif
  5129. Syntax error
  5130. _ACEOF
  5131. if ac_fn_c_try_cpp "$LINENO"; then :
  5132. else
  5133. # Broken: fails on valid input.
  5134. continue
  5135. fi
  5136. rm -f conftest.err conftest.i conftest.$ac_ext
  5137. # OK, works on sane cases. Now check whether nonexistent headers
  5138. # can be detected and how.
  5139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5140. /* end confdefs.h. */
  5141. #include <ac_nonexistent.h>
  5142. _ACEOF
  5143. if ac_fn_c_try_cpp "$LINENO"; then :
  5144. # Broken: success on invalid input.
  5145. continue
  5146. else
  5147. # Passes both tests.
  5148. ac_preproc_ok=:
  5149. break
  5150. fi
  5151. rm -f conftest.err conftest.i conftest.$ac_ext
  5152. done
  5153. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5154. rm -f conftest.i conftest.err conftest.$ac_ext
  5155. if $ac_preproc_ok; then :
  5156. break
  5157. fi
  5158. done
  5159. ac_cv_prog_CPP=$CPP
  5160. fi
  5161. CPP=$ac_cv_prog_CPP
  5162. else
  5163. ac_cv_prog_CPP=$CPP
  5164. fi
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5166. $as_echo "$CPP" >&6; }
  5167. ac_preproc_ok=false
  5168. for ac_c_preproc_warn_flag in '' yes
  5169. do
  5170. # Use a header file that comes with gcc, so configuring glibc
  5171. # with a fresh cross-compiler works.
  5172. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5173. # <limits.h> exists even on freestanding compilers.
  5174. # On the NeXT, cc -E runs the code through the compiler's parser,
  5175. # not just through cpp. "Syntax error" is here to catch this case.
  5176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5177. /* end confdefs.h. */
  5178. #ifdef __STDC__
  5179. # include <limits.h>
  5180. #else
  5181. # include <assert.h>
  5182. #endif
  5183. Syntax error
  5184. _ACEOF
  5185. if ac_fn_c_try_cpp "$LINENO"; then :
  5186. else
  5187. # Broken: fails on valid input.
  5188. continue
  5189. fi
  5190. rm -f conftest.err conftest.i conftest.$ac_ext
  5191. # OK, works on sane cases. Now check whether nonexistent headers
  5192. # can be detected and how.
  5193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5194. /* end confdefs.h. */
  5195. #include <ac_nonexistent.h>
  5196. _ACEOF
  5197. if ac_fn_c_try_cpp "$LINENO"; then :
  5198. # Broken: success on invalid input.
  5199. continue
  5200. else
  5201. # Passes both tests.
  5202. ac_preproc_ok=:
  5203. break
  5204. fi
  5205. rm -f conftest.err conftest.i conftest.$ac_ext
  5206. done
  5207. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5208. rm -f conftest.i conftest.err conftest.$ac_ext
  5209. if $ac_preproc_ok; then :
  5210. else
  5211. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5212. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5213. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5214. See \`config.log' for more details" "$LINENO" 5; }
  5215. fi
  5216. ac_ext=c
  5217. ac_cpp='$CPP $CPPFLAGS'
  5218. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5219. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5220. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5221. if test "$GCC" = yes; then
  5222. GCC_TRUE=
  5223. GCC_FALSE='#'
  5224. else
  5225. GCC_TRUE='#'
  5226. GCC_FALSE=
  5227. fi
  5228. # let the Makefile know if we're gcc
  5229. # shrug: autogen.sh suddenly needs this for some reason
  5230. # Check if we have an objcopy installed that supports -W
  5231. if test -n "$ac_tool_prefix"; then
  5232. # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
  5233. set dummy ${ac_tool_prefix}objcopy; ac_word=$2
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5235. $as_echo_n "checking for $ac_word... " >&6; }
  5236. if ${ac_cv_prog_OBJCOPY+:} false; then :
  5237. $as_echo_n "(cached) " >&6
  5238. else
  5239. if test -n "$OBJCOPY"; then
  5240. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  5241. else
  5242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5243. for as_dir in $PATH
  5244. do
  5245. IFS=$as_save_IFS
  5246. test -z "$as_dir" && as_dir=.
  5247. for ac_exec_ext in '' $ac_executable_extensions; do
  5248. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5249. ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
  5250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5251. break 2
  5252. fi
  5253. done
  5254. done
  5255. IFS=$as_save_IFS
  5256. fi
  5257. fi
  5258. OBJCOPY=$ac_cv_prog_OBJCOPY
  5259. if test -n "$OBJCOPY"; then
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  5261. $as_echo "$OBJCOPY" >&6; }
  5262. else
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5264. $as_echo "no" >&6; }
  5265. fi
  5266. fi
  5267. if test -z "$ac_cv_prog_OBJCOPY"; then
  5268. ac_ct_OBJCOPY=$OBJCOPY
  5269. # Extract the first word of "objcopy", so it can be a program name with args.
  5270. set dummy objcopy; ac_word=$2
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5272. $as_echo_n "checking for $ac_word... " >&6; }
  5273. if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. if test -n "$ac_ct_OBJCOPY"; then
  5277. ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
  5278. else
  5279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5280. for as_dir in $PATH
  5281. do
  5282. IFS=$as_save_IFS
  5283. test -z "$as_dir" && as_dir=.
  5284. for ac_exec_ext in '' $ac_executable_extensions; do
  5285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5286. ac_cv_prog_ac_ct_OBJCOPY="objcopy"
  5287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5288. break 2
  5289. fi
  5290. done
  5291. done
  5292. IFS=$as_save_IFS
  5293. fi
  5294. fi
  5295. ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
  5296. if test -n "$ac_ct_OBJCOPY"; then
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
  5298. $as_echo "$ac_ct_OBJCOPY" >&6; }
  5299. else
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5301. $as_echo "no" >&6; }
  5302. fi
  5303. if test "x$ac_ct_OBJCOPY" = x; then
  5304. OBJCOPY=""
  5305. else
  5306. case $cross_compiling:$ac_tool_warned in
  5307. yes:)
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5309. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5310. ac_tool_warned=yes ;;
  5311. esac
  5312. OBJCOPY=$ac_ct_OBJCOPY
  5313. fi
  5314. else
  5315. OBJCOPY="$ac_cv_prog_OBJCOPY"
  5316. fi
  5317. if test -n "$OBJCOPY"; then :
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $OBJCOPY supports -W" >&5
  5319. $as_echo_n "checking if $OBJCOPY supports -W... " >&6; }
  5320. if ${gpt_cv_objcopy_weaken+:} false; then :
  5321. $as_echo_n "(cached) " >&6
  5322. else
  5323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5324. /* end confdefs.h. */
  5325. void foo() {} int main() {return 0;}
  5326. int
  5327. main ()
  5328. {
  5329. ;
  5330. return 0;
  5331. }
  5332. _ACEOF
  5333. if ac_fn_c_try_link "$LINENO"; then :
  5334. if "$OBJCOPY" -W foo conftest$ac_exeext /dev/null; then :
  5335. gpt_cv_objcopy_weaken=yes
  5336. else
  5337. gpt_cv_objcopy_weaken=no
  5338. fi
  5339. else
  5340. gpt_cv_objcopy_weaken=no
  5341. fi
  5342. rm -f core conftest.err conftest.$ac_objext \
  5343. conftest$ac_exeext conftest.$ac_ext
  5344. fi
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpt_cv_objcopy_weaken" >&5
  5346. $as_echo "$gpt_cv_objcopy_weaken" >&6; }
  5347. else
  5348. gpt_cv_objcopy_weaken=no
  5349. fi
  5350. if test $gpt_cv_objcopy_weaken = yes; then
  5351. HAVE_OBJCOPY_WEAKEN_TRUE=
  5352. HAVE_OBJCOPY_WEAKEN_FALSE='#'
  5353. else
  5354. HAVE_OBJCOPY_WEAKEN_TRUE='#'
  5355. HAVE_OBJCOPY_WEAKEN_FALSE=
  5356. fi
  5357. case `pwd` in
  5358. *\ * | *\ *)
  5359. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5360. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5361. esac
  5362. macro_version='2.4.6'
  5363. macro_revision='2.4.6'
  5364. ltmain=$ac_aux_dir/ltmain.sh
  5365. # Backslashify metacharacters that are still active within
  5366. # double-quoted strings.
  5367. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5368. # Same as above, but do not quote variable references.
  5369. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5370. # Sed substitution to delay expansion of an escaped shell variable in a
  5371. # double_quote_subst'ed string.
  5372. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5373. # Sed substitution to delay expansion of an escaped single quote.
  5374. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5375. # Sed substitution to avoid accidental globbing in evaled expressions
  5376. no_glob_subst='s/\*/\\\*/g'
  5377. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5378. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5379. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5381. $as_echo_n "checking how to print strings... " >&6; }
  5382. # Test print first, because it will be a builtin if present.
  5383. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5384. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5385. ECHO='print -r --'
  5386. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5387. ECHO='printf %s\n'
  5388. else
  5389. # Use this function as a fallback that always works.
  5390. func_fallback_echo ()
  5391. {
  5392. eval 'cat <<_LTECHO_EOF
  5393. $1
  5394. _LTECHO_EOF'
  5395. }
  5396. ECHO='func_fallback_echo'
  5397. fi
  5398. # func_echo_all arg...
  5399. # Invoke $ECHO with all args, space-separated.
  5400. func_echo_all ()
  5401. {
  5402. $ECHO ""
  5403. }
  5404. case $ECHO in
  5405. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5406. $as_echo "printf" >&6; } ;;
  5407. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5408. $as_echo "print -r" >&6; } ;;
  5409. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5410. $as_echo "cat" >&6; } ;;
  5411. esac
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5413. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5414. if ${ac_cv_path_SED+:} false; then :
  5415. $as_echo_n "(cached) " >&6
  5416. else
  5417. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5418. for ac_i in 1 2 3 4 5 6 7; do
  5419. ac_script="$ac_script$as_nl$ac_script"
  5420. done
  5421. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5422. { ac_script=; unset ac_script;}
  5423. if test -z "$SED"; then
  5424. ac_path_SED_found=false
  5425. # Loop through the user's path and test for each of PROGNAME-LIST
  5426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5427. for as_dir in $PATH
  5428. do
  5429. IFS=$as_save_IFS
  5430. test -z "$as_dir" && as_dir=.
  5431. for ac_prog in sed gsed; do
  5432. for ac_exec_ext in '' $ac_executable_extensions; do
  5433. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5434. as_fn_executable_p "$ac_path_SED" || continue
  5435. # Check for GNU ac_path_SED and select it if it is found.
  5436. # Check for GNU $ac_path_SED
  5437. case `"$ac_path_SED" --version 2>&1` in
  5438. *GNU*)
  5439. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5440. *)
  5441. ac_count=0
  5442. $as_echo_n 0123456789 >"conftest.in"
  5443. while :
  5444. do
  5445. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5446. mv "conftest.tmp" "conftest.in"
  5447. cp "conftest.in" "conftest.nl"
  5448. $as_echo '' >> "conftest.nl"
  5449. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5450. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5451. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5452. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5453. # Best one so far, save it but keep looking for a better one
  5454. ac_cv_path_SED="$ac_path_SED"
  5455. ac_path_SED_max=$ac_count
  5456. fi
  5457. # 10*(2^10) chars as input seems more than enough
  5458. test $ac_count -gt 10 && break
  5459. done
  5460. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5461. esac
  5462. $ac_path_SED_found && break 3
  5463. done
  5464. done
  5465. done
  5466. IFS=$as_save_IFS
  5467. if test -z "$ac_cv_path_SED"; then
  5468. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5469. fi
  5470. else
  5471. ac_cv_path_SED=$SED
  5472. fi
  5473. fi
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5475. $as_echo "$ac_cv_path_SED" >&6; }
  5476. SED="$ac_cv_path_SED"
  5477. rm -f conftest.sed
  5478. test -z "$SED" && SED=sed
  5479. Xsed="$SED -e 1s/^X//"
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5481. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5482. if ${ac_cv_path_GREP+:} false; then :
  5483. $as_echo_n "(cached) " >&6
  5484. else
  5485. if test -z "$GREP"; then
  5486. ac_path_GREP_found=false
  5487. # Loop through the user's path and test for each of PROGNAME-LIST
  5488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5489. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5490. do
  5491. IFS=$as_save_IFS
  5492. test -z "$as_dir" && as_dir=.
  5493. for ac_prog in grep ggrep; do
  5494. for ac_exec_ext in '' $ac_executable_extensions; do
  5495. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5496. as_fn_executable_p "$ac_path_GREP" || continue
  5497. # Check for GNU ac_path_GREP and select it if it is found.
  5498. # Check for GNU $ac_path_GREP
  5499. case `"$ac_path_GREP" --version 2>&1` in
  5500. *GNU*)
  5501. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5502. *)
  5503. ac_count=0
  5504. $as_echo_n 0123456789 >"conftest.in"
  5505. while :
  5506. do
  5507. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5508. mv "conftest.tmp" "conftest.in"
  5509. cp "conftest.in" "conftest.nl"
  5510. $as_echo 'GREP' >> "conftest.nl"
  5511. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5512. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5513. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5514. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5515. # Best one so far, save it but keep looking for a better one
  5516. ac_cv_path_GREP="$ac_path_GREP"
  5517. ac_path_GREP_max=$ac_count
  5518. fi
  5519. # 10*(2^10) chars as input seems more than enough
  5520. test $ac_count -gt 10 && break
  5521. done
  5522. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5523. esac
  5524. $ac_path_GREP_found && break 3
  5525. done
  5526. done
  5527. done
  5528. IFS=$as_save_IFS
  5529. if test -z "$ac_cv_path_GREP"; then
  5530. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5531. fi
  5532. else
  5533. ac_cv_path_GREP=$GREP
  5534. fi
  5535. fi
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5537. $as_echo "$ac_cv_path_GREP" >&6; }
  5538. GREP="$ac_cv_path_GREP"
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5540. $as_echo_n "checking for egrep... " >&6; }
  5541. if ${ac_cv_path_EGREP+:} false; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5545. then ac_cv_path_EGREP="$GREP -E"
  5546. else
  5547. if test -z "$EGREP"; then
  5548. ac_path_EGREP_found=false
  5549. # Loop through the user's path and test for each of PROGNAME-LIST
  5550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5551. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5552. do
  5553. IFS=$as_save_IFS
  5554. test -z "$as_dir" && as_dir=.
  5555. for ac_prog in egrep; do
  5556. for ac_exec_ext in '' $ac_executable_extensions; do
  5557. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5558. as_fn_executable_p "$ac_path_EGREP" || continue
  5559. # Check for GNU ac_path_EGREP and select it if it is found.
  5560. # Check for GNU $ac_path_EGREP
  5561. case `"$ac_path_EGREP" --version 2>&1` in
  5562. *GNU*)
  5563. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5564. *)
  5565. ac_count=0
  5566. $as_echo_n 0123456789 >"conftest.in"
  5567. while :
  5568. do
  5569. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5570. mv "conftest.tmp" "conftest.in"
  5571. cp "conftest.in" "conftest.nl"
  5572. $as_echo 'EGREP' >> "conftest.nl"
  5573. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5574. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5575. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5576. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5577. # Best one so far, save it but keep looking for a better one
  5578. ac_cv_path_EGREP="$ac_path_EGREP"
  5579. ac_path_EGREP_max=$ac_count
  5580. fi
  5581. # 10*(2^10) chars as input seems more than enough
  5582. test $ac_count -gt 10 && break
  5583. done
  5584. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5585. esac
  5586. $ac_path_EGREP_found && break 3
  5587. done
  5588. done
  5589. done
  5590. IFS=$as_save_IFS
  5591. if test -z "$ac_cv_path_EGREP"; then
  5592. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5593. fi
  5594. else
  5595. ac_cv_path_EGREP=$EGREP
  5596. fi
  5597. fi
  5598. fi
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5600. $as_echo "$ac_cv_path_EGREP" >&6; }
  5601. EGREP="$ac_cv_path_EGREP"
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5603. $as_echo_n "checking for fgrep... " >&6; }
  5604. if ${ac_cv_path_FGREP+:} false; then :
  5605. $as_echo_n "(cached) " >&6
  5606. else
  5607. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5608. then ac_cv_path_FGREP="$GREP -F"
  5609. else
  5610. if test -z "$FGREP"; then
  5611. ac_path_FGREP_found=false
  5612. # Loop through the user's path and test for each of PROGNAME-LIST
  5613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5614. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5615. do
  5616. IFS=$as_save_IFS
  5617. test -z "$as_dir" && as_dir=.
  5618. for ac_prog in fgrep; do
  5619. for ac_exec_ext in '' $ac_executable_extensions; do
  5620. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5621. as_fn_executable_p "$ac_path_FGREP" || continue
  5622. # Check for GNU ac_path_FGREP and select it if it is found.
  5623. # Check for GNU $ac_path_FGREP
  5624. case `"$ac_path_FGREP" --version 2>&1` in
  5625. *GNU*)
  5626. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5627. *)
  5628. ac_count=0
  5629. $as_echo_n 0123456789 >"conftest.in"
  5630. while :
  5631. do
  5632. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5633. mv "conftest.tmp" "conftest.in"
  5634. cp "conftest.in" "conftest.nl"
  5635. $as_echo 'FGREP' >> "conftest.nl"
  5636. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5637. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5638. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5639. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5640. # Best one so far, save it but keep looking for a better one
  5641. ac_cv_path_FGREP="$ac_path_FGREP"
  5642. ac_path_FGREP_max=$ac_count
  5643. fi
  5644. # 10*(2^10) chars as input seems more than enough
  5645. test $ac_count -gt 10 && break
  5646. done
  5647. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5648. esac
  5649. $ac_path_FGREP_found && break 3
  5650. done
  5651. done
  5652. done
  5653. IFS=$as_save_IFS
  5654. if test -z "$ac_cv_path_FGREP"; then
  5655. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5656. fi
  5657. else
  5658. ac_cv_path_FGREP=$FGREP
  5659. fi
  5660. fi
  5661. fi
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5663. $as_echo "$ac_cv_path_FGREP" >&6; }
  5664. FGREP="$ac_cv_path_FGREP"
  5665. test -z "$GREP" && GREP=grep
  5666. # Check whether --with-gnu-ld was given.
  5667. if test "${with_gnu_ld+set}" = set; then :
  5668. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5669. else
  5670. with_gnu_ld=no
  5671. fi
  5672. ac_prog=ld
  5673. if test yes = "$GCC"; then
  5674. # Check if gcc -print-prog-name=ld gives a path.
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5676. $as_echo_n "checking for ld used by $CC... " >&6; }
  5677. case $host in
  5678. *-*-mingw*)
  5679. # gcc leaves a trailing carriage return, which upsets mingw
  5680. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5681. *)
  5682. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5683. esac
  5684. case $ac_prog in
  5685. # Accept absolute paths.
  5686. [\\/]* | ?:[\\/]*)
  5687. re_direlt='/[^/][^/]*/\.\./'
  5688. # Canonicalize the pathname of ld
  5689. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5690. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5691. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5692. done
  5693. test -z "$LD" && LD=$ac_prog
  5694. ;;
  5695. "")
  5696. # If it fails, then pretend we aren't using GCC.
  5697. ac_prog=ld
  5698. ;;
  5699. *)
  5700. # If it is relative, then search for the first ld in PATH.
  5701. with_gnu_ld=unknown
  5702. ;;
  5703. esac
  5704. elif test yes = "$with_gnu_ld"; then
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5706. $as_echo_n "checking for GNU ld... " >&6; }
  5707. else
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5709. $as_echo_n "checking for non-GNU ld... " >&6; }
  5710. fi
  5711. if ${lt_cv_path_LD+:} false; then :
  5712. $as_echo_n "(cached) " >&6
  5713. else
  5714. if test -z "$LD"; then
  5715. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5716. for ac_dir in $PATH; do
  5717. IFS=$lt_save_ifs
  5718. test -z "$ac_dir" && ac_dir=.
  5719. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5720. lt_cv_path_LD=$ac_dir/$ac_prog
  5721. # Check to see if the program is GNU ld. I'd rather use --version,
  5722. # but apparently some variants of GNU ld only accept -v.
  5723. # Break only if it was the GNU/non-GNU ld that we prefer.
  5724. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5725. *GNU* | *'with BFD'*)
  5726. test no != "$with_gnu_ld" && break
  5727. ;;
  5728. *)
  5729. test yes != "$with_gnu_ld" && break
  5730. ;;
  5731. esac
  5732. fi
  5733. done
  5734. IFS=$lt_save_ifs
  5735. else
  5736. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5737. fi
  5738. fi
  5739. LD=$lt_cv_path_LD
  5740. if test -n "$LD"; then
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5742. $as_echo "$LD" >&6; }
  5743. else
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5745. $as_echo "no" >&6; }
  5746. fi
  5747. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5749. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5750. if ${lt_cv_prog_gnu_ld+:} false; then :
  5751. $as_echo_n "(cached) " >&6
  5752. else
  5753. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5754. case `$LD -v 2>&1 </dev/null` in
  5755. *GNU* | *'with BFD'*)
  5756. lt_cv_prog_gnu_ld=yes
  5757. ;;
  5758. *)
  5759. lt_cv_prog_gnu_ld=no
  5760. ;;
  5761. esac
  5762. fi
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5764. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5765. with_gnu_ld=$lt_cv_prog_gnu_ld
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5767. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5768. if ${lt_cv_path_NM+:} false; then :
  5769. $as_echo_n "(cached) " >&6
  5770. else
  5771. if test -n "$NM"; then
  5772. # Let the user override the test.
  5773. lt_cv_path_NM=$NM
  5774. else
  5775. lt_nm_to_check=${ac_tool_prefix}nm
  5776. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5777. lt_nm_to_check="$lt_nm_to_check nm"
  5778. fi
  5779. for lt_tmp_nm in $lt_nm_to_check; do
  5780. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5781. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5782. IFS=$lt_save_ifs
  5783. test -z "$ac_dir" && ac_dir=.
  5784. tmp_nm=$ac_dir/$lt_tmp_nm
  5785. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5786. # Check to see if the nm accepts a BSD-compat flag.
  5787. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5788. # nm: unknown option "B" ignored
  5789. # Tru64's nm complains that /dev/null is an invalid object file
  5790. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5791. case $build_os in
  5792. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5793. *) lt_bad_file=/dev/null ;;
  5794. esac
  5795. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5796. *$lt_bad_file* | *'Invalid file or object type'*)
  5797. lt_cv_path_NM="$tmp_nm -B"
  5798. break 2
  5799. ;;
  5800. *)
  5801. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5802. */dev/null*)
  5803. lt_cv_path_NM="$tmp_nm -p"
  5804. break 2
  5805. ;;
  5806. *)
  5807. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5808. continue # so that we can try to find one that supports BSD flags
  5809. ;;
  5810. esac
  5811. ;;
  5812. esac
  5813. fi
  5814. done
  5815. IFS=$lt_save_ifs
  5816. done
  5817. : ${lt_cv_path_NM=no}
  5818. fi
  5819. fi
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5821. $as_echo "$lt_cv_path_NM" >&6; }
  5822. if test no != "$lt_cv_path_NM"; then
  5823. NM=$lt_cv_path_NM
  5824. else
  5825. # Didn't find any BSD compatible name lister, look for dumpbin.
  5826. if test -n "$DUMPBIN"; then :
  5827. # Let the user override the test.
  5828. else
  5829. if test -n "$ac_tool_prefix"; then
  5830. for ac_prog in dumpbin "link -dump"
  5831. do
  5832. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5833. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5835. $as_echo_n "checking for $ac_word... " >&6; }
  5836. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5837. $as_echo_n "(cached) " >&6
  5838. else
  5839. if test -n "$DUMPBIN"; then
  5840. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5841. else
  5842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5843. for as_dir in $PATH
  5844. do
  5845. IFS=$as_save_IFS
  5846. test -z "$as_dir" && as_dir=.
  5847. for ac_exec_ext in '' $ac_executable_extensions; do
  5848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5849. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5851. break 2
  5852. fi
  5853. done
  5854. done
  5855. IFS=$as_save_IFS
  5856. fi
  5857. fi
  5858. DUMPBIN=$ac_cv_prog_DUMPBIN
  5859. if test -n "$DUMPBIN"; then
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5861. $as_echo "$DUMPBIN" >&6; }
  5862. else
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5864. $as_echo "no" >&6; }
  5865. fi
  5866. test -n "$DUMPBIN" && break
  5867. done
  5868. fi
  5869. if test -z "$DUMPBIN"; then
  5870. ac_ct_DUMPBIN=$DUMPBIN
  5871. for ac_prog in dumpbin "link -dump"
  5872. do
  5873. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5874. set dummy $ac_prog; ac_word=$2
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5876. $as_echo_n "checking for $ac_word... " >&6; }
  5877. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5878. $as_echo_n "(cached) " >&6
  5879. else
  5880. if test -n "$ac_ct_DUMPBIN"; then
  5881. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5882. else
  5883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5884. for as_dir in $PATH
  5885. do
  5886. IFS=$as_save_IFS
  5887. test -z "$as_dir" && as_dir=.
  5888. for ac_exec_ext in '' $ac_executable_extensions; do
  5889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5890. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5892. break 2
  5893. fi
  5894. done
  5895. done
  5896. IFS=$as_save_IFS
  5897. fi
  5898. fi
  5899. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5900. if test -n "$ac_ct_DUMPBIN"; then
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5902. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5903. else
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5905. $as_echo "no" >&6; }
  5906. fi
  5907. test -n "$ac_ct_DUMPBIN" && break
  5908. done
  5909. if test "x$ac_ct_DUMPBIN" = x; then
  5910. DUMPBIN=":"
  5911. else
  5912. case $cross_compiling:$ac_tool_warned in
  5913. yes:)
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5915. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5916. ac_tool_warned=yes ;;
  5917. esac
  5918. DUMPBIN=$ac_ct_DUMPBIN
  5919. fi
  5920. fi
  5921. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5922. *COFF*)
  5923. DUMPBIN="$DUMPBIN -symbols -headers"
  5924. ;;
  5925. *)
  5926. DUMPBIN=:
  5927. ;;
  5928. esac
  5929. fi
  5930. if test : != "$DUMPBIN"; then
  5931. NM=$DUMPBIN
  5932. fi
  5933. fi
  5934. test -z "$NM" && NM=nm
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5936. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5937. if ${lt_cv_nm_interface+:} false; then :
  5938. $as_echo_n "(cached) " >&6
  5939. else
  5940. lt_cv_nm_interface="BSD nm"
  5941. echo "int some_variable = 0;" > conftest.$ac_ext
  5942. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5943. (eval "$ac_compile" 2>conftest.err)
  5944. cat conftest.err >&5
  5945. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5946. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5947. cat conftest.err >&5
  5948. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5949. cat conftest.out >&5
  5950. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5951. lt_cv_nm_interface="MS dumpbin"
  5952. fi
  5953. rm -f conftest*
  5954. fi
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5956. $as_echo "$lt_cv_nm_interface" >&6; }
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5958. $as_echo_n "checking whether ln -s works... " >&6; }
  5959. LN_S=$as_ln_s
  5960. if test "$LN_S" = "ln -s"; then
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5962. $as_echo "yes" >&6; }
  5963. else
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5965. $as_echo "no, using $LN_S" >&6; }
  5966. fi
  5967. # find the maximum length of command line arguments
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5969. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5970. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5971. $as_echo_n "(cached) " >&6
  5972. else
  5973. i=0
  5974. teststring=ABCD
  5975. case $build_os in
  5976. msdosdjgpp*)
  5977. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5978. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5979. # during glob expansion). Even if it were fixed, the result of this
  5980. # check would be larger than it should be.
  5981. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5982. ;;
  5983. gnu*)
  5984. # Under GNU Hurd, this test is not required because there is
  5985. # no limit to the length of command line arguments.
  5986. # Libtool will interpret -1 as no limit whatsoever
  5987. lt_cv_sys_max_cmd_len=-1;
  5988. ;;
  5989. cygwin* | mingw* | cegcc*)
  5990. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5991. # about 5 minutes as the teststring grows exponentially.
  5992. # Worse, since 9x/ME are not pre-emptively multitasking,
  5993. # you end up with a "frozen" computer, even though with patience
  5994. # the test eventually succeeds (with a max line length of 256k).
  5995. # Instead, let's just punt: use the minimum linelength reported by
  5996. # all of the supported platforms: 8192 (on NT/2K/XP).
  5997. lt_cv_sys_max_cmd_len=8192;
  5998. ;;
  5999. mint*)
  6000. # On MiNT this can take a long time and run out of memory.
  6001. lt_cv_sys_max_cmd_len=8192;
  6002. ;;
  6003. amigaos*)
  6004. # On AmigaOS with pdksh, this test takes hours, literally.
  6005. # So we just punt and use a minimum line length of 8192.
  6006. lt_cv_sys_max_cmd_len=8192;
  6007. ;;
  6008. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  6009. # This has been around since 386BSD, at least. Likely further.
  6010. if test -x /sbin/sysctl; then
  6011. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6012. elif test -x /usr/sbin/sysctl; then
  6013. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6014. else
  6015. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6016. fi
  6017. # And add a safety zone
  6018. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6019. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6020. ;;
  6021. interix*)
  6022. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6023. lt_cv_sys_max_cmd_len=196608
  6024. ;;
  6025. os2*)
  6026. # The test takes a long time on OS/2.
  6027. lt_cv_sys_max_cmd_len=8192
  6028. ;;
  6029. osf*)
  6030. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6031. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6032. # nice to cause kernel panics so lets avoid the loop below.
  6033. # First set a reasonable default.
  6034. lt_cv_sys_max_cmd_len=16384
  6035. #
  6036. if test -x /sbin/sysconfig; then
  6037. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6038. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6039. esac
  6040. fi
  6041. ;;
  6042. sco3.2v5*)
  6043. lt_cv_sys_max_cmd_len=102400
  6044. ;;
  6045. sysv5* | sco5v6* | sysv4.2uw2*)
  6046. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6047. if test -n "$kargmax"; then
  6048. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6049. else
  6050. lt_cv_sys_max_cmd_len=32768
  6051. fi
  6052. ;;
  6053. *)
  6054. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6055. if test -n "$lt_cv_sys_max_cmd_len" && \
  6056. test undefined != "$lt_cv_sys_max_cmd_len"; then
  6057. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6058. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6059. else
  6060. # Make teststring a little bigger before we do anything with it.
  6061. # a 1K string should be a reasonable start.
  6062. for i in 1 2 3 4 5 6 7 8; do
  6063. teststring=$teststring$teststring
  6064. done
  6065. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6066. # If test is not a shell built-in, we'll probably end up computing a
  6067. # maximum length that is only half of the actual maximum length, but
  6068. # we can't tell.
  6069. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  6070. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6071. test 17 != "$i" # 1/2 MB should be enough
  6072. do
  6073. i=`expr $i + 1`
  6074. teststring=$teststring$teststring
  6075. done
  6076. # Only check the string length outside the loop.
  6077. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6078. teststring=
  6079. # Add a significant safety factor because C++ compilers can tack on
  6080. # massive amounts of additional arguments before passing them to the
  6081. # linker. It appears as though 1/2 is a usable value.
  6082. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6083. fi
  6084. ;;
  6085. esac
  6086. fi
  6087. if test -n "$lt_cv_sys_max_cmd_len"; then
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6089. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6090. else
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6092. $as_echo "none" >&6; }
  6093. fi
  6094. max_cmd_len=$lt_cv_sys_max_cmd_len
  6095. : ${CP="cp -f"}
  6096. : ${MV="mv -f"}
  6097. : ${RM="rm -f"}
  6098. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6099. lt_unset=unset
  6100. else
  6101. lt_unset=false
  6102. fi
  6103. # test EBCDIC or ASCII
  6104. case `echo X|tr X '\101'` in
  6105. A) # ASCII based system
  6106. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6107. lt_SP2NL='tr \040 \012'
  6108. lt_NL2SP='tr \015\012 \040\040'
  6109. ;;
  6110. *) # EBCDIC based system
  6111. lt_SP2NL='tr \100 \n'
  6112. lt_NL2SP='tr \r\n \100\100'
  6113. ;;
  6114. esac
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6116. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  6117. if ${lt_cv_to_host_file_cmd+:} false; then :
  6118. $as_echo_n "(cached) " >&6
  6119. else
  6120. case $host in
  6121. *-*-mingw* )
  6122. case $build in
  6123. *-*-mingw* ) # actually msys
  6124. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6125. ;;
  6126. *-*-cygwin* )
  6127. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6128. ;;
  6129. * ) # otherwise, assume *nix
  6130. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6131. ;;
  6132. esac
  6133. ;;
  6134. *-*-cygwin* )
  6135. case $build in
  6136. *-*-mingw* ) # actually msys
  6137. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6138. ;;
  6139. *-*-cygwin* )
  6140. lt_cv_to_host_file_cmd=func_convert_file_noop
  6141. ;;
  6142. * ) # otherwise, assume *nix
  6143. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6144. ;;
  6145. esac
  6146. ;;
  6147. * ) # unhandled hosts (and "normal" native builds)
  6148. lt_cv_to_host_file_cmd=func_convert_file_noop
  6149. ;;
  6150. esac
  6151. fi
  6152. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6154. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6156. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  6157. if ${lt_cv_to_tool_file_cmd+:} false; then :
  6158. $as_echo_n "(cached) " >&6
  6159. else
  6160. #assume ordinary cross tools, or native build.
  6161. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6162. case $host in
  6163. *-*-mingw* )
  6164. case $build in
  6165. *-*-mingw* ) # actually msys
  6166. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6167. ;;
  6168. esac
  6169. ;;
  6170. esac
  6171. fi
  6172. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6174. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6176. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6177. if ${lt_cv_ld_reload_flag+:} false; then :
  6178. $as_echo_n "(cached) " >&6
  6179. else
  6180. lt_cv_ld_reload_flag='-r'
  6181. fi
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6183. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6184. reload_flag=$lt_cv_ld_reload_flag
  6185. case $reload_flag in
  6186. "" | " "*) ;;
  6187. *) reload_flag=" $reload_flag" ;;
  6188. esac
  6189. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6190. case $host_os in
  6191. cygwin* | mingw* | pw32* | cegcc*)
  6192. if test yes != "$GCC"; then
  6193. reload_cmds=false
  6194. fi
  6195. ;;
  6196. darwin*)
  6197. if test yes = "$GCC"; then
  6198. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  6199. else
  6200. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6201. fi
  6202. ;;
  6203. esac
  6204. if test -n "$ac_tool_prefix"; then
  6205. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6206. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6208. $as_echo_n "checking for $ac_word... " >&6; }
  6209. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6210. $as_echo_n "(cached) " >&6
  6211. else
  6212. if test -n "$OBJDUMP"; then
  6213. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6214. else
  6215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6216. for as_dir in $PATH
  6217. do
  6218. IFS=$as_save_IFS
  6219. test -z "$as_dir" && as_dir=.
  6220. for ac_exec_ext in '' $ac_executable_extensions; do
  6221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6222. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6224. break 2
  6225. fi
  6226. done
  6227. done
  6228. IFS=$as_save_IFS
  6229. fi
  6230. fi
  6231. OBJDUMP=$ac_cv_prog_OBJDUMP
  6232. if test -n "$OBJDUMP"; then
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6234. $as_echo "$OBJDUMP" >&6; }
  6235. else
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6237. $as_echo "no" >&6; }
  6238. fi
  6239. fi
  6240. if test -z "$ac_cv_prog_OBJDUMP"; then
  6241. ac_ct_OBJDUMP=$OBJDUMP
  6242. # Extract the first word of "objdump", so it can be a program name with args.
  6243. set dummy objdump; ac_word=$2
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6245. $as_echo_n "checking for $ac_word... " >&6; }
  6246. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6247. $as_echo_n "(cached) " >&6
  6248. else
  6249. if test -n "$ac_ct_OBJDUMP"; then
  6250. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6251. else
  6252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6253. for as_dir in $PATH
  6254. do
  6255. IFS=$as_save_IFS
  6256. test -z "$as_dir" && as_dir=.
  6257. for ac_exec_ext in '' $ac_executable_extensions; do
  6258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6259. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6261. break 2
  6262. fi
  6263. done
  6264. done
  6265. IFS=$as_save_IFS
  6266. fi
  6267. fi
  6268. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6269. if test -n "$ac_ct_OBJDUMP"; then
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6271. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6272. else
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6274. $as_echo "no" >&6; }
  6275. fi
  6276. if test "x$ac_ct_OBJDUMP" = x; then
  6277. OBJDUMP="false"
  6278. else
  6279. case $cross_compiling:$ac_tool_warned in
  6280. yes:)
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6282. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6283. ac_tool_warned=yes ;;
  6284. esac
  6285. OBJDUMP=$ac_ct_OBJDUMP
  6286. fi
  6287. else
  6288. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6289. fi
  6290. test -z "$OBJDUMP" && OBJDUMP=objdump
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6292. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6293. if ${lt_cv_deplibs_check_method+:} false; then :
  6294. $as_echo_n "(cached) " >&6
  6295. else
  6296. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6297. lt_cv_file_magic_test_file=
  6298. lt_cv_deplibs_check_method='unknown'
  6299. # Need to set the preceding variable on all platforms that support
  6300. # interlibrary dependencies.
  6301. # 'none' -- dependencies not supported.
  6302. # 'unknown' -- same as none, but documents that we really don't know.
  6303. # 'pass_all' -- all dependencies passed with no checks.
  6304. # 'test_compile' -- check by making test program.
  6305. # 'file_magic [[regex]]' -- check by looking for files in library path
  6306. # that responds to the $file_magic_cmd with a given extended regex.
  6307. # If you have 'file' or equivalent on your system and you're not sure
  6308. # whether 'pass_all' will *always* work, you probably want this one.
  6309. case $host_os in
  6310. aix[4-9]*)
  6311. lt_cv_deplibs_check_method=pass_all
  6312. ;;
  6313. beos*)
  6314. lt_cv_deplibs_check_method=pass_all
  6315. ;;
  6316. bsdi[45]*)
  6317. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6318. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6319. lt_cv_file_magic_test_file=/shlib/libc.so
  6320. ;;
  6321. cygwin*)
  6322. # func_win32_libid is a shell function defined in ltmain.sh
  6323. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6324. lt_cv_file_magic_cmd='func_win32_libid'
  6325. ;;
  6326. mingw* | pw32*)
  6327. # Base MSYS/MinGW do not provide the 'file' command needed by
  6328. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6329. # unless we find 'file', for example because we are cross-compiling.
  6330. if ( file / ) >/dev/null 2>&1; then
  6331. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6332. lt_cv_file_magic_cmd='func_win32_libid'
  6333. else
  6334. # Keep this pattern in sync with the one in func_win32_libid.
  6335. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6336. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6337. fi
  6338. ;;
  6339. cegcc*)
  6340. # use the weaker test based on 'objdump'. See mingw*.
  6341. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6342. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6343. ;;
  6344. darwin* | rhapsody*)
  6345. lt_cv_deplibs_check_method=pass_all
  6346. ;;
  6347. freebsd* | dragonfly*)
  6348. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6349. case $host_cpu in
  6350. i*86 )
  6351. # Not sure whether the presence of OpenBSD here was a mistake.
  6352. # Let's accept both of them until this is cleared up.
  6353. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6354. lt_cv_file_magic_cmd=/usr/bin/file
  6355. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6356. ;;
  6357. esac
  6358. else
  6359. lt_cv_deplibs_check_method=pass_all
  6360. fi
  6361. ;;
  6362. haiku*)
  6363. lt_cv_deplibs_check_method=pass_all
  6364. ;;
  6365. hpux10.20* | hpux11*)
  6366. lt_cv_file_magic_cmd=/usr/bin/file
  6367. case $host_cpu in
  6368. ia64*)
  6369. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6370. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6371. ;;
  6372. hppa*64*)
  6373. 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]'
  6374. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6375. ;;
  6376. *)
  6377. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6378. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6379. ;;
  6380. esac
  6381. ;;
  6382. interix[3-9]*)
  6383. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6384. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6385. ;;
  6386. irix5* | irix6* | nonstopux*)
  6387. case $LD in
  6388. *-32|*"-32 ") libmagic=32-bit;;
  6389. *-n32|*"-n32 ") libmagic=N32;;
  6390. *-64|*"-64 ") libmagic=64-bit;;
  6391. *) libmagic=never-match;;
  6392. esac
  6393. lt_cv_deplibs_check_method=pass_all
  6394. ;;
  6395. # This must be glibc/ELF.
  6396. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6397. lt_cv_deplibs_check_method=pass_all
  6398. ;;
  6399. netbsd* | netbsdelf*-gnu)
  6400. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6401. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6402. else
  6403. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6404. fi
  6405. ;;
  6406. newos6*)
  6407. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6408. lt_cv_file_magic_cmd=/usr/bin/file
  6409. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6410. ;;
  6411. *nto* | *qnx*)
  6412. lt_cv_deplibs_check_method=pass_all
  6413. ;;
  6414. openbsd* | bitrig*)
  6415. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6416. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6417. else
  6418. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6419. fi
  6420. ;;
  6421. osf3* | osf4* | osf5*)
  6422. lt_cv_deplibs_check_method=pass_all
  6423. ;;
  6424. rdos*)
  6425. lt_cv_deplibs_check_method=pass_all
  6426. ;;
  6427. solaris*)
  6428. lt_cv_deplibs_check_method=pass_all
  6429. ;;
  6430. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6431. lt_cv_deplibs_check_method=pass_all
  6432. ;;
  6433. sysv4 | sysv4.3*)
  6434. case $host_vendor in
  6435. motorola)
  6436. 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]'
  6437. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6438. ;;
  6439. ncr)
  6440. lt_cv_deplibs_check_method=pass_all
  6441. ;;
  6442. sequent)
  6443. lt_cv_file_magic_cmd='/bin/file'
  6444. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6445. ;;
  6446. sni)
  6447. lt_cv_file_magic_cmd='/bin/file'
  6448. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6449. lt_cv_file_magic_test_file=/lib/libc.so
  6450. ;;
  6451. siemens)
  6452. lt_cv_deplibs_check_method=pass_all
  6453. ;;
  6454. pc)
  6455. lt_cv_deplibs_check_method=pass_all
  6456. ;;
  6457. esac
  6458. ;;
  6459. tpf*)
  6460. lt_cv_deplibs_check_method=pass_all
  6461. ;;
  6462. os2*)
  6463. lt_cv_deplibs_check_method=pass_all
  6464. ;;
  6465. esac
  6466. fi
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6468. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6469. file_magic_glob=
  6470. want_nocaseglob=no
  6471. if test "$build" = "$host"; then
  6472. case $host_os in
  6473. mingw* | pw32*)
  6474. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6475. want_nocaseglob=yes
  6476. else
  6477. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6478. fi
  6479. ;;
  6480. esac
  6481. fi
  6482. file_magic_cmd=$lt_cv_file_magic_cmd
  6483. deplibs_check_method=$lt_cv_deplibs_check_method
  6484. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6485. if test -n "$ac_tool_prefix"; then
  6486. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6487. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6489. $as_echo_n "checking for $ac_word... " >&6; }
  6490. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6491. $as_echo_n "(cached) " >&6
  6492. else
  6493. if test -n "$DLLTOOL"; then
  6494. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6495. else
  6496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6497. for as_dir in $PATH
  6498. do
  6499. IFS=$as_save_IFS
  6500. test -z "$as_dir" && as_dir=.
  6501. for ac_exec_ext in '' $ac_executable_extensions; do
  6502. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6503. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6505. break 2
  6506. fi
  6507. done
  6508. done
  6509. IFS=$as_save_IFS
  6510. fi
  6511. fi
  6512. DLLTOOL=$ac_cv_prog_DLLTOOL
  6513. if test -n "$DLLTOOL"; then
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6515. $as_echo "$DLLTOOL" >&6; }
  6516. else
  6517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6518. $as_echo "no" >&6; }
  6519. fi
  6520. fi
  6521. if test -z "$ac_cv_prog_DLLTOOL"; then
  6522. ac_ct_DLLTOOL=$DLLTOOL
  6523. # Extract the first word of "dlltool", so it can be a program name with args.
  6524. set dummy dlltool; ac_word=$2
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6526. $as_echo_n "checking for $ac_word... " >&6; }
  6527. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6528. $as_echo_n "(cached) " >&6
  6529. else
  6530. if test -n "$ac_ct_DLLTOOL"; then
  6531. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6532. else
  6533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6534. for as_dir in $PATH
  6535. do
  6536. IFS=$as_save_IFS
  6537. test -z "$as_dir" && as_dir=.
  6538. for ac_exec_ext in '' $ac_executable_extensions; do
  6539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6540. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6542. break 2
  6543. fi
  6544. done
  6545. done
  6546. IFS=$as_save_IFS
  6547. fi
  6548. fi
  6549. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6550. if test -n "$ac_ct_DLLTOOL"; then
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6552. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6553. else
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6555. $as_echo "no" >&6; }
  6556. fi
  6557. if test "x$ac_ct_DLLTOOL" = x; then
  6558. DLLTOOL="false"
  6559. else
  6560. case $cross_compiling:$ac_tool_warned in
  6561. yes:)
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6563. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6564. ac_tool_warned=yes ;;
  6565. esac
  6566. DLLTOOL=$ac_ct_DLLTOOL
  6567. fi
  6568. else
  6569. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6570. fi
  6571. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6573. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6574. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6575. $as_echo_n "(cached) " >&6
  6576. else
  6577. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6578. case $host_os in
  6579. cygwin* | mingw* | pw32* | cegcc*)
  6580. # two different shell functions defined in ltmain.sh;
  6581. # decide which one to use based on capabilities of $DLLTOOL
  6582. case `$DLLTOOL --help 2>&1` in
  6583. *--identify-strict*)
  6584. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6585. ;;
  6586. *)
  6587. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6588. ;;
  6589. esac
  6590. ;;
  6591. *)
  6592. # fallback: assume linklib IS sharedlib
  6593. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6594. ;;
  6595. esac
  6596. fi
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6598. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6599. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6600. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6601. if test -n "$ac_tool_prefix"; then
  6602. for ac_prog in ar
  6603. do
  6604. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6605. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6607. $as_echo_n "checking for $ac_word... " >&6; }
  6608. if ${ac_cv_prog_AR+:} false; then :
  6609. $as_echo_n "(cached) " >&6
  6610. else
  6611. if test -n "$AR"; then
  6612. ac_cv_prog_AR="$AR" # Let the user override the test.
  6613. else
  6614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6615. for as_dir in $PATH
  6616. do
  6617. IFS=$as_save_IFS
  6618. test -z "$as_dir" && as_dir=.
  6619. for ac_exec_ext in '' $ac_executable_extensions; do
  6620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6621. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6623. break 2
  6624. fi
  6625. done
  6626. done
  6627. IFS=$as_save_IFS
  6628. fi
  6629. fi
  6630. AR=$ac_cv_prog_AR
  6631. if test -n "$AR"; then
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6633. $as_echo "$AR" >&6; }
  6634. else
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6636. $as_echo "no" >&6; }
  6637. fi
  6638. test -n "$AR" && break
  6639. done
  6640. fi
  6641. if test -z "$AR"; then
  6642. ac_ct_AR=$AR
  6643. for ac_prog in ar
  6644. do
  6645. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6646. set dummy $ac_prog; ac_word=$2
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6648. $as_echo_n "checking for $ac_word... " >&6; }
  6649. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6650. $as_echo_n "(cached) " >&6
  6651. else
  6652. if test -n "$ac_ct_AR"; then
  6653. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6654. else
  6655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6656. for as_dir in $PATH
  6657. do
  6658. IFS=$as_save_IFS
  6659. test -z "$as_dir" && as_dir=.
  6660. for ac_exec_ext in '' $ac_executable_extensions; do
  6661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6662. ac_cv_prog_ac_ct_AR="$ac_prog"
  6663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6664. break 2
  6665. fi
  6666. done
  6667. done
  6668. IFS=$as_save_IFS
  6669. fi
  6670. fi
  6671. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6672. if test -n "$ac_ct_AR"; then
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6674. $as_echo "$ac_ct_AR" >&6; }
  6675. else
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6677. $as_echo "no" >&6; }
  6678. fi
  6679. test -n "$ac_ct_AR" && break
  6680. done
  6681. if test "x$ac_ct_AR" = x; then
  6682. AR="false"
  6683. else
  6684. case $cross_compiling:$ac_tool_warned in
  6685. yes:)
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6687. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6688. ac_tool_warned=yes ;;
  6689. esac
  6690. AR=$ac_ct_AR
  6691. fi
  6692. fi
  6693. : ${AR=ar}
  6694. : ${AR_FLAGS=cru}
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6696. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6697. if ${lt_cv_ar_at_file+:} false; then :
  6698. $as_echo_n "(cached) " >&6
  6699. else
  6700. lt_cv_ar_at_file=no
  6701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6702. /* end confdefs.h. */
  6703. int
  6704. main ()
  6705. {
  6706. ;
  6707. return 0;
  6708. }
  6709. _ACEOF
  6710. if ac_fn_c_try_compile "$LINENO"; then :
  6711. echo conftest.$ac_objext > conftest.lst
  6712. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6713. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6714. (eval $lt_ar_try) 2>&5
  6715. ac_status=$?
  6716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6717. test $ac_status = 0; }
  6718. if test 0 -eq "$ac_status"; then
  6719. # Ensure the archiver fails upon bogus file names.
  6720. rm -f conftest.$ac_objext libconftest.a
  6721. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6722. (eval $lt_ar_try) 2>&5
  6723. ac_status=$?
  6724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6725. test $ac_status = 0; }
  6726. if test 0 -ne "$ac_status"; then
  6727. lt_cv_ar_at_file=@
  6728. fi
  6729. fi
  6730. rm -f conftest.* libconftest.a
  6731. fi
  6732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6733. fi
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6735. $as_echo "$lt_cv_ar_at_file" >&6; }
  6736. if test no = "$lt_cv_ar_at_file"; then
  6737. archiver_list_spec=
  6738. else
  6739. archiver_list_spec=$lt_cv_ar_at_file
  6740. fi
  6741. if test -n "$ac_tool_prefix"; then
  6742. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6743. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6745. $as_echo_n "checking for $ac_word... " >&6; }
  6746. if ${ac_cv_prog_STRIP+:} false; then :
  6747. $as_echo_n "(cached) " >&6
  6748. else
  6749. if test -n "$STRIP"; then
  6750. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6751. else
  6752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6753. for as_dir in $PATH
  6754. do
  6755. IFS=$as_save_IFS
  6756. test -z "$as_dir" && as_dir=.
  6757. for ac_exec_ext in '' $ac_executable_extensions; do
  6758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6759. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6761. break 2
  6762. fi
  6763. done
  6764. done
  6765. IFS=$as_save_IFS
  6766. fi
  6767. fi
  6768. STRIP=$ac_cv_prog_STRIP
  6769. if test -n "$STRIP"; then
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6771. $as_echo "$STRIP" >&6; }
  6772. else
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6774. $as_echo "no" >&6; }
  6775. fi
  6776. fi
  6777. if test -z "$ac_cv_prog_STRIP"; then
  6778. ac_ct_STRIP=$STRIP
  6779. # Extract the first word of "strip", so it can be a program name with args.
  6780. set dummy strip; ac_word=$2
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6782. $as_echo_n "checking for $ac_word... " >&6; }
  6783. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6784. $as_echo_n "(cached) " >&6
  6785. else
  6786. if test -n "$ac_ct_STRIP"; then
  6787. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6788. else
  6789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6790. for as_dir in $PATH
  6791. do
  6792. IFS=$as_save_IFS
  6793. test -z "$as_dir" && as_dir=.
  6794. for ac_exec_ext in '' $ac_executable_extensions; do
  6795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6796. ac_cv_prog_ac_ct_STRIP="strip"
  6797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6798. break 2
  6799. fi
  6800. done
  6801. done
  6802. IFS=$as_save_IFS
  6803. fi
  6804. fi
  6805. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6806. if test -n "$ac_ct_STRIP"; then
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6808. $as_echo "$ac_ct_STRIP" >&6; }
  6809. else
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6811. $as_echo "no" >&6; }
  6812. fi
  6813. if test "x$ac_ct_STRIP" = x; then
  6814. STRIP=":"
  6815. else
  6816. case $cross_compiling:$ac_tool_warned in
  6817. yes:)
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6820. ac_tool_warned=yes ;;
  6821. esac
  6822. STRIP=$ac_ct_STRIP
  6823. fi
  6824. else
  6825. STRIP="$ac_cv_prog_STRIP"
  6826. fi
  6827. test -z "$STRIP" && STRIP=:
  6828. if test -n "$ac_tool_prefix"; then
  6829. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6830. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6832. $as_echo_n "checking for $ac_word... " >&6; }
  6833. if ${ac_cv_prog_RANLIB+:} false; then :
  6834. $as_echo_n "(cached) " >&6
  6835. else
  6836. if test -n "$RANLIB"; then
  6837. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6838. else
  6839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6840. for as_dir in $PATH
  6841. do
  6842. IFS=$as_save_IFS
  6843. test -z "$as_dir" && as_dir=.
  6844. for ac_exec_ext in '' $ac_executable_extensions; do
  6845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6846. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6848. break 2
  6849. fi
  6850. done
  6851. done
  6852. IFS=$as_save_IFS
  6853. fi
  6854. fi
  6855. RANLIB=$ac_cv_prog_RANLIB
  6856. if test -n "$RANLIB"; then
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6858. $as_echo "$RANLIB" >&6; }
  6859. else
  6860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6861. $as_echo "no" >&6; }
  6862. fi
  6863. fi
  6864. if test -z "$ac_cv_prog_RANLIB"; then
  6865. ac_ct_RANLIB=$RANLIB
  6866. # Extract the first word of "ranlib", so it can be a program name with args.
  6867. set dummy ranlib; ac_word=$2
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6869. $as_echo_n "checking for $ac_word... " >&6; }
  6870. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6871. $as_echo_n "(cached) " >&6
  6872. else
  6873. if test -n "$ac_ct_RANLIB"; then
  6874. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6875. else
  6876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6877. for as_dir in $PATH
  6878. do
  6879. IFS=$as_save_IFS
  6880. test -z "$as_dir" && as_dir=.
  6881. for ac_exec_ext in '' $ac_executable_extensions; do
  6882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6883. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6885. break 2
  6886. fi
  6887. done
  6888. done
  6889. IFS=$as_save_IFS
  6890. fi
  6891. fi
  6892. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6893. if test -n "$ac_ct_RANLIB"; then
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6895. $as_echo "$ac_ct_RANLIB" >&6; }
  6896. else
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6898. $as_echo "no" >&6; }
  6899. fi
  6900. if test "x$ac_ct_RANLIB" = x; then
  6901. RANLIB=":"
  6902. else
  6903. case $cross_compiling:$ac_tool_warned in
  6904. yes:)
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6906. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6907. ac_tool_warned=yes ;;
  6908. esac
  6909. RANLIB=$ac_ct_RANLIB
  6910. fi
  6911. else
  6912. RANLIB="$ac_cv_prog_RANLIB"
  6913. fi
  6914. test -z "$RANLIB" && RANLIB=:
  6915. # Determine commands to create old-style static archives.
  6916. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6917. old_postinstall_cmds='chmod 644 $oldlib'
  6918. old_postuninstall_cmds=
  6919. if test -n "$RANLIB"; then
  6920. case $host_os in
  6921. bitrig* | openbsd*)
  6922. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6923. ;;
  6924. *)
  6925. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6926. ;;
  6927. esac
  6928. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6929. fi
  6930. case $host_os in
  6931. darwin*)
  6932. lock_old_archive_extraction=yes ;;
  6933. *)
  6934. lock_old_archive_extraction=no ;;
  6935. esac
  6936. # If no C compiler was specified, use CC.
  6937. LTCC=${LTCC-"$CC"}
  6938. # If no C compiler flags were specified, use CFLAGS.
  6939. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6940. # Allow CC to be a program name with arguments.
  6941. compiler=$CC
  6942. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6944. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6945. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6946. $as_echo_n "(cached) " >&6
  6947. else
  6948. # These are sane defaults that work on at least a few old systems.
  6949. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6950. # Character class describing NM global symbol codes.
  6951. symcode='[BCDEGRST]'
  6952. # Regexp to match symbols that can be accessed directly from C.
  6953. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6954. # Define system-specific variables.
  6955. case $host_os in
  6956. aix*)
  6957. symcode='[BCDT]'
  6958. ;;
  6959. cygwin* | mingw* | pw32* | cegcc*)
  6960. symcode='[ABCDGISTW]'
  6961. ;;
  6962. hpux*)
  6963. if test ia64 = "$host_cpu"; then
  6964. symcode='[ABCDEGRST]'
  6965. fi
  6966. ;;
  6967. irix* | nonstopux*)
  6968. symcode='[BCDEGRST]'
  6969. ;;
  6970. osf*)
  6971. symcode='[BCDEGQRST]'
  6972. ;;
  6973. solaris*)
  6974. symcode='[BDRT]'
  6975. ;;
  6976. sco3.2v5*)
  6977. symcode='[DT]'
  6978. ;;
  6979. sysv4.2uw2*)
  6980. symcode='[DT]'
  6981. ;;
  6982. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6983. symcode='[ABDT]'
  6984. ;;
  6985. sysv4)
  6986. symcode='[DFNSTU]'
  6987. ;;
  6988. esac
  6989. # If we're using GNU nm, then use its standard symbol codes.
  6990. case `$NM -V 2>&1` in
  6991. *GNU* | *'with BFD'*)
  6992. symcode='[ABCDGIRSTW]' ;;
  6993. esac
  6994. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6995. # Gets list of data symbols to import.
  6996. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6997. # Adjust the below global symbol transforms to fixup imported variables.
  6998. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6999. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  7000. lt_c_name_lib_hook="\
  7001. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  7002. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  7003. else
  7004. # Disable hooks by default.
  7005. lt_cv_sys_global_symbol_to_import=
  7006. lt_cdecl_hook=
  7007. lt_c_name_hook=
  7008. lt_c_name_lib_hook=
  7009. fi
  7010. # Transform an extracted symbol line into a proper C declaration.
  7011. # Some systems (esp. on ia64) link data and code symbols differently,
  7012. # so use this general approach.
  7013. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  7014. $lt_cdecl_hook\
  7015. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  7016. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  7017. # Transform an extracted symbol line into symbol name and symbol address
  7018. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  7019. $lt_c_name_hook\
  7020. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7021. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  7022. # Transform an extracted symbol line into symbol name with lib prefix and
  7023. # symbol address.
  7024. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  7025. $lt_c_name_lib_hook\
  7026. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7027. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  7028. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  7029. # Handle CRLF in mingw tool chain
  7030. opt_cr=
  7031. case $build_os in
  7032. mingw*)
  7033. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7034. ;;
  7035. esac
  7036. # Try without a prefix underscore, then with it.
  7037. for ac_symprfx in "" "_"; do
  7038. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7039. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7040. # Write the raw and C identifiers.
  7041. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7042. # Fake it for dumpbin and say T for any non-static function,
  7043. # D for any global variable and I for any imported variable.
  7044. # Also find C++ and __fastcall symbols from MSVC++,
  7045. # which start with @ or ?.
  7046. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7047. " {last_section=section; section=\$ 3};"\
  7048. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7049. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7050. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  7051. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  7052. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  7053. " \$ 0!~/External *\|/{next};"\
  7054. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7055. " {if(hide[section]) next};"\
  7056. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  7057. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  7058. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  7059. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  7060. " ' prfx=^$ac_symprfx"
  7061. else
  7062. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7063. fi
  7064. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  7065. # Check to see that the pipe works correctly.
  7066. pipe_works=no
  7067. rm -f conftest*
  7068. cat > conftest.$ac_ext <<_LT_EOF
  7069. #ifdef __cplusplus
  7070. extern "C" {
  7071. #endif
  7072. char nm_test_var;
  7073. void nm_test_func(void);
  7074. void nm_test_func(void){}
  7075. #ifdef __cplusplus
  7076. }
  7077. #endif
  7078. int main(){nm_test_var='a';nm_test_func();return(0);}
  7079. _LT_EOF
  7080. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7081. (eval $ac_compile) 2>&5
  7082. ac_status=$?
  7083. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7084. test $ac_status = 0; }; then
  7085. # Now try to grab the symbols.
  7086. nlist=conftest.nm
  7087. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7088. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7089. ac_status=$?
  7090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7091. test $ac_status = 0; } && test -s "$nlist"; then
  7092. # Try sorting and uniquifying the output.
  7093. if sort "$nlist" | uniq > "$nlist"T; then
  7094. mv -f "$nlist"T "$nlist"
  7095. else
  7096. rm -f "$nlist"T
  7097. fi
  7098. # Make sure that we snagged all the symbols we need.
  7099. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7100. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7101. cat <<_LT_EOF > conftest.$ac_ext
  7102. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7103. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  7104. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  7105. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7106. # define LT_DLSYM_CONST
  7107. #elif defined __osf__
  7108. /* This system does not cope well with relocations in const data. */
  7109. # define LT_DLSYM_CONST
  7110. #else
  7111. # define LT_DLSYM_CONST const
  7112. #endif
  7113. #ifdef __cplusplus
  7114. extern "C" {
  7115. #endif
  7116. _LT_EOF
  7117. # Now generate the symbol file.
  7118. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7119. cat <<_LT_EOF >> conftest.$ac_ext
  7120. /* The mapping between symbol names and symbols. */
  7121. LT_DLSYM_CONST struct {
  7122. const char *name;
  7123. void *address;
  7124. }
  7125. lt__PROGRAM__LTX_preloaded_symbols[] =
  7126. {
  7127. { "@PROGRAM@", (void *) 0 },
  7128. _LT_EOF
  7129. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7130. cat <<\_LT_EOF >> conftest.$ac_ext
  7131. {0, (void *) 0}
  7132. };
  7133. /* This works around a problem in FreeBSD linker */
  7134. #ifdef FREEBSD_WORKAROUND
  7135. static const void *lt_preloaded_setup() {
  7136. return lt__PROGRAM__LTX_preloaded_symbols;
  7137. }
  7138. #endif
  7139. #ifdef __cplusplus
  7140. }
  7141. #endif
  7142. _LT_EOF
  7143. # Now try linking the two files.
  7144. mv conftest.$ac_objext conftstm.$ac_objext
  7145. lt_globsym_save_LIBS=$LIBS
  7146. lt_globsym_save_CFLAGS=$CFLAGS
  7147. LIBS=conftstm.$ac_objext
  7148. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7149. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7150. (eval $ac_link) 2>&5
  7151. ac_status=$?
  7152. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7153. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  7154. pipe_works=yes
  7155. fi
  7156. LIBS=$lt_globsym_save_LIBS
  7157. CFLAGS=$lt_globsym_save_CFLAGS
  7158. else
  7159. echo "cannot find nm_test_func in $nlist" >&5
  7160. fi
  7161. else
  7162. echo "cannot find nm_test_var in $nlist" >&5
  7163. fi
  7164. else
  7165. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7166. fi
  7167. else
  7168. echo "$progname: failed program was:" >&5
  7169. cat conftest.$ac_ext >&5
  7170. fi
  7171. rm -rf conftest* conftst*
  7172. # Do not use the global_symbol_pipe unless it works.
  7173. if test yes = "$pipe_works"; then
  7174. break
  7175. else
  7176. lt_cv_sys_global_symbol_pipe=
  7177. fi
  7178. done
  7179. fi
  7180. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7181. lt_cv_sys_global_symbol_to_cdecl=
  7182. fi
  7183. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7185. $as_echo "failed" >&6; }
  7186. else
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7188. $as_echo "ok" >&6; }
  7189. fi
  7190. # Response file support.
  7191. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7192. nm_file_list_spec='@'
  7193. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7194. nm_file_list_spec='@'
  7195. fi
  7196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7197. $as_echo_n "checking for sysroot... " >&6; }
  7198. # Check whether --with-sysroot was given.
  7199. if test "${with_sysroot+set}" = set; then :
  7200. withval=$with_sysroot;
  7201. else
  7202. with_sysroot=no
  7203. fi
  7204. lt_sysroot=
  7205. case $with_sysroot in #(
  7206. yes)
  7207. if test yes = "$GCC"; then
  7208. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7209. fi
  7210. ;; #(
  7211. /*)
  7212. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7213. ;; #(
  7214. no|'')
  7215. ;; #(
  7216. *)
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  7218. $as_echo "$with_sysroot" >&6; }
  7219. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7220. ;;
  7221. esac
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7223. $as_echo "${lt_sysroot:-no}" >&6; }
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  7225. $as_echo_n "checking for a working dd... " >&6; }
  7226. if ${ac_cv_path_lt_DD+:} false; then :
  7227. $as_echo_n "(cached) " >&6
  7228. else
  7229. printf 0123456789abcdef0123456789abcdef >conftest.i
  7230. cat conftest.i conftest.i >conftest2.i
  7231. : ${lt_DD:=$DD}
  7232. if test -z "$lt_DD"; then
  7233. ac_path_lt_DD_found=false
  7234. # Loop through the user's path and test for each of PROGNAME-LIST
  7235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7236. for as_dir in $PATH
  7237. do
  7238. IFS=$as_save_IFS
  7239. test -z "$as_dir" && as_dir=.
  7240. for ac_prog in dd; do
  7241. for ac_exec_ext in '' $ac_executable_extensions; do
  7242. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  7243. as_fn_executable_p "$ac_path_lt_DD" || continue
  7244. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7245. cmp -s conftest.i conftest.out \
  7246. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7247. fi
  7248. $ac_path_lt_DD_found && break 3
  7249. done
  7250. done
  7251. done
  7252. IFS=$as_save_IFS
  7253. if test -z "$ac_cv_path_lt_DD"; then
  7254. :
  7255. fi
  7256. else
  7257. ac_cv_path_lt_DD=$lt_DD
  7258. fi
  7259. rm -f conftest.i conftest2.i conftest.out
  7260. fi
  7261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7262. $as_echo "$ac_cv_path_lt_DD" >&6; }
  7263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7264. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  7265. if ${lt_cv_truncate_bin+:} false; then :
  7266. $as_echo_n "(cached) " >&6
  7267. else
  7268. printf 0123456789abcdef0123456789abcdef >conftest.i
  7269. cat conftest.i conftest.i >conftest2.i
  7270. lt_cv_truncate_bin=
  7271. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7272. cmp -s conftest.i conftest.out \
  7273. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7274. fi
  7275. rm -f conftest.i conftest2.i conftest.out
  7276. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  7277. fi
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7279. $as_echo "$lt_cv_truncate_bin" >&6; }
  7280. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7281. func_cc_basename ()
  7282. {
  7283. for cc_temp in $*""; do
  7284. case $cc_temp in
  7285. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7286. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7287. \-*) ;;
  7288. *) break;;
  7289. esac
  7290. done
  7291. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7292. }
  7293. # Check whether --enable-libtool-lock was given.
  7294. if test "${enable_libtool_lock+set}" = set; then :
  7295. enableval=$enable_libtool_lock;
  7296. fi
  7297. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7298. # Some flags need to be propagated to the compiler or linker for good
  7299. # libtool support.
  7300. case $host in
  7301. ia64-*-hpux*)
  7302. # Find out what ABI is being produced by ac_compile, and set mode
  7303. # options accordingly.
  7304. echo 'int i;' > conftest.$ac_ext
  7305. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7306. (eval $ac_compile) 2>&5
  7307. ac_status=$?
  7308. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7309. test $ac_status = 0; }; then
  7310. case `/usr/bin/file conftest.$ac_objext` in
  7311. *ELF-32*)
  7312. HPUX_IA64_MODE=32
  7313. ;;
  7314. *ELF-64*)
  7315. HPUX_IA64_MODE=64
  7316. ;;
  7317. esac
  7318. fi
  7319. rm -rf conftest*
  7320. ;;
  7321. *-*-irix6*)
  7322. # Find out what ABI is being produced by ac_compile, and set linker
  7323. # options accordingly.
  7324. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7325. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7326. (eval $ac_compile) 2>&5
  7327. ac_status=$?
  7328. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7329. test $ac_status = 0; }; then
  7330. if test yes = "$lt_cv_prog_gnu_ld"; then
  7331. case `/usr/bin/file conftest.$ac_objext` in
  7332. *32-bit*)
  7333. LD="${LD-ld} -melf32bsmip"
  7334. ;;
  7335. *N32*)
  7336. LD="${LD-ld} -melf32bmipn32"
  7337. ;;
  7338. *64-bit*)
  7339. LD="${LD-ld} -melf64bmip"
  7340. ;;
  7341. esac
  7342. else
  7343. case `/usr/bin/file conftest.$ac_objext` in
  7344. *32-bit*)
  7345. LD="${LD-ld} -32"
  7346. ;;
  7347. *N32*)
  7348. LD="${LD-ld} -n32"
  7349. ;;
  7350. *64-bit*)
  7351. LD="${LD-ld} -64"
  7352. ;;
  7353. esac
  7354. fi
  7355. fi
  7356. rm -rf conftest*
  7357. ;;
  7358. mips64*-*linux*)
  7359. # Find out what ABI is being produced by ac_compile, and set linker
  7360. # options accordingly.
  7361. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7362. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7363. (eval $ac_compile) 2>&5
  7364. ac_status=$?
  7365. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7366. test $ac_status = 0; }; then
  7367. emul=elf
  7368. case `/usr/bin/file conftest.$ac_objext` in
  7369. *32-bit*)
  7370. emul="${emul}32"
  7371. ;;
  7372. *64-bit*)
  7373. emul="${emul}64"
  7374. ;;
  7375. esac
  7376. case `/usr/bin/file conftest.$ac_objext` in
  7377. *MSB*)
  7378. emul="${emul}btsmip"
  7379. ;;
  7380. *LSB*)
  7381. emul="${emul}ltsmip"
  7382. ;;
  7383. esac
  7384. case `/usr/bin/file conftest.$ac_objext` in
  7385. *N32*)
  7386. emul="${emul}n32"
  7387. ;;
  7388. esac
  7389. LD="${LD-ld} -m $emul"
  7390. fi
  7391. rm -rf conftest*
  7392. ;;
  7393. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7394. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7395. # Find out what ABI is being produced by ac_compile, and set linker
  7396. # options accordingly. Note that the listed cases only cover the
  7397. # situations where additional linker options are needed (such as when
  7398. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7399. # vice versa); the common cases where no linker options are needed do
  7400. # not appear in the list.
  7401. echo 'int i;' > conftest.$ac_ext
  7402. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7403. (eval $ac_compile) 2>&5
  7404. ac_status=$?
  7405. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7406. test $ac_status = 0; }; then
  7407. case `/usr/bin/file conftest.o` in
  7408. *32-bit*)
  7409. case $host in
  7410. x86_64-*kfreebsd*-gnu)
  7411. LD="${LD-ld} -m elf_i386_fbsd"
  7412. ;;
  7413. x86_64-*linux*)
  7414. case `/usr/bin/file conftest.o` in
  7415. *x86-64*)
  7416. LD="${LD-ld} -m elf32_x86_64"
  7417. ;;
  7418. *)
  7419. LD="${LD-ld} -m elf_i386"
  7420. ;;
  7421. esac
  7422. ;;
  7423. powerpc64le-*linux*)
  7424. LD="${LD-ld} -m elf32lppclinux"
  7425. ;;
  7426. powerpc64-*linux*)
  7427. LD="${LD-ld} -m elf32ppclinux"
  7428. ;;
  7429. s390x-*linux*)
  7430. LD="${LD-ld} -m elf_s390"
  7431. ;;
  7432. sparc64-*linux*)
  7433. LD="${LD-ld} -m elf32_sparc"
  7434. ;;
  7435. esac
  7436. ;;
  7437. *64-bit*)
  7438. case $host in
  7439. x86_64-*kfreebsd*-gnu)
  7440. LD="${LD-ld} -m elf_x86_64_fbsd"
  7441. ;;
  7442. x86_64-*linux*)
  7443. LD="${LD-ld} -m elf_x86_64"
  7444. ;;
  7445. powerpcle-*linux*)
  7446. LD="${LD-ld} -m elf64lppc"
  7447. ;;
  7448. powerpc-*linux*)
  7449. LD="${LD-ld} -m elf64ppc"
  7450. ;;
  7451. s390*-*linux*|s390*-*tpf*)
  7452. LD="${LD-ld} -m elf64_s390"
  7453. ;;
  7454. sparc*-*linux*)
  7455. LD="${LD-ld} -m elf64_sparc"
  7456. ;;
  7457. esac
  7458. ;;
  7459. esac
  7460. fi
  7461. rm -rf conftest*
  7462. ;;
  7463. *-*-sco3.2v5*)
  7464. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7465. SAVE_CFLAGS=$CFLAGS
  7466. CFLAGS="$CFLAGS -belf"
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7468. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7469. if ${lt_cv_cc_needs_belf+:} false; then :
  7470. $as_echo_n "(cached) " >&6
  7471. else
  7472. ac_ext=c
  7473. ac_cpp='$CPP $CPPFLAGS'
  7474. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7475. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7476. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7478. /* end confdefs.h. */
  7479. int
  7480. main ()
  7481. {
  7482. ;
  7483. return 0;
  7484. }
  7485. _ACEOF
  7486. if ac_fn_c_try_link "$LINENO"; then :
  7487. lt_cv_cc_needs_belf=yes
  7488. else
  7489. lt_cv_cc_needs_belf=no
  7490. fi
  7491. rm -f core conftest.err conftest.$ac_objext \
  7492. conftest$ac_exeext conftest.$ac_ext
  7493. ac_ext=c
  7494. ac_cpp='$CPP $CPPFLAGS'
  7495. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7496. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7497. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7498. fi
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7500. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7501. if test yes != "$lt_cv_cc_needs_belf"; then
  7502. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7503. CFLAGS=$SAVE_CFLAGS
  7504. fi
  7505. ;;
  7506. *-*solaris*)
  7507. # Find out what ABI is being produced by ac_compile, and set linker
  7508. # options accordingly.
  7509. echo 'int i;' > conftest.$ac_ext
  7510. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7511. (eval $ac_compile) 2>&5
  7512. ac_status=$?
  7513. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7514. test $ac_status = 0; }; then
  7515. case `/usr/bin/file conftest.o` in
  7516. *64-bit*)
  7517. case $lt_cv_prog_gnu_ld in
  7518. yes*)
  7519. case $host in
  7520. i?86-*-solaris*|x86_64-*-solaris*)
  7521. LD="${LD-ld} -m elf_x86_64"
  7522. ;;
  7523. sparc*-*-solaris*)
  7524. LD="${LD-ld} -m elf64_sparc"
  7525. ;;
  7526. esac
  7527. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7528. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7529. LD=${LD-ld}_sol2
  7530. fi
  7531. ;;
  7532. *)
  7533. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7534. LD="${LD-ld} -64"
  7535. fi
  7536. ;;
  7537. esac
  7538. ;;
  7539. esac
  7540. fi
  7541. rm -rf conftest*
  7542. ;;
  7543. esac
  7544. need_locks=$enable_libtool_lock
  7545. if test -n "$ac_tool_prefix"; then
  7546. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7547. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7549. $as_echo_n "checking for $ac_word... " >&6; }
  7550. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7551. $as_echo_n "(cached) " >&6
  7552. else
  7553. if test -n "$MANIFEST_TOOL"; then
  7554. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7555. else
  7556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7557. for as_dir in $PATH
  7558. do
  7559. IFS=$as_save_IFS
  7560. test -z "$as_dir" && as_dir=.
  7561. for ac_exec_ext in '' $ac_executable_extensions; do
  7562. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7563. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7565. break 2
  7566. fi
  7567. done
  7568. done
  7569. IFS=$as_save_IFS
  7570. fi
  7571. fi
  7572. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7573. if test -n "$MANIFEST_TOOL"; then
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7575. $as_echo "$MANIFEST_TOOL" >&6; }
  7576. else
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7578. $as_echo "no" >&6; }
  7579. fi
  7580. fi
  7581. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7582. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7583. # Extract the first word of "mt", so it can be a program name with args.
  7584. set dummy mt; ac_word=$2
  7585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7586. $as_echo_n "checking for $ac_word... " >&6; }
  7587. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7588. $as_echo_n "(cached) " >&6
  7589. else
  7590. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7591. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7592. else
  7593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7594. for as_dir in $PATH
  7595. do
  7596. IFS=$as_save_IFS
  7597. test -z "$as_dir" && as_dir=.
  7598. for ac_exec_ext in '' $ac_executable_extensions; do
  7599. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7600. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7602. break 2
  7603. fi
  7604. done
  7605. done
  7606. IFS=$as_save_IFS
  7607. fi
  7608. fi
  7609. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7610. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7612. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7613. else
  7614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7615. $as_echo "no" >&6; }
  7616. fi
  7617. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7618. MANIFEST_TOOL=":"
  7619. else
  7620. case $cross_compiling:$ac_tool_warned in
  7621. yes:)
  7622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7623. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7624. ac_tool_warned=yes ;;
  7625. esac
  7626. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7627. fi
  7628. else
  7629. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7630. fi
  7631. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7633. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7634. if ${lt_cv_path_mainfest_tool+:} false; then :
  7635. $as_echo_n "(cached) " >&6
  7636. else
  7637. lt_cv_path_mainfest_tool=no
  7638. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7639. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7640. cat conftest.err >&5
  7641. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7642. lt_cv_path_mainfest_tool=yes
  7643. fi
  7644. rm -f conftest*
  7645. fi
  7646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7647. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7648. if test yes != "$lt_cv_path_mainfest_tool"; then
  7649. MANIFEST_TOOL=:
  7650. fi
  7651. case $host_os in
  7652. rhapsody* | darwin*)
  7653. if test -n "$ac_tool_prefix"; then
  7654. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7655. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7657. $as_echo_n "checking for $ac_word... " >&6; }
  7658. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7659. $as_echo_n "(cached) " >&6
  7660. else
  7661. if test -n "$DSYMUTIL"; then
  7662. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7663. else
  7664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7665. for as_dir in $PATH
  7666. do
  7667. IFS=$as_save_IFS
  7668. test -z "$as_dir" && as_dir=.
  7669. for ac_exec_ext in '' $ac_executable_extensions; do
  7670. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7671. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7673. break 2
  7674. fi
  7675. done
  7676. done
  7677. IFS=$as_save_IFS
  7678. fi
  7679. fi
  7680. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7681. if test -n "$DSYMUTIL"; then
  7682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7683. $as_echo "$DSYMUTIL" >&6; }
  7684. else
  7685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7686. $as_echo "no" >&6; }
  7687. fi
  7688. fi
  7689. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7690. ac_ct_DSYMUTIL=$DSYMUTIL
  7691. # Extract the first word of "dsymutil", so it can be a program name with args.
  7692. set dummy dsymutil; ac_word=$2
  7693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7694. $as_echo_n "checking for $ac_word... " >&6; }
  7695. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7696. $as_echo_n "(cached) " >&6
  7697. else
  7698. if test -n "$ac_ct_DSYMUTIL"; then
  7699. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7700. else
  7701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7702. for as_dir in $PATH
  7703. do
  7704. IFS=$as_save_IFS
  7705. test -z "$as_dir" && as_dir=.
  7706. for ac_exec_ext in '' $ac_executable_extensions; do
  7707. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7708. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7710. break 2
  7711. fi
  7712. done
  7713. done
  7714. IFS=$as_save_IFS
  7715. fi
  7716. fi
  7717. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7718. if test -n "$ac_ct_DSYMUTIL"; then
  7719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7720. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7721. else
  7722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7723. $as_echo "no" >&6; }
  7724. fi
  7725. if test "x$ac_ct_DSYMUTIL" = x; then
  7726. DSYMUTIL=":"
  7727. else
  7728. case $cross_compiling:$ac_tool_warned in
  7729. yes:)
  7730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7731. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7732. ac_tool_warned=yes ;;
  7733. esac
  7734. DSYMUTIL=$ac_ct_DSYMUTIL
  7735. fi
  7736. else
  7737. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7738. fi
  7739. if test -n "$ac_tool_prefix"; then
  7740. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7741. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7743. $as_echo_n "checking for $ac_word... " >&6; }
  7744. if ${ac_cv_prog_NMEDIT+:} false; then :
  7745. $as_echo_n "(cached) " >&6
  7746. else
  7747. if test -n "$NMEDIT"; then
  7748. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7749. else
  7750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7751. for as_dir in $PATH
  7752. do
  7753. IFS=$as_save_IFS
  7754. test -z "$as_dir" && as_dir=.
  7755. for ac_exec_ext in '' $ac_executable_extensions; do
  7756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7757. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7759. break 2
  7760. fi
  7761. done
  7762. done
  7763. IFS=$as_save_IFS
  7764. fi
  7765. fi
  7766. NMEDIT=$ac_cv_prog_NMEDIT
  7767. if test -n "$NMEDIT"; then
  7768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7769. $as_echo "$NMEDIT" >&6; }
  7770. else
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7772. $as_echo "no" >&6; }
  7773. fi
  7774. fi
  7775. if test -z "$ac_cv_prog_NMEDIT"; then
  7776. ac_ct_NMEDIT=$NMEDIT
  7777. # Extract the first word of "nmedit", so it can be a program name with args.
  7778. set dummy nmedit; ac_word=$2
  7779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7780. $as_echo_n "checking for $ac_word... " >&6; }
  7781. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7782. $as_echo_n "(cached) " >&6
  7783. else
  7784. if test -n "$ac_ct_NMEDIT"; then
  7785. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7786. else
  7787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7788. for as_dir in $PATH
  7789. do
  7790. IFS=$as_save_IFS
  7791. test -z "$as_dir" && as_dir=.
  7792. for ac_exec_ext in '' $ac_executable_extensions; do
  7793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7794. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7796. break 2
  7797. fi
  7798. done
  7799. done
  7800. IFS=$as_save_IFS
  7801. fi
  7802. fi
  7803. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7804. if test -n "$ac_ct_NMEDIT"; then
  7805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7806. $as_echo "$ac_ct_NMEDIT" >&6; }
  7807. else
  7808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7809. $as_echo "no" >&6; }
  7810. fi
  7811. if test "x$ac_ct_NMEDIT" = x; then
  7812. NMEDIT=":"
  7813. else
  7814. case $cross_compiling:$ac_tool_warned in
  7815. yes:)
  7816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7817. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7818. ac_tool_warned=yes ;;
  7819. esac
  7820. NMEDIT=$ac_ct_NMEDIT
  7821. fi
  7822. else
  7823. NMEDIT="$ac_cv_prog_NMEDIT"
  7824. fi
  7825. if test -n "$ac_tool_prefix"; then
  7826. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7827. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7829. $as_echo_n "checking for $ac_word... " >&6; }
  7830. if ${ac_cv_prog_LIPO+:} false; then :
  7831. $as_echo_n "(cached) " >&6
  7832. else
  7833. if test -n "$LIPO"; then
  7834. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7835. else
  7836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7837. for as_dir in $PATH
  7838. do
  7839. IFS=$as_save_IFS
  7840. test -z "$as_dir" && as_dir=.
  7841. for ac_exec_ext in '' $ac_executable_extensions; do
  7842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7843. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7845. break 2
  7846. fi
  7847. done
  7848. done
  7849. IFS=$as_save_IFS
  7850. fi
  7851. fi
  7852. LIPO=$ac_cv_prog_LIPO
  7853. if test -n "$LIPO"; then
  7854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7855. $as_echo "$LIPO" >&6; }
  7856. else
  7857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7858. $as_echo "no" >&6; }
  7859. fi
  7860. fi
  7861. if test -z "$ac_cv_prog_LIPO"; then
  7862. ac_ct_LIPO=$LIPO
  7863. # Extract the first word of "lipo", so it can be a program name with args.
  7864. set dummy lipo; ac_word=$2
  7865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7866. $as_echo_n "checking for $ac_word... " >&6; }
  7867. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7868. $as_echo_n "(cached) " >&6
  7869. else
  7870. if test -n "$ac_ct_LIPO"; then
  7871. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7872. else
  7873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7874. for as_dir in $PATH
  7875. do
  7876. IFS=$as_save_IFS
  7877. test -z "$as_dir" && as_dir=.
  7878. for ac_exec_ext in '' $ac_executable_extensions; do
  7879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7880. ac_cv_prog_ac_ct_LIPO="lipo"
  7881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7882. break 2
  7883. fi
  7884. done
  7885. done
  7886. IFS=$as_save_IFS
  7887. fi
  7888. fi
  7889. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7890. if test -n "$ac_ct_LIPO"; then
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7892. $as_echo "$ac_ct_LIPO" >&6; }
  7893. else
  7894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7895. $as_echo "no" >&6; }
  7896. fi
  7897. if test "x$ac_ct_LIPO" = x; then
  7898. LIPO=":"
  7899. else
  7900. case $cross_compiling:$ac_tool_warned in
  7901. yes:)
  7902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7903. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7904. ac_tool_warned=yes ;;
  7905. esac
  7906. LIPO=$ac_ct_LIPO
  7907. fi
  7908. else
  7909. LIPO="$ac_cv_prog_LIPO"
  7910. fi
  7911. if test -n "$ac_tool_prefix"; then
  7912. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7913. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7915. $as_echo_n "checking for $ac_word... " >&6; }
  7916. if ${ac_cv_prog_OTOOL+:} false; then :
  7917. $as_echo_n "(cached) " >&6
  7918. else
  7919. if test -n "$OTOOL"; then
  7920. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7921. else
  7922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7923. for as_dir in $PATH
  7924. do
  7925. IFS=$as_save_IFS
  7926. test -z "$as_dir" && as_dir=.
  7927. for ac_exec_ext in '' $ac_executable_extensions; do
  7928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7929. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7931. break 2
  7932. fi
  7933. done
  7934. done
  7935. IFS=$as_save_IFS
  7936. fi
  7937. fi
  7938. OTOOL=$ac_cv_prog_OTOOL
  7939. if test -n "$OTOOL"; then
  7940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7941. $as_echo "$OTOOL" >&6; }
  7942. else
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7944. $as_echo "no" >&6; }
  7945. fi
  7946. fi
  7947. if test -z "$ac_cv_prog_OTOOL"; then
  7948. ac_ct_OTOOL=$OTOOL
  7949. # Extract the first word of "otool", so it can be a program name with args.
  7950. set dummy otool; ac_word=$2
  7951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7952. $as_echo_n "checking for $ac_word... " >&6; }
  7953. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7954. $as_echo_n "(cached) " >&6
  7955. else
  7956. if test -n "$ac_ct_OTOOL"; then
  7957. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7958. else
  7959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7960. for as_dir in $PATH
  7961. do
  7962. IFS=$as_save_IFS
  7963. test -z "$as_dir" && as_dir=.
  7964. for ac_exec_ext in '' $ac_executable_extensions; do
  7965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7966. ac_cv_prog_ac_ct_OTOOL="otool"
  7967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7968. break 2
  7969. fi
  7970. done
  7971. done
  7972. IFS=$as_save_IFS
  7973. fi
  7974. fi
  7975. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7976. if test -n "$ac_ct_OTOOL"; then
  7977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7978. $as_echo "$ac_ct_OTOOL" >&6; }
  7979. else
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7981. $as_echo "no" >&6; }
  7982. fi
  7983. if test "x$ac_ct_OTOOL" = x; then
  7984. OTOOL=":"
  7985. else
  7986. case $cross_compiling:$ac_tool_warned in
  7987. yes:)
  7988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7990. ac_tool_warned=yes ;;
  7991. esac
  7992. OTOOL=$ac_ct_OTOOL
  7993. fi
  7994. else
  7995. OTOOL="$ac_cv_prog_OTOOL"
  7996. fi
  7997. if test -n "$ac_tool_prefix"; then
  7998. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7999. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8001. $as_echo_n "checking for $ac_word... " >&6; }
  8002. if ${ac_cv_prog_OTOOL64+:} false; then :
  8003. $as_echo_n "(cached) " >&6
  8004. else
  8005. if test -n "$OTOOL64"; then
  8006. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8007. else
  8008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8009. for as_dir in $PATH
  8010. do
  8011. IFS=$as_save_IFS
  8012. test -z "$as_dir" && as_dir=.
  8013. for ac_exec_ext in '' $ac_executable_extensions; do
  8014. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8015. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8017. break 2
  8018. fi
  8019. done
  8020. done
  8021. IFS=$as_save_IFS
  8022. fi
  8023. fi
  8024. OTOOL64=$ac_cv_prog_OTOOL64
  8025. if test -n "$OTOOL64"; then
  8026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8027. $as_echo "$OTOOL64" >&6; }
  8028. else
  8029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8030. $as_echo "no" >&6; }
  8031. fi
  8032. fi
  8033. if test -z "$ac_cv_prog_OTOOL64"; then
  8034. ac_ct_OTOOL64=$OTOOL64
  8035. # Extract the first word of "otool64", so it can be a program name with args.
  8036. set dummy otool64; ac_word=$2
  8037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8038. $as_echo_n "checking for $ac_word... " >&6; }
  8039. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  8040. $as_echo_n "(cached) " >&6
  8041. else
  8042. if test -n "$ac_ct_OTOOL64"; then
  8043. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8044. else
  8045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8046. for as_dir in $PATH
  8047. do
  8048. IFS=$as_save_IFS
  8049. test -z "$as_dir" && as_dir=.
  8050. for ac_exec_ext in '' $ac_executable_extensions; do
  8051. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8052. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8054. break 2
  8055. fi
  8056. done
  8057. done
  8058. IFS=$as_save_IFS
  8059. fi
  8060. fi
  8061. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8062. if test -n "$ac_ct_OTOOL64"; then
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8064. $as_echo "$ac_ct_OTOOL64" >&6; }
  8065. else
  8066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8067. $as_echo "no" >&6; }
  8068. fi
  8069. if test "x$ac_ct_OTOOL64" = x; then
  8070. OTOOL64=":"
  8071. else
  8072. case $cross_compiling:$ac_tool_warned in
  8073. yes:)
  8074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8075. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8076. ac_tool_warned=yes ;;
  8077. esac
  8078. OTOOL64=$ac_ct_OTOOL64
  8079. fi
  8080. else
  8081. OTOOL64="$ac_cv_prog_OTOOL64"
  8082. fi
  8083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8084. $as_echo_n "checking for -single_module linker flag... " >&6; }
  8085. if ${lt_cv_apple_cc_single_mod+:} false; then :
  8086. $as_echo_n "(cached) " >&6
  8087. else
  8088. lt_cv_apple_cc_single_mod=no
  8089. if test -z "$LT_MULTI_MODULE"; then
  8090. # By default we will add the -single_module flag. You can override
  8091. # by either setting the environment variable LT_MULTI_MODULE
  8092. # non-empty at configure time, or by adding -multi_module to the
  8093. # link flags.
  8094. rm -rf libconftest.dylib*
  8095. echo "int foo(void){return 1;}" > conftest.c
  8096. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8097. -dynamiclib -Wl,-single_module conftest.c" >&5
  8098. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8099. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8100. _lt_result=$?
  8101. # If there is a non-empty error log, and "single_module"
  8102. # appears in it, assume the flag caused a linker warning
  8103. if test -s conftest.err && $GREP single_module conftest.err; then
  8104. cat conftest.err >&5
  8105. # Otherwise, if the output was created with a 0 exit code from
  8106. # the compiler, it worked.
  8107. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  8108. lt_cv_apple_cc_single_mod=yes
  8109. else
  8110. cat conftest.err >&5
  8111. fi
  8112. rm -rf libconftest.dylib*
  8113. rm -f conftest.*
  8114. fi
  8115. fi
  8116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8117. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8119. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8120. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  8121. $as_echo_n "(cached) " >&6
  8122. else
  8123. lt_cv_ld_exported_symbols_list=no
  8124. save_LDFLAGS=$LDFLAGS
  8125. echo "_main" > conftest.sym
  8126. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8128. /* end confdefs.h. */
  8129. int
  8130. main ()
  8131. {
  8132. ;
  8133. return 0;
  8134. }
  8135. _ACEOF
  8136. if ac_fn_c_try_link "$LINENO"; then :
  8137. lt_cv_ld_exported_symbols_list=yes
  8138. else
  8139. lt_cv_ld_exported_symbols_list=no
  8140. fi
  8141. rm -f core conftest.err conftest.$ac_objext \
  8142. conftest$ac_exeext conftest.$ac_ext
  8143. LDFLAGS=$save_LDFLAGS
  8144. fi
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8146. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8148. $as_echo_n "checking for -force_load linker flag... " >&6; }
  8149. if ${lt_cv_ld_force_load+:} false; then :
  8150. $as_echo_n "(cached) " >&6
  8151. else
  8152. lt_cv_ld_force_load=no
  8153. cat > conftest.c << _LT_EOF
  8154. int forced_loaded() { return 2;}
  8155. _LT_EOF
  8156. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8157. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8158. echo "$AR cru libconftest.a conftest.o" >&5
  8159. $AR cru libconftest.a conftest.o 2>&5
  8160. echo "$RANLIB libconftest.a" >&5
  8161. $RANLIB libconftest.a 2>&5
  8162. cat > conftest.c << _LT_EOF
  8163. int main() { return 0;}
  8164. _LT_EOF
  8165. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8166. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8167. _lt_result=$?
  8168. if test -s conftest.err && $GREP force_load conftest.err; then
  8169. cat conftest.err >&5
  8170. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8171. lt_cv_ld_force_load=yes
  8172. else
  8173. cat conftest.err >&5
  8174. fi
  8175. rm -f conftest.err libconftest.a conftest conftest.c
  8176. rm -rf conftest.dSYM
  8177. fi
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8179. $as_echo "$lt_cv_ld_force_load" >&6; }
  8180. case $host_os in
  8181. rhapsody* | darwin1.[012])
  8182. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8183. darwin1.*)
  8184. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8185. darwin*) # darwin 5.x on
  8186. # if running on 10.5 or later, the deployment target defaults
  8187. # to the OS version, if on x86, and 10.4, the deployment
  8188. # target defaults to 10.4. Don't you love it?
  8189. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8190. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  8191. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8192. 10.[012][,.]*)
  8193. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8194. 10.*)
  8195. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8196. esac
  8197. ;;
  8198. esac
  8199. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8200. _lt_dar_single_mod='$single_module'
  8201. fi
  8202. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8203. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8204. else
  8205. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8206. fi
  8207. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8208. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8209. else
  8210. _lt_dsymutil=
  8211. fi
  8212. ;;
  8213. esac
  8214. # func_munge_path_list VARIABLE PATH
  8215. # -----------------------------------
  8216. # VARIABLE is name of variable containing _space_ separated list of
  8217. # directories to be munged by the contents of PATH, which is string
  8218. # having a format:
  8219. # "DIR[:DIR]:"
  8220. # string "DIR[ DIR]" will be prepended to VARIABLE
  8221. # ":DIR[:DIR]"
  8222. # string "DIR[ DIR]" will be appended to VARIABLE
  8223. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8224. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8225. # "DIRA[ DIRA]" will be appended to VARIABLE
  8226. # "DIR[:DIR]"
  8227. # VARIABLE will be replaced by "DIR[ DIR]"
  8228. func_munge_path_list ()
  8229. {
  8230. case x$2 in
  8231. x)
  8232. ;;
  8233. *:)
  8234. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8235. ;;
  8236. x:*)
  8237. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8238. ;;
  8239. *::*)
  8240. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8241. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8242. ;;
  8243. *)
  8244. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8245. ;;
  8246. esac
  8247. }
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  8249. $as_echo_n "checking for ANSI C header files... " >&6; }
  8250. if ${ac_cv_header_stdc+:} false; then :
  8251. $as_echo_n "(cached) " >&6
  8252. else
  8253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8254. /* end confdefs.h. */
  8255. #include <stdlib.h>
  8256. #include <stdarg.h>
  8257. #include <string.h>
  8258. #include <float.h>
  8259. int
  8260. main ()
  8261. {
  8262. ;
  8263. return 0;
  8264. }
  8265. _ACEOF
  8266. if ac_fn_c_try_compile "$LINENO"; then :
  8267. ac_cv_header_stdc=yes
  8268. else
  8269. ac_cv_header_stdc=no
  8270. fi
  8271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8272. if test $ac_cv_header_stdc = yes; then
  8273. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8275. /* end confdefs.h. */
  8276. #include <string.h>
  8277. _ACEOF
  8278. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8279. $EGREP "memchr" >/dev/null 2>&1; then :
  8280. else
  8281. ac_cv_header_stdc=no
  8282. fi
  8283. rm -f conftest*
  8284. fi
  8285. if test $ac_cv_header_stdc = yes; then
  8286. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8288. /* end confdefs.h. */
  8289. #include <stdlib.h>
  8290. _ACEOF
  8291. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8292. $EGREP "free" >/dev/null 2>&1; then :
  8293. else
  8294. ac_cv_header_stdc=no
  8295. fi
  8296. rm -f conftest*
  8297. fi
  8298. if test $ac_cv_header_stdc = yes; then
  8299. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8300. if test "$cross_compiling" = yes; then :
  8301. :
  8302. else
  8303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8304. /* end confdefs.h. */
  8305. #include <ctype.h>
  8306. #include <stdlib.h>
  8307. #if ((' ' & 0x0FF) == 0x020)
  8308. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8309. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8310. #else
  8311. # define ISLOWER(c) \
  8312. (('a' <= (c) && (c) <= 'i') \
  8313. || ('j' <= (c) && (c) <= 'r') \
  8314. || ('s' <= (c) && (c) <= 'z'))
  8315. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8316. #endif
  8317. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8318. int
  8319. main ()
  8320. {
  8321. int i;
  8322. for (i = 0; i < 256; i++)
  8323. if (XOR (islower (i), ISLOWER (i))
  8324. || toupper (i) != TOUPPER (i))
  8325. return 2;
  8326. return 0;
  8327. }
  8328. _ACEOF
  8329. if ac_fn_c_try_run "$LINENO"; then :
  8330. else
  8331. ac_cv_header_stdc=no
  8332. fi
  8333. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8334. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8335. fi
  8336. fi
  8337. fi
  8338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8339. $as_echo "$ac_cv_header_stdc" >&6; }
  8340. if test $ac_cv_header_stdc = yes; then
  8341. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  8342. fi
  8343. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8344. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8345. inttypes.h stdint.h unistd.h
  8346. do :
  8347. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8348. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8349. "
  8350. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8351. cat >>confdefs.h <<_ACEOF
  8352. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8353. _ACEOF
  8354. fi
  8355. done
  8356. for ac_header in dlfcn.h
  8357. do :
  8358. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8359. "
  8360. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8361. cat >>confdefs.h <<_ACEOF
  8362. #define HAVE_DLFCN_H 1
  8363. _ACEOF
  8364. fi
  8365. done
  8366. func_stripname_cnf ()
  8367. {
  8368. case $2 in
  8369. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  8370. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  8371. esac
  8372. } # func_stripname_cnf
  8373. # Set options
  8374. enable_dlopen=no
  8375. enable_win32_dll=no
  8376. # Check whether --enable-shared was given.
  8377. if test "${enable_shared+set}" = set; then :
  8378. enableval=$enable_shared; p=${PACKAGE-default}
  8379. case $enableval in
  8380. yes) enable_shared=yes ;;
  8381. no) enable_shared=no ;;
  8382. *)
  8383. enable_shared=no
  8384. # Look at the argument we got. We use all the common list separators.
  8385. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8386. for pkg in $enableval; do
  8387. IFS=$lt_save_ifs
  8388. if test "X$pkg" = "X$p"; then
  8389. enable_shared=yes
  8390. fi
  8391. done
  8392. IFS=$lt_save_ifs
  8393. ;;
  8394. esac
  8395. else
  8396. enable_shared=yes
  8397. fi
  8398. # Check whether --enable-static was given.
  8399. if test "${enable_static+set}" = set; then :
  8400. enableval=$enable_static; p=${PACKAGE-default}
  8401. case $enableval in
  8402. yes) enable_static=yes ;;
  8403. no) enable_static=no ;;
  8404. *)
  8405. enable_static=no
  8406. # Look at the argument we got. We use all the common list separators.
  8407. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8408. for pkg in $enableval; do
  8409. IFS=$lt_save_ifs
  8410. if test "X$pkg" = "X$p"; then
  8411. enable_static=yes
  8412. fi
  8413. done
  8414. IFS=$lt_save_ifs
  8415. ;;
  8416. esac
  8417. else
  8418. enable_static=yes
  8419. fi
  8420. # Check whether --with-pic was given.
  8421. if test "${with_pic+set}" = set; then :
  8422. withval=$with_pic; lt_p=${PACKAGE-default}
  8423. case $withval in
  8424. yes|no) pic_mode=$withval ;;
  8425. *)
  8426. pic_mode=default
  8427. # Look at the argument we got. We use all the common list separators.
  8428. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8429. for lt_pkg in $withval; do
  8430. IFS=$lt_save_ifs
  8431. if test "X$lt_pkg" = "X$lt_p"; then
  8432. pic_mode=yes
  8433. fi
  8434. done
  8435. IFS=$lt_save_ifs
  8436. ;;
  8437. esac
  8438. else
  8439. pic_mode=default
  8440. fi
  8441. # Check whether --enable-fast-install was given.
  8442. if test "${enable_fast_install+set}" = set; then :
  8443. enableval=$enable_fast_install; p=${PACKAGE-default}
  8444. case $enableval in
  8445. yes) enable_fast_install=yes ;;
  8446. no) enable_fast_install=no ;;
  8447. *)
  8448. enable_fast_install=no
  8449. # Look at the argument we got. We use all the common list separators.
  8450. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8451. for pkg in $enableval; do
  8452. IFS=$lt_save_ifs
  8453. if test "X$pkg" = "X$p"; then
  8454. enable_fast_install=yes
  8455. fi
  8456. done
  8457. IFS=$lt_save_ifs
  8458. ;;
  8459. esac
  8460. else
  8461. enable_fast_install=yes
  8462. fi
  8463. shared_archive_member_spec=
  8464. case $host,$enable_shared in
  8465. power*-*-aix[5-9]*,yes)
  8466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8467. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  8468. # Check whether --with-aix-soname was given.
  8469. if test "${with_aix_soname+set}" = set; then :
  8470. withval=$with_aix_soname; case $withval in
  8471. aix|svr4|both)
  8472. ;;
  8473. *)
  8474. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8475. ;;
  8476. esac
  8477. lt_cv_with_aix_soname=$with_aix_soname
  8478. else
  8479. if ${lt_cv_with_aix_soname+:} false; then :
  8480. $as_echo_n "(cached) " >&6
  8481. else
  8482. lt_cv_with_aix_soname=aix
  8483. fi
  8484. with_aix_soname=$lt_cv_with_aix_soname
  8485. fi
  8486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8487. $as_echo "$with_aix_soname" >&6; }
  8488. if test aix != "$with_aix_soname"; then
  8489. # For the AIX way of multilib, we name the shared archive member
  8490. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8491. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8492. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8493. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8494. if test 64 = "${OBJECT_MODE-32}"; then
  8495. shared_archive_member_spec=shr_64
  8496. else
  8497. shared_archive_member_spec=shr
  8498. fi
  8499. fi
  8500. ;;
  8501. *)
  8502. with_aix_soname=aix
  8503. ;;
  8504. esac
  8505. # This can be used to rebuild libtool when needed
  8506. LIBTOOL_DEPS=$ltmain
  8507. # Always use our own libtool.
  8508. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8509. test -z "$LN_S" && LN_S="ln -s"
  8510. if test -n "${ZSH_VERSION+set}"; then
  8511. setopt NO_GLOB_SUBST
  8512. fi
  8513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8514. $as_echo_n "checking for objdir... " >&6; }
  8515. if ${lt_cv_objdir+:} false; then :
  8516. $as_echo_n "(cached) " >&6
  8517. else
  8518. rm -f .libs 2>/dev/null
  8519. mkdir .libs 2>/dev/null
  8520. if test -d .libs; then
  8521. lt_cv_objdir=.libs
  8522. else
  8523. # MS-DOS does not allow filenames that begin with a dot.
  8524. lt_cv_objdir=_libs
  8525. fi
  8526. rmdir .libs 2>/dev/null
  8527. fi
  8528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8529. $as_echo "$lt_cv_objdir" >&6; }
  8530. objdir=$lt_cv_objdir
  8531. cat >>confdefs.h <<_ACEOF
  8532. #define LT_OBJDIR "$lt_cv_objdir/"
  8533. _ACEOF
  8534. case $host_os in
  8535. aix3*)
  8536. # AIX sometimes has problems with the GCC collect2 program. For some
  8537. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8538. # vanish in a puff of smoke.
  8539. if test set != "${COLLECT_NAMES+set}"; then
  8540. COLLECT_NAMES=
  8541. export COLLECT_NAMES
  8542. fi
  8543. ;;
  8544. esac
  8545. # Global variables:
  8546. ofile=libtool
  8547. can_build_shared=yes
  8548. # All known linkers require a '.a' archive for static linking (except MSVC,
  8549. # which needs '.lib').
  8550. libext=a
  8551. with_gnu_ld=$lt_cv_prog_gnu_ld
  8552. old_CC=$CC
  8553. old_CFLAGS=$CFLAGS
  8554. # Set sane defaults for various variables
  8555. test -z "$CC" && CC=cc
  8556. test -z "$LTCC" && LTCC=$CC
  8557. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8558. test -z "$LD" && LD=ld
  8559. test -z "$ac_objext" && ac_objext=o
  8560. func_cc_basename $compiler
  8561. cc_basename=$func_cc_basename_result
  8562. # Only perform the check for file, if the check method requires it
  8563. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8564. case $deplibs_check_method in
  8565. file_magic*)
  8566. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8568. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8569. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8570. $as_echo_n "(cached) " >&6
  8571. else
  8572. case $MAGIC_CMD in
  8573. [\\/*] | ?:[\\/]*)
  8574. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8575. ;;
  8576. *)
  8577. lt_save_MAGIC_CMD=$MAGIC_CMD
  8578. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8579. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8580. for ac_dir in $ac_dummy; do
  8581. IFS=$lt_save_ifs
  8582. test -z "$ac_dir" && ac_dir=.
  8583. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8584. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8585. if test -n "$file_magic_test_file"; then
  8586. case $deplibs_check_method in
  8587. "file_magic "*)
  8588. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8589. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8590. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8591. $EGREP "$file_magic_regex" > /dev/null; then
  8592. :
  8593. else
  8594. cat <<_LT_EOF 1>&2
  8595. *** Warning: the command libtool uses to detect shared libraries,
  8596. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8597. *** The result is that libtool may fail to recognize shared libraries
  8598. *** as such. This will affect the creation of libtool libraries that
  8599. *** depend on shared libraries, but programs linked with such libtool
  8600. *** libraries will work regardless of this problem. Nevertheless, you
  8601. *** may want to report the problem to your system manager and/or to
  8602. *** bug-libtool@gnu.org
  8603. _LT_EOF
  8604. fi ;;
  8605. esac
  8606. fi
  8607. break
  8608. fi
  8609. done
  8610. IFS=$lt_save_ifs
  8611. MAGIC_CMD=$lt_save_MAGIC_CMD
  8612. ;;
  8613. esac
  8614. fi
  8615. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8616. if test -n "$MAGIC_CMD"; then
  8617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8618. $as_echo "$MAGIC_CMD" >&6; }
  8619. else
  8620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8621. $as_echo "no" >&6; }
  8622. fi
  8623. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8624. if test -n "$ac_tool_prefix"; then
  8625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8626. $as_echo_n "checking for file... " >&6; }
  8627. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8628. $as_echo_n "(cached) " >&6
  8629. else
  8630. case $MAGIC_CMD in
  8631. [\\/*] | ?:[\\/]*)
  8632. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8633. ;;
  8634. *)
  8635. lt_save_MAGIC_CMD=$MAGIC_CMD
  8636. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8637. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8638. for ac_dir in $ac_dummy; do
  8639. IFS=$lt_save_ifs
  8640. test -z "$ac_dir" && ac_dir=.
  8641. if test -f "$ac_dir/file"; then
  8642. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8643. if test -n "$file_magic_test_file"; then
  8644. case $deplibs_check_method in
  8645. "file_magic "*)
  8646. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8647. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8648. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8649. $EGREP "$file_magic_regex" > /dev/null; then
  8650. :
  8651. else
  8652. cat <<_LT_EOF 1>&2
  8653. *** Warning: the command libtool uses to detect shared libraries,
  8654. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8655. *** The result is that libtool may fail to recognize shared libraries
  8656. *** as such. This will affect the creation of libtool libraries that
  8657. *** depend on shared libraries, but programs linked with such libtool
  8658. *** libraries will work regardless of this problem. Nevertheless, you
  8659. *** may want to report the problem to your system manager and/or to
  8660. *** bug-libtool@gnu.org
  8661. _LT_EOF
  8662. fi ;;
  8663. esac
  8664. fi
  8665. break
  8666. fi
  8667. done
  8668. IFS=$lt_save_ifs
  8669. MAGIC_CMD=$lt_save_MAGIC_CMD
  8670. ;;
  8671. esac
  8672. fi
  8673. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8674. if test -n "$MAGIC_CMD"; then
  8675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8676. $as_echo "$MAGIC_CMD" >&6; }
  8677. else
  8678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8679. $as_echo "no" >&6; }
  8680. fi
  8681. else
  8682. MAGIC_CMD=:
  8683. fi
  8684. fi
  8685. fi
  8686. ;;
  8687. esac
  8688. # Use C for the default configuration in the libtool script
  8689. lt_save_CC=$CC
  8690. ac_ext=c
  8691. ac_cpp='$CPP $CPPFLAGS'
  8692. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8693. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8694. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8695. # Source file extension for C test sources.
  8696. ac_ext=c
  8697. # Object file extension for compiled C test sources.
  8698. objext=o
  8699. objext=$objext
  8700. # Code to be used in simple compile tests
  8701. lt_simple_compile_test_code="int some_variable = 0;"
  8702. # Code to be used in simple link tests
  8703. lt_simple_link_test_code='int main(){return(0);}'
  8704. # If no C compiler was specified, use CC.
  8705. LTCC=${LTCC-"$CC"}
  8706. # If no C compiler flags were specified, use CFLAGS.
  8707. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8708. # Allow CC to be a program name with arguments.
  8709. compiler=$CC
  8710. # Save the default compiler, since it gets overwritten when the other
  8711. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8712. compiler_DEFAULT=$CC
  8713. # save warnings/boilerplate of simple test code
  8714. ac_outfile=conftest.$ac_objext
  8715. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8716. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8717. _lt_compiler_boilerplate=`cat conftest.err`
  8718. $RM conftest*
  8719. ac_outfile=conftest.$ac_objext
  8720. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8721. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8722. _lt_linker_boilerplate=`cat conftest.err`
  8723. $RM -r conftest*
  8724. ## CAVEAT EMPTOR:
  8725. ## There is no encapsulation within the following macros, do not change
  8726. ## the running order or otherwise move them around unless you know exactly
  8727. ## what you are doing...
  8728. if test -n "$compiler"; then
  8729. lt_prog_compiler_no_builtin_flag=
  8730. if test yes = "$GCC"; then
  8731. case $cc_basename in
  8732. nvcc*)
  8733. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8734. *)
  8735. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8736. esac
  8737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8738. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8739. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8740. $as_echo_n "(cached) " >&6
  8741. else
  8742. lt_cv_prog_compiler_rtti_exceptions=no
  8743. ac_outfile=conftest.$ac_objext
  8744. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8745. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8746. # Insert the option either (1) after the last *FLAGS variable, or
  8747. # (2) before a word containing "conftest.", or (3) at the end.
  8748. # Note that $ac_compile itself does not contain backslashes and begins
  8749. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8750. # The option is referenced via a variable to avoid confusing sed.
  8751. lt_compile=`echo "$ac_compile" | $SED \
  8752. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8753. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8754. -e 's:$: $lt_compiler_flag:'`
  8755. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8756. (eval "$lt_compile" 2>conftest.err)
  8757. ac_status=$?
  8758. cat conftest.err >&5
  8759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8760. if (exit $ac_status) && test -s "$ac_outfile"; then
  8761. # The compiler can only warn and ignore the option if not recognized
  8762. # So say no if there are warnings other than the usual output.
  8763. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8764. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8765. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8766. lt_cv_prog_compiler_rtti_exceptions=yes
  8767. fi
  8768. fi
  8769. $RM conftest*
  8770. fi
  8771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8772. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8773. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8774. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8775. else
  8776. :
  8777. fi
  8778. fi
  8779. lt_prog_compiler_wl=
  8780. lt_prog_compiler_pic=
  8781. lt_prog_compiler_static=
  8782. if test yes = "$GCC"; then
  8783. lt_prog_compiler_wl='-Wl,'
  8784. lt_prog_compiler_static='-static'
  8785. case $host_os in
  8786. aix*)
  8787. # All AIX code is PIC.
  8788. if test ia64 = "$host_cpu"; then
  8789. # AIX 5 now supports IA64 processor
  8790. lt_prog_compiler_static='-Bstatic'
  8791. fi
  8792. lt_prog_compiler_pic='-fPIC'
  8793. ;;
  8794. amigaos*)
  8795. case $host_cpu in
  8796. powerpc)
  8797. # see comment about AmigaOS4 .so support
  8798. lt_prog_compiler_pic='-fPIC'
  8799. ;;
  8800. m68k)
  8801. # FIXME: we need at least 68020 code to build shared libraries, but
  8802. # adding the '-m68020' flag to GCC prevents building anything better,
  8803. # like '-m68040'.
  8804. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8805. ;;
  8806. esac
  8807. ;;
  8808. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8809. # PIC is the default for these OSes.
  8810. ;;
  8811. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8812. # This hack is so that the source file can tell whether it is being
  8813. # built for inclusion in a dll (and should export symbols for example).
  8814. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8815. # (--disable-auto-import) libraries
  8816. lt_prog_compiler_pic='-DDLL_EXPORT'
  8817. case $host_os in
  8818. os2*)
  8819. lt_prog_compiler_static='$wl-static'
  8820. ;;
  8821. esac
  8822. ;;
  8823. darwin* | rhapsody*)
  8824. # PIC is the default on this platform
  8825. # Common symbols not allowed in MH_DYLIB files
  8826. lt_prog_compiler_pic='-fno-common'
  8827. ;;
  8828. haiku*)
  8829. # PIC is the default for Haiku.
  8830. # The "-static" flag exists, but is broken.
  8831. lt_prog_compiler_static=
  8832. ;;
  8833. hpux*)
  8834. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8835. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8836. # sets the default TLS model and affects inlining.
  8837. case $host_cpu in
  8838. hppa*64*)
  8839. # +Z the default
  8840. ;;
  8841. *)
  8842. lt_prog_compiler_pic='-fPIC'
  8843. ;;
  8844. esac
  8845. ;;
  8846. interix[3-9]*)
  8847. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8848. # Instead, we relocate shared libraries at runtime.
  8849. ;;
  8850. msdosdjgpp*)
  8851. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8852. # on systems that don't support them.
  8853. lt_prog_compiler_can_build_shared=no
  8854. enable_shared=no
  8855. ;;
  8856. *nto* | *qnx*)
  8857. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8858. # it will coredump.
  8859. lt_prog_compiler_pic='-fPIC -shared'
  8860. ;;
  8861. sysv4*MP*)
  8862. if test -d /usr/nec; then
  8863. lt_prog_compiler_pic=-Kconform_pic
  8864. fi
  8865. ;;
  8866. *)
  8867. lt_prog_compiler_pic='-fPIC'
  8868. ;;
  8869. esac
  8870. case $cc_basename in
  8871. nvcc*) # Cuda Compiler Driver 2.2
  8872. lt_prog_compiler_wl='-Xlinker '
  8873. if test -n "$lt_prog_compiler_pic"; then
  8874. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8875. fi
  8876. ;;
  8877. esac
  8878. else
  8879. # PORTME Check for flag to pass linker flags through the system compiler.
  8880. case $host_os in
  8881. aix*)
  8882. lt_prog_compiler_wl='-Wl,'
  8883. if test ia64 = "$host_cpu"; then
  8884. # AIX 5 now supports IA64 processor
  8885. lt_prog_compiler_static='-Bstatic'
  8886. else
  8887. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8888. fi
  8889. ;;
  8890. darwin* | rhapsody*)
  8891. # PIC is the default on this platform
  8892. # Common symbols not allowed in MH_DYLIB files
  8893. lt_prog_compiler_pic='-fno-common'
  8894. case $cc_basename in
  8895. nagfor*)
  8896. # NAG Fortran compiler
  8897. lt_prog_compiler_wl='-Wl,-Wl,,'
  8898. lt_prog_compiler_pic='-PIC'
  8899. lt_prog_compiler_static='-Bstatic'
  8900. ;;
  8901. esac
  8902. ;;
  8903. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8904. # This hack is so that the source file can tell whether it is being
  8905. # built for inclusion in a dll (and should export symbols for example).
  8906. lt_prog_compiler_pic='-DDLL_EXPORT'
  8907. case $host_os in
  8908. os2*)
  8909. lt_prog_compiler_static='$wl-static'
  8910. ;;
  8911. esac
  8912. ;;
  8913. hpux9* | hpux10* | hpux11*)
  8914. lt_prog_compiler_wl='-Wl,'
  8915. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8916. # not for PA HP-UX.
  8917. case $host_cpu in
  8918. hppa*64*|ia64*)
  8919. # +Z the default
  8920. ;;
  8921. *)
  8922. lt_prog_compiler_pic='+Z'
  8923. ;;
  8924. esac
  8925. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8926. lt_prog_compiler_static='$wl-a ${wl}archive'
  8927. ;;
  8928. irix5* | irix6* | nonstopux*)
  8929. lt_prog_compiler_wl='-Wl,'
  8930. # PIC (with -KPIC) is the default.
  8931. lt_prog_compiler_static='-non_shared'
  8932. ;;
  8933. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8934. case $cc_basename in
  8935. # old Intel for x86_64, which still supported -KPIC.
  8936. ecc*)
  8937. lt_prog_compiler_wl='-Wl,'
  8938. lt_prog_compiler_pic='-KPIC'
  8939. lt_prog_compiler_static='-static'
  8940. ;;
  8941. # icc used to be incompatible with GCC.
  8942. # ICC 10 doesn't accept -KPIC any more.
  8943. icc* | ifort*)
  8944. lt_prog_compiler_wl='-Wl,'
  8945. lt_prog_compiler_pic='-fPIC'
  8946. lt_prog_compiler_static='-static'
  8947. ;;
  8948. # Lahey Fortran 8.1.
  8949. lf95*)
  8950. lt_prog_compiler_wl='-Wl,'
  8951. lt_prog_compiler_pic='--shared'
  8952. lt_prog_compiler_static='--static'
  8953. ;;
  8954. nagfor*)
  8955. # NAG Fortran compiler
  8956. lt_prog_compiler_wl='-Wl,-Wl,,'
  8957. lt_prog_compiler_pic='-PIC'
  8958. lt_prog_compiler_static='-Bstatic'
  8959. ;;
  8960. tcc*)
  8961. # Fabrice Bellard et al's Tiny C Compiler
  8962. lt_prog_compiler_wl='-Wl,'
  8963. lt_prog_compiler_pic='-fPIC'
  8964. lt_prog_compiler_static='-static'
  8965. ;;
  8966. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8967. # Portland Group compilers (*not* the Pentium gcc compiler,
  8968. # which looks to be a dead project)
  8969. lt_prog_compiler_wl='-Wl,'
  8970. lt_prog_compiler_pic='-fpic'
  8971. lt_prog_compiler_static='-Bstatic'
  8972. ;;
  8973. ccc*)
  8974. lt_prog_compiler_wl='-Wl,'
  8975. # All Alpha code is PIC.
  8976. lt_prog_compiler_static='-non_shared'
  8977. ;;
  8978. xl* | bgxl* | bgf* | mpixl*)
  8979. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8980. lt_prog_compiler_wl='-Wl,'
  8981. lt_prog_compiler_pic='-qpic'
  8982. lt_prog_compiler_static='-qstaticlink'
  8983. ;;
  8984. *)
  8985. case `$CC -V 2>&1 | sed 5q` in
  8986. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8987. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8988. lt_prog_compiler_pic='-KPIC'
  8989. lt_prog_compiler_static='-Bstatic'
  8990. lt_prog_compiler_wl=''
  8991. ;;
  8992. *Sun\ F* | *Sun*Fortran*)
  8993. lt_prog_compiler_pic='-KPIC'
  8994. lt_prog_compiler_static='-Bstatic'
  8995. lt_prog_compiler_wl='-Qoption ld '
  8996. ;;
  8997. *Sun\ C*)
  8998. # Sun C 5.9
  8999. lt_prog_compiler_pic='-KPIC'
  9000. lt_prog_compiler_static='-Bstatic'
  9001. lt_prog_compiler_wl='-Wl,'
  9002. ;;
  9003. *Intel*\ [CF]*Compiler*)
  9004. lt_prog_compiler_wl='-Wl,'
  9005. lt_prog_compiler_pic='-fPIC'
  9006. lt_prog_compiler_static='-static'
  9007. ;;
  9008. *Portland\ Group*)
  9009. lt_prog_compiler_wl='-Wl,'
  9010. lt_prog_compiler_pic='-fpic'
  9011. lt_prog_compiler_static='-Bstatic'
  9012. ;;
  9013. esac
  9014. ;;
  9015. esac
  9016. ;;
  9017. newsos6)
  9018. lt_prog_compiler_pic='-KPIC'
  9019. lt_prog_compiler_static='-Bstatic'
  9020. ;;
  9021. *nto* | *qnx*)
  9022. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9023. # it will coredump.
  9024. lt_prog_compiler_pic='-fPIC -shared'
  9025. ;;
  9026. osf3* | osf4* | osf5*)
  9027. lt_prog_compiler_wl='-Wl,'
  9028. # All OSF/1 code is PIC.
  9029. lt_prog_compiler_static='-non_shared'
  9030. ;;
  9031. rdos*)
  9032. lt_prog_compiler_static='-non_shared'
  9033. ;;
  9034. solaris*)
  9035. lt_prog_compiler_pic='-KPIC'
  9036. lt_prog_compiler_static='-Bstatic'
  9037. case $cc_basename in
  9038. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9039. lt_prog_compiler_wl='-Qoption ld ';;
  9040. *)
  9041. lt_prog_compiler_wl='-Wl,';;
  9042. esac
  9043. ;;
  9044. sunos4*)
  9045. lt_prog_compiler_wl='-Qoption ld '
  9046. lt_prog_compiler_pic='-PIC'
  9047. lt_prog_compiler_static='-Bstatic'
  9048. ;;
  9049. sysv4 | sysv4.2uw2* | sysv4.3*)
  9050. lt_prog_compiler_wl='-Wl,'
  9051. lt_prog_compiler_pic='-KPIC'
  9052. lt_prog_compiler_static='-Bstatic'
  9053. ;;
  9054. sysv4*MP*)
  9055. if test -d /usr/nec; then
  9056. lt_prog_compiler_pic='-Kconform_pic'
  9057. lt_prog_compiler_static='-Bstatic'
  9058. fi
  9059. ;;
  9060. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9061. lt_prog_compiler_wl='-Wl,'
  9062. lt_prog_compiler_pic='-KPIC'
  9063. lt_prog_compiler_static='-Bstatic'
  9064. ;;
  9065. unicos*)
  9066. lt_prog_compiler_wl='-Wl,'
  9067. lt_prog_compiler_can_build_shared=no
  9068. ;;
  9069. uts4*)
  9070. lt_prog_compiler_pic='-pic'
  9071. lt_prog_compiler_static='-Bstatic'
  9072. ;;
  9073. *)
  9074. lt_prog_compiler_can_build_shared=no
  9075. ;;
  9076. esac
  9077. fi
  9078. case $host_os in
  9079. # For platforms that do not support PIC, -DPIC is meaningless:
  9080. *djgpp*)
  9081. lt_prog_compiler_pic=
  9082. ;;
  9083. *)
  9084. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9085. ;;
  9086. esac
  9087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9088. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9089. if ${lt_cv_prog_compiler_pic+:} false; then :
  9090. $as_echo_n "(cached) " >&6
  9091. else
  9092. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9093. fi
  9094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9095. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  9096. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9097. #
  9098. # Check to make sure the PIC flag actually works.
  9099. #
  9100. if test -n "$lt_prog_compiler_pic"; then
  9101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9102. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9103. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  9104. $as_echo_n "(cached) " >&6
  9105. else
  9106. lt_cv_prog_compiler_pic_works=no
  9107. ac_outfile=conftest.$ac_objext
  9108. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9109. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9110. # Insert the option either (1) after the last *FLAGS variable, or
  9111. # (2) before a word containing "conftest.", or (3) at the end.
  9112. # Note that $ac_compile itself does not contain backslashes and begins
  9113. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9114. # The option is referenced via a variable to avoid confusing sed.
  9115. lt_compile=`echo "$ac_compile" | $SED \
  9116. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9117. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9118. -e 's:$: $lt_compiler_flag:'`
  9119. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9120. (eval "$lt_compile" 2>conftest.err)
  9121. ac_status=$?
  9122. cat conftest.err >&5
  9123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9124. if (exit $ac_status) && test -s "$ac_outfile"; then
  9125. # The compiler can only warn and ignore the option if not recognized
  9126. # So say no if there are warnings other than the usual output.
  9127. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9128. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9129. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9130. lt_cv_prog_compiler_pic_works=yes
  9131. fi
  9132. fi
  9133. $RM conftest*
  9134. fi
  9135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9136. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9137. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9138. case $lt_prog_compiler_pic in
  9139. "" | " "*) ;;
  9140. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9141. esac
  9142. else
  9143. lt_prog_compiler_pic=
  9144. lt_prog_compiler_can_build_shared=no
  9145. fi
  9146. fi
  9147. #
  9148. # Check to make sure the static flag actually works.
  9149. #
  9150. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9152. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9153. if ${lt_cv_prog_compiler_static_works+:} false; then :
  9154. $as_echo_n "(cached) " >&6
  9155. else
  9156. lt_cv_prog_compiler_static_works=no
  9157. save_LDFLAGS=$LDFLAGS
  9158. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9159. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9160. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9161. # The linker can only warn and ignore the option if not recognized
  9162. # So say no if there are warnings
  9163. if test -s conftest.err; then
  9164. # Append any errors to the config.log.
  9165. cat conftest.err 1>&5
  9166. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9167. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9168. if diff conftest.exp conftest.er2 >/dev/null; then
  9169. lt_cv_prog_compiler_static_works=yes
  9170. fi
  9171. else
  9172. lt_cv_prog_compiler_static_works=yes
  9173. fi
  9174. fi
  9175. $RM -r conftest*
  9176. LDFLAGS=$save_LDFLAGS
  9177. fi
  9178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9179. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9180. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9181. :
  9182. else
  9183. lt_prog_compiler_static=
  9184. fi
  9185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9186. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9187. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9188. $as_echo_n "(cached) " >&6
  9189. else
  9190. lt_cv_prog_compiler_c_o=no
  9191. $RM -r conftest 2>/dev/null
  9192. mkdir conftest
  9193. cd conftest
  9194. mkdir out
  9195. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9196. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9197. # Insert the option either (1) after the last *FLAGS variable, or
  9198. # (2) before a word containing "conftest.", or (3) at the end.
  9199. # Note that $ac_compile itself does not contain backslashes and begins
  9200. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9201. lt_compile=`echo "$ac_compile" | $SED \
  9202. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9203. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9204. -e 's:$: $lt_compiler_flag:'`
  9205. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9206. (eval "$lt_compile" 2>out/conftest.err)
  9207. ac_status=$?
  9208. cat out/conftest.err >&5
  9209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9210. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9211. then
  9212. # The compiler can only warn and ignore the option if not recognized
  9213. # So say no if there are warnings
  9214. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9215. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9216. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9217. lt_cv_prog_compiler_c_o=yes
  9218. fi
  9219. fi
  9220. chmod u+w . 2>&5
  9221. $RM conftest*
  9222. # SGI C++ compiler will create directory out/ii_files/ for
  9223. # template instantiation
  9224. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9225. $RM out/* && rmdir out
  9226. cd ..
  9227. $RM -r conftest
  9228. $RM conftest*
  9229. fi
  9230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9231. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9233. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9234. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9235. $as_echo_n "(cached) " >&6
  9236. else
  9237. lt_cv_prog_compiler_c_o=no
  9238. $RM -r conftest 2>/dev/null
  9239. mkdir conftest
  9240. cd conftest
  9241. mkdir out
  9242. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9243. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9244. # Insert the option either (1) after the last *FLAGS variable, or
  9245. # (2) before a word containing "conftest.", or (3) at the end.
  9246. # Note that $ac_compile itself does not contain backslashes and begins
  9247. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9248. lt_compile=`echo "$ac_compile" | $SED \
  9249. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9250. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9251. -e 's:$: $lt_compiler_flag:'`
  9252. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9253. (eval "$lt_compile" 2>out/conftest.err)
  9254. ac_status=$?
  9255. cat out/conftest.err >&5
  9256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9257. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9258. then
  9259. # The compiler can only warn and ignore the option if not recognized
  9260. # So say no if there are warnings
  9261. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9262. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9263. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9264. lt_cv_prog_compiler_c_o=yes
  9265. fi
  9266. fi
  9267. chmod u+w . 2>&5
  9268. $RM conftest*
  9269. # SGI C++ compiler will create directory out/ii_files/ for
  9270. # template instantiation
  9271. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9272. $RM out/* && rmdir out
  9273. cd ..
  9274. $RM -r conftest
  9275. $RM conftest*
  9276. fi
  9277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9278. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9279. hard_links=nottested
  9280. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9281. # do not overwrite the value of need_locks provided by the user
  9282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9283. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9284. hard_links=yes
  9285. $RM conftest*
  9286. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9287. touch conftest.a
  9288. ln conftest.a conftest.b 2>&5 || hard_links=no
  9289. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9291. $as_echo "$hard_links" >&6; }
  9292. if test no = "$hard_links"; then
  9293. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9294. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9295. need_locks=warn
  9296. fi
  9297. else
  9298. need_locks=no
  9299. fi
  9300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9301. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9302. runpath_var=
  9303. allow_undefined_flag=
  9304. always_export_symbols=no
  9305. archive_cmds=
  9306. archive_expsym_cmds=
  9307. compiler_needs_object=no
  9308. enable_shared_with_static_runtimes=no
  9309. export_dynamic_flag_spec=
  9310. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9311. hardcode_automatic=no
  9312. hardcode_direct=no
  9313. hardcode_direct_absolute=no
  9314. hardcode_libdir_flag_spec=
  9315. hardcode_libdir_separator=
  9316. hardcode_minus_L=no
  9317. hardcode_shlibpath_var=unsupported
  9318. inherit_rpath=no
  9319. link_all_deplibs=unknown
  9320. module_cmds=
  9321. module_expsym_cmds=
  9322. old_archive_from_new_cmds=
  9323. old_archive_from_expsyms_cmds=
  9324. thread_safe_flag_spec=
  9325. whole_archive_flag_spec=
  9326. # include_expsyms should be a list of space-separated symbols to be *always*
  9327. # included in the symbol list
  9328. include_expsyms=
  9329. # exclude_expsyms can be an extended regexp of symbols to exclude
  9330. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9331. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9332. # as well as any symbol that contains 'd'.
  9333. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9334. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9335. # platforms (ab)use it in PIC code, but their linkers get confused if
  9336. # the symbol is explicitly referenced. Since portable code cannot
  9337. # rely on this symbol name, it's probably fine to never include it in
  9338. # preloaded symbol tables.
  9339. # Exclude shared library initialization/finalization symbols.
  9340. extract_expsyms_cmds=
  9341. case $host_os in
  9342. cygwin* | mingw* | pw32* | cegcc*)
  9343. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9344. # When not using gcc, we currently assume that we are using
  9345. # Microsoft Visual C++.
  9346. if test yes != "$GCC"; then
  9347. with_gnu_ld=no
  9348. fi
  9349. ;;
  9350. interix*)
  9351. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9352. with_gnu_ld=yes
  9353. ;;
  9354. openbsd* | bitrig*)
  9355. with_gnu_ld=no
  9356. ;;
  9357. linux* | k*bsd*-gnu | gnu*)
  9358. link_all_deplibs=no
  9359. ;;
  9360. esac
  9361. ld_shlibs=yes
  9362. # On some targets, GNU ld is compatible enough with the native linker
  9363. # that we're better off using the native interface for both.
  9364. lt_use_gnu_ld_interface=no
  9365. if test yes = "$with_gnu_ld"; then
  9366. case $host_os in
  9367. aix*)
  9368. # The AIX port of GNU ld has always aspired to compatibility
  9369. # with the native linker. However, as the warning in the GNU ld
  9370. # block says, versions before 2.19.5* couldn't really create working
  9371. # shared libraries, regardless of the interface used.
  9372. case `$LD -v 2>&1` in
  9373. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9374. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9375. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9376. *)
  9377. lt_use_gnu_ld_interface=yes
  9378. ;;
  9379. esac
  9380. ;;
  9381. *)
  9382. lt_use_gnu_ld_interface=yes
  9383. ;;
  9384. esac
  9385. fi
  9386. if test yes = "$lt_use_gnu_ld_interface"; then
  9387. # If archive_cmds runs LD, not CC, wlarc should be empty
  9388. wlarc='$wl'
  9389. # Set some defaults for GNU ld with shared library support. These
  9390. # are reset later if shared libraries are not supported. Putting them
  9391. # here allows them to be overridden if necessary.
  9392. runpath_var=LD_RUN_PATH
  9393. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9394. export_dynamic_flag_spec='$wl--export-dynamic'
  9395. # ancient GNU ld didn't support --whole-archive et. al.
  9396. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9397. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9398. else
  9399. whole_archive_flag_spec=
  9400. fi
  9401. supports_anon_versioning=no
  9402. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9403. *GNU\ gold*) supports_anon_versioning=yes ;;
  9404. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9405. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9406. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9407. *\ 2.11.*) ;; # other 2.11 versions
  9408. *) supports_anon_versioning=yes ;;
  9409. esac
  9410. # See if GNU ld supports shared libraries.
  9411. case $host_os in
  9412. aix[3-9]*)
  9413. # On AIX/PPC, the GNU linker is very broken
  9414. if test ia64 != "$host_cpu"; then
  9415. ld_shlibs=no
  9416. cat <<_LT_EOF 1>&2
  9417. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9418. *** to be unable to reliably create shared libraries on AIX.
  9419. *** Therefore, libtool is disabling shared libraries support. If you
  9420. *** really care for shared libraries, you may want to install binutils
  9421. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9422. *** You will then need to restart the configuration process.
  9423. _LT_EOF
  9424. fi
  9425. ;;
  9426. amigaos*)
  9427. case $host_cpu in
  9428. powerpc)
  9429. # see comment about AmigaOS4 .so support
  9430. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9431. archive_expsym_cmds=''
  9432. ;;
  9433. m68k)
  9434. 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)'
  9435. hardcode_libdir_flag_spec='-L$libdir'
  9436. hardcode_minus_L=yes
  9437. ;;
  9438. esac
  9439. ;;
  9440. beos*)
  9441. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9442. allow_undefined_flag=unsupported
  9443. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9444. # support --undefined. This deserves some investigation. FIXME
  9445. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9446. else
  9447. ld_shlibs=no
  9448. fi
  9449. ;;
  9450. cygwin* | mingw* | pw32* | cegcc*)
  9451. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9452. # as there is no search path for DLLs.
  9453. hardcode_libdir_flag_spec='-L$libdir'
  9454. export_dynamic_flag_spec='$wl--export-all-symbols'
  9455. allow_undefined_flag=unsupported
  9456. always_export_symbols=no
  9457. enable_shared_with_static_runtimes=yes
  9458. 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'
  9459. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9460. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9461. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9462. # If the export-symbols file already is a .def file, use it as
  9463. # is; otherwise, prepend EXPORTS...
  9464. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9465. cp $export_symbols $output_objdir/$soname.def;
  9466. else
  9467. echo EXPORTS > $output_objdir/$soname.def;
  9468. cat $export_symbols >> $output_objdir/$soname.def;
  9469. fi~
  9470. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9471. else
  9472. ld_shlibs=no
  9473. fi
  9474. ;;
  9475. haiku*)
  9476. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9477. link_all_deplibs=yes
  9478. ;;
  9479. os2*)
  9480. hardcode_libdir_flag_spec='-L$libdir'
  9481. hardcode_minus_L=yes
  9482. allow_undefined_flag=unsupported
  9483. shrext_cmds=.dll
  9484. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9485. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9486. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9487. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9488. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9489. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9490. emximp -o $lib $output_objdir/$libname.def'
  9491. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9492. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9493. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9494. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9495. prefix_cmds="$SED"~
  9496. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9497. prefix_cmds="$prefix_cmds -e 1d";
  9498. fi~
  9499. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9500. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9501. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9502. emximp -o $lib $output_objdir/$libname.def'
  9503. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9504. enable_shared_with_static_runtimes=yes
  9505. ;;
  9506. interix[3-9]*)
  9507. hardcode_direct=no
  9508. hardcode_shlibpath_var=no
  9509. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9510. export_dynamic_flag_spec='$wl-E'
  9511. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9512. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9513. # default) and relocated if they conflict, which is a slow very memory
  9514. # consuming and fragmenting process. To avoid this, we pick a random,
  9515. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9516. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9517. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9518. 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'
  9519. ;;
  9520. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9521. tmp_diet=no
  9522. if test linux-dietlibc = "$host_os"; then
  9523. case $cc_basename in
  9524. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9525. esac
  9526. fi
  9527. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9528. && test no = "$tmp_diet"
  9529. then
  9530. tmp_addflag=' $pic_flag'
  9531. tmp_sharedflag='-shared'
  9532. case $cc_basename,$host_cpu in
  9533. pgcc*) # Portland Group C compiler
  9534. 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'
  9535. tmp_addflag=' $pic_flag'
  9536. ;;
  9537. pgf77* | pgf90* | pgf95* | pgfortran*)
  9538. # Portland Group f77 and f90 compilers
  9539. 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'
  9540. tmp_addflag=' $pic_flag -Mnomain' ;;
  9541. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9542. tmp_addflag=' -i_dynamic' ;;
  9543. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9544. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9545. ifc* | ifort*) # Intel Fortran compiler
  9546. tmp_addflag=' -nofor_main' ;;
  9547. lf95*) # Lahey Fortran 8.1
  9548. whole_archive_flag_spec=
  9549. tmp_sharedflag='--shared' ;;
  9550. nagfor*) # NAGFOR 5.3
  9551. tmp_sharedflag='-Wl,-shared' ;;
  9552. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9553. tmp_sharedflag='-qmkshrobj'
  9554. tmp_addflag= ;;
  9555. nvcc*) # Cuda Compiler Driver 2.2
  9556. 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'
  9557. compiler_needs_object=yes
  9558. ;;
  9559. esac
  9560. case `$CC -V 2>&1 | sed 5q` in
  9561. *Sun\ C*) # Sun C 5.9
  9562. 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'
  9563. compiler_needs_object=yes
  9564. tmp_sharedflag='-G' ;;
  9565. *Sun\ F*) # Sun Fortran 8.3
  9566. tmp_sharedflag='-G' ;;
  9567. esac
  9568. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9569. if test yes = "$supports_anon_versioning"; then
  9570. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9571. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9572. echo "local: *; };" >> $output_objdir/$libname.ver~
  9573. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9574. fi
  9575. case $cc_basename in
  9576. tcc*)
  9577. export_dynamic_flag_spec='-rdynamic'
  9578. ;;
  9579. xlf* | bgf* | bgxlf* | mpixlf*)
  9580. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9581. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9582. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9583. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9584. if test yes = "$supports_anon_versioning"; then
  9585. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9586. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9587. echo "local: *; };" >> $output_objdir/$libname.ver~
  9588. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9589. fi
  9590. ;;
  9591. esac
  9592. else
  9593. ld_shlibs=no
  9594. fi
  9595. ;;
  9596. netbsd* | netbsdelf*-gnu)
  9597. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9598. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9599. wlarc=
  9600. else
  9601. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9602. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9603. fi
  9604. ;;
  9605. solaris*)
  9606. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9607. ld_shlibs=no
  9608. cat <<_LT_EOF 1>&2
  9609. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9610. *** create shared libraries on Solaris systems. Therefore, libtool
  9611. *** is disabling shared libraries support. We urge you to upgrade GNU
  9612. *** binutils to release 2.9.1 or newer. Another option is to modify
  9613. *** your PATH or compiler configuration so that the native linker is
  9614. *** used, and then restart.
  9615. _LT_EOF
  9616. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9617. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9618. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9619. else
  9620. ld_shlibs=no
  9621. fi
  9622. ;;
  9623. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9624. case `$LD -v 2>&1` in
  9625. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9626. ld_shlibs=no
  9627. cat <<_LT_EOF 1>&2
  9628. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9629. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9630. *** is disabling shared libraries support. We urge you to upgrade GNU
  9631. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9632. *** your PATH or compiler configuration so that the native linker is
  9633. *** used, and then restart.
  9634. _LT_EOF
  9635. ;;
  9636. *)
  9637. # For security reasons, it is highly recommended that you always
  9638. # use absolute paths for naming shared libraries, and exclude the
  9639. # DT_RUNPATH tag from executables and libraries. But doing so
  9640. # requires that you compile everything twice, which is a pain.
  9641. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9642. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9643. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9644. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9645. else
  9646. ld_shlibs=no
  9647. fi
  9648. ;;
  9649. esac
  9650. ;;
  9651. sunos4*)
  9652. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9653. wlarc=
  9654. hardcode_direct=yes
  9655. hardcode_shlibpath_var=no
  9656. ;;
  9657. *)
  9658. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9659. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9660. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9661. else
  9662. ld_shlibs=no
  9663. fi
  9664. ;;
  9665. esac
  9666. if test no = "$ld_shlibs"; then
  9667. runpath_var=
  9668. hardcode_libdir_flag_spec=
  9669. export_dynamic_flag_spec=
  9670. whole_archive_flag_spec=
  9671. fi
  9672. else
  9673. # PORTME fill in a description of your system's linker (not GNU ld)
  9674. case $host_os in
  9675. aix3*)
  9676. allow_undefined_flag=unsupported
  9677. always_export_symbols=yes
  9678. 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'
  9679. # Note: this linker hardcodes the directories in LIBPATH if there
  9680. # are no directories specified by -L.
  9681. hardcode_minus_L=yes
  9682. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9683. # Neither direct hardcoding nor static linking is supported with a
  9684. # broken collect2.
  9685. hardcode_direct=unsupported
  9686. fi
  9687. ;;
  9688. aix[4-9]*)
  9689. if test ia64 = "$host_cpu"; then
  9690. # On IA64, the linker does run time linking by default, so we don't
  9691. # have to do anything special.
  9692. aix_use_runtimelinking=no
  9693. exp_sym_flag='-Bexport'
  9694. no_entry_flag=
  9695. else
  9696. # If we're using GNU nm, then we don't want the "-C" option.
  9697. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9698. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9699. # weak defined symbols like other global defined symbols, whereas
  9700. # GNU nm marks them as "W".
  9701. # While the 'weak' keyword is ignored in the Export File, we need
  9702. # it in the Import File for the 'aix-soname' feature, so we have
  9703. # to replace the "-B" option with "-P" for AIX nm.
  9704. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9705. 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'
  9706. else
  9707. 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'
  9708. fi
  9709. aix_use_runtimelinking=no
  9710. # Test if we are trying to use run time linking or normal
  9711. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9712. # have runtime linking enabled, and use it for executables.
  9713. # For shared libraries, we enable/disable runtime linking
  9714. # depending on the kind of the shared library created -
  9715. # when "with_aix_soname,aix_use_runtimelinking" is:
  9716. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9717. # "aix,yes" lib.so shared, rtl:yes, for executables
  9718. # lib.a static archive
  9719. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9720. # lib.a(lib.so.V) shared, rtl:no, for executables
  9721. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9722. # lib.a(lib.so.V) shared, rtl:no
  9723. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9724. # lib.a static archive
  9725. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9726. for ld_flag in $LDFLAGS; do
  9727. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9728. aix_use_runtimelinking=yes
  9729. break
  9730. fi
  9731. done
  9732. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9733. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9734. # so we don't have lib.a shared libs to link our executables.
  9735. # We have to force runtime linking in this case.
  9736. aix_use_runtimelinking=yes
  9737. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9738. fi
  9739. ;;
  9740. esac
  9741. exp_sym_flag='-bexport'
  9742. no_entry_flag='-bnoentry'
  9743. fi
  9744. # When large executables or shared objects are built, AIX ld can
  9745. # have problems creating the table of contents. If linking a library
  9746. # or program results in "error TOC overflow" add -mminimal-toc to
  9747. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9748. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9749. archive_cmds=''
  9750. hardcode_direct=yes
  9751. hardcode_direct_absolute=yes
  9752. hardcode_libdir_separator=':'
  9753. link_all_deplibs=yes
  9754. file_list_spec='$wl-f,'
  9755. case $with_aix_soname,$aix_use_runtimelinking in
  9756. aix,*) ;; # traditional, no import file
  9757. svr4,* | *,yes) # use import file
  9758. # The Import File defines what to hardcode.
  9759. hardcode_direct=no
  9760. hardcode_direct_absolute=no
  9761. ;;
  9762. esac
  9763. if test yes = "$GCC"; then
  9764. case $host_os in aix4.[012]|aix4.[012].*)
  9765. # We only want to do this on AIX 4.2 and lower, the check
  9766. # below for broken collect2 doesn't work under 4.3+
  9767. collect2name=`$CC -print-prog-name=collect2`
  9768. if test -f "$collect2name" &&
  9769. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9770. then
  9771. # We have reworked collect2
  9772. :
  9773. else
  9774. # We have old collect2
  9775. hardcode_direct=unsupported
  9776. # It fails to find uninstalled libraries when the uninstalled
  9777. # path is not listed in the libpath. Setting hardcode_minus_L
  9778. # to unsupported forces relinking
  9779. hardcode_minus_L=yes
  9780. hardcode_libdir_flag_spec='-L$libdir'
  9781. hardcode_libdir_separator=
  9782. fi
  9783. ;;
  9784. esac
  9785. shared_flag='-shared'
  9786. if test yes = "$aix_use_runtimelinking"; then
  9787. shared_flag="$shared_flag "'$wl-G'
  9788. fi
  9789. # Need to ensure runtime linking is disabled for the traditional
  9790. # shared library, or the linker may eventually find shared libraries
  9791. # /with/ Import File - we do not want to mix them.
  9792. shared_flag_aix='-shared'
  9793. shared_flag_svr4='-shared $wl-G'
  9794. else
  9795. # not using gcc
  9796. if test ia64 = "$host_cpu"; then
  9797. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9798. # chokes on -Wl,-G. The following line is correct:
  9799. shared_flag='-G'
  9800. else
  9801. if test yes = "$aix_use_runtimelinking"; then
  9802. shared_flag='$wl-G'
  9803. else
  9804. shared_flag='$wl-bM:SRE'
  9805. fi
  9806. shared_flag_aix='$wl-bM:SRE'
  9807. shared_flag_svr4='$wl-G'
  9808. fi
  9809. fi
  9810. export_dynamic_flag_spec='$wl-bexpall'
  9811. # It seems that -bexpall does not export symbols beginning with
  9812. # underscore (_), so it is better to generate a list of symbols to export.
  9813. always_export_symbols=yes
  9814. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9815. # Warning - without using the other runtime loading flags (-brtl),
  9816. # -berok will link without error, but may produce a broken library.
  9817. allow_undefined_flag='-berok'
  9818. # Determine the default libpath from the value encoded in an
  9819. # empty executable.
  9820. if test set = "${lt_cv_aix_libpath+set}"; then
  9821. aix_libpath=$lt_cv_aix_libpath
  9822. else
  9823. if ${lt_cv_aix_libpath_+:} false; then :
  9824. $as_echo_n "(cached) " >&6
  9825. else
  9826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9827. /* end confdefs.h. */
  9828. int
  9829. main ()
  9830. {
  9831. ;
  9832. return 0;
  9833. }
  9834. _ACEOF
  9835. if ac_fn_c_try_link "$LINENO"; then :
  9836. lt_aix_libpath_sed='
  9837. /Import File Strings/,/^$/ {
  9838. /^0/ {
  9839. s/^0 *\([^ ]*\) *$/\1/
  9840. p
  9841. }
  9842. }'
  9843. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9844. # Check for a 64-bit object if we didn't find anything.
  9845. if test -z "$lt_cv_aix_libpath_"; then
  9846. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9847. fi
  9848. fi
  9849. rm -f core conftest.err conftest.$ac_objext \
  9850. conftest$ac_exeext conftest.$ac_ext
  9851. if test -z "$lt_cv_aix_libpath_"; then
  9852. lt_cv_aix_libpath_=/usr/lib:/lib
  9853. fi
  9854. fi
  9855. aix_libpath=$lt_cv_aix_libpath_
  9856. fi
  9857. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9858. 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
  9859. else
  9860. if test ia64 = "$host_cpu"; then
  9861. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9862. allow_undefined_flag="-z nodefs"
  9863. 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"
  9864. else
  9865. # Determine the default libpath from the value encoded in an
  9866. # empty executable.
  9867. if test set = "${lt_cv_aix_libpath+set}"; then
  9868. aix_libpath=$lt_cv_aix_libpath
  9869. else
  9870. if ${lt_cv_aix_libpath_+:} false; then :
  9871. $as_echo_n "(cached) " >&6
  9872. else
  9873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9874. /* end confdefs.h. */
  9875. int
  9876. main ()
  9877. {
  9878. ;
  9879. return 0;
  9880. }
  9881. _ACEOF
  9882. if ac_fn_c_try_link "$LINENO"; then :
  9883. lt_aix_libpath_sed='
  9884. /Import File Strings/,/^$/ {
  9885. /^0/ {
  9886. s/^0 *\([^ ]*\) *$/\1/
  9887. p
  9888. }
  9889. }'
  9890. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9891. # Check for a 64-bit object if we didn't find anything.
  9892. if test -z "$lt_cv_aix_libpath_"; then
  9893. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9894. fi
  9895. fi
  9896. rm -f core conftest.err conftest.$ac_objext \
  9897. conftest$ac_exeext conftest.$ac_ext
  9898. if test -z "$lt_cv_aix_libpath_"; then
  9899. lt_cv_aix_libpath_=/usr/lib:/lib
  9900. fi
  9901. fi
  9902. aix_libpath=$lt_cv_aix_libpath_
  9903. fi
  9904. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9905. # Warning - without using the other run time loading flags,
  9906. # -berok will link without error, but may produce a broken library.
  9907. no_undefined_flag=' $wl-bernotok'
  9908. allow_undefined_flag=' $wl-berok'
  9909. if test yes = "$with_gnu_ld"; then
  9910. # We only use this code for GNU lds that support --whole-archive.
  9911. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9912. else
  9913. # Exported symbols can be pulled into shared objects from archives
  9914. whole_archive_flag_spec='$convenience'
  9915. fi
  9916. archive_cmds_need_lc=yes
  9917. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9918. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9919. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9920. if test svr4 != "$with_aix_soname"; then
  9921. # This is similar to how AIX traditionally builds its shared libraries.
  9922. 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'
  9923. fi
  9924. if test aix != "$with_aix_soname"; then
  9925. 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'
  9926. else
  9927. # used by -dlpreopen to get the symbols
  9928. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9929. fi
  9930. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9931. fi
  9932. fi
  9933. ;;
  9934. amigaos*)
  9935. case $host_cpu in
  9936. powerpc)
  9937. # see comment about AmigaOS4 .so support
  9938. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9939. archive_expsym_cmds=''
  9940. ;;
  9941. m68k)
  9942. 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)'
  9943. hardcode_libdir_flag_spec='-L$libdir'
  9944. hardcode_minus_L=yes
  9945. ;;
  9946. esac
  9947. ;;
  9948. bsdi[45]*)
  9949. export_dynamic_flag_spec=-rdynamic
  9950. ;;
  9951. cygwin* | mingw* | pw32* | cegcc*)
  9952. # When not using gcc, we currently assume that we are using
  9953. # Microsoft Visual C++.
  9954. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9955. # no search path for DLLs.
  9956. case $cc_basename in
  9957. cl*)
  9958. # Native MSVC
  9959. hardcode_libdir_flag_spec=' '
  9960. allow_undefined_flag=unsupported
  9961. always_export_symbols=yes
  9962. file_list_spec='@'
  9963. # Tell ltmain to make .lib files, not .a files.
  9964. libext=lib
  9965. # Tell ltmain to make .dll files, not .so files.
  9966. shrext_cmds=.dll
  9967. # FIXME: Setting linknames here is a bad hack.
  9968. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9969. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9970. cp "$export_symbols" "$output_objdir/$soname.def";
  9971. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9972. else
  9973. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9974. fi~
  9975. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9976. linknames='
  9977. # The linker will not automatically build a static lib if we build a DLL.
  9978. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9979. enable_shared_with_static_runtimes=yes
  9980. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9981. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9982. # Don't use ranlib
  9983. old_postinstall_cmds='chmod 644 $oldlib'
  9984. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9985. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9986. case $lt_outputfile in
  9987. *.exe|*.EXE) ;;
  9988. *)
  9989. lt_outputfile=$lt_outputfile.exe
  9990. lt_tool_outputfile=$lt_tool_outputfile.exe
  9991. ;;
  9992. esac~
  9993. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9994. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9995. $RM "$lt_outputfile.manifest";
  9996. fi'
  9997. ;;
  9998. *)
  9999. # Assume MSVC wrapper
  10000. hardcode_libdir_flag_spec=' '
  10001. allow_undefined_flag=unsupported
  10002. # Tell ltmain to make .lib files, not .a files.
  10003. libext=lib
  10004. # Tell ltmain to make .dll files, not .so files.
  10005. shrext_cmds=.dll
  10006. # FIXME: Setting linknames here is a bad hack.
  10007. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10008. # The linker will automatically build a .lib file if we build a DLL.
  10009. old_archive_from_new_cmds='true'
  10010. # FIXME: Should let the user specify the lib program.
  10011. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10012. enable_shared_with_static_runtimes=yes
  10013. ;;
  10014. esac
  10015. ;;
  10016. darwin* | rhapsody*)
  10017. archive_cmds_need_lc=no
  10018. hardcode_direct=no
  10019. hardcode_automatic=yes
  10020. hardcode_shlibpath_var=unsupported
  10021. if test yes = "$lt_cv_ld_force_load"; then
  10022. 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\"`'
  10023. else
  10024. whole_archive_flag_spec=''
  10025. fi
  10026. link_all_deplibs=yes
  10027. allow_undefined_flag=$_lt_dar_allow_undefined
  10028. case $cc_basename in
  10029. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10030. *) _lt_dar_can_shared=$GCC ;;
  10031. esac
  10032. if test yes = "$_lt_dar_can_shared"; then
  10033. output_verbose_link_cmd=func_echo_all
  10034. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10035. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10036. 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"
  10037. 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"
  10038. else
  10039. ld_shlibs=no
  10040. fi
  10041. ;;
  10042. dgux*)
  10043. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10044. hardcode_libdir_flag_spec='-L$libdir'
  10045. hardcode_shlibpath_var=no
  10046. ;;
  10047. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10048. # support. Future versions do this automatically, but an explicit c++rt0.o
  10049. # does not break anything, and helps significantly (at the cost of a little
  10050. # extra space).
  10051. freebsd2.2*)
  10052. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10053. hardcode_libdir_flag_spec='-R$libdir'
  10054. hardcode_direct=yes
  10055. hardcode_shlibpath_var=no
  10056. ;;
  10057. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10058. freebsd2.*)
  10059. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10060. hardcode_direct=yes
  10061. hardcode_minus_L=yes
  10062. hardcode_shlibpath_var=no
  10063. ;;
  10064. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10065. freebsd* | dragonfly*)
  10066. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10067. hardcode_libdir_flag_spec='-R$libdir'
  10068. hardcode_direct=yes
  10069. hardcode_shlibpath_var=no
  10070. ;;
  10071. hpux9*)
  10072. if test yes = "$GCC"; then
  10073. 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'
  10074. else
  10075. 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'
  10076. fi
  10077. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10078. hardcode_libdir_separator=:
  10079. hardcode_direct=yes
  10080. # hardcode_minus_L: Not really in the search PATH,
  10081. # but as the default location of the library.
  10082. hardcode_minus_L=yes
  10083. export_dynamic_flag_spec='$wl-E'
  10084. ;;
  10085. hpux10*)
  10086. if test yes,no = "$GCC,$with_gnu_ld"; then
  10087. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10088. else
  10089. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10090. fi
  10091. if test no = "$with_gnu_ld"; then
  10092. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10093. hardcode_libdir_separator=:
  10094. hardcode_direct=yes
  10095. hardcode_direct_absolute=yes
  10096. export_dynamic_flag_spec='$wl-E'
  10097. # hardcode_minus_L: Not really in the search PATH,
  10098. # but as the default location of the library.
  10099. hardcode_minus_L=yes
  10100. fi
  10101. ;;
  10102. hpux11*)
  10103. if test yes,no = "$GCC,$with_gnu_ld"; then
  10104. case $host_cpu in
  10105. hppa*64*)
  10106. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10107. ;;
  10108. ia64*)
  10109. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10110. ;;
  10111. *)
  10112. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10113. ;;
  10114. esac
  10115. else
  10116. case $host_cpu in
  10117. hppa*64*)
  10118. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10119. ;;
  10120. ia64*)
  10121. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10122. ;;
  10123. *)
  10124. # Older versions of the 11.00 compiler do not understand -b yet
  10125. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10127. $as_echo_n "checking if $CC understands -b... " >&6; }
  10128. if ${lt_cv_prog_compiler__b+:} false; then :
  10129. $as_echo_n "(cached) " >&6
  10130. else
  10131. lt_cv_prog_compiler__b=no
  10132. save_LDFLAGS=$LDFLAGS
  10133. LDFLAGS="$LDFLAGS -b"
  10134. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10135. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10136. # The linker can only warn and ignore the option if not recognized
  10137. # So say no if there are warnings
  10138. if test -s conftest.err; then
  10139. # Append any errors to the config.log.
  10140. cat conftest.err 1>&5
  10141. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10142. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10143. if diff conftest.exp conftest.er2 >/dev/null; then
  10144. lt_cv_prog_compiler__b=yes
  10145. fi
  10146. else
  10147. lt_cv_prog_compiler__b=yes
  10148. fi
  10149. fi
  10150. $RM -r conftest*
  10151. LDFLAGS=$save_LDFLAGS
  10152. fi
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10154. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  10155. if test yes = "$lt_cv_prog_compiler__b"; then
  10156. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10157. else
  10158. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10159. fi
  10160. ;;
  10161. esac
  10162. fi
  10163. if test no = "$with_gnu_ld"; then
  10164. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10165. hardcode_libdir_separator=:
  10166. case $host_cpu in
  10167. hppa*64*|ia64*)
  10168. hardcode_direct=no
  10169. hardcode_shlibpath_var=no
  10170. ;;
  10171. *)
  10172. hardcode_direct=yes
  10173. hardcode_direct_absolute=yes
  10174. export_dynamic_flag_spec='$wl-E'
  10175. # hardcode_minus_L: Not really in the search PATH,
  10176. # but as the default location of the library.
  10177. hardcode_minus_L=yes
  10178. ;;
  10179. esac
  10180. fi
  10181. ;;
  10182. irix5* | irix6* | nonstopux*)
  10183. if test yes = "$GCC"; then
  10184. 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'
  10185. # Try to use the -exported_symbol ld option, if it does not
  10186. # work, assume that -exports_file does not work either and
  10187. # implicitly export all symbols.
  10188. # This should be the same for all languages, so no per-tag cache variable.
  10189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10190. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10191. if ${lt_cv_irix_exported_symbol+:} false; then :
  10192. $as_echo_n "(cached) " >&6
  10193. else
  10194. save_LDFLAGS=$LDFLAGS
  10195. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10197. /* end confdefs.h. */
  10198. int foo (void) { return 0; }
  10199. _ACEOF
  10200. if ac_fn_c_try_link "$LINENO"; then :
  10201. lt_cv_irix_exported_symbol=yes
  10202. else
  10203. lt_cv_irix_exported_symbol=no
  10204. fi
  10205. rm -f core conftest.err conftest.$ac_objext \
  10206. conftest$ac_exeext conftest.$ac_ext
  10207. LDFLAGS=$save_LDFLAGS
  10208. fi
  10209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10210. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  10211. if test yes = "$lt_cv_irix_exported_symbol"; then
  10212. 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'
  10213. fi
  10214. link_all_deplibs=no
  10215. else
  10216. 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'
  10217. 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'
  10218. fi
  10219. archive_cmds_need_lc='no'
  10220. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10221. hardcode_libdir_separator=:
  10222. inherit_rpath=yes
  10223. link_all_deplibs=yes
  10224. ;;
  10225. linux*)
  10226. case $cc_basename in
  10227. tcc*)
  10228. # Fabrice Bellard et al's Tiny C Compiler
  10229. ld_shlibs=yes
  10230. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10231. ;;
  10232. esac
  10233. ;;
  10234. netbsd* | netbsdelf*-gnu)
  10235. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10236. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10237. else
  10238. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10239. fi
  10240. hardcode_libdir_flag_spec='-R$libdir'
  10241. hardcode_direct=yes
  10242. hardcode_shlibpath_var=no
  10243. ;;
  10244. newsos6)
  10245. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10246. hardcode_direct=yes
  10247. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10248. hardcode_libdir_separator=:
  10249. hardcode_shlibpath_var=no
  10250. ;;
  10251. *nto* | *qnx*)
  10252. ;;
  10253. openbsd* | bitrig*)
  10254. if test -f /usr/libexec/ld.so; then
  10255. hardcode_direct=yes
  10256. hardcode_shlibpath_var=no
  10257. hardcode_direct_absolute=yes
  10258. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10259. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10260. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10261. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10262. export_dynamic_flag_spec='$wl-E'
  10263. else
  10264. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10265. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10266. fi
  10267. else
  10268. ld_shlibs=no
  10269. fi
  10270. ;;
  10271. os2*)
  10272. hardcode_libdir_flag_spec='-L$libdir'
  10273. hardcode_minus_L=yes
  10274. allow_undefined_flag=unsupported
  10275. shrext_cmds=.dll
  10276. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10277. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10278. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10279. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10280. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10281. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10282. emximp -o $lib $output_objdir/$libname.def'
  10283. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10284. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10285. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10286. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10287. prefix_cmds="$SED"~
  10288. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10289. prefix_cmds="$prefix_cmds -e 1d";
  10290. fi~
  10291. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10292. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10293. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10294. emximp -o $lib $output_objdir/$libname.def'
  10295. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10296. enable_shared_with_static_runtimes=yes
  10297. ;;
  10298. osf3*)
  10299. if test yes = "$GCC"; then
  10300. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10301. 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'
  10302. else
  10303. allow_undefined_flag=' -expect_unresolved \*'
  10304. 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'
  10305. fi
  10306. archive_cmds_need_lc='no'
  10307. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10308. hardcode_libdir_separator=:
  10309. ;;
  10310. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10311. if test yes = "$GCC"; then
  10312. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10313. 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'
  10314. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10315. else
  10316. allow_undefined_flag=' -expect_unresolved \*'
  10317. 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'
  10318. 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~
  10319. $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'
  10320. # Both c and cxx compiler support -rpath directly
  10321. hardcode_libdir_flag_spec='-rpath $libdir'
  10322. fi
  10323. archive_cmds_need_lc='no'
  10324. hardcode_libdir_separator=:
  10325. ;;
  10326. solaris*)
  10327. no_undefined_flag=' -z defs'
  10328. if test yes = "$GCC"; then
  10329. wlarc='$wl'
  10330. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10331. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10332. $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'
  10333. else
  10334. case `$CC -V 2>&1` in
  10335. *"Compilers 5.0"*)
  10336. wlarc=''
  10337. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10338. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10339. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10340. ;;
  10341. *)
  10342. wlarc='$wl'
  10343. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10344. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10345. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10346. ;;
  10347. esac
  10348. fi
  10349. hardcode_libdir_flag_spec='-R$libdir'
  10350. hardcode_shlibpath_var=no
  10351. case $host_os in
  10352. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10353. *)
  10354. # The compiler driver will combine and reorder linker options,
  10355. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10356. # but is careful enough not to reorder.
  10357. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10358. if test yes = "$GCC"; then
  10359. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10360. else
  10361. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10362. fi
  10363. ;;
  10364. esac
  10365. link_all_deplibs=yes
  10366. ;;
  10367. sunos4*)
  10368. if test sequent = "$host_vendor"; then
  10369. # Use $CC to link under sequent, because it throws in some extra .o
  10370. # files that make .init and .fini sections work.
  10371. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10372. else
  10373. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10374. fi
  10375. hardcode_libdir_flag_spec='-L$libdir'
  10376. hardcode_direct=yes
  10377. hardcode_minus_L=yes
  10378. hardcode_shlibpath_var=no
  10379. ;;
  10380. sysv4)
  10381. case $host_vendor in
  10382. sni)
  10383. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10384. hardcode_direct=yes # is this really true???
  10385. ;;
  10386. siemens)
  10387. ## LD is ld it makes a PLAMLIB
  10388. ## CC just makes a GrossModule.
  10389. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10390. reload_cmds='$CC -r -o $output$reload_objs'
  10391. hardcode_direct=no
  10392. ;;
  10393. motorola)
  10394. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10395. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10396. ;;
  10397. esac
  10398. runpath_var='LD_RUN_PATH'
  10399. hardcode_shlibpath_var=no
  10400. ;;
  10401. sysv4.3*)
  10402. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10403. hardcode_shlibpath_var=no
  10404. export_dynamic_flag_spec='-Bexport'
  10405. ;;
  10406. sysv4*MP*)
  10407. if test -d /usr/nec; then
  10408. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10409. hardcode_shlibpath_var=no
  10410. runpath_var=LD_RUN_PATH
  10411. hardcode_runpath_var=yes
  10412. ld_shlibs=yes
  10413. fi
  10414. ;;
  10415. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10416. no_undefined_flag='$wl-z,text'
  10417. archive_cmds_need_lc=no
  10418. hardcode_shlibpath_var=no
  10419. runpath_var='LD_RUN_PATH'
  10420. if test yes = "$GCC"; then
  10421. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10422. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10423. else
  10424. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10425. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10426. fi
  10427. ;;
  10428. sysv5* | sco3.2v5* | sco5v6*)
  10429. # Note: We CANNOT use -z defs as we might desire, because we do not
  10430. # link with -lc, and that would cause any symbols used from libc to
  10431. # always be unresolved, which means just about no library would
  10432. # ever link correctly. If we're not using GNU ld we use -z text
  10433. # though, which does catch some bad symbols but isn't as heavy-handed
  10434. # as -z defs.
  10435. no_undefined_flag='$wl-z,text'
  10436. allow_undefined_flag='$wl-z,nodefs'
  10437. archive_cmds_need_lc=no
  10438. hardcode_shlibpath_var=no
  10439. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10440. hardcode_libdir_separator=':'
  10441. link_all_deplibs=yes
  10442. export_dynamic_flag_spec='$wl-Bexport'
  10443. runpath_var='LD_RUN_PATH'
  10444. if test yes = "$GCC"; then
  10445. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10446. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10447. else
  10448. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10449. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10450. fi
  10451. ;;
  10452. uts4*)
  10453. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10454. hardcode_libdir_flag_spec='-L$libdir'
  10455. hardcode_shlibpath_var=no
  10456. ;;
  10457. *)
  10458. ld_shlibs=no
  10459. ;;
  10460. esac
  10461. if test sni = "$host_vendor"; then
  10462. case $host in
  10463. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10464. export_dynamic_flag_spec='$wl-Blargedynsym'
  10465. ;;
  10466. esac
  10467. fi
  10468. fi
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10470. $as_echo "$ld_shlibs" >&6; }
  10471. test no = "$ld_shlibs" && can_build_shared=no
  10472. with_gnu_ld=$with_gnu_ld
  10473. #
  10474. # Do we need to explicitly link libc?
  10475. #
  10476. case "x$archive_cmds_need_lc" in
  10477. x|xyes)
  10478. # Assume -lc should be added
  10479. archive_cmds_need_lc=yes
  10480. if test yes,yes = "$GCC,$enable_shared"; then
  10481. case $archive_cmds in
  10482. *'~'*)
  10483. # FIXME: we may have to deal with multi-command sequences.
  10484. ;;
  10485. '$CC '*)
  10486. # Test whether the compiler implicitly links with -lc since on some
  10487. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10488. # to ld, don't add -lc before -lgcc.
  10489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10490. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10491. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10492. $as_echo_n "(cached) " >&6
  10493. else
  10494. $RM conftest*
  10495. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10496. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10497. (eval $ac_compile) 2>&5
  10498. ac_status=$?
  10499. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10500. test $ac_status = 0; } 2>conftest.err; then
  10501. soname=conftest
  10502. lib=conftest
  10503. libobjs=conftest.$ac_objext
  10504. deplibs=
  10505. wl=$lt_prog_compiler_wl
  10506. pic_flag=$lt_prog_compiler_pic
  10507. compiler_flags=-v
  10508. linker_flags=-v
  10509. verstring=
  10510. output_objdir=.
  10511. libname=conftest
  10512. lt_save_allow_undefined_flag=$allow_undefined_flag
  10513. allow_undefined_flag=
  10514. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10515. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10516. ac_status=$?
  10517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10518. test $ac_status = 0; }
  10519. then
  10520. lt_cv_archive_cmds_need_lc=no
  10521. else
  10522. lt_cv_archive_cmds_need_lc=yes
  10523. fi
  10524. allow_undefined_flag=$lt_save_allow_undefined_flag
  10525. else
  10526. cat conftest.err 1>&5
  10527. fi
  10528. $RM conftest*
  10529. fi
  10530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10531. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10532. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10533. ;;
  10534. esac
  10535. fi
  10536. ;;
  10537. esac
  10538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10539. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10540. if test yes = "$GCC"; then
  10541. case $host_os in
  10542. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10543. *) lt_awk_arg='/^libraries:/' ;;
  10544. esac
  10545. case $host_os in
  10546. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10547. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10548. esac
  10549. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10550. case $lt_search_path_spec in
  10551. *\;*)
  10552. # if the path contains ";" then we assume it to be the separator
  10553. # otherwise default to the standard path separator (i.e. ":") - it is
  10554. # assumed that no part of a normal pathname contains ";" but that should
  10555. # okay in the real world where ";" in dirpaths is itself problematic.
  10556. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10557. ;;
  10558. *)
  10559. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10560. ;;
  10561. esac
  10562. # Ok, now we have the path, separated by spaces, we can step through it
  10563. # and add multilib dir if necessary...
  10564. lt_tmp_lt_search_path_spec=
  10565. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10566. # ...but if some path component already ends with the multilib dir we assume
  10567. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10568. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10569. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10570. lt_multi_os_dir=
  10571. ;;
  10572. esac
  10573. for lt_sys_path in $lt_search_path_spec; do
  10574. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10575. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10576. elif test -n "$lt_multi_os_dir"; then
  10577. test -d "$lt_sys_path" && \
  10578. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10579. fi
  10580. done
  10581. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10582. BEGIN {RS = " "; FS = "/|\n";} {
  10583. lt_foo = "";
  10584. lt_count = 0;
  10585. for (lt_i = NF; lt_i > 0; lt_i--) {
  10586. if ($lt_i != "" && $lt_i != ".") {
  10587. if ($lt_i == "..") {
  10588. lt_count++;
  10589. } else {
  10590. if (lt_count == 0) {
  10591. lt_foo = "/" $lt_i lt_foo;
  10592. } else {
  10593. lt_count--;
  10594. }
  10595. }
  10596. }
  10597. }
  10598. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10599. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10600. }'`
  10601. # AWK program above erroneously prepends '/' to C:/dos/paths
  10602. # for these hosts.
  10603. case $host_os in
  10604. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10605. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10606. esac
  10607. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10608. else
  10609. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10610. fi
  10611. library_names_spec=
  10612. libname_spec='lib$name'
  10613. soname_spec=
  10614. shrext_cmds=.so
  10615. postinstall_cmds=
  10616. postuninstall_cmds=
  10617. finish_cmds=
  10618. finish_eval=
  10619. shlibpath_var=
  10620. shlibpath_overrides_runpath=unknown
  10621. version_type=none
  10622. dynamic_linker="$host_os ld.so"
  10623. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10624. need_lib_prefix=unknown
  10625. hardcode_into_libs=no
  10626. # when you set need_version to no, make sure it does not cause -set_version
  10627. # flags to be left without arguments
  10628. need_version=unknown
  10629. case $host_os in
  10630. aix3*)
  10631. version_type=linux # correct to gnu/linux during the next big refactor
  10632. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10633. shlibpath_var=LIBPATH
  10634. # AIX 3 has no versioning support, so we append a major version to the name.
  10635. soname_spec='$libname$release$shared_ext$major'
  10636. ;;
  10637. aix[4-9]*)
  10638. version_type=linux # correct to gnu/linux during the next big refactor
  10639. need_lib_prefix=no
  10640. need_version=no
  10641. hardcode_into_libs=yes
  10642. if test ia64 = "$host_cpu"; then
  10643. # AIX 5 supports IA64
  10644. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10645. shlibpath_var=LD_LIBRARY_PATH
  10646. else
  10647. # With GCC up to 2.95.x, collect2 would create an import file
  10648. # for dependence libraries. The import file would start with
  10649. # the line '#! .'. This would cause the generated library to
  10650. # depend on '.', always an invalid library. This was fixed in
  10651. # development snapshots of GCC prior to 3.0.
  10652. case $host_os in
  10653. aix4 | aix4.[01] | aix4.[01].*)
  10654. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10655. echo ' yes '
  10656. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10657. :
  10658. else
  10659. can_build_shared=no
  10660. fi
  10661. ;;
  10662. esac
  10663. # Using Import Files as archive members, it is possible to support
  10664. # filename-based versioning of shared library archives on AIX. While
  10665. # this would work for both with and without runtime linking, it will
  10666. # prevent static linking of such archives. So we do filename-based
  10667. # shared library versioning with .so extension only, which is used
  10668. # when both runtime linking and shared linking is enabled.
  10669. # Unfortunately, runtime linking may impact performance, so we do
  10670. # not want this to be the default eventually. Also, we use the
  10671. # versioned .so libs for executables only if there is the -brtl
  10672. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10673. # To allow for filename-based versioning support, we need to create
  10674. # libNAME.so.V as an archive file, containing:
  10675. # *) an Import File, referring to the versioned filename of the
  10676. # archive as well as the shared archive member, telling the
  10677. # bitwidth (32 or 64) of that shared object, and providing the
  10678. # list of exported symbols of that shared object, eventually
  10679. # decorated with the 'weak' keyword
  10680. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10681. # it being seen by the linker.
  10682. # At run time we better use the real file rather than another symlink,
  10683. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10684. case $with_aix_soname,$aix_use_runtimelinking in
  10685. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10686. # soname into executable. Probably we can add versioning support to
  10687. # collect2, so additional links can be useful in future.
  10688. aix,yes) # traditional libtool
  10689. dynamic_linker='AIX unversionable lib.so'
  10690. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10691. # instead of lib<name>.a to let people know that these are not
  10692. # typical AIX shared libraries.
  10693. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10694. ;;
  10695. aix,no) # traditional AIX only
  10696. dynamic_linker='AIX lib.a(lib.so.V)'
  10697. # We preserve .a as extension for shared libraries through AIX4.2
  10698. # and later when we are not doing run time linking.
  10699. library_names_spec='$libname$release.a $libname.a'
  10700. soname_spec='$libname$release$shared_ext$major'
  10701. ;;
  10702. svr4,*) # full svr4 only
  10703. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10704. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10705. # We do not specify a path in Import Files, so LIBPATH fires.
  10706. shlibpath_overrides_runpath=yes
  10707. ;;
  10708. *,yes) # both, prefer svr4
  10709. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10710. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10711. # unpreferred sharedlib libNAME.a needs extra handling
  10712. 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"'
  10713. 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"'
  10714. # We do not specify a path in Import Files, so LIBPATH fires.
  10715. shlibpath_overrides_runpath=yes
  10716. ;;
  10717. *,no) # both, prefer aix
  10718. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10719. library_names_spec='$libname$release.a $libname.a'
  10720. soname_spec='$libname$release$shared_ext$major'
  10721. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10722. 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)'
  10723. 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"'
  10724. ;;
  10725. esac
  10726. shlibpath_var=LIBPATH
  10727. fi
  10728. ;;
  10729. amigaos*)
  10730. case $host_cpu in
  10731. powerpc)
  10732. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10733. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10734. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10735. ;;
  10736. m68k)
  10737. library_names_spec='$libname.ixlibrary $libname.a'
  10738. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10739. 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'
  10740. ;;
  10741. esac
  10742. ;;
  10743. beos*)
  10744. library_names_spec='$libname$shared_ext'
  10745. dynamic_linker="$host_os ld.so"
  10746. shlibpath_var=LIBRARY_PATH
  10747. ;;
  10748. bsdi[45]*)
  10749. version_type=linux # correct to gnu/linux during the next big refactor
  10750. need_version=no
  10751. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10752. soname_spec='$libname$release$shared_ext$major'
  10753. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10754. shlibpath_var=LD_LIBRARY_PATH
  10755. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10756. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10757. # the default ld.so.conf also contains /usr/contrib/lib and
  10758. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10759. # libtool to hard-code these into programs
  10760. ;;
  10761. cygwin* | mingw* | pw32* | cegcc*)
  10762. version_type=windows
  10763. shrext_cmds=.dll
  10764. need_version=no
  10765. need_lib_prefix=no
  10766. case $GCC,$cc_basename in
  10767. yes,*)
  10768. # gcc
  10769. library_names_spec='$libname.dll.a'
  10770. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10771. postinstall_cmds='base_file=`basename \$file`~
  10772. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10773. dldir=$destdir/`dirname \$dlpath`~
  10774. test -d \$dldir || mkdir -p \$dldir~
  10775. $install_prog $dir/$dlname \$dldir/$dlname~
  10776. chmod a+x \$dldir/$dlname~
  10777. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10778. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10779. fi'
  10780. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10781. dlpath=$dir/\$dldll~
  10782. $RM \$dlpath'
  10783. shlibpath_overrides_runpath=yes
  10784. case $host_os in
  10785. cygwin*)
  10786. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10787. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10788. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10789. ;;
  10790. mingw* | cegcc*)
  10791. # MinGW DLLs use traditional 'lib' prefix
  10792. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10793. ;;
  10794. pw32*)
  10795. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10796. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10797. ;;
  10798. esac
  10799. dynamic_linker='Win32 ld.exe'
  10800. ;;
  10801. *,cl*)
  10802. # Native MSVC
  10803. libname_spec='$name'
  10804. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10805. library_names_spec='$libname.dll.lib'
  10806. case $build_os in
  10807. mingw*)
  10808. sys_lib_search_path_spec=
  10809. lt_save_ifs=$IFS
  10810. IFS=';'
  10811. for lt_path in $LIB
  10812. do
  10813. IFS=$lt_save_ifs
  10814. # Let DOS variable expansion print the short 8.3 style file name.
  10815. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10816. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10817. done
  10818. IFS=$lt_save_ifs
  10819. # Convert to MSYS style.
  10820. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10821. ;;
  10822. cygwin*)
  10823. # Convert to unix form, then to dos form, then back to unix form
  10824. # but this time dos style (no spaces!) so that the unix form looks
  10825. # like /cygdrive/c/PROGRA~1:/cygdr...
  10826. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10827. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10828. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10829. ;;
  10830. *)
  10831. sys_lib_search_path_spec=$LIB
  10832. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10833. # It is most probably a Windows format PATH.
  10834. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10835. else
  10836. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10837. fi
  10838. # FIXME: find the short name or the path components, as spaces are
  10839. # common. (e.g. "Program Files" -> "PROGRA~1")
  10840. ;;
  10841. esac
  10842. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10843. postinstall_cmds='base_file=`basename \$file`~
  10844. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10845. dldir=$destdir/`dirname \$dlpath`~
  10846. test -d \$dldir || mkdir -p \$dldir~
  10847. $install_prog $dir/$dlname \$dldir/$dlname'
  10848. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10849. dlpath=$dir/\$dldll~
  10850. $RM \$dlpath'
  10851. shlibpath_overrides_runpath=yes
  10852. dynamic_linker='Win32 link.exe'
  10853. ;;
  10854. *)
  10855. # Assume MSVC wrapper
  10856. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10857. dynamic_linker='Win32 ld.exe'
  10858. ;;
  10859. esac
  10860. # FIXME: first we should search . and the directory the executable is in
  10861. shlibpath_var=PATH
  10862. ;;
  10863. darwin* | rhapsody*)
  10864. dynamic_linker="$host_os dyld"
  10865. version_type=darwin
  10866. need_lib_prefix=no
  10867. need_version=no
  10868. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10869. soname_spec='$libname$release$major$shared_ext'
  10870. shlibpath_overrides_runpath=yes
  10871. shlibpath_var=DYLD_LIBRARY_PATH
  10872. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10873. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10874. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10875. ;;
  10876. dgux*)
  10877. version_type=linux # correct to gnu/linux during the next big refactor
  10878. need_lib_prefix=no
  10879. need_version=no
  10880. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10881. soname_spec='$libname$release$shared_ext$major'
  10882. shlibpath_var=LD_LIBRARY_PATH
  10883. ;;
  10884. freebsd* | dragonfly*)
  10885. # DragonFly does not have aout. When/if they implement a new
  10886. # versioning mechanism, adjust this.
  10887. if test -x /usr/bin/objformat; then
  10888. objformat=`/usr/bin/objformat`
  10889. else
  10890. case $host_os in
  10891. freebsd[23].*) objformat=aout ;;
  10892. *) objformat=elf ;;
  10893. esac
  10894. fi
  10895. version_type=freebsd-$objformat
  10896. case $version_type in
  10897. freebsd-elf*)
  10898. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10899. soname_spec='$libname$release$shared_ext$major'
  10900. need_version=no
  10901. need_lib_prefix=no
  10902. ;;
  10903. freebsd-*)
  10904. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10905. need_version=yes
  10906. ;;
  10907. esac
  10908. shlibpath_var=LD_LIBRARY_PATH
  10909. case $host_os in
  10910. freebsd2.*)
  10911. shlibpath_overrides_runpath=yes
  10912. ;;
  10913. freebsd3.[01]* | freebsdelf3.[01]*)
  10914. shlibpath_overrides_runpath=yes
  10915. hardcode_into_libs=yes
  10916. ;;
  10917. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10918. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10919. shlibpath_overrides_runpath=no
  10920. hardcode_into_libs=yes
  10921. ;;
  10922. *) # from 4.6 on, and DragonFly
  10923. shlibpath_overrides_runpath=yes
  10924. hardcode_into_libs=yes
  10925. ;;
  10926. esac
  10927. ;;
  10928. haiku*)
  10929. version_type=linux # correct to gnu/linux during the next big refactor
  10930. need_lib_prefix=no
  10931. need_version=no
  10932. dynamic_linker="$host_os runtime_loader"
  10933. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10934. soname_spec='$libname$release$shared_ext$major'
  10935. shlibpath_var=LIBRARY_PATH
  10936. shlibpath_overrides_runpath=no
  10937. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10938. hardcode_into_libs=yes
  10939. ;;
  10940. hpux9* | hpux10* | hpux11*)
  10941. # Give a soname corresponding to the major version so that dld.sl refuses to
  10942. # link against other versions.
  10943. version_type=sunos
  10944. need_lib_prefix=no
  10945. need_version=no
  10946. case $host_cpu in
  10947. ia64*)
  10948. shrext_cmds='.so'
  10949. hardcode_into_libs=yes
  10950. dynamic_linker="$host_os dld.so"
  10951. shlibpath_var=LD_LIBRARY_PATH
  10952. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10953. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10954. soname_spec='$libname$release$shared_ext$major'
  10955. if test 32 = "$HPUX_IA64_MODE"; then
  10956. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10957. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10958. else
  10959. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10960. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10961. fi
  10962. ;;
  10963. hppa*64*)
  10964. shrext_cmds='.sl'
  10965. hardcode_into_libs=yes
  10966. dynamic_linker="$host_os dld.sl"
  10967. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10968. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10969. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10970. soname_spec='$libname$release$shared_ext$major'
  10971. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10972. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10973. ;;
  10974. *)
  10975. shrext_cmds='.sl'
  10976. dynamic_linker="$host_os dld.sl"
  10977. shlibpath_var=SHLIB_PATH
  10978. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10979. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10980. soname_spec='$libname$release$shared_ext$major'
  10981. ;;
  10982. esac
  10983. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10984. postinstall_cmds='chmod 555 $lib'
  10985. # or fails outright, so override atomically:
  10986. install_override_mode=555
  10987. ;;
  10988. interix[3-9]*)
  10989. version_type=linux # correct to gnu/linux during the next big refactor
  10990. need_lib_prefix=no
  10991. need_version=no
  10992. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10993. soname_spec='$libname$release$shared_ext$major'
  10994. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10995. shlibpath_var=LD_LIBRARY_PATH
  10996. shlibpath_overrides_runpath=no
  10997. hardcode_into_libs=yes
  10998. ;;
  10999. irix5* | irix6* | nonstopux*)
  11000. case $host_os in
  11001. nonstopux*) version_type=nonstopux ;;
  11002. *)
  11003. if test yes = "$lt_cv_prog_gnu_ld"; then
  11004. version_type=linux # correct to gnu/linux during the next big refactor
  11005. else
  11006. version_type=irix
  11007. fi ;;
  11008. esac
  11009. need_lib_prefix=no
  11010. need_version=no
  11011. soname_spec='$libname$release$shared_ext$major'
  11012. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11013. case $host_os in
  11014. irix5* | nonstopux*)
  11015. libsuff= shlibsuff=
  11016. ;;
  11017. *)
  11018. case $LD in # libtool.m4 will add one of these switches to LD
  11019. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11020. libsuff= shlibsuff= libmagic=32-bit;;
  11021. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11022. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11023. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11024. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11025. *) libsuff= shlibsuff= libmagic=never-match;;
  11026. esac
  11027. ;;
  11028. esac
  11029. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11030. shlibpath_overrides_runpath=no
  11031. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11032. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11033. hardcode_into_libs=yes
  11034. ;;
  11035. # No shared lib support for Linux oldld, aout, or coff.
  11036. linux*oldld* | linux*aout* | linux*coff*)
  11037. dynamic_linker=no
  11038. ;;
  11039. linux*android*)
  11040. version_type=none # Android doesn't support versioned libraries.
  11041. need_lib_prefix=no
  11042. need_version=no
  11043. library_names_spec='$libname$release$shared_ext'
  11044. soname_spec='$libname$release$shared_ext'
  11045. finish_cmds=
  11046. shlibpath_var=LD_LIBRARY_PATH
  11047. shlibpath_overrides_runpath=yes
  11048. # This implies no fast_install, which is unacceptable.
  11049. # Some rework will be needed to allow for fast_install
  11050. # before this can be enabled.
  11051. hardcode_into_libs=yes
  11052. dynamic_linker='Android linker'
  11053. # Don't embed -rpath directories since the linker doesn't support them.
  11054. hardcode_libdir_flag_spec='-L$libdir'
  11055. ;;
  11056. # This must be glibc/ELF.
  11057. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11058. version_type=linux # correct to gnu/linux during the next big refactor
  11059. need_lib_prefix=no
  11060. need_version=no
  11061. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11062. soname_spec='$libname$release$shared_ext$major'
  11063. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11064. shlibpath_var=LD_LIBRARY_PATH
  11065. shlibpath_overrides_runpath=no
  11066. # Some binutils ld are patched to set DT_RUNPATH
  11067. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  11068. $as_echo_n "(cached) " >&6
  11069. else
  11070. lt_cv_shlibpath_overrides_runpath=no
  11071. save_LDFLAGS=$LDFLAGS
  11072. save_libdir=$libdir
  11073. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11074. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11076. /* end confdefs.h. */
  11077. int
  11078. main ()
  11079. {
  11080. ;
  11081. return 0;
  11082. }
  11083. _ACEOF
  11084. if ac_fn_c_try_link "$LINENO"; then :
  11085. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11086. lt_cv_shlibpath_overrides_runpath=yes
  11087. fi
  11088. fi
  11089. rm -f core conftest.err conftest.$ac_objext \
  11090. conftest$ac_exeext conftest.$ac_ext
  11091. LDFLAGS=$save_LDFLAGS
  11092. libdir=$save_libdir
  11093. fi
  11094. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11095. # This implies no fast_install, which is unacceptable.
  11096. # Some rework will be needed to allow for fast_install
  11097. # before this can be enabled.
  11098. hardcode_into_libs=yes
  11099. # Ideally, we could use ldconfig to report *all* directores which are
  11100. # searched for libraries, however this is still not possible. Aside from not
  11101. # being certain /sbin/ldconfig is available, command
  11102. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11103. # even though it is searched at run-time. Try to do the best guess by
  11104. # appending ld.so.conf contents (and includes) to the search path.
  11105. if test -f /etc/ld.so.conf; then
  11106. 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' ' '`
  11107. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11108. fi
  11109. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11110. # powerpc, because MkLinux only supported shared libraries with the
  11111. # GNU dynamic linker. Since this was broken with cross compilers,
  11112. # most powerpc-linux boxes support dynamic linking these days and
  11113. # people can always --disable-shared, the test was removed, and we
  11114. # assume the GNU/Linux dynamic linker is in use.
  11115. dynamic_linker='GNU/Linux ld.so'
  11116. ;;
  11117. netbsdelf*-gnu)
  11118. version_type=linux
  11119. need_lib_prefix=no
  11120. need_version=no
  11121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11122. soname_spec='${libname}${release}${shared_ext}$major'
  11123. shlibpath_var=LD_LIBRARY_PATH
  11124. shlibpath_overrides_runpath=no
  11125. hardcode_into_libs=yes
  11126. dynamic_linker='NetBSD ld.elf_so'
  11127. ;;
  11128. netbsd*)
  11129. version_type=sunos
  11130. need_lib_prefix=no
  11131. need_version=no
  11132. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11133. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11134. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11135. dynamic_linker='NetBSD (a.out) ld.so'
  11136. else
  11137. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11138. soname_spec='$libname$release$shared_ext$major'
  11139. dynamic_linker='NetBSD ld.elf_so'
  11140. fi
  11141. shlibpath_var=LD_LIBRARY_PATH
  11142. shlibpath_overrides_runpath=yes
  11143. hardcode_into_libs=yes
  11144. ;;
  11145. newsos6)
  11146. version_type=linux # correct to gnu/linux during the next big refactor
  11147. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11148. shlibpath_var=LD_LIBRARY_PATH
  11149. shlibpath_overrides_runpath=yes
  11150. ;;
  11151. *nto* | *qnx*)
  11152. version_type=qnx
  11153. need_lib_prefix=no
  11154. need_version=no
  11155. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11156. soname_spec='$libname$release$shared_ext$major'
  11157. shlibpath_var=LD_LIBRARY_PATH
  11158. shlibpath_overrides_runpath=no
  11159. hardcode_into_libs=yes
  11160. dynamic_linker='ldqnx.so'
  11161. ;;
  11162. openbsd* | bitrig*)
  11163. version_type=sunos
  11164. sys_lib_dlsearch_path_spec=/usr/lib
  11165. need_lib_prefix=no
  11166. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11167. need_version=no
  11168. else
  11169. need_version=yes
  11170. fi
  11171. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11172. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11173. shlibpath_var=LD_LIBRARY_PATH
  11174. shlibpath_overrides_runpath=yes
  11175. ;;
  11176. os2*)
  11177. libname_spec='$name'
  11178. version_type=windows
  11179. shrext_cmds=.dll
  11180. need_version=no
  11181. need_lib_prefix=no
  11182. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11183. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11184. v=$($ECHO $release$versuffix | tr -d .-);
  11185. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11186. $ECHO $n$v`$shared_ext'
  11187. library_names_spec='${libname}_dll.$libext'
  11188. dynamic_linker='OS/2 ld.exe'
  11189. shlibpath_var=BEGINLIBPATH
  11190. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11191. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11192. postinstall_cmds='base_file=`basename \$file`~
  11193. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11194. dldir=$destdir/`dirname \$dlpath`~
  11195. test -d \$dldir || mkdir -p \$dldir~
  11196. $install_prog $dir/$dlname \$dldir/$dlname~
  11197. chmod a+x \$dldir/$dlname~
  11198. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11199. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11200. fi'
  11201. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11202. dlpath=$dir/\$dldll~
  11203. $RM \$dlpath'
  11204. ;;
  11205. osf3* | osf4* | osf5*)
  11206. version_type=osf
  11207. need_lib_prefix=no
  11208. need_version=no
  11209. soname_spec='$libname$release$shared_ext$major'
  11210. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11211. shlibpath_var=LD_LIBRARY_PATH
  11212. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11213. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11214. ;;
  11215. rdos*)
  11216. dynamic_linker=no
  11217. ;;
  11218. solaris*)
  11219. version_type=linux # correct to gnu/linux during the next big refactor
  11220. need_lib_prefix=no
  11221. need_version=no
  11222. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11223. soname_spec='$libname$release$shared_ext$major'
  11224. shlibpath_var=LD_LIBRARY_PATH
  11225. shlibpath_overrides_runpath=yes
  11226. hardcode_into_libs=yes
  11227. # ldd complains unless libraries are executable
  11228. postinstall_cmds='chmod +x $lib'
  11229. ;;
  11230. sunos4*)
  11231. version_type=sunos
  11232. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11233. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11234. shlibpath_var=LD_LIBRARY_PATH
  11235. shlibpath_overrides_runpath=yes
  11236. if test yes = "$with_gnu_ld"; then
  11237. need_lib_prefix=no
  11238. fi
  11239. need_version=yes
  11240. ;;
  11241. sysv4 | sysv4.3*)
  11242. version_type=linux # correct to gnu/linux during the next big refactor
  11243. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11244. soname_spec='$libname$release$shared_ext$major'
  11245. shlibpath_var=LD_LIBRARY_PATH
  11246. case $host_vendor in
  11247. sni)
  11248. shlibpath_overrides_runpath=no
  11249. need_lib_prefix=no
  11250. runpath_var=LD_RUN_PATH
  11251. ;;
  11252. siemens)
  11253. need_lib_prefix=no
  11254. ;;
  11255. motorola)
  11256. need_lib_prefix=no
  11257. need_version=no
  11258. shlibpath_overrides_runpath=no
  11259. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11260. ;;
  11261. esac
  11262. ;;
  11263. sysv4*MP*)
  11264. if test -d /usr/nec; then
  11265. version_type=linux # correct to gnu/linux during the next big refactor
  11266. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11267. soname_spec='$libname$shared_ext.$major'
  11268. shlibpath_var=LD_LIBRARY_PATH
  11269. fi
  11270. ;;
  11271. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11272. version_type=sco
  11273. need_lib_prefix=no
  11274. need_version=no
  11275. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11276. soname_spec='$libname$release$shared_ext$major'
  11277. shlibpath_var=LD_LIBRARY_PATH
  11278. shlibpath_overrides_runpath=yes
  11279. hardcode_into_libs=yes
  11280. if test yes = "$with_gnu_ld"; then
  11281. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11282. else
  11283. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11284. case $host_os in
  11285. sco3.2v5*)
  11286. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11287. ;;
  11288. esac
  11289. fi
  11290. sys_lib_dlsearch_path_spec='/usr/lib'
  11291. ;;
  11292. tpf*)
  11293. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11294. version_type=linux # correct to gnu/linux during the next big refactor
  11295. need_lib_prefix=no
  11296. need_version=no
  11297. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11298. shlibpath_var=LD_LIBRARY_PATH
  11299. shlibpath_overrides_runpath=no
  11300. hardcode_into_libs=yes
  11301. ;;
  11302. uts4*)
  11303. version_type=linux # correct to gnu/linux during the next big refactor
  11304. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11305. soname_spec='$libname$release$shared_ext$major'
  11306. shlibpath_var=LD_LIBRARY_PATH
  11307. ;;
  11308. *)
  11309. dynamic_linker=no
  11310. ;;
  11311. esac
  11312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11313. $as_echo "$dynamic_linker" >&6; }
  11314. test no = "$dynamic_linker" && can_build_shared=no
  11315. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11316. if test yes = "$GCC"; then
  11317. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11318. fi
  11319. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11320. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11321. fi
  11322. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11323. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11324. fi
  11325. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11326. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11327. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11328. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11329. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11330. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11332. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11333. hardcode_action=
  11334. if test -n "$hardcode_libdir_flag_spec" ||
  11335. test -n "$runpath_var" ||
  11336. test yes = "$hardcode_automatic"; then
  11337. # We can hardcode non-existent directories.
  11338. if test no != "$hardcode_direct" &&
  11339. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11340. # have to relink, otherwise we might link with an installed library
  11341. # when we should be linking with a yet-to-be-installed one
  11342. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11343. test no != "$hardcode_minus_L"; then
  11344. # Linking always hardcodes the temporary library directory.
  11345. hardcode_action=relink
  11346. else
  11347. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11348. hardcode_action=immediate
  11349. fi
  11350. else
  11351. # We cannot hardcode anything, or else we can only hardcode existing
  11352. # directories.
  11353. hardcode_action=unsupported
  11354. fi
  11355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11356. $as_echo "$hardcode_action" >&6; }
  11357. if test relink = "$hardcode_action" ||
  11358. test yes = "$inherit_rpath"; then
  11359. # Fast installation is not supported
  11360. enable_fast_install=no
  11361. elif test yes = "$shlibpath_overrides_runpath" ||
  11362. test no = "$enable_shared"; then
  11363. # Fast installation is not necessary
  11364. enable_fast_install=needless
  11365. fi
  11366. if test yes != "$enable_dlopen"; then
  11367. enable_dlopen=unknown
  11368. enable_dlopen_self=unknown
  11369. enable_dlopen_self_static=unknown
  11370. else
  11371. lt_cv_dlopen=no
  11372. lt_cv_dlopen_libs=
  11373. case $host_os in
  11374. beos*)
  11375. lt_cv_dlopen=load_add_on
  11376. lt_cv_dlopen_libs=
  11377. lt_cv_dlopen_self=yes
  11378. ;;
  11379. mingw* | pw32* | cegcc*)
  11380. lt_cv_dlopen=LoadLibrary
  11381. lt_cv_dlopen_libs=
  11382. ;;
  11383. cygwin*)
  11384. lt_cv_dlopen=dlopen
  11385. lt_cv_dlopen_libs=
  11386. ;;
  11387. darwin*)
  11388. # if libdl is installed we need to link against it
  11389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11390. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11391. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11392. $as_echo_n "(cached) " >&6
  11393. else
  11394. ac_check_lib_save_LIBS=$LIBS
  11395. LIBS="-ldl $LIBS"
  11396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11397. /* end confdefs.h. */
  11398. /* Override any GCC internal prototype to avoid an error.
  11399. Use char because int might match the return type of a GCC
  11400. builtin and then its argument prototype would still apply. */
  11401. #ifdef __cplusplus
  11402. extern "C"
  11403. #endif
  11404. char dlopen ();
  11405. int
  11406. main ()
  11407. {
  11408. return dlopen ();
  11409. ;
  11410. return 0;
  11411. }
  11412. _ACEOF
  11413. if ac_fn_c_try_link "$LINENO"; then :
  11414. ac_cv_lib_dl_dlopen=yes
  11415. else
  11416. ac_cv_lib_dl_dlopen=no
  11417. fi
  11418. rm -f core conftest.err conftest.$ac_objext \
  11419. conftest$ac_exeext conftest.$ac_ext
  11420. LIBS=$ac_check_lib_save_LIBS
  11421. fi
  11422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11423. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11424. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11425. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11426. else
  11427. lt_cv_dlopen=dyld
  11428. lt_cv_dlopen_libs=
  11429. lt_cv_dlopen_self=yes
  11430. fi
  11431. ;;
  11432. tpf*)
  11433. # Don't try to run any link tests for TPF. We know it's impossible
  11434. # because TPF is a cross-compiler, and we know how we open DSOs.
  11435. lt_cv_dlopen=dlopen
  11436. lt_cv_dlopen_libs=
  11437. lt_cv_dlopen_self=no
  11438. ;;
  11439. *)
  11440. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11441. if test "x$ac_cv_func_shl_load" = xyes; then :
  11442. lt_cv_dlopen=shl_load
  11443. else
  11444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11445. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11446. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11447. $as_echo_n "(cached) " >&6
  11448. else
  11449. ac_check_lib_save_LIBS=$LIBS
  11450. LIBS="-ldld $LIBS"
  11451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11452. /* end confdefs.h. */
  11453. /* Override any GCC internal prototype to avoid an error.
  11454. Use char because int might match the return type of a GCC
  11455. builtin and then its argument prototype would still apply. */
  11456. #ifdef __cplusplus
  11457. extern "C"
  11458. #endif
  11459. char shl_load ();
  11460. int
  11461. main ()
  11462. {
  11463. return shl_load ();
  11464. ;
  11465. return 0;
  11466. }
  11467. _ACEOF
  11468. if ac_fn_c_try_link "$LINENO"; then :
  11469. ac_cv_lib_dld_shl_load=yes
  11470. else
  11471. ac_cv_lib_dld_shl_load=no
  11472. fi
  11473. rm -f core conftest.err conftest.$ac_objext \
  11474. conftest$ac_exeext conftest.$ac_ext
  11475. LIBS=$ac_check_lib_save_LIBS
  11476. fi
  11477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11478. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11479. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11480. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11481. else
  11482. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11483. if test "x$ac_cv_func_dlopen" = xyes; then :
  11484. lt_cv_dlopen=dlopen
  11485. else
  11486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11487. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11488. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11489. $as_echo_n "(cached) " >&6
  11490. else
  11491. ac_check_lib_save_LIBS=$LIBS
  11492. LIBS="-ldl $LIBS"
  11493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11494. /* end confdefs.h. */
  11495. /* Override any GCC internal prototype to avoid an error.
  11496. Use char because int might match the return type of a GCC
  11497. builtin and then its argument prototype would still apply. */
  11498. #ifdef __cplusplus
  11499. extern "C"
  11500. #endif
  11501. char dlopen ();
  11502. int
  11503. main ()
  11504. {
  11505. return dlopen ();
  11506. ;
  11507. return 0;
  11508. }
  11509. _ACEOF
  11510. if ac_fn_c_try_link "$LINENO"; then :
  11511. ac_cv_lib_dl_dlopen=yes
  11512. else
  11513. ac_cv_lib_dl_dlopen=no
  11514. fi
  11515. rm -f core conftest.err conftest.$ac_objext \
  11516. conftest$ac_exeext conftest.$ac_ext
  11517. LIBS=$ac_check_lib_save_LIBS
  11518. fi
  11519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11520. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11521. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11522. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11523. else
  11524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11525. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11526. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11527. $as_echo_n "(cached) " >&6
  11528. else
  11529. ac_check_lib_save_LIBS=$LIBS
  11530. LIBS="-lsvld $LIBS"
  11531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11532. /* end confdefs.h. */
  11533. /* Override any GCC internal prototype to avoid an error.
  11534. Use char because int might match the return type of a GCC
  11535. builtin and then its argument prototype would still apply. */
  11536. #ifdef __cplusplus
  11537. extern "C"
  11538. #endif
  11539. char dlopen ();
  11540. int
  11541. main ()
  11542. {
  11543. return dlopen ();
  11544. ;
  11545. return 0;
  11546. }
  11547. _ACEOF
  11548. if ac_fn_c_try_link "$LINENO"; then :
  11549. ac_cv_lib_svld_dlopen=yes
  11550. else
  11551. ac_cv_lib_svld_dlopen=no
  11552. fi
  11553. rm -f core conftest.err conftest.$ac_objext \
  11554. conftest$ac_exeext conftest.$ac_ext
  11555. LIBS=$ac_check_lib_save_LIBS
  11556. fi
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11558. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11559. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11560. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11561. else
  11562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11563. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11564. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11565. $as_echo_n "(cached) " >&6
  11566. else
  11567. ac_check_lib_save_LIBS=$LIBS
  11568. LIBS="-ldld $LIBS"
  11569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11570. /* end confdefs.h. */
  11571. /* Override any GCC internal prototype to avoid an error.
  11572. Use char because int might match the return type of a GCC
  11573. builtin and then its argument prototype would still apply. */
  11574. #ifdef __cplusplus
  11575. extern "C"
  11576. #endif
  11577. char dld_link ();
  11578. int
  11579. main ()
  11580. {
  11581. return dld_link ();
  11582. ;
  11583. return 0;
  11584. }
  11585. _ACEOF
  11586. if ac_fn_c_try_link "$LINENO"; then :
  11587. ac_cv_lib_dld_dld_link=yes
  11588. else
  11589. ac_cv_lib_dld_dld_link=no
  11590. fi
  11591. rm -f core conftest.err conftest.$ac_objext \
  11592. conftest$ac_exeext conftest.$ac_ext
  11593. LIBS=$ac_check_lib_save_LIBS
  11594. fi
  11595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11596. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11597. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11598. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11599. fi
  11600. fi
  11601. fi
  11602. fi
  11603. fi
  11604. fi
  11605. ;;
  11606. esac
  11607. if test no = "$lt_cv_dlopen"; then
  11608. enable_dlopen=no
  11609. else
  11610. enable_dlopen=yes
  11611. fi
  11612. case $lt_cv_dlopen in
  11613. dlopen)
  11614. save_CPPFLAGS=$CPPFLAGS
  11615. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11616. save_LDFLAGS=$LDFLAGS
  11617. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11618. save_LIBS=$LIBS
  11619. LIBS="$lt_cv_dlopen_libs $LIBS"
  11620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11621. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11622. if ${lt_cv_dlopen_self+:} false; then :
  11623. $as_echo_n "(cached) " >&6
  11624. else
  11625. if test yes = "$cross_compiling"; then :
  11626. lt_cv_dlopen_self=cross
  11627. else
  11628. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11629. lt_status=$lt_dlunknown
  11630. cat > conftest.$ac_ext <<_LT_EOF
  11631. #line $LINENO "configure"
  11632. #include "confdefs.h"
  11633. #if HAVE_DLFCN_H
  11634. #include <dlfcn.h>
  11635. #endif
  11636. #include <stdio.h>
  11637. #ifdef RTLD_GLOBAL
  11638. # define LT_DLGLOBAL RTLD_GLOBAL
  11639. #else
  11640. # ifdef DL_GLOBAL
  11641. # define LT_DLGLOBAL DL_GLOBAL
  11642. # else
  11643. # define LT_DLGLOBAL 0
  11644. # endif
  11645. #endif
  11646. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11647. find out it does not work in some platform. */
  11648. #ifndef LT_DLLAZY_OR_NOW
  11649. # ifdef RTLD_LAZY
  11650. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11651. # else
  11652. # ifdef DL_LAZY
  11653. # define LT_DLLAZY_OR_NOW DL_LAZY
  11654. # else
  11655. # ifdef RTLD_NOW
  11656. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11657. # else
  11658. # ifdef DL_NOW
  11659. # define LT_DLLAZY_OR_NOW DL_NOW
  11660. # else
  11661. # define LT_DLLAZY_OR_NOW 0
  11662. # endif
  11663. # endif
  11664. # endif
  11665. # endif
  11666. #endif
  11667. /* When -fvisibility=hidden is used, assume the code has been annotated
  11668. correspondingly for the symbols needed. */
  11669. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11670. int fnord () __attribute__((visibility("default")));
  11671. #endif
  11672. int fnord () { return 42; }
  11673. int main ()
  11674. {
  11675. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11676. int status = $lt_dlunknown;
  11677. if (self)
  11678. {
  11679. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11680. else
  11681. {
  11682. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11683. else puts (dlerror ());
  11684. }
  11685. /* dlclose (self); */
  11686. }
  11687. else
  11688. puts (dlerror ());
  11689. return status;
  11690. }
  11691. _LT_EOF
  11692. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11693. (eval $ac_link) 2>&5
  11694. ac_status=$?
  11695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11696. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11697. (./conftest; exit; ) >&5 2>/dev/null
  11698. lt_status=$?
  11699. case x$lt_status in
  11700. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11701. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11702. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11703. esac
  11704. else :
  11705. # compilation failed
  11706. lt_cv_dlopen_self=no
  11707. fi
  11708. fi
  11709. rm -fr conftest*
  11710. fi
  11711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11712. $as_echo "$lt_cv_dlopen_self" >&6; }
  11713. if test yes = "$lt_cv_dlopen_self"; then
  11714. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11716. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11717. if ${lt_cv_dlopen_self_static+:} false; then :
  11718. $as_echo_n "(cached) " >&6
  11719. else
  11720. if test yes = "$cross_compiling"; then :
  11721. lt_cv_dlopen_self_static=cross
  11722. else
  11723. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11724. lt_status=$lt_dlunknown
  11725. cat > conftest.$ac_ext <<_LT_EOF
  11726. #line $LINENO "configure"
  11727. #include "confdefs.h"
  11728. #if HAVE_DLFCN_H
  11729. #include <dlfcn.h>
  11730. #endif
  11731. #include <stdio.h>
  11732. #ifdef RTLD_GLOBAL
  11733. # define LT_DLGLOBAL RTLD_GLOBAL
  11734. #else
  11735. # ifdef DL_GLOBAL
  11736. # define LT_DLGLOBAL DL_GLOBAL
  11737. # else
  11738. # define LT_DLGLOBAL 0
  11739. # endif
  11740. #endif
  11741. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11742. find out it does not work in some platform. */
  11743. #ifndef LT_DLLAZY_OR_NOW
  11744. # ifdef RTLD_LAZY
  11745. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11746. # else
  11747. # ifdef DL_LAZY
  11748. # define LT_DLLAZY_OR_NOW DL_LAZY
  11749. # else
  11750. # ifdef RTLD_NOW
  11751. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11752. # else
  11753. # ifdef DL_NOW
  11754. # define LT_DLLAZY_OR_NOW DL_NOW
  11755. # else
  11756. # define LT_DLLAZY_OR_NOW 0
  11757. # endif
  11758. # endif
  11759. # endif
  11760. # endif
  11761. #endif
  11762. /* When -fvisibility=hidden is used, assume the code has been annotated
  11763. correspondingly for the symbols needed. */
  11764. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11765. int fnord () __attribute__((visibility("default")));
  11766. #endif
  11767. int fnord () { return 42; }
  11768. int main ()
  11769. {
  11770. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11771. int status = $lt_dlunknown;
  11772. if (self)
  11773. {
  11774. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11775. else
  11776. {
  11777. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11778. else puts (dlerror ());
  11779. }
  11780. /* dlclose (self); */
  11781. }
  11782. else
  11783. puts (dlerror ());
  11784. return status;
  11785. }
  11786. _LT_EOF
  11787. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11788. (eval $ac_link) 2>&5
  11789. ac_status=$?
  11790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11791. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11792. (./conftest; exit; ) >&5 2>/dev/null
  11793. lt_status=$?
  11794. case x$lt_status in
  11795. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11796. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11797. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11798. esac
  11799. else :
  11800. # compilation failed
  11801. lt_cv_dlopen_self_static=no
  11802. fi
  11803. fi
  11804. rm -fr conftest*
  11805. fi
  11806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11807. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11808. fi
  11809. CPPFLAGS=$save_CPPFLAGS
  11810. LDFLAGS=$save_LDFLAGS
  11811. LIBS=$save_LIBS
  11812. ;;
  11813. esac
  11814. case $lt_cv_dlopen_self in
  11815. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11816. *) enable_dlopen_self=unknown ;;
  11817. esac
  11818. case $lt_cv_dlopen_self_static in
  11819. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11820. *) enable_dlopen_self_static=unknown ;;
  11821. esac
  11822. fi
  11823. striplib=
  11824. old_striplib=
  11825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11826. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11827. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11828. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11829. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11831. $as_echo "yes" >&6; }
  11832. else
  11833. # FIXME - insert some real tests, host_os isn't really good enough
  11834. case $host_os in
  11835. darwin*)
  11836. if test -n "$STRIP"; then
  11837. striplib="$STRIP -x"
  11838. old_striplib="$STRIP -S"
  11839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11840. $as_echo "yes" >&6; }
  11841. else
  11842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11843. $as_echo "no" >&6; }
  11844. fi
  11845. ;;
  11846. *)
  11847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11848. $as_echo "no" >&6; }
  11849. ;;
  11850. esac
  11851. fi
  11852. # Report what library types will actually be built
  11853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11854. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11856. $as_echo "$can_build_shared" >&6; }
  11857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11858. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11859. test no = "$can_build_shared" && enable_shared=no
  11860. # On AIX, shared libraries and static libraries use the same namespace, and
  11861. # are all built from PIC.
  11862. case $host_os in
  11863. aix3*)
  11864. test yes = "$enable_shared" && enable_static=no
  11865. if test -n "$RANLIB"; then
  11866. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11867. postinstall_cmds='$RANLIB $lib'
  11868. fi
  11869. ;;
  11870. aix[4-9]*)
  11871. if test ia64 != "$host_cpu"; then
  11872. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11873. yes,aix,yes) ;; # shared object as lib.so file only
  11874. yes,svr4,*) ;; # shared object as lib.so archive member only
  11875. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11876. esac
  11877. fi
  11878. ;;
  11879. esac
  11880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11881. $as_echo "$enable_shared" >&6; }
  11882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11883. $as_echo_n "checking whether to build static libraries... " >&6; }
  11884. # Make sure either enable_shared or enable_static is yes.
  11885. test yes = "$enable_shared" || enable_static=yes
  11886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11887. $as_echo "$enable_static" >&6; }
  11888. fi
  11889. ac_ext=c
  11890. ac_cpp='$CPP $CPPFLAGS'
  11891. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11892. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11893. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11894. CC=$lt_save_CC
  11895. if test -n "$CXX" && ( test no != "$CXX" &&
  11896. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11897. (test g++ != "$CXX"))); then
  11898. ac_ext=cpp
  11899. ac_cpp='$CXXCPP $CPPFLAGS'
  11900. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11901. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11902. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11904. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11905. if test -z "$CXXCPP"; then
  11906. if ${ac_cv_prog_CXXCPP+:} false; then :
  11907. $as_echo_n "(cached) " >&6
  11908. else
  11909. # Double quotes because CXXCPP needs to be expanded
  11910. for CXXCPP in "$CXX -E" "/lib/cpp"
  11911. do
  11912. ac_preproc_ok=false
  11913. for ac_cxx_preproc_warn_flag in '' yes
  11914. do
  11915. # Use a header file that comes with gcc, so configuring glibc
  11916. # with a fresh cross-compiler works.
  11917. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11918. # <limits.h> exists even on freestanding compilers.
  11919. # On the NeXT, cc -E runs the code through the compiler's parser,
  11920. # not just through cpp. "Syntax error" is here to catch this case.
  11921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11922. /* end confdefs.h. */
  11923. #ifdef __STDC__
  11924. # include <limits.h>
  11925. #else
  11926. # include <assert.h>
  11927. #endif
  11928. Syntax error
  11929. _ACEOF
  11930. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11931. else
  11932. # Broken: fails on valid input.
  11933. continue
  11934. fi
  11935. rm -f conftest.err conftest.i conftest.$ac_ext
  11936. # OK, works on sane cases. Now check whether nonexistent headers
  11937. # can be detected and how.
  11938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11939. /* end confdefs.h. */
  11940. #include <ac_nonexistent.h>
  11941. _ACEOF
  11942. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11943. # Broken: success on invalid input.
  11944. continue
  11945. else
  11946. # Passes both tests.
  11947. ac_preproc_ok=:
  11948. break
  11949. fi
  11950. rm -f conftest.err conftest.i conftest.$ac_ext
  11951. done
  11952. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11953. rm -f conftest.i conftest.err conftest.$ac_ext
  11954. if $ac_preproc_ok; then :
  11955. break
  11956. fi
  11957. done
  11958. ac_cv_prog_CXXCPP=$CXXCPP
  11959. fi
  11960. CXXCPP=$ac_cv_prog_CXXCPP
  11961. else
  11962. ac_cv_prog_CXXCPP=$CXXCPP
  11963. fi
  11964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11965. $as_echo "$CXXCPP" >&6; }
  11966. ac_preproc_ok=false
  11967. for ac_cxx_preproc_warn_flag in '' yes
  11968. do
  11969. # Use a header file that comes with gcc, so configuring glibc
  11970. # with a fresh cross-compiler works.
  11971. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11972. # <limits.h> exists even on freestanding compilers.
  11973. # On the NeXT, cc -E runs the code through the compiler's parser,
  11974. # not just through cpp. "Syntax error" is here to catch this case.
  11975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11976. /* end confdefs.h. */
  11977. #ifdef __STDC__
  11978. # include <limits.h>
  11979. #else
  11980. # include <assert.h>
  11981. #endif
  11982. Syntax error
  11983. _ACEOF
  11984. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11985. else
  11986. # Broken: fails on valid input.
  11987. continue
  11988. fi
  11989. rm -f conftest.err conftest.i conftest.$ac_ext
  11990. # OK, works on sane cases. Now check whether nonexistent headers
  11991. # can be detected and how.
  11992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11993. /* end confdefs.h. */
  11994. #include <ac_nonexistent.h>
  11995. _ACEOF
  11996. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11997. # Broken: success on invalid input.
  11998. continue
  11999. else
  12000. # Passes both tests.
  12001. ac_preproc_ok=:
  12002. break
  12003. fi
  12004. rm -f conftest.err conftest.i conftest.$ac_ext
  12005. done
  12006. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12007. rm -f conftest.i conftest.err conftest.$ac_ext
  12008. if $ac_preproc_ok; then :
  12009. else
  12010. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12011. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12012. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12013. See \`config.log' for more details" "$LINENO" 5; }
  12014. fi
  12015. ac_ext=c
  12016. ac_cpp='$CPP $CPPFLAGS'
  12017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12020. else
  12021. _lt_caught_CXX_error=yes
  12022. fi
  12023. ac_ext=cpp
  12024. ac_cpp='$CXXCPP $CPPFLAGS'
  12025. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12026. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12027. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12028. archive_cmds_need_lc_CXX=no
  12029. allow_undefined_flag_CXX=
  12030. always_export_symbols_CXX=no
  12031. archive_expsym_cmds_CXX=
  12032. compiler_needs_object_CXX=no
  12033. export_dynamic_flag_spec_CXX=
  12034. hardcode_direct_CXX=no
  12035. hardcode_direct_absolute_CXX=no
  12036. hardcode_libdir_flag_spec_CXX=
  12037. hardcode_libdir_separator_CXX=
  12038. hardcode_minus_L_CXX=no
  12039. hardcode_shlibpath_var_CXX=unsupported
  12040. hardcode_automatic_CXX=no
  12041. inherit_rpath_CXX=no
  12042. module_cmds_CXX=
  12043. module_expsym_cmds_CXX=
  12044. link_all_deplibs_CXX=unknown
  12045. old_archive_cmds_CXX=$old_archive_cmds
  12046. reload_flag_CXX=$reload_flag
  12047. reload_cmds_CXX=$reload_cmds
  12048. no_undefined_flag_CXX=
  12049. whole_archive_flag_spec_CXX=
  12050. enable_shared_with_static_runtimes_CXX=no
  12051. # Source file extension for C++ test sources.
  12052. ac_ext=cpp
  12053. # Object file extension for compiled C++ test sources.
  12054. objext=o
  12055. objext_CXX=$objext
  12056. # No sense in running all these tests if we already determined that
  12057. # the CXX compiler isn't working. Some variables (like enable_shared)
  12058. # are currently assumed to apply to all compilers on this platform,
  12059. # and will be corrupted by setting them based on a non-working compiler.
  12060. if test yes != "$_lt_caught_CXX_error"; then
  12061. # Code to be used in simple compile tests
  12062. lt_simple_compile_test_code="int some_variable = 0;"
  12063. # Code to be used in simple link tests
  12064. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12065. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12066. # If no C compiler was specified, use CC.
  12067. LTCC=${LTCC-"$CC"}
  12068. # If no C compiler flags were specified, use CFLAGS.
  12069. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12070. # Allow CC to be a program name with arguments.
  12071. compiler=$CC
  12072. # save warnings/boilerplate of simple test code
  12073. ac_outfile=conftest.$ac_objext
  12074. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12075. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12076. _lt_compiler_boilerplate=`cat conftest.err`
  12077. $RM conftest*
  12078. ac_outfile=conftest.$ac_objext
  12079. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12080. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12081. _lt_linker_boilerplate=`cat conftest.err`
  12082. $RM -r conftest*
  12083. # Allow CC to be a program name with arguments.
  12084. lt_save_CC=$CC
  12085. lt_save_CFLAGS=$CFLAGS
  12086. lt_save_LD=$LD
  12087. lt_save_GCC=$GCC
  12088. GCC=$GXX
  12089. lt_save_with_gnu_ld=$with_gnu_ld
  12090. lt_save_path_LD=$lt_cv_path_LD
  12091. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12092. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12093. else
  12094. $as_unset lt_cv_prog_gnu_ld
  12095. fi
  12096. if test -n "${lt_cv_path_LDCXX+set}"; then
  12097. lt_cv_path_LD=$lt_cv_path_LDCXX
  12098. else
  12099. $as_unset lt_cv_path_LD
  12100. fi
  12101. test -z "${LDCXX+set}" || LD=$LDCXX
  12102. CC=${CXX-"c++"}
  12103. CFLAGS=$CXXFLAGS
  12104. compiler=$CC
  12105. compiler_CXX=$CC
  12106. func_cc_basename $compiler
  12107. cc_basename=$func_cc_basename_result
  12108. if test -n "$compiler"; then
  12109. # We don't want -fno-exception when compiling C++ code, so set the
  12110. # no_builtin_flag separately
  12111. if test yes = "$GXX"; then
  12112. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12113. else
  12114. lt_prog_compiler_no_builtin_flag_CXX=
  12115. fi
  12116. if test yes = "$GXX"; then
  12117. # Set up default GNU C++ configuration
  12118. # Check whether --with-gnu-ld was given.
  12119. if test "${with_gnu_ld+set}" = set; then :
  12120. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12121. else
  12122. with_gnu_ld=no
  12123. fi
  12124. ac_prog=ld
  12125. if test yes = "$GCC"; then
  12126. # Check if gcc -print-prog-name=ld gives a path.
  12127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12128. $as_echo_n "checking for ld used by $CC... " >&6; }
  12129. case $host in
  12130. *-*-mingw*)
  12131. # gcc leaves a trailing carriage return, which upsets mingw
  12132. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12133. *)
  12134. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12135. esac
  12136. case $ac_prog in
  12137. # Accept absolute paths.
  12138. [\\/]* | ?:[\\/]*)
  12139. re_direlt='/[^/][^/]*/\.\./'
  12140. # Canonicalize the pathname of ld
  12141. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12142. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12143. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12144. done
  12145. test -z "$LD" && LD=$ac_prog
  12146. ;;
  12147. "")
  12148. # If it fails, then pretend we aren't using GCC.
  12149. ac_prog=ld
  12150. ;;
  12151. *)
  12152. # If it is relative, then search for the first ld in PATH.
  12153. with_gnu_ld=unknown
  12154. ;;
  12155. esac
  12156. elif test yes = "$with_gnu_ld"; then
  12157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12158. $as_echo_n "checking for GNU ld... " >&6; }
  12159. else
  12160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12161. $as_echo_n "checking for non-GNU ld... " >&6; }
  12162. fi
  12163. if ${lt_cv_path_LD+:} false; then :
  12164. $as_echo_n "(cached) " >&6
  12165. else
  12166. if test -z "$LD"; then
  12167. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12168. for ac_dir in $PATH; do
  12169. IFS=$lt_save_ifs
  12170. test -z "$ac_dir" && ac_dir=.
  12171. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12172. lt_cv_path_LD=$ac_dir/$ac_prog
  12173. # Check to see if the program is GNU ld. I'd rather use --version,
  12174. # but apparently some variants of GNU ld only accept -v.
  12175. # Break only if it was the GNU/non-GNU ld that we prefer.
  12176. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12177. *GNU* | *'with BFD'*)
  12178. test no != "$with_gnu_ld" && break
  12179. ;;
  12180. *)
  12181. test yes != "$with_gnu_ld" && break
  12182. ;;
  12183. esac
  12184. fi
  12185. done
  12186. IFS=$lt_save_ifs
  12187. else
  12188. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12189. fi
  12190. fi
  12191. LD=$lt_cv_path_LD
  12192. if test -n "$LD"; then
  12193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12194. $as_echo "$LD" >&6; }
  12195. else
  12196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12197. $as_echo "no" >&6; }
  12198. fi
  12199. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12201. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12202. if ${lt_cv_prog_gnu_ld+:} false; then :
  12203. $as_echo_n "(cached) " >&6
  12204. else
  12205. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12206. case `$LD -v 2>&1 </dev/null` in
  12207. *GNU* | *'with BFD'*)
  12208. lt_cv_prog_gnu_ld=yes
  12209. ;;
  12210. *)
  12211. lt_cv_prog_gnu_ld=no
  12212. ;;
  12213. esac
  12214. fi
  12215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12216. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12217. with_gnu_ld=$lt_cv_prog_gnu_ld
  12218. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12219. # archiving commands below assume that GNU ld is being used.
  12220. if test yes = "$with_gnu_ld"; then
  12221. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12222. 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'
  12223. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12224. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12225. # If archive_cmds runs LD, not CC, wlarc should be empty
  12226. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12227. # investigate it a little bit more. (MM)
  12228. wlarc='$wl'
  12229. # ancient GNU ld didn't support --whole-archive et. al.
  12230. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12231. $GREP 'no-whole-archive' > /dev/null; then
  12232. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12233. else
  12234. whole_archive_flag_spec_CXX=
  12235. fi
  12236. else
  12237. with_gnu_ld=no
  12238. wlarc=
  12239. # A generic and very simple default shared library creation
  12240. # command for GNU C++ for the case where it uses the native
  12241. # linker, instead of GNU ld. If possible, this setting should
  12242. # overridden to take advantage of the native linker features on
  12243. # the platform it is being used on.
  12244. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12245. fi
  12246. # Commands to make compiler produce verbose output that lists
  12247. # what "hidden" libraries, object files and flags are used when
  12248. # linking a shared library.
  12249. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12250. else
  12251. GXX=no
  12252. with_gnu_ld=no
  12253. wlarc=
  12254. fi
  12255. # PORTME: fill in a description of your system's C++ link characteristics
  12256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12257. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12258. ld_shlibs_CXX=yes
  12259. case $host_os in
  12260. aix3*)
  12261. # FIXME: insert proper C++ library support
  12262. ld_shlibs_CXX=no
  12263. ;;
  12264. aix[4-9]*)
  12265. if test ia64 = "$host_cpu"; then
  12266. # On IA64, the linker does run time linking by default, so we don't
  12267. # have to do anything special.
  12268. aix_use_runtimelinking=no
  12269. exp_sym_flag='-Bexport'
  12270. no_entry_flag=
  12271. else
  12272. aix_use_runtimelinking=no
  12273. # Test if we are trying to use run time linking or normal
  12274. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12275. # have runtime linking enabled, and use it for executables.
  12276. # For shared libraries, we enable/disable runtime linking
  12277. # depending on the kind of the shared library created -
  12278. # when "with_aix_soname,aix_use_runtimelinking" is:
  12279. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12280. # "aix,yes" lib.so shared, rtl:yes, for executables
  12281. # lib.a static archive
  12282. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12283. # lib.a(lib.so.V) shared, rtl:no, for executables
  12284. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12285. # lib.a(lib.so.V) shared, rtl:no
  12286. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12287. # lib.a static archive
  12288. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12289. for ld_flag in $LDFLAGS; do
  12290. case $ld_flag in
  12291. *-brtl*)
  12292. aix_use_runtimelinking=yes
  12293. break
  12294. ;;
  12295. esac
  12296. done
  12297. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12298. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12299. # so we don't have lib.a shared libs to link our executables.
  12300. # We have to force runtime linking in this case.
  12301. aix_use_runtimelinking=yes
  12302. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12303. fi
  12304. ;;
  12305. esac
  12306. exp_sym_flag='-bexport'
  12307. no_entry_flag='-bnoentry'
  12308. fi
  12309. # When large executables or shared objects are built, AIX ld can
  12310. # have problems creating the table of contents. If linking a library
  12311. # or program results in "error TOC overflow" add -mminimal-toc to
  12312. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12313. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12314. archive_cmds_CXX=''
  12315. hardcode_direct_CXX=yes
  12316. hardcode_direct_absolute_CXX=yes
  12317. hardcode_libdir_separator_CXX=':'
  12318. link_all_deplibs_CXX=yes
  12319. file_list_spec_CXX='$wl-f,'
  12320. case $with_aix_soname,$aix_use_runtimelinking in
  12321. aix,*) ;; # no import file
  12322. svr4,* | *,yes) # use import file
  12323. # The Import File defines what to hardcode.
  12324. hardcode_direct_CXX=no
  12325. hardcode_direct_absolute_CXX=no
  12326. ;;
  12327. esac
  12328. if test yes = "$GXX"; then
  12329. case $host_os in aix4.[012]|aix4.[012].*)
  12330. # We only want to do this on AIX 4.2 and lower, the check
  12331. # below for broken collect2 doesn't work under 4.3+
  12332. collect2name=`$CC -print-prog-name=collect2`
  12333. if test -f "$collect2name" &&
  12334. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12335. then
  12336. # We have reworked collect2
  12337. :
  12338. else
  12339. # We have old collect2
  12340. hardcode_direct_CXX=unsupported
  12341. # It fails to find uninstalled libraries when the uninstalled
  12342. # path is not listed in the libpath. Setting hardcode_minus_L
  12343. # to unsupported forces relinking
  12344. hardcode_minus_L_CXX=yes
  12345. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12346. hardcode_libdir_separator_CXX=
  12347. fi
  12348. esac
  12349. shared_flag='-shared'
  12350. if test yes = "$aix_use_runtimelinking"; then
  12351. shared_flag=$shared_flag' $wl-G'
  12352. fi
  12353. # Need to ensure runtime linking is disabled for the traditional
  12354. # shared library, or the linker may eventually find shared libraries
  12355. # /with/ Import File - we do not want to mix them.
  12356. shared_flag_aix='-shared'
  12357. shared_flag_svr4='-shared $wl-G'
  12358. else
  12359. # not using gcc
  12360. if test ia64 = "$host_cpu"; then
  12361. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12362. # chokes on -Wl,-G. The following line is correct:
  12363. shared_flag='-G'
  12364. else
  12365. if test yes = "$aix_use_runtimelinking"; then
  12366. shared_flag='$wl-G'
  12367. else
  12368. shared_flag='$wl-bM:SRE'
  12369. fi
  12370. shared_flag_aix='$wl-bM:SRE'
  12371. shared_flag_svr4='$wl-G'
  12372. fi
  12373. fi
  12374. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12375. # It seems that -bexpall does not export symbols beginning with
  12376. # underscore (_), so it is better to generate a list of symbols to
  12377. # export.
  12378. always_export_symbols_CXX=yes
  12379. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12380. # Warning - without using the other runtime loading flags (-brtl),
  12381. # -berok will link without error, but may produce a broken library.
  12382. # The "-G" linker flag allows undefined symbols.
  12383. no_undefined_flag_CXX='-bernotok'
  12384. # Determine the default libpath from the value encoded in an empty
  12385. # executable.
  12386. if test set = "${lt_cv_aix_libpath+set}"; then
  12387. aix_libpath=$lt_cv_aix_libpath
  12388. else
  12389. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12390. $as_echo_n "(cached) " >&6
  12391. else
  12392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12393. /* end confdefs.h. */
  12394. int
  12395. main ()
  12396. {
  12397. ;
  12398. return 0;
  12399. }
  12400. _ACEOF
  12401. if ac_fn_cxx_try_link "$LINENO"; then :
  12402. lt_aix_libpath_sed='
  12403. /Import File Strings/,/^$/ {
  12404. /^0/ {
  12405. s/^0 *\([^ ]*\) *$/\1/
  12406. p
  12407. }
  12408. }'
  12409. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12410. # Check for a 64-bit object if we didn't find anything.
  12411. if test -z "$lt_cv_aix_libpath__CXX"; then
  12412. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12413. fi
  12414. fi
  12415. rm -f core conftest.err conftest.$ac_objext \
  12416. conftest$ac_exeext conftest.$ac_ext
  12417. if test -z "$lt_cv_aix_libpath__CXX"; then
  12418. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12419. fi
  12420. fi
  12421. aix_libpath=$lt_cv_aix_libpath__CXX
  12422. fi
  12423. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12424. 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
  12425. else
  12426. if test ia64 = "$host_cpu"; then
  12427. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12428. allow_undefined_flag_CXX="-z nodefs"
  12429. 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"
  12430. else
  12431. # Determine the default libpath from the value encoded in an
  12432. # empty executable.
  12433. if test set = "${lt_cv_aix_libpath+set}"; then
  12434. aix_libpath=$lt_cv_aix_libpath
  12435. else
  12436. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12437. $as_echo_n "(cached) " >&6
  12438. else
  12439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12440. /* end confdefs.h. */
  12441. int
  12442. main ()
  12443. {
  12444. ;
  12445. return 0;
  12446. }
  12447. _ACEOF
  12448. if ac_fn_cxx_try_link "$LINENO"; then :
  12449. lt_aix_libpath_sed='
  12450. /Import File Strings/,/^$/ {
  12451. /^0/ {
  12452. s/^0 *\([^ ]*\) *$/\1/
  12453. p
  12454. }
  12455. }'
  12456. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12457. # Check for a 64-bit object if we didn't find anything.
  12458. if test -z "$lt_cv_aix_libpath__CXX"; then
  12459. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12460. fi
  12461. fi
  12462. rm -f core conftest.err conftest.$ac_objext \
  12463. conftest$ac_exeext conftest.$ac_ext
  12464. if test -z "$lt_cv_aix_libpath__CXX"; then
  12465. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12466. fi
  12467. fi
  12468. aix_libpath=$lt_cv_aix_libpath__CXX
  12469. fi
  12470. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12471. # Warning - without using the other run time loading flags,
  12472. # -berok will link without error, but may produce a broken library.
  12473. no_undefined_flag_CXX=' $wl-bernotok'
  12474. allow_undefined_flag_CXX=' $wl-berok'
  12475. if test yes = "$with_gnu_ld"; then
  12476. # We only use this code for GNU lds that support --whole-archive.
  12477. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12478. else
  12479. # Exported symbols can be pulled into shared objects from archives
  12480. whole_archive_flag_spec_CXX='$convenience'
  12481. fi
  12482. archive_cmds_need_lc_CXX=yes
  12483. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12484. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12485. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12486. if test svr4 != "$with_aix_soname"; then
  12487. # This is similar to how AIX traditionally builds its shared
  12488. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12489. 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'
  12490. fi
  12491. if test aix != "$with_aix_soname"; then
  12492. 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'
  12493. else
  12494. # used by -dlpreopen to get the symbols
  12495. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12496. fi
  12497. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12498. fi
  12499. fi
  12500. ;;
  12501. beos*)
  12502. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12503. allow_undefined_flag_CXX=unsupported
  12504. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12505. # support --undefined. This deserves some investigation. FIXME
  12506. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12507. else
  12508. ld_shlibs_CXX=no
  12509. fi
  12510. ;;
  12511. chorus*)
  12512. case $cc_basename in
  12513. *)
  12514. # FIXME: insert proper C++ library support
  12515. ld_shlibs_CXX=no
  12516. ;;
  12517. esac
  12518. ;;
  12519. cygwin* | mingw* | pw32* | cegcc*)
  12520. case $GXX,$cc_basename in
  12521. ,cl* | no,cl*)
  12522. # Native MSVC
  12523. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12524. # no search path for DLLs.
  12525. hardcode_libdir_flag_spec_CXX=' '
  12526. allow_undefined_flag_CXX=unsupported
  12527. always_export_symbols_CXX=yes
  12528. file_list_spec_CXX='@'
  12529. # Tell ltmain to make .lib files, not .a files.
  12530. libext=lib
  12531. # Tell ltmain to make .dll files, not .so files.
  12532. shrext_cmds=.dll
  12533. # FIXME: Setting linknames here is a bad hack.
  12534. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12535. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12536. cp "$export_symbols" "$output_objdir/$soname.def";
  12537. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12538. else
  12539. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12540. fi~
  12541. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12542. linknames='
  12543. # The linker will not automatically build a static lib if we build a DLL.
  12544. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12545. enable_shared_with_static_runtimes_CXX=yes
  12546. # Don't use ranlib
  12547. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12548. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12549. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12550. case $lt_outputfile in
  12551. *.exe|*.EXE) ;;
  12552. *)
  12553. lt_outputfile=$lt_outputfile.exe
  12554. lt_tool_outputfile=$lt_tool_outputfile.exe
  12555. ;;
  12556. esac~
  12557. func_to_tool_file "$lt_outputfile"~
  12558. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12559. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12560. $RM "$lt_outputfile.manifest";
  12561. fi'
  12562. ;;
  12563. *)
  12564. # g++
  12565. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12566. # as there is no search path for DLLs.
  12567. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12568. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12569. allow_undefined_flag_CXX=unsupported
  12570. always_export_symbols_CXX=no
  12571. enable_shared_with_static_runtimes_CXX=yes
  12572. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12573. 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'
  12574. # If the export-symbols file already is a .def file, use it as
  12575. # is; otherwise, prepend EXPORTS...
  12576. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12577. cp $export_symbols $output_objdir/$soname.def;
  12578. else
  12579. echo EXPORTS > $output_objdir/$soname.def;
  12580. cat $export_symbols >> $output_objdir/$soname.def;
  12581. fi~
  12582. $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'
  12583. else
  12584. ld_shlibs_CXX=no
  12585. fi
  12586. ;;
  12587. esac
  12588. ;;
  12589. darwin* | rhapsody*)
  12590. archive_cmds_need_lc_CXX=no
  12591. hardcode_direct_CXX=no
  12592. hardcode_automatic_CXX=yes
  12593. hardcode_shlibpath_var_CXX=unsupported
  12594. if test yes = "$lt_cv_ld_force_load"; then
  12595. 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\"`'
  12596. else
  12597. whole_archive_flag_spec_CXX=''
  12598. fi
  12599. link_all_deplibs_CXX=yes
  12600. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  12601. case $cc_basename in
  12602. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12603. *) _lt_dar_can_shared=$GCC ;;
  12604. esac
  12605. if test yes = "$_lt_dar_can_shared"; then
  12606. output_verbose_link_cmd=func_echo_all
  12607. 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"
  12608. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12609. 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"
  12610. 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"
  12611. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12612. 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"
  12613. 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"
  12614. fi
  12615. else
  12616. ld_shlibs_CXX=no
  12617. fi
  12618. ;;
  12619. os2*)
  12620. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12621. hardcode_minus_L_CXX=yes
  12622. allow_undefined_flag_CXX=unsupported
  12623. shrext_cmds=.dll
  12624. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12625. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12626. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12627. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12628. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12629. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12630. emximp -o $lib $output_objdir/$libname.def'
  12631. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12632. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12633. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12634. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12635. prefix_cmds="$SED"~
  12636. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12637. prefix_cmds="$prefix_cmds -e 1d";
  12638. fi~
  12639. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12640. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12641. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12642. emximp -o $lib $output_objdir/$libname.def'
  12643. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12644. enable_shared_with_static_runtimes_CXX=yes
  12645. ;;
  12646. dgux*)
  12647. case $cc_basename in
  12648. ec++*)
  12649. # FIXME: insert proper C++ library support
  12650. ld_shlibs_CXX=no
  12651. ;;
  12652. ghcx*)
  12653. # Green Hills C++ Compiler
  12654. # FIXME: insert proper C++ library support
  12655. ld_shlibs_CXX=no
  12656. ;;
  12657. *)
  12658. # FIXME: insert proper C++ library support
  12659. ld_shlibs_CXX=no
  12660. ;;
  12661. esac
  12662. ;;
  12663. freebsd2.*)
  12664. # C++ shared libraries reported to be fairly broken before
  12665. # switch to ELF
  12666. ld_shlibs_CXX=no
  12667. ;;
  12668. freebsd-elf*)
  12669. archive_cmds_need_lc_CXX=no
  12670. ;;
  12671. freebsd* | dragonfly*)
  12672. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12673. # conventions
  12674. ld_shlibs_CXX=yes
  12675. ;;
  12676. haiku*)
  12677. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12678. link_all_deplibs_CXX=yes
  12679. ;;
  12680. hpux9*)
  12681. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12682. hardcode_libdir_separator_CXX=:
  12683. export_dynamic_flag_spec_CXX='$wl-E'
  12684. hardcode_direct_CXX=yes
  12685. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12686. # but as the default
  12687. # location of the library.
  12688. case $cc_basename in
  12689. CC*)
  12690. # FIXME: insert proper C++ library support
  12691. ld_shlibs_CXX=no
  12692. ;;
  12693. aCC*)
  12694. 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'
  12695. # Commands to make compiler produce verbose output that lists
  12696. # what "hidden" libraries, object files and flags are used when
  12697. # linking a shared library.
  12698. #
  12699. # There doesn't appear to be a way to prevent this compiler from
  12700. # explicitly linking system object files so we need to strip them
  12701. # from the output so that they don't get included in the library
  12702. # dependencies.
  12703. 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"'
  12704. ;;
  12705. *)
  12706. if test yes = "$GXX"; then
  12707. 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'
  12708. else
  12709. # FIXME: insert proper C++ library support
  12710. ld_shlibs_CXX=no
  12711. fi
  12712. ;;
  12713. esac
  12714. ;;
  12715. hpux10*|hpux11*)
  12716. if test no = "$with_gnu_ld"; then
  12717. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12718. hardcode_libdir_separator_CXX=:
  12719. case $host_cpu in
  12720. hppa*64*|ia64*)
  12721. ;;
  12722. *)
  12723. export_dynamic_flag_spec_CXX='$wl-E'
  12724. ;;
  12725. esac
  12726. fi
  12727. case $host_cpu in
  12728. hppa*64*|ia64*)
  12729. hardcode_direct_CXX=no
  12730. hardcode_shlibpath_var_CXX=no
  12731. ;;
  12732. *)
  12733. hardcode_direct_CXX=yes
  12734. hardcode_direct_absolute_CXX=yes
  12735. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12736. # but as the default
  12737. # location of the library.
  12738. ;;
  12739. esac
  12740. case $cc_basename in
  12741. CC*)
  12742. # FIXME: insert proper C++ library support
  12743. ld_shlibs_CXX=no
  12744. ;;
  12745. aCC*)
  12746. case $host_cpu in
  12747. hppa*64*)
  12748. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12749. ;;
  12750. ia64*)
  12751. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12752. ;;
  12753. *)
  12754. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12755. ;;
  12756. esac
  12757. # Commands to make compiler produce verbose output that lists
  12758. # what "hidden" libraries, object files and flags are used when
  12759. # linking a shared library.
  12760. #
  12761. # There doesn't appear to be a way to prevent this compiler from
  12762. # explicitly linking system object files so we need to strip them
  12763. # from the output so that they don't get included in the library
  12764. # dependencies.
  12765. 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"'
  12766. ;;
  12767. *)
  12768. if test yes = "$GXX"; then
  12769. if test no = "$with_gnu_ld"; then
  12770. case $host_cpu in
  12771. hppa*64*)
  12772. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12773. ;;
  12774. ia64*)
  12775. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12776. ;;
  12777. *)
  12778. 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'
  12779. ;;
  12780. esac
  12781. fi
  12782. else
  12783. # FIXME: insert proper C++ library support
  12784. ld_shlibs_CXX=no
  12785. fi
  12786. ;;
  12787. esac
  12788. ;;
  12789. interix[3-9]*)
  12790. hardcode_direct_CXX=no
  12791. hardcode_shlibpath_var_CXX=no
  12792. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12793. export_dynamic_flag_spec_CXX='$wl-E'
  12794. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12795. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12796. # default) and relocated if they conflict, which is a slow very memory
  12797. # consuming and fragmenting process. To avoid this, we pick a random,
  12798. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12799. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12800. 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'
  12801. 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'
  12802. ;;
  12803. irix5* | irix6*)
  12804. case $cc_basename in
  12805. CC*)
  12806. # SGI C++
  12807. 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'
  12808. # Archives containing C++ object files must be created using
  12809. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12810. # necessary to make sure instantiated templates are included
  12811. # in the archive.
  12812. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12813. ;;
  12814. *)
  12815. if test yes = "$GXX"; then
  12816. if test no = "$with_gnu_ld"; then
  12817. 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'
  12818. else
  12819. 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'
  12820. fi
  12821. fi
  12822. link_all_deplibs_CXX=yes
  12823. ;;
  12824. esac
  12825. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12826. hardcode_libdir_separator_CXX=:
  12827. inherit_rpath_CXX=yes
  12828. ;;
  12829. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12830. case $cc_basename in
  12831. KCC*)
  12832. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12833. # KCC will only create a shared library if the output file
  12834. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12835. # to its proper name (with version) after linking.
  12836. 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'
  12837. 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'
  12838. # Commands to make compiler produce verbose output that lists
  12839. # what "hidden" libraries, object files and flags are used when
  12840. # linking a shared library.
  12841. #
  12842. # There doesn't appear to be a way to prevent this compiler from
  12843. # explicitly linking system object files so we need to strip them
  12844. # from the output so that they don't get included in the library
  12845. # dependencies.
  12846. 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"'
  12847. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12848. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12849. # Archives containing C++ object files must be created using
  12850. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12851. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12852. ;;
  12853. icpc* | ecpc* )
  12854. # Intel C++
  12855. with_gnu_ld=yes
  12856. # version 8.0 and above of icpc choke on multiply defined symbols
  12857. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12858. # earlier do not add the objects themselves.
  12859. case `$CC -V 2>&1` in
  12860. *"Version 7."*)
  12861. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12862. 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'
  12863. ;;
  12864. *) # Version 8.0 or newer
  12865. tmp_idyn=
  12866. case $host_cpu in
  12867. ia64*) tmp_idyn=' -i_dynamic';;
  12868. esac
  12869. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12870. 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'
  12871. ;;
  12872. esac
  12873. archive_cmds_need_lc_CXX=no
  12874. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12875. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12876. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12877. ;;
  12878. pgCC* | pgcpp*)
  12879. # Portland Group C++ compiler
  12880. case `$CC -V` in
  12881. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12882. prelink_cmds_CXX='tpldir=Template.dir~
  12883. rm -rf $tpldir~
  12884. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12885. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12886. old_archive_cmds_CXX='tpldir=Template.dir~
  12887. rm -rf $tpldir~
  12888. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12889. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12890. $RANLIB $oldlib'
  12891. archive_cmds_CXX='tpldir=Template.dir~
  12892. rm -rf $tpldir~
  12893. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12894. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12895. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12896. rm -rf $tpldir~
  12897. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12898. $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'
  12899. ;;
  12900. *) # Version 6 and above use weak symbols
  12901. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12902. 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'
  12903. ;;
  12904. esac
  12905. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12906. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12907. 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'
  12908. ;;
  12909. cxx*)
  12910. # Compaq C++
  12911. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12912. 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'
  12913. runpath_var=LD_RUN_PATH
  12914. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12915. hardcode_libdir_separator_CXX=:
  12916. # Commands to make compiler produce verbose output that lists
  12917. # what "hidden" libraries, object files and flags are used when
  12918. # linking a shared library.
  12919. #
  12920. # There doesn't appear to be a way to prevent this compiler from
  12921. # explicitly linking system object files so we need to strip them
  12922. # from the output so that they don't get included in the library
  12923. # dependencies.
  12924. 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'
  12925. ;;
  12926. xl* | mpixl* | bgxl*)
  12927. # IBM XL 8.0 on PPC, with GNU ld
  12928. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12929. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12930. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12931. if test yes = "$supports_anon_versioning"; then
  12932. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12933. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12934. echo "local: *; };" >> $output_objdir/$libname.ver~
  12935. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12936. fi
  12937. ;;
  12938. *)
  12939. case `$CC -V 2>&1 | sed 5q` in
  12940. *Sun\ C*)
  12941. # Sun C++ 5.9
  12942. no_undefined_flag_CXX=' -zdefs'
  12943. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12944. 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'
  12945. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12946. 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'
  12947. compiler_needs_object_CXX=yes
  12948. # Not sure whether something based on
  12949. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12950. # would be better.
  12951. output_verbose_link_cmd='func_echo_all'
  12952. # Archives containing C++ object files must be created using
  12953. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12954. # necessary to make sure instantiated templates are included
  12955. # in the archive.
  12956. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12957. ;;
  12958. esac
  12959. ;;
  12960. esac
  12961. ;;
  12962. lynxos*)
  12963. # FIXME: insert proper C++ library support
  12964. ld_shlibs_CXX=no
  12965. ;;
  12966. m88k*)
  12967. # FIXME: insert proper C++ library support
  12968. ld_shlibs_CXX=no
  12969. ;;
  12970. mvs*)
  12971. case $cc_basename in
  12972. cxx*)
  12973. # FIXME: insert proper C++ library support
  12974. ld_shlibs_CXX=no
  12975. ;;
  12976. *)
  12977. # FIXME: insert proper C++ library support
  12978. ld_shlibs_CXX=no
  12979. ;;
  12980. esac
  12981. ;;
  12982. netbsd*)
  12983. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12984. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12985. wlarc=
  12986. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12987. hardcode_direct_CXX=yes
  12988. hardcode_shlibpath_var_CXX=no
  12989. fi
  12990. # Workaround some broken pre-1.5 toolchains
  12991. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12992. ;;
  12993. *nto* | *qnx*)
  12994. ld_shlibs_CXX=yes
  12995. ;;
  12996. openbsd* | bitrig*)
  12997. if test -f /usr/libexec/ld.so; then
  12998. hardcode_direct_CXX=yes
  12999. hardcode_shlibpath_var_CXX=no
  13000. hardcode_direct_absolute_CXX=yes
  13001. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13002. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13003. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13004. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13005. export_dynamic_flag_spec_CXX='$wl-E'
  13006. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13007. fi
  13008. output_verbose_link_cmd=func_echo_all
  13009. else
  13010. ld_shlibs_CXX=no
  13011. fi
  13012. ;;
  13013. osf3* | osf4* | osf5*)
  13014. case $cc_basename in
  13015. KCC*)
  13016. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13017. # KCC will only create a shared library if the output file
  13018. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13019. # to its proper name (with version) after linking.
  13020. 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'
  13021. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13022. hardcode_libdir_separator_CXX=:
  13023. # Archives containing C++ object files must be created using
  13024. # the KAI C++ compiler.
  13025. case $host in
  13026. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13027. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13028. esac
  13029. ;;
  13030. RCC*)
  13031. # Rational C++ 2.4.1
  13032. # FIXME: insert proper C++ library support
  13033. ld_shlibs_CXX=no
  13034. ;;
  13035. cxx*)
  13036. case $host in
  13037. osf3*)
  13038. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13039. 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'
  13040. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13041. ;;
  13042. *)
  13043. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13044. 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'
  13045. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13046. echo "-hidden">> $lib.exp~
  13047. $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~
  13048. $RM $lib.exp'
  13049. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13050. ;;
  13051. esac
  13052. hardcode_libdir_separator_CXX=:
  13053. # Commands to make compiler produce verbose output that lists
  13054. # what "hidden" libraries, object files and flags are used when
  13055. # linking a shared library.
  13056. #
  13057. # There doesn't appear to be a way to prevent this compiler from
  13058. # explicitly linking system object files so we need to strip them
  13059. # from the output so that they don't get included in the library
  13060. # dependencies.
  13061. 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"'
  13062. ;;
  13063. *)
  13064. if test yes,no = "$GXX,$with_gnu_ld"; then
  13065. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13066. case $host in
  13067. osf3*)
  13068. 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'
  13069. ;;
  13070. *)
  13071. 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'
  13072. ;;
  13073. esac
  13074. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13075. hardcode_libdir_separator_CXX=:
  13076. # Commands to make compiler produce verbose output that lists
  13077. # what "hidden" libraries, object files and flags are used when
  13078. # linking a shared library.
  13079. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13080. else
  13081. # FIXME: insert proper C++ library support
  13082. ld_shlibs_CXX=no
  13083. fi
  13084. ;;
  13085. esac
  13086. ;;
  13087. psos*)
  13088. # FIXME: insert proper C++ library support
  13089. ld_shlibs_CXX=no
  13090. ;;
  13091. sunos4*)
  13092. case $cc_basename in
  13093. CC*)
  13094. # Sun C++ 4.x
  13095. # FIXME: insert proper C++ library support
  13096. ld_shlibs_CXX=no
  13097. ;;
  13098. lcc*)
  13099. # Lucid
  13100. # FIXME: insert proper C++ library support
  13101. ld_shlibs_CXX=no
  13102. ;;
  13103. *)
  13104. # FIXME: insert proper C++ library support
  13105. ld_shlibs_CXX=no
  13106. ;;
  13107. esac
  13108. ;;
  13109. solaris*)
  13110. case $cc_basename in
  13111. CC* | sunCC*)
  13112. # Sun C++ 4.2, 5.x and Centerline C++
  13113. archive_cmds_need_lc_CXX=yes
  13114. no_undefined_flag_CXX=' -zdefs'
  13115. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13116. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13117. $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'
  13118. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13119. hardcode_shlibpath_var_CXX=no
  13120. case $host_os in
  13121. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13122. *)
  13123. # The compiler driver will combine and reorder linker options,
  13124. # but understands '-z linker_flag'.
  13125. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13126. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13127. ;;
  13128. esac
  13129. link_all_deplibs_CXX=yes
  13130. output_verbose_link_cmd='func_echo_all'
  13131. # Archives containing C++ object files must be created using
  13132. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13133. # necessary to make sure instantiated templates are included
  13134. # in the archive.
  13135. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13136. ;;
  13137. gcx*)
  13138. # Green Hills C++ Compiler
  13139. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13140. # The C++ compiler must be used to create the archive.
  13141. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13142. ;;
  13143. *)
  13144. # GNU C++ compiler with Solaris linker
  13145. if test yes,no = "$GXX,$with_gnu_ld"; then
  13146. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13147. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13148. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13149. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13150. $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'
  13151. # Commands to make compiler produce verbose output that lists
  13152. # what "hidden" libraries, object files and flags are used when
  13153. # linking a shared library.
  13154. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13155. else
  13156. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13157. # platform.
  13158. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13159. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13160. $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'
  13161. # Commands to make compiler produce verbose output that lists
  13162. # what "hidden" libraries, object files and flags are used when
  13163. # linking a shared library.
  13164. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13165. fi
  13166. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13167. case $host_os in
  13168. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13169. *)
  13170. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13171. ;;
  13172. esac
  13173. fi
  13174. ;;
  13175. esac
  13176. ;;
  13177. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13178. no_undefined_flag_CXX='$wl-z,text'
  13179. archive_cmds_need_lc_CXX=no
  13180. hardcode_shlibpath_var_CXX=no
  13181. runpath_var='LD_RUN_PATH'
  13182. case $cc_basename in
  13183. CC*)
  13184. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13185. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13186. ;;
  13187. *)
  13188. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13189. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13190. ;;
  13191. esac
  13192. ;;
  13193. sysv5* | sco3.2v5* | sco5v6*)
  13194. # Note: We CANNOT use -z defs as we might desire, because we do not
  13195. # link with -lc, and that would cause any symbols used from libc to
  13196. # always be unresolved, which means just about no library would
  13197. # ever link correctly. If we're not using GNU ld we use -z text
  13198. # though, which does catch some bad symbols but isn't as heavy-handed
  13199. # as -z defs.
  13200. no_undefined_flag_CXX='$wl-z,text'
  13201. allow_undefined_flag_CXX='$wl-z,nodefs'
  13202. archive_cmds_need_lc_CXX=no
  13203. hardcode_shlibpath_var_CXX=no
  13204. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13205. hardcode_libdir_separator_CXX=':'
  13206. link_all_deplibs_CXX=yes
  13207. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13208. runpath_var='LD_RUN_PATH'
  13209. case $cc_basename in
  13210. CC*)
  13211. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13212. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13213. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13214. '"$old_archive_cmds_CXX"
  13215. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13216. '"$reload_cmds_CXX"
  13217. ;;
  13218. *)
  13219. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13220. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13221. ;;
  13222. esac
  13223. ;;
  13224. tandem*)
  13225. case $cc_basename in
  13226. NCC*)
  13227. # NonStop-UX NCC 3.20
  13228. # FIXME: insert proper C++ library support
  13229. ld_shlibs_CXX=no
  13230. ;;
  13231. *)
  13232. # FIXME: insert proper C++ library support
  13233. ld_shlibs_CXX=no
  13234. ;;
  13235. esac
  13236. ;;
  13237. vxworks*)
  13238. # FIXME: insert proper C++ library support
  13239. ld_shlibs_CXX=no
  13240. ;;
  13241. *)
  13242. # FIXME: insert proper C++ library support
  13243. ld_shlibs_CXX=no
  13244. ;;
  13245. esac
  13246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13247. $as_echo "$ld_shlibs_CXX" >&6; }
  13248. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13249. GCC_CXX=$GXX
  13250. LD_CXX=$LD
  13251. ## CAVEAT EMPTOR:
  13252. ## There is no encapsulation within the following macros, do not change
  13253. ## the running order or otherwise move them around unless you know exactly
  13254. ## what you are doing...
  13255. # Dependencies to place before and after the object being linked:
  13256. predep_objects_CXX=
  13257. postdep_objects_CXX=
  13258. predeps_CXX=
  13259. postdeps_CXX=
  13260. compiler_lib_search_path_CXX=
  13261. cat > conftest.$ac_ext <<_LT_EOF
  13262. class Foo
  13263. {
  13264. public:
  13265. Foo (void) { a = 0; }
  13266. private:
  13267. int a;
  13268. };
  13269. _LT_EOF
  13270. _lt_libdeps_save_CFLAGS=$CFLAGS
  13271. case "$CC $CFLAGS " in #(
  13272. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13273. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13274. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13275. esac
  13276. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13277. (eval $ac_compile) 2>&5
  13278. ac_status=$?
  13279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13280. test $ac_status = 0; }; then
  13281. # Parse the compiler output and extract the necessary
  13282. # objects, libraries and library flags.
  13283. # Sentinel used to keep track of whether or not we are before
  13284. # the conftest object file.
  13285. pre_test_object_deps_done=no
  13286. for p in `eval "$output_verbose_link_cmd"`; do
  13287. case $prev$p in
  13288. -L* | -R* | -l*)
  13289. # Some compilers place space between "-{L,R}" and the path.
  13290. # Remove the space.
  13291. if test x-L = "$p" ||
  13292. test x-R = "$p"; then
  13293. prev=$p
  13294. continue
  13295. fi
  13296. # Expand the sysroot to ease extracting the directories later.
  13297. if test -z "$prev"; then
  13298. case $p in
  13299. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13300. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13301. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13302. esac
  13303. fi
  13304. case $p in
  13305. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13306. esac
  13307. if test no = "$pre_test_object_deps_done"; then
  13308. case $prev in
  13309. -L | -R)
  13310. # Internal compiler library paths should come after those
  13311. # provided the user. The postdeps already come after the
  13312. # user supplied libs so there is no need to process them.
  13313. if test -z "$compiler_lib_search_path_CXX"; then
  13314. compiler_lib_search_path_CXX=$prev$p
  13315. else
  13316. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13317. fi
  13318. ;;
  13319. # The "-l" case would never come before the object being
  13320. # linked, so don't bother handling this case.
  13321. esac
  13322. else
  13323. if test -z "$postdeps_CXX"; then
  13324. postdeps_CXX=$prev$p
  13325. else
  13326. postdeps_CXX="${postdeps_CXX} $prev$p"
  13327. fi
  13328. fi
  13329. prev=
  13330. ;;
  13331. *.lto.$objext) ;; # Ignore GCC LTO objects
  13332. *.$objext)
  13333. # This assumes that the test object file only shows up
  13334. # once in the compiler output.
  13335. if test "$p" = "conftest.$objext"; then
  13336. pre_test_object_deps_done=yes
  13337. continue
  13338. fi
  13339. if test no = "$pre_test_object_deps_done"; then
  13340. if test -z "$predep_objects_CXX"; then
  13341. predep_objects_CXX=$p
  13342. else
  13343. predep_objects_CXX="$predep_objects_CXX $p"
  13344. fi
  13345. else
  13346. if test -z "$postdep_objects_CXX"; then
  13347. postdep_objects_CXX=$p
  13348. else
  13349. postdep_objects_CXX="$postdep_objects_CXX $p"
  13350. fi
  13351. fi
  13352. ;;
  13353. *) ;; # Ignore the rest.
  13354. esac
  13355. done
  13356. # Clean up.
  13357. rm -f a.out a.exe
  13358. else
  13359. echo "libtool.m4: error: problem compiling CXX test program"
  13360. fi
  13361. $RM -f confest.$objext
  13362. CFLAGS=$_lt_libdeps_save_CFLAGS
  13363. # PORTME: override above test on systems where it is broken
  13364. case $host_os in
  13365. interix[3-9]*)
  13366. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13367. # hack all around it, let's just trust "g++" to DTRT.
  13368. predep_objects_CXX=
  13369. postdep_objects_CXX=
  13370. postdeps_CXX=
  13371. ;;
  13372. esac
  13373. case " $postdeps_CXX " in
  13374. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13375. esac
  13376. compiler_lib_search_dirs_CXX=
  13377. if test -n "${compiler_lib_search_path_CXX}"; then
  13378. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13379. fi
  13380. lt_prog_compiler_wl_CXX=
  13381. lt_prog_compiler_pic_CXX=
  13382. lt_prog_compiler_static_CXX=
  13383. # C++ specific cases for pic, static, wl, etc.
  13384. if test yes = "$GXX"; then
  13385. lt_prog_compiler_wl_CXX='-Wl,'
  13386. lt_prog_compiler_static_CXX='-static'
  13387. case $host_os in
  13388. aix*)
  13389. # All AIX code is PIC.
  13390. if test ia64 = "$host_cpu"; then
  13391. # AIX 5 now supports IA64 processor
  13392. lt_prog_compiler_static_CXX='-Bstatic'
  13393. fi
  13394. lt_prog_compiler_pic_CXX='-fPIC'
  13395. ;;
  13396. amigaos*)
  13397. case $host_cpu in
  13398. powerpc)
  13399. # see comment about AmigaOS4 .so support
  13400. lt_prog_compiler_pic_CXX='-fPIC'
  13401. ;;
  13402. m68k)
  13403. # FIXME: we need at least 68020 code to build shared libraries, but
  13404. # adding the '-m68020' flag to GCC prevents building anything better,
  13405. # like '-m68040'.
  13406. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13407. ;;
  13408. esac
  13409. ;;
  13410. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13411. # PIC is the default for these OSes.
  13412. ;;
  13413. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13414. # This hack is so that the source file can tell whether it is being
  13415. # built for inclusion in a dll (and should export symbols for example).
  13416. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13417. # (--disable-auto-import) libraries
  13418. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13419. case $host_os in
  13420. os2*)
  13421. lt_prog_compiler_static_CXX='$wl-static'
  13422. ;;
  13423. esac
  13424. ;;
  13425. darwin* | rhapsody*)
  13426. # PIC is the default on this platform
  13427. # Common symbols not allowed in MH_DYLIB files
  13428. lt_prog_compiler_pic_CXX='-fno-common'
  13429. ;;
  13430. *djgpp*)
  13431. # DJGPP does not support shared libraries at all
  13432. lt_prog_compiler_pic_CXX=
  13433. ;;
  13434. haiku*)
  13435. # PIC is the default for Haiku.
  13436. # The "-static" flag exists, but is broken.
  13437. lt_prog_compiler_static_CXX=
  13438. ;;
  13439. interix[3-9]*)
  13440. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13441. # Instead, we relocate shared libraries at runtime.
  13442. ;;
  13443. sysv4*MP*)
  13444. if test -d /usr/nec; then
  13445. lt_prog_compiler_pic_CXX=-Kconform_pic
  13446. fi
  13447. ;;
  13448. hpux*)
  13449. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13450. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13451. # sets the default TLS model and affects inlining.
  13452. case $host_cpu in
  13453. hppa*64*)
  13454. ;;
  13455. *)
  13456. lt_prog_compiler_pic_CXX='-fPIC'
  13457. ;;
  13458. esac
  13459. ;;
  13460. *qnx* | *nto*)
  13461. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13462. # it will coredump.
  13463. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13464. ;;
  13465. *)
  13466. lt_prog_compiler_pic_CXX='-fPIC'
  13467. ;;
  13468. esac
  13469. else
  13470. case $host_os in
  13471. aix[4-9]*)
  13472. # All AIX code is PIC.
  13473. if test ia64 = "$host_cpu"; then
  13474. # AIX 5 now supports IA64 processor
  13475. lt_prog_compiler_static_CXX='-Bstatic'
  13476. else
  13477. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13478. fi
  13479. ;;
  13480. chorus*)
  13481. case $cc_basename in
  13482. cxch68*)
  13483. # Green Hills C++ Compiler
  13484. # _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"
  13485. ;;
  13486. esac
  13487. ;;
  13488. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13489. # This hack is so that the source file can tell whether it is being
  13490. # built for inclusion in a dll (and should export symbols for example).
  13491. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13492. ;;
  13493. dgux*)
  13494. case $cc_basename in
  13495. ec++*)
  13496. lt_prog_compiler_pic_CXX='-KPIC'
  13497. ;;
  13498. ghcx*)
  13499. # Green Hills C++ Compiler
  13500. lt_prog_compiler_pic_CXX='-pic'
  13501. ;;
  13502. *)
  13503. ;;
  13504. esac
  13505. ;;
  13506. freebsd* | dragonfly*)
  13507. # FreeBSD uses GNU C++
  13508. ;;
  13509. hpux9* | hpux10* | hpux11*)
  13510. case $cc_basename in
  13511. CC*)
  13512. lt_prog_compiler_wl_CXX='-Wl,'
  13513. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13514. if test ia64 != "$host_cpu"; then
  13515. lt_prog_compiler_pic_CXX='+Z'
  13516. fi
  13517. ;;
  13518. aCC*)
  13519. lt_prog_compiler_wl_CXX='-Wl,'
  13520. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13521. case $host_cpu in
  13522. hppa*64*|ia64*)
  13523. # +Z the default
  13524. ;;
  13525. *)
  13526. lt_prog_compiler_pic_CXX='+Z'
  13527. ;;
  13528. esac
  13529. ;;
  13530. *)
  13531. ;;
  13532. esac
  13533. ;;
  13534. interix*)
  13535. # This is c89, which is MS Visual C++ (no shared libs)
  13536. # Anyone wants to do a port?
  13537. ;;
  13538. irix5* | irix6* | nonstopux*)
  13539. case $cc_basename in
  13540. CC*)
  13541. lt_prog_compiler_wl_CXX='-Wl,'
  13542. lt_prog_compiler_static_CXX='-non_shared'
  13543. # CC pic flag -KPIC is the default.
  13544. ;;
  13545. *)
  13546. ;;
  13547. esac
  13548. ;;
  13549. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13550. case $cc_basename in
  13551. KCC*)
  13552. # KAI C++ Compiler
  13553. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13554. lt_prog_compiler_pic_CXX='-fPIC'
  13555. ;;
  13556. ecpc* )
  13557. # old Intel C++ for x86_64, which still supported -KPIC.
  13558. lt_prog_compiler_wl_CXX='-Wl,'
  13559. lt_prog_compiler_pic_CXX='-KPIC'
  13560. lt_prog_compiler_static_CXX='-static'
  13561. ;;
  13562. icpc* )
  13563. # Intel C++, used to be incompatible with GCC.
  13564. # ICC 10 doesn't accept -KPIC any more.
  13565. lt_prog_compiler_wl_CXX='-Wl,'
  13566. lt_prog_compiler_pic_CXX='-fPIC'
  13567. lt_prog_compiler_static_CXX='-static'
  13568. ;;
  13569. pgCC* | pgcpp*)
  13570. # Portland Group C++ compiler
  13571. lt_prog_compiler_wl_CXX='-Wl,'
  13572. lt_prog_compiler_pic_CXX='-fpic'
  13573. lt_prog_compiler_static_CXX='-Bstatic'
  13574. ;;
  13575. cxx*)
  13576. # Compaq C++
  13577. # Make sure the PIC flag is empty. It appears that all Alpha
  13578. # Linux and Compaq Tru64 Unix objects are PIC.
  13579. lt_prog_compiler_pic_CXX=
  13580. lt_prog_compiler_static_CXX='-non_shared'
  13581. ;;
  13582. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13583. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13584. lt_prog_compiler_wl_CXX='-Wl,'
  13585. lt_prog_compiler_pic_CXX='-qpic'
  13586. lt_prog_compiler_static_CXX='-qstaticlink'
  13587. ;;
  13588. *)
  13589. case `$CC -V 2>&1 | sed 5q` in
  13590. *Sun\ C*)
  13591. # Sun C++ 5.9
  13592. lt_prog_compiler_pic_CXX='-KPIC'
  13593. lt_prog_compiler_static_CXX='-Bstatic'
  13594. lt_prog_compiler_wl_CXX='-Qoption ld '
  13595. ;;
  13596. esac
  13597. ;;
  13598. esac
  13599. ;;
  13600. lynxos*)
  13601. ;;
  13602. m88k*)
  13603. ;;
  13604. mvs*)
  13605. case $cc_basename in
  13606. cxx*)
  13607. lt_prog_compiler_pic_CXX='-W c,exportall'
  13608. ;;
  13609. *)
  13610. ;;
  13611. esac
  13612. ;;
  13613. netbsd* | netbsdelf*-gnu)
  13614. ;;
  13615. *qnx* | *nto*)
  13616. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13617. # it will coredump.
  13618. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13619. ;;
  13620. osf3* | osf4* | osf5*)
  13621. case $cc_basename in
  13622. KCC*)
  13623. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13624. ;;
  13625. RCC*)
  13626. # Rational C++ 2.4.1
  13627. lt_prog_compiler_pic_CXX='-pic'
  13628. ;;
  13629. cxx*)
  13630. # Digital/Compaq C++
  13631. lt_prog_compiler_wl_CXX='-Wl,'
  13632. # Make sure the PIC flag is empty. It appears that all Alpha
  13633. # Linux and Compaq Tru64 Unix objects are PIC.
  13634. lt_prog_compiler_pic_CXX=
  13635. lt_prog_compiler_static_CXX='-non_shared'
  13636. ;;
  13637. *)
  13638. ;;
  13639. esac
  13640. ;;
  13641. psos*)
  13642. ;;
  13643. solaris*)
  13644. case $cc_basename in
  13645. CC* | sunCC*)
  13646. # Sun C++ 4.2, 5.x and Centerline C++
  13647. lt_prog_compiler_pic_CXX='-KPIC'
  13648. lt_prog_compiler_static_CXX='-Bstatic'
  13649. lt_prog_compiler_wl_CXX='-Qoption ld '
  13650. ;;
  13651. gcx*)
  13652. # Green Hills C++ Compiler
  13653. lt_prog_compiler_pic_CXX='-PIC'
  13654. ;;
  13655. *)
  13656. ;;
  13657. esac
  13658. ;;
  13659. sunos4*)
  13660. case $cc_basename in
  13661. CC*)
  13662. # Sun C++ 4.x
  13663. lt_prog_compiler_pic_CXX='-pic'
  13664. lt_prog_compiler_static_CXX='-Bstatic'
  13665. ;;
  13666. lcc*)
  13667. # Lucid
  13668. lt_prog_compiler_pic_CXX='-pic'
  13669. ;;
  13670. *)
  13671. ;;
  13672. esac
  13673. ;;
  13674. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13675. case $cc_basename in
  13676. CC*)
  13677. lt_prog_compiler_wl_CXX='-Wl,'
  13678. lt_prog_compiler_pic_CXX='-KPIC'
  13679. lt_prog_compiler_static_CXX='-Bstatic'
  13680. ;;
  13681. esac
  13682. ;;
  13683. tandem*)
  13684. case $cc_basename in
  13685. NCC*)
  13686. # NonStop-UX NCC 3.20
  13687. lt_prog_compiler_pic_CXX='-KPIC'
  13688. ;;
  13689. *)
  13690. ;;
  13691. esac
  13692. ;;
  13693. vxworks*)
  13694. ;;
  13695. *)
  13696. lt_prog_compiler_can_build_shared_CXX=no
  13697. ;;
  13698. esac
  13699. fi
  13700. case $host_os in
  13701. # For platforms that do not support PIC, -DPIC is meaningless:
  13702. *djgpp*)
  13703. lt_prog_compiler_pic_CXX=
  13704. ;;
  13705. *)
  13706. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13707. ;;
  13708. esac
  13709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13710. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13711. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13712. $as_echo_n "(cached) " >&6
  13713. else
  13714. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13715. fi
  13716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13717. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13718. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13719. #
  13720. # Check to make sure the PIC flag actually works.
  13721. #
  13722. if test -n "$lt_prog_compiler_pic_CXX"; then
  13723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13724. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13725. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13726. $as_echo_n "(cached) " >&6
  13727. else
  13728. lt_cv_prog_compiler_pic_works_CXX=no
  13729. ac_outfile=conftest.$ac_objext
  13730. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13731. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13732. # Insert the option either (1) after the last *FLAGS variable, or
  13733. # (2) before a word containing "conftest.", or (3) at the end.
  13734. # Note that $ac_compile itself does not contain backslashes and begins
  13735. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13736. # The option is referenced via a variable to avoid confusing sed.
  13737. lt_compile=`echo "$ac_compile" | $SED \
  13738. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13739. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13740. -e 's:$: $lt_compiler_flag:'`
  13741. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13742. (eval "$lt_compile" 2>conftest.err)
  13743. ac_status=$?
  13744. cat conftest.err >&5
  13745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13746. if (exit $ac_status) && test -s "$ac_outfile"; then
  13747. # The compiler can only warn and ignore the option if not recognized
  13748. # So say no if there are warnings other than the usual output.
  13749. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13750. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13751. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13752. lt_cv_prog_compiler_pic_works_CXX=yes
  13753. fi
  13754. fi
  13755. $RM conftest*
  13756. fi
  13757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13758. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13759. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13760. case $lt_prog_compiler_pic_CXX in
  13761. "" | " "*) ;;
  13762. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13763. esac
  13764. else
  13765. lt_prog_compiler_pic_CXX=
  13766. lt_prog_compiler_can_build_shared_CXX=no
  13767. fi
  13768. fi
  13769. #
  13770. # Check to make sure the static flag actually works.
  13771. #
  13772. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13774. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13775. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13776. $as_echo_n "(cached) " >&6
  13777. else
  13778. lt_cv_prog_compiler_static_works_CXX=no
  13779. save_LDFLAGS=$LDFLAGS
  13780. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13781. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13782. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13783. # The linker can only warn and ignore the option if not recognized
  13784. # So say no if there are warnings
  13785. if test -s conftest.err; then
  13786. # Append any errors to the config.log.
  13787. cat conftest.err 1>&5
  13788. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13789. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13790. if diff conftest.exp conftest.er2 >/dev/null; then
  13791. lt_cv_prog_compiler_static_works_CXX=yes
  13792. fi
  13793. else
  13794. lt_cv_prog_compiler_static_works_CXX=yes
  13795. fi
  13796. fi
  13797. $RM -r conftest*
  13798. LDFLAGS=$save_LDFLAGS
  13799. fi
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13801. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13802. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13803. :
  13804. else
  13805. lt_prog_compiler_static_CXX=
  13806. fi
  13807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13808. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13809. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13810. $as_echo_n "(cached) " >&6
  13811. else
  13812. lt_cv_prog_compiler_c_o_CXX=no
  13813. $RM -r conftest 2>/dev/null
  13814. mkdir conftest
  13815. cd conftest
  13816. mkdir out
  13817. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13818. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13819. # Insert the option either (1) after the last *FLAGS variable, or
  13820. # (2) before a word containing "conftest.", or (3) at the end.
  13821. # Note that $ac_compile itself does not contain backslashes and begins
  13822. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13823. lt_compile=`echo "$ac_compile" | $SED \
  13824. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13825. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13826. -e 's:$: $lt_compiler_flag:'`
  13827. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13828. (eval "$lt_compile" 2>out/conftest.err)
  13829. ac_status=$?
  13830. cat out/conftest.err >&5
  13831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13832. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13833. then
  13834. # The compiler can only warn and ignore the option if not recognized
  13835. # So say no if there are warnings
  13836. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13837. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13838. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13839. lt_cv_prog_compiler_c_o_CXX=yes
  13840. fi
  13841. fi
  13842. chmod u+w . 2>&5
  13843. $RM conftest*
  13844. # SGI C++ compiler will create directory out/ii_files/ for
  13845. # template instantiation
  13846. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13847. $RM out/* && rmdir out
  13848. cd ..
  13849. $RM -r conftest
  13850. $RM conftest*
  13851. fi
  13852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13853. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13855. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13856. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13857. $as_echo_n "(cached) " >&6
  13858. else
  13859. lt_cv_prog_compiler_c_o_CXX=no
  13860. $RM -r conftest 2>/dev/null
  13861. mkdir conftest
  13862. cd conftest
  13863. mkdir out
  13864. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13865. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13866. # Insert the option either (1) after the last *FLAGS variable, or
  13867. # (2) before a word containing "conftest.", or (3) at the end.
  13868. # Note that $ac_compile itself does not contain backslashes and begins
  13869. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13870. lt_compile=`echo "$ac_compile" | $SED \
  13871. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13872. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13873. -e 's:$: $lt_compiler_flag:'`
  13874. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13875. (eval "$lt_compile" 2>out/conftest.err)
  13876. ac_status=$?
  13877. cat out/conftest.err >&5
  13878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13879. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13880. then
  13881. # The compiler can only warn and ignore the option if not recognized
  13882. # So say no if there are warnings
  13883. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13884. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13885. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13886. lt_cv_prog_compiler_c_o_CXX=yes
  13887. fi
  13888. fi
  13889. chmod u+w . 2>&5
  13890. $RM conftest*
  13891. # SGI C++ compiler will create directory out/ii_files/ for
  13892. # template instantiation
  13893. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13894. $RM out/* && rmdir out
  13895. cd ..
  13896. $RM -r conftest
  13897. $RM conftest*
  13898. fi
  13899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13900. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13901. hard_links=nottested
  13902. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13903. # do not overwrite the value of need_locks provided by the user
  13904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13905. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13906. hard_links=yes
  13907. $RM conftest*
  13908. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13909. touch conftest.a
  13910. ln conftest.a conftest.b 2>&5 || hard_links=no
  13911. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13913. $as_echo "$hard_links" >&6; }
  13914. if test no = "$hard_links"; then
  13915. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13916. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13917. need_locks=warn
  13918. fi
  13919. else
  13920. need_locks=no
  13921. fi
  13922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13923. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13924. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13925. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13926. case $host_os in
  13927. aix[4-9]*)
  13928. # If we're using GNU nm, then we don't want the "-C" option.
  13929. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13930. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13931. # weak defined symbols like other global defined symbols, whereas
  13932. # GNU nm marks them as "W".
  13933. # While the 'weak' keyword is ignored in the Export File, we need
  13934. # it in the Import File for the 'aix-soname' feature, so we have
  13935. # to replace the "-B" option with "-P" for AIX nm.
  13936. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13937. 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'
  13938. else
  13939. 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'
  13940. fi
  13941. ;;
  13942. pw32*)
  13943. export_symbols_cmds_CXX=$ltdll_cmds
  13944. ;;
  13945. cygwin* | mingw* | cegcc*)
  13946. case $cc_basename in
  13947. cl*)
  13948. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13949. ;;
  13950. *)
  13951. 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'
  13952. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13953. ;;
  13954. esac
  13955. ;;
  13956. linux* | k*bsd*-gnu | gnu*)
  13957. link_all_deplibs_CXX=no
  13958. ;;
  13959. *)
  13960. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13961. ;;
  13962. esac
  13963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13964. $as_echo "$ld_shlibs_CXX" >&6; }
  13965. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13966. with_gnu_ld_CXX=$with_gnu_ld
  13967. #
  13968. # Do we need to explicitly link libc?
  13969. #
  13970. case "x$archive_cmds_need_lc_CXX" in
  13971. x|xyes)
  13972. # Assume -lc should be added
  13973. archive_cmds_need_lc_CXX=yes
  13974. if test yes,yes = "$GCC,$enable_shared"; then
  13975. case $archive_cmds_CXX in
  13976. *'~'*)
  13977. # FIXME: we may have to deal with multi-command sequences.
  13978. ;;
  13979. '$CC '*)
  13980. # Test whether the compiler implicitly links with -lc since on some
  13981. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13982. # to ld, don't add -lc before -lgcc.
  13983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13984. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13985. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13986. $as_echo_n "(cached) " >&6
  13987. else
  13988. $RM conftest*
  13989. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13990. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13991. (eval $ac_compile) 2>&5
  13992. ac_status=$?
  13993. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13994. test $ac_status = 0; } 2>conftest.err; then
  13995. soname=conftest
  13996. lib=conftest
  13997. libobjs=conftest.$ac_objext
  13998. deplibs=
  13999. wl=$lt_prog_compiler_wl_CXX
  14000. pic_flag=$lt_prog_compiler_pic_CXX
  14001. compiler_flags=-v
  14002. linker_flags=-v
  14003. verstring=
  14004. output_objdir=.
  14005. libname=conftest
  14006. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14007. allow_undefined_flag_CXX=
  14008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14009. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14010. ac_status=$?
  14011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14012. test $ac_status = 0; }
  14013. then
  14014. lt_cv_archive_cmds_need_lc_CXX=no
  14015. else
  14016. lt_cv_archive_cmds_need_lc_CXX=yes
  14017. fi
  14018. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14019. else
  14020. cat conftest.err 1>&5
  14021. fi
  14022. $RM conftest*
  14023. fi
  14024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14025. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14026. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14027. ;;
  14028. esac
  14029. fi
  14030. ;;
  14031. esac
  14032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14033. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14034. library_names_spec=
  14035. libname_spec='lib$name'
  14036. soname_spec=
  14037. shrext_cmds=.so
  14038. postinstall_cmds=
  14039. postuninstall_cmds=
  14040. finish_cmds=
  14041. finish_eval=
  14042. shlibpath_var=
  14043. shlibpath_overrides_runpath=unknown
  14044. version_type=none
  14045. dynamic_linker="$host_os ld.so"
  14046. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14047. need_lib_prefix=unknown
  14048. hardcode_into_libs=no
  14049. # when you set need_version to no, make sure it does not cause -set_version
  14050. # flags to be left without arguments
  14051. need_version=unknown
  14052. case $host_os in
  14053. aix3*)
  14054. version_type=linux # correct to gnu/linux during the next big refactor
  14055. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14056. shlibpath_var=LIBPATH
  14057. # AIX 3 has no versioning support, so we append a major version to the name.
  14058. soname_spec='$libname$release$shared_ext$major'
  14059. ;;
  14060. aix[4-9]*)
  14061. version_type=linux # correct to gnu/linux during the next big refactor
  14062. need_lib_prefix=no
  14063. need_version=no
  14064. hardcode_into_libs=yes
  14065. if test ia64 = "$host_cpu"; then
  14066. # AIX 5 supports IA64
  14067. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14068. shlibpath_var=LD_LIBRARY_PATH
  14069. else
  14070. # With GCC up to 2.95.x, collect2 would create an import file
  14071. # for dependence libraries. The import file would start with
  14072. # the line '#! .'. This would cause the generated library to
  14073. # depend on '.', always an invalid library. This was fixed in
  14074. # development snapshots of GCC prior to 3.0.
  14075. case $host_os in
  14076. aix4 | aix4.[01] | aix4.[01].*)
  14077. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14078. echo ' yes '
  14079. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14080. :
  14081. else
  14082. can_build_shared=no
  14083. fi
  14084. ;;
  14085. esac
  14086. # Using Import Files as archive members, it is possible to support
  14087. # filename-based versioning of shared library archives on AIX. While
  14088. # this would work for both with and without runtime linking, it will
  14089. # prevent static linking of such archives. So we do filename-based
  14090. # shared library versioning with .so extension only, which is used
  14091. # when both runtime linking and shared linking is enabled.
  14092. # Unfortunately, runtime linking may impact performance, so we do
  14093. # not want this to be the default eventually. Also, we use the
  14094. # versioned .so libs for executables only if there is the -brtl
  14095. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14096. # To allow for filename-based versioning support, we need to create
  14097. # libNAME.so.V as an archive file, containing:
  14098. # *) an Import File, referring to the versioned filename of the
  14099. # archive as well as the shared archive member, telling the
  14100. # bitwidth (32 or 64) of that shared object, and providing the
  14101. # list of exported symbols of that shared object, eventually
  14102. # decorated with the 'weak' keyword
  14103. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14104. # it being seen by the linker.
  14105. # At run time we better use the real file rather than another symlink,
  14106. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14107. case $with_aix_soname,$aix_use_runtimelinking in
  14108. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14109. # soname into executable. Probably we can add versioning support to
  14110. # collect2, so additional links can be useful in future.
  14111. aix,yes) # traditional libtool
  14112. dynamic_linker='AIX unversionable lib.so'
  14113. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14114. # instead of lib<name>.a to let people know that these are not
  14115. # typical AIX shared libraries.
  14116. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14117. ;;
  14118. aix,no) # traditional AIX only
  14119. dynamic_linker='AIX lib.a(lib.so.V)'
  14120. # We preserve .a as extension for shared libraries through AIX4.2
  14121. # and later when we are not doing run time linking.
  14122. library_names_spec='$libname$release.a $libname.a'
  14123. soname_spec='$libname$release$shared_ext$major'
  14124. ;;
  14125. svr4,*) # full svr4 only
  14126. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14127. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14128. # We do not specify a path in Import Files, so LIBPATH fires.
  14129. shlibpath_overrides_runpath=yes
  14130. ;;
  14131. *,yes) # both, prefer svr4
  14132. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14133. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14134. # unpreferred sharedlib libNAME.a needs extra handling
  14135. 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"'
  14136. 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"'
  14137. # We do not specify a path in Import Files, so LIBPATH fires.
  14138. shlibpath_overrides_runpath=yes
  14139. ;;
  14140. *,no) # both, prefer aix
  14141. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14142. library_names_spec='$libname$release.a $libname.a'
  14143. soname_spec='$libname$release$shared_ext$major'
  14144. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14145. 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)'
  14146. 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"'
  14147. ;;
  14148. esac
  14149. shlibpath_var=LIBPATH
  14150. fi
  14151. ;;
  14152. amigaos*)
  14153. case $host_cpu in
  14154. powerpc)
  14155. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14156. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14157. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14158. ;;
  14159. m68k)
  14160. library_names_spec='$libname.ixlibrary $libname.a'
  14161. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14162. 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'
  14163. ;;
  14164. esac
  14165. ;;
  14166. beos*)
  14167. library_names_spec='$libname$shared_ext'
  14168. dynamic_linker="$host_os ld.so"
  14169. shlibpath_var=LIBRARY_PATH
  14170. ;;
  14171. bsdi[45]*)
  14172. version_type=linux # correct to gnu/linux during the next big refactor
  14173. need_version=no
  14174. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14175. soname_spec='$libname$release$shared_ext$major'
  14176. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14177. shlibpath_var=LD_LIBRARY_PATH
  14178. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14179. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14180. # the default ld.so.conf also contains /usr/contrib/lib and
  14181. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14182. # libtool to hard-code these into programs
  14183. ;;
  14184. cygwin* | mingw* | pw32* | cegcc*)
  14185. version_type=windows
  14186. shrext_cmds=.dll
  14187. need_version=no
  14188. need_lib_prefix=no
  14189. case $GCC,$cc_basename in
  14190. yes,*)
  14191. # gcc
  14192. library_names_spec='$libname.dll.a'
  14193. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14194. postinstall_cmds='base_file=`basename \$file`~
  14195. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14196. dldir=$destdir/`dirname \$dlpath`~
  14197. test -d \$dldir || mkdir -p \$dldir~
  14198. $install_prog $dir/$dlname \$dldir/$dlname~
  14199. chmod a+x \$dldir/$dlname~
  14200. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14201. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14202. fi'
  14203. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14204. dlpath=$dir/\$dldll~
  14205. $RM \$dlpath'
  14206. shlibpath_overrides_runpath=yes
  14207. case $host_os in
  14208. cygwin*)
  14209. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14210. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14211. ;;
  14212. mingw* | cegcc*)
  14213. # MinGW DLLs use traditional 'lib' prefix
  14214. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14215. ;;
  14216. pw32*)
  14217. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14218. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14219. ;;
  14220. esac
  14221. dynamic_linker='Win32 ld.exe'
  14222. ;;
  14223. *,cl*)
  14224. # Native MSVC
  14225. libname_spec='$name'
  14226. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14227. library_names_spec='$libname.dll.lib'
  14228. case $build_os in
  14229. mingw*)
  14230. sys_lib_search_path_spec=
  14231. lt_save_ifs=$IFS
  14232. IFS=';'
  14233. for lt_path in $LIB
  14234. do
  14235. IFS=$lt_save_ifs
  14236. # Let DOS variable expansion print the short 8.3 style file name.
  14237. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14238. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14239. done
  14240. IFS=$lt_save_ifs
  14241. # Convert to MSYS style.
  14242. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14243. ;;
  14244. cygwin*)
  14245. # Convert to unix form, then to dos form, then back to unix form
  14246. # but this time dos style (no spaces!) so that the unix form looks
  14247. # like /cygdrive/c/PROGRA~1:/cygdr...
  14248. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14249. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14250. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14251. ;;
  14252. *)
  14253. sys_lib_search_path_spec=$LIB
  14254. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14255. # It is most probably a Windows format PATH.
  14256. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14257. else
  14258. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14259. fi
  14260. # FIXME: find the short name or the path components, as spaces are
  14261. # common. (e.g. "Program Files" -> "PROGRA~1")
  14262. ;;
  14263. esac
  14264. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14265. postinstall_cmds='base_file=`basename \$file`~
  14266. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14267. dldir=$destdir/`dirname \$dlpath`~
  14268. test -d \$dldir || mkdir -p \$dldir~
  14269. $install_prog $dir/$dlname \$dldir/$dlname'
  14270. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14271. dlpath=$dir/\$dldll~
  14272. $RM \$dlpath'
  14273. shlibpath_overrides_runpath=yes
  14274. dynamic_linker='Win32 link.exe'
  14275. ;;
  14276. *)
  14277. # Assume MSVC wrapper
  14278. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14279. dynamic_linker='Win32 ld.exe'
  14280. ;;
  14281. esac
  14282. # FIXME: first we should search . and the directory the executable is in
  14283. shlibpath_var=PATH
  14284. ;;
  14285. darwin* | rhapsody*)
  14286. dynamic_linker="$host_os dyld"
  14287. version_type=darwin
  14288. need_lib_prefix=no
  14289. need_version=no
  14290. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14291. soname_spec='$libname$release$major$shared_ext'
  14292. shlibpath_overrides_runpath=yes
  14293. shlibpath_var=DYLD_LIBRARY_PATH
  14294. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14295. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14296. ;;
  14297. dgux*)
  14298. version_type=linux # correct to gnu/linux during the next big refactor
  14299. need_lib_prefix=no
  14300. need_version=no
  14301. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14302. soname_spec='$libname$release$shared_ext$major'
  14303. shlibpath_var=LD_LIBRARY_PATH
  14304. ;;
  14305. freebsd* | dragonfly*)
  14306. # DragonFly does not have aout. When/if they implement a new
  14307. # versioning mechanism, adjust this.
  14308. if test -x /usr/bin/objformat; then
  14309. objformat=`/usr/bin/objformat`
  14310. else
  14311. case $host_os in
  14312. freebsd[23].*) objformat=aout ;;
  14313. *) objformat=elf ;;
  14314. esac
  14315. fi
  14316. version_type=freebsd-$objformat
  14317. case $version_type in
  14318. freebsd-elf*)
  14319. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14320. soname_spec='$libname$release$shared_ext$major'
  14321. need_version=no
  14322. need_lib_prefix=no
  14323. ;;
  14324. freebsd-*)
  14325. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14326. need_version=yes
  14327. ;;
  14328. esac
  14329. shlibpath_var=LD_LIBRARY_PATH
  14330. case $host_os in
  14331. freebsd2.*)
  14332. shlibpath_overrides_runpath=yes
  14333. ;;
  14334. freebsd3.[01]* | freebsdelf3.[01]*)
  14335. shlibpath_overrides_runpath=yes
  14336. hardcode_into_libs=yes
  14337. ;;
  14338. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14339. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14340. shlibpath_overrides_runpath=no
  14341. hardcode_into_libs=yes
  14342. ;;
  14343. *) # from 4.6 on, and DragonFly
  14344. shlibpath_overrides_runpath=yes
  14345. hardcode_into_libs=yes
  14346. ;;
  14347. esac
  14348. ;;
  14349. haiku*)
  14350. version_type=linux # correct to gnu/linux during the next big refactor
  14351. need_lib_prefix=no
  14352. need_version=no
  14353. dynamic_linker="$host_os runtime_loader"
  14354. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14355. soname_spec='$libname$release$shared_ext$major'
  14356. shlibpath_var=LIBRARY_PATH
  14357. shlibpath_overrides_runpath=no
  14358. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14359. hardcode_into_libs=yes
  14360. ;;
  14361. hpux9* | hpux10* | hpux11*)
  14362. # Give a soname corresponding to the major version so that dld.sl refuses to
  14363. # link against other versions.
  14364. version_type=sunos
  14365. need_lib_prefix=no
  14366. need_version=no
  14367. case $host_cpu in
  14368. ia64*)
  14369. shrext_cmds='.so'
  14370. hardcode_into_libs=yes
  14371. dynamic_linker="$host_os dld.so"
  14372. shlibpath_var=LD_LIBRARY_PATH
  14373. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14374. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14375. soname_spec='$libname$release$shared_ext$major'
  14376. if test 32 = "$HPUX_IA64_MODE"; then
  14377. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14378. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14379. else
  14380. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14381. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14382. fi
  14383. ;;
  14384. hppa*64*)
  14385. shrext_cmds='.sl'
  14386. hardcode_into_libs=yes
  14387. dynamic_linker="$host_os dld.sl"
  14388. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14389. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14390. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14391. soname_spec='$libname$release$shared_ext$major'
  14392. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14393. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14394. ;;
  14395. *)
  14396. shrext_cmds='.sl'
  14397. dynamic_linker="$host_os dld.sl"
  14398. shlibpath_var=SHLIB_PATH
  14399. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14400. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14401. soname_spec='$libname$release$shared_ext$major'
  14402. ;;
  14403. esac
  14404. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14405. postinstall_cmds='chmod 555 $lib'
  14406. # or fails outright, so override atomically:
  14407. install_override_mode=555
  14408. ;;
  14409. interix[3-9]*)
  14410. version_type=linux # correct to gnu/linux during the next big refactor
  14411. need_lib_prefix=no
  14412. need_version=no
  14413. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14414. soname_spec='$libname$release$shared_ext$major'
  14415. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14416. shlibpath_var=LD_LIBRARY_PATH
  14417. shlibpath_overrides_runpath=no
  14418. hardcode_into_libs=yes
  14419. ;;
  14420. irix5* | irix6* | nonstopux*)
  14421. case $host_os in
  14422. nonstopux*) version_type=nonstopux ;;
  14423. *)
  14424. if test yes = "$lt_cv_prog_gnu_ld"; then
  14425. version_type=linux # correct to gnu/linux during the next big refactor
  14426. else
  14427. version_type=irix
  14428. fi ;;
  14429. esac
  14430. need_lib_prefix=no
  14431. need_version=no
  14432. soname_spec='$libname$release$shared_ext$major'
  14433. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14434. case $host_os in
  14435. irix5* | nonstopux*)
  14436. libsuff= shlibsuff=
  14437. ;;
  14438. *)
  14439. case $LD in # libtool.m4 will add one of these switches to LD
  14440. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14441. libsuff= shlibsuff= libmagic=32-bit;;
  14442. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14443. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14444. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14445. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14446. *) libsuff= shlibsuff= libmagic=never-match;;
  14447. esac
  14448. ;;
  14449. esac
  14450. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14451. shlibpath_overrides_runpath=no
  14452. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14453. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14454. hardcode_into_libs=yes
  14455. ;;
  14456. # No shared lib support for Linux oldld, aout, or coff.
  14457. linux*oldld* | linux*aout* | linux*coff*)
  14458. dynamic_linker=no
  14459. ;;
  14460. linux*android*)
  14461. version_type=none # Android doesn't support versioned libraries.
  14462. need_lib_prefix=no
  14463. need_version=no
  14464. library_names_spec='$libname$release$shared_ext'
  14465. soname_spec='$libname$release$shared_ext'
  14466. finish_cmds=
  14467. shlibpath_var=LD_LIBRARY_PATH
  14468. shlibpath_overrides_runpath=yes
  14469. # This implies no fast_install, which is unacceptable.
  14470. # Some rework will be needed to allow for fast_install
  14471. # before this can be enabled.
  14472. hardcode_into_libs=yes
  14473. dynamic_linker='Android linker'
  14474. # Don't embed -rpath directories since the linker doesn't support them.
  14475. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14476. ;;
  14477. # This must be glibc/ELF.
  14478. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14479. version_type=linux # correct to gnu/linux during the next big refactor
  14480. need_lib_prefix=no
  14481. need_version=no
  14482. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14483. soname_spec='$libname$release$shared_ext$major'
  14484. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14485. shlibpath_var=LD_LIBRARY_PATH
  14486. shlibpath_overrides_runpath=no
  14487. # Some binutils ld are patched to set DT_RUNPATH
  14488. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14489. $as_echo_n "(cached) " >&6
  14490. else
  14491. lt_cv_shlibpath_overrides_runpath=no
  14492. save_LDFLAGS=$LDFLAGS
  14493. save_libdir=$libdir
  14494. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14495. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14497. /* end confdefs.h. */
  14498. int
  14499. main ()
  14500. {
  14501. ;
  14502. return 0;
  14503. }
  14504. _ACEOF
  14505. if ac_fn_cxx_try_link "$LINENO"; then :
  14506. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14507. lt_cv_shlibpath_overrides_runpath=yes
  14508. fi
  14509. fi
  14510. rm -f core conftest.err conftest.$ac_objext \
  14511. conftest$ac_exeext conftest.$ac_ext
  14512. LDFLAGS=$save_LDFLAGS
  14513. libdir=$save_libdir
  14514. fi
  14515. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14516. # This implies no fast_install, which is unacceptable.
  14517. # Some rework will be needed to allow for fast_install
  14518. # before this can be enabled.
  14519. hardcode_into_libs=yes
  14520. # Ideally, we could use ldconfig to report *all* directores which are
  14521. # searched for libraries, however this is still not possible. Aside from not
  14522. # being certain /sbin/ldconfig is available, command
  14523. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14524. # even though it is searched at run-time. Try to do the best guess by
  14525. # appending ld.so.conf contents (and includes) to the search path.
  14526. if test -f /etc/ld.so.conf; then
  14527. 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' ' '`
  14528. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14529. fi
  14530. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14531. # powerpc, because MkLinux only supported shared libraries with the
  14532. # GNU dynamic linker. Since this was broken with cross compilers,
  14533. # most powerpc-linux boxes support dynamic linking these days and
  14534. # people can always --disable-shared, the test was removed, and we
  14535. # assume the GNU/Linux dynamic linker is in use.
  14536. dynamic_linker='GNU/Linux ld.so'
  14537. ;;
  14538. netbsdelf*-gnu)
  14539. version_type=linux
  14540. need_lib_prefix=no
  14541. need_version=no
  14542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14543. soname_spec='${libname}${release}${shared_ext}$major'
  14544. shlibpath_var=LD_LIBRARY_PATH
  14545. shlibpath_overrides_runpath=no
  14546. hardcode_into_libs=yes
  14547. dynamic_linker='NetBSD ld.elf_so'
  14548. ;;
  14549. netbsd*)
  14550. version_type=sunos
  14551. need_lib_prefix=no
  14552. need_version=no
  14553. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14554. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14555. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14556. dynamic_linker='NetBSD (a.out) ld.so'
  14557. else
  14558. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14559. soname_spec='$libname$release$shared_ext$major'
  14560. dynamic_linker='NetBSD ld.elf_so'
  14561. fi
  14562. shlibpath_var=LD_LIBRARY_PATH
  14563. shlibpath_overrides_runpath=yes
  14564. hardcode_into_libs=yes
  14565. ;;
  14566. newsos6)
  14567. version_type=linux # correct to gnu/linux during the next big refactor
  14568. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14569. shlibpath_var=LD_LIBRARY_PATH
  14570. shlibpath_overrides_runpath=yes
  14571. ;;
  14572. *nto* | *qnx*)
  14573. version_type=qnx
  14574. need_lib_prefix=no
  14575. need_version=no
  14576. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14577. soname_spec='$libname$release$shared_ext$major'
  14578. shlibpath_var=LD_LIBRARY_PATH
  14579. shlibpath_overrides_runpath=no
  14580. hardcode_into_libs=yes
  14581. dynamic_linker='ldqnx.so'
  14582. ;;
  14583. openbsd* | bitrig*)
  14584. version_type=sunos
  14585. sys_lib_dlsearch_path_spec=/usr/lib
  14586. need_lib_prefix=no
  14587. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14588. need_version=no
  14589. else
  14590. need_version=yes
  14591. fi
  14592. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14593. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14594. shlibpath_var=LD_LIBRARY_PATH
  14595. shlibpath_overrides_runpath=yes
  14596. ;;
  14597. os2*)
  14598. libname_spec='$name'
  14599. version_type=windows
  14600. shrext_cmds=.dll
  14601. need_version=no
  14602. need_lib_prefix=no
  14603. # OS/2 can only load a DLL with a base name of 8 characters or less.
  14604. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  14605. v=$($ECHO $release$versuffix | tr -d .-);
  14606. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14607. $ECHO $n$v`$shared_ext'
  14608. library_names_spec='${libname}_dll.$libext'
  14609. dynamic_linker='OS/2 ld.exe'
  14610. shlibpath_var=BEGINLIBPATH
  14611. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14612. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14613. postinstall_cmds='base_file=`basename \$file`~
  14614. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14615. dldir=$destdir/`dirname \$dlpath`~
  14616. test -d \$dldir || mkdir -p \$dldir~
  14617. $install_prog $dir/$dlname \$dldir/$dlname~
  14618. chmod a+x \$dldir/$dlname~
  14619. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14620. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14621. fi'
  14622. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14623. dlpath=$dir/\$dldll~
  14624. $RM \$dlpath'
  14625. ;;
  14626. osf3* | osf4* | osf5*)
  14627. version_type=osf
  14628. need_lib_prefix=no
  14629. need_version=no
  14630. soname_spec='$libname$release$shared_ext$major'
  14631. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14632. shlibpath_var=LD_LIBRARY_PATH
  14633. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14634. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14635. ;;
  14636. rdos*)
  14637. dynamic_linker=no
  14638. ;;
  14639. solaris*)
  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. shlibpath_var=LD_LIBRARY_PATH
  14646. shlibpath_overrides_runpath=yes
  14647. hardcode_into_libs=yes
  14648. # ldd complains unless libraries are executable
  14649. postinstall_cmds='chmod +x $lib'
  14650. ;;
  14651. sunos4*)
  14652. version_type=sunos
  14653. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14654. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14655. shlibpath_var=LD_LIBRARY_PATH
  14656. shlibpath_overrides_runpath=yes
  14657. if test yes = "$with_gnu_ld"; then
  14658. need_lib_prefix=no
  14659. fi
  14660. need_version=yes
  14661. ;;
  14662. sysv4 | sysv4.3*)
  14663. version_type=linux # correct to gnu/linux during the next big refactor
  14664. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14665. soname_spec='$libname$release$shared_ext$major'
  14666. shlibpath_var=LD_LIBRARY_PATH
  14667. case $host_vendor in
  14668. sni)
  14669. shlibpath_overrides_runpath=no
  14670. need_lib_prefix=no
  14671. runpath_var=LD_RUN_PATH
  14672. ;;
  14673. siemens)
  14674. need_lib_prefix=no
  14675. ;;
  14676. motorola)
  14677. need_lib_prefix=no
  14678. need_version=no
  14679. shlibpath_overrides_runpath=no
  14680. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14681. ;;
  14682. esac
  14683. ;;
  14684. sysv4*MP*)
  14685. if test -d /usr/nec; then
  14686. version_type=linux # correct to gnu/linux during the next big refactor
  14687. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14688. soname_spec='$libname$shared_ext.$major'
  14689. shlibpath_var=LD_LIBRARY_PATH
  14690. fi
  14691. ;;
  14692. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14693. version_type=sco
  14694. need_lib_prefix=no
  14695. need_version=no
  14696. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14697. soname_spec='$libname$release$shared_ext$major'
  14698. shlibpath_var=LD_LIBRARY_PATH
  14699. shlibpath_overrides_runpath=yes
  14700. hardcode_into_libs=yes
  14701. if test yes = "$with_gnu_ld"; then
  14702. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14703. else
  14704. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14705. case $host_os in
  14706. sco3.2v5*)
  14707. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14708. ;;
  14709. esac
  14710. fi
  14711. sys_lib_dlsearch_path_spec='/usr/lib'
  14712. ;;
  14713. tpf*)
  14714. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14715. version_type=linux # correct to gnu/linux during the next big refactor
  14716. need_lib_prefix=no
  14717. need_version=no
  14718. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14719. shlibpath_var=LD_LIBRARY_PATH
  14720. shlibpath_overrides_runpath=no
  14721. hardcode_into_libs=yes
  14722. ;;
  14723. uts4*)
  14724. version_type=linux # correct to gnu/linux during the next big refactor
  14725. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14726. soname_spec='$libname$release$shared_ext$major'
  14727. shlibpath_var=LD_LIBRARY_PATH
  14728. ;;
  14729. *)
  14730. dynamic_linker=no
  14731. ;;
  14732. esac
  14733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14734. $as_echo "$dynamic_linker" >&6; }
  14735. test no = "$dynamic_linker" && can_build_shared=no
  14736. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14737. if test yes = "$GCC"; then
  14738. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14739. fi
  14740. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14741. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14742. fi
  14743. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14744. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14745. fi
  14746. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14747. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14748. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14749. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14750. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14751. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14753. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14754. hardcode_action_CXX=
  14755. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14756. test -n "$runpath_var_CXX" ||
  14757. test yes = "$hardcode_automatic_CXX"; then
  14758. # We can hardcode non-existent directories.
  14759. if test no != "$hardcode_direct_CXX" &&
  14760. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14761. # have to relink, otherwise we might link with an installed library
  14762. # when we should be linking with a yet-to-be-installed one
  14763. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14764. test no != "$hardcode_minus_L_CXX"; then
  14765. # Linking always hardcodes the temporary library directory.
  14766. hardcode_action_CXX=relink
  14767. else
  14768. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14769. hardcode_action_CXX=immediate
  14770. fi
  14771. else
  14772. # We cannot hardcode anything, or else we can only hardcode existing
  14773. # directories.
  14774. hardcode_action_CXX=unsupported
  14775. fi
  14776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14777. $as_echo "$hardcode_action_CXX" >&6; }
  14778. if test relink = "$hardcode_action_CXX" ||
  14779. test yes = "$inherit_rpath_CXX"; then
  14780. # Fast installation is not supported
  14781. enable_fast_install=no
  14782. elif test yes = "$shlibpath_overrides_runpath" ||
  14783. test no = "$enable_shared"; then
  14784. # Fast installation is not necessary
  14785. enable_fast_install=needless
  14786. fi
  14787. fi # test -n "$compiler"
  14788. CC=$lt_save_CC
  14789. CFLAGS=$lt_save_CFLAGS
  14790. LDCXX=$LD
  14791. LD=$lt_save_LD
  14792. GCC=$lt_save_GCC
  14793. with_gnu_ld=$lt_save_with_gnu_ld
  14794. lt_cv_path_LDCXX=$lt_cv_path_LD
  14795. lt_cv_path_LD=$lt_save_path_LD
  14796. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14797. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14798. fi # test yes != "$_lt_caught_CXX_error"
  14799. ac_ext=c
  14800. ac_cpp='$CPP $CPPFLAGS'
  14801. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14802. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14803. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14804. ac_config_commands="$ac_config_commands libtool"
  14805. # Only expand once:
  14806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14807. $as_echo_n "checking for inline... " >&6; }
  14808. if ${ac_cv_c_inline+:} false; then :
  14809. $as_echo_n "(cached) " >&6
  14810. else
  14811. ac_cv_c_inline=no
  14812. for ac_kw in inline __inline__ __inline; do
  14813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14814. /* end confdefs.h. */
  14815. #ifndef __cplusplus
  14816. typedef int foo_t;
  14817. static $ac_kw foo_t static_foo () {return 0; }
  14818. $ac_kw foo_t foo () {return 0; }
  14819. #endif
  14820. _ACEOF
  14821. if ac_fn_c_try_compile "$LINENO"; then :
  14822. ac_cv_c_inline=$ac_kw
  14823. fi
  14824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14825. test "$ac_cv_c_inline" != no && break
  14826. done
  14827. fi
  14828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14829. $as_echo "$ac_cv_c_inline" >&6; }
  14830. case $ac_cv_c_inline in
  14831. inline | yes) ;;
  14832. *)
  14833. case $ac_cv_c_inline in
  14834. no) ac_val=;;
  14835. *) ac_val=$ac_cv_c_inline;;
  14836. esac
  14837. cat >>confdefs.h <<_ACEOF
  14838. #ifndef __cplusplus
  14839. #define inline $ac_val
  14840. #endif
  14841. _ACEOF
  14842. ;;
  14843. esac
  14844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
  14845. $as_echo_n "checking for __attribute__... " >&6; }
  14846. if ${ac_cv___attribute__+:} false; then :
  14847. $as_echo_n "(cached) " >&6
  14848. else
  14849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14850. /* end confdefs.h. */
  14851. #include <stdlib.h>
  14852. static void foo(void) __attribute__ ((unused));
  14853. void foo(void) { exit(1); }
  14854. int
  14855. main ()
  14856. {
  14857. ;
  14858. return 0;
  14859. }
  14860. _ACEOF
  14861. if ac_fn_c_try_compile "$LINENO"; then :
  14862. ac_cv___attribute__=yes
  14863. else
  14864. ac_cv___attribute__=no
  14865. fi
  14866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14867. fi
  14868. if test "$ac_cv___attribute__" = "yes"; then
  14869. $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
  14870. fi
  14871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
  14872. $as_echo "$ac_cv___attribute__" >&6; }
  14873. # Check whether some low-level functions/files are available
  14874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14875. $as_echo_n "checking for ANSI C header files... " >&6; }
  14876. if ${ac_cv_header_stdc+:} false; then :
  14877. $as_echo_n "(cached) " >&6
  14878. else
  14879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14880. /* end confdefs.h. */
  14881. #include <stdlib.h>
  14882. #include <stdarg.h>
  14883. #include <string.h>
  14884. #include <float.h>
  14885. int
  14886. main ()
  14887. {
  14888. ;
  14889. return 0;
  14890. }
  14891. _ACEOF
  14892. if ac_fn_c_try_compile "$LINENO"; then :
  14893. ac_cv_header_stdc=yes
  14894. else
  14895. ac_cv_header_stdc=no
  14896. fi
  14897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14898. if test $ac_cv_header_stdc = yes; then
  14899. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14901. /* end confdefs.h. */
  14902. #include <string.h>
  14903. _ACEOF
  14904. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14905. $EGREP "memchr" >/dev/null 2>&1; then :
  14906. else
  14907. ac_cv_header_stdc=no
  14908. fi
  14909. rm -f conftest*
  14910. fi
  14911. if test $ac_cv_header_stdc = yes; then
  14912. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14914. /* end confdefs.h. */
  14915. #include <stdlib.h>
  14916. _ACEOF
  14917. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14918. $EGREP "free" >/dev/null 2>&1; then :
  14919. else
  14920. ac_cv_header_stdc=no
  14921. fi
  14922. rm -f conftest*
  14923. fi
  14924. if test $ac_cv_header_stdc = yes; then
  14925. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14926. if test "$cross_compiling" = yes; then :
  14927. :
  14928. else
  14929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14930. /* end confdefs.h. */
  14931. #include <ctype.h>
  14932. #include <stdlib.h>
  14933. #if ((' ' & 0x0FF) == 0x020)
  14934. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14935. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14936. #else
  14937. # define ISLOWER(c) \
  14938. (('a' <= (c) && (c) <= 'i') \
  14939. || ('j' <= (c) && (c) <= 'r') \
  14940. || ('s' <= (c) && (c) <= 'z'))
  14941. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14942. #endif
  14943. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14944. int
  14945. main ()
  14946. {
  14947. int i;
  14948. for (i = 0; i < 256; i++)
  14949. if (XOR (islower (i), ISLOWER (i))
  14950. || toupper (i) != TOUPPER (i))
  14951. return 2;
  14952. return 0;
  14953. }
  14954. _ACEOF
  14955. if ac_fn_c_try_run "$LINENO"; then :
  14956. else
  14957. ac_cv_header_stdc=no
  14958. fi
  14959. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14960. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14961. fi
  14962. fi
  14963. fi
  14964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14965. $as_echo "$ac_cv_header_stdc" >&6; }
  14966. if test $ac_cv_header_stdc = yes; then
  14967. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14968. fi
  14969. # TODO(csilvers): we could remove a lot when WITH_CPU_PROFILER etc is "no".
  14970. ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
  14971. if test "x$ac_cv_type___int64" = xyes; then :
  14972. cat >>confdefs.h <<_ACEOF
  14973. #define HAVE___INT64 1
  14974. _ACEOF
  14975. fi
  14976. # defined in some windows platforms
  14977. ac_fn_c_check_type "$LINENO" "struct mallinfo" "ac_cv_type_struct_mallinfo" "#include <malloc.h>
  14978. "
  14979. if test "x$ac_cv_type_struct_mallinfo" = xyes; then :
  14980. cat >>confdefs.h <<_ACEOF
  14981. #define HAVE_STRUCT_MALLINFO 1
  14982. _ACEOF
  14983. fi
  14984. ac_fn_c_check_type "$LINENO" "Elf32_Versym" "ac_cv_type_Elf32_Versym" "#include <elf.h>
  14985. "
  14986. if test "x$ac_cv_type_Elf32_Versym" = xyes; then :
  14987. cat >>confdefs.h <<_ACEOF
  14988. #define HAVE_ELF32_VERSYM 1
  14989. _ACEOF
  14990. fi
  14991. # for vdso_support.h
  14992. for ac_func in sbrk
  14993. do :
  14994. ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
  14995. if test "x$ac_cv_func_sbrk" = xyes; then :
  14996. cat >>confdefs.h <<_ACEOF
  14997. #define HAVE_SBRK 1
  14998. _ACEOF
  14999. fi
  15000. done
  15001. # for tcmalloc to get memory
  15002. for ac_func in geteuid
  15003. do :
  15004. ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
  15005. if test "x$ac_cv_func_geteuid" = xyes; then :
  15006. cat >>confdefs.h <<_ACEOF
  15007. #define HAVE_GETEUID 1
  15008. _ACEOF
  15009. fi
  15010. done
  15011. # for turning off services when run as root
  15012. for ac_func in fork
  15013. do :
  15014. ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
  15015. if test "x$ac_cv_func_fork" = xyes; then :
  15016. cat >>confdefs.h <<_ACEOF
  15017. #define HAVE_FORK 1
  15018. _ACEOF
  15019. fi
  15020. done
  15021. # for the pthread_atfork setup
  15022. for ac_header in features.h
  15023. do :
  15024. ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
  15025. if test "x$ac_cv_header_features_h" = xyes; then :
  15026. cat >>confdefs.h <<_ACEOF
  15027. #define HAVE_FEATURES_H 1
  15028. _ACEOF
  15029. fi
  15030. done
  15031. # for vdso_support.h
  15032. for ac_header in malloc.h
  15033. do :
  15034. ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  15035. if test "x$ac_cv_header_malloc_h" = xyes; then :
  15036. cat >>confdefs.h <<_ACEOF
  15037. #define HAVE_MALLOC_H 1
  15038. _ACEOF
  15039. fi
  15040. done
  15041. # some systems define stuff there, others not
  15042. for ac_header in glob.h
  15043. do :
  15044. ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
  15045. if test "x$ac_cv_header_glob_h" = xyes; then :
  15046. cat >>confdefs.h <<_ACEOF
  15047. #define HAVE_GLOB_H 1
  15048. _ACEOF
  15049. fi
  15050. done
  15051. # for heap-profile-table (cleaning up profiles)
  15052. for ac_header in execinfo.h
  15053. do :
  15054. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  15055. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  15056. cat >>confdefs.h <<_ACEOF
  15057. #define HAVE_EXECINFO_H 1
  15058. _ACEOF
  15059. fi
  15060. done
  15061. # for stacktrace? and heapchecker_unittest
  15062. for ac_header in unwind.h
  15063. do :
  15064. ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
  15065. if test "x$ac_cv_header_unwind_h" = xyes; then :
  15066. cat >>confdefs.h <<_ACEOF
  15067. #define HAVE_UNWIND_H 1
  15068. _ACEOF
  15069. fi
  15070. done
  15071. # for stacktrace
  15072. for ac_header in sched.h
  15073. do :
  15074. ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
  15075. if test "x$ac_cv_header_sched_h" = xyes; then :
  15076. cat >>confdefs.h <<_ACEOF
  15077. #define HAVE_SCHED_H 1
  15078. _ACEOF
  15079. fi
  15080. done
  15081. # for being nice in our spinlock code
  15082. for ac_header in conflict-signal.h
  15083. do :
  15084. ac_fn_c_check_header_mongrel "$LINENO" "conflict-signal.h" "ac_cv_header_conflict_signal_h" "$ac_includes_default"
  15085. if test "x$ac_cv_header_conflict_signal_h" = xyes; then :
  15086. cat >>confdefs.h <<_ACEOF
  15087. #define HAVE_CONFLICT_SIGNAL_H 1
  15088. _ACEOF
  15089. fi
  15090. done
  15091. # defined on some windows platforms?
  15092. for ac_header in sys/prctl.h
  15093. do :
  15094. ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
  15095. if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
  15096. cat >>confdefs.h <<_ACEOF
  15097. #define HAVE_SYS_PRCTL_H 1
  15098. _ACEOF
  15099. fi
  15100. done
  15101. # for thread_lister (needed by leak-checker)
  15102. for ac_header in linux/ptrace.h
  15103. do :
  15104. ac_fn_c_check_header_mongrel "$LINENO" "linux/ptrace.h" "ac_cv_header_linux_ptrace_h" "$ac_includes_default"
  15105. if test "x$ac_cv_header_linux_ptrace_h" = xyes; then :
  15106. cat >>confdefs.h <<_ACEOF
  15107. #define HAVE_LINUX_PTRACE_H 1
  15108. _ACEOF
  15109. fi
  15110. done
  15111. # also needed by leak-checker
  15112. for ac_header in sys/syscall.h
  15113. do :
  15114. ac_fn_c_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
  15115. if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
  15116. cat >>confdefs.h <<_ACEOF
  15117. #define HAVE_SYS_SYSCALL_H 1
  15118. _ACEOF
  15119. fi
  15120. done
  15121. for ac_header in sys/socket.h
  15122. do :
  15123. ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  15124. if test "x$ac_cv_header_sys_socket_h" = xyes; then :
  15125. cat >>confdefs.h <<_ACEOF
  15126. #define HAVE_SYS_SOCKET_H 1
  15127. _ACEOF
  15128. fi
  15129. done
  15130. # optional; for forking out to symbolizer
  15131. for ac_header in sys/wait.h
  15132. do :
  15133. ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
  15134. if test "x$ac_cv_header_sys_wait_h" = xyes; then :
  15135. cat >>confdefs.h <<_ACEOF
  15136. #define HAVE_SYS_WAIT_H 1
  15137. _ACEOF
  15138. fi
  15139. done
  15140. # optional; for forking out to symbolizer
  15141. for ac_header in poll.h
  15142. do :
  15143. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  15144. if test "x$ac_cv_header_poll_h" = xyes; then :
  15145. cat >>confdefs.h <<_ACEOF
  15146. #define HAVE_POLL_H 1
  15147. _ACEOF
  15148. fi
  15149. done
  15150. # optional; for forking out to symbolizer
  15151. for ac_header in fcntl.h
  15152. do :
  15153. ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  15154. if test "x$ac_cv_header_fcntl_h" = xyes; then :
  15155. cat >>confdefs.h <<_ACEOF
  15156. #define HAVE_FCNTL_H 1
  15157. _ACEOF
  15158. fi
  15159. done
  15160. # for tcmalloc_unittest
  15161. for ac_header in grp.h
  15162. do :
  15163. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  15164. if test "x$ac_cv_header_grp_h" = xyes; then :
  15165. cat >>confdefs.h <<_ACEOF
  15166. #define HAVE_GRP_H 1
  15167. _ACEOF
  15168. fi
  15169. done
  15170. # for heapchecker_unittest
  15171. for ac_header in pwd.h
  15172. do :
  15173. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  15174. if test "x$ac_cv_header_pwd_h" = xyes; then :
  15175. cat >>confdefs.h <<_ACEOF
  15176. #define HAVE_PWD_H 1
  15177. _ACEOF
  15178. fi
  15179. done
  15180. # for heapchecker_unittest
  15181. for ac_header in sys/resource.h
  15182. do :
  15183. ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
  15184. if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  15185. cat >>confdefs.h <<_ACEOF
  15186. #define HAVE_SYS_RESOURCE_H 1
  15187. _ACEOF
  15188. fi
  15189. done
  15190. # for memalign_unittest.cc
  15191. for ac_header in valgrind.h
  15192. do :
  15193. ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
  15194. if test "x$ac_cv_header_valgrind_h" = xyes; then :
  15195. cat >>confdefs.h <<_ACEOF
  15196. #define HAVE_VALGRIND_H 1
  15197. _ACEOF
  15198. fi
  15199. done
  15200. # we have a local copy if this isn't found
  15201. for ac_header in sys/cdefs.h
  15202. do :
  15203. ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
  15204. if test "x$ac_cv_header_sys_cdefs_h" = xyes; then :
  15205. cat >>confdefs.h <<_ACEOF
  15206. #define HAVE_SYS_CDEFS_H 1
  15207. _ACEOF
  15208. fi
  15209. done
  15210. # Where glibc defines __THROW
  15211. for ac_header in features.h
  15212. do :
  15213. ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
  15214. if test "x$ac_cv_header_features_h" = xyes; then :
  15215. cat >>confdefs.h <<_ACEOF
  15216. #define HAVE_FEATURES_H 1
  15217. _ACEOF
  15218. fi
  15219. done
  15220. # Where __GLIBC__ is defined
  15221. # We also need <ucontext.h>/<sys/ucontext.h>, but we get those from
  15222. # AC_PC_FROM_UCONTEXT, below.
  15223. # We override a lot of memory allocation routines, not all of which are
  15224. # standard. For those the system doesn't declare, we'll declare ourselves.
  15225. ac_fn_c_check_decl "$LINENO" "cfree" "ac_cv_have_decl_cfree" "#define _XOPEN_SOURCE 600
  15226. #include <stdlib.h>
  15227. #include <malloc.h>
  15228. "
  15229. if test "x$ac_cv_have_decl_cfree" = xyes; then :
  15230. ac_have_decl=1
  15231. else
  15232. ac_have_decl=0
  15233. fi
  15234. cat >>confdefs.h <<_ACEOF
  15235. #define HAVE_DECL_CFREE $ac_have_decl
  15236. _ACEOF
  15237. ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "#define _XOPEN_SOURCE 600
  15238. #include <stdlib.h>
  15239. #include <malloc.h>
  15240. "
  15241. if test "x$ac_cv_have_decl_posix_memalign" = xyes; then :
  15242. ac_have_decl=1
  15243. else
  15244. ac_have_decl=0
  15245. fi
  15246. cat >>confdefs.h <<_ACEOF
  15247. #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl
  15248. _ACEOF
  15249. ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "#define _XOPEN_SOURCE 600
  15250. #include <stdlib.h>
  15251. #include <malloc.h>
  15252. "
  15253. if test "x$ac_cv_have_decl_memalign" = xyes; then :
  15254. ac_have_decl=1
  15255. else
  15256. ac_have_decl=0
  15257. fi
  15258. cat >>confdefs.h <<_ACEOF
  15259. #define HAVE_DECL_MEMALIGN $ac_have_decl
  15260. _ACEOF
  15261. ac_fn_c_check_decl "$LINENO" "valloc" "ac_cv_have_decl_valloc" "#define _XOPEN_SOURCE 600
  15262. #include <stdlib.h>
  15263. #include <malloc.h>
  15264. "
  15265. if test "x$ac_cv_have_decl_valloc" = xyes; then :
  15266. ac_have_decl=1
  15267. else
  15268. ac_have_decl=0
  15269. fi
  15270. cat >>confdefs.h <<_ACEOF
  15271. #define HAVE_DECL_VALLOC $ac_have_decl
  15272. _ACEOF
  15273. ac_fn_c_check_decl "$LINENO" "pvalloc" "ac_cv_have_decl_pvalloc" "#define _XOPEN_SOURCE 600
  15274. #include <stdlib.h>
  15275. #include <malloc.h>
  15276. "
  15277. if test "x$ac_cv_have_decl_pvalloc" = xyes; then :
  15278. ac_have_decl=1
  15279. else
  15280. ac_have_decl=0
  15281. fi
  15282. cat >>confdefs.h <<_ACEOF
  15283. #define HAVE_DECL_PVALLOC $ac_have_decl
  15284. _ACEOF
  15285. if test "$ac_cv_type_struct_mallinfo" = yes; then
  15286. ac_cv_have_struct_mallinfo=1
  15287. # gperftools/tcmalloc.h needs this
  15288. else
  15289. ac_cv_have_struct_mallinfo=0
  15290. fi
  15291. # We need to check for mmap. cygwin supports mmap, but the autoconf
  15292. # test doesn't work on cygwin:
  15293. # http://www.cygwin.com/ml/cygwin/2002-04/msg00412.html
  15294. # This workaround comes from
  15295. # http://cygwin.com/ml/cygwin/2004-11/msg00138.html
  15296. case "$host" in
  15297. *-*-mingw*)
  15298. ;;
  15299. *-*-cygwin*)
  15300. ac_cv_func_mmap_fixed_mapped=yes
  15301. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15302. ;;
  15303. *) if test "$cross_compiling" = yes; then
  15304. ac_cv_func_mmap_fixed_mapped=yes
  15305. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15306. else
  15307. for ac_header in $ac_header_list
  15308. do :
  15309. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15310. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  15311. "
  15312. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15313. cat >>confdefs.h <<_ACEOF
  15314. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15315. _ACEOF
  15316. fi
  15317. done
  15318. for ac_func in getpagesize
  15319. do :
  15320. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  15321. if test "x$ac_cv_func_getpagesize" = xyes; then :
  15322. cat >>confdefs.h <<_ACEOF
  15323. #define HAVE_GETPAGESIZE 1
  15324. _ACEOF
  15325. fi
  15326. done
  15327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  15328. $as_echo_n "checking for working mmap... " >&6; }
  15329. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  15330. $as_echo_n "(cached) " >&6
  15331. else
  15332. if test "$cross_compiling" = yes; then :
  15333. ac_cv_func_mmap_fixed_mapped=no
  15334. else
  15335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15336. /* end confdefs.h. */
  15337. $ac_includes_default
  15338. /* malloc might have been renamed as rpl_malloc. */
  15339. #undef malloc
  15340. /* Thanks to Mike Haertel and Jim Avera for this test.
  15341. Here is a matrix of mmap possibilities:
  15342. mmap private not fixed
  15343. mmap private fixed at somewhere currently unmapped
  15344. mmap private fixed at somewhere already mapped
  15345. mmap shared not fixed
  15346. mmap shared fixed at somewhere currently unmapped
  15347. mmap shared fixed at somewhere already mapped
  15348. For private mappings, we should verify that changes cannot be read()
  15349. back from the file, nor mmap's back from the file at a different
  15350. address. (There have been systems where private was not correctly
  15351. implemented like the infamous i386 svr4.0, and systems where the
  15352. VM page cache was not coherent with the file system buffer cache
  15353. like early versions of FreeBSD and possibly contemporary NetBSD.)
  15354. For shared mappings, we should conversely verify that changes get
  15355. propagated back to all the places they're supposed to be.
  15356. Grep wants private fixed already mapped.
  15357. The main things grep needs to know about mmap are:
  15358. * does it exist and is it safe to write into the mmap'd area
  15359. * how to use it (BSD variants) */
  15360. #include <fcntl.h>
  15361. #include <sys/mman.h>
  15362. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  15363. char *malloc ();
  15364. #endif
  15365. /* This mess was copied from the GNU getpagesize.h. */
  15366. #ifndef HAVE_GETPAGESIZE
  15367. # ifdef _SC_PAGESIZE
  15368. # define getpagesize() sysconf(_SC_PAGESIZE)
  15369. # else /* no _SC_PAGESIZE */
  15370. # ifdef HAVE_SYS_PARAM_H
  15371. # include <sys/param.h>
  15372. # ifdef EXEC_PAGESIZE
  15373. # define getpagesize() EXEC_PAGESIZE
  15374. # else /* no EXEC_PAGESIZE */
  15375. # ifdef NBPG
  15376. # define getpagesize() NBPG * CLSIZE
  15377. # ifndef CLSIZE
  15378. # define CLSIZE 1
  15379. # endif /* no CLSIZE */
  15380. # else /* no NBPG */
  15381. # ifdef NBPC
  15382. # define getpagesize() NBPC
  15383. # else /* no NBPC */
  15384. # ifdef PAGESIZE
  15385. # define getpagesize() PAGESIZE
  15386. # endif /* PAGESIZE */
  15387. # endif /* no NBPC */
  15388. # endif /* no NBPG */
  15389. # endif /* no EXEC_PAGESIZE */
  15390. # else /* no HAVE_SYS_PARAM_H */
  15391. # define getpagesize() 8192 /* punt totally */
  15392. # endif /* no HAVE_SYS_PARAM_H */
  15393. # endif /* no _SC_PAGESIZE */
  15394. #endif /* no HAVE_GETPAGESIZE */
  15395. int
  15396. main ()
  15397. {
  15398. char *data, *data2, *data3;
  15399. const char *cdata2;
  15400. int i, pagesize;
  15401. int fd, fd2;
  15402. pagesize = getpagesize ();
  15403. /* First, make a file with some known garbage in it. */
  15404. data = (char *) malloc (pagesize);
  15405. if (!data)
  15406. return 1;
  15407. for (i = 0; i < pagesize; ++i)
  15408. *(data + i) = rand ();
  15409. umask (0);
  15410. fd = creat ("conftest.mmap", 0600);
  15411. if (fd < 0)
  15412. return 2;
  15413. if (write (fd, data, pagesize) != pagesize)
  15414. return 3;
  15415. close (fd);
  15416. /* Next, check that the tail of a page is zero-filled. File must have
  15417. non-zero length, otherwise we risk SIGBUS for entire page. */
  15418. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  15419. if (fd2 < 0)
  15420. return 4;
  15421. cdata2 = "";
  15422. if (write (fd2, cdata2, 1) != 1)
  15423. return 5;
  15424. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  15425. if (data2 == MAP_FAILED)
  15426. return 6;
  15427. for (i = 0; i < pagesize; ++i)
  15428. if (*(data2 + i))
  15429. return 7;
  15430. close (fd2);
  15431. if (munmap (data2, pagesize))
  15432. return 8;
  15433. /* Next, try to mmap the file at a fixed address which already has
  15434. something else allocated at it. If we can, also make sure that
  15435. we see the same garbage. */
  15436. fd = open ("conftest.mmap", O_RDWR);
  15437. if (fd < 0)
  15438. return 9;
  15439. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  15440. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  15441. return 10;
  15442. for (i = 0; i < pagesize; ++i)
  15443. if (*(data + i) != *(data2 + i))
  15444. return 11;
  15445. /* Finally, make sure that changes to the mapped area do not
  15446. percolate back to the file as seen by read(). (This is a bug on
  15447. some variants of i386 svr4.0.) */
  15448. for (i = 0; i < pagesize; ++i)
  15449. *(data2 + i) = *(data2 + i) + 1;
  15450. data3 = (char *) malloc (pagesize);
  15451. if (!data3)
  15452. return 12;
  15453. if (read (fd, data3, pagesize) != pagesize)
  15454. return 13;
  15455. for (i = 0; i < pagesize; ++i)
  15456. if (*(data + i) != *(data3 + i))
  15457. return 14;
  15458. close (fd);
  15459. return 0;
  15460. }
  15461. _ACEOF
  15462. if ac_fn_c_try_run "$LINENO"; then :
  15463. ac_cv_func_mmap_fixed_mapped=yes
  15464. else
  15465. ac_cv_func_mmap_fixed_mapped=no
  15466. fi
  15467. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15468. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15469. fi
  15470. fi
  15471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15472. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  15473. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15474. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15475. fi
  15476. rm -f conftest.mmap conftest.txt
  15477. fi
  15478. ;;
  15479. esac
  15480. # If AtomicWord != Atomic32, we need to define two versions of all the
  15481. # atomicops functions. If they're the same, we want to define only one.
  15482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if int32_t is the same type as intptr_t" >&5
  15483. $as_echo_n "checking if int32_t is the same type as intptr_t... " >&6; }
  15484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15485. /* end confdefs.h. */
  15486. #include <stdint.h>
  15487. int
  15488. main ()
  15489. {
  15490. int32_t v1 = 0; intptr_t v2 = 0; return (&v1 - &v2)
  15491. ;
  15492. return 0;
  15493. }
  15494. _ACEOF
  15495. if ac_fn_c_try_compile "$LINENO"; then :
  15496. $as_echo "#define INT32_EQUALS_INTPTR 1" >>confdefs.h
  15497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15498. $as_echo "yes" >&6; }
  15499. else
  15500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15501. $as_echo "no" >&6; }
  15502. fi
  15503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15504. # We want to access the "PC" (Program Counter) register from a struct
  15505. # ucontext. Every system has its own way of doing that. We try all the
  15506. # possibilities we know about. Note REG_PC should come first (REG_RIP
  15507. # is also defined on solaris, but does the wrong thing). But don't
  15508. # bother if we're not doing cpu-profiling.
  15509. # [*] means that we've not actually tested one of these systems
  15510. if test "$enable_cpu_profiler" = yes; then
  15511. for ac_header in ucontext.h
  15512. do :
  15513. ac_fn_c_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
  15514. if test "x$ac_cv_header_ucontext_h" = xyes; then :
  15515. cat >>confdefs.h <<_ACEOF
  15516. #define HAVE_UCONTEXT_H 1
  15517. _ACEOF
  15518. fi
  15519. done
  15520. # Redhat 7 has <sys/ucontext.h>, but it barfs if we #include it directly
  15521. # (this was fixed in later redhats). <ucontext.h> works fine, so use that.
  15522. if grep "Red Hat Linux release 7" /etc/redhat-release >/dev/null 2>&1; then
  15523. $as_echo "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h
  15524. ac_cv_header_sys_ucontext_h=no
  15525. else
  15526. for ac_header in sys/ucontext.h
  15527. do :
  15528. ac_fn_c_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
  15529. if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
  15530. cat >>confdefs.h <<_ACEOF
  15531. #define HAVE_SYS_UCONTEXT_H 1
  15532. _ACEOF
  15533. fi
  15534. done
  15535. # ucontext on OS X 10.6 (at least)
  15536. fi
  15537. for ac_header in cygwin/signal.h
  15538. do :
  15539. ac_fn_c_check_header_mongrel "$LINENO" "cygwin/signal.h" "ac_cv_header_cygwin_signal_h" "$ac_includes_default"
  15540. if test "x$ac_cv_header_cygwin_signal_h" = xyes; then :
  15541. cat >>confdefs.h <<_ACEOF
  15542. #define HAVE_CYGWIN_SIGNAL_H 1
  15543. _ACEOF
  15544. fi
  15545. done
  15546. # ucontext on cywgin
  15547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
  15548. $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
  15549. pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
  15550. pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
  15551. pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
  15552. pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
  15553. pc_fields="$pc_fields uc_mcontext.pc" # Linux (mips)
  15554. pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
  15555. pc_fields="$pc_fields uc_mcontext.psw.addr" # Linux (s390x)
  15556. pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
  15557. pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5)
  15558. pc_fields="$pc_fields uc_mcontext.gp_regs[PT_NIP]" # Suse SLES 11 (ppc64)
  15559. pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
  15560. pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
  15561. pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
  15562. pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
  15563. pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
  15564. pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
  15565. pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
  15566. pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
  15567. pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
  15568. pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
  15569. pc_field_found=false
  15570. for pc_field in $pc_fields; do
  15571. if ! $pc_field_found; then
  15572. # Prefer sys/ucontext.h to ucontext.h, for OS X's sake.
  15573. if test "x$ac_cv_header_cygwin_signal_h" = xyes; then
  15574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15575. /* end confdefs.h. */
  15576. #define _GNU_SOURCE 1
  15577. #include <cygwin/signal.h>
  15578. int
  15579. main ()
  15580. {
  15581. ucontext_t u; return u.$pc_field == 0;
  15582. ;
  15583. return 0;
  15584. }
  15585. _ACEOF
  15586. if ac_fn_c_try_compile "$LINENO"; then :
  15587. cat >>confdefs.h <<_ACEOF
  15588. #define PC_FROM_UCONTEXT $pc_field
  15589. _ACEOF
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15591. $as_echo "$pc_field" >&6; }
  15592. pc_field_found=true
  15593. fi
  15594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15595. elif test "x$ac_cv_header_sys_ucontext_h" = xyes; then
  15596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15597. /* end confdefs.h. */
  15598. #define _GNU_SOURCE 1
  15599. #include <sys/ucontext.h>
  15600. int
  15601. main ()
  15602. {
  15603. ucontext_t u; return u.$pc_field == 0;
  15604. ;
  15605. return 0;
  15606. }
  15607. _ACEOF
  15608. if ac_fn_c_try_compile "$LINENO"; then :
  15609. cat >>confdefs.h <<_ACEOF
  15610. #define PC_FROM_UCONTEXT $pc_field
  15611. _ACEOF
  15612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15613. $as_echo "$pc_field" >&6; }
  15614. pc_field_found=true
  15615. fi
  15616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15617. elif test "x$ac_cv_header_ucontext_h" = xyes; then
  15618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15619. /* end confdefs.h. */
  15620. #define _GNU_SOURCE 1
  15621. #include <ucontext.h>
  15622. int
  15623. main ()
  15624. {
  15625. ucontext_t u; return u.$pc_field == 0;
  15626. ;
  15627. return 0;
  15628. }
  15629. _ACEOF
  15630. if ac_fn_c_try_compile "$LINENO"; then :
  15631. cat >>confdefs.h <<_ACEOF
  15632. #define PC_FROM_UCONTEXT $pc_field
  15633. _ACEOF
  15634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15635. $as_echo "$pc_field" >&6; }
  15636. pc_field_found=true
  15637. fi
  15638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15639. else # hope some standard header gives it to us
  15640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15641. /* end confdefs.h. */
  15642. int
  15643. main ()
  15644. {
  15645. ucontext_t u; return u.$pc_field == 0;
  15646. ;
  15647. return 0;
  15648. }
  15649. _ACEOF
  15650. if ac_fn_c_try_compile "$LINENO"; then :
  15651. cat >>confdefs.h <<_ACEOF
  15652. #define PC_FROM_UCONTEXT $pc_field
  15653. _ACEOF
  15654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15655. $as_echo "$pc_field" >&6; }
  15656. pc_field_found=true
  15657. fi
  15658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15659. fi
  15660. fi
  15661. done
  15662. if ! $pc_field_found; then
  15663. pc_fields=" sc_eip" # OpenBSD (i386)
  15664. pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
  15665. for pc_field in $pc_fields; do
  15666. if ! $pc_field_found; then
  15667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15668. /* end confdefs.h. */
  15669. #include <signal.h>
  15670. int
  15671. main ()
  15672. {
  15673. ucontext_t u; return u.$pc_field == 0;
  15674. ;
  15675. return 0;
  15676. }
  15677. _ACEOF
  15678. if ac_fn_c_try_compile "$LINENO"; then :
  15679. cat >>confdefs.h <<_ACEOF
  15680. #define PC_FROM_UCONTEXT $pc_field
  15681. _ACEOF
  15682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15683. $as_echo "$pc_field" >&6; }
  15684. pc_field_found=true
  15685. fi
  15686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15687. fi
  15688. done
  15689. fi
  15690. if ! $pc_field_found; then
  15691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not try to compile libprofiler..." >&5
  15692. $as_echo "$as_me: WARNING: Could not find the PC. Will not try to compile libprofiler..." >&2;};
  15693. enable_cpu_profiler=no
  15694. fi
  15695. fi
  15696. # Some tests test the behavior of .so files, and only make sense for dynamic.
  15697. if test "$enable_static" = yes; then
  15698. ENABLE_STATIC_TRUE=
  15699. ENABLE_STATIC_FALSE='#'
  15700. else
  15701. ENABLE_STATIC_TRUE='#'
  15702. ENABLE_STATIC_FALSE=
  15703. fi
  15704. # We want to link in libunwind or libexecinfo if it it is enabled and exists.
  15705. if test "$enable_libunwind" = yes; then
  15706. for ac_header in libunwind.h
  15707. do :
  15708. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15709. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15710. cat >>confdefs.h <<_ACEOF
  15711. #define HAVE_LIBUNWIND_H 1
  15712. _ACEOF
  15713. fi
  15714. done
  15715. # for stacktrace
  15716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
  15717. $as_echo_n "checking for backtrace in -lunwind... " >&6; }
  15718. if ${ac_cv_lib_unwind_backtrace+:} false; then :
  15719. $as_echo_n "(cached) " >&6
  15720. else
  15721. ac_check_lib_save_LIBS=$LIBS
  15722. LIBS="-lunwind $LIBS"
  15723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15724. /* end confdefs.h. */
  15725. /* Override any GCC internal prototype to avoid an error.
  15726. Use char because int might match the return type of a GCC
  15727. builtin and then its argument prototype would still apply. */
  15728. #ifdef __cplusplus
  15729. extern "C"
  15730. #endif
  15731. char backtrace ();
  15732. int
  15733. main ()
  15734. {
  15735. return backtrace ();
  15736. ;
  15737. return 0;
  15738. }
  15739. _ACEOF
  15740. if ac_fn_c_try_link "$LINENO"; then :
  15741. ac_cv_lib_unwind_backtrace=yes
  15742. else
  15743. ac_cv_lib_unwind_backtrace=no
  15744. fi
  15745. rm -f core conftest.err conftest.$ac_objext \
  15746. conftest$ac_exeext conftest.$ac_ext
  15747. LIBS=$ac_check_lib_save_LIBS
  15748. fi
  15749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
  15750. $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
  15751. if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
  15752. UNWIND_LIBS=-lunwind
  15753. else
  15754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lexecinfo" >&5
  15755. $as_echo_n "checking for backtrace in -lexecinfo... " >&6; }
  15756. if ${ac_cv_lib_execinfo_backtrace+:} false; then :
  15757. $as_echo_n "(cached) " >&6
  15758. else
  15759. ac_check_lib_save_LIBS=$LIBS
  15760. LIBS="-lexecinfo $LIBS"
  15761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15762. /* end confdefs.h. */
  15763. /* Override any GCC internal prototype to avoid an error.
  15764. Use char because int might match the return type of a GCC
  15765. builtin and then its argument prototype would still apply. */
  15766. #ifdef __cplusplus
  15767. extern "C"
  15768. #endif
  15769. char backtrace ();
  15770. int
  15771. main ()
  15772. {
  15773. return backtrace ();
  15774. ;
  15775. return 0;
  15776. }
  15777. _ACEOF
  15778. if ac_fn_c_try_link "$LINENO"; then :
  15779. ac_cv_lib_execinfo_backtrace=yes
  15780. else
  15781. ac_cv_lib_execinfo_backtrace=no
  15782. fi
  15783. rm -f core conftest.err conftest.$ac_objext \
  15784. conftest$ac_exeext conftest.$ac_ext
  15785. LIBS=$ac_check_lib_save_LIBS
  15786. fi
  15787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5
  15788. $as_echo "$ac_cv_lib_execinfo_backtrace" >&6; }
  15789. if test "x$ac_cv_lib_execinfo_backtrace" = xyes; then :
  15790. UNWIND_LIBS=-lexecinfo
  15791. else
  15792. UNWIND_LIBS=
  15793. fi
  15794. fi
  15795. will_use_libunwind=yes
  15796. else
  15797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lexecinfo" >&5
  15798. $as_echo_n "checking for backtrace in -lexecinfo... " >&6; }
  15799. if ${ac_cv_lib_execinfo_backtrace+:} false; then :
  15800. $as_echo_n "(cached) " >&6
  15801. else
  15802. ac_check_lib_save_LIBS=$LIBS
  15803. LIBS="-lexecinfo $LIBS"
  15804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15805. /* end confdefs.h. */
  15806. /* Override any GCC internal prototype to avoid an error.
  15807. Use char because int might match the return type of a GCC
  15808. builtin and then its argument prototype would still apply. */
  15809. #ifdef __cplusplus
  15810. extern "C"
  15811. #endif
  15812. char backtrace ();
  15813. int
  15814. main ()
  15815. {
  15816. return backtrace ();
  15817. ;
  15818. return 0;
  15819. }
  15820. _ACEOF
  15821. if ac_fn_c_try_link "$LINENO"; then :
  15822. ac_cv_lib_execinfo_backtrace=yes
  15823. else
  15824. ac_cv_lib_execinfo_backtrace=no
  15825. fi
  15826. rm -f core conftest.err conftest.$ac_objext \
  15827. conftest$ac_exeext conftest.$ac_ext
  15828. LIBS=$ac_check_lib_save_LIBS
  15829. fi
  15830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5
  15831. $as_echo "$ac_cv_lib_execinfo_backtrace" >&6; }
  15832. if test "x$ac_cv_lib_execinfo_backtrace" = xyes; then :
  15833. UNWIND_LIBS=-lexecinfo
  15834. else
  15835. UNWIND_LIBS=
  15836. fi
  15837. fi
  15838. # On x86_64, instead of libunwind, we can choose to compile with frame-pointers.
  15839. # Check whether --enable-frame_pointers was given.
  15840. if test "${enable_frame_pointers+set}" = set; then :
  15841. enableval=$enable_frame_pointers;
  15842. else
  15843. enable_frame_pointers=no
  15844. fi
  15845. if test "$enable_frame_pointers" = yes; then
  15846. ENABLE_FRAME_POINTERS_TRUE=
  15847. ENABLE_FRAME_POINTERS_FALSE='#'
  15848. else
  15849. ENABLE_FRAME_POINTERS_TRUE='#'
  15850. ENABLE_FRAME_POINTERS_FALSE=
  15851. fi
  15852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 without frame pointers" >&5
  15853. $as_echo_n "checking for x86 without frame pointers... " >&6; }
  15854. # Some x86_64 systems do not insert frame pointers by default.
  15855. # We want to see if the current system is one of those.
  15856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15857. /* end confdefs.h. */
  15858. int
  15859. main ()
  15860. {
  15861. return __x86_64__ == 1 ? 0 : 1
  15862. ;
  15863. return 0;
  15864. }
  15865. _ACEOF
  15866. if ac_fn_c_try_compile "$LINENO"; then :
  15867. is_x86_64=yes
  15868. else
  15869. is_x86_64=no
  15870. fi
  15871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15872. OLD_CFLAGS="$CFLAGS"
  15873. CFLAGS="$CFLAGS -S -O2 -o fp.s"
  15874. # This test will always fail because we don't name our output file properly.
  15875. # We do our own determination of success/failure in the grep, below.
  15876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15877. /* end confdefs.h. */
  15878. int f(int x) {return x;}
  15879. int
  15880. main ()
  15881. {
  15882. return f(0);
  15883. ;
  15884. return 0;
  15885. }
  15886. _ACEOF
  15887. if ac_fn_c_try_compile "$LINENO"; then :
  15888. :
  15889. else
  15890. :
  15891. fi
  15892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15893. x86_no_fp_by_default=no
  15894. if test "$is_x86_64" = yes && ! grep 'mov.*rsp.*rbp' fp.s >/dev/null 2>&1; then :
  15895. x86_no_fp_by_default=yes
  15896. fi
  15897. if test "$x86_no_fp_by_default" = yes; then
  15898. X86_64_AND_NO_FP_BY_DEFAULT_TRUE=
  15899. X86_64_AND_NO_FP_BY_DEFAULT_FALSE='#'
  15900. else
  15901. X86_64_AND_NO_FP_BY_DEFAULT_TRUE='#'
  15902. X86_64_AND_NO_FP_BY_DEFAULT_FALSE=
  15903. fi
  15904. rm fp.s
  15905. CFLAGS="$OLD_CFLAGS"
  15906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $x86_no_fp_by_default" >&5
  15907. $as_echo "$x86_no_fp_by_default" >&6; }
  15908. # We need to know if we're i386 so we can turn on -mmms, which is not
  15909. # on by default for i386 (it is for x86_64).
  15910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15911. /* end confdefs.h. */
  15912. int
  15913. main ()
  15914. {
  15915. return __i386__ == 1 ? 0 : 1
  15916. ;
  15917. return 0;
  15918. }
  15919. _ACEOF
  15920. if ac_fn_c_try_compile "$LINENO"; then :
  15921. is_i386=yes
  15922. else
  15923. is_i386=no
  15924. fi
  15925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15926. if test "$is_i386" = yes; then
  15927. I386_TRUE=
  15928. I386_FALSE='#'
  15929. else
  15930. I386_TRUE='#'
  15931. I386_FALSE=
  15932. fi
  15933. # See if the compiler supports -Wno-unused-result.
  15934. # Newer ubuntu's turn on -D_FORTIFY_SOURCE=2, enabling
  15935. # __attribute__((warn_unused_result)) for things like write(),
  15936. # which we don't care about.
  15937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -Wno-unused-result" >&5
  15938. $as_echo_n "checking if the compiler supports -Wno-unused-result... " >&6; }
  15939. if ${perftools_cv_w_no_unused_result+:} false; then :
  15940. $as_echo_n "(cached) " >&6
  15941. else
  15942. OLD_CFLAGS="$CFLAGS"
  15943. CFLAGS="$CFLAGS -Wno-error -Wunused-result"
  15944. # gcc doesn't warn about unknown flags unless it's
  15945. # also warning for some other purpose, hence the
  15946. # divide-by-0. (We use -Wno-error to make sure the
  15947. # divide-by-0 doesn't cause this test to fail!)
  15948. #
  15949. # Also gcc is giving only warning for unknown flags of
  15950. # -Wno-XXX form. So in order to detect support we're
  15951. # using -Wunused-result which will cause gcc to give
  15952. # error which we can detect.
  15953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15954. /* end confdefs.h. */
  15955. int
  15956. main ()
  15957. {
  15958. return 1/0
  15959. ;
  15960. return 0;
  15961. }
  15962. _ACEOF
  15963. if ac_fn_c_try_compile "$LINENO"; then :
  15964. perftools_cv_w_no_unused_result=yes
  15965. else
  15966. perftools_cv_w_no_unused_result=no
  15967. fi
  15968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15969. CFLAGS="$OLD_CFLAGS"
  15970. fi
  15971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_w_no_unused_result" >&5
  15972. $as_echo "$perftools_cv_w_no_unused_result" >&6; }
  15973. if test "$perftools_cv_w_no_unused_result" = yes; then
  15974. HAVE_W_NO_UNUSED_RESULT_TRUE=
  15975. HAVE_W_NO_UNUSED_RESULT_FALSE='#'
  15976. else
  15977. HAVE_W_NO_UNUSED_RESULT_TRUE='#'
  15978. HAVE_W_NO_UNUSED_RESULT_FALSE=
  15979. fi
  15980. # Check whether --enable-dynamic-sized-delete-support was given.
  15981. if test "${enable_dynamic_sized_delete_support+set}" = set; then :
  15982. enableval=$enable_dynamic_sized_delete_support; enable_dyn_sized_delete="$enableval"
  15983. else
  15984. enable_dyn_sized_delete=no
  15985. fi
  15986. if test "x$enable_dyn_sized_delete" = xyes; then :
  15987. $as_echo "#define ENABLE_DYNAMIC_SIZED_DELETE 1" >>confdefs.h
  15988. fi
  15989. # Check whether --enable-sized-delete was given.
  15990. if test "${enable_sized_delete+set}" = set; then :
  15991. enableval=$enable_sized_delete; enable_sized_delete="$enableval"
  15992. else
  15993. enable_sized_delete="no"
  15994. fi
  15995. if test "x$enable_sized_delete" = xyes; then :
  15996. $as_echo "#define ENABLE_SIZED_DELETE 1" >>confdefs.h
  15997. { $as_echo "$as_me:${as_lineno-$LINENO}: Will build sized deallocation operators" >&5
  15998. $as_echo "$as_me: Will build sized deallocation operators" >&6;}
  15999. else
  16000. if test "x$enable_dyn_sized_delete" = xyes; then :
  16001. { $as_echo "$as_me:${as_lineno-$LINENO}: Will build dynamically detected sized deallocation operators" >&5
  16002. $as_echo "$as_me: Will build dynamically detected sized deallocation operators" >&6;}
  16003. else
  16004. { $as_echo "$as_me:${as_lineno-$LINENO}: Will not build sized deallocation operators" >&5
  16005. $as_echo "$as_me: Will not build sized deallocation operators" >&6;}
  16006. fi
  16007. fi
  16008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports -fsized-deallocation" >&5
  16009. $as_echo_n "checking if C++ compiler supports -fsized-deallocation... " >&6; }
  16010. if ${perftools_cv_sized_deallocation_result+:} false; then :
  16011. $as_echo_n "(cached) " >&6
  16012. else
  16013. ac_ext=cpp
  16014. ac_cpp='$CXXCPP $CPPFLAGS'
  16015. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16016. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16017. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16018. OLD_CXXFLAGS="$CXXFLAGS"
  16019. CXXFLAGS="$CXXFLAGS -fsized-deallocation"
  16020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16021. /* end confdefs.h. */
  16022. int
  16023. main ()
  16024. {
  16025. ;
  16026. return 0;
  16027. }
  16028. _ACEOF
  16029. if ac_fn_cxx_try_compile "$LINENO"; then :
  16030. perftools_cv_sized_deallocation_result=yes
  16031. else
  16032. perftools_cv_sized_deallocation_result=no
  16033. fi
  16034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16035. CXXFLAGS="$OLD_CXXFLAGS"
  16036. ac_ext=c
  16037. ac_cpp='$CPP $CPPFLAGS'
  16038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16041. fi
  16042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_sized_deallocation_result" >&5
  16043. $as_echo "$perftools_cv_sized_deallocation_result" >&6; }
  16044. if test "$perftools_cv_sized_deallocation_result" = yes; then
  16045. HAVE_SIZED_DEALLOCATION_TRUE=
  16046. HAVE_SIZED_DEALLOCATION_FALSE='#'
  16047. else
  16048. HAVE_SIZED_DEALLOCATION_TRUE='#'
  16049. HAVE_SIZED_DEALLOCATION_FALSE=
  16050. fi
  16051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if target has _Unwind_Backtrace" >&5
  16052. $as_echo_n "checking if target has _Unwind_Backtrace... " >&6; }
  16053. if ${perftools_cv_have_unwind_backtrace+:} false; then :
  16054. $as_echo_n "(cached) " >&6
  16055. else
  16056. ac_ext=cpp
  16057. ac_cpp='$CXXCPP $CPPFLAGS'
  16058. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16059. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16060. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16062. /* end confdefs.h. */
  16063. #include <unwind.h>
  16064. int
  16065. main ()
  16066. {
  16067. &_Unwind_Backtrace
  16068. ;
  16069. return 0;
  16070. }
  16071. _ACEOF
  16072. if ac_fn_cxx_try_compile "$LINENO"; then :
  16073. perftools_cv_have_unwind_backtrace=yes
  16074. else
  16075. perftools_cv_have_unwind_backtrace=no
  16076. fi
  16077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16078. ac_ext=c
  16079. ac_cpp='$CPP $CPPFLAGS'
  16080. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16081. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16082. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16083. fi
  16084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_have_unwind_backtrace" >&5
  16085. $as_echo "$perftools_cv_have_unwind_backtrace" >&6; }
  16086. if test "x$perftools_cv_have_unwind_backtrace" = xyes; then :
  16087. $as_echo "#define HAVE_UNWIND_BACKTRACE 1" >>confdefs.h
  16088. fi
  16089. if test "x$enable_backtrace" = xyes; then :
  16090. default_emergency_malloc=yes
  16091. else
  16092. default_emergency_malloc=no
  16093. fi
  16094. if test "x$will_use_libunwind" = xyes; then :
  16095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16096. /* end confdefs.h. */
  16097. int
  16098. main ()
  16099. {
  16100. return __arm__
  16101. ;
  16102. return 0;
  16103. }
  16104. _ACEOF
  16105. if ac_fn_c_try_compile "$LINENO"; then :
  16106. default_emergency_malloc=yes
  16107. fi
  16108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16109. fi
  16110. # Check whether --enable-emergency-malloc was given.
  16111. if test "${enable_emergency_malloc+set}" = set; then :
  16112. enableval=$enable_emergency_malloc; enable_emergency_malloc="$enableval"
  16113. else
  16114. enable_emergency_malloc="$default_emergency_malloc"
  16115. fi
  16116. if test "x$enable_emergency_malloc" = xyes; then
  16117. BUILD_EMERGENCY_MALLOC_TRUE=
  16118. BUILD_EMERGENCY_MALLOC_FALSE='#'
  16119. else
  16120. BUILD_EMERGENCY_MALLOC_TRUE='#'
  16121. BUILD_EMERGENCY_MALLOC_FALSE=
  16122. fi
  16123. # Defines PRIuS
  16124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format code for printing a size_t and ssize_t" >&5
  16125. $as_echo_n "checking printf format code for printing a size_t and ssize_t... " >&6; }
  16126. if ${ac_cv_formatting_prius_prefix+:} false; then :
  16127. $as_echo_n "(cached) " >&6
  16128. else
  16129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16130. /* end confdefs.h. */
  16131. #include <stddef.h>
  16132. int
  16133. main ()
  16134. {
  16135. unsigned int v1 = 0; size_t v2 = 0; return (&v1 - &v2)
  16136. ;
  16137. return 0;
  16138. }
  16139. _ACEOF
  16140. if ac_fn_c_try_compile "$LINENO"; then :
  16141. ac_cv_formatting_prius_prefix=; ac_cv_prius_defined=1
  16142. fi
  16143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16145. /* end confdefs.h. */
  16146. #include <stddef.h>
  16147. int
  16148. main ()
  16149. {
  16150. unsigned long v1 = 0; size_t v2 = 0; return (&v1 - &v2)
  16151. ;
  16152. return 0;
  16153. }
  16154. _ACEOF
  16155. if ac_fn_c_try_compile "$LINENO"; then :
  16156. ac_cv_formatting_prius_prefix=l; ac_cv_prius_defined=1
  16157. fi
  16158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16160. /* end confdefs.h. */
  16161. #include <stddef.h>
  16162. int
  16163. main ()
  16164. {
  16165. unsigned long long v1 = 0; size_t v2 = 0; return (&v1 - &v2)
  16166. ;
  16167. return 0;
  16168. }
  16169. _ACEOF
  16170. if ac_fn_c_try_compile "$LINENO"; then :
  16171. ac_cv_formatting_prius_prefix=ll; ac_cv_prius_defined=1
  16172. fi
  16173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16174. fi
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_formatting_prius_prefix" >&5
  16176. $as_echo "$ac_cv_formatting_prius_prefix" >&6; }
  16177. if test -z "$ac_cv_prius_defined"; then
  16178. ac_cv_formatting_prius_prefix=z;
  16179. fi
  16180. cat >>confdefs.h <<_ACEOF
  16181. #define PRIuS "${ac_cv_formatting_prius_prefix}u"
  16182. _ACEOF
  16183. cat >>confdefs.h <<_ACEOF
  16184. #define PRIxS "${ac_cv_formatting_prius_prefix}x"
  16185. _ACEOF
  16186. cat >>confdefs.h <<_ACEOF
  16187. #define PRIdS "${ac_cv_formatting_prius_prefix}d"
  16188. _ACEOF
  16189. # Also make sure we get standard PRI... definitions, even with glibc.
  16190. # We have to use AH_VERBATIM because we need the #ifdef guard (gcc buglet)
  16191. # Check if __builtin_stack_pointer() is available (for elfcore.h)
  16192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_stack_pointer()" >&5
  16193. $as_echo_n "checking for __builtin_stack_pointer()... " >&6; }
  16194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16195. /* end confdefs.h. */
  16196. int
  16197. main ()
  16198. {
  16199. void *sp = __builtin_stack_pointer()
  16200. ;
  16201. return 0;
  16202. }
  16203. _ACEOF
  16204. if ac_fn_c_try_link "$LINENO"; then :
  16205. $as_echo "#define HAVE_BUILTIN_STACK_POINTER 1" >>confdefs.h
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16207. $as_echo "yes" >&6; }
  16208. else
  16209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16210. $as_echo "no" >&6; }
  16211. fi
  16212. rm -f core conftest.err conftest.$ac_objext \
  16213. conftest$ac_exeext conftest.$ac_ext
  16214. # Check for __builtin_expect()
  16215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect()" >&5
  16216. $as_echo_n "checking for __builtin_expect()... " >&6; }
  16217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16218. /* end confdefs.h. */
  16219. int
  16220. main ()
  16221. {
  16222. return __builtin_expect(main != 0, 1)
  16223. ;
  16224. return 0;
  16225. }
  16226. _ACEOF
  16227. if ac_fn_c_try_link "$LINENO"; then :
  16228. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  16229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16230. $as_echo "yes" >&6; }
  16231. else
  16232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16233. $as_echo "no" >&6; }
  16234. fi
  16235. rm -f core conftest.err conftest.$ac_objext \
  16236. conftest$ac_exeext conftest.$ac_ext
  16237. # Check if __environ is available (for GetenvBeforeMain)
  16238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __environ" >&5
  16239. $as_echo_n "checking for __environ... " >&6; }
  16240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16241. /* end confdefs.h. */
  16242. #include <unistd.h>
  16243. int
  16244. main ()
  16245. {
  16246. char **env = __environ
  16247. ;
  16248. return 0;
  16249. }
  16250. _ACEOF
  16251. if ac_fn_c_try_link "$LINENO"; then :
  16252. $as_echo "#define HAVE___ENVIRON 1" >>confdefs.h
  16253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16254. $as_echo "yes" >&6; }
  16255. else
  16256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16257. $as_echo "no" >&6; }
  16258. fi
  16259. rm -f core conftest.err conftest.$ac_objext \
  16260. conftest$ac_exeext conftest.$ac_ext
  16261. # If we support __thread, that can speed up tcmalloc a bit.
  16262. # Note, however, that our code tickles a bug in gcc < 4.1.2
  16263. # involving TLS and -fPIC (which our libraries will use) on x86:
  16264. # http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
  16265. #
  16266. # And mingw also does compile __thread but resultant code actually
  16267. # fails to work correctly at least in some not so ancient version:
  16268. # http://mingw-users.1079350.n2.nabble.com/gcc-4-4-multi-threaded-exception-handling-amp-thread-specifier-not-working-td3440749.html
  16269. #
  16270. # Also it was reported that earlier gcc versions for mips compile
  16271. # __thread but it doesn't really work
  16272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
  16273. $as_echo_n "checking for __thread... " >&6; }
  16274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16275. /* end confdefs.h. */
  16276. #if defined(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) || (__GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ < 2))
  16277. #error gcc has this bug: http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
  16278. #elif defined(__MINGW32__)
  16279. #error mingw doesnt really support tls
  16280. #elif defined(__APPLE__)
  16281. #error OSX __thread support is known to call malloc which makes it unsafe to use from malloc replacement
  16282. #endif
  16283. int
  16284. main ()
  16285. {
  16286. static __thread int p = 0
  16287. ;
  16288. return 0;
  16289. }
  16290. _ACEOF
  16291. if ac_fn_c_try_link "$LINENO"; then :
  16292. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  16293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16294. $as_echo "yes" >&6; }
  16295. else
  16296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16297. $as_echo "no" >&6; }
  16298. fi
  16299. rm -f core conftest.err conftest.$ac_objext \
  16300. conftest$ac_exeext conftest.$ac_ext
  16301. # glibc's __malloc_hook/etc were declared volatile starting in glibc 2.14
  16302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __malloc_hook is declared volatile" >&5
  16303. $as_echo_n "checking if __malloc_hook is declared volatile... " >&6; }
  16304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16305. /* end confdefs.h. */
  16306. #include <malloc.h>
  16307. void* (* volatile __malloc_hook)(size_t, const void*) = 0;
  16308. int
  16309. main ()
  16310. {
  16311. ;
  16312. return 0;
  16313. }
  16314. _ACEOF
  16315. if ac_fn_c_try_compile "$LINENO"; then :
  16316. $as_echo "#define MALLOC_HOOK_MAYBE_VOLATILE volatile" >>confdefs.h
  16317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16318. $as_echo "yes" >&6; }
  16319. else
  16320. $as_echo "#define MALLOC_HOOK_MAYBE_VOLATILE /**/" >>confdefs.h
  16321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16322. $as_echo "no" >&6; }
  16323. fi
  16324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16325. # Nanosleep requires extra libraries on some architectures (solaris).
  16326. # This sets NANOSLEEP_LIBS. nanosleep doesn't exist on mingw, which
  16327. # is fine for us because we don't compile libspinlock, which uses it.
  16328. if test "$need_nanosleep" = yes; then
  16329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nanosleep requires any libraries" >&5
  16330. $as_echo_n "checking if nanosleep requires any libraries... " >&6; }
  16331. ac_ext=c
  16332. ac_cpp='$CPP $CPPFLAGS'
  16333. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16334. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16335. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16336. acx_nanosleep_ok="no"
  16337. NANOSLEEP_LIBS=
  16338. # For most folks, this should just work
  16339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16340. /* end confdefs.h. */
  16341. #include <time.h>
  16342. int
  16343. main ()
  16344. {
  16345. static struct timespec ts; nanosleep(&ts, NULL);
  16346. ;
  16347. return 0;
  16348. }
  16349. _ACEOF
  16350. if ac_fn_c_try_link "$LINENO"; then :
  16351. acx_nanosleep_ok=yes
  16352. fi
  16353. rm -f core conftest.err conftest.$ac_objext \
  16354. conftest$ac_exeext conftest.$ac_ext
  16355. # For solaris, we may need -lrt
  16356. if test "x$acx_nanosleep_ok" != "xyes"; then
  16357. OLD_LIBS="$LIBS"
  16358. LIBS="-lrt $LIBS"
  16359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16360. /* end confdefs.h. */
  16361. #include <time.h>
  16362. int
  16363. main ()
  16364. {
  16365. static struct timespec ts; nanosleep(&ts, NULL);
  16366. ;
  16367. return 0;
  16368. }
  16369. _ACEOF
  16370. if ac_fn_c_try_link "$LINENO"; then :
  16371. acx_nanosleep_ok=yes
  16372. fi
  16373. rm -f core conftest.err conftest.$ac_objext \
  16374. conftest$ac_exeext conftest.$ac_ext
  16375. if test "x$acx_nanosleep_ok" = "xyes"; then
  16376. NANOSLEEP_LIBS="-lrt"
  16377. fi
  16378. LIBS="$OLD_LIBS"
  16379. fi
  16380. if test "x$acx_nanosleep_ok" != "xyes"; then
  16381. as_fn_error $? "cannot find the nanosleep function" "$LINENO" 5
  16382. else
  16383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NANOSLEEP_LIBS:-no}" >&5
  16384. $as_echo "${NANOSLEEP_LIBS:-no}" >&6; }
  16385. fi
  16386. ac_ext=c
  16387. ac_cpp='$CPP $CPPFLAGS'
  16388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16391. fi
  16392. # Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty.
  16393. # If so, we replace it with our own version.
  16394. LIBSTDCXX_LA_LINKER_FLAG=
  16395. if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la
  16396. then
  16397. LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris'
  16398. fi
  16399. # We also need to check if the kernel supports __thread, which requires uname()
  16400. ac_fn_c_check_decl "$LINENO" "uname" "ac_cv_have_decl_uname" "#include <sys/utsname.h>
  16401. "
  16402. if test "x$ac_cv_have_decl_uname" = xyes; then :
  16403. ac_have_decl=1
  16404. else
  16405. ac_have_decl=0
  16406. fi
  16407. cat >>confdefs.h <<_ACEOF
  16408. #define HAVE_DECL_UNAME $ac_have_decl
  16409. _ACEOF
  16410. # In fact, a lot of the code in this directory depends on pthreads
  16411. ac_ext=c
  16412. ac_cpp='$CPP $CPPFLAGS'
  16413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16416. acx_pthread_ok=no
  16417. # We used to check for pthread.h first, but this fails if pthread.h
  16418. # requires special compiler flags (e.g. on True64 or Sequent).
  16419. # It gets checked for in the link test anyway.
  16420. # First of all, check if the user has set any of the PTHREAD_LIBS,
  16421. # etcetera environment variables, and if threads linking works using
  16422. # them:
  16423. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  16424. save_CFLAGS="$CFLAGS"
  16425. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16426. save_LIBS="$LIBS"
  16427. LIBS="$PTHREAD_LIBS $LIBS"
  16428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  16429. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  16430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16431. /* end confdefs.h. */
  16432. /* Override any GCC internal prototype to avoid an error.
  16433. Use char because int might match the return type of a GCC
  16434. builtin and then its argument prototype would still apply. */
  16435. #ifdef __cplusplus
  16436. extern "C"
  16437. #endif
  16438. char pthread_join ();
  16439. int
  16440. main ()
  16441. {
  16442. return pthread_join ();
  16443. ;
  16444. return 0;
  16445. }
  16446. _ACEOF
  16447. if ac_fn_c_try_link "$LINENO"; then :
  16448. acx_pthread_ok=yes
  16449. fi
  16450. rm -f core conftest.err conftest.$ac_objext \
  16451. conftest$ac_exeext conftest.$ac_ext
  16452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  16453. $as_echo "$acx_pthread_ok" >&6; }
  16454. if test x"$acx_pthread_ok" = xno; then
  16455. PTHREAD_LIBS=""
  16456. PTHREAD_CFLAGS=""
  16457. fi
  16458. LIBS="$save_LIBS"
  16459. CFLAGS="$save_CFLAGS"
  16460. fi
  16461. # We must check for the threads library under a number of different
  16462. # names; the ordering is very important because some systems
  16463. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  16464. # libraries is broken (non-POSIX).
  16465. # Create a list of thread flags to try. Items starting with a "-" are
  16466. # C compiler flags, and other items are library names, except for "none"
  16467. # which indicates that we try without any flags at all, and "pthread-config"
  16468. # which is a program returning the flags for the Pth emulation library.
  16469. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  16470. # The ordering *is* (sometimes) important. Some notes on the
  16471. # individual items follow:
  16472. # pthreads: AIX (must check this before -lpthread)
  16473. # none: in case threads are in libc; should be tried before -Kthread and
  16474. # other compiler flags to prevent continual compiler warnings
  16475. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  16476. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  16477. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  16478. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  16479. # -pthreads: Solaris/gcc
  16480. # -mthreads: Mingw32/gcc, Lynx/gcc
  16481. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  16482. # doesn't hurt to check since this sometimes defines pthreads too;
  16483. # also defines -D_REENTRANT)
  16484. # ... -mt is also the pthreads flag for HP/aCC
  16485. # pthread: Linux, etcetera
  16486. # --thread-safe: KAI C++
  16487. # pthread-config: use pthread-config program (for GNU Pth library)
  16488. case "${host_cpu}-${host_os}" in
  16489. *solaris*)
  16490. # On Solaris (at least, for some versions), libc contains stubbed
  16491. # (non-functional) versions of the pthreads routines, so link-based
  16492. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  16493. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  16494. # a function called by this macro, so we could check for that, but
  16495. # who knows whether they'll stub that too in a future libc.) So,
  16496. # we'll just look for -pthreads and -lpthread first:
  16497. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  16498. ;;
  16499. esac
  16500. if test x"$acx_pthread_ok" = xno; then
  16501. for flag in $acx_pthread_flags; do
  16502. case $flag in
  16503. none)
  16504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  16505. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  16506. ;;
  16507. -*)
  16508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  16509. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  16510. PTHREAD_CFLAGS="$flag"
  16511. ;;
  16512. pthread-config)
  16513. # Extract the first word of "pthread-config", so it can be a program name with args.
  16514. set dummy pthread-config; ac_word=$2
  16515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16516. $as_echo_n "checking for $ac_word... " >&6; }
  16517. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  16518. $as_echo_n "(cached) " >&6
  16519. else
  16520. if test -n "$acx_pthread_config"; then
  16521. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  16522. else
  16523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16524. for as_dir in $PATH
  16525. do
  16526. IFS=$as_save_IFS
  16527. test -z "$as_dir" && as_dir=.
  16528. for ac_exec_ext in '' $ac_executable_extensions; do
  16529. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16530. ac_cv_prog_acx_pthread_config="yes"
  16531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16532. break 2
  16533. fi
  16534. done
  16535. done
  16536. IFS=$as_save_IFS
  16537. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  16538. fi
  16539. fi
  16540. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  16541. if test -n "$acx_pthread_config"; then
  16542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  16543. $as_echo "$acx_pthread_config" >&6; }
  16544. else
  16545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16546. $as_echo "no" >&6; }
  16547. fi
  16548. if test x"$acx_pthread_config" = xno; then continue; fi
  16549. PTHREAD_CFLAGS="`pthread-config --cflags`"
  16550. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  16551. ;;
  16552. *)
  16553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  16554. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  16555. PTHREAD_LIBS="-l$flag"
  16556. ;;
  16557. esac
  16558. save_LIBS="$LIBS"
  16559. save_CFLAGS="$CFLAGS"
  16560. LIBS="$PTHREAD_LIBS $LIBS"
  16561. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16562. # Check for various functions. We must include pthread.h,
  16563. # since some functions may be macros. (On the Sequent, we
  16564. # need a special flag -Kthread to make this header compile.)
  16565. # We check for pthread_join because it is in -lpthread on IRIX
  16566. # while pthread_create is in libc. We check for pthread_attr_init
  16567. # due to DEC craziness with -lpthreads. We check for
  16568. # pthread_cleanup_push because it is one of the few pthread
  16569. # functions on Solaris that doesn't have a non-functional libc stub.
  16570. # We try pthread_create on general principles.
  16571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16572. /* end confdefs.h. */
  16573. #include <pthread.h>
  16574. int
  16575. main ()
  16576. {
  16577. pthread_t th; pthread_join(th, 0);
  16578. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16579. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16580. ;
  16581. return 0;
  16582. }
  16583. _ACEOF
  16584. if ac_fn_c_try_link "$LINENO"; then :
  16585. acx_pthread_ok=yes
  16586. fi
  16587. rm -f core conftest.err conftest.$ac_objext \
  16588. conftest$ac_exeext conftest.$ac_ext
  16589. LIBS="$save_LIBS"
  16590. CFLAGS="$save_CFLAGS"
  16591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  16592. $as_echo "$acx_pthread_ok" >&6; }
  16593. if test "x$acx_pthread_ok" = xyes; then
  16594. break;
  16595. fi
  16596. PTHREAD_LIBS=""
  16597. PTHREAD_CFLAGS=""
  16598. done
  16599. fi
  16600. # Various other checks:
  16601. if test "x$acx_pthread_ok" = xyes; then
  16602. save_LIBS="$LIBS"
  16603. LIBS="$PTHREAD_LIBS $LIBS"
  16604. save_CFLAGS="$CFLAGS"
  16605. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16606. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  16607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  16608. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  16609. attr_name=unknown
  16610. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  16611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16612. /* end confdefs.h. */
  16613. #include <pthread.h>
  16614. int
  16615. main ()
  16616. {
  16617. int attr=$attr; return attr;
  16618. ;
  16619. return 0;
  16620. }
  16621. _ACEOF
  16622. if ac_fn_c_try_link "$LINENO"; then :
  16623. attr_name=$attr; break
  16624. fi
  16625. rm -f core conftest.err conftest.$ac_objext \
  16626. conftest$ac_exeext conftest.$ac_ext
  16627. done
  16628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  16629. $as_echo "$attr_name" >&6; }
  16630. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  16631. cat >>confdefs.h <<_ACEOF
  16632. #define PTHREAD_CREATE_JOINABLE $attr_name
  16633. _ACEOF
  16634. fi
  16635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  16636. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  16637. flag=no
  16638. case "${host_cpu}-${host_os}" in
  16639. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  16640. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  16641. esac
  16642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  16643. $as_echo "${flag}" >&6; }
  16644. if test "x$flag" != xno; then
  16645. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  16646. fi
  16647. LIBS="$save_LIBS"
  16648. CFLAGS="$save_CFLAGS"
  16649. # More AIX lossage: must compile with xlc_r or cc_r
  16650. if test x"$GCC" != xyes; then
  16651. for ac_prog in xlc_r cc_r
  16652. do
  16653. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16654. set dummy $ac_prog; ac_word=$2
  16655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16656. $as_echo_n "checking for $ac_word... " >&6; }
  16657. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  16658. $as_echo_n "(cached) " >&6
  16659. else
  16660. if test -n "$PTHREAD_CC"; then
  16661. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  16662. else
  16663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16664. for as_dir in $PATH
  16665. do
  16666. IFS=$as_save_IFS
  16667. test -z "$as_dir" && as_dir=.
  16668. for ac_exec_ext in '' $ac_executable_extensions; do
  16669. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16670. ac_cv_prog_PTHREAD_CC="$ac_prog"
  16671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16672. break 2
  16673. fi
  16674. done
  16675. done
  16676. IFS=$as_save_IFS
  16677. fi
  16678. fi
  16679. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  16680. if test -n "$PTHREAD_CC"; then
  16681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  16682. $as_echo "$PTHREAD_CC" >&6; }
  16683. else
  16684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16685. $as_echo "no" >&6; }
  16686. fi
  16687. test -n "$PTHREAD_CC" && break
  16688. done
  16689. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  16690. else
  16691. PTHREAD_CC=$CC
  16692. fi
  16693. # The next part tries to detect GCC inconsistency with -shared on some
  16694. # architectures and systems. The problem is that in certain
  16695. # configurations, when -shared is specified, GCC "forgets" to
  16696. # internally use various flags which are still necessary.
  16697. #
  16698. # Prepare the flags
  16699. #
  16700. save_CFLAGS="$CFLAGS"
  16701. save_LIBS="$LIBS"
  16702. save_CC="$CC"
  16703. # Try with the flags determined by the earlier checks.
  16704. #
  16705. # -Wl,-z,defs forces link-time symbol resolution, so that the
  16706. # linking checks with -shared actually have any value
  16707. #
  16708. # FIXME: -fPIC is required for -shared on many architectures,
  16709. # so we specify it here, but the right way would probably be to
  16710. # properly detect whether it is actually required.
  16711. CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
  16712. LIBS="$PTHREAD_LIBS $LIBS"
  16713. CC="$PTHREAD_CC"
  16714. # In order not to create several levels of indentation, we test
  16715. # the value of "$done" until we find the cure or run out of ideas.
  16716. done="no"
  16717. # First, make sure the CFLAGS we added are actually accepted by our
  16718. # compiler. If not (and OS X's ld, for instance, does not accept -z),
  16719. # then we can't do this test.
  16720. if test x"$done" = xno; then
  16721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
  16722. $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
  16723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16724. /* end confdefs.h. */
  16725. int
  16726. main ()
  16727. {
  16728. ;
  16729. return 0;
  16730. }
  16731. _ACEOF
  16732. if ac_fn_c_try_link "$LINENO"; then :
  16733. else
  16734. done=yes
  16735. fi
  16736. rm -f core conftest.err conftest.$ac_objext \
  16737. conftest$ac_exeext conftest.$ac_ext
  16738. if test "x$done" = xyes ; then
  16739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16740. $as_echo "no" >&6; }
  16741. else
  16742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16743. $as_echo "yes" >&6; }
  16744. fi
  16745. fi
  16746. if test x"$done" = xno; then
  16747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
  16748. $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
  16749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16750. /* end confdefs.h. */
  16751. #include <pthread.h>
  16752. int
  16753. main ()
  16754. {
  16755. pthread_t th; pthread_join(th, 0);
  16756. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16757. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16758. ;
  16759. return 0;
  16760. }
  16761. _ACEOF
  16762. if ac_fn_c_try_link "$LINENO"; then :
  16763. done=yes
  16764. fi
  16765. rm -f core conftest.err conftest.$ac_objext \
  16766. conftest$ac_exeext conftest.$ac_ext
  16767. if test "x$done" = xyes; then
  16768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16769. $as_echo "yes" >&6; }
  16770. else
  16771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16772. $as_echo "no" >&6; }
  16773. fi
  16774. fi
  16775. #
  16776. # Linux gcc on some architectures such as mips/mipsel forgets
  16777. # about -lpthread
  16778. #
  16779. if test x"$done" = xno; then
  16780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
  16781. $as_echo_n "checking whether -lpthread fixes that... " >&6; }
  16782. LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
  16783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16784. /* end confdefs.h. */
  16785. #include <pthread.h>
  16786. int
  16787. main ()
  16788. {
  16789. pthread_t th; pthread_join(th, 0);
  16790. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16791. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16792. ;
  16793. return 0;
  16794. }
  16795. _ACEOF
  16796. if ac_fn_c_try_link "$LINENO"; then :
  16797. done=yes
  16798. fi
  16799. rm -f core conftest.err conftest.$ac_objext \
  16800. conftest$ac_exeext conftest.$ac_ext
  16801. if test "x$done" = xyes; then
  16802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16803. $as_echo "yes" >&6; }
  16804. PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
  16805. else
  16806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16807. $as_echo "no" >&6; }
  16808. fi
  16809. fi
  16810. #
  16811. # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
  16812. #
  16813. if test x"$done" = xno; then
  16814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
  16815. $as_echo_n "checking whether -lc_r fixes that... " >&6; }
  16816. LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
  16817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16818. /* end confdefs.h. */
  16819. #include <pthread.h>
  16820. int
  16821. main ()
  16822. {
  16823. pthread_t th; pthread_join(th, 0);
  16824. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16825. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16826. ;
  16827. return 0;
  16828. }
  16829. _ACEOF
  16830. if ac_fn_c_try_link "$LINENO"; then :
  16831. done=yes
  16832. fi
  16833. rm -f core conftest.err conftest.$ac_objext \
  16834. conftest$ac_exeext conftest.$ac_ext
  16835. if test "x$done" = xyes; then
  16836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16837. $as_echo "yes" >&6; }
  16838. PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
  16839. else
  16840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16841. $as_echo "no" >&6; }
  16842. fi
  16843. fi
  16844. if test x"$done" = xno; then
  16845. # OK, we have run out of ideas
  16846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
  16847. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
  16848. # so it's not safe to assume that we may use pthreads
  16849. acx_pthread_ok=no
  16850. fi
  16851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
  16852. $as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
  16853. CFLAGS="-nostdlib $CFLAGS"
  16854. # we need c with nostdlib
  16855. LIBS="$LIBS -lc"
  16856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16857. /* end confdefs.h. */
  16858. #include <pthread.h>
  16859. int
  16860. main ()
  16861. {
  16862. pthread_t th; pthread_join(th, 0);
  16863. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16864. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16865. ;
  16866. return 0;
  16867. }
  16868. _ACEOF
  16869. if ac_fn_c_try_link "$LINENO"; then :
  16870. done=yes
  16871. else
  16872. done=no
  16873. fi
  16874. rm -f core conftest.err conftest.$ac_objext \
  16875. conftest$ac_exeext conftest.$ac_ext
  16876. if test "x$done" = xyes; then
  16877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16878. $as_echo "yes" >&6; }
  16879. else
  16880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16881. $as_echo "no" >&6; }
  16882. fi
  16883. if test x"$done" = xno; then
  16884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
  16885. $as_echo_n "checking whether -lpthread saves the day... " >&6; }
  16886. LIBS="-lpthread $LIBS"
  16887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16888. /* end confdefs.h. */
  16889. #include <pthread.h>
  16890. int
  16891. main ()
  16892. {
  16893. pthread_t th; pthread_join(th, 0);
  16894. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16895. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16896. ;
  16897. return 0;
  16898. }
  16899. _ACEOF
  16900. if ac_fn_c_try_link "$LINENO"; then :
  16901. done=yes
  16902. else
  16903. done=no
  16904. fi
  16905. rm -f core conftest.err conftest.$ac_objext \
  16906. conftest$ac_exeext conftest.$ac_ext
  16907. if test "x$done" = xyes; then
  16908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16909. $as_echo "yes" >&6; }
  16910. PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
  16911. else
  16912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16913. $as_echo "no" >&6; }
  16914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
  16915. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
  16916. fi
  16917. fi
  16918. CFLAGS="$save_CFLAGS"
  16919. LIBS="$save_LIBS"
  16920. CC="$save_CC"
  16921. else
  16922. PTHREAD_CC="$CC"
  16923. fi
  16924. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  16925. if test x"$acx_pthread_ok" = xyes; then
  16926. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  16927. :
  16928. else
  16929. acx_pthread_ok=no
  16930. fi
  16931. ac_ext=c
  16932. ac_cpp='$CPP $CPPFLAGS'
  16933. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16934. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16935. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16936. ac_ext=cpp
  16937. ac_cpp='$CXXCPP $CPPFLAGS'
  16938. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16939. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16940. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread symbols are available in C++ without including pthread.h" >&5
  16942. $as_echo_n "checking whether pthread symbols are available in C++ without including pthread.h... " >&6; }
  16943. acx_pthread_despite_asking_for=no
  16944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16945. /* end confdefs.h. */
  16946. #include <string>
  16947. #include <vector>
  16948. int
  16949. main ()
  16950. {
  16951. pthread_t th; pthread_join(th, 0);
  16952. ;
  16953. return 0;
  16954. }
  16955. _ACEOF
  16956. if ac_fn_cxx_try_link "$LINENO"; then :
  16957. acx_pthread_despite_asking_for=yes
  16958. $as_echo "#define HAVE_PTHREAD_DESPITE_ASKING_FOR 1" >>confdefs.h
  16959. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  16960. fi
  16961. rm -f core conftest.err conftest.$ac_objext \
  16962. conftest$ac_exeext conftest.$ac_ext
  16963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_despite_asking_for" >&5
  16964. $as_echo "$acx_pthread_despite_asking_for" >&6; }
  16965. ac_ext=c
  16966. ac_cpp='$CPP $CPPFLAGS'
  16967. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16968. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16969. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16970. if test x"$acx_pthread_despite_asking_for" = xyes; then
  16971. HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE=
  16972. HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE='#'
  16973. else
  16974. HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE='#'
  16975. HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE=
  16976. fi
  16977. # Find out what namespace 'normal' STL code lives in
  16978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
  16979. $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
  16980. if ${ac_cv_cxx_namespaces+:} false; then :
  16981. $as_echo_n "(cached) " >&6
  16982. else
  16983. ac_ext=cpp
  16984. ac_cpp='$CXXCPP $CPPFLAGS'
  16985. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16986. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16987. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16989. /* end confdefs.h. */
  16990. namespace Outer {
  16991. namespace Inner { int i = 0; }}
  16992. int
  16993. main ()
  16994. {
  16995. using namespace Outer::Inner; return i;
  16996. ;
  16997. return 0;
  16998. }
  16999. _ACEOF
  17000. if ac_fn_cxx_try_compile "$LINENO"; then :
  17001. ac_cv_cxx_namespaces=yes
  17002. else
  17003. ac_cv_cxx_namespaces=no
  17004. fi
  17005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17006. ac_ext=c
  17007. ac_cpp='$CPP $CPPFLAGS'
  17008. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17009. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17010. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17011. fi
  17012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
  17013. $as_echo "$ac_cv_cxx_namespaces" >&6; }
  17014. if test "$ac_cv_cxx_namespaces" = yes; then
  17015. $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
  17016. fi
  17017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
  17018. $as_echo_n "checking what namespace STL code is in... " >&6; }
  17019. if ${ac_cv_cxx_stl_namespace+:} false; then :
  17020. $as_echo_n "(cached) " >&6
  17021. else
  17022. ac_ext=cpp
  17023. ac_cpp='$CXXCPP $CPPFLAGS'
  17024. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17025. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17026. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17028. /* end confdefs.h. */
  17029. #include <vector>
  17030. int
  17031. main ()
  17032. {
  17033. vector<int> t; return 0;
  17034. ;
  17035. return 0;
  17036. }
  17037. _ACEOF
  17038. if ac_fn_cxx_try_compile "$LINENO"; then :
  17039. ac_cv_cxx_stl_namespace=none
  17040. fi
  17041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17043. /* end confdefs.h. */
  17044. #include <vector>
  17045. int
  17046. main ()
  17047. {
  17048. std::vector<int> t; return 0;
  17049. ;
  17050. return 0;
  17051. }
  17052. _ACEOF
  17053. if ac_fn_cxx_try_compile "$LINENO"; then :
  17054. ac_cv_cxx_stl_namespace=std
  17055. fi
  17056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17057. ac_ext=c
  17058. ac_cpp='$CPP $CPPFLAGS'
  17059. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17060. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17061. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17062. fi
  17063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
  17064. $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
  17065. if test "$ac_cv_cxx_stl_namespace" = none; then
  17066. $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
  17067. fi
  17068. if test "$ac_cv_cxx_stl_namespace" = std; then
  17069. $as_echo "#define STL_NAMESPACE std" >>confdefs.h
  17070. fi
  17071. # Figure out where libc has program_invocation_name
  17072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5
  17073. $as_echo_n "checking for program_invocation_name... " >&6; }
  17074. if ${ac_cv_have_program_invocation_name+:} false; then :
  17075. $as_echo_n "(cached) " >&6
  17076. else
  17077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17078. /* end confdefs.h. */
  17079. extern char* program_invocation_name;
  17080. int
  17081. main ()
  17082. {
  17083. return *program_invocation_name;
  17084. ;
  17085. return 0;
  17086. }
  17087. _ACEOF
  17088. if ac_fn_c_try_link "$LINENO"; then :
  17089. ac_cv_have_program_invocation_name=yes
  17090. else
  17091. ac_cv_have_program_invocation_name=no
  17092. fi
  17093. rm -f core conftest.err conftest.$ac_objext \
  17094. conftest$ac_exeext conftest.$ac_ext
  17095. fi
  17096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_program_invocation_name" >&5
  17097. $as_echo "$ac_cv_have_program_invocation_name" >&6; }
  17098. if test "$ac_cv_have_program_invocation_name" = "yes"; then
  17099. $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
  17100. fi
  17101. # Make the install prefix available, to figure out where to look for pprof
  17102. ac_cv_install_prefix="$prefix";
  17103. if test x"$ac_cv_install_prefix" = x"NONE" ; then
  17104. ac_cv_install_prefix="$ac_default_prefix";
  17105. fi
  17106. cat >>confdefs.h <<_ACEOF
  17107. #define INSTALL_PREFIX "$ac_cv_install_prefix"
  17108. _ACEOF
  17109. case "$host" in
  17110. *-mingw*)
  17111. ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
  17112. "
  17113. if test "x$ac_cv_have_decl_sleep" = xyes; then :
  17114. ac_have_decl=1
  17115. else
  17116. ac_have_decl=0
  17117. fi
  17118. cat >>confdefs.h <<_ACEOF
  17119. #define HAVE_DECL_SLEEP $ac_have_decl
  17120. _ACEOF
  17121. ac_fn_c_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "#include <time.h>
  17122. "
  17123. if test "x$ac_cv_have_decl_nanosleep" = xyes; then :
  17124. ac_have_decl=1
  17125. else
  17126. ac_have_decl=0
  17127. fi
  17128. cat >>confdefs.h <<_ACEOF
  17129. #define HAVE_DECL_NANOSLEEP $ac_have_decl
  17130. _ACEOF
  17131. ;;
  17132. esac
  17133. if test "x$enable_backtrace" = xyes; then
  17134. ac_fn_c_check_decl "$LINENO" "backtrace" "ac_cv_have_decl_backtrace" "#include <execinfo.h>
  17135. "
  17136. if test "x$ac_cv_have_decl_backtrace" = xyes; then :
  17137. ac_have_decl=1
  17138. else
  17139. ac_have_decl=0
  17140. fi
  17141. cat >>confdefs.h <<_ACEOF
  17142. #define HAVE_DECL_BACKTRACE $ac_have_decl
  17143. _ACEOF
  17144. fi
  17145. # For windows, this has a non-trivial value (__declspec(export)), but any
  17146. # system that uses configure wants this to be the empty string.
  17147. $as_echo "#define PERFTOOLS_DLL_DECL /**/" >>confdefs.h
  17148. # In theory, config.h files shouldn't need a header guard, but we do,
  17149. # because we (maybe) #include windows/mingw.h from within config.h,
  17150. # and it #includes other .h files. These all have header guards, so
  17151. # the end result is if config.h is #included twice, its #undefs get
  17152. # evaluated twice, but all the ones in mingw.h/etc only get evaluated
  17153. # once, potentially causing trouble. c.f.
  17154. # http://code.google.com/p/gperftools/issues/detail?id=246
  17155. # MinGW uses autoconf, but also needs the windows shim routines
  17156. # (since it doesn't have its own support for, say, pthreads).
  17157. # This requires us to #include a special header file, and also to
  17158. # link in some windows versions of .o's instead of the unix versions.
  17159. #
  17160. # Also, manually mark systems where we have to be careful how early
  17161. # we run pthreads. TODO(csilvers): turn this into an autoconf check.
  17162. if expr $host : '.*-mingw' >/dev/null 2>&1; then
  17163. MINGW_TRUE=
  17164. MINGW_FALSE='#'
  17165. else
  17166. MINGW_TRUE='#'
  17167. MINGW_FALSE=
  17168. fi
  17169. if expr $host : '.*-apple-darwin.*' >/dev/null 2>&1; then
  17170. OSX_TRUE=
  17171. OSX_FALSE='#'
  17172. else
  17173. OSX_TRUE='#'
  17174. OSX_FALSE=
  17175. fi
  17176. # Export the --enable flags we set above. We do this at the end so
  17177. # other configure rules can enable or disable targets based on what
  17178. # they find.
  17179. if test "$enable_cpu_profiler" = yes; then
  17180. WITH_CPU_PROFILER_TRUE=
  17181. WITH_CPU_PROFILER_FALSE='#'
  17182. else
  17183. WITH_CPU_PROFILER_TRUE='#'
  17184. WITH_CPU_PROFILER_FALSE=
  17185. fi
  17186. if test "$enable_heap_profiler" = yes; then
  17187. WITH_HEAP_PROFILER_TRUE=
  17188. WITH_HEAP_PROFILER_FALSE='#'
  17189. else
  17190. WITH_HEAP_PROFILER_TRUE='#'
  17191. WITH_HEAP_PROFILER_FALSE=
  17192. fi
  17193. if test "$enable_heap_checker" = yes; then
  17194. WITH_HEAP_CHECKER_TRUE=
  17195. WITH_HEAP_CHECKER_FALSE='#'
  17196. else
  17197. WITH_HEAP_CHECKER_TRUE='#'
  17198. WITH_HEAP_CHECKER_FALSE=
  17199. fi
  17200. if test "$enable_debugalloc" = yes; then
  17201. WITH_DEBUGALLOC_TRUE=
  17202. WITH_DEBUGALLOC_FALSE='#'
  17203. else
  17204. WITH_DEBUGALLOC_TRUE='#'
  17205. WITH_DEBUGALLOC_FALSE=
  17206. fi
  17207. # We make tcmalloc.so if either heap-profiler or heap-checker is asked for.
  17208. if test "$enable_heap_profiler" = yes -o \
  17209. "$enable_heap_checker" = yes; then
  17210. WITH_HEAP_PROFILER_OR_CHECKER_TRUE=
  17211. WITH_HEAP_PROFILER_OR_CHECKER_FALSE='#'
  17212. else
  17213. WITH_HEAP_PROFILER_OR_CHECKER_TRUE='#'
  17214. WITH_HEAP_PROFILER_OR_CHECKER_FALSE=
  17215. fi
  17216. # If we don't use any profilers, we don't need stack traces (or pprof)
  17217. if test "$enable_cpu_profiler" = yes -o \
  17218. "$enable_heap_profiler" = yes -o \
  17219. "$enable_heap_checker" = yes; then
  17220. WITH_STACK_TRACE_TRUE=
  17221. WITH_STACK_TRACE_FALSE='#'
  17222. else
  17223. WITH_STACK_TRACE_TRUE='#'
  17224. WITH_STACK_TRACE_FALSE=
  17225. fi
  17226. have_linux_sigev_thread_id=no
  17227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux SIGEV_THREAD_ID" >&5
  17228. $as_echo_n "checking for Linux SIGEV_THREAD_ID... " >&6; }
  17229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17230. /* end confdefs.h. */
  17231. #include <signal.h>
  17232. #include <time.h>
  17233. int
  17234. main ()
  17235. {
  17236. return SIGEV_THREAD_ID || CLOCK_THREAD_CPUTIME_ID || __linux;
  17237. ;
  17238. return 0;
  17239. }
  17240. _ACEOF
  17241. if ac_fn_c_try_compile "$LINENO"; then :
  17242. $as_echo "#define HAVE_LINUX_SIGEV_THREAD_ID 1" >>confdefs.h
  17243. have_linux_sigev_thread_id=yes
  17244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17245. $as_echo "yes" >&6; }
  17246. else
  17247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17248. $as_echo "no" >&6; }
  17249. fi
  17250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17251. # Write generated configuration file
  17252. ac_config_files="$ac_config_files Makefile src/gperftools/tcmalloc.h src/windows/gperftools/tcmalloc.h"
  17253. cat >confcache <<\_ACEOF
  17254. # This file is a shell script that caches the results of configure
  17255. # tests run on this system so they can be shared between configure
  17256. # scripts and configure runs, see configure's option --config-cache.
  17257. # It is not useful on other systems. If it contains results you don't
  17258. # want to keep, you may remove or edit it.
  17259. #
  17260. # config.status only pays attention to the cache file if you give it
  17261. # the --recheck option to rerun configure.
  17262. #
  17263. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17264. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17265. # following values.
  17266. _ACEOF
  17267. # The following way of writing the cache mishandles newlines in values,
  17268. # but we know of no workaround that is simple, portable, and efficient.
  17269. # So, we kill variables containing newlines.
  17270. # Ultrix sh set writes to stderr and can't be redirected directly,
  17271. # and sets the high bit in the cache file unless we assign to the vars.
  17272. (
  17273. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17274. eval ac_val=\$$ac_var
  17275. case $ac_val in #(
  17276. *${as_nl}*)
  17277. case $ac_var in #(
  17278. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17279. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17280. esac
  17281. case $ac_var in #(
  17282. _ | IFS | as_nl) ;; #(
  17283. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17284. *) { eval $ac_var=; unset $ac_var;} ;;
  17285. esac ;;
  17286. esac
  17287. done
  17288. (set) 2>&1 |
  17289. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17290. *${as_nl}ac_space=\ *)
  17291. # `set' does not quote correctly, so add quotes: double-quote
  17292. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17293. sed -n \
  17294. "s/'/'\\\\''/g;
  17295. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17296. ;; #(
  17297. *)
  17298. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17299. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17300. ;;
  17301. esac |
  17302. sort
  17303. ) |
  17304. sed '
  17305. /^ac_cv_env_/b end
  17306. t clear
  17307. :clear
  17308. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17309. t end
  17310. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17311. :end' >>confcache
  17312. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17313. if test -w "$cache_file"; then
  17314. if test "x$cache_file" != "x/dev/null"; then
  17315. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17316. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17317. if test ! -f "$cache_file" || test -h "$cache_file"; then
  17318. cat confcache >"$cache_file"
  17319. else
  17320. case $cache_file in #(
  17321. */* | ?:*)
  17322. mv -f confcache "$cache_file"$$ &&
  17323. mv -f "$cache_file"$$ "$cache_file" ;; #(
  17324. *)
  17325. mv -f confcache "$cache_file" ;;
  17326. esac
  17327. fi
  17328. fi
  17329. else
  17330. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17331. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17332. fi
  17333. fi
  17334. rm -f confcache
  17335. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17336. # Let make expand exec_prefix.
  17337. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17338. DEFS=-DHAVE_CONFIG_H
  17339. ac_libobjs=
  17340. ac_ltlibobjs=
  17341. U=
  17342. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17343. # 1. Remove the extension, and $U if already installed.
  17344. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17345. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17346. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17347. # will be set to the directory where LIBOBJS objects are built.
  17348. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17349. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17350. done
  17351. LIBOBJS=$ac_libobjs
  17352. LTLIBOBJS=$ac_ltlibobjs
  17353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17354. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  17355. if test -n "$am_sleep_pid"; then
  17356. # Hide warnings about reused PIDs.
  17357. wait $am_sleep_pid 2>/dev/null
  17358. fi
  17359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17360. $as_echo "done" >&6; }
  17361. if test -n "$EXEEXT"; then
  17362. am__EXEEXT_TRUE=
  17363. am__EXEEXT_FALSE='#'
  17364. else
  17365. am__EXEEXT_TRUE='#'
  17366. am__EXEEXT_FALSE=
  17367. fi
  17368. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  17369. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  17370. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17371. fi
  17372. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17373. as_fn_error $? "conditional \"AMDEP\" was never defined.
  17374. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17375. fi
  17376. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17377. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17378. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17379. fi
  17380. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17381. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17382. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17383. fi
  17384. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17385. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17386. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17387. fi
  17388. if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
  17389. as_fn_error $? "conditional \"GCC\" was never defined.
  17390. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17391. fi
  17392. if test -z "${HAVE_OBJCOPY_WEAKEN_TRUE}" && test -z "${HAVE_OBJCOPY_WEAKEN_FALSE}"; then
  17393. as_fn_error $? "conditional \"HAVE_OBJCOPY_WEAKEN\" was never defined.
  17394. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17395. fi
  17396. if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
  17397. as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
  17398. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17399. fi
  17400. if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
  17401. as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
  17402. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17403. fi
  17404. if test -z "${X86_64_AND_NO_FP_BY_DEFAULT_TRUE}" && test -z "${X86_64_AND_NO_FP_BY_DEFAULT_FALSE}"; then
  17405. as_fn_error $? "conditional \"X86_64_AND_NO_FP_BY_DEFAULT\" was never defined.
  17406. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17407. fi
  17408. if test -z "${I386_TRUE}" && test -z "${I386_FALSE}"; then
  17409. as_fn_error $? "conditional \"I386\" was never defined.
  17410. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17411. fi
  17412. if test -z "${HAVE_W_NO_UNUSED_RESULT_TRUE}" && test -z "${HAVE_W_NO_UNUSED_RESULT_FALSE}"; then
  17413. as_fn_error $? "conditional \"HAVE_W_NO_UNUSED_RESULT\" was never defined.
  17414. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17415. fi
  17416. if test -z "${HAVE_SIZED_DEALLOCATION_TRUE}" && test -z "${HAVE_SIZED_DEALLOCATION_FALSE}"; then
  17417. as_fn_error $? "conditional \"HAVE_SIZED_DEALLOCATION\" was never defined.
  17418. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17419. fi
  17420. if test -z "${BUILD_EMERGENCY_MALLOC_TRUE}" && test -z "${BUILD_EMERGENCY_MALLOC_FALSE}"; then
  17421. as_fn_error $? "conditional \"BUILD_EMERGENCY_MALLOC\" was never defined.
  17422. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17423. fi
  17424. if test -z "${HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE}" && test -z "${HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE}"; then
  17425. as_fn_error $? "conditional \"HAVE_PTHREAD_DESPITE_ASKING_FOR\" was never defined.
  17426. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17427. fi
  17428. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  17429. as_fn_error $? "conditional \"MINGW\" was never defined.
  17430. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17431. fi
  17432. if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then
  17433. as_fn_error $? "conditional \"OSX\" was never defined.
  17434. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17435. fi
  17436. if test -z "${WITH_CPU_PROFILER_TRUE}" && test -z "${WITH_CPU_PROFILER_FALSE}"; then
  17437. as_fn_error $? "conditional \"WITH_CPU_PROFILER\" was never defined.
  17438. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17439. fi
  17440. if test -z "${WITH_HEAP_PROFILER_TRUE}" && test -z "${WITH_HEAP_PROFILER_FALSE}"; then
  17441. as_fn_error $? "conditional \"WITH_HEAP_PROFILER\" was never defined.
  17442. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17443. fi
  17444. if test -z "${WITH_HEAP_CHECKER_TRUE}" && test -z "${WITH_HEAP_CHECKER_FALSE}"; then
  17445. as_fn_error $? "conditional \"WITH_HEAP_CHECKER\" was never defined.
  17446. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17447. fi
  17448. if test -z "${WITH_DEBUGALLOC_TRUE}" && test -z "${WITH_DEBUGALLOC_FALSE}"; then
  17449. as_fn_error $? "conditional \"WITH_DEBUGALLOC\" was never defined.
  17450. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17451. fi
  17452. if test -z "${WITH_HEAP_PROFILER_OR_CHECKER_TRUE}" && test -z "${WITH_HEAP_PROFILER_OR_CHECKER_FALSE}"; then
  17453. as_fn_error $? "conditional \"WITH_HEAP_PROFILER_OR_CHECKER\" was never defined.
  17454. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17455. fi
  17456. if test -z "${WITH_STACK_TRACE_TRUE}" && test -z "${WITH_STACK_TRACE_FALSE}"; then
  17457. as_fn_error $? "conditional \"WITH_STACK_TRACE\" was never defined.
  17458. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17459. fi
  17460. : "${CONFIG_STATUS=./config.status}"
  17461. ac_write_fail=0
  17462. ac_clean_files_save=$ac_clean_files
  17463. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17464. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17465. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17466. as_write_fail=0
  17467. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17468. #! $SHELL
  17469. # Generated by $as_me.
  17470. # Run this file to recreate the current configuration.
  17471. # Compiler output produced by configure, useful for debugging
  17472. # configure, is in config.log if it exists.
  17473. debug=false
  17474. ac_cs_recheck=false
  17475. ac_cs_silent=false
  17476. SHELL=\${CONFIG_SHELL-$SHELL}
  17477. export SHELL
  17478. _ASEOF
  17479. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17480. ## -------------------- ##
  17481. ## M4sh Initialization. ##
  17482. ## -------------------- ##
  17483. # Be more Bourne compatible
  17484. DUALCASE=1; export DUALCASE # for MKS sh
  17485. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17486. emulate sh
  17487. NULLCMD=:
  17488. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17489. # is contrary to our usage. Disable this feature.
  17490. alias -g '${1+"$@"}'='"$@"'
  17491. setopt NO_GLOB_SUBST
  17492. else
  17493. case `(set -o) 2>/dev/null` in #(
  17494. *posix*) :
  17495. set -o posix ;; #(
  17496. *) :
  17497. ;;
  17498. esac
  17499. fi
  17500. as_nl='
  17501. '
  17502. export as_nl
  17503. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17504. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17505. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17506. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17507. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17508. # but without wasting forks for bash or zsh.
  17509. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17510. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17511. as_echo='print -r --'
  17512. as_echo_n='print -rn --'
  17513. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17514. as_echo='printf %s\n'
  17515. as_echo_n='printf %s'
  17516. else
  17517. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17518. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17519. as_echo_n='/usr/ucb/echo -n'
  17520. else
  17521. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17522. as_echo_n_body='eval
  17523. arg=$1;
  17524. case $arg in #(
  17525. *"$as_nl"*)
  17526. expr "X$arg" : "X\\(.*\\)$as_nl";
  17527. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17528. esac;
  17529. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17530. '
  17531. export as_echo_n_body
  17532. as_echo_n='sh -c $as_echo_n_body as_echo'
  17533. fi
  17534. export as_echo_body
  17535. as_echo='sh -c $as_echo_body as_echo'
  17536. fi
  17537. # The user is always right.
  17538. if test "${PATH_SEPARATOR+set}" != set; then
  17539. PATH_SEPARATOR=:
  17540. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17541. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17542. PATH_SEPARATOR=';'
  17543. }
  17544. fi
  17545. # IFS
  17546. # We need space, tab and new line, in precisely that order. Quoting is
  17547. # there to prevent editors from complaining about space-tab.
  17548. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17549. # splitting by setting IFS to empty value.)
  17550. IFS=" "" $as_nl"
  17551. # Find who we are. Look in the path if we contain no directory separator.
  17552. as_myself=
  17553. case $0 in #((
  17554. *[\\/]* ) as_myself=$0 ;;
  17555. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17556. for as_dir in $PATH
  17557. do
  17558. IFS=$as_save_IFS
  17559. test -z "$as_dir" && as_dir=.
  17560. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17561. done
  17562. IFS=$as_save_IFS
  17563. ;;
  17564. esac
  17565. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17566. # in which case we are not to be found in the path.
  17567. if test "x$as_myself" = x; then
  17568. as_myself=$0
  17569. fi
  17570. if test ! -f "$as_myself"; then
  17571. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17572. exit 1
  17573. fi
  17574. # Unset variables that we do not need and which cause bugs (e.g. in
  17575. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  17576. # suppresses any "Segmentation fault" message there. '((' could
  17577. # trigger a bug in pdksh 5.2.14.
  17578. for as_var in BASH_ENV ENV MAIL MAILPATH
  17579. do eval test x\${$as_var+set} = xset \
  17580. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17581. done
  17582. PS1='$ '
  17583. PS2='> '
  17584. PS4='+ '
  17585. # NLS nuisances.
  17586. LC_ALL=C
  17587. export LC_ALL
  17588. LANGUAGE=C
  17589. export LANGUAGE
  17590. # CDPATH.
  17591. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17592. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17593. # ----------------------------------------
  17594. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17595. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17596. # script with STATUS, using 1 if that was 0.
  17597. as_fn_error ()
  17598. {
  17599. as_status=$1; test $as_status -eq 0 && as_status=1
  17600. if test "$4"; then
  17601. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17602. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17603. fi
  17604. $as_echo "$as_me: error: $2" >&2
  17605. as_fn_exit $as_status
  17606. } # as_fn_error
  17607. # as_fn_set_status STATUS
  17608. # -----------------------
  17609. # Set $? to STATUS, without forking.
  17610. as_fn_set_status ()
  17611. {
  17612. return $1
  17613. } # as_fn_set_status
  17614. # as_fn_exit STATUS
  17615. # -----------------
  17616. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17617. as_fn_exit ()
  17618. {
  17619. set +e
  17620. as_fn_set_status $1
  17621. exit $1
  17622. } # as_fn_exit
  17623. # as_fn_unset VAR
  17624. # ---------------
  17625. # Portably unset VAR.
  17626. as_fn_unset ()
  17627. {
  17628. { eval $1=; unset $1;}
  17629. }
  17630. as_unset=as_fn_unset
  17631. # as_fn_append VAR VALUE
  17632. # ----------------------
  17633. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17634. # advantage of any shell optimizations that allow amortized linear growth over
  17635. # repeated appends, instead of the typical quadratic growth present in naive
  17636. # implementations.
  17637. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  17638. eval 'as_fn_append ()
  17639. {
  17640. eval $1+=\$2
  17641. }'
  17642. else
  17643. as_fn_append ()
  17644. {
  17645. eval $1=\$$1\$2
  17646. }
  17647. fi # as_fn_append
  17648. # as_fn_arith ARG...
  17649. # ------------------
  17650. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17651. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17652. # must be portable across $(()) and expr.
  17653. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  17654. eval 'as_fn_arith ()
  17655. {
  17656. as_val=$(( $* ))
  17657. }'
  17658. else
  17659. as_fn_arith ()
  17660. {
  17661. as_val=`expr "$@" || test $? -eq 1`
  17662. }
  17663. fi # as_fn_arith
  17664. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17665. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17666. as_expr=expr
  17667. else
  17668. as_expr=false
  17669. fi
  17670. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17671. as_basename=basename
  17672. else
  17673. as_basename=false
  17674. fi
  17675. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17676. as_dirname=dirname
  17677. else
  17678. as_dirname=false
  17679. fi
  17680. as_me=`$as_basename -- "$0" ||
  17681. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17682. X"$0" : 'X\(//\)$' \| \
  17683. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17684. $as_echo X/"$0" |
  17685. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17686. s//\1/
  17687. q
  17688. }
  17689. /^X\/\(\/\/\)$/{
  17690. s//\1/
  17691. q
  17692. }
  17693. /^X\/\(\/\).*/{
  17694. s//\1/
  17695. q
  17696. }
  17697. s/.*/./; q'`
  17698. # Avoid depending upon Character Ranges.
  17699. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17700. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17701. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17702. as_cr_digits='0123456789'
  17703. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17704. ECHO_C= ECHO_N= ECHO_T=
  17705. case `echo -n x` in #(((((
  17706. -n*)
  17707. case `echo 'xy\c'` in
  17708. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17709. xy) ECHO_C='\c';;
  17710. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17711. ECHO_T=' ';;
  17712. esac;;
  17713. *)
  17714. ECHO_N='-n';;
  17715. esac
  17716. rm -f conf$$ conf$$.exe conf$$.file
  17717. if test -d conf$$.dir; then
  17718. rm -f conf$$.dir/conf$$.file
  17719. else
  17720. rm -f conf$$.dir
  17721. mkdir conf$$.dir 2>/dev/null
  17722. fi
  17723. if (echo >conf$$.file) 2>/dev/null; then
  17724. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17725. as_ln_s='ln -s'
  17726. # ... but there are two gotchas:
  17727. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17728. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17729. # In both cases, we have to default to `cp -pR'.
  17730. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17731. as_ln_s='cp -pR'
  17732. elif ln conf$$.file conf$$ 2>/dev/null; then
  17733. as_ln_s=ln
  17734. else
  17735. as_ln_s='cp -pR'
  17736. fi
  17737. else
  17738. as_ln_s='cp -pR'
  17739. fi
  17740. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17741. rmdir conf$$.dir 2>/dev/null
  17742. # as_fn_mkdir_p
  17743. # -------------
  17744. # Create "$as_dir" as a directory, including parents if necessary.
  17745. as_fn_mkdir_p ()
  17746. {
  17747. case $as_dir in #(
  17748. -*) as_dir=./$as_dir;;
  17749. esac
  17750. test -d "$as_dir" || eval $as_mkdir_p || {
  17751. as_dirs=
  17752. while :; do
  17753. case $as_dir in #(
  17754. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17755. *) as_qdir=$as_dir;;
  17756. esac
  17757. as_dirs="'$as_qdir' $as_dirs"
  17758. as_dir=`$as_dirname -- "$as_dir" ||
  17759. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17760. X"$as_dir" : 'X\(//\)[^/]' \| \
  17761. X"$as_dir" : 'X\(//\)$' \| \
  17762. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17763. $as_echo X"$as_dir" |
  17764. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17765. s//\1/
  17766. q
  17767. }
  17768. /^X\(\/\/\)[^/].*/{
  17769. s//\1/
  17770. q
  17771. }
  17772. /^X\(\/\/\)$/{
  17773. s//\1/
  17774. q
  17775. }
  17776. /^X\(\/\).*/{
  17777. s//\1/
  17778. q
  17779. }
  17780. s/.*/./; q'`
  17781. test -d "$as_dir" && break
  17782. done
  17783. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17784. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  17785. } # as_fn_mkdir_p
  17786. if mkdir -p . 2>/dev/null; then
  17787. as_mkdir_p='mkdir -p "$as_dir"'
  17788. else
  17789. test -d ./-p && rmdir ./-p
  17790. as_mkdir_p=false
  17791. fi
  17792. # as_fn_executable_p FILE
  17793. # -----------------------
  17794. # Test if FILE is an executable regular file.
  17795. as_fn_executable_p ()
  17796. {
  17797. test -f "$1" && test -x "$1"
  17798. } # as_fn_executable_p
  17799. as_test_x='test -x'
  17800. as_executable_p=as_fn_executable_p
  17801. # Sed expression to map a string onto a valid CPP name.
  17802. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17803. # Sed expression to map a string onto a valid variable name.
  17804. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17805. exec 6>&1
  17806. ## ----------------------------------- ##
  17807. ## Main body of $CONFIG_STATUS script. ##
  17808. ## ----------------------------------- ##
  17809. _ASEOF
  17810. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  17811. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17812. # Save the log message, to keep $0 and so on meaningful, and to
  17813. # report actual input values of CONFIG_FILES etc. instead of their
  17814. # values after options handling.
  17815. ac_log="
  17816. This file was extended by gperftools $as_me 2.5, which was
  17817. generated by GNU Autoconf 2.69. Invocation command line was
  17818. CONFIG_FILES = $CONFIG_FILES
  17819. CONFIG_HEADERS = $CONFIG_HEADERS
  17820. CONFIG_LINKS = $CONFIG_LINKS
  17821. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17822. $ $0 $@
  17823. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17824. "
  17825. _ACEOF
  17826. case $ac_config_files in *"
  17827. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  17828. esac
  17829. case $ac_config_headers in *"
  17830. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  17831. esac
  17832. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17833. # Files that config.status was made for.
  17834. config_files="$ac_config_files"
  17835. config_headers="$ac_config_headers"
  17836. config_commands="$ac_config_commands"
  17837. _ACEOF
  17838. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17839. ac_cs_usage="\
  17840. \`$as_me' instantiates files and other configuration actions
  17841. from templates according to the current configuration. Unless the files
  17842. and actions are specified as TAGs, all are instantiated by default.
  17843. Usage: $0 [OPTION]... [TAG]...
  17844. -h, --help print this help, then exit
  17845. -V, --version print version number and configuration settings, then exit
  17846. --config print configuration, then exit
  17847. -q, --quiet, --silent
  17848. do not print progress messages
  17849. -d, --debug don't remove temporary files
  17850. --recheck update $as_me by reconfiguring in the same conditions
  17851. --file=FILE[:TEMPLATE]
  17852. instantiate the configuration file FILE
  17853. --header=FILE[:TEMPLATE]
  17854. instantiate the configuration header FILE
  17855. Configuration files:
  17856. $config_files
  17857. Configuration headers:
  17858. $config_headers
  17859. Configuration commands:
  17860. $config_commands
  17861. Report bugs to <gperftools@googlegroups.com>."
  17862. _ACEOF
  17863. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17864. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  17865. ac_cs_version="\\
  17866. gperftools config.status 2.5
  17867. configured by $0, generated by GNU Autoconf 2.69,
  17868. with options \\"\$ac_cs_config\\"
  17869. Copyright (C) 2012 Free Software Foundation, Inc.
  17870. This config.status script is free software; the Free Software Foundation
  17871. gives unlimited permission to copy, distribute and modify it."
  17872. ac_pwd='$ac_pwd'
  17873. srcdir='$srcdir'
  17874. INSTALL='$INSTALL'
  17875. MKDIR_P='$MKDIR_P'
  17876. AWK='$AWK'
  17877. test -n "\$AWK" || AWK=awk
  17878. _ACEOF
  17879. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17880. # The default lists apply if the user does not specify any file.
  17881. ac_need_defaults=:
  17882. while test $# != 0
  17883. do
  17884. case $1 in
  17885. --*=?*)
  17886. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17887. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17888. ac_shift=:
  17889. ;;
  17890. --*=)
  17891. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17892. ac_optarg=
  17893. ac_shift=:
  17894. ;;
  17895. *)
  17896. ac_option=$1
  17897. ac_optarg=$2
  17898. ac_shift=shift
  17899. ;;
  17900. esac
  17901. case $ac_option in
  17902. # Handling of the options.
  17903. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17904. ac_cs_recheck=: ;;
  17905. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17906. $as_echo "$ac_cs_version"; exit ;;
  17907. --config | --confi | --conf | --con | --co | --c )
  17908. $as_echo "$ac_cs_config"; exit ;;
  17909. --debug | --debu | --deb | --de | --d | -d )
  17910. debug=: ;;
  17911. --file | --fil | --fi | --f )
  17912. $ac_shift
  17913. case $ac_optarg in
  17914. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17915. '') as_fn_error $? "missing file argument" ;;
  17916. esac
  17917. as_fn_append CONFIG_FILES " '$ac_optarg'"
  17918. ac_need_defaults=false;;
  17919. --header | --heade | --head | --hea )
  17920. $ac_shift
  17921. case $ac_optarg in
  17922. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17923. esac
  17924. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  17925. ac_need_defaults=false;;
  17926. --he | --h)
  17927. # Conflict between --help and --header
  17928. as_fn_error $? "ambiguous option: \`$1'
  17929. Try \`$0 --help' for more information.";;
  17930. --help | --hel | -h )
  17931. $as_echo "$ac_cs_usage"; exit ;;
  17932. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17933. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  17934. ac_cs_silent=: ;;
  17935. # This is an error.
  17936. -*) as_fn_error $? "unrecognized option: \`$1'
  17937. Try \`$0 --help' for more information." ;;
  17938. *) as_fn_append ac_config_targets " $1"
  17939. ac_need_defaults=false ;;
  17940. esac
  17941. shift
  17942. done
  17943. ac_configure_extra_args=
  17944. if $ac_cs_silent; then
  17945. exec 6>/dev/null
  17946. ac_configure_extra_args="$ac_configure_extra_args --silent"
  17947. fi
  17948. _ACEOF
  17949. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17950. if \$ac_cs_recheck; then
  17951. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  17952. shift
  17953. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  17954. CONFIG_SHELL='$SHELL'
  17955. export CONFIG_SHELL
  17956. exec "\$@"
  17957. fi
  17958. _ACEOF
  17959. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17960. exec 5>>config.log
  17961. {
  17962. echo
  17963. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  17964. ## Running $as_me. ##
  17965. _ASBOX
  17966. $as_echo "$ac_log"
  17967. } >&5
  17968. _ACEOF
  17969. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17970. #
  17971. # INIT-COMMANDS
  17972. #
  17973. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  17974. # The HP-UX ksh and POSIX shell print the target directory to stdout
  17975. # if CDPATH is set.
  17976. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17977. sed_quote_subst='$sed_quote_subst'
  17978. double_quote_subst='$double_quote_subst'
  17979. delay_variable_subst='$delay_variable_subst'
  17980. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  17981. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  17982. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  17983. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  17984. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  17985. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  17986. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  17987. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  17988. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  17989. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  17990. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  17991. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  17992. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  17993. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  17994. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  17995. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  17996. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  17997. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  17998. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  17999. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18000. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18001. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18002. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18003. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18004. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18005. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18006. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18007. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18008. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18009. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18010. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18011. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18012. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18013. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18014. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18015. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18016. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18017. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18018. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18019. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18020. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18021. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18022. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18023. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18024. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18025. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18026. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18027. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18028. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18029. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18030. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18031. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18032. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18033. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18034. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18035. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18036. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  18037. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18038. 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"`'
  18039. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  18040. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18041. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18042. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  18043. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18044. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18045. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18046. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18047. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18048. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18049. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18050. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18051. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18052. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18053. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18054. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18055. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18056. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18057. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18058. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18059. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18060. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18061. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18062. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18063. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18064. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18065. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18066. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18067. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18068. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18069. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18070. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18071. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18072. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18073. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18074. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18075. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18076. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18077. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18078. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18079. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18080. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18081. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18082. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18083. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18084. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18085. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18086. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18087. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18088. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18089. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18090. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18091. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18092. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18093. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18094. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18095. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18096. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18097. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18098. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18099. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18100. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18101. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18102. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18103. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18104. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18105. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18106. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18107. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  18108. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  18109. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18110. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18111. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18112. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18113. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18114. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18115. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18116. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18117. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18118. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18119. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18120. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18121. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18122. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18123. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18124. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18125. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18126. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18127. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18128. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18129. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18130. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18131. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18132. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18133. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18134. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18135. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18136. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18137. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18138. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18139. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18140. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18141. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18142. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18143. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18144. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18145. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18146. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18147. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18148. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18149. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18150. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18151. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18152. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18153. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18154. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18155. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18156. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18157. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18158. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18159. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18160. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18161. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18162. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18163. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18164. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18165. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18166. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18167. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18168. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18169. LTCC='$LTCC'
  18170. LTCFLAGS='$LTCFLAGS'
  18171. compiler='$compiler_DEFAULT'
  18172. # A function that is used when there is no print builtin or printf.
  18173. func_fallback_echo ()
  18174. {
  18175. eval 'cat <<_LTECHO_EOF
  18176. \$1
  18177. _LTECHO_EOF'
  18178. }
  18179. # Quote evaled strings.
  18180. for var in SHELL \
  18181. ECHO \
  18182. PATH_SEPARATOR \
  18183. SED \
  18184. GREP \
  18185. EGREP \
  18186. FGREP \
  18187. LD \
  18188. NM \
  18189. LN_S \
  18190. lt_SP2NL \
  18191. lt_NL2SP \
  18192. reload_flag \
  18193. OBJDUMP \
  18194. deplibs_check_method \
  18195. file_magic_cmd \
  18196. file_magic_glob \
  18197. want_nocaseglob \
  18198. DLLTOOL \
  18199. sharedlib_from_linklib_cmd \
  18200. AR \
  18201. AR_FLAGS \
  18202. archiver_list_spec \
  18203. STRIP \
  18204. RANLIB \
  18205. CC \
  18206. CFLAGS \
  18207. compiler \
  18208. lt_cv_sys_global_symbol_pipe \
  18209. lt_cv_sys_global_symbol_to_cdecl \
  18210. lt_cv_sys_global_symbol_to_import \
  18211. lt_cv_sys_global_symbol_to_c_name_address \
  18212. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18213. lt_cv_nm_interface \
  18214. nm_file_list_spec \
  18215. lt_cv_truncate_bin \
  18216. lt_prog_compiler_no_builtin_flag \
  18217. lt_prog_compiler_pic \
  18218. lt_prog_compiler_wl \
  18219. lt_prog_compiler_static \
  18220. lt_cv_prog_compiler_c_o \
  18221. need_locks \
  18222. MANIFEST_TOOL \
  18223. DSYMUTIL \
  18224. NMEDIT \
  18225. LIPO \
  18226. OTOOL \
  18227. OTOOL64 \
  18228. shrext_cmds \
  18229. export_dynamic_flag_spec \
  18230. whole_archive_flag_spec \
  18231. compiler_needs_object \
  18232. with_gnu_ld \
  18233. allow_undefined_flag \
  18234. no_undefined_flag \
  18235. hardcode_libdir_flag_spec \
  18236. hardcode_libdir_separator \
  18237. exclude_expsyms \
  18238. include_expsyms \
  18239. file_list_spec \
  18240. variables_saved_for_relink \
  18241. libname_spec \
  18242. library_names_spec \
  18243. soname_spec \
  18244. install_override_mode \
  18245. finish_eval \
  18246. old_striplib \
  18247. striplib \
  18248. compiler_lib_search_dirs \
  18249. predep_objects \
  18250. postdep_objects \
  18251. predeps \
  18252. postdeps \
  18253. compiler_lib_search_path \
  18254. LD_CXX \
  18255. reload_flag_CXX \
  18256. compiler_CXX \
  18257. lt_prog_compiler_no_builtin_flag_CXX \
  18258. lt_prog_compiler_pic_CXX \
  18259. lt_prog_compiler_wl_CXX \
  18260. lt_prog_compiler_static_CXX \
  18261. lt_cv_prog_compiler_c_o_CXX \
  18262. export_dynamic_flag_spec_CXX \
  18263. whole_archive_flag_spec_CXX \
  18264. compiler_needs_object_CXX \
  18265. with_gnu_ld_CXX \
  18266. allow_undefined_flag_CXX \
  18267. no_undefined_flag_CXX \
  18268. hardcode_libdir_flag_spec_CXX \
  18269. hardcode_libdir_separator_CXX \
  18270. exclude_expsyms_CXX \
  18271. include_expsyms_CXX \
  18272. file_list_spec_CXX \
  18273. compiler_lib_search_dirs_CXX \
  18274. predep_objects_CXX \
  18275. postdep_objects_CXX \
  18276. predeps_CXX \
  18277. postdeps_CXX \
  18278. compiler_lib_search_path_CXX; do
  18279. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18280. *[\\\\\\\`\\"\\\$]*)
  18281. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18282. ;;
  18283. *)
  18284. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18285. ;;
  18286. esac
  18287. done
  18288. # Double-quote double-evaled strings.
  18289. for var in reload_cmds \
  18290. old_postinstall_cmds \
  18291. old_postuninstall_cmds \
  18292. old_archive_cmds \
  18293. extract_expsyms_cmds \
  18294. old_archive_from_new_cmds \
  18295. old_archive_from_expsyms_cmds \
  18296. archive_cmds \
  18297. archive_expsym_cmds \
  18298. module_cmds \
  18299. module_expsym_cmds \
  18300. export_symbols_cmds \
  18301. prelink_cmds \
  18302. postlink_cmds \
  18303. postinstall_cmds \
  18304. postuninstall_cmds \
  18305. finish_cmds \
  18306. sys_lib_search_path_spec \
  18307. configure_time_dlsearch_path \
  18308. configure_time_lt_sys_library_path \
  18309. reload_cmds_CXX \
  18310. old_archive_cmds_CXX \
  18311. old_archive_from_new_cmds_CXX \
  18312. old_archive_from_expsyms_cmds_CXX \
  18313. archive_cmds_CXX \
  18314. archive_expsym_cmds_CXX \
  18315. module_cmds_CXX \
  18316. module_expsym_cmds_CXX \
  18317. export_symbols_cmds_CXX \
  18318. prelink_cmds_CXX \
  18319. postlink_cmds_CXX; do
  18320. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18321. *[\\\\\\\`\\"\\\$]*)
  18322. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18323. ;;
  18324. *)
  18325. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18326. ;;
  18327. esac
  18328. done
  18329. ac_aux_dir='$ac_aux_dir'
  18330. # See if we are running on zsh, and set the options that allow our
  18331. # commands through without removal of \ escapes INIT.
  18332. if test -n "\${ZSH_VERSION+set}"; then
  18333. setopt NO_GLOB_SUBST
  18334. fi
  18335. PACKAGE='$PACKAGE'
  18336. VERSION='$VERSION'
  18337. RM='$RM'
  18338. ofile='$ofile'
  18339. _ACEOF
  18340. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18341. # Handling of arguments.
  18342. for ac_config_target in $ac_config_targets
  18343. do
  18344. case $ac_config_target in
  18345. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  18346. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18347. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18348. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18349. "src/gperftools/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/gperftools/tcmalloc.h" ;;
  18350. "src/windows/gperftools/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/windows/gperftools/tcmalloc.h" ;;
  18351. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18352. esac
  18353. done
  18354. # If the user did not use the arguments to specify the items to instantiate,
  18355. # then the envvar interface is used. Set only those that are not.
  18356. # We use the long form for the default assignment because of an extremely
  18357. # bizarre bug on SunOS 4.1.3.
  18358. if $ac_need_defaults; then
  18359. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18360. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18361. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18362. fi
  18363. # Have a temporary directory for convenience. Make it in the build tree
  18364. # simply because there is no reason against having it here, and in addition,
  18365. # creating and moving files from /tmp can sometimes cause problems.
  18366. # Hook for its removal unless debugging.
  18367. # Note that there is a small window in which the directory will not be cleaned:
  18368. # after its creation but before its name has been assigned to `$tmp'.
  18369. $debug ||
  18370. {
  18371. tmp= ac_tmp=
  18372. trap 'exit_status=$?
  18373. : "${ac_tmp:=$tmp}"
  18374. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18375. ' 0
  18376. trap 'as_fn_exit 1' 1 2 13 15
  18377. }
  18378. # Create a (secure) tmp directory for tmp files.
  18379. {
  18380. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18381. test -d "$tmp"
  18382. } ||
  18383. {
  18384. tmp=./conf$$-$RANDOM
  18385. (umask 077 && mkdir "$tmp")
  18386. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18387. ac_tmp=$tmp
  18388. # Set up the scripts for CONFIG_FILES section.
  18389. # No need to generate them if there are no CONFIG_FILES.
  18390. # This happens for instance with `./config.status config.h'.
  18391. if test -n "$CONFIG_FILES"; then
  18392. ac_cr=`echo X | tr X '\015'`
  18393. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18394. # But we know of no other shell where ac_cr would be empty at this
  18395. # point, so we can use a bashism as a fallback.
  18396. if test "x$ac_cr" = x; then
  18397. eval ac_cr=\$\'\\r\'
  18398. fi
  18399. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18400. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18401. ac_cs_awk_cr='\\r'
  18402. else
  18403. ac_cs_awk_cr=$ac_cr
  18404. fi
  18405. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18406. _ACEOF
  18407. {
  18408. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18409. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18410. echo "_ACEOF"
  18411. } >conf$$subs.sh ||
  18412. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18413. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18414. ac_delim='%!_!# '
  18415. for ac_last_try in false false false false false :; do
  18416. . ./conf$$subs.sh ||
  18417. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18418. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18419. if test $ac_delim_n = $ac_delim_num; then
  18420. break
  18421. elif $ac_last_try; then
  18422. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18423. else
  18424. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18425. fi
  18426. done
  18427. rm -f conf$$subs.sh
  18428. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18429. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18430. _ACEOF
  18431. sed -n '
  18432. h
  18433. s/^/S["/; s/!.*/"]=/
  18434. p
  18435. g
  18436. s/^[^!]*!//
  18437. :repl
  18438. t repl
  18439. s/'"$ac_delim"'$//
  18440. t delim
  18441. :nl
  18442. h
  18443. s/\(.\{148\}\)..*/\1/
  18444. t more1
  18445. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18446. p
  18447. n
  18448. b repl
  18449. :more1
  18450. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18451. p
  18452. g
  18453. s/.\{148\}//
  18454. t nl
  18455. :delim
  18456. h
  18457. s/\(.\{148\}\)..*/\1/
  18458. t more2
  18459. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18460. p
  18461. b
  18462. :more2
  18463. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18464. p
  18465. g
  18466. s/.\{148\}//
  18467. t delim
  18468. ' <conf$$subs.awk | sed '
  18469. /^[^""]/{
  18470. N
  18471. s/\n//
  18472. }
  18473. ' >>$CONFIG_STATUS || ac_write_fail=1
  18474. rm -f conf$$subs.awk
  18475. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18476. _ACAWK
  18477. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18478. for (key in S) S_is_set[key] = 1
  18479. FS = ""
  18480. }
  18481. {
  18482. line = $ 0
  18483. nfields = split(line, field, "@")
  18484. substed = 0
  18485. len = length(field[1])
  18486. for (i = 2; i < nfields; i++) {
  18487. key = field[i]
  18488. keylen = length(key)
  18489. if (S_is_set[key]) {
  18490. value = S[key]
  18491. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18492. len += length(value) + length(field[++i])
  18493. substed = 1
  18494. } else
  18495. len += 1 + keylen
  18496. }
  18497. print line
  18498. }
  18499. _ACAWK
  18500. _ACEOF
  18501. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18502. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18503. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18504. else
  18505. cat
  18506. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18507. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18508. _ACEOF
  18509. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18510. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18511. # trailing colons and then remove the whole line if VPATH becomes empty
  18512. # (actually we leave an empty line to preserve line numbers).
  18513. if test "x$srcdir" = x.; then
  18514. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18515. h
  18516. s///
  18517. s/^/:/
  18518. s/[ ]*$/:/
  18519. s/:\$(srcdir):/:/g
  18520. s/:\${srcdir}:/:/g
  18521. s/:@srcdir@:/:/g
  18522. s/^:*//
  18523. s/:*$//
  18524. x
  18525. s/\(=[ ]*\).*/\1/
  18526. G
  18527. s/\n//
  18528. s/^[^=]*=[ ]*$//
  18529. }'
  18530. fi
  18531. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18532. fi # test -n "$CONFIG_FILES"
  18533. # Set up the scripts for CONFIG_HEADERS section.
  18534. # No need to generate them if there are no CONFIG_HEADERS.
  18535. # This happens for instance with `./config.status Makefile'.
  18536. if test -n "$CONFIG_HEADERS"; then
  18537. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18538. BEGIN {
  18539. _ACEOF
  18540. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18541. # here-document in config.status, that substitutes the proper values into
  18542. # config.h.in to produce config.h.
  18543. # Create a delimiter string that does not exist in confdefs.h, to ease
  18544. # handling of long lines.
  18545. ac_delim='%!_!# '
  18546. for ac_last_try in false false :; do
  18547. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18548. if test -z "$ac_tt"; then
  18549. break
  18550. elif $ac_last_try; then
  18551. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18552. else
  18553. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18554. fi
  18555. done
  18556. # For the awk script, D is an array of macro values keyed by name,
  18557. # likewise P contains macro parameters if any. Preserve backslash
  18558. # newline sequences.
  18559. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18560. sed -n '
  18561. s/.\{148\}/&'"$ac_delim"'/g
  18562. t rset
  18563. :rset
  18564. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18565. t def
  18566. d
  18567. :def
  18568. s/\\$//
  18569. t bsnl
  18570. s/["\\]/\\&/g
  18571. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18572. D["\1"]=" \3"/p
  18573. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18574. d
  18575. :bsnl
  18576. s/["\\]/\\&/g
  18577. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18578. D["\1"]=" \3\\\\\\n"\\/p
  18579. t cont
  18580. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18581. t cont
  18582. d
  18583. :cont
  18584. n
  18585. s/.\{148\}/&'"$ac_delim"'/g
  18586. t clear
  18587. :clear
  18588. s/\\$//
  18589. t bsnlc
  18590. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18591. d
  18592. :bsnlc
  18593. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18594. b cont
  18595. ' <confdefs.h | sed '
  18596. s/'"$ac_delim"'/"\\\
  18597. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18598. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18599. for (key in D) D_is_set[key] = 1
  18600. FS = ""
  18601. }
  18602. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18603. line = \$ 0
  18604. split(line, arg, " ")
  18605. if (arg[1] == "#") {
  18606. defundef = arg[2]
  18607. mac1 = arg[3]
  18608. } else {
  18609. defundef = substr(arg[1], 2)
  18610. mac1 = arg[2]
  18611. }
  18612. split(mac1, mac2, "(") #)
  18613. macro = mac2[1]
  18614. prefix = substr(line, 1, index(line, defundef) - 1)
  18615. if (D_is_set[macro]) {
  18616. # Preserve the white space surrounding the "#".
  18617. print prefix "define", macro P[macro] D[macro]
  18618. next
  18619. } else {
  18620. # Replace #undef with comments. This is necessary, for example,
  18621. # in the case of _POSIX_SOURCE, which is predefined and required
  18622. # on some systems where configure will not decide to define it.
  18623. if (defundef == "undef") {
  18624. print "/*", prefix defundef, macro, "*/"
  18625. next
  18626. }
  18627. }
  18628. }
  18629. { print }
  18630. _ACAWK
  18631. _ACEOF
  18632. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18633. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  18634. fi # test -n "$CONFIG_HEADERS"
  18635. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  18636. shift
  18637. for ac_tag
  18638. do
  18639. case $ac_tag in
  18640. :[FHLC]) ac_mode=$ac_tag; continue;;
  18641. esac
  18642. case $ac_mode$ac_tag in
  18643. :[FHL]*:*);;
  18644. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  18645. :[FH]-) ac_tag=-:-;;
  18646. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18647. esac
  18648. ac_save_IFS=$IFS
  18649. IFS=:
  18650. set x $ac_tag
  18651. IFS=$ac_save_IFS
  18652. shift
  18653. ac_file=$1
  18654. shift
  18655. case $ac_mode in
  18656. :L) ac_source=$1;;
  18657. :[FH])
  18658. ac_file_inputs=
  18659. for ac_f
  18660. do
  18661. case $ac_f in
  18662. -) ac_f="$ac_tmp/stdin";;
  18663. *) # Look for the file first in the build tree, then in the source tree
  18664. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18665. # because $ac_f cannot contain `:'.
  18666. test -f "$ac_f" ||
  18667. case $ac_f in
  18668. [\\/$]*) false;;
  18669. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18670. esac ||
  18671. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  18672. esac
  18673. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  18674. as_fn_append ac_file_inputs " '$ac_f'"
  18675. done
  18676. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18677. # use $as_me), people would be surprised to read:
  18678. # /* config.h. Generated by config.status. */
  18679. configure_input='Generated from '`
  18680. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  18681. `' by configure.'
  18682. if test x"$ac_file" != x-; then
  18683. configure_input="$ac_file. $configure_input"
  18684. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  18685. $as_echo "$as_me: creating $ac_file" >&6;}
  18686. fi
  18687. # Neutralize special characters interpreted by sed in replacement strings.
  18688. case $configure_input in #(
  18689. *\&* | *\|* | *\\* )
  18690. ac_sed_conf_input=`$as_echo "$configure_input" |
  18691. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  18692. *) ac_sed_conf_input=$configure_input;;
  18693. esac
  18694. case $ac_tag in
  18695. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  18696. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  18697. esac
  18698. ;;
  18699. esac
  18700. ac_dir=`$as_dirname -- "$ac_file" ||
  18701. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18702. X"$ac_file" : 'X\(//\)[^/]' \| \
  18703. X"$ac_file" : 'X\(//\)$' \| \
  18704. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18705. $as_echo X"$ac_file" |
  18706. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18707. s//\1/
  18708. q
  18709. }
  18710. /^X\(\/\/\)[^/].*/{
  18711. s//\1/
  18712. q
  18713. }
  18714. /^X\(\/\/\)$/{
  18715. s//\1/
  18716. q
  18717. }
  18718. /^X\(\/\).*/{
  18719. s//\1/
  18720. q
  18721. }
  18722. s/.*/./; q'`
  18723. as_dir="$ac_dir"; as_fn_mkdir_p
  18724. ac_builddir=.
  18725. case "$ac_dir" in
  18726. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18727. *)
  18728. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  18729. # A ".." for each directory in $ac_dir_suffix.
  18730. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18731. case $ac_top_builddir_sub in
  18732. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18733. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18734. esac ;;
  18735. esac
  18736. ac_abs_top_builddir=$ac_pwd
  18737. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18738. # for backward compatibility:
  18739. ac_top_builddir=$ac_top_build_prefix
  18740. case $srcdir in
  18741. .) # We are building in place.
  18742. ac_srcdir=.
  18743. ac_top_srcdir=$ac_top_builddir_sub
  18744. ac_abs_top_srcdir=$ac_pwd ;;
  18745. [\\/]* | ?:[\\/]* ) # Absolute name.
  18746. ac_srcdir=$srcdir$ac_dir_suffix;
  18747. ac_top_srcdir=$srcdir
  18748. ac_abs_top_srcdir=$srcdir ;;
  18749. *) # Relative name.
  18750. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18751. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18752. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18753. esac
  18754. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18755. case $ac_mode in
  18756. :F)
  18757. #
  18758. # CONFIG_FILE
  18759. #
  18760. case $INSTALL in
  18761. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18762. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  18763. esac
  18764. ac_MKDIR_P=$MKDIR_P
  18765. case $MKDIR_P in
  18766. [\\/$]* | ?:[\\/]* ) ;;
  18767. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  18768. esac
  18769. _ACEOF
  18770. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18771. # If the template does not know about datarootdir, expand it.
  18772. # FIXME: This hack should be removed a few years after 2.60.
  18773. ac_datarootdir_hack=; ac_datarootdir_seen=
  18774. ac_sed_dataroot='
  18775. /datarootdir/ {
  18776. p
  18777. q
  18778. }
  18779. /@datadir@/p
  18780. /@docdir@/p
  18781. /@infodir@/p
  18782. /@localedir@/p
  18783. /@mandir@/p'
  18784. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  18785. *datarootdir*) ac_datarootdir_seen=yes;;
  18786. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  18787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  18788. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  18789. _ACEOF
  18790. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18791. ac_datarootdir_hack='
  18792. s&@datadir@&$datadir&g
  18793. s&@docdir@&$docdir&g
  18794. s&@infodir@&$infodir&g
  18795. s&@localedir@&$localedir&g
  18796. s&@mandir@&$mandir&g
  18797. s&\\\${datarootdir}&$datarootdir&g' ;;
  18798. esac
  18799. _ACEOF
  18800. # Neutralize VPATH when `$srcdir' = `.'.
  18801. # Shell code in configure.ac might set extrasub.
  18802. # FIXME: do we really want to maintain this feature?
  18803. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18804. ac_sed_extra="$ac_vpsub
  18805. $extrasub
  18806. _ACEOF
  18807. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18808. :t
  18809. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18810. s|@configure_input@|$ac_sed_conf_input|;t t
  18811. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18812. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  18813. s&@srcdir@&$ac_srcdir&;t t
  18814. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18815. s&@top_srcdir@&$ac_top_srcdir&;t t
  18816. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18817. s&@builddir@&$ac_builddir&;t t
  18818. s&@abs_builddir@&$ac_abs_builddir&;t t
  18819. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18820. s&@INSTALL@&$ac_INSTALL&;t t
  18821. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  18822. $ac_datarootdir_hack
  18823. "
  18824. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  18825. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18826. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18827. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  18828. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  18829. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  18830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18831. which seems to be undefined. Please make sure it is defined" >&5
  18832. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18833. which seems to be undefined. Please make sure it is defined" >&2;}
  18834. rm -f "$ac_tmp/stdin"
  18835. case $ac_file in
  18836. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  18837. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  18838. esac \
  18839. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18840. ;;
  18841. :H)
  18842. #
  18843. # CONFIG_HEADER
  18844. #
  18845. if test x"$ac_file" != x-; then
  18846. {
  18847. $as_echo "/* $configure_input */" \
  18848. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  18849. } >"$ac_tmp/config.h" \
  18850. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18851. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  18852. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  18853. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  18854. else
  18855. rm -f "$ac_file"
  18856. mv "$ac_tmp/config.h" "$ac_file" \
  18857. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18858. fi
  18859. else
  18860. $as_echo "/* $configure_input */" \
  18861. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  18862. || as_fn_error $? "could not create -" "$LINENO" 5
  18863. fi
  18864. # Compute "$ac_file"'s index in $config_headers.
  18865. _am_arg="$ac_file"
  18866. _am_stamp_count=1
  18867. for _am_header in $config_headers :; do
  18868. case $_am_header in
  18869. $_am_arg | $_am_arg:* )
  18870. break ;;
  18871. * )
  18872. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  18873. esac
  18874. done
  18875. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  18876. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18877. X"$_am_arg" : 'X\(//\)[^/]' \| \
  18878. X"$_am_arg" : 'X\(//\)$' \| \
  18879. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  18880. $as_echo X"$_am_arg" |
  18881. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18882. s//\1/
  18883. q
  18884. }
  18885. /^X\(\/\/\)[^/].*/{
  18886. s//\1/
  18887. q
  18888. }
  18889. /^X\(\/\/\)$/{
  18890. s//\1/
  18891. q
  18892. }
  18893. /^X\(\/\).*/{
  18894. s//\1/
  18895. q
  18896. }
  18897. s/.*/./; q'`/stamp-h$_am_stamp_count
  18898. ;;
  18899. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  18900. $as_echo "$as_me: executing $ac_file commands" >&6;}
  18901. ;;
  18902. esac
  18903. case $ac_file$ac_mode in
  18904. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  18905. # Older Autoconf quotes --file arguments for eval, but not when files
  18906. # are listed without --file. Let's play safe and only enable the eval
  18907. # if we detect the quoting.
  18908. case $CONFIG_FILES in
  18909. *\'*) eval set x "$CONFIG_FILES" ;;
  18910. *) set x $CONFIG_FILES ;;
  18911. esac
  18912. shift
  18913. for mf
  18914. do
  18915. # Strip MF so we end up with the name of the file.
  18916. mf=`echo "$mf" | sed -e 's/:.*$//'`
  18917. # Check whether this is an Automake generated Makefile or not.
  18918. # We used to match only the files named 'Makefile.in', but
  18919. # some people rename them; so instead we look at the file content.
  18920. # Grep'ing the first line is not enough: some people post-process
  18921. # each Makefile.in and add a new line on top of each file to say so.
  18922. # Grep'ing the whole file is not good either: AIX grep has a line
  18923. # limit of 2048, but all sed's we know have understand at least 4000.
  18924. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  18925. dirpart=`$as_dirname -- "$mf" ||
  18926. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18927. X"$mf" : 'X\(//\)[^/]' \| \
  18928. X"$mf" : 'X\(//\)$' \| \
  18929. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  18930. $as_echo X"$mf" |
  18931. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18932. s//\1/
  18933. q
  18934. }
  18935. /^X\(\/\/\)[^/].*/{
  18936. s//\1/
  18937. q
  18938. }
  18939. /^X\(\/\/\)$/{
  18940. s//\1/
  18941. q
  18942. }
  18943. /^X\(\/\).*/{
  18944. s//\1/
  18945. q
  18946. }
  18947. s/.*/./; q'`
  18948. else
  18949. continue
  18950. fi
  18951. # Extract the definition of DEPDIR, am__include, and am__quote
  18952. # from the Makefile without running 'make'.
  18953. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  18954. test -z "$DEPDIR" && continue
  18955. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  18956. test -z "$am__include" && continue
  18957. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  18958. # Find all dependency output files, they are included files with
  18959. # $(DEPDIR) in their names. We invoke sed twice because it is the
  18960. # simplest approach to changing $(DEPDIR) to its actual value in the
  18961. # expansion.
  18962. for file in `sed -n "
  18963. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  18964. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  18965. # Make sure the directory exists.
  18966. test -f "$dirpart/$file" && continue
  18967. fdir=`$as_dirname -- "$file" ||
  18968. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18969. X"$file" : 'X\(//\)[^/]' \| \
  18970. X"$file" : 'X\(//\)$' \| \
  18971. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  18972. $as_echo X"$file" |
  18973. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18974. s//\1/
  18975. q
  18976. }
  18977. /^X\(\/\/\)[^/].*/{
  18978. s//\1/
  18979. q
  18980. }
  18981. /^X\(\/\/\)$/{
  18982. s//\1/
  18983. q
  18984. }
  18985. /^X\(\/\).*/{
  18986. s//\1/
  18987. q
  18988. }
  18989. s/.*/./; q'`
  18990. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  18991. # echo "creating $dirpart/$file"
  18992. echo '# dummy' > "$dirpart/$file"
  18993. done
  18994. done
  18995. }
  18996. ;;
  18997. "libtool":C)
  18998. # See if we are running on zsh, and set the options that allow our
  18999. # commands through without removal of \ escapes.
  19000. if test -n "${ZSH_VERSION+set}"; then
  19001. setopt NO_GLOB_SUBST
  19002. fi
  19003. cfgfile=${ofile}T
  19004. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19005. $RM "$cfgfile"
  19006. cat <<_LT_EOF >> "$cfgfile"
  19007. #! $SHELL
  19008. # Generated automatically by $as_me ($PACKAGE) $VERSION
  19009. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19010. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19011. # Provide generalized library-building support services.
  19012. # Written by Gordon Matzigkeit, 1996
  19013. # Copyright (C) 2014 Free Software Foundation, Inc.
  19014. # This is free software; see the source for copying conditions. There is NO
  19015. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19016. # GNU Libtool is free software; you can redistribute it and/or modify
  19017. # it under the terms of the GNU General Public License as published by
  19018. # the Free Software Foundation; either version 2 of of the License, or
  19019. # (at your option) any later version.
  19020. #
  19021. # As a special exception to the GNU General Public License, if you
  19022. # distribute this file as part of a program or library that is built
  19023. # using GNU Libtool, you may include this file under the same
  19024. # distribution terms that you use for the rest of that program.
  19025. #
  19026. # GNU Libtool is distributed in the hope that it will be useful, but
  19027. # WITHOUT ANY WARRANTY; without even the implied warranty of
  19028. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19029. # GNU General Public License for more details.
  19030. #
  19031. # You should have received a copy of the GNU General Public License
  19032. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19033. # The names of the tagged configurations supported by this script.
  19034. available_tags='CXX '
  19035. # Configured defaults for sys_lib_dlsearch_path munging.
  19036. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  19037. # ### BEGIN LIBTOOL CONFIG
  19038. # Which release of libtool.m4 was used?
  19039. macro_version=$macro_version
  19040. macro_revision=$macro_revision
  19041. # Whether or not to build shared libraries.
  19042. build_libtool_libs=$enable_shared
  19043. # Whether or not to build static libraries.
  19044. build_old_libs=$enable_static
  19045. # What type of objects to build.
  19046. pic_mode=$pic_mode
  19047. # Whether or not to optimize for fast installation.
  19048. fast_install=$enable_fast_install
  19049. # Shared archive member basename,for filename based shared library versioning on AIX.
  19050. shared_archive_member_spec=$shared_archive_member_spec
  19051. # Shell to use when invoking shell scripts.
  19052. SHELL=$lt_SHELL
  19053. # An echo program that protects backslashes.
  19054. ECHO=$lt_ECHO
  19055. # The PATH separator for the build system.
  19056. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19057. # The host system.
  19058. host_alias=$host_alias
  19059. host=$host
  19060. host_os=$host_os
  19061. # The build system.
  19062. build_alias=$build_alias
  19063. build=$build
  19064. build_os=$build_os
  19065. # A sed program that does not truncate output.
  19066. SED=$lt_SED
  19067. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19068. Xsed="\$SED -e 1s/^X//"
  19069. # A grep program that handles long lines.
  19070. GREP=$lt_GREP
  19071. # An ERE matcher.
  19072. EGREP=$lt_EGREP
  19073. # A literal string matcher.
  19074. FGREP=$lt_FGREP
  19075. # A BSD- or MS-compatible name lister.
  19076. NM=$lt_NM
  19077. # Whether we need soft or hard links.
  19078. LN_S=$lt_LN_S
  19079. # What is the maximum length of a command?
  19080. max_cmd_len=$max_cmd_len
  19081. # Object file suffix (normally "o").
  19082. objext=$ac_objext
  19083. # Executable file suffix (normally "").
  19084. exeext=$exeext
  19085. # whether the shell understands "unset".
  19086. lt_unset=$lt_unset
  19087. # turn spaces into newlines.
  19088. SP2NL=$lt_lt_SP2NL
  19089. # turn newlines into spaces.
  19090. NL2SP=$lt_lt_NL2SP
  19091. # convert \$build file names to \$host format.
  19092. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19093. # convert \$build files to toolchain format.
  19094. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19095. # An object symbol dumper.
  19096. OBJDUMP=$lt_OBJDUMP
  19097. # Method to check whether dependent libraries are shared objects.
  19098. deplibs_check_method=$lt_deplibs_check_method
  19099. # Command to use when deplibs_check_method = "file_magic".
  19100. file_magic_cmd=$lt_file_magic_cmd
  19101. # How to find potential files when deplibs_check_method = "file_magic".
  19102. file_magic_glob=$lt_file_magic_glob
  19103. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19104. want_nocaseglob=$lt_want_nocaseglob
  19105. # DLL creation program.
  19106. DLLTOOL=$lt_DLLTOOL
  19107. # Command to associate shared and link libraries.
  19108. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19109. # The archiver.
  19110. AR=$lt_AR
  19111. # Flags to create an archive.
  19112. AR_FLAGS=$lt_AR_FLAGS
  19113. # How to feed a file listing to the archiver.
  19114. archiver_list_spec=$lt_archiver_list_spec
  19115. # A symbol stripping program.
  19116. STRIP=$lt_STRIP
  19117. # Commands used to install an old-style archive.
  19118. RANLIB=$lt_RANLIB
  19119. old_postinstall_cmds=$lt_old_postinstall_cmds
  19120. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19121. # Whether to use a lock for old archive extraction.
  19122. lock_old_archive_extraction=$lock_old_archive_extraction
  19123. # A C compiler.
  19124. LTCC=$lt_CC
  19125. # LTCC compiler flags.
  19126. LTCFLAGS=$lt_CFLAGS
  19127. # Take the output of nm and produce a listing of raw symbols and C names.
  19128. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19129. # Transform the output of nm in a proper C declaration.
  19130. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19131. # Transform the output of nm into a list of symbols to manually relocate.
  19132. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  19133. # Transform the output of nm in a C name address pair.
  19134. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19135. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19136. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19137. # The name lister interface.
  19138. nm_interface=$lt_lt_cv_nm_interface
  19139. # Specify filename containing input files for \$NM.
  19140. nm_file_list_spec=$lt_nm_file_list_spec
  19141. # The root where to search for dependent libraries,and where our libraries should be installed.
  19142. lt_sysroot=$lt_sysroot
  19143. # Command to truncate a binary pipe.
  19144. lt_truncate_bin=$lt_lt_cv_truncate_bin
  19145. # The name of the directory that contains temporary libtool files.
  19146. objdir=$objdir
  19147. # Used to examine libraries when file_magic_cmd begins with "file".
  19148. MAGIC_CMD=$MAGIC_CMD
  19149. # Must we lock files when doing compilation?
  19150. need_locks=$lt_need_locks
  19151. # Manifest tool.
  19152. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19153. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19154. DSYMUTIL=$lt_DSYMUTIL
  19155. # Tool to change global to local symbols on Mac OS X.
  19156. NMEDIT=$lt_NMEDIT
  19157. # Tool to manipulate fat objects and archives on Mac OS X.
  19158. LIPO=$lt_LIPO
  19159. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19160. OTOOL=$lt_OTOOL
  19161. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19162. OTOOL64=$lt_OTOOL64
  19163. # Old archive suffix (normally "a").
  19164. libext=$libext
  19165. # Shared library suffix (normally ".so").
  19166. shrext_cmds=$lt_shrext_cmds
  19167. # The commands to extract the exported symbol list from a shared archive.
  19168. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19169. # Variables whose values should be saved in libtool wrapper scripts and
  19170. # restored at link time.
  19171. variables_saved_for_relink=$lt_variables_saved_for_relink
  19172. # Do we need the "lib" prefix for modules?
  19173. need_lib_prefix=$need_lib_prefix
  19174. # Do we need a version for libraries?
  19175. need_version=$need_version
  19176. # Library versioning type.
  19177. version_type=$version_type
  19178. # Shared library runtime path variable.
  19179. runpath_var=$runpath_var
  19180. # Shared library path variable.
  19181. shlibpath_var=$shlibpath_var
  19182. # Is shlibpath searched before the hard-coded library search path?
  19183. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19184. # Format of library name prefix.
  19185. libname_spec=$lt_libname_spec
  19186. # List of archive names. First name is the real one, the rest are links.
  19187. # The last name is the one that the linker finds with -lNAME
  19188. library_names_spec=$lt_library_names_spec
  19189. # The coded name of the library, if different from the real name.
  19190. soname_spec=$lt_soname_spec
  19191. # Permission mode override for installation of shared libraries.
  19192. install_override_mode=$lt_install_override_mode
  19193. # Command to use after installation of a shared archive.
  19194. postinstall_cmds=$lt_postinstall_cmds
  19195. # Command to use after uninstallation of a shared archive.
  19196. postuninstall_cmds=$lt_postuninstall_cmds
  19197. # Commands used to finish a libtool library installation in a directory.
  19198. finish_cmds=$lt_finish_cmds
  19199. # As "finish_cmds", except a single script fragment to be evaled but
  19200. # not shown.
  19201. finish_eval=$lt_finish_eval
  19202. # Whether we should hardcode library paths into libraries.
  19203. hardcode_into_libs=$hardcode_into_libs
  19204. # Compile-time system search path for libraries.
  19205. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19206. # Detected run-time system search path for libraries.
  19207. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  19208. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  19209. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  19210. # Whether dlopen is supported.
  19211. dlopen_support=$enable_dlopen
  19212. # Whether dlopen of programs is supported.
  19213. dlopen_self=$enable_dlopen_self
  19214. # Whether dlopen of statically linked programs is supported.
  19215. dlopen_self_static=$enable_dlopen_self_static
  19216. # Commands to strip libraries.
  19217. old_striplib=$lt_old_striplib
  19218. striplib=$lt_striplib
  19219. # The linker used to build libraries.
  19220. LD=$lt_LD
  19221. # How to create reloadable object files.
  19222. reload_flag=$lt_reload_flag
  19223. reload_cmds=$lt_reload_cmds
  19224. # Commands used to build an old-style archive.
  19225. old_archive_cmds=$lt_old_archive_cmds
  19226. # A language specific compiler.
  19227. CC=$lt_compiler
  19228. # Is the compiler the GNU compiler?
  19229. with_gcc=$GCC
  19230. # Compiler flag to turn off builtin functions.
  19231. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19232. # Additional compiler flags for building library objects.
  19233. pic_flag=$lt_lt_prog_compiler_pic
  19234. # How to pass a linker flag through the compiler.
  19235. wl=$lt_lt_prog_compiler_wl
  19236. # Compiler flag to prevent dynamic linking.
  19237. link_static_flag=$lt_lt_prog_compiler_static
  19238. # Does compiler simultaneously support -c and -o options?
  19239. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19240. # Whether or not to add -lc for building shared libraries.
  19241. build_libtool_need_lc=$archive_cmds_need_lc
  19242. # Whether or not to disallow shared libs when runtime libs are static.
  19243. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19244. # Compiler flag to allow reflexive dlopens.
  19245. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19246. # Compiler flag to generate shared objects directly from archives.
  19247. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19248. # Whether the compiler copes with passing no objects directly.
  19249. compiler_needs_object=$lt_compiler_needs_object
  19250. # Create an old-style archive from a shared archive.
  19251. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19252. # Create a temporary old-style archive to link instead of a shared archive.
  19253. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19254. # Commands used to build a shared archive.
  19255. archive_cmds=$lt_archive_cmds
  19256. archive_expsym_cmds=$lt_archive_expsym_cmds
  19257. # Commands used to build a loadable module if different from building
  19258. # a shared archive.
  19259. module_cmds=$lt_module_cmds
  19260. module_expsym_cmds=$lt_module_expsym_cmds
  19261. # Whether we are building with GNU ld or not.
  19262. with_gnu_ld=$lt_with_gnu_ld
  19263. # Flag that allows shared libraries with undefined symbols to be built.
  19264. allow_undefined_flag=$lt_allow_undefined_flag
  19265. # Flag that enforces no undefined symbols.
  19266. no_undefined_flag=$lt_no_undefined_flag
  19267. # Flag to hardcode \$libdir into a binary during linking.
  19268. # This must work even if \$libdir does not exist
  19269. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19270. # Whether we need a single "-rpath" flag with a separated argument.
  19271. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19272. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19273. # DIR into the resulting binary.
  19274. hardcode_direct=$hardcode_direct
  19275. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19276. # DIR into the resulting binary and the resulting library dependency is
  19277. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19278. # library is relocated.
  19279. hardcode_direct_absolute=$hardcode_direct_absolute
  19280. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19281. # into the resulting binary.
  19282. hardcode_minus_L=$hardcode_minus_L
  19283. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19284. # into the resulting binary.
  19285. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19286. # Set to "yes" if building a shared library automatically hardcodes DIR
  19287. # into the library and all subsequent libraries and executables linked
  19288. # against it.
  19289. hardcode_automatic=$hardcode_automatic
  19290. # Set to yes if linker adds runtime paths of dependent libraries
  19291. # to runtime path list.
  19292. inherit_rpath=$inherit_rpath
  19293. # Whether libtool must link a program against all its dependency libraries.
  19294. link_all_deplibs=$link_all_deplibs
  19295. # Set to "yes" if exported symbols are required.
  19296. always_export_symbols=$always_export_symbols
  19297. # The commands to list exported symbols.
  19298. export_symbols_cmds=$lt_export_symbols_cmds
  19299. # Symbols that should not be listed in the preloaded symbols.
  19300. exclude_expsyms=$lt_exclude_expsyms
  19301. # Symbols that must always be exported.
  19302. include_expsyms=$lt_include_expsyms
  19303. # Commands necessary for linking programs (against libraries) with templates.
  19304. prelink_cmds=$lt_prelink_cmds
  19305. # Commands necessary for finishing linking programs.
  19306. postlink_cmds=$lt_postlink_cmds
  19307. # Specify filename containing input files.
  19308. file_list_spec=$lt_file_list_spec
  19309. # How to hardcode a shared library path into an executable.
  19310. hardcode_action=$hardcode_action
  19311. # The directories searched by this compiler when creating a shared library.
  19312. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19313. # Dependencies to place before and after the objects being linked to
  19314. # create a shared library.
  19315. predep_objects=$lt_predep_objects
  19316. postdep_objects=$lt_postdep_objects
  19317. predeps=$lt_predeps
  19318. postdeps=$lt_postdeps
  19319. # The library search path used internally by the compiler when linking
  19320. # a shared library.
  19321. compiler_lib_search_path=$lt_compiler_lib_search_path
  19322. # ### END LIBTOOL CONFIG
  19323. _LT_EOF
  19324. cat <<'_LT_EOF' >> "$cfgfile"
  19325. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  19326. # func_munge_path_list VARIABLE PATH
  19327. # -----------------------------------
  19328. # VARIABLE is name of variable containing _space_ separated list of
  19329. # directories to be munged by the contents of PATH, which is string
  19330. # having a format:
  19331. # "DIR[:DIR]:"
  19332. # string "DIR[ DIR]" will be prepended to VARIABLE
  19333. # ":DIR[:DIR]"
  19334. # string "DIR[ DIR]" will be appended to VARIABLE
  19335. # "DIRP[:DIRP]::[DIRA:]DIRA"
  19336. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  19337. # "DIRA[ DIRA]" will be appended to VARIABLE
  19338. # "DIR[:DIR]"
  19339. # VARIABLE will be replaced by "DIR[ DIR]"
  19340. func_munge_path_list ()
  19341. {
  19342. case x$2 in
  19343. x)
  19344. ;;
  19345. *:)
  19346. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  19347. ;;
  19348. x:*)
  19349. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  19350. ;;
  19351. *::*)
  19352. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  19353. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  19354. ;;
  19355. *)
  19356. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  19357. ;;
  19358. esac
  19359. }
  19360. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  19361. func_cc_basename ()
  19362. {
  19363. for cc_temp in $*""; do
  19364. case $cc_temp in
  19365. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19366. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19367. \-*) ;;
  19368. *) break;;
  19369. esac
  19370. done
  19371. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  19372. }
  19373. # ### END FUNCTIONS SHARED WITH CONFIGURE
  19374. _LT_EOF
  19375. case $host_os in
  19376. aix3*)
  19377. cat <<\_LT_EOF >> "$cfgfile"
  19378. # AIX sometimes has problems with the GCC collect2 program. For some
  19379. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19380. # vanish in a puff of smoke.
  19381. if test set != "${COLLECT_NAMES+set}"; then
  19382. COLLECT_NAMES=
  19383. export COLLECT_NAMES
  19384. fi
  19385. _LT_EOF
  19386. ;;
  19387. esac
  19388. ltmain=$ac_aux_dir/ltmain.sh
  19389. # We use sed instead of cat because bash on DJGPP gets confused if
  19390. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19391. # text mode, it properly converts lines to CR/LF. This bash problem
  19392. # is reportedly fixed, but why not run on old versions too?
  19393. sed '$q' "$ltmain" >> "$cfgfile" \
  19394. || (rm -f "$cfgfile"; exit 1)
  19395. mv -f "$cfgfile" "$ofile" ||
  19396. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19397. chmod +x "$ofile"
  19398. cat <<_LT_EOF >> "$ofile"
  19399. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  19400. # The linker used to build libraries.
  19401. LD=$lt_LD_CXX
  19402. # How to create reloadable object files.
  19403. reload_flag=$lt_reload_flag_CXX
  19404. reload_cmds=$lt_reload_cmds_CXX
  19405. # Commands used to build an old-style archive.
  19406. old_archive_cmds=$lt_old_archive_cmds_CXX
  19407. # A language specific compiler.
  19408. CC=$lt_compiler_CXX
  19409. # Is the compiler the GNU compiler?
  19410. with_gcc=$GCC_CXX
  19411. # Compiler flag to turn off builtin functions.
  19412. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19413. # Additional compiler flags for building library objects.
  19414. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19415. # How to pass a linker flag through the compiler.
  19416. wl=$lt_lt_prog_compiler_wl_CXX
  19417. # Compiler flag to prevent dynamic linking.
  19418. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19419. # Does compiler simultaneously support -c and -o options?
  19420. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19421. # Whether or not to add -lc for building shared libraries.
  19422. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19423. # Whether or not to disallow shared libs when runtime libs are static.
  19424. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19425. # Compiler flag to allow reflexive dlopens.
  19426. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19427. # Compiler flag to generate shared objects directly from archives.
  19428. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19429. # Whether the compiler copes with passing no objects directly.
  19430. compiler_needs_object=$lt_compiler_needs_object_CXX
  19431. # Create an old-style archive from a shared archive.
  19432. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19433. # Create a temporary old-style archive to link instead of a shared archive.
  19434. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19435. # Commands used to build a shared archive.
  19436. archive_cmds=$lt_archive_cmds_CXX
  19437. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19438. # Commands used to build a loadable module if different from building
  19439. # a shared archive.
  19440. module_cmds=$lt_module_cmds_CXX
  19441. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19442. # Whether we are building with GNU ld or not.
  19443. with_gnu_ld=$lt_with_gnu_ld_CXX
  19444. # Flag that allows shared libraries with undefined symbols to be built.
  19445. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19446. # Flag that enforces no undefined symbols.
  19447. no_undefined_flag=$lt_no_undefined_flag_CXX
  19448. # Flag to hardcode \$libdir into a binary during linking.
  19449. # This must work even if \$libdir does not exist
  19450. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19451. # Whether we need a single "-rpath" flag with a separated argument.
  19452. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19453. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19454. # DIR into the resulting binary.
  19455. hardcode_direct=$hardcode_direct_CXX
  19456. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19457. # DIR into the resulting binary and the resulting library dependency is
  19458. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19459. # library is relocated.
  19460. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  19461. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19462. # into the resulting binary.
  19463. hardcode_minus_L=$hardcode_minus_L_CXX
  19464. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19465. # into the resulting binary.
  19466. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19467. # Set to "yes" if building a shared library automatically hardcodes DIR
  19468. # into the library and all subsequent libraries and executables linked
  19469. # against it.
  19470. hardcode_automatic=$hardcode_automatic_CXX
  19471. # Set to yes if linker adds runtime paths of dependent libraries
  19472. # to runtime path list.
  19473. inherit_rpath=$inherit_rpath_CXX
  19474. # Whether libtool must link a program against all its dependency libraries.
  19475. link_all_deplibs=$link_all_deplibs_CXX
  19476. # Set to "yes" if exported symbols are required.
  19477. always_export_symbols=$always_export_symbols_CXX
  19478. # The commands to list exported symbols.
  19479. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19480. # Symbols that should not be listed in the preloaded symbols.
  19481. exclude_expsyms=$lt_exclude_expsyms_CXX
  19482. # Symbols that must always be exported.
  19483. include_expsyms=$lt_include_expsyms_CXX
  19484. # Commands necessary for linking programs (against libraries) with templates.
  19485. prelink_cmds=$lt_prelink_cmds_CXX
  19486. # Commands necessary for finishing linking programs.
  19487. postlink_cmds=$lt_postlink_cmds_CXX
  19488. # Specify filename containing input files.
  19489. file_list_spec=$lt_file_list_spec_CXX
  19490. # How to hardcode a shared library path into an executable.
  19491. hardcode_action=$hardcode_action_CXX
  19492. # The directories searched by this compiler when creating a shared library.
  19493. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  19494. # Dependencies to place before and after the objects being linked to
  19495. # create a shared library.
  19496. predep_objects=$lt_predep_objects_CXX
  19497. postdep_objects=$lt_postdep_objects_CXX
  19498. predeps=$lt_predeps_CXX
  19499. postdeps=$lt_postdeps_CXX
  19500. # The library search path used internally by the compiler when linking
  19501. # a shared library.
  19502. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19503. # ### END LIBTOOL TAG CONFIG: CXX
  19504. _LT_EOF
  19505. ;;
  19506. esac
  19507. done # for ac_tag
  19508. as_fn_exit 0
  19509. _ACEOF
  19510. ac_clean_files=$ac_clean_files_save
  19511. test $ac_write_fail = 0 ||
  19512. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19513. # configure is writing to config.log, and then calls config.status.
  19514. # config.status does its own redirection, appending to config.log.
  19515. # Unfortunately, on DOS this fails, as config.log is still kept open
  19516. # by configure, so config.status won't be able to write to it; its
  19517. # output is simply discarded. So we exec the FD to /dev/null,
  19518. # effectively closing config.log, so it can be properly (re)opened and
  19519. # appended to by config.status. When coming back to configure, we
  19520. # need to make the FD available again.
  19521. if test "$no_create" != yes; then
  19522. ac_cs_success=:
  19523. ac_config_status_args=
  19524. test "$silent" = yes &&
  19525. ac_config_status_args="$ac_config_status_args --quiet"
  19526. exec 5>/dev/null
  19527. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19528. exec 5>>config.log
  19529. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19530. # would make configure fail if this is the last instruction.
  19531. $ac_cs_success || as_fn_exit 1
  19532. fi
  19533. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19535. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19536. fi
  19537. if test "$x86_no_fp_by_default" = yes && test "x$enable_frame_pointers" != xyes && test "x$UNWIND_LIBS" = x && test "x$enable_minimal" != xyes; then :
  19538. if test "x$perftools_cv_have_unwind_backtrace" = xyes; then :
  19539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No frame pointers and no libunwind. Using experimental backtrace capturing via libgcc" >&5
  19540. $as_echo "$as_me: WARNING: No frame pointers and no libunwind. Using experimental backtrace capturing via libgcc" >&2;}
  19541. else
  19542. if test "x$enable_backtrace" = xyes; then :
  19543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No frame pointers and no libunwind. Using experimental backtrace()" >&5
  19544. $as_echo "$as_me: WARNING: No frame pointers and no libunwind. Using experimental backtrace()" >&2;}
  19545. else
  19546. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19547. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19548. as_fn_error $? "No frame pointers and no libunwind. The compilation will fail
  19549. See \`config.log' for more details" "$LINENO" 5; }
  19550. fi
  19551. fi
  19552. fi