libtool.m4 225 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373
  1. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  2. ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
  3. ## 2008 Free Software Foundation, Inc.
  4. ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  5. ##
  6. ## This file is free software; the Free Software Foundation gives
  7. ## unlimited permission to copy and/or distribute it, with or without
  8. ## modifications, as long as this notice is preserved.
  9. # serial 52 AC_PROG_LIBTOOL
  10. ifdef([AC_ACVERSION],[
  11. # autoconf 2.13 compatibility
  12. # Set PATH_SEPARATOR variable
  13. # ---------------------------------
  14. # Find the correct PATH separator. Usually this is :', but
  15. # DJGPP uses ;' like DOS.
  16. if test "X${PATH_SEPARATOR+set}" != Xset; then
  17. UNAME=${UNAME-`uname 2>/dev/null`}
  18. case X$UNAME in
  19. *-DOS) lt_cv_sys_path_separator=';' ;;
  20. *) lt_cv_sys_path_separator=':' ;;
  21. esac
  22. PATH_SEPARATOR=$lt_cv_sys_path_separator
  23. fi
  24. ])
  25. # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  26. # -----------------------------------------------------------
  27. # If this macro is not defined by Autoconf, define it here.
  28. ifdef([AC_PROVIDE_IFELSE],
  29. [],
  30. [define([AC_PROVIDE_IFELSE],
  31. [ifdef([AC_PROVIDE_$1],
  32. [$2], [$3])])])
  33. # AC_PROG_LIBTOOL
  34. # ---------------
  35. AC_DEFUN([AC_PROG_LIBTOOL],
  36. [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  37. dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  38. dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  39. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  40. [AC_LIBTOOL_CXX],
  41. [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  42. ])])
  43. ])# AC_PROG_LIBTOOL
  44. # _AC_PROG_LIBTOOL
  45. # ----------------
  46. AC_DEFUN([_AC_PROG_LIBTOOL],
  47. [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  48. AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  49. # This can be used to rebuild libtool when needed
  50. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  51. # Always use our own libtool.
  52. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  53. AC_SUBST(LIBTOOL)dnl
  54. # Prevent multiple expansion
  55. define([AC_PROG_LIBTOOL], [])
  56. ])# _AC_PROG_LIBTOOL
  57. # AC_LIBTOOL_SETUP
  58. # ----------------
  59. AC_DEFUN([AC_LIBTOOL_SETUP],
  60. [AC_PREREQ(2.13)dnl
  61. AC_REQUIRE([AC_ENABLE_SHARED])dnl
  62. AC_REQUIRE([AC_ENABLE_STATIC])dnl
  63. AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  64. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  65. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  66. AC_REQUIRE([AC_PROG_CC])dnl
  67. AC_REQUIRE([AC_PROG_LD])dnl
  68. AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  69. AC_REQUIRE([AC_PROG_NM])dnl
  70. AC_REQUIRE([AC_PROG_LN_S])dnl
  71. AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  72. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  73. AC_REQUIRE([AC_OBJEXT])dnl
  74. AC_REQUIRE([AC_EXEEXT])dnl
  75. dnl
  76. AC_LIBTOOL_SYS_MAX_CMD_LEN
  77. AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  78. AC_LIBTOOL_OBJDIR
  79. AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  80. _LT_AC_PROG_ECHO_BACKSLASH
  81. case $host_os in
  82. aix3*)
  83. # AIX sometimes has problems with the GCC collect2 program. For some
  84. # reason, if we set the COLLECT_NAMES environment variable, the problems
  85. # vanish in a puff of smoke.
  86. if test "X${COLLECT_NAMES+set}" != Xset; then
  87. COLLECT_NAMES=
  88. export COLLECT_NAMES
  89. fi
  90. ;;
  91. esac
  92. # Sed substitution that helps us do robust quoting. It backslashifies
  93. # metacharacters that are still active within double-quoted strings.
  94. Xsed='sed -e 1s/^X//'
  95. [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  96. # Same as above, but do not quote variable references.
  97. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  98. # Sed substitution to delay expansion of an escaped shell variable in a
  99. # double_quote_subst'ed string.
  100. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  101. # Sed substitution to avoid accidental globbing in evaled expressions
  102. no_glob_subst='s/\*/\\\*/g'
  103. # Constants:
  104. rm="rm -f"
  105. # Global variables:
  106. default_ofile=libtool
  107. can_build_shared=yes
  108. # All known linkers require a `.a' archive for static linking (except MSVC,
  109. # which needs '.lib').
  110. libext=a
  111. ltmain="$ac_aux_dir/ltmain.sh"
  112. ofile="$default_ofile"
  113. with_gnu_ld="$lt_cv_prog_gnu_ld"
  114. AC_CHECK_TOOL(AR, ar, false)
  115. AC_CHECK_TOOL(RANLIB, ranlib, :)
  116. AC_CHECK_TOOL(STRIP, strip, :)
  117. old_CC="$CC"
  118. old_CFLAGS="$CFLAGS"
  119. # Set sane defaults for various variables
  120. test -z "$AR" && AR=ar
  121. test -z "$AR_FLAGS" && AR_FLAGS=cru
  122. test -z "$AS" && AS=as
  123. test -z "$CC" && CC=cc
  124. test -z "$LTCC" && LTCC=$CC
  125. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  126. test -z "$DLLTOOL" && DLLTOOL=dlltool
  127. test -z "$LD" && LD=ld
  128. test -z "$LN_S" && LN_S="ln -s"
  129. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  130. test -z "$NM" && NM=nm
  131. test -z "$SED" && SED=sed
  132. test -z "$OBJDUMP" && OBJDUMP=objdump
  133. test -z "$RANLIB" && RANLIB=:
  134. test -z "$STRIP" && STRIP=:
  135. test -z "$ac_objext" && ac_objext=o
  136. # Determine commands to create old-style static archives.
  137. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  138. old_postinstall_cmds='chmod 644 $oldlib'
  139. old_postuninstall_cmds=
  140. if test -n "$RANLIB"; then
  141. case $host_os in
  142. openbsd*)
  143. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  144. ;;
  145. *)
  146. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  147. ;;
  148. esac
  149. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  150. fi
  151. _LT_CC_BASENAME([$compiler])
  152. # Only perform the check for file, if the check method requires it
  153. case $deplibs_check_method in
  154. file_magic*)
  155. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  156. AC_PATH_MAGIC
  157. fi
  158. ;;
  159. esac
  160. _LT_REQUIRED_DARWIN_CHECKS
  161. AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  162. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  163. enable_win32_dll=yes, enable_win32_dll=no)
  164. AC_ARG_ENABLE([libtool-lock],
  165. [ --disable-libtool-lock Avoid locking (might break parallel builds)])
  166. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  167. AC_ARG_WITH([pic],
  168. [ --with-pic Try to use only PIC/non-PIC objects [default=use both]],
  169. [pic_mode="$withval"],
  170. [pic_mode=default])
  171. test -z "$pic_mode" && pic_mode=default
  172. # Use C for the default configuration in the libtool script
  173. tagname=
  174. AC_LIBTOOL_LANG_C_CONFIG
  175. _LT_AC_TAGCONFIG
  176. ])# AC_LIBTOOL_SETUP
  177. # _LT_AC_SYS_COMPILER
  178. # -------------------
  179. AC_DEFUN([_LT_AC_SYS_COMPILER],
  180. [AC_REQUIRE([AC_PROG_CC])dnl
  181. # If no C compiler was specified, use CC.
  182. LTCC=${LTCC-"$CC"}
  183. # If no C compiler flags were specified, use CFLAGS.
  184. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  185. # Allow CC to be a program name with arguments.
  186. compiler=$CC
  187. ])# _LT_AC_SYS_COMPILER
  188. # _LT_CC_BASENAME(CC)
  189. # -------------------
  190. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  191. AC_DEFUN([_LT_CC_BASENAME],
  192. [for cc_temp in $1""; do
  193. case $cc_temp in
  194. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  195. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  196. \-*) ;;
  197. *) break;;
  198. esac
  199. done
  200. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  201. ])
  202. # _LT_COMPILER_BOILERPLATE
  203. # ------------------------
  204. # Check for compiler boilerplate output or warnings with
  205. # the simple compiler test code.
  206. AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  207. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  208. ac_outfile=conftest.$ac_objext
  209. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  210. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  211. _lt_compiler_boilerplate=`cat conftest.err`
  212. $rm conftest*
  213. ])# _LT_COMPILER_BOILERPLATE
  214. # _LT_LINKER_BOILERPLATE
  215. # ----------------------
  216. # Check for linker boilerplate output or warnings with
  217. # the simple link test code.
  218. AC_DEFUN([_LT_LINKER_BOILERPLATE],
  219. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  220. ac_outfile=conftest.$ac_objext
  221. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  222. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  223. _lt_linker_boilerplate=`cat conftest.err`
  224. $rm -r conftest*
  225. ])# _LT_LINKER_BOILERPLATE
  226. dnl autoconf 2.13 compatibility
  227. dnl _LT_AC_TRY_LINK()
  228. AC_DEFUN(_LT_AC_TRY_LINK, [
  229. cat > conftest.$ac_ext <<EOF
  230. dnl This sometimes fails to find confdefs.h, for some reason.
  231. dnl [#]line __oline__ "[$]0"
  232. [#]line __oline__ "configure"
  233. #include "confdefs.h"
  234. int main() {
  235. ; return 0; }
  236. EOF
  237. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  238. ifelse([$1], , :, [$1
  239. rm -rf conftest*])
  240. else
  241. echo "configure: failed program was:" >&5
  242. cat conftest.$ac_ext >&6
  243. ifelse([$2], , , [$2
  244. rm -rf conftest*
  245. ])dnl
  246. fi
  247. rm -f conftest*])
  248. # _LT_REQUIRED_DARWIN_CHECKS
  249. # --------------------------
  250. # Check for some things on darwin
  251. AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  252. case $host_os in
  253. rhapsody* | darwin*)
  254. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  255. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  256. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  257. [lt_cv_apple_cc_single_mod=no
  258. if test -z "${LT_MULTI_MODULE}"; then
  259. # By default we will add the -single_module flag. You can override
  260. # by either setting the environment variable LT_MULTI_MODULE
  261. # non-empty at configure time, or by adding -multi_module to the
  262. # link flags.
  263. echo "int foo(void){return 1;}" > conftest.c
  264. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  265. -dynamiclib ${wl}-single_module conftest.c
  266. if test -f libconftest.dylib; then
  267. lt_cv_apple_cc_single_mod=yes
  268. rm -rf libconftest.dylib*
  269. fi
  270. rm conftest.c
  271. fi])
  272. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  273. [lt_cv_ld_exported_symbols_list],
  274. [lt_cv_ld_exported_symbols_list=no
  275. save_LDFLAGS=$LDFLAGS
  276. echo "_main" > conftest.sym
  277. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  278. _LT_AC_TRY_LINK([lt_cv_ld_exported_symbols_list=yes],[lt_cv_ld_exported_symbols_list=no])
  279. LDFLAGS="$save_LDFLAGS"
  280. ])
  281. case $host_os in
  282. rhapsody* | darwin1.[[0123]])
  283. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  284. darwin1.*)
  285. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  286. darwin*)
  287. # if running on 10.5 or later, the deployment target defaults
  288. # to the OS version, if on x86, and 10.4, the deployment
  289. # target defaults to 10.4. Don't you love it?
  290. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  291. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  292. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  293. 10.[[012]]*)
  294. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  295. *)
  296. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  297. esac
  298. ;;
  299. esac
  300. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  301. _lt_dar_single_mod='$single_module'
  302. fi
  303. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  304. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  305. else
  306. _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  307. fi
  308. if test "$DSYMUTIL" != ":"; then
  309. _lt_dsymutil="~$DSYMUTIL \$lib || :"
  310. else
  311. _lt_dsymutil=
  312. fi
  313. ;;
  314. esac
  315. ])
  316. # _LT_AC_SYS_LIBPATH_AIX
  317. # ----------------------
  318. # Links a minimal program and checks the executable
  319. # for the system default hardcoded library path. In most cases,
  320. # this is /usr/lib:/lib, but when the MPI compilers are used
  321. # the location of the communication and MPI libs are included too.
  322. # If we don't find anything, use the default library path according
  323. # to the aix ld manual.
  324. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  325. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  326. _LT_AC_TRY_LINK([
  327. lt_aix_libpath_sed='
  328. /Import File Strings/,/^$/ {
  329. /^0/ {
  330. s/^0 *\(.*\)$/\1/
  331. p
  332. }
  333. }'
  334. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  335. # Check for a 64-bit object if we didn't find anything.
  336. if test -z "$aix_libpath"; then
  337. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  338. fi],[])
  339. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  340. ])# _LT_AC_SYS_LIBPATH_AIX
  341. # _LT_AC_SHELL_INIT(ARG)
  342. # ----------------------
  343. AC_DEFUN([_LT_AC_SHELL_INIT],
  344. [ifdef([AC_DIVERSION_NOTICE],
  345. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  346. [AC_DIVERT_PUSH(NOTICE)])
  347. $1
  348. AC_DIVERT_POP
  349. ])# _LT_AC_SHELL_INIT
  350. # _LT_AC_PROG_ECHO_BACKSLASH
  351. # --------------------------
  352. # Add some code to the start of the generated configure script which
  353. # will find an echo command which doesn't interpret backslashes.
  354. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  355. [_LT_AC_SHELL_INIT([
  356. # Check that we are running under the correct shell.
  357. SHELL=${CONFIG_SHELL-/bin/sh}
  358. case X$ECHO in
  359. X*--fallback-echo)
  360. # Remove one level of quotation (which was required for Make).
  361. ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  362. ;;
  363. esac
  364. echo=${ECHO-echo}
  365. if test "X[$]1" = X--no-reexec; then
  366. # Discard the --no-reexec flag, and continue.
  367. shift
  368. elif test "X[$]1" = X--fallback-echo; then
  369. # Avoid inline document here, it may be left over
  370. :
  371. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  372. # Yippee, $echo works!
  373. :
  374. else
  375. # Restart under the correct shell.
  376. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  377. fi
  378. if test "X[$]1" = X--fallback-echo; then
  379. # used as fallback echo
  380. shift
  381. cat <<EOF
  382. [$]*
  383. EOF
  384. exit 0
  385. fi
  386. # The HP-UX ksh and POSIX shell print the target directory to stdout
  387. # if CDPATH is set.
  388. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  389. if test -z "$ECHO"; then
  390. if test "X${echo_test_string+set}" != Xset; then
  391. # find a string as large as possible, as long as the shell can cope with it
  392. for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  393. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  394. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  395. echo_test_string=`eval $cmd` &&
  396. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  397. then
  398. break
  399. fi
  400. done
  401. fi
  402. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  403. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  404. test "X$echo_testing_string" = "X$echo_test_string"; then
  405. :
  406. else
  407. # The Solaris, AIX, and Digital Unix default echo programs unquote
  408. # backslashes. This makes it impossible to quote backslashes using
  409. # echo "$something" | sed 's/\\/\\\\/g'
  410. #
  411. # So, first we look for a working echo in the user's PATH.
  412. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  413. for dir in $PATH /usr/ucb; do
  414. IFS="$lt_save_ifs"
  415. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  416. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  417. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  418. test "X$echo_testing_string" = "X$echo_test_string"; then
  419. echo="$dir/echo"
  420. break
  421. fi
  422. done
  423. IFS="$lt_save_ifs"
  424. if test "X$echo" = Xecho; then
  425. # We didn't find a better echo, so look for alternatives.
  426. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  427. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  428. test "X$echo_testing_string" = "X$echo_test_string"; then
  429. # This shell has a builtin print -r that does the trick.
  430. echo='print -r'
  431. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  432. test "X$CONFIG_SHELL" != X/bin/ksh; then
  433. # If we have ksh, try running configure again with it.
  434. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  435. export ORIGINAL_CONFIG_SHELL
  436. CONFIG_SHELL=/bin/ksh
  437. export CONFIG_SHELL
  438. exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  439. else
  440. # Try using printf.
  441. echo='printf %s\n'
  442. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  443. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  444. test "X$echo_testing_string" = "X$echo_test_string"; then
  445. # Cool, printf works
  446. :
  447. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  448. test "X$echo_testing_string" = 'X\t' &&
  449. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  450. test "X$echo_testing_string" = "X$echo_test_string"; then
  451. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  452. export CONFIG_SHELL
  453. SHELL="$CONFIG_SHELL"
  454. export SHELL
  455. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  456. elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  457. test "X$echo_testing_string" = 'X\t' &&
  458. echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  459. test "X$echo_testing_string" = "X$echo_test_string"; then
  460. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  461. else
  462. # maybe with a smaller string...
  463. prev=:
  464. for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  465. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  466. then
  467. break
  468. fi
  469. prev="$cmd"
  470. done
  471. if test "$prev" != 'sed 50q "[$]0"'; then
  472. echo_test_string=`eval $prev`
  473. export echo_test_string
  474. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  475. else
  476. # Oops. We lost completely, so just stick with echo.
  477. echo=echo
  478. fi
  479. fi
  480. fi
  481. fi
  482. fi
  483. fi
  484. # Copy echo and quote the copy suitably for passing to libtool from
  485. # the Makefile, instead of quoting the original, which is used later.
  486. ECHO=$echo
  487. if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  488. ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  489. fi
  490. AC_SUBST(ECHO)
  491. ])])# _LT_AC_PROG_ECHO_BACKSLASH
  492. # _LT_AC_LOCK
  493. # -----------
  494. AC_DEFUN([_LT_AC_LOCK],
  495. [dnl
  496. #AC_ARG_ENABLE([libtool-lock],
  497. #[ --disable-libtool-lock avoid locking (might break parallel builds)])
  498. #test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  499. # Some flags need to be propagated to the compiler or linker for good
  500. # libtool support.
  501. case $host in
  502. ia64-*-hpux*)
  503. # Find out which ABI we are using.
  504. echo 'int i;' > conftest.$ac_ext
  505. if AC_TRY_EVAL(ac_compile); then
  506. case `/usr/bin/file conftest.$ac_objext` in
  507. *ELF-32*)
  508. HPUX_IA64_MODE="32"
  509. ;;
  510. *ELF-64*)
  511. HPUX_IA64_MODE="64"
  512. ;;
  513. esac
  514. fi
  515. rm -rf conftest*
  516. ;;
  517. *-*-irix6*)
  518. # Find out which ABI we are using.
  519. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  520. if AC_TRY_EVAL(ac_compile); then
  521. if test "$lt_cv_prog_gnu_ld" = yes; then
  522. case `/usr/bin/file conftest.$ac_objext` in
  523. *32-bit*)
  524. LD="${LD-ld} -melf32bsmip"
  525. ;;
  526. *N32*)
  527. LD="${LD-ld} -melf32bmipn32"
  528. ;;
  529. *64-bit*)
  530. LD="${LD-ld} -melf64bmip"
  531. ;;
  532. esac
  533. else
  534. case `/usr/bin/file conftest.$ac_objext` in
  535. *32-bit*)
  536. LD="${LD-ld} -32"
  537. ;;
  538. *N32*)
  539. LD="${LD-ld} -n32"
  540. ;;
  541. *64-bit*)
  542. LD="${LD-ld} -64"
  543. ;;
  544. esac
  545. fi
  546. fi
  547. rm -rf conftest*
  548. ;;
  549. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  550. s390*-*linux*|sparc*-*linux*)
  551. # Find out which ABI we are using.
  552. echo 'int i;' > conftest.$ac_ext
  553. if AC_TRY_EVAL(ac_compile); then
  554. case `/usr/bin/file conftest.o` in
  555. *32-bit*)
  556. case $host in
  557. x86_64-*kfreebsd*-gnu)
  558. LD="${LD-ld} -m elf_i386_fbsd"
  559. ;;
  560. x86_64-*linux*)
  561. LD="${LD-ld} -m elf_i386"
  562. ;;
  563. powerpc64le-*linux*)
  564. LD="${LD-ld} -m elf32lppclinux"
  565. ;;
  566. powerpc64-*linux*)
  567. LD="${LD-ld} -m elf32ppclinux"
  568. ;;
  569. s390x-*linux*)
  570. LD="${LD-ld} -m elf_s390"
  571. ;;
  572. sparc64-*linux*)
  573. LD="${LD-ld} -m elf32_sparc"
  574. ;;
  575. esac
  576. ;;
  577. *64-bit*)
  578. case $host in
  579. x86_64-*kfreebsd*-gnu)
  580. LD="${LD-ld} -m elf_x86_64_fbsd"
  581. ;;
  582. x86_64-*linux*)
  583. LD="${LD-ld} -m elf_x86_64"
  584. ;;
  585. powerpcle-*linux*)
  586. LD="${LD-ld} -m elf64lppc"
  587. ;;
  588. powerpc-*linux*)
  589. LD="${LD-ld} -m elf64ppc"
  590. ;;
  591. s390*-*linux*)
  592. LD="${LD-ld} -m elf64_s390"
  593. ;;
  594. sparc*-*linux*)
  595. LD="${LD-ld} -m elf64_sparc"
  596. ;;
  597. esac
  598. ;;
  599. esac
  600. fi
  601. rm -rf conftest*
  602. ;;
  603. *-*-sco3.2v5*)
  604. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  605. SAVE_CFLAGS="$CFLAGS"
  606. CFLAGS="$CFLAGS -belf"
  607. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  608. [AC_LANG_SAVE
  609. AC_LANG_C
  610. AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  611. AC_LANG_RESTORE])
  612. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  613. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  614. CFLAGS="$SAVE_CFLAGS"
  615. fi
  616. ;;
  617. sparc*-*solaris*)
  618. # Find out which ABI we are using.
  619. echo 'int i;' > conftest.$ac_ext
  620. if AC_TRY_EVAL(ac_compile); then
  621. case `/usr/bin/file conftest.o` in
  622. *64-bit*)
  623. case $lt_cv_prog_gnu_ld in
  624. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  625. *)
  626. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  627. LD="${LD-ld} -64"
  628. fi
  629. ;;
  630. esac
  631. ;;
  632. esac
  633. fi
  634. rm -rf conftest*
  635. ;;
  636. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  637. [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  638. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  639. AC_CHECK_TOOL(AS, as, false)
  640. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  641. ;;
  642. ])
  643. esac
  644. need_locks="$enable_libtool_lock"
  645. ])# _LT_AC_LOCK
  646. # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  647. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  648. # ----------------------------------------------------------------
  649. # Check whether the given compiler option works
  650. AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  651. [AC_REQUIRE([LT_AC_PROG_SED])
  652. AC_CACHE_CHECK([$1], [$2],
  653. [$2=no
  654. ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  655. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  656. lt_compiler_flag="$3"
  657. # Insert the option either (1) after the last *FLAGS variable, or
  658. # (2) before a word containing "conftest.", or (3) at the end.
  659. # Note that $ac_compile itself does not contain backslashes and begins
  660. # with a dollar sign (not a hyphen), so the echo should work correctly.
  661. # The option is referenced via a variable to avoid confusing sed.
  662. lt_compile=`echo "$ac_compile" | $SED \
  663. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  664. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  665. -e 's:$: $lt_compiler_flag:'`
  666. (eval echo "\"configure:__oline__: $lt_compile\"" >&5)
  667. (eval "$lt_compile" 2>conftest.err)
  668. ac_status=$?
  669. cat conftest.err >&5
  670. echo "configure:__oline__: \$? = $ac_status" >&5
  671. if (exit $ac_status) && test -s "$ac_outfile"; then
  672. # The compiler can only warn and ignore the option if not recognized
  673. # So say no if there are warnings other than the usual output.
  674. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  675. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  676. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  677. $2=yes
  678. fi
  679. fi
  680. $rm conftest*
  681. ])
  682. if test x"[$]$2" = xyes; then
  683. ifelse([$5], , :, [$5])
  684. else
  685. ifelse([$6], , :, [$6])
  686. fi
  687. ])# AC_LIBTOOL_COMPILER_OPTION
  688. # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  689. # [ACTION-SUCCESS], [ACTION-FAILURE])
  690. # ------------------------------------------------------------
  691. # Check whether the given compiler option works
  692. AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  693. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  694. AC_CACHE_CHECK([$1], [$2],
  695. [$2=no
  696. save_LDFLAGS="$LDFLAGS"
  697. LDFLAGS="$LDFLAGS $3"
  698. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  699. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  700. # The linker can only warn and ignore the option if not recognized
  701. # So say no if there are warnings
  702. if test -s conftest.err; then
  703. # Append any errors to the config.log.
  704. cat conftest.err 1>&5
  705. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  706. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  707. if diff conftest.exp conftest.er2 >/dev/null; then
  708. $2=yes
  709. fi
  710. else
  711. $2=yes
  712. fi
  713. fi
  714. $rm -r conftest*
  715. LDFLAGS="$save_LDFLAGS"
  716. ])
  717. if test x"[$]$2" = xyes; then
  718. ifelse([$4], , :, [$4])
  719. else
  720. ifelse([$5], , :, [$5])
  721. fi
  722. ])# AC_LIBTOOL_LINKER_OPTION
  723. # AC_LIBTOOL_SYS_MAX_CMD_LEN
  724. # --------------------------
  725. AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  726. [# find the maximum length of command line arguments
  727. AC_MSG_CHECKING([the maximum length of command line arguments])
  728. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  729. i=0
  730. teststring="ABCD"
  731. case $build_os in
  732. msdosdjgpp*)
  733. # On DJGPP, this test can blow up pretty badly due to problems in libc
  734. # (any single argument exceeding 2000 bytes causes a buffer overrun
  735. # during glob expansion). Even if it were fixed, the result of this
  736. # check would be larger than it should be.
  737. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  738. ;;
  739. gnu*)
  740. # Under GNU Hurd, this test is not required because there is
  741. # no limit to the length of command line arguments.
  742. # Libtool will interpret -1 as no limit whatsoever
  743. lt_cv_sys_max_cmd_len=-1;
  744. ;;
  745. cygwin* | mingw*)
  746. # On Win9x/ME, this test blows up -- it succeeds, but takes
  747. # about 5 minutes as the teststring grows exponentially.
  748. # Worse, since 9x/ME are not pre-emptively multitasking,
  749. # you end up with a "frozen" computer, even though with patience
  750. # the test eventually succeeds (with a max line length of 256k).
  751. # Instead, let's just punt: use the minimum linelength reported by
  752. # all of the supported platforms: 8192 (on NT/2K/XP).
  753. lt_cv_sys_max_cmd_len=8192;
  754. ;;
  755. amigaos*)
  756. # On AmigaOS with pdksh, this test takes hours, literally.
  757. # So we just punt and use a minimum line length of 8192.
  758. lt_cv_sys_max_cmd_len=8192;
  759. ;;
  760. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  761. # This has been around since 386BSD, at least. Likely further.
  762. if test -x /sbin/sysctl; then
  763. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  764. elif test -x /usr/sbin/sysctl; then
  765. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  766. else
  767. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  768. fi
  769. # And add a safety zone
  770. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  771. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  772. ;;
  773. interix*)
  774. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  775. lt_cv_sys_max_cmd_len=196608
  776. ;;
  777. osf*)
  778. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  779. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  780. # nice to cause kernel panics so lets avoid the loop below.
  781. # First set a reasonable default.
  782. lt_cv_sys_max_cmd_len=16384
  783. #
  784. if test -x /sbin/sysconfig; then
  785. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  786. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  787. esac
  788. fi
  789. ;;
  790. sco3.2v5*)
  791. lt_cv_sys_max_cmd_len=102400
  792. ;;
  793. sysv5* | sco5v6* | sysv4.2uw2*)
  794. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  795. if test -n "$kargmax"; then
  796. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  797. else
  798. lt_cv_sys_max_cmd_len=32768
  799. fi
  800. ;;
  801. *)
  802. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  803. if test -n "$lt_cv_sys_max_cmd_len"; then
  804. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  805. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  806. else
  807. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  808. while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  809. = "XX$teststring") >/dev/null 2>&1 &&
  810. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  811. lt_cv_sys_max_cmd_len=$new_result &&
  812. test $i != 17 # 1/2 MB should be enough
  813. do
  814. i=`expr $i + 1`
  815. teststring=$teststring$teststring
  816. done
  817. teststring=
  818. # Add a significant safety factor because C++ compilers can tack on massive
  819. # amounts of additional arguments before passing them to the linker.
  820. # It appears as though 1/2 is a usable value.
  821. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  822. fi
  823. ;;
  824. esac
  825. ])
  826. if test -n $lt_cv_sys_max_cmd_len ; then
  827. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  828. else
  829. AC_MSG_RESULT(none)
  830. fi
  831. ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  832. # _LT_AC_CHECK_DLFCN
  833. # ------------------
  834. AC_DEFUN([_LT_AC_CHECK_DLFCN],
  835. [AC_CHECK_HEADERS(dlfcn.h)dnl
  836. ])# _LT_AC_CHECK_DLFCN
  837. # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  838. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  839. # ---------------------------------------------------------------------
  840. AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  841. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  842. if test "$cross_compiling" = yes; then :
  843. [$4]
  844. else
  845. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  846. lt_status=$lt_dlunknown
  847. cat > conftest.$ac_ext <<EOF
  848. [#line __oline__ "configure"
  849. #include "confdefs.h"
  850. #if HAVE_DLFCN_H
  851. #include <dlfcn.h>
  852. #endif
  853. #include <stdio.h>
  854. #include <stdlib.h>
  855. #ifdef RTLD_GLOBAL
  856. # define LT_DLGLOBAL RTLD_GLOBAL
  857. #else
  858. # ifdef DL_GLOBAL
  859. # define LT_DLGLOBAL DL_GLOBAL
  860. # else
  861. # define LT_DLGLOBAL 0
  862. # endif
  863. #endif
  864. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  865. find out it does not work in some platform. */
  866. #ifndef LT_DLLAZY_OR_NOW
  867. # ifdef RTLD_LAZY
  868. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  869. # else
  870. # ifdef DL_LAZY
  871. # define LT_DLLAZY_OR_NOW DL_LAZY
  872. # else
  873. # ifdef RTLD_NOW
  874. # define LT_DLLAZY_OR_NOW RTLD_NOW
  875. # else
  876. # ifdef DL_NOW
  877. # define LT_DLLAZY_OR_NOW DL_NOW
  878. # else
  879. # define LT_DLLAZY_OR_NOW 0
  880. # endif
  881. # endif
  882. # endif
  883. # endif
  884. #endif
  885. void fnord() { int i=42;}
  886. int main ()
  887. {
  888. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  889. int status = $lt_dlunknown;
  890. if (self)
  891. {
  892. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  893. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  894. /* dlclose (self); */
  895. }
  896. else
  897. puts (dlerror ());
  898. return (status);
  899. }]
  900. EOF
  901. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  902. (./conftest; exit; ) >&5 2>/dev/null
  903. lt_status=$?
  904. case x$lt_status in
  905. x$lt_dlno_uscore) $1 ;;
  906. x$lt_dlneed_uscore) $2 ;;
  907. x$lt_dlunknown|x*) $3 ;;
  908. esac
  909. else :
  910. # compilation failed
  911. $3
  912. fi
  913. fi
  914. rm -fr conftest*
  915. ])# _LT_AC_TRY_DLOPEN_SELF
  916. # AC_LIBTOOL_DLOPEN_SELF
  917. # ----------------------
  918. AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  919. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  920. if test "x$enable_dlopen" != xyes; then
  921. enable_dlopen=unknown
  922. enable_dlopen_self=unknown
  923. enable_dlopen_self_static=unknown
  924. else
  925. lt_cv_dlopen=no
  926. lt_cv_dlopen_libs=
  927. case $host_os in
  928. beos* | haiku*)
  929. lt_cv_dlopen="load_add_on"
  930. lt_cv_dlopen_libs=
  931. lt_cv_dlopen_self=yes
  932. ;;
  933. mingw* | pw32*)
  934. lt_cv_dlopen="LoadLibrary"
  935. lt_cv_dlopen_libs=
  936. ;;
  937. cygwin*)
  938. lt_cv_dlopen="dlopen"
  939. lt_cv_dlopen_libs=
  940. ;;
  941. darwin*)
  942. # if libdl is installed we need to link against it
  943. AC_CHECK_LIB([dl], [dlopen],
  944. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  945. lt_cv_dlopen="dyld"
  946. lt_cv_dlopen_libs=
  947. lt_cv_dlopen_self=yes
  948. ])
  949. ;;
  950. *)
  951. AC_CHECK_FUNC([shl_load],
  952. [lt_cv_dlopen="shl_load"],
  953. [AC_CHECK_LIB([dld], [shl_load],
  954. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  955. [AC_CHECK_FUNC([dlopen],
  956. [lt_cv_dlopen="dlopen"],
  957. [AC_CHECK_LIB([dl], [dlopen],
  958. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  959. [AC_CHECK_LIB([svld], [dlopen],
  960. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  961. [AC_CHECK_LIB([dld], [dld_link],
  962. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  963. ])
  964. ])
  965. ])
  966. ])
  967. ])
  968. ;;
  969. esac
  970. if test "x$lt_cv_dlopen" != xno; then
  971. enable_dlopen=yes
  972. else
  973. enable_dlopen=no
  974. fi
  975. case $lt_cv_dlopen in
  976. dlopen)
  977. save_CPPFLAGS="$CPPFLAGS"
  978. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  979. save_LDFLAGS="$LDFLAGS"
  980. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  981. save_LIBS="$LIBS"
  982. LIBS="$lt_cv_dlopen_libs $LIBS"
  983. AC_CACHE_CHECK([whether a program can dlopen itself],
  984. lt_cv_dlopen_self, [dnl
  985. _LT_AC_TRY_DLOPEN_SELF(
  986. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  987. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  988. ])
  989. if test "x$lt_cv_dlopen_self" = xyes; then
  990. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  991. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  992. lt_cv_dlopen_self_static, [dnl
  993. _LT_AC_TRY_DLOPEN_SELF(
  994. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  995. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  996. ])
  997. fi
  998. CPPFLAGS="$save_CPPFLAGS"
  999. LDFLAGS="$save_LDFLAGS"
  1000. LIBS="$save_LIBS"
  1001. ;;
  1002. esac
  1003. case $lt_cv_dlopen_self in
  1004. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1005. *) enable_dlopen_self=unknown ;;
  1006. esac
  1007. case $lt_cv_dlopen_self_static in
  1008. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1009. *) enable_dlopen_self_static=unknown ;;
  1010. esac
  1011. fi
  1012. ])# AC_LIBTOOL_DLOPEN_SELF
  1013. # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1014. # ---------------------------------
  1015. # Check to see if options -c and -o are simultaneously supported by compiler
  1016. AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1017. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  1018. AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1019. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1020. [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1021. [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1022. $rm -r conftest 2>/dev/null
  1023. mkdir conftest
  1024. cd conftest
  1025. mkdir out
  1026. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1027. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1028. # Insert the option either (1) after the last *FLAGS variable, or
  1029. # (2) before a word containing "conftest.", or (3) at the end.
  1030. # Note that $ac_compile itself does not contain backslashes and begins
  1031. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1032. lt_compile=`echo "$ac_compile" | $SED \
  1033. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1034. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1035. -e 's:$: $lt_compiler_flag:'`
  1036. (eval echo "\"configure:__oline__: $lt_compile\"" >&5)
  1037. (eval "$lt_compile" 2>out/conftest.err)
  1038. ac_status=$?
  1039. cat out/conftest.err >&5
  1040. echo "configure:__oline__: \$? = $ac_status" >&5
  1041. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1042. then
  1043. # The compiler can only warn and ignore the option if not recognized
  1044. # So say no if there are warnings
  1045. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1046. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1047. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1048. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1049. fi
  1050. fi
  1051. chmod u+w . 2>&5
  1052. $rm conftest*
  1053. # SGI C++ compiler will create directory out/ii_files/ for
  1054. # template instantiation
  1055. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1056. $rm out/* && rmdir out
  1057. cd ..
  1058. rmdir conftest
  1059. $rm conftest*
  1060. ])
  1061. ])# AC_LIBTOOL_PROG_CC_C_O
  1062. # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1063. # -----------------------------------------
  1064. # Check to see if we can do hard links to lock some files if needed
  1065. AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1066. [AC_REQUIRE([_LT_AC_LOCK])dnl
  1067. hard_links="nottested"
  1068. if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1069. # do not overwrite the value of need_locks provided by the user
  1070. AC_MSG_CHECKING([if we can lock with hard links])
  1071. hard_links=yes
  1072. $rm conftest*
  1073. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1074. touch conftest.a
  1075. ln conftest.a conftest.b 2>&5 || hard_links=no
  1076. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1077. AC_MSG_RESULT([$hard_links])
  1078. if test "$hard_links" = no; then
  1079. AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
  1080. need_locks=warn
  1081. fi
  1082. else
  1083. need_locks=no
  1084. fi
  1085. ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1086. # AC_LIBTOOL_OBJDIR
  1087. # -----------------
  1088. AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1089. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1090. [rm -f .libs 2>/dev/null
  1091. mkdir .libs 2>/dev/null
  1092. if test -d .libs; then
  1093. lt_cv_objdir=.libs
  1094. else
  1095. # MS-DOS does not allow filenames that begin with a dot.
  1096. lt_cv_objdir=_libs
  1097. fi
  1098. rmdir .libs 2>/dev/null])
  1099. objdir=$lt_cv_objdir
  1100. ])# AC_LIBTOOL_OBJDIR
  1101. # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1102. # ----------------------------------------------
  1103. # Check hardcoding attributes.
  1104. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1105. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1106. _LT_AC_TAGVAR(hardcode_action, $1)=
  1107. if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1108. test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1109. test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1110. # We can hardcode non-existent directories.
  1111. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1112. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1113. # have to relink, otherwise we might link with an installed library
  1114. # when we should be linking with a yet-to-be-installed one
  1115. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1116. test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1117. # Linking always hardcodes the temporary library directory.
  1118. _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1119. else
  1120. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1121. _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1122. fi
  1123. else
  1124. # We cannot hardcode anything, or else we can only hardcode existing
  1125. # directories.
  1126. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  1127. fi
  1128. AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  1129. if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  1130. # Fast installation is not supported
  1131. enable_fast_install=no
  1132. elif test "$shlibpath_overrides_runpath" = yes ||
  1133. test "$enable_shared" = no; then
  1134. # Fast installation is not necessary
  1135. enable_fast_install=needless
  1136. fi
  1137. ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1138. # AC_LIBTOOL_SYS_LIB_STRIP
  1139. # ------------------------
  1140. AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  1141. [striplib=
  1142. old_striplib=
  1143. AC_MSG_CHECKING([whether stripping libraries is possible])
  1144. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  1145. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1146. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1147. AC_MSG_RESULT([yes])
  1148. else
  1149. # FIXME - insert some real tests, host_os isn't really good enough
  1150. case $host_os in
  1151. darwin*)
  1152. if test -n "$STRIP" ; then
  1153. striplib="$STRIP -x"
  1154. old_striplib="$STRIP -S"
  1155. AC_MSG_RESULT([yes])
  1156. else
  1157. AC_MSG_RESULT([no])
  1158. fi
  1159. ;;
  1160. *)
  1161. AC_MSG_RESULT([no])
  1162. ;;
  1163. esac
  1164. fi
  1165. ])# AC_LIBTOOL_SYS_LIB_STRIP
  1166. # AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1167. # -----------------------------
  1168. # PORTME Fill in your ld.so characteristics
  1169. AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  1170. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  1171. AC_MSG_CHECKING([dynamic linker characteristics])
  1172. library_names_spec=
  1173. libname_spec='lib$name'
  1174. soname_spec=
  1175. shrext_cmds=".so"
  1176. postinstall_cmds=
  1177. postuninstall_cmds=
  1178. finish_cmds=
  1179. finish_eval=
  1180. shlibpath_var=
  1181. shlibpath_overrides_runpath=unknown
  1182. version_type=none
  1183. dynamic_linker="$host_os ld.so"
  1184. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1185. ifelse($1,[],[
  1186. if test "$GCC" = yes; then
  1187. case $host_os in
  1188. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1189. *) lt_awk_arg="/^libraries:/" ;;
  1190. esac
  1191. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1192. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  1193. # if the path contains ";" then we assume it to be the separator
  1194. # otherwise default to the standard path separator (i.e. ":") - it is
  1195. # assumed that no part of a normal pathname contains ";" but that should
  1196. # okay in the real world where ";" in dirpaths is itself problematic.
  1197. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  1198. else
  1199. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1200. fi
  1201. # Ok, now we have the path, separated by spaces, we can step through it
  1202. # and add multilib dir if necessary.
  1203. lt_tmp_lt_search_path_spec=
  1204. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1205. for lt_sys_path in $lt_search_path_spec; do
  1206. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1207. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1208. else
  1209. test -d "$lt_sys_path" && \
  1210. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1211. fi
  1212. done
  1213. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  1214. BEGIN {RS=" "; FS="/|\n";} {
  1215. lt_foo="";
  1216. lt_count=0;
  1217. for (lt_i = NF; lt_i > 0; lt_i--) {
  1218. if ($lt_i != "" && $lt_i != ".") {
  1219. if ($lt_i == "..") {
  1220. lt_count++;
  1221. } else {
  1222. if (lt_count == 0) {
  1223. lt_foo="/" $lt_i lt_foo;
  1224. } else {
  1225. lt_count--;
  1226. }
  1227. }
  1228. }
  1229. }
  1230. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1231. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1232. }'`
  1233. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  1234. else
  1235. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1236. fi])
  1237. need_lib_prefix=unknown
  1238. hardcode_into_libs=no
  1239. # when you set need_version to no, make sure it does not cause -set_version
  1240. # flags to be left without arguments
  1241. need_version=unknown
  1242. case $host_os in
  1243. aix3*)
  1244. version_type=linux
  1245. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1246. shlibpath_var=LIBPATH
  1247. # AIX 3 has no versioning support, so we append a major version to the name.
  1248. soname_spec='${libname}${release}${shared_ext}$major'
  1249. ;;
  1250. aix[[4-9]]*)
  1251. version_type=linux
  1252. need_lib_prefix=no
  1253. need_version=no
  1254. hardcode_into_libs=yes
  1255. if test "$host_cpu" = ia64; then
  1256. # AIX 5 supports IA64
  1257. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1258. shlibpath_var=LD_LIBRARY_PATH
  1259. else
  1260. # With GCC up to 2.95.x, collect2 would create an import file
  1261. # for dependence libraries. The import file would start with
  1262. # the line `#! .'. This would cause the generated library to
  1263. # depend on `.', always an invalid library. This was fixed in
  1264. # development snapshots of GCC prior to 3.0.
  1265. case $host_os in
  1266. aix4 | aix4.[[01]] | aix4.[[01]].*)
  1267. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1268. echo ' yes '
  1269. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  1270. :
  1271. else
  1272. can_build_shared=no
  1273. fi
  1274. ;;
  1275. esac
  1276. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1277. # soname into executable. Probably we can add versioning support to
  1278. # collect2, so additional links can be useful in future.
  1279. if test "$aix_use_runtimelinking" = yes; then
  1280. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1281. # instead of lib<name>.a to let people know that these are not
  1282. # typical AIX shared libraries.
  1283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1284. else
  1285. # We preserve .a as extension for shared libraries through AIX4.2
  1286. # and later when we are not doing run time linking.
  1287. library_names_spec='${libname}${release}.a $libname.a'
  1288. soname_spec='${libname}${release}${shared_ext}$major'
  1289. fi
  1290. shlibpath_var=LIBPATH
  1291. fi
  1292. ;;
  1293. amigaos*)
  1294. library_names_spec='$libname.ixlibrary $libname.a'
  1295. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1296. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  1297. ;;
  1298. beos*)
  1299. library_names_spec='${libname}${shared_ext}'
  1300. dynamic_linker="$host_os ld.so"
  1301. shlibpath_var=LIBRARY_PATH
  1302. ;;
  1303. haiku*)
  1304. # Since haiku provides gcc, use GNU style here
  1305. version_type=linux
  1306. need_lib_prefix=no
  1307. need_version=no
  1308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1309. soname_spec='${libname}${release}${shared_ext}$major'
  1310. shlibpath_var=LIBRARY_PATH
  1311. hardcode_into_libs=yes
  1312. ;;
  1313. bsdi[[45]]*)
  1314. version_type=linux
  1315. need_version=no
  1316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1317. soname_spec='${libname}${release}${shared_ext}$major'
  1318. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1319. shlibpath_var=LD_LIBRARY_PATH
  1320. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1321. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1322. # the default ld.so.conf also contains /usr/contrib/lib and
  1323. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1324. # libtool to hard-code these into programs
  1325. ;;
  1326. cygwin* | mingw* | pw32*)
  1327. version_type=windows
  1328. shrext_cmds=".dll"
  1329. need_version=no
  1330. need_lib_prefix=no
  1331. case $GCC,$host_os in
  1332. yes,cygwin* | yes,mingw* | yes,pw32*)
  1333. library_names_spec='$libname.dll.a'
  1334. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1335. postinstall_cmds='base_file=`basename \${file}`~
  1336. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  1337. dldir=$destdir/`dirname \$dlpath`~
  1338. test -d \$dldir || mkdir -p \$dldir~
  1339. $install_prog $dir/$dlname \$dldir/$dlname~
  1340. chmod a+x \$dldir/$dlname'
  1341. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1342. dlpath=$dir/\$dldll~
  1343. $rm \$dlpath'
  1344. shlibpath_overrides_runpath=yes
  1345. case $host_os in
  1346. cygwin*)
  1347. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1348. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1349. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1350. ;;
  1351. mingw*)
  1352. # MinGW DLLs use traditional 'lib' prefix
  1353. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1354. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1355. if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  1356. # It is most probably a Windows format PATH printed by
  1357. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1358. # path with ; separators, and with drive letters. We can handle the
  1359. # drive letters (cygwin fileutils understands them), so leave them,
  1360. # especially as we might pass files found there to a mingw objdump,
  1361. # which wouldn't understand a cygwinified path. Ahh.
  1362. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1363. else
  1364. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1365. fi
  1366. ;;
  1367. pw32*)
  1368. # pw32 DLLs use 'pw' prefix rather than 'lib'
  1369. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1370. ;;
  1371. esac
  1372. ;;
  1373. *)
  1374. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1375. ;;
  1376. esac
  1377. dynamic_linker='Win32 ld.exe'
  1378. # FIXME: first we should search . and the directory the executable is in
  1379. shlibpath_var=PATH
  1380. ;;
  1381. darwin* | rhapsody*)
  1382. dynamic_linker="$host_os dyld"
  1383. version_type=darwin
  1384. need_lib_prefix=no
  1385. need_version=no
  1386. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1387. soname_spec='${libname}${release}${major}$shared_ext'
  1388. shlibpath_overrides_runpath=yes
  1389. shlibpath_var=DYLD_LIBRARY_PATH
  1390. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  1391. ifelse([$1], [],[
  1392. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  1393. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  1394. ;;
  1395. dgux*)
  1396. version_type=linux
  1397. need_lib_prefix=no
  1398. need_version=no
  1399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1400. soname_spec='${libname}${release}${shared_ext}$major'
  1401. shlibpath_var=LD_LIBRARY_PATH
  1402. ;;
  1403. freebsd* | dragonfly*)
  1404. # DragonFly does not have aout. When/if they implement a new
  1405. # versioning mechanism, adjust this.
  1406. if test -x /usr/bin/objformat; then
  1407. objformat=`/usr/bin/objformat`
  1408. else
  1409. case $host_os in
  1410. freebsd[[123]].*) objformat=aout ;;
  1411. *) objformat=elf ;;
  1412. esac
  1413. fi
  1414. version_type=freebsd-$objformat
  1415. case $version_type in
  1416. freebsd-elf*)
  1417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1418. need_version=no
  1419. need_lib_prefix=no
  1420. ;;
  1421. freebsd-*)
  1422. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  1423. need_version=yes
  1424. ;;
  1425. esac
  1426. shlibpath_var=LD_LIBRARY_PATH
  1427. case $host_os in
  1428. freebsd2*)
  1429. shlibpath_overrides_runpath=yes
  1430. ;;
  1431. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  1432. shlibpath_overrides_runpath=yes
  1433. hardcode_into_libs=yes
  1434. ;;
  1435. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  1436. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  1437. shlibpath_overrides_runpath=no
  1438. hardcode_into_libs=yes
  1439. ;;
  1440. *) # from 4.6 on, and DragonFly
  1441. shlibpath_overrides_runpath=yes
  1442. hardcode_into_libs=yes
  1443. ;;
  1444. esac
  1445. ;;
  1446. gnu*)
  1447. version_type=linux
  1448. need_lib_prefix=no
  1449. need_version=no
  1450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1451. soname_spec='${libname}${release}${shared_ext}$major'
  1452. shlibpath_var=LD_LIBRARY_PATH
  1453. hardcode_into_libs=yes
  1454. ;;
  1455. hpux9* | hpux10* | hpux11*)
  1456. # Give a soname corresponding to the major version so that dld.sl refuses to
  1457. # link against other versions.
  1458. version_type=sunos
  1459. need_lib_prefix=no
  1460. need_version=no
  1461. case $host_cpu in
  1462. ia64*)
  1463. shrext_cmds='.so'
  1464. hardcode_into_libs=yes
  1465. dynamic_linker="$host_os dld.so"
  1466. shlibpath_var=LD_LIBRARY_PATH
  1467. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1469. soname_spec='${libname}${release}${shared_ext}$major'
  1470. if test "X$HPUX_IA64_MODE" = X32; then
  1471. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1472. else
  1473. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1474. fi
  1475. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1476. ;;
  1477. hppa*64*)
  1478. shrext_cmds='.sl'
  1479. hardcode_into_libs=yes
  1480. dynamic_linker="$host_os dld.sl"
  1481. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1482. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1483. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1484. soname_spec='${libname}${release}${shared_ext}$major'
  1485. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1486. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1487. ;;
  1488. *)
  1489. shrext_cmds='.sl'
  1490. dynamic_linker="$host_os dld.sl"
  1491. shlibpath_var=SHLIB_PATH
  1492. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1493. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1494. soname_spec='${libname}${release}${shared_ext}$major'
  1495. ;;
  1496. esac
  1497. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1498. postinstall_cmds='chmod 555 $lib'
  1499. ;;
  1500. interix[[3-9]]*)
  1501. version_type=linux
  1502. need_lib_prefix=no
  1503. need_version=no
  1504. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1505. soname_spec='${libname}${release}${shared_ext}$major'
  1506. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  1507. shlibpath_var=LD_LIBRARY_PATH
  1508. shlibpath_overrides_runpath=no
  1509. hardcode_into_libs=yes
  1510. ;;
  1511. irix5* | irix6* | nonstopux*)
  1512. case $host_os in
  1513. nonstopux*) version_type=nonstopux ;;
  1514. *)
  1515. if test "$lt_cv_prog_gnu_ld" = yes; then
  1516. version_type=linux
  1517. else
  1518. version_type=irix
  1519. fi ;;
  1520. esac
  1521. need_lib_prefix=no
  1522. need_version=no
  1523. soname_spec='${libname}${release}${shared_ext}$major'
  1524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  1525. case $host_os in
  1526. irix5* | nonstopux*)
  1527. libsuff= shlibsuff=
  1528. ;;
  1529. *)
  1530. case $LD in # libtool.m4 will add one of these switches to LD
  1531. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  1532. libsuff= shlibsuff= libmagic=32-bit;;
  1533. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  1534. libsuff=32 shlibsuff=N32 libmagic=N32;;
  1535. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  1536. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1537. *) libsuff= shlibsuff= libmagic=never-match;;
  1538. esac
  1539. ;;
  1540. esac
  1541. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1542. shlibpath_overrides_runpath=no
  1543. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1544. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1545. hardcode_into_libs=yes
  1546. ;;
  1547. # No shared lib support for Linux oldld, aout, or coff.
  1548. linux*oldld* | linux*aout* | linux*coff*)
  1549. dynamic_linker=no
  1550. ;;
  1551. # This must be Linux ELF.
  1552. linux* | k*bsd*-gnu)
  1553. version_type=linux
  1554. need_lib_prefix=no
  1555. need_version=no
  1556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1557. soname_spec='${libname}${release}${shared_ext}$major'
  1558. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1559. shlibpath_var=LD_LIBRARY_PATH
  1560. shlibpath_overrides_runpath=no
  1561. # This implies no fast_install, which is unacceptable.
  1562. # Some rework will be needed to allow for fast_install
  1563. # before this can be enabled.
  1564. hardcode_into_libs=yes
  1565. # Append ld.so.conf contents to the search path
  1566. if test -f /etc/ld.so.conf; then
  1567. 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;/^$/d' | tr '\n' ' '`
  1568. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1569. fi
  1570. # We used to test for /lib/ld.so.1 and disable shared libraries on
  1571. # powerpc, because MkLinux only supported shared libraries with the
  1572. # GNU dynamic linker. Since this was broken with cross compilers,
  1573. # most powerpc-linux boxes support dynamic linking these days and
  1574. # people can always --disable-shared, the test was removed, and we
  1575. # assume the GNU/Linux dynamic linker is in use.
  1576. dynamic_linker='GNU/Linux ld.so'
  1577. ;;
  1578. netbsd*)
  1579. version_type=sunos
  1580. need_lib_prefix=no
  1581. need_version=no
  1582. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1584. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1585. dynamic_linker='NetBSD (a.out) ld.so'
  1586. else
  1587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1588. soname_spec='${libname}${release}${shared_ext}$major'
  1589. dynamic_linker='NetBSD ld.elf_so'
  1590. fi
  1591. shlibpath_var=LD_LIBRARY_PATH
  1592. shlibpath_overrides_runpath=yes
  1593. hardcode_into_libs=yes
  1594. ;;
  1595. newsos6)
  1596. version_type=linux
  1597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1598. shlibpath_var=LD_LIBRARY_PATH
  1599. shlibpath_overrides_runpath=yes
  1600. ;;
  1601. nto-qnx*)
  1602. version_type=linux
  1603. need_lib_prefix=no
  1604. need_version=no
  1605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1606. soname_spec='${libname}${release}${shared_ext}$major'
  1607. shlibpath_var=LD_LIBRARY_PATH
  1608. shlibpath_overrides_runpath=yes
  1609. ;;
  1610. openbsd*)
  1611. version_type=sunos
  1612. sys_lib_dlsearch_path_spec="/usr/lib"
  1613. need_lib_prefix=no
  1614. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  1615. case $host_os in
  1616. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  1617. *) need_version=no ;;
  1618. esac
  1619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1620. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1621. shlibpath_var=LD_LIBRARY_PATH
  1622. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1623. case $host_os in
  1624. openbsd2.[[89]] | openbsd2.[[89]].*)
  1625. shlibpath_overrides_runpath=no
  1626. ;;
  1627. *)
  1628. shlibpath_overrides_runpath=yes
  1629. ;;
  1630. esac
  1631. else
  1632. shlibpath_overrides_runpath=yes
  1633. fi
  1634. ;;
  1635. os2*)
  1636. libname_spec='$name'
  1637. shrext_cmds=".dll"
  1638. need_lib_prefix=no
  1639. library_names_spec='$libname${shared_ext} $libname.a'
  1640. dynamic_linker='OS/2 ld.exe'
  1641. shlibpath_var=LIBPATH
  1642. ;;
  1643. osf3* | osf4* | osf5*)
  1644. version_type=osf
  1645. need_lib_prefix=no
  1646. need_version=no
  1647. soname_spec='${libname}${release}${shared_ext}$major'
  1648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1649. shlibpath_var=LD_LIBRARY_PATH
  1650. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1651. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1652. ;;
  1653. rdos*)
  1654. dynamic_linker=no
  1655. ;;
  1656. solaris*)
  1657. version_type=linux
  1658. need_lib_prefix=no
  1659. need_version=no
  1660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1661. soname_spec='${libname}${release}${shared_ext}$major'
  1662. shlibpath_var=LD_LIBRARY_PATH
  1663. shlibpath_overrides_runpath=yes
  1664. hardcode_into_libs=yes
  1665. # ldd complains unless libraries are executable
  1666. postinstall_cmds='chmod +x $lib'
  1667. ;;
  1668. sunos4*)
  1669. version_type=sunos
  1670. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1671. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  1672. shlibpath_var=LD_LIBRARY_PATH
  1673. shlibpath_overrides_runpath=yes
  1674. if test "$with_gnu_ld" = yes; then
  1675. need_lib_prefix=no
  1676. fi
  1677. need_version=yes
  1678. ;;
  1679. sysv4 | sysv4.3*)
  1680. version_type=linux
  1681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1682. soname_spec='${libname}${release}${shared_ext}$major'
  1683. shlibpath_var=LD_LIBRARY_PATH
  1684. case $host_vendor in
  1685. sni)
  1686. shlibpath_overrides_runpath=no
  1687. need_lib_prefix=no
  1688. export_dynamic_flag_spec='${wl}-Blargedynsym'
  1689. runpath_var=LD_RUN_PATH
  1690. ;;
  1691. siemens)
  1692. need_lib_prefix=no
  1693. ;;
  1694. motorola)
  1695. need_lib_prefix=no
  1696. need_version=no
  1697. shlibpath_overrides_runpath=no
  1698. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1699. ;;
  1700. esac
  1701. ;;
  1702. sysv4*MP*)
  1703. if test -d /usr/nec ;then
  1704. version_type=linux
  1705. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1706. soname_spec='$libname${shared_ext}.$major'
  1707. shlibpath_var=LD_LIBRARY_PATH
  1708. fi
  1709. ;;
  1710. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1711. version_type=freebsd-elf
  1712. need_lib_prefix=no
  1713. need_version=no
  1714. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1715. soname_spec='${libname}${release}${shared_ext}$major'
  1716. shlibpath_var=LD_LIBRARY_PATH
  1717. hardcode_into_libs=yes
  1718. if test "$with_gnu_ld" = yes; then
  1719. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  1720. shlibpath_overrides_runpath=no
  1721. else
  1722. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  1723. shlibpath_overrides_runpath=yes
  1724. case $host_os in
  1725. sco3.2v5*)
  1726. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  1727. ;;
  1728. esac
  1729. fi
  1730. sys_lib_dlsearch_path_spec='/usr/lib'
  1731. ;;
  1732. uts4*)
  1733. version_type=linux
  1734. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1735. soname_spec='${libname}${release}${shared_ext}$major'
  1736. shlibpath_var=LD_LIBRARY_PATH
  1737. ;;
  1738. *)
  1739. dynamic_linker=no
  1740. ;;
  1741. esac
  1742. AC_MSG_RESULT([$dynamic_linker])
  1743. test "$dynamic_linker" = no && can_build_shared=no
  1744. AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
  1745. [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
  1746. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  1747. AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
  1748. [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
  1749. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  1750. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  1751. if test "$GCC" = yes; then
  1752. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  1753. fi
  1754. ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1755. # _LT_AC_TAGCONFIG
  1756. # ----------------
  1757. AC_DEFUN([_LT_AC_TAGCONFIG],
  1758. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  1759. AC_ARG_WITH([tags],
  1760. [ --with-tags[=TAGS] Include additional configurations [automatic]
  1761. ],
  1762. [tagnames="$withval"])
  1763. if test -f "$ltmain" && test -n "$tagnames"; then
  1764. if test ! -f "${ofile}"; then
  1765. AC_MSG_WARN([output file \`$ofile' does not exist])
  1766. fi
  1767. if test -z "$LTCC"; then
  1768. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  1769. if test -z "$LTCC"; then
  1770. AC_MSG_WARN([output file \`$ofile' does not look like a libtool script])
  1771. else
  1772. AC_MSG_WARN([using \`LTCC=$LTCC', extracted from \`$ofile'])
  1773. fi
  1774. fi
  1775. if test -z "$LTCFLAGS"; then
  1776. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  1777. fi
  1778. # Extract list of available tagged configurations in $ofile.
  1779. # Note that this assumes the entire list is on one line.
  1780. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  1781. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1782. for tagname in $tagnames; do
  1783. IFS="$lt_save_ifs"
  1784. # Check whether tagname contains only valid characters
  1785. case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  1786. "") ;;
  1787. *) AC_MSG_ERROR([invalid tag name: $tagname])
  1788. ;;
  1789. esac
  1790. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  1791. then
  1792. AC_MSG_ERROR([tag name \"$tagname\" already exists])
  1793. fi
  1794. # Update the list of available tags.
  1795. if test -n "$tagname"; then
  1796. echo appending configuration tag \"$tagname\" to $ofile
  1797. case $tagname in
  1798. CXX)
  1799. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1800. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1801. (test "X$CXX" != "Xg++"))) ; then
  1802. AC_LIBTOOL_LANG_CXX_CONFIG
  1803. else
  1804. tagname=""
  1805. fi
  1806. ;;
  1807. *)
  1808. AC_MSG_ERROR([Unsupported tag name: $tagname])
  1809. ;;
  1810. esac
  1811. # Append the new tag name to the list of available tags.
  1812. if test -n "$tagname" ; then
  1813. available_tags="$available_tags $tagname"
  1814. fi
  1815. fi
  1816. done
  1817. IFS="$lt_save_ifs"
  1818. # Now substitute the updated list of available tags.
  1819. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  1820. mv "${ofile}T" "$ofile"
  1821. chmod +x "$ofile"
  1822. else
  1823. rm -f "${ofile}T"
  1824. AC_MSG_ERROR([unable to update list of available tagged configurations.])
  1825. fi
  1826. fi
  1827. ])# _LT_AC_TAGCONFIG
  1828. # AC_LIBTOOL_DLOPEN
  1829. # -----------------
  1830. # enable checks for dlopen support
  1831. AC_DEFUN([AC_LIBTOOL_DLOPEN],
  1832. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  1833. ])# AC_LIBTOOL_DLOPEN
  1834. # AC_LIBTOOL_WIN32_DLL
  1835. # --------------------
  1836. # declare package support for building win32 DLLs
  1837. AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  1838. [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  1839. ])# AC_LIBTOOL_WIN32_DLL
  1840. # AC_ENABLE_SHARED([DEFAULT])
  1841. # ---------------------------
  1842. # implement the --enable-shared flag
  1843. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1844. AC_DEFUN([AC_ENABLE_SHARED],
  1845. [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  1846. AC_ARG_ENABLE([shared],
  1847. changequote(<<, >>)dnl
  1848. << --enable-shared[=PKGS] Build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
  1849. changequote([, ])dnl
  1850. [p=${PACKAGE-default}
  1851. case $enableval in
  1852. yes) enable_shared=yes ;;
  1853. no) enable_shared=no ;;
  1854. *)
  1855. enable_shared=no
  1856. # Look at the argument we got. We use all the common list separators.
  1857. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1858. for pkg in $enableval; do
  1859. IFS="$lt_save_ifs"
  1860. if test "X$pkg" = "X$p"; then
  1861. enable_shared=yes
  1862. fi
  1863. done
  1864. IFS="$lt_save_ifs"
  1865. ;;
  1866. esac],
  1867. [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  1868. ])# AC_ENABLE_SHARED
  1869. # AC_DISABLE_SHARED
  1870. # -----------------
  1871. # set the default shared flag to --disable-shared
  1872. AC_DEFUN([AC_DISABLE_SHARED],
  1873. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1874. AC_ENABLE_SHARED(no)
  1875. ])# AC_DISABLE_SHARED
  1876. # AC_ENABLE_STATIC([DEFAULT])
  1877. # ---------------------------
  1878. # implement the --enable-static flag
  1879. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1880. AC_DEFUN([AC_ENABLE_STATIC],
  1881. [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  1882. AC_ARG_ENABLE([static],
  1883. changequote(<<, >>)dnl
  1884. << --enable-static[=PKGS] Build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
  1885. changequote([, ])dnl
  1886. [p=${PACKAGE-default}
  1887. case $enableval in
  1888. yes) enable_static=yes ;;
  1889. no) enable_static=no ;;
  1890. *)
  1891. enable_static=no
  1892. # Look at the argument we got. We use all the common list separators.
  1893. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1894. for pkg in $enableval; do
  1895. IFS="$lt_save_ifs"
  1896. if test "X$pkg" = "X$p"; then
  1897. enable_static=yes
  1898. fi
  1899. done
  1900. IFS="$lt_save_ifs"
  1901. ;;
  1902. esac],
  1903. [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  1904. ])# AC_ENABLE_STATIC
  1905. # AC_DISABLE_STATIC
  1906. # -----------------
  1907. # set the default static flag to --disable-static
  1908. AC_DEFUN([AC_DISABLE_STATIC],
  1909. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1910. AC_ENABLE_STATIC(no)
  1911. ])# AC_DISABLE_STATIC
  1912. # AC_ENABLE_FAST_INSTALL([DEFAULT])
  1913. # ---------------------------------
  1914. # implement the --enable-fast-install flag
  1915. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1916. AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  1917. [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  1918. AC_ARG_ENABLE([fast-install],
  1919. changequote(<<, >>)dnl
  1920. << --enable-fast-install[=PKGS]
  1921. Optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
  1922. changequote([, ])dnl
  1923. [p=${PACKAGE-default}
  1924. case $enableval in
  1925. yes) enable_fast_install=yes ;;
  1926. no) enable_fast_install=no ;;
  1927. *)
  1928. enable_fast_install=no
  1929. # Look at the argument we got. We use all the common list separators.
  1930. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1931. for pkg in $enableval; do
  1932. IFS="$lt_save_ifs"
  1933. if test "X$pkg" = "X$p"; then
  1934. enable_fast_install=yes
  1935. fi
  1936. done
  1937. IFS="$lt_save_ifs"
  1938. ;;
  1939. esac],
  1940. [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  1941. ])# AC_ENABLE_FAST_INSTALL
  1942. # AC_DISABLE_FAST_INSTALL
  1943. # -----------------------
  1944. # set the default to --disable-fast-install
  1945. AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  1946. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1947. AC_ENABLE_FAST_INSTALL(no)
  1948. ])# AC_DISABLE_FAST_INSTALL
  1949. # AC_LIBTOOL_PICMODE([MODE])
  1950. # --------------------------
  1951. # implement the --with-pic flag
  1952. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  1953. AC_DEFUN([AC_LIBTOOL_PICMODE],
  1954. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1955. pic_mode=ifelse($#,1,$1,default)
  1956. ])# AC_LIBTOOL_PICMODE
  1957. # AC_PROG_EGREP
  1958. # -------------
  1959. ifdef([AC_PROG_EGREP], [], [AC_DEFUN([AC_PROG_EGREP],
  1960. [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  1961. [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  1962. then ac_cv_prog_egrep='grep -E'
  1963. else ac_cv_prog_egrep='egrep'
  1964. fi])
  1965. EGREP=$ac_cv_prog_egrep
  1966. AC_SUBST([EGREP])
  1967. ])])
  1968. # AC_PATH_TOOL_PREFIX
  1969. # -------------------
  1970. # find a file program which can recognize shared library
  1971. AC_DEFUN([AC_PATH_TOOL_PREFIX],
  1972. [AC_REQUIRE([AC_PROG_EGREP])dnl
  1973. AC_MSG_CHECKING([for $1])
  1974. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  1975. [case $MAGIC_CMD in
  1976. [[\\/*] | ?:[\\/]*])
  1977. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  1978. ;;
  1979. *)
  1980. lt_save_MAGIC_CMD="$MAGIC_CMD"
  1981. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1982. dnl $ac_dummy forces splitting on constant user-supplied paths.
  1983. dnl POSIX.2 word splitting is done only on the output of word expansions,
  1984. dnl not every word. This closes a longstanding sh security hole.
  1985. ac_dummy="ifelse([$2], , $PATH, [$2])"
  1986. for ac_dir in $ac_dummy; do
  1987. IFS="$lt_save_ifs"
  1988. test -z "$ac_dir" && ac_dir=.
  1989. if test -f $ac_dir/$1; then
  1990. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  1991. if test -n "$file_magic_test_file"; then
  1992. case $deplibs_check_method in
  1993. "file_magic "*)
  1994. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  1995. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1996. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  1997. $EGREP "$file_magic_regex" > /dev/null; then
  1998. :
  1999. else
  2000. cat <<EOF 1>&2
  2001. *** Warning: the command libtool uses to detect shared libraries,
  2002. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2003. *** The result is that libtool may fail to recognize shared libraries
  2004. *** as such. This will affect the creation of libtool libraries that
  2005. *** depend on shared libraries, but programs linked with such libtool
  2006. *** libraries will work regardless of this problem. Nevertheless, you
  2007. *** may want to report the problem to your system manager and/or to
  2008. *** bug-libtool@gnu.org
  2009. EOF
  2010. fi ;;
  2011. esac
  2012. fi
  2013. break
  2014. fi
  2015. done
  2016. IFS="$lt_save_ifs"
  2017. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2018. ;;
  2019. esac])
  2020. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2021. if test -n "$MAGIC_CMD"; then
  2022. AC_MSG_RESULT($MAGIC_CMD)
  2023. else
  2024. AC_MSG_RESULT(no)
  2025. fi
  2026. ])# AC_PATH_TOOL_PREFIX
  2027. # AC_PATH_MAGIC
  2028. # -------------
  2029. # find a file program which can recognize a shared library
  2030. AC_DEFUN([AC_PATH_MAGIC],
  2031. [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2032. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2033. if test -n "$ac_tool_prefix"; then
  2034. AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2035. else
  2036. MAGIC_CMD=:
  2037. fi
  2038. fi
  2039. ])# AC_PATH_MAGIC
  2040. # AC_PROG_LD
  2041. # ----------
  2042. # find the pathname to the GNU or non-GNU linker
  2043. AC_DEFUN([AC_PROG_LD],
  2044. [AC_ARG_WITH([gnu-ld],
  2045. [ --with-gnu-ld Assume the C compiler uses GNU ld [default=no]],
  2046. [test "$withval" = no || with_gnu_ld=yes],
  2047. [with_gnu_ld=no])
  2048. AC_REQUIRE([LT_AC_PROG_SED])dnl
  2049. AC_REQUIRE([AC_PROG_CC])dnl
  2050. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2051. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2052. ac_prog=ld
  2053. if test "$GCC" = yes; then
  2054. # Check if gcc -print-prog-name=ld gives a path.
  2055. AC_MSG_CHECKING([for ld used by $CC])
  2056. case $host in
  2057. *-*-mingw*)
  2058. # gcc leaves a trailing carriage return which upsets mingw
  2059. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2060. *)
  2061. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2062. esac
  2063. case $ac_prog in
  2064. # Accept absolute paths.
  2065. [[\\/]]* | ?:[[\\/]]*)
  2066. re_direlt='/[[^/]][[^/]]*/\.\./'
  2067. # Canonicalize the pathname of ld
  2068. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2069. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2070. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2071. done
  2072. test -z "$LD" && LD="$ac_prog"
  2073. ;;
  2074. "")
  2075. # If it fails, then pretend we aren't using GCC.
  2076. ac_prog=ld
  2077. ;;
  2078. *)
  2079. # If it is relative, then search for the first ld in PATH.
  2080. with_gnu_ld=unknown
  2081. ;;
  2082. esac
  2083. elif test "$with_gnu_ld" = yes; then
  2084. AC_MSG_CHECKING([for GNU ld])
  2085. else
  2086. AC_MSG_CHECKING([for non-GNU ld])
  2087. fi
  2088. AC_CACHE_VAL(lt_cv_path_LD,
  2089. [if test -z "$LD"; then
  2090. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2091. for ac_dir in $PATH; do
  2092. IFS="$lt_save_ifs"
  2093. test -z "$ac_dir" && ac_dir=.
  2094. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2095. lt_cv_path_LD="$ac_dir/$ac_prog"
  2096. # Check to see if the program is GNU ld. I'd rather use --version,
  2097. # but apparently some variants of GNU ld only accept -v.
  2098. # Break only if it was the GNU/non-GNU ld that we prefer.
  2099. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2100. *GNU* | *'with BFD'*)
  2101. test "$with_gnu_ld" != no && break
  2102. ;;
  2103. *)
  2104. test "$with_gnu_ld" != yes && break
  2105. ;;
  2106. esac
  2107. fi
  2108. done
  2109. IFS="$lt_save_ifs"
  2110. else
  2111. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2112. fi])
  2113. LD="$lt_cv_path_LD"
  2114. if test -n "$LD"; then
  2115. AC_MSG_RESULT($LD)
  2116. else
  2117. AC_MSG_RESULT(no)
  2118. fi
  2119. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2120. AC_PROG_LD_GNU
  2121. ])# AC_PROG_LD
  2122. # AC_PROG_LD_GNU
  2123. # --------------
  2124. AC_DEFUN([AC_PROG_LD_GNU],
  2125. [AC_REQUIRE([AC_PROG_EGREP])dnl
  2126. AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2127. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2128. case `$LD -v 2>&1 </dev/null` in
  2129. *GNU* | *'with BFD'*)
  2130. lt_cv_prog_gnu_ld=yes
  2131. ;;
  2132. *)
  2133. lt_cv_prog_gnu_ld=no
  2134. ;;
  2135. esac])
  2136. with_gnu_ld=$lt_cv_prog_gnu_ld
  2137. ])# AC_PROG_LD_GNU
  2138. # AC_PROG_LD_RELOAD_FLAG
  2139. # ----------------------
  2140. # find reload flag for linker
  2141. # -- PORTME Some linkers may need a different reload flag.
  2142. AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  2143. [AC_CACHE_CHECK([for $LD option to reload object files],
  2144. lt_cv_ld_reload_flag,
  2145. [lt_cv_ld_reload_flag='-r'])
  2146. reload_flag=$lt_cv_ld_reload_flag
  2147. case $reload_flag in
  2148. "" | " "*) ;;
  2149. *) reload_flag=" $reload_flag" ;;
  2150. esac
  2151. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2152. case $host_os in
  2153. darwin*)
  2154. if test "$GCC" = yes; then
  2155. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2156. else
  2157. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2158. fi
  2159. ;;
  2160. esac
  2161. ])# AC_PROG_LD_RELOAD_FLAG
  2162. # AC_DEPLIBS_CHECK_METHOD
  2163. # -----------------------
  2164. # how to check for library dependencies
  2165. # -- PORTME fill in with the dynamic library characteristics
  2166. AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  2167. [AC_CACHE_CHECK([how to recognize dependent libraries],
  2168. lt_cv_deplibs_check_method,
  2169. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2170. lt_cv_file_magic_test_file=
  2171. lt_cv_deplibs_check_method='unknown'
  2172. # Need to set the preceding variable on all platforms that support
  2173. # interlibrary dependencies.
  2174. # 'none' -- dependencies not supported.
  2175. # `unknown' -- same as none, but documents that we really don't know.
  2176. # 'pass_all' -- all dependencies passed with no checks.
  2177. # 'test_compile' -- check by making test program.
  2178. # 'file_magic [[regex]]' -- check by looking for files in library path
  2179. # which responds to the $file_magic_cmd with a given extended regex.
  2180. # If you have `file' or equivalent on your system and you're not sure
  2181. # whether `pass_all' will *always* work, you probably want this one.
  2182. case $host_os in
  2183. aix[[4-9]]*)
  2184. lt_cv_deplibs_check_method=pass_all
  2185. ;;
  2186. beos* | haiku*)
  2187. lt_cv_deplibs_check_method=pass_all
  2188. ;;
  2189. bsdi[[45]]*)
  2190. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2191. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2192. lt_cv_file_magic_test_file=/shlib/libc.so
  2193. ;;
  2194. cygwin*)
  2195. # func_win32_libid is a shell function defined in ltmain.sh
  2196. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2197. lt_cv_file_magic_cmd='func_win32_libid'
  2198. ;;
  2199. mingw* | pw32*)
  2200. # Base MSYS/MinGW do not provide the 'file' command needed by
  2201. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2202. # unless we find 'file', for example because we are cross-compiling.
  2203. if ( file / ) >/dev/null 2>&1; then
  2204. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2205. lt_cv_file_magic_cmd='func_win32_libid'
  2206. else
  2207. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2208. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2209. fi
  2210. ;;
  2211. darwin* | rhapsody*)
  2212. lt_cv_deplibs_check_method=pass_all
  2213. ;;
  2214. freebsd* | dragonfly*)
  2215. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2216. case $host_cpu in
  2217. i*86 )
  2218. # Not sure whether the presence of OpenBSD here was a mistake.
  2219. # Let's accept both of them until this is cleared up.
  2220. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2221. lt_cv_file_magic_cmd=/usr/bin/file
  2222. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2223. ;;
  2224. esac
  2225. else
  2226. lt_cv_deplibs_check_method=pass_all
  2227. fi
  2228. ;;
  2229. gnu*)
  2230. lt_cv_deplibs_check_method=pass_all
  2231. ;;
  2232. hpux10.20* | hpux11*)
  2233. lt_cv_file_magic_cmd=/usr/bin/file
  2234. case $host_cpu in
  2235. ia64*)
  2236. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2237. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2238. ;;
  2239. hppa*64*)
  2240. [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  2241. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2242. ;;
  2243. *)
  2244. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  2245. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2246. ;;
  2247. esac
  2248. ;;
  2249. interix[[3-9]]*)
  2250. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2251. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2252. ;;
  2253. irix5* | irix6* | nonstopux*)
  2254. case $LD in
  2255. *-32|*"-32 ") libmagic=32-bit;;
  2256. *-n32|*"-n32 ") libmagic=N32;;
  2257. *-64|*"-64 ") libmagic=64-bit;;
  2258. *) libmagic=never-match;;
  2259. esac
  2260. lt_cv_deplibs_check_method=pass_all
  2261. ;;
  2262. # This must be Linux ELF.
  2263. linux* | k*bsd*-gnu)
  2264. lt_cv_deplibs_check_method=pass_all
  2265. ;;
  2266. netbsd*)
  2267. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2268. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2269. else
  2270. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2271. fi
  2272. ;;
  2273. newos6*)
  2274. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2275. lt_cv_file_magic_cmd=/usr/bin/file
  2276. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2277. ;;
  2278. nto-qnx*)
  2279. lt_cv_deplibs_check_method=unknown
  2280. ;;
  2281. openbsd*)
  2282. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2283. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2284. else
  2285. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2286. fi
  2287. ;;
  2288. osf3* | osf4* | osf5*)
  2289. lt_cv_deplibs_check_method=pass_all
  2290. ;;
  2291. rdos*)
  2292. lt_cv_deplibs_check_method=pass_all
  2293. ;;
  2294. solaris*)
  2295. lt_cv_deplibs_check_method=pass_all
  2296. ;;
  2297. sysv4 | sysv4.3*)
  2298. case $host_vendor in
  2299. motorola)
  2300. 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]]'
  2301. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2302. ;;
  2303. ncr)
  2304. lt_cv_deplibs_check_method=pass_all
  2305. ;;
  2306. sequent)
  2307. lt_cv_file_magic_cmd='/bin/file'
  2308. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  2309. ;;
  2310. sni)
  2311. lt_cv_file_magic_cmd='/bin/file'
  2312. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  2313. lt_cv_file_magic_test_file=/lib/libc.so
  2314. ;;
  2315. siemens)
  2316. lt_cv_deplibs_check_method=pass_all
  2317. ;;
  2318. pc)
  2319. lt_cv_deplibs_check_method=pass_all
  2320. ;;
  2321. esac
  2322. ;;
  2323. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2324. lt_cv_deplibs_check_method=pass_all
  2325. ;;
  2326. esac
  2327. ])
  2328. file_magic_cmd=$lt_cv_file_magic_cmd
  2329. deplibs_check_method=$lt_cv_deplibs_check_method
  2330. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2331. ])# AC_DEPLIBS_CHECK_METHOD
  2332. # AC_PROG_NM
  2333. # ----------
  2334. # find the pathname to a BSD-compatible name lister
  2335. AC_DEFUN([AC_PROG_NM],
  2336. [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  2337. [if test -n "$NM"; then
  2338. # Let the user override the test.
  2339. lt_cv_path_NM="$NM"
  2340. else
  2341. lt_nm_to_check="${ac_tool_prefix}nm"
  2342. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  2343. lt_nm_to_check="$lt_nm_to_check nm"
  2344. fi
  2345. for lt_tmp_nm in $lt_nm_to_check; do
  2346. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2347. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  2348. IFS="$lt_save_ifs"
  2349. test -z "$ac_dir" && ac_dir=.
  2350. tmp_nm="$ac_dir/$lt_tmp_nm"
  2351. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2352. # Check to see if the nm accepts a BSD-compat flag.
  2353. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2354. # nm: unknown option "B" ignored
  2355. # Tru64's nm complains that /dev/null is an invalid object file
  2356. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2357. */dev/null* | *'Invalid file or object type'*)
  2358. lt_cv_path_NM="$tmp_nm -B"
  2359. break
  2360. ;;
  2361. *)
  2362. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2363. */dev/null*)
  2364. lt_cv_path_NM="$tmp_nm -p"
  2365. break
  2366. ;;
  2367. *)
  2368. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2369. continue # so that we can try to find one that supports BSD flags
  2370. ;;
  2371. esac
  2372. ;;
  2373. esac
  2374. fi
  2375. done
  2376. IFS="$lt_save_ifs"
  2377. done
  2378. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2379. fi])
  2380. NM="$lt_cv_path_NM"
  2381. ])# AC_PROG_NM
  2382. # AC_CHECK_LIBM
  2383. # -------------
  2384. # check for math library
  2385. AC_DEFUN([AC_CHECK_LIBM],
  2386. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2387. LIBM=
  2388. case $host in
  2389. *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin* | *-*-haiku*)
  2390. # These system don't have libm, or don't need it
  2391. ;;
  2392. *-ncr-sysv4.3*)
  2393. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  2394. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  2395. ;;
  2396. *)
  2397. AC_CHECK_LIB(m, cos, LIBM="-lm")
  2398. ;;
  2399. esac
  2400. ])# AC_CHECK_LIBM
  2401. # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  2402. # -----------------------------------
  2403. # sets LIBLTDL to the link flags for the libltdl convenience library and
  2404. # LTDLINCL to the include flags for the libltdl header and adds
  2405. # --enable-ltdl-convenience to the configure arguments. Note that
  2406. # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  2407. # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  2408. # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  2409. # (note the single quotes!). If your package is not flat and you're not
  2410. # using automake, define top_builddir and top_srcdir appropriately in
  2411. # the Makefiles.
  2412. AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  2413. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2414. case $enable_ltdl_convenience in
  2415. no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  2416. "") enable_ltdl_convenience=yes
  2417. ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  2418. esac
  2419. LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  2420. LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2421. # For backwards non-gettext consistent compatibility...
  2422. INCLTDL="$LTDLINCL"
  2423. ])# AC_LIBLTDL_CONVENIENCE
  2424. # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  2425. # -----------------------------------
  2426. # sets LIBLTDL to the link flags for the libltdl installable library and
  2427. # LTDLINCL to the include flags for the libltdl header and adds
  2428. # --enable-ltdl-install to the configure arguments. Note that
  2429. # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  2430. # and an installed libltdl is not found, it is assumed to be `libltdl'.
  2431. # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  2432. # '${top_srcdir}/' (note the single quotes!). If your package is not
  2433. # flat and you're not using automake, define top_builddir and top_srcdir
  2434. # appropriately in the Makefiles.
  2435. # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  2436. AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  2437. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2438. AC_CHECK_LIB(ltdl, lt_dlinit,
  2439. [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  2440. [if test x"$enable_ltdl_install" = xno; then
  2441. AC_MSG_WARN([libltdl not installed, but installation disabled])
  2442. else
  2443. enable_ltdl_install=yes
  2444. fi
  2445. ])
  2446. if test x"$enable_ltdl_install" = x"yes"; then
  2447. ac_configure_args="$ac_configure_args --enable-ltdl-install"
  2448. LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  2449. LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2450. else
  2451. ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  2452. LIBLTDL="-lltdl"
  2453. LTDLINCL=
  2454. fi
  2455. # For backwards non-gettext consistent compatibility...
  2456. INCLTDL="$LTDLINCL"
  2457. ])# AC_LIBLTDL_INSTALLABLE
  2458. # AC_LIBTOOL_CXX
  2459. # --------------
  2460. # enable support for C++ libraries
  2461. AC_DEFUN([AC_LIBTOOL_CXX],
  2462. [AC_REQUIRE([_LT_AC_LANG_CXX])
  2463. ])# AC_LIBTOOL_CXX
  2464. # _LT_AC_LANG_CXX
  2465. # ---------------
  2466. AC_DEFUN([_LT_AC_LANG_CXX],
  2467. [AC_REQUIRE([AC_PROG_CXX])
  2468. AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2469. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  2470. ])# _LT_AC_LANG_CXX
  2471. # _LT_AC_PROG_CXXCPP
  2472. # ------------------
  2473. AC_DEFUN([_LT_AC_PROG_CXXCPP],
  2474. [
  2475. AC_REQUIRE([AC_PROG_CXX])
  2476. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2477. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2478. (test "X$CXX" != "Xg++"))) ; then
  2479. AC_PROG_CXXCPP
  2480. fi
  2481. ])# _LT_AC_PROG_CXXCPP
  2482. # AC_LIBTOOL_LANG_C_CONFIG
  2483. # ------------------------
  2484. # Ensure that the configuration vars for the C compiler are
  2485. # suitably defined. Those variables are subsequently used by
  2486. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2487. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  2488. AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  2489. [lt_save_CC="$CC"
  2490. AC_LANG_SAVE
  2491. AC_LANG_C
  2492. # Source file extension for C test sources.
  2493. ac_ext=c
  2494. # Object file extension for compiled C test sources.
  2495. objext=o
  2496. _LT_AC_TAGVAR(objext, $1)=$objext
  2497. # Code to be used in simple compile tests
  2498. lt_simple_compile_test_code="int some_variable = 0;"
  2499. # Code to be used in simple link tests
  2500. lt_simple_link_test_code='int main(){return(0);}'
  2501. _LT_AC_SYS_COMPILER
  2502. # save warnings/boilerplate of simple test code
  2503. _LT_COMPILER_BOILERPLATE
  2504. _LT_LINKER_BOILERPLATE
  2505. ## CAVEAT EMPTOR:
  2506. ## There is no encapsulation within the following macros, do not change
  2507. ## the running order or otherwise move them around unless you know exactly
  2508. ## what you are doing...
  2509. AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  2510. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  2511. AC_LIBTOOL_PROG_CC_C_O($1)
  2512. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  2513. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  2514. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  2515. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  2516. AC_LIBTOOL_SYS_LIB_STRIP
  2517. AC_LIBTOOL_DLOPEN_SELF
  2518. # Report which library types will actually be built
  2519. AC_MSG_CHECKING([if libtool supports shared libraries])
  2520. AC_MSG_RESULT([$can_build_shared])
  2521. AC_MSG_CHECKING([whether to build shared libraries])
  2522. test "$can_build_shared" = "no" && enable_shared=no
  2523. # On AIX, shared libraries and static libraries use the same namespace, and
  2524. # are all built from PIC.
  2525. case $host_os in
  2526. aix3*)
  2527. test "$enable_shared" = yes && enable_static=no
  2528. if test -n "$RANLIB"; then
  2529. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  2530. postinstall_cmds='$RANLIB $lib'
  2531. fi
  2532. ;;
  2533. aix[[4-9]]*)
  2534. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  2535. test "$enable_shared" = yes && enable_static=no
  2536. fi
  2537. ;;
  2538. esac
  2539. AC_MSG_RESULT([$enable_shared])
  2540. AC_MSG_CHECKING([whether to build static libraries])
  2541. # Make sure either enable_shared or enable_static is yes.
  2542. test "$enable_shared" = yes || enable_static=yes
  2543. AC_MSG_RESULT([$enable_static])
  2544. AC_LIBTOOL_CONFIG($1)
  2545. AC_LANG_RESTORE
  2546. CC="$lt_save_CC"
  2547. ])# AC_LIBTOOL_LANG_C_CONFIG
  2548. # AC_LIBTOOL_LANG_CXX_CONFIG
  2549. # --------------------------
  2550. # Ensure that the configuration vars for the C compiler are
  2551. # suitably defined. Those variables are subsequently used by
  2552. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2553. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  2554. AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  2555. [AC_LANG_SAVE
  2556. AC_LANG_CPLUSPLUS
  2557. AC_REQUIRE([AC_PROG_CXX])
  2558. AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2559. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2560. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  2561. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  2562. _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  2563. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  2564. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2565. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  2566. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  2567. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2568. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  2569. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2570. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  2571. _LT_AC_TAGVAR(module_cmds, $1)=
  2572. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  2573. _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  2574. _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  2575. _LT_AC_TAGVAR(no_undefined_flag, $1)=
  2576. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2577. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  2578. # Dependencies to place before and after the object being linked:
  2579. _LT_AC_TAGVAR(predep_objects, $1)=
  2580. _LT_AC_TAGVAR(postdep_objects, $1)=
  2581. _LT_AC_TAGVAR(predeps, $1)=
  2582. _LT_AC_TAGVAR(postdeps, $1)=
  2583. _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  2584. _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  2585. # Source file extension for C++ test sources.
  2586. ac_ext=cpp
  2587. # Object file extension for compiled C++ test sources.
  2588. objext=o
  2589. _LT_AC_TAGVAR(objext, $1)=$objext
  2590. # Code to be used in simple compile tests
  2591. lt_simple_compile_test_code="int some_variable = 0;"
  2592. # Code to be used in simple link tests
  2593. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  2594. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2595. _LT_AC_SYS_COMPILER
  2596. # save warnings/boilerplate of simple test code
  2597. _LT_COMPILER_BOILERPLATE
  2598. _LT_LINKER_BOILERPLATE
  2599. # Allow CC to be a program name with arguments.
  2600. lt_save_CC=$CC
  2601. lt_save_LD=$LD
  2602. lt_save_GCC=$GCC
  2603. GCC=$GXX
  2604. lt_save_with_gnu_ld=$with_gnu_ld
  2605. lt_save_path_LD=$lt_cv_path_LD
  2606. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  2607. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  2608. else
  2609. unset lt_cv_prog_gnu_ld
  2610. fi
  2611. if test -n "${lt_cv_path_LDCXX+set}"; then
  2612. lt_cv_path_LD=$lt_cv_path_LDCXX
  2613. else
  2614. unset lt_cv_path_LD
  2615. fi
  2616. test -z "${LDCXX+set}" || LD=$LDCXX
  2617. CC=${CXX-"c++"}
  2618. compiler=$CC
  2619. _LT_AC_TAGVAR(compiler, $1)=$CC
  2620. _LT_CC_BASENAME([$compiler])
  2621. # We don't want -fno-exception wen compiling C++ code, so set the
  2622. # no_builtin_flag separately
  2623. if test "$GXX" = yes; then
  2624. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  2625. else
  2626. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  2627. fi
  2628. if test "$GXX" = yes; then
  2629. # Set up default GNU C++ configuration
  2630. AC_PROG_LD
  2631. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  2632. # archiving commands below assume that GNU ld is being used.
  2633. if test "$with_gnu_ld" = yes; then
  2634. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2635. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  2636. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  2637. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2638. # If archive_cmds runs LD, not CC, wlarc should be empty
  2639. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  2640. # investigate it a little bit more. (MM)
  2641. wlarc='${wl}'
  2642. # ancient GNU ld didn't support --whole-archive et. al.
  2643. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  2644. grep 'no-whole-archive' > /dev/null; then
  2645. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  2646. else
  2647. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2648. fi
  2649. else
  2650. with_gnu_ld=no
  2651. wlarc=
  2652. # A generic and very simple default shared library creation
  2653. # command for GNU C++ for the case where it uses the native
  2654. # linker, instead of GNU ld. If possible, this setting should
  2655. # overridden to take advantage of the native linker features on
  2656. # the platform it is being used on.
  2657. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  2658. fi
  2659. # Commands to make compiler produce verbose output that lists
  2660. # what "hidden" libraries, object files and flags are used when
  2661. # linking a shared library.
  2662. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  2663. else
  2664. GXX=no
  2665. with_gnu_ld=no
  2666. wlarc=
  2667. fi
  2668. # PORTME: fill in a description of your system's C++ link characteristics
  2669. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  2670. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2671. case $host_os in
  2672. aix3*)
  2673. # FIXME: insert proper C++ library support
  2674. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2675. ;;
  2676. aix[[4-9]]*)
  2677. if test "$host_cpu" = ia64; then
  2678. # On IA64, the linker does run time linking by default, so we don't
  2679. # have to do anything special.
  2680. aix_use_runtimelinking=no
  2681. exp_sym_flag='-Bexport'
  2682. no_entry_flag=""
  2683. else
  2684. aix_use_runtimelinking=no
  2685. # Test if we are trying to use run time linking or normal
  2686. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  2687. # need to do runtime linking.
  2688. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  2689. for ld_flag in $LDFLAGS; do
  2690. case $ld_flag in
  2691. *-brtl*)
  2692. aix_use_runtimelinking=yes
  2693. break
  2694. ;;
  2695. esac
  2696. done
  2697. ;;
  2698. esac
  2699. exp_sym_flag='-bexport'
  2700. no_entry_flag='-bnoentry'
  2701. fi
  2702. # When large executables or shared objects are built, AIX ld can
  2703. # have problems creating the table of contents. If linking a library
  2704. # or program results in "error TOC overflow" add -mminimal-toc to
  2705. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  2706. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  2707. _LT_AC_TAGVAR(archive_cmds, $1)=''
  2708. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2709. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  2710. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2711. if test "$GXX" = yes; then
  2712. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  2713. # We only want to do this on AIX 4.2 and lower, the check
  2714. # below for broken collect2 doesn't work under 4.3+
  2715. collect2name=`${CC} -print-prog-name=collect2`
  2716. if test -f "$collect2name" && \
  2717. strings "$collect2name" | grep resolve_lib_name >/dev/null
  2718. then
  2719. # We have reworked collect2
  2720. :
  2721. else
  2722. # We have old collect2
  2723. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  2724. # It fails to find uninstalled libraries when the uninstalled
  2725. # path is not listed in the libpath. Setting hardcode_minus_L
  2726. # to unsupported forces relinking
  2727. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  2728. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2729. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2730. fi
  2731. ;;
  2732. esac
  2733. shared_flag='-shared'
  2734. if test "$aix_use_runtimelinking" = yes; then
  2735. shared_flag="$shared_flag "'${wl}-G'
  2736. fi
  2737. else
  2738. # not using gcc
  2739. if test "$host_cpu" = ia64; then
  2740. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  2741. # chokes on -Wl,-G. The following line is correct:
  2742. shared_flag='-G'
  2743. else
  2744. if test "$aix_use_runtimelinking" = yes; then
  2745. shared_flag='${wl}-G'
  2746. else
  2747. shared_flag='${wl}-bM:SRE'
  2748. fi
  2749. fi
  2750. fi
  2751. # It seems that -bexpall does not export symbols beginning with
  2752. # underscore (_), so it is better to generate a list of symbols to export.
  2753. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  2754. if test "$aix_use_runtimelinking" = yes; then
  2755. # Warning - without using the other runtime loading flags (-brtl),
  2756. # -berok will link without error, but may produce a broken library.
  2757. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  2758. # Determine the default libpath from the value encoded in an empty executable.
  2759. _LT_AC_SYS_LIBPATH_AIX
  2760. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2761. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  2762. else
  2763. if test "$host_cpu" = ia64; then
  2764. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  2765. _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  2766. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
  2767. else
  2768. # Determine the default libpath from the value encoded in an empty executable.
  2769. _LT_AC_SYS_LIBPATH_AIX
  2770. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2771. # Warning - without using the other run time loading flags,
  2772. # -berok will link without error, but may produce a broken library.
  2773. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  2774. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  2775. # Exported symbols can be pulled into shared objects from archives
  2776. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  2777. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  2778. # This is similar to how AIX traditionally builds its shared libraries.
  2779. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  2780. fi
  2781. fi
  2782. ;;
  2783. beos*)
  2784. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  2785. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  2786. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  2787. # support --undefined. This deserves some investigation. FIXME
  2788. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2789. else
  2790. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2791. fi
  2792. ;;
  2793. chorus*)
  2794. case $cc_basename in
  2795. *)
  2796. # FIXME: insert proper C++ library support
  2797. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2798. ;;
  2799. esac
  2800. ;;
  2801. cygwin* | mingw* | pw32*)
  2802. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  2803. # as there is no search path for DLLs.
  2804. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2805. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  2806. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  2807. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  2808. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  2809. _LT_AC_TAGVAR(archive_cmds, $1)='$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'
  2810. # If the export-symbols file already is a .def file (1st line
  2811. # is EXPORTS), use it as is; otherwise, prepend...
  2812. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  2813. cp $export_symbols $output_objdir/$soname.def;
  2814. else
  2815. echo EXPORTS > $output_objdir/$soname.def;
  2816. cat $export_symbols >> $output_objdir/$soname.def;
  2817. fi~
  2818. $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'
  2819. else
  2820. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2821. fi
  2822. ;;
  2823. darwin* | rhapsody*)
  2824. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2825. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2826. _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  2827. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2828. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  2829. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2830. _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  2831. if test "$GXX" = yes ; then
  2832. output_verbose_link_cmd='echo'
  2833. _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  2834. _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  2835. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}"
  2836. _LT_AC_TAGVAR(module_expsym_cmds, $1)="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}"
  2837. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  2838. _LT_AC_TAGVAR(archive_cmds, $1)="\$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}"
  2839. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}"
  2840. fi
  2841. else
  2842. case $cc_basename in
  2843. xlc*)
  2844. output_verbose_link_cmd='echo'
  2845. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  2846. _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  2847. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  2848. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2849. _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2850. ;;
  2851. *)
  2852. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2853. ;;
  2854. esac
  2855. fi
  2856. ;;
  2857. dgux*)
  2858. case $cc_basename in
  2859. ec++*)
  2860. # FIXME: insert proper C++ library support
  2861. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2862. ;;
  2863. ghcx*)
  2864. # Green Hills C++ Compiler
  2865. # FIXME: insert proper C++ library support
  2866. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2867. ;;
  2868. *)
  2869. # FIXME: insert proper C++ library support
  2870. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2871. ;;
  2872. esac
  2873. ;;
  2874. freebsd[[12]].*)
  2875. # C++ shared libraries reported to be fairly broken before switch to ELF
  2876. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2877. ;;
  2878. freebsd-elf*)
  2879. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2880. ;;
  2881. freebsd* | dragonfly*)
  2882. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  2883. # conventions
  2884. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2885. ;;
  2886. gnu*)
  2887. ;;
  2888. hpux9*)
  2889. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2890. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2891. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2892. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2893. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2894. # but as the default
  2895. # location of the library.
  2896. case $cc_basename in
  2897. CC*)
  2898. # FIXME: insert proper C++ library support
  2899. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2900. ;;
  2901. aCC*)
  2902. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  2903. # Commands to make compiler produce verbose output that lists
  2904. # what "hidden" libraries, object files and flags are used when
  2905. # linking a shared library.
  2906. #
  2907. # There doesn't appear to be a way to prevent this compiler from
  2908. # explicitly linking system object files so we need to strip them
  2909. # from the output so that they don't get included in the library
  2910. # dependencies.
  2911. 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; echo $list'
  2912. ;;
  2913. *)
  2914. if test "$GXX" = yes; then
  2915. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  2916. else
  2917. # FIXME: insert proper C++ library support
  2918. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2919. fi
  2920. ;;
  2921. esac
  2922. ;;
  2923. hpux10*|hpux11*)
  2924. if test $with_gnu_ld = no; then
  2925. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2926. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2927. case $host_cpu in
  2928. hppa*64*|ia64*) ;;
  2929. *)
  2930. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2931. ;;
  2932. esac
  2933. fi
  2934. case $host_cpu in
  2935. hppa*64*|ia64*)
  2936. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2937. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2938. ;;
  2939. *)
  2940. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2941. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2942. # but as the default
  2943. # location of the library.
  2944. ;;
  2945. esac
  2946. case $cc_basename in
  2947. CC*)
  2948. # FIXME: insert proper C++ library support
  2949. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2950. ;;
  2951. aCC*)
  2952. case $host_cpu in
  2953. hppa*64*)
  2954. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2955. ;;
  2956. ia64*)
  2957. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2958. ;;
  2959. *)
  2960. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2961. ;;
  2962. esac
  2963. # Commands to make compiler produce verbose output that lists
  2964. # what "hidden" libraries, object files and flags are used when
  2965. # linking a shared library.
  2966. #
  2967. # There doesn't appear to be a way to prevent this compiler from
  2968. # explicitly linking system object files so we need to strip them
  2969. # from the output so that they don't get included in the library
  2970. # dependencies.
  2971. 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; echo $list'
  2972. ;;
  2973. *)
  2974. if test "$GXX" = yes; then
  2975. if test $with_gnu_ld = no; then
  2976. case $host_cpu in
  2977. hppa*64*)
  2978. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2979. ;;
  2980. ia64*)
  2981. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2982. ;;
  2983. *)
  2984. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2985. ;;
  2986. esac
  2987. fi
  2988. else
  2989. # FIXME: insert proper C++ library support
  2990. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2991. fi
  2992. ;;
  2993. esac
  2994. ;;
  2995. interix[[3-9]]*)
  2996. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2997. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2998. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2999. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3000. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  3001. # Instead, shared libraries are loaded at an image base (0x10000000 by
  3002. # default) and relocated if they conflict, which is a slow very memory
  3003. # consuming and fragmenting process. To avoid this, we pick a random,
  3004. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  3005. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  3006. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  3007. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
  3008. ;;
  3009. irix5* | irix6*)
  3010. case $cc_basename in
  3011. CC*)
  3012. # SGI C++
  3013. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3014. # Archives containing C++ object files must be created using
  3015. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  3016. # necessary to make sure instantiated templates are included
  3017. # in the archive.
  3018. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  3019. ;;
  3020. *)
  3021. if test "$GXX" = yes; then
  3022. if test "$with_gnu_ld" = no; then
  3023. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3024. else
  3025. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  3026. fi
  3027. fi
  3028. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3029. ;;
  3030. esac
  3031. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3032. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3033. ;;
  3034. linux* | k*bsd*-gnu)
  3035. case $cc_basename in
  3036. KCC*)
  3037. # Kuck and Associates, Inc. (KAI) C++ Compiler
  3038. # KCC will only create a shared library if the output file
  3039. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3040. # to its proper name (with version) after linking.
  3041. _LT_AC_TAGVAR(archive_cmds, $1)='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'
  3042. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
  3043. # Commands to make compiler produce verbose output that lists
  3044. # what "hidden" libraries, object files and flags are used when
  3045. # linking a shared library.
  3046. #
  3047. # There doesn't appear to be a way to prevent this compiler from
  3048. # explicitly linking system object files so we need to strip them
  3049. # from the output so that they don't get included in the library
  3050. # dependencies.
  3051. 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; echo $list'
  3052. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  3053. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3054. # Archives containing C++ object files must be created using
  3055. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3056. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3057. ;;
  3058. icpc*)
  3059. # Intel C++
  3060. with_gnu_ld=yes
  3061. # version 8.0 and above of icpc choke on multiply defined symbols
  3062. # if we add $predep_objects and $postdep_objects, however 7.1 and
  3063. # earlier do not add the objects themselves.
  3064. case `$CC -V 2>&1` in
  3065. *"Version 7."*)
  3066. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3067. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3068. ;;
  3069. *) # Version 8.0 or newer
  3070. tmp_idyn=
  3071. case $host_cpu in
  3072. ia64*) tmp_idyn=' -i_dynamic';;
  3073. esac
  3074. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3075. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3076. ;;
  3077. esac
  3078. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3079. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3080. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3081. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  3082. ;;
  3083. pgCC* | pgcpp*)
  3084. # Portland Group C++ compiler
  3085. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  3086. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$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'
  3087. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3088. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3089. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  3090. ;;
  3091. cxx*)
  3092. # Compaq C++
  3093. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3094. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  3095. runpath_var=LD_RUN_PATH
  3096. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3097. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3098. # Commands to make compiler produce verbose output that lists
  3099. # what "hidden" libraries, object files and flags are used when
  3100. # linking a shared library.
  3101. #
  3102. # There doesn't appear to be a way to prevent this compiler from
  3103. # explicitly linking system object files so we need to strip them
  3104. # from the output so that they don't get included in the library
  3105. # dependencies.
  3106. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
  3107. ;;
  3108. *)
  3109. case `$CC -V 2>&1 | sed 5q` in
  3110. *Sun\ C*)
  3111. # Sun C++ 5.9
  3112. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3113. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3114. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  3115. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3116. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  3117. # Not sure whether something based on
  3118. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  3119. # would be better.
  3120. output_verbose_link_cmd='echo'
  3121. # Archives containing C++ object files must be created using
  3122. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  3123. # necessary to make sure instantiated templates are included
  3124. # in the archive.
  3125. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3126. ;;
  3127. esac
  3128. ;;
  3129. esac
  3130. ;;
  3131. lynxos*)
  3132. # FIXME: insert proper C++ library support
  3133. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3134. ;;
  3135. m88k*)
  3136. # FIXME: insert proper C++ library support
  3137. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3138. ;;
  3139. mvs*)
  3140. case $cc_basename in
  3141. cxx*)
  3142. # FIXME: insert proper C++ library support
  3143. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3144. ;;
  3145. *)
  3146. # FIXME: insert proper C++ library support
  3147. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3148. ;;
  3149. esac
  3150. ;;
  3151. netbsd*)
  3152. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3153. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  3154. wlarc=
  3155. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3156. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3157. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3158. fi
  3159. # Workaround some broken pre-1.5 toolchains
  3160. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  3161. ;;
  3162. openbsd2*)
  3163. # C++ shared libraries are fairly broken
  3164. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3165. ;;
  3166. openbsd*)
  3167. if test -f /usr/libexec/ld.so; then
  3168. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3169. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3170. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3171. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3172. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3173. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  3174. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3175. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3176. fi
  3177. output_verbose_link_cmd='echo'
  3178. else
  3179. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3180. fi
  3181. ;;
  3182. osf3*)
  3183. case $cc_basename in
  3184. KCC*)
  3185. # Kuck and Associates, Inc. (KAI) C++ Compiler
  3186. # KCC will only create a shared library if the output file
  3187. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3188. # to its proper name (with version) after linking.
  3189. _LT_AC_TAGVAR(archive_cmds, $1)='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'
  3190. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3191. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3192. # Archives containing C++ object files must be created using
  3193. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3194. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3195. ;;
  3196. RCC*)
  3197. # Rational C++ 2.4.1
  3198. # FIXME: insert proper C++ library support
  3199. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3200. ;;
  3201. cxx*)
  3202. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3203. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3204. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3205. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3206. # Commands to make compiler produce verbose output that lists
  3207. # what "hidden" libraries, object files and flags are used when
  3208. # linking a shared library.
  3209. #
  3210. # There doesn't appear to be a way to prevent this compiler from
  3211. # explicitly linking system object files so we need to strip them
  3212. # from the output so that they don't get included in the library
  3213. # dependencies.
  3214. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  3215. ;;
  3216. *)
  3217. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3218. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3219. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3220. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3221. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3222. # Commands to make compiler produce verbose output that lists
  3223. # what "hidden" libraries, object files and flags are used when
  3224. # linking a shared library.
  3225. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3226. else
  3227. # FIXME: insert proper C++ library support
  3228. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3229. fi
  3230. ;;
  3231. esac
  3232. ;;
  3233. osf4* | osf5*)
  3234. case $cc_basename in
  3235. KCC*)
  3236. # Kuck and Associates, Inc. (KAI) C++ Compiler
  3237. # KCC will only create a shared library if the output file
  3238. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3239. # to its proper name (with version) after linking.
  3240. _LT_AC_TAGVAR(archive_cmds, $1)='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'
  3241. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3242. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3243. # Archives containing C++ object files must be created using
  3244. # the KAI C++ compiler.
  3245. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  3246. ;;
  3247. RCC*)
  3248. # Rational C++ 2.4.1
  3249. # FIXME: insert proper C++ library support
  3250. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3251. ;;
  3252. cxx*)
  3253. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  3254. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3255. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  3256. echo "-hidden">> $lib.exp~
  3257. $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~
  3258. $rm $lib.exp'
  3259. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3260. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3261. # Commands to make compiler produce verbose output that lists
  3262. # what "hidden" libraries, object files and flags are used when
  3263. # linking a shared library.
  3264. #
  3265. # There doesn't appear to be a way to prevent this compiler from
  3266. # explicitly linking system object files so we need to strip them
  3267. # from the output so that they don't get included in the library
  3268. # dependencies.
  3269. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  3270. ;;
  3271. *)
  3272. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3273. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3274. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3275. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3276. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3277. # Commands to make compiler produce verbose output that lists
  3278. # what "hidden" libraries, object files and flags are used when
  3279. # linking a shared library.
  3280. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3281. else
  3282. # FIXME: insert proper C++ library support
  3283. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3284. fi
  3285. ;;
  3286. esac
  3287. ;;
  3288. psos*)
  3289. # FIXME: insert proper C++ library support
  3290. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3291. ;;
  3292. sunos4*)
  3293. case $cc_basename in
  3294. CC*)
  3295. # Sun C++ 4.x
  3296. # FIXME: insert proper C++ library support
  3297. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3298. ;;
  3299. lcc*)
  3300. # Lucid
  3301. # FIXME: insert proper C++ library support
  3302. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3303. ;;
  3304. *)
  3305. # FIXME: insert proper C++ library support
  3306. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3307. ;;
  3308. esac
  3309. ;;
  3310. solaris*)
  3311. case $cc_basename in
  3312. CC*)
  3313. # Sun C++ 4.2, 5.x and Centerline C++
  3314. _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  3315. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3316. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3317. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3318. $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'
  3319. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3320. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3321. case $host_os in
  3322. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  3323. *)
  3324. # The compiler driver will combine and reorder linker options,
  3325. # but understands `-z linker_flag'.
  3326. # Supported since Solaris 2.6 (maybe 2.5.1?)
  3327. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  3328. ;;
  3329. esac
  3330. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3331. output_verbose_link_cmd='echo'
  3332. # Archives containing C++ object files must be created using
  3333. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  3334. # necessary to make sure instantiated templates are included
  3335. # in the archive.
  3336. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3337. ;;
  3338. gcx*)
  3339. # Green Hills C++ Compiler
  3340. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3341. # The C++ compiler must be used to create the archive.
  3342. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  3343. ;;
  3344. *)
  3345. # GNU C++ compiler with Solaris linker
  3346. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3347. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  3348. if $CC --version | grep -v '^2\.7' > /dev/null; then
  3349. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3350. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3351. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3352. # Commands to make compiler produce verbose output that lists
  3353. # what "hidden" libraries, object files and flags are used when
  3354. # linking a shared library.
  3355. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3356. else
  3357. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  3358. # platform.
  3359. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3360. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3361. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3362. # Commands to make compiler produce verbose output that lists
  3363. # what "hidden" libraries, object files and flags are used when
  3364. # linking a shared library.
  3365. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3366. fi
  3367. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  3368. case $host_os in
  3369. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  3370. *)
  3371. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  3372. ;;
  3373. esac
  3374. fi
  3375. ;;
  3376. esac
  3377. ;;
  3378. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  3379. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3380. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3381. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3382. runpath_var='LD_RUN_PATH'
  3383. case $cc_basename in
  3384. CC*)
  3385. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3386. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3387. ;;
  3388. *)
  3389. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3390. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3391. ;;
  3392. esac
  3393. ;;
  3394. sysv5* | sco3.2v5* | sco5v6*)
  3395. # Note: We can NOT use -z defs as we might desire, because we do not
  3396. # link with -lc, and that would cause any symbols used from libc to
  3397. # always be unresolved, which means just about no library would
  3398. # ever link correctly. If we're not using GNU ld we use -z text
  3399. # though, which does catch some bad symbols but isn't as heavy-handed
  3400. # as -z defs.
  3401. # For security reasons, it is highly recommended that you always
  3402. # use absolute paths for naming shared libraries, and exclude the
  3403. # DT_RUNPATH tag from executables and libraries. But doing so
  3404. # requires that you compile everything twice, which is a pain.
  3405. # So that behaviour is only enabled if SCOABSPATH is set to a
  3406. # non-empty value in the environment. Most likely only useful for
  3407. # creating official distributions of packages.
  3408. # This is a hack until libtool officially supports absolute path
  3409. # names for shared libraries.
  3410. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3411. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  3412. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3413. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3414. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  3415. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3416. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3417. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  3418. runpath_var='LD_RUN_PATH'
  3419. case $cc_basename in
  3420. CC*)
  3421. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3422. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3423. ;;
  3424. *)
  3425. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3426. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3427. ;;
  3428. esac
  3429. ;;
  3430. tandem*)
  3431. case $cc_basename in
  3432. NCC*)
  3433. # NonStop-UX NCC 3.20
  3434. # FIXME: insert proper C++ library support
  3435. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3436. ;;
  3437. *)
  3438. # FIXME: insert proper C++ library support
  3439. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3440. ;;
  3441. esac
  3442. ;;
  3443. vxworks*)
  3444. # FIXME: insert proper C++ library support
  3445. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3446. ;;
  3447. *)
  3448. # FIXME: insert proper C++ library support
  3449. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3450. ;;
  3451. esac
  3452. AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  3453. test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3454. _LT_AC_TAGVAR(GCC, $1)="$GXX"
  3455. _LT_AC_TAGVAR(LD, $1)="$LD"
  3456. ## CAVEAT EMPTOR:
  3457. ## There is no encapsulation within the following macros, do not change
  3458. ## the running order or otherwise move them around unless you know exactly
  3459. ## what you are doing...
  3460. AC_LIBTOOL_POSTDEP_PREDEP($1)
  3461. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3462. AC_LIBTOOL_PROG_CC_C_O($1)
  3463. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3464. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3465. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3466. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3467. AC_LIBTOOL_CONFIG($1)
  3468. AC_LANG_RESTORE
  3469. CC=$lt_save_CC
  3470. LDCXX=$LD
  3471. LD=$lt_save_LD
  3472. GCC=$lt_save_GCC
  3473. with_gnu_ldcxx=$with_gnu_ld
  3474. with_gnu_ld=$lt_save_with_gnu_ld
  3475. lt_cv_path_LDCXX=$lt_cv_path_LD
  3476. lt_cv_path_LD=$lt_save_path_LD
  3477. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  3478. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  3479. ])# AC_LIBTOOL_LANG_CXX_CONFIG
  3480. # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  3481. # ------------------------------------
  3482. # Figure out "hidden" library dependencies from verbose
  3483. # compiler output when linking a shared library.
  3484. # Parse the compiler output and extract the necessary
  3485. # objects, libraries and library flags.
  3486. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  3487. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  3488. dnl we can't use the lt_simple_compile_test_code here,
  3489. dnl because it contains code intended for an executable,
  3490. dnl not a library. It's possible we should let each
  3491. dnl tag define a new lt_????_link_test_code variable,
  3492. dnl but it's only used here...
  3493. ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  3494. int a;
  3495. void foo (void) { a = 0; }
  3496. EOF
  3497. ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  3498. class Foo
  3499. {
  3500. public:
  3501. Foo (void) { a = 0; }
  3502. private:
  3503. int a;
  3504. };
  3505. EOF
  3506. ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  3507. subroutine foo
  3508. implicit none
  3509. integer*4 a
  3510. a=0
  3511. return
  3512. end
  3513. EOF
  3514. ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  3515. public class foo {
  3516. private int a;
  3517. public void bar (void) {
  3518. a = 0;
  3519. }
  3520. };
  3521. EOF
  3522. ])
  3523. dnl Parse the compiler output and extract the necessary
  3524. dnl objects, libraries and library flags.
  3525. if AC_TRY_EVAL(ac_compile); then
  3526. # Parse the compiler output and extract the necessary
  3527. # objects, libraries and library flags.
  3528. # Sentinel used to keep track of whether or not we are before
  3529. # the conftest object file.
  3530. pre_test_object_deps_done=no
  3531. # The `*' in the case matches for architectures that use `case' in
  3532. # $output_verbose_cmd can trigger glob expansion during the loop
  3533. # eval without this substitution.
  3534. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  3535. for p in `eval $output_verbose_link_cmd`; do
  3536. case $p in
  3537. -L* | -R* | -l*)
  3538. # Some compilers place space between "-{L,R}" and the path.
  3539. # Remove the space.
  3540. if test $p = "-L" \
  3541. || test $p = "-R"; then
  3542. prev=$p
  3543. continue
  3544. else
  3545. prev=
  3546. fi
  3547. if test "$pre_test_object_deps_done" = no; then
  3548. case $p in
  3549. -L* | -R*)
  3550. # Internal compiler library paths should come after those
  3551. # provided the user. The postdeps already come after the
  3552. # user supplied libs so there is no need to process them.
  3553. if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  3554. _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  3555. else
  3556. _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  3557. fi
  3558. ;;
  3559. # The "-l" case would never come before the object being
  3560. # linked, so don't bother handling this case.
  3561. esac
  3562. else
  3563. if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  3564. _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  3565. else
  3566. _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  3567. fi
  3568. fi
  3569. ;;
  3570. *.$objext)
  3571. # This assumes that the test object file only shows up
  3572. # once in the compiler output.
  3573. if test "$p" = "conftest.$objext"; then
  3574. pre_test_object_deps_done=yes
  3575. continue
  3576. fi
  3577. if test "$pre_test_object_deps_done" = no; then
  3578. if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  3579. _LT_AC_TAGVAR(predep_objects, $1)="$p"
  3580. else
  3581. _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  3582. fi
  3583. else
  3584. if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  3585. _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  3586. else
  3587. _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  3588. fi
  3589. fi
  3590. ;;
  3591. *) ;; # Ignore the rest.
  3592. esac
  3593. done
  3594. # Clean up.
  3595. rm -f a.out a.exe
  3596. else
  3597. echo "libtool.m4: error: problem compiling $1 test program"
  3598. fi
  3599. $rm -f confest.$objext
  3600. _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  3601. if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  3602. _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  3603. fi
  3604. # PORTME: override above test on systems where it is broken
  3605. ifelse([$1],[CXX],
  3606. [case $host_os in
  3607. interix[[3-9]]*)
  3608. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  3609. # hack all around it, let's just trust "g++" to DTRT.
  3610. _LT_AC_TAGVAR(predep_objects,$1)=
  3611. _LT_AC_TAGVAR(postdep_objects,$1)=
  3612. _LT_AC_TAGVAR(postdeps,$1)=
  3613. ;;
  3614. linux*)
  3615. case `$CC -V 2>&1 | sed 5q` in
  3616. *Sun\ C*)
  3617. # Sun C++ 5.9
  3618. #
  3619. # The more standards-conforming stlport4 library is
  3620. # incompatible with the Cstd library. Avoid specifying
  3621. # it if it's in CXXFLAGS. Ignore libCrun as
  3622. # -library=stlport4 depends on it.
  3623. case " $CXX $CXXFLAGS " in
  3624. *" -library=stlport4 "*)
  3625. solaris_use_stlport4=yes
  3626. ;;
  3627. esac
  3628. if test "$solaris_use_stlport4" != yes; then
  3629. _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  3630. fi
  3631. ;;
  3632. esac
  3633. ;;
  3634. solaris*)
  3635. case $cc_basename in
  3636. CC*)
  3637. # The more standards-conforming stlport4 library is
  3638. # incompatible with the Cstd library. Avoid specifying
  3639. # it if it's in CXXFLAGS. Ignore libCrun as
  3640. # -library=stlport4 depends on it.
  3641. case " $CXX $CXXFLAGS " in
  3642. *" -library=stlport4 "*)
  3643. solaris_use_stlport4=yes
  3644. ;;
  3645. esac
  3646. # Adding this requires a known-good setup of shared libraries for
  3647. # Sun compiler versions before 5.6, else PIC objects from an old
  3648. # archive will be linked into the output, leading to subtle bugs.
  3649. if test "$solaris_use_stlport4" != yes; then
  3650. _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  3651. fi
  3652. ;;
  3653. esac
  3654. ;;
  3655. esac
  3656. ])
  3657. case " $_LT_AC_TAGVAR(postdeps, $1) " in
  3658. *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  3659. esac
  3660. ])# AC_LIBTOOL_POSTDEP_PREDEP
  3661. # AC_LIBTOOL_CONFIG([TAGNAME])
  3662. # ----------------------------
  3663. # If TAGNAME is not passed, then create an initial libtool script
  3664. # with a default configuration from the untagged config vars. Otherwise
  3665. # add code to config.status for appending the configuration named by
  3666. # TAGNAME from the matching tagged config vars.
  3667. AC_DEFUN([AC_LIBTOOL_CONFIG],
  3668. [# The else clause should only fire when bootstrapping the
  3669. # libtool distribution, otherwise you forgot to ship ltmain.sh
  3670. # with your package, and you will get complaints that there are
  3671. # no rules to generate ltmain.sh.
  3672. if test -f "$ltmain"; then
  3673. # See if we are running on zsh, and set the options which allow our commands through
  3674. # without removal of \ escapes.
  3675. if test -n "${ZSH_VERSION+set}" ; then
  3676. setopt NO_GLOB_SUBST
  3677. fi
  3678. # Now quote all the things that may contain metacharacters while being
  3679. # careful not to overquote the AC_SUBSTed values. We take copies of the
  3680. # variables and quote the copies for generation of the libtool script.
  3681. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  3682. SED SHELL STRIP \
  3683. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  3684. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  3685. deplibs_check_method reload_flag reload_cmds need_locks \
  3686. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  3687. lt_cv_sys_global_symbol_to_c_name_address \
  3688. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  3689. old_postinstall_cmds old_postuninstall_cmds \
  3690. _LT_AC_TAGVAR(compiler, $1) \
  3691. _LT_AC_TAGVAR(CC, $1) \
  3692. _LT_AC_TAGVAR(LD, $1) \
  3693. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  3694. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  3695. _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  3696. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  3697. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  3698. _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  3699. _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  3700. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  3701. _LT_AC_TAGVAR(old_archive_cmds, $1) \
  3702. _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  3703. _LT_AC_TAGVAR(predep_objects, $1) \
  3704. _LT_AC_TAGVAR(postdep_objects, $1) \
  3705. _LT_AC_TAGVAR(predeps, $1) \
  3706. _LT_AC_TAGVAR(postdeps, $1) \
  3707. _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  3708. _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  3709. _LT_AC_TAGVAR(archive_cmds, $1) \
  3710. _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  3711. _LT_AC_TAGVAR(postinstall_cmds, $1) \
  3712. _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  3713. _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  3714. _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  3715. _LT_AC_TAGVAR(no_undefined_flag, $1) \
  3716. _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  3717. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  3718. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  3719. _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  3720. _LT_AC_TAGVAR(hardcode_automatic, $1) \
  3721. _LT_AC_TAGVAR(module_cmds, $1) \
  3722. _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  3723. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  3724. _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  3725. _LT_AC_TAGVAR(exclude_expsyms, $1) \
  3726. _LT_AC_TAGVAR(include_expsyms, $1); do
  3727. case $var in
  3728. _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  3729. _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  3730. _LT_AC_TAGVAR(archive_cmds, $1) | \
  3731. _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  3732. _LT_AC_TAGVAR(module_cmds, $1) | \
  3733. _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  3734. _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  3735. _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  3736. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  3737. postinstall_cmds | postuninstall_cmds | \
  3738. old_postinstall_cmds | old_postuninstall_cmds | \
  3739. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  3740. # Double-quote double-evaled strings.
  3741. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  3742. ;;
  3743. *)
  3744. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  3745. ;;
  3746. esac
  3747. done
  3748. case $lt_echo in
  3749. *'\[$]0 --fallback-echo"')
  3750. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  3751. ;;
  3752. esac
  3753. ifelse([$1], [],
  3754. [cfgfile="${ofile}T"
  3755. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  3756. $rm -f "$cfgfile"
  3757. AC_MSG_RESULT([
  3758. creating $ofile])],
  3759. [cfgfile="$ofile"])
  3760. cat <<__EOF__ >> "$cfgfile"
  3761. ifelse([$1], [],
  3762. [#! $SHELL
  3763. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  3764. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  3765. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  3766. #
  3767. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  3768. # Free Software Foundation, Inc.
  3769. #
  3770. # This file is part of GNU Libtool:
  3771. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  3772. #
  3773. # This program is free software; you can redistribute it and/or modify
  3774. # it under the terms of the GNU General Public License as published by
  3775. # the Free Software Foundation; either version 2 of the License, or
  3776. # (at your option) any later version.
  3777. #
  3778. # This program is distributed in the hope that it will be useful, but
  3779. # WITHOUT ANY WARRANTY; without even the implied warranty of
  3780. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  3781. # General Public License for more details.
  3782. #
  3783. # You should have received a copy of the GNU General Public License
  3784. # along with this program; if not, write to the Free Software
  3785. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  3786. #
  3787. # As a special exception to the GNU General Public License, if you
  3788. # distribute this file as part of a program that contains a
  3789. # configuration script generated by Autoconf, you may include it under
  3790. # the same distribution terms that you use for the rest of that program.
  3791. # A sed program that does not truncate output.
  3792. SED=$lt_SED
  3793. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  3794. Xsed="$SED -e 1s/^X//"
  3795. # The HP-UX ksh and POSIX shell print the target directory to stdout
  3796. # if CDPATH is set.
  3797. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  3798. # The names of the tagged configurations supported by this script.
  3799. available_tags=
  3800. # ### BEGIN LIBTOOL CONFIG],
  3801. [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  3802. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3803. # Shell to use when invoking shell scripts.
  3804. SHELL=$lt_SHELL
  3805. # Whether or not to build shared libraries.
  3806. build_libtool_libs=$enable_shared
  3807. # Whether or not to build static libraries.
  3808. build_old_libs=$enable_static
  3809. # Whether or not to add -lc for building shared libraries.
  3810. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  3811. # Whether or not to disallow shared libs when runtime libs are static
  3812. allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  3813. # Whether or not to optimize for fast installation.
  3814. fast_install=$enable_fast_install
  3815. # The host system.
  3816. host_alias=$host_alias
  3817. host=$host
  3818. host_os=$host_os
  3819. # The build system.
  3820. build_alias=$build_alias
  3821. build=$build
  3822. build_os=$build_os
  3823. # An echo program that does not interpret backslashes.
  3824. echo=$lt_echo
  3825. # The archiver.
  3826. AR=$lt_AR
  3827. AR_FLAGS=$lt_AR_FLAGS
  3828. # A C compiler.
  3829. LTCC=$lt_LTCC
  3830. # LTCC compiler flags.
  3831. LTCFLAGS=$lt_LTCFLAGS
  3832. # A language-specific compiler.
  3833. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  3834. # Is the compiler the GNU C compiler?
  3835. with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  3836. # An ERE matcher.
  3837. EGREP=$lt_EGREP
  3838. # The linker used to build libraries.
  3839. LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  3840. # Whether we need hard or soft links.
  3841. LN_S=$lt_LN_S
  3842. # A BSD-compatible nm program.
  3843. NM=$lt_NM
  3844. # A symbol stripping program
  3845. STRIP=$lt_STRIP
  3846. # Used to examine libraries when file_magic_cmd begins "file"
  3847. MAGIC_CMD=$MAGIC_CMD
  3848. # Used on cygwin: DLL creation program.
  3849. DLLTOOL="$DLLTOOL"
  3850. # Used on cygwin: object dumper.
  3851. OBJDUMP="$OBJDUMP"
  3852. # Used on cygwin: assembler.
  3853. AS="$AS"
  3854. # The name of the directory that contains temporary libtool files.
  3855. objdir=$objdir
  3856. # How to create reloadable object files.
  3857. reload_flag=$lt_reload_flag
  3858. reload_cmds=$lt_reload_cmds
  3859. # How to pass a linker flag through the compiler.
  3860. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  3861. # Object file suffix (normally "o").
  3862. objext="$ac_objext"
  3863. # Old archive suffix (normally "a").
  3864. libext="$libext"
  3865. # Shared library suffix (normally ".so").
  3866. shrext_cmds='$shrext_cmds'
  3867. # Executable file suffix (normally "").
  3868. exeext="$exeext"
  3869. # Additional compiler flags for building library objects.
  3870. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  3871. pic_mode=$pic_mode
  3872. # What is the maximum length of a command?
  3873. max_cmd_len=$lt_cv_sys_max_cmd_len
  3874. # Does compiler simultaneously support -c and -o options?
  3875. compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  3876. # Must we lock files when doing compilation?
  3877. need_locks=$lt_need_locks
  3878. # Do we need the lib prefix for modules?
  3879. need_lib_prefix=$need_lib_prefix
  3880. # Do we need a version for libraries?
  3881. need_version=$need_version
  3882. # Whether dlopen is supported.
  3883. dlopen_support=$enable_dlopen
  3884. # Whether dlopen of programs is supported.
  3885. dlopen_self=$enable_dlopen_self
  3886. # Whether dlopen of statically linked programs is supported.
  3887. dlopen_self_static=$enable_dlopen_self_static
  3888. # Compiler flag to prevent dynamic linking.
  3889. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  3890. # Compiler flag to turn off builtin functions.
  3891. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  3892. # Compiler flag to allow reflexive dlopens.
  3893. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  3894. # Compiler flag to generate shared objects directly from archives.
  3895. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  3896. # Compiler flag to generate thread-safe objects.
  3897. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  3898. # Library versioning type.
  3899. version_type=$version_type
  3900. # Format of library name prefix.
  3901. libname_spec=$lt_libname_spec
  3902. # List of archive names. First name is the real one, the rest are links.
  3903. # The last name is the one that the linker finds with -lNAME.
  3904. library_names_spec=$lt_library_names_spec
  3905. # The coded name of the library, if different from the real name.
  3906. soname_spec=$lt_soname_spec
  3907. # Commands used to build and install an old-style archive.
  3908. RANLIB=$lt_RANLIB
  3909. old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  3910. old_postinstall_cmds=$lt_old_postinstall_cmds
  3911. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  3912. # Create an old-style archive from a shared archive.
  3913. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  3914. # Create a temporary old-style archive to link instead of a shared archive.
  3915. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  3916. # Commands used to build and install a shared archive.
  3917. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  3918. archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  3919. postinstall_cmds=$lt_postinstall_cmds
  3920. postuninstall_cmds=$lt_postuninstall_cmds
  3921. # Commands used to build a loadable module (assumed same as above if empty)
  3922. module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  3923. module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  3924. # Commands to strip libraries.
  3925. old_striplib=$lt_old_striplib
  3926. striplib=$lt_striplib
  3927. # Dependencies to place before the objects being linked to create a
  3928. # shared library.
  3929. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  3930. # Dependencies to place after the objects being linked to create a
  3931. # shared library.
  3932. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  3933. # Dependencies to place before the objects being linked to create a
  3934. # shared library.
  3935. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  3936. # Dependencies to place after the objects being linked to create a
  3937. # shared library.
  3938. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  3939. # The directories searched by this compiler when creating a shared
  3940. # library
  3941. compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  3942. # The library search path used internally by the compiler when linking
  3943. # a shared library.
  3944. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  3945. # Method to check whether dependent libraries are shared objects.
  3946. deplibs_check_method=$lt_deplibs_check_method
  3947. # Command to use when deplibs_check_method == file_magic.
  3948. file_magic_cmd=$lt_file_magic_cmd
  3949. # Flag that allows shared libraries with undefined symbols to be built.
  3950. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  3951. # Flag that forces no undefined symbols.
  3952. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  3953. # Commands used to finish a libtool library installation in a directory.
  3954. finish_cmds=$lt_finish_cmds
  3955. # Same as above, but a single script fragment to be evaled but not shown.
  3956. finish_eval=$lt_finish_eval
  3957. # Take the output of nm and produce a listing of raw symbols and C names.
  3958. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  3959. # Transform the output of nm in a proper C declaration
  3960. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  3961. # Transform the output of nm in a C name address pair
  3962. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  3963. # This is the shared library runtime path variable.
  3964. runpath_var=$runpath_var
  3965. # This is the shared library path variable.
  3966. shlibpath_var=$shlibpath_var
  3967. # Is shlibpath searched before the hard-coded library search path?
  3968. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  3969. # How to hardcode a shared library path into an executable.
  3970. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  3971. # Whether we should hardcode library paths into libraries.
  3972. hardcode_into_libs=$hardcode_into_libs
  3973. # Flag to hardcode \$libdir into a binary during linking.
  3974. # This must work even if \$libdir does not exist.
  3975. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  3976. # If ld is used when linking, flag to hardcode \$libdir into
  3977. # a binary during linking. This must work even if \$libdir does
  3978. # not exist.
  3979. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  3980. # Whether we need a single -rpath flag with a separated argument.
  3981. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  3982. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  3983. # resulting binary.
  3984. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  3985. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  3986. # resulting binary.
  3987. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  3988. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  3989. # the resulting binary.
  3990. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  3991. # Set to yes if building a shared library automatically hardcodes DIR into the library
  3992. # and all subsequent libraries and executables linked against it.
  3993. hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  3994. # Variables whose values should be saved in libtool wrapper scripts and
  3995. # restored at relink time.
  3996. variables_saved_for_relink="$variables_saved_for_relink"
  3997. # Whether libtool must link a program against all its dependency libraries.
  3998. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  3999. # Compile-time system search path for libraries
  4000. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  4001. # Run-time system search path for libraries
  4002. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  4003. # Fix the shell variable \$srcfile for the compiler.
  4004. fix_srcfile_path=$lt_fix_srcfile_path
  4005. # Set to yes if exported symbols are required.
  4006. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  4007. # The commands to list exported symbols.
  4008. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  4009. # The commands to extract the exported symbol list from a shared archive.
  4010. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  4011. # Symbols that should not be listed in the preloaded symbols.
  4012. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  4013. # Symbols that must always be exported.
  4014. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  4015. ifelse([$1],[],
  4016. [# ### END LIBTOOL CONFIG],
  4017. [# ### END LIBTOOL TAG CONFIG: $tagname])
  4018. __EOF__
  4019. ifelse([$1],[], [
  4020. case $host_os in
  4021. aix3*)
  4022. cat <<\EOF >> "$cfgfile"
  4023. # AIX sometimes has problems with the GCC collect2 program. For some
  4024. # reason, if we set the COLLECT_NAMES environment variable, the problems
  4025. # vanish in a puff of smoke.
  4026. if test "X${COLLECT_NAMES+set}" != Xset; then
  4027. COLLECT_NAMES=
  4028. export COLLECT_NAMES
  4029. fi
  4030. EOF
  4031. ;;
  4032. esac
  4033. # We use sed instead of cat because bash on DJGPP gets confused if
  4034. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  4035. # text mode, it properly converts lines to CR/LF. This bash problem
  4036. # is reportedly fixed, but why not run on old versions too?
  4037. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  4038. mv -f "$cfgfile" "$ofile" || \
  4039. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  4040. chmod +x "$ofile"
  4041. ])
  4042. else
  4043. # If there is no Makefile yet, we rely on a make rule to execute
  4044. # `config.status --recheck' to rerun these tests and create the
  4045. # libtool script then.
  4046. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  4047. if test -f "$ltmain_in"; then
  4048. test -f Makefile && make "$ltmain"
  4049. fi
  4050. fi
  4051. ])# AC_LIBTOOL_CONFIG
  4052. # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  4053. # -------------------------------------------
  4054. AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  4055. [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  4056. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4057. if test "$GCC" = yes; then
  4058. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4059. AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  4060. lt_cv_prog_compiler_rtti_exceptions,
  4061. [-fno-rtti -fno-exceptions], [],
  4062. [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  4063. fi
  4064. ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  4065. # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4066. # ---------------------------------
  4067. AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  4068. [AC_REQUIRE([AC_CANONICAL_HOST])
  4069. AC_REQUIRE([LT_AC_PROG_SED])
  4070. AC_REQUIRE([AC_PROG_NM])
  4071. AC_REQUIRE([AC_OBJEXT])
  4072. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4073. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  4074. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  4075. [
  4076. # These are sane defaults that work on at least a few old systems.
  4077. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4078. # Character class describing NM global symbol codes.
  4079. symcode='[[BCDEGRST]]'
  4080. # Regexp to match symbols that can be accessed directly from C.
  4081. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  4082. # Transform an extracted symbol line into a proper C declaration
  4083. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4084. # Transform an extracted symbol line into symbol name and symbol address
  4085. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4086. # Define system-specific variables.
  4087. case $host_os in
  4088. aix*)
  4089. symcode='[[BCDT]]'
  4090. ;;
  4091. cygwin* | mingw* | pw32*)
  4092. symcode='[[ABCDGISTW]]'
  4093. ;;
  4094. hpux*) # Its linker distinguishes data from code symbols
  4095. if test "$host_cpu" = ia64; then
  4096. symcode='[[ABCDEGRST]]'
  4097. fi
  4098. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4099. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4100. ;;
  4101. linux* | k*bsd*-gnu)
  4102. if test "$host_cpu" = ia64; then
  4103. symcode='[[ABCDGIRSTW]]'
  4104. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4105. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4106. fi
  4107. ;;
  4108. irix* | nonstopux*)
  4109. symcode='[[BCDEGRST]]'
  4110. ;;
  4111. osf*)
  4112. symcode='[[BCDEGQRST]]'
  4113. ;;
  4114. solaris*)
  4115. symcode='[[BDRT]]'
  4116. ;;
  4117. sco3.2v5*)
  4118. symcode='[[DT]]'
  4119. ;;
  4120. sysv4.2uw2*)
  4121. symcode='[[DT]]'
  4122. ;;
  4123. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4124. symcode='[[ABDT]]'
  4125. ;;
  4126. sysv4)
  4127. symcode='[[DFNSTU]]'
  4128. ;;
  4129. esac
  4130. # Handle CRLF in mingw tool chain
  4131. opt_cr=
  4132. case $build_os in
  4133. mingw*)
  4134. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4135. ;;
  4136. esac
  4137. # If we're using GNU nm, then use its standard symbol codes.
  4138. case `$NM -V 2>&1` in
  4139. *GNU* | *'with BFD'*)
  4140. symcode='[[ABCDGIRSTW]]' ;;
  4141. esac
  4142. # Try without a prefix undercore, then with it.
  4143. for ac_symprfx in "" "_"; do
  4144. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4145. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4146. # Write the raw and C identifiers.
  4147. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4148. # Check to see that the pipe works correctly.
  4149. pipe_works=no
  4150. rm -f conftest*
  4151. cat > conftest.$ac_ext <<EOF
  4152. #ifdef __cplusplus
  4153. extern "C" {
  4154. #endif
  4155. char nm_test_var;
  4156. void nm_test_func(){}
  4157. #ifdef __cplusplus
  4158. }
  4159. #endif
  4160. int main(){nm_test_var='a';nm_test_func();return(0);}
  4161. EOF
  4162. if AC_TRY_EVAL(ac_compile); then
  4163. # Now try to grab the symbols.
  4164. nlist=conftest.nm
  4165. if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  4166. # Try sorting and uniquifying the output.
  4167. if sort "$nlist" | uniq > "$nlist"T; then
  4168. mv -f "$nlist"T "$nlist"
  4169. else
  4170. rm -f "$nlist"T
  4171. fi
  4172. # Make sure that we snagged all the symbols we need.
  4173. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4174. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4175. cat <<EOF > conftest.$ac_ext
  4176. #ifdef __cplusplus
  4177. extern "C" {
  4178. #endif
  4179. EOF
  4180. # Now generate the symbol file.
  4181. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4182. cat <<EOF >> conftest.$ac_ext
  4183. #if defined (__STDC__) && __STDC__
  4184. # define lt_ptr_t void *
  4185. #else
  4186. # define lt_ptr_t char *
  4187. # define const
  4188. #endif
  4189. /* The mapping between symbol names and symbols. */
  4190. const struct {
  4191. const char *name;
  4192. lt_ptr_t address;
  4193. }
  4194. lt_preloaded_symbols[[]] =
  4195. {
  4196. EOF
  4197. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4198. cat <<\EOF >> conftest.$ac_ext
  4199. {0, (lt_ptr_t) 0}
  4200. };
  4201. #ifdef __cplusplus
  4202. }
  4203. #endif
  4204. EOF
  4205. # Now try linking the two files.
  4206. mv conftest.$ac_objext conftstm.$ac_objext
  4207. lt_save_LIBS="$LIBS"
  4208. lt_save_CFLAGS="$CFLAGS"
  4209. LIBS="conftstm.$ac_objext"
  4210. CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  4211. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  4212. pipe_works=yes
  4213. fi
  4214. LIBS="$lt_save_LIBS"
  4215. CFLAGS="$lt_save_CFLAGS"
  4216. else
  4217. echo "cannot find nm_test_func in $nlist" >&5
  4218. fi
  4219. else
  4220. echo "cannot find nm_test_var in $nlist" >&5
  4221. fi
  4222. else
  4223. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4224. fi
  4225. else
  4226. echo "$progname: failed program was:" >&5
  4227. cat conftest.$ac_ext >&5
  4228. fi
  4229. rm -rf conftest* conftst*
  4230. # Do not use the global_symbol_pipe unless it works.
  4231. if test "$pipe_works" = yes; then
  4232. break
  4233. else
  4234. lt_cv_sys_global_symbol_pipe=
  4235. fi
  4236. done
  4237. ])
  4238. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4239. lt_cv_sys_global_symbol_to_cdecl=
  4240. fi
  4241. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4242. AC_MSG_RESULT(failed)
  4243. else
  4244. AC_MSG_RESULT(ok)
  4245. fi
  4246. ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4247. # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  4248. # ---------------------------------------
  4249. AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  4250. [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  4251. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4252. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  4253. AC_MSG_CHECKING([for $compiler option to produce PIC])
  4254. ifelse([$1],[CXX],[
  4255. # C++ specific cases for pic, static, wl, etc.
  4256. if test "$GXX" = yes; then
  4257. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4258. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4259. case $host_os in
  4260. aix*)
  4261. # All AIX code is PIC.
  4262. if test "$host_cpu" = ia64; then
  4263. # AIX 5 now supports IA64 processor
  4264. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4265. fi
  4266. ;;
  4267. amigaos*)
  4268. # FIXME: we need at least 68020 code to build shared libraries, but
  4269. # adding the `-m68020' flag to GCC prevents building anything better,
  4270. # like `-m68040'.
  4271. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4272. ;;
  4273. beos* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4274. # PIC is the default for these OSes.
  4275. ;;
  4276. mingw* | cygwin* | os2* | pw32*)
  4277. # This hack is so that the source file can tell whether it is being
  4278. # built for inclusion in a dll (and should export symbols for example).
  4279. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4280. # (--disable-auto-import) libraries
  4281. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4282. ;;
  4283. darwin* | rhapsody*)
  4284. # PIC is the default on this platform
  4285. # Common symbols not allowed in MH_DYLIB files
  4286. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4287. ;;
  4288. *djgpp*)
  4289. # DJGPP does not support shared libraries at all
  4290. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4291. ;;
  4292. interix[[3-9]]*)
  4293. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4294. # Instead, we relocate shared libraries at runtime.
  4295. ;;
  4296. sysv4*MP*)
  4297. if test -d /usr/nec; then
  4298. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4299. fi
  4300. ;;
  4301. hpux*)
  4302. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4303. # not for PA HP-UX.
  4304. case $host_cpu in
  4305. hppa*64*|ia64*)
  4306. ;;
  4307. *)
  4308. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4309. ;;
  4310. esac
  4311. ;;
  4312. *)
  4313. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4314. ;;
  4315. esac
  4316. else
  4317. case $host_os in
  4318. aix[[4-9]]*)
  4319. # All AIX code is PIC.
  4320. if test "$host_cpu" = ia64; then
  4321. # AIX 5 now supports IA64 processor
  4322. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4323. else
  4324. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4325. fi
  4326. ;;
  4327. chorus*)
  4328. case $cc_basename in
  4329. cxch68*)
  4330. # Green Hills C++ Compiler
  4331. # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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"
  4332. ;;
  4333. esac
  4334. ;;
  4335. darwin*)
  4336. # PIC is the default on this platform
  4337. # Common symbols not allowed in MH_DYLIB files
  4338. case $cc_basename in
  4339. xlc*)
  4340. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  4341. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4342. ;;
  4343. esac
  4344. ;;
  4345. dgux*)
  4346. case $cc_basename in
  4347. ec++*)
  4348. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4349. ;;
  4350. ghcx*)
  4351. # Green Hills C++ Compiler
  4352. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4353. ;;
  4354. *)
  4355. ;;
  4356. esac
  4357. ;;
  4358. freebsd* | dragonfly*)
  4359. # FreeBSD uses GNU C++
  4360. ;;
  4361. hpux9* | hpux10* | hpux11*)
  4362. case $cc_basename in
  4363. CC*)
  4364. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4365. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4366. if test "$host_cpu" != ia64; then
  4367. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4368. fi
  4369. ;;
  4370. aCC*)
  4371. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4372. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4373. case $host_cpu in
  4374. hppa*64*|ia64*)
  4375. # +Z the default
  4376. ;;
  4377. *)
  4378. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4379. ;;
  4380. esac
  4381. ;;
  4382. *)
  4383. ;;
  4384. esac
  4385. ;;
  4386. interix*)
  4387. # This is c89, which is MS Visual C++ (no shared libs)
  4388. # Anyone wants to do a port?
  4389. ;;
  4390. irix5* | irix6* | nonstopux*)
  4391. case $cc_basename in
  4392. CC*)
  4393. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4394. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4395. # CC pic flag -KPIC is the default.
  4396. ;;
  4397. *)
  4398. ;;
  4399. esac
  4400. ;;
  4401. linux* | k*bsd*-gnu)
  4402. case $cc_basename in
  4403. KCC*)
  4404. # KAI C++ Compiler
  4405. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4406. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4407. ;;
  4408. ecpc*)
  4409. # old Intel C++ for x86_64 which still supported -KPIC.
  4410. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4411. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4412. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4413. ;;
  4414. icpc*)
  4415. # Intel C++, used to be incompatible with GCC.
  4416. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4417. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4418. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4419. ;;
  4420. pgCC* | pgcpp*)
  4421. # Portland Group C++ compiler.
  4422. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4423. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4424. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4425. ;;
  4426. cxx*)
  4427. # Compaq C++
  4428. # Make sure the PIC flag is empty. It appears that all Alpha
  4429. # Linux and Compaq Tru64 Unix objects are PIC.
  4430. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4431. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4432. ;;
  4433. *)
  4434. case `$CC -V 2>&1 | sed 5q` in
  4435. *Sun\ C*)
  4436. # Sun C++ 5.9
  4437. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4438. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4439. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4440. ;;
  4441. esac
  4442. ;;
  4443. esac
  4444. ;;
  4445. lynxos*)
  4446. ;;
  4447. m88k*)
  4448. ;;
  4449. mvs*)
  4450. case $cc_basename in
  4451. cxx*)
  4452. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4453. ;;
  4454. *)
  4455. ;;
  4456. esac
  4457. ;;
  4458. netbsd*)
  4459. ;;
  4460. osf3* | osf4* | osf5*)
  4461. case $cc_basename in
  4462. KCC*)
  4463. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4464. ;;
  4465. RCC*)
  4466. # Rational C++ 2.4.1
  4467. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4468. ;;
  4469. cxx*)
  4470. # Digital/Compaq C++
  4471. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4472. # Make sure the PIC flag is empty. It appears that all Alpha
  4473. # Linux and Compaq Tru64 Unix objects are PIC.
  4474. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4475. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4476. ;;
  4477. *)
  4478. ;;
  4479. esac
  4480. ;;
  4481. psos*)
  4482. ;;
  4483. solaris*)
  4484. case $cc_basename in
  4485. CC*)
  4486. # Sun C++ 4.2, 5.x and Centerline C++
  4487. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4488. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4489. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4490. ;;
  4491. gcx*)
  4492. # Green Hills C++ Compiler
  4493. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4494. ;;
  4495. *)
  4496. ;;
  4497. esac
  4498. ;;
  4499. sunos4*)
  4500. case $cc_basename in
  4501. CC*)
  4502. # Sun C++ 4.x
  4503. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4504. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4505. ;;
  4506. lcc*)
  4507. # Lucid
  4508. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4509. ;;
  4510. *)
  4511. ;;
  4512. esac
  4513. ;;
  4514. tandem*)
  4515. case $cc_basename in
  4516. NCC*)
  4517. # NonStop-UX NCC 3.20
  4518. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4519. ;;
  4520. *)
  4521. ;;
  4522. esac
  4523. ;;
  4524. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4525. case $cc_basename in
  4526. CC*)
  4527. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4528. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4529. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4530. ;;
  4531. esac
  4532. ;;
  4533. vxworks*)
  4534. ;;
  4535. *)
  4536. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4537. ;;
  4538. esac
  4539. fi
  4540. ],
  4541. [
  4542. if test "$GCC" = yes; then
  4543. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4544. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4545. case $host_os in
  4546. aix*)
  4547. # All AIX code is PIC.
  4548. if test "$host_cpu" = ia64; then
  4549. # AIX 5 now supports IA64 processor
  4550. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4551. fi
  4552. ;;
  4553. amigaos*)
  4554. # FIXME: we need at least 68020 code to build shared libraries, but
  4555. # adding the `-m68020' flag to GCC prevents building anything better,
  4556. # like `-m68040'.
  4557. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4558. ;;
  4559. beos* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4560. # PIC is the default for these OSes.
  4561. ;;
  4562. mingw* | cygwin* | pw32* | os2*)
  4563. # This hack is so that the source file can tell whether it is being
  4564. # built for inclusion in a dll (and should export symbols for example).
  4565. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4566. # (--disable-auto-import) libraries
  4567. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4568. ;;
  4569. darwin* | rhapsody*)
  4570. # PIC is the default on this platform
  4571. # Common symbols not allowed in MH_DYLIB files
  4572. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4573. ;;
  4574. interix[[3-9]]*)
  4575. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4576. # Instead, we relocate shared libraries at runtime.
  4577. ;;
  4578. msdosdjgpp*)
  4579. # Just because we use GCC doesn't mean we suddenly get shared libraries
  4580. # on systems that don't support them.
  4581. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4582. enable_shared=no
  4583. ;;
  4584. sysv4*MP*)
  4585. if test -d /usr/nec; then
  4586. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4587. fi
  4588. ;;
  4589. hpux*)
  4590. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4591. # not for PA HP-UX.
  4592. case $host_cpu in
  4593. hppa*64*|ia64*)
  4594. # +Z the default
  4595. ;;
  4596. *)
  4597. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4598. ;;
  4599. esac
  4600. ;;
  4601. *)
  4602. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4603. ;;
  4604. esac
  4605. else
  4606. # PORTME Check for flag to pass linker flags through the system compiler.
  4607. case $host_os in
  4608. aix*)
  4609. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4610. if test "$host_cpu" = ia64; then
  4611. # AIX 5 now supports IA64 processor
  4612. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4613. else
  4614. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4615. fi
  4616. ;;
  4617. darwin*)
  4618. # PIC is the default on this platform
  4619. # Common symbols not allowed in MH_DYLIB files
  4620. case $cc_basename in
  4621. xlc*)
  4622. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  4623. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4624. ;;
  4625. esac
  4626. ;;
  4627. mingw* | cygwin* | pw32* | os2*)
  4628. # This hack is so that the source file can tell whether it is being
  4629. # built for inclusion in a dll (and should export symbols for example).
  4630. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4631. ;;
  4632. hpux9* | hpux10* | hpux11*)
  4633. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4634. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4635. # not for PA HP-UX.
  4636. case $host_cpu in
  4637. hppa*64*|ia64*)
  4638. # +Z the default
  4639. ;;
  4640. *)
  4641. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4642. ;;
  4643. esac
  4644. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4645. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4646. ;;
  4647. irix5* | irix6* | nonstopux*)
  4648. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4649. # PIC (with -KPIC) is the default.
  4650. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4651. ;;
  4652. newsos6)
  4653. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4654. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4655. ;;
  4656. linux* | k*bsd*-gnu)
  4657. case $cc_basename in
  4658. # old Intel for x86_64 which still supported -KPIC.
  4659. ecc*)
  4660. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4661. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4662. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4663. ;;
  4664. # icc used to be incompatible with GCC.
  4665. # ICC 10 doesn't accept -KPIC any more.
  4666. icc*)
  4667. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4668. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4669. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4670. ;;
  4671. pgcc* | pgf77* | pgf90* | pgf95*)
  4672. # Portland Group compilers (*not* the Pentium gcc compiler,
  4673. # which looks to be a dead project)
  4674. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4675. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4676. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4677. ;;
  4678. ccc*)
  4679. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4680. # All Alpha code is PIC.
  4681. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4682. ;;
  4683. *)
  4684. case `$CC -V 2>&1 | sed 5q` in
  4685. *Sun\ C*)
  4686. # Sun C 5.9
  4687. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4688. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4689. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4690. ;;
  4691. *Sun\ F*)
  4692. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4693. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4694. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4695. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  4696. ;;
  4697. esac
  4698. ;;
  4699. esac
  4700. ;;
  4701. osf3* | osf4* | osf5*)
  4702. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4703. # All OSF/1 code is PIC.
  4704. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4705. ;;
  4706. rdos*)
  4707. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4708. ;;
  4709. solaris*)
  4710. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4711. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4712. case $cc_basename in
  4713. f77* | f90* | f95*)
  4714. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4715. *)
  4716. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4717. esac
  4718. ;;
  4719. sunos4*)
  4720. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4721. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4722. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4723. ;;
  4724. sysv4 | sysv4.2uw2* | sysv4.3*)
  4725. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4726. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4727. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4728. ;;
  4729. sysv4*MP*)
  4730. if test -d /usr/nec ;then
  4731. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4732. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4733. fi
  4734. ;;
  4735. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4736. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4737. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4738. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4739. ;;
  4740. unicos*)
  4741. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4742. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4743. ;;
  4744. uts4*)
  4745. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4746. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4747. ;;
  4748. *)
  4749. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4750. ;;
  4751. esac
  4752. fi
  4753. ])
  4754. AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  4755. #
  4756. # Check to make sure the PIC flag actually works.
  4757. #
  4758. if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4759. AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  4760. _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  4761. [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  4762. [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  4763. "" | " "*) ;;
  4764. *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4765. esac],
  4766. [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4767. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4768. fi
  4769. case $host_os in
  4770. # For platforms which do not support PIC, -DPIC is meaningless:
  4771. *djgpp*)
  4772. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4773. ;;
  4774. *)
  4775. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  4776. ;;
  4777. esac
  4778. #
  4779. # Check to make sure the static flag actually works.
  4780. #
  4781. wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  4782. AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4783. _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4784. $lt_tmp_static_flag,
  4785. [],
  4786. [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  4787. ])
  4788. # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  4789. # ------------------------------------
  4790. # See if the linker supports building shared libraries.
  4791. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  4792. [AC_REQUIRE([LT_AC_PROG_SED])dnl
  4793. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4794. ifelse([$1],[CXX],[
  4795. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4796. case $host_os in
  4797. aix[[4-9]]*)
  4798. # If we're using GNU nm, then we don't want the "-C" option.
  4799. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4800. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  4801. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  4802. else
  4803. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  4804. fi
  4805. ;;
  4806. pw32*)
  4807. _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4808. ;;
  4809. cygwin* | mingw*)
  4810. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  4811. ;;
  4812. *)
  4813. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4814. ;;
  4815. esac
  4816. _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4817. ],[
  4818. runpath_var=
  4819. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4820. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4821. _LT_AC_TAGVAR(archive_cmds, $1)=
  4822. _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4823. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  4824. _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4825. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4826. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4827. _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  4828. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4829. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4830. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4831. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4832. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4833. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4834. _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4835. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4836. _LT_AC_TAGVAR(module_cmds, $1)=
  4837. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4838. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  4839. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4840. # include_expsyms should be a list of space-separated symbols to be *always*
  4841. # included in the symbol list
  4842. _LT_AC_TAGVAR(include_expsyms, $1)=
  4843. # exclude_expsyms can be an extended regexp of symbols to exclude
  4844. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4845. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4846. # as well as any symbol that contains `d'.
  4847. _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4848. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4849. # platforms (ab)use it in PIC code, but their linkers get confused if
  4850. # the symbol is explicitly referenced. Since portable code cannot
  4851. # rely on this symbol name, it's probably fine to never include it in
  4852. # preloaded symbol tables.
  4853. # Exclude shared library initialization/finalization symbols.
  4854. dnl Note also adjust exclude_expsyms for C++ above.
  4855. extract_expsyms_cmds=
  4856. # Just being paranoid about ensuring that cc_basename is set.
  4857. _LT_CC_BASENAME([$compiler])
  4858. case $host_os in
  4859. cygwin* | mingw* | pw32*)
  4860. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4861. # When not using gcc, we currently assume that we are using
  4862. # Microsoft Visual C++.
  4863. if test "$GCC" != yes; then
  4864. with_gnu_ld=no
  4865. fi
  4866. ;;
  4867. interix*)
  4868. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4869. with_gnu_ld=yes
  4870. ;;
  4871. openbsd*)
  4872. with_gnu_ld=no
  4873. ;;
  4874. esac
  4875. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4876. if test "$with_gnu_ld" = yes; then
  4877. # If archive_cmds runs LD, not CC, wlarc should be empty
  4878. wlarc='${wl}'
  4879. # Set some defaults for GNU ld with shared library support. These
  4880. # are reset later if shared libraries are not supported. Putting them
  4881. # here allows them to be overridden if necessary.
  4882. runpath_var=LD_RUN_PATH
  4883. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4884. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4885. # ancient GNU ld didn't support --whole-archive et. al.
  4886. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  4887. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4888. else
  4889. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4890. fi
  4891. supports_anon_versioning=no
  4892. case `$LD -v 2>/dev/null` in
  4893. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4894. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4895. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4896. *\ 2.11.*) ;; # other 2.11 versions
  4897. *) supports_anon_versioning=yes ;;
  4898. esac
  4899. # See if GNU ld supports shared libraries.
  4900. case $host_os in
  4901. aix[[3-9]]*)
  4902. # On AIX/PPC, the GNU linker is very broken
  4903. if test "$host_cpu" != ia64; then
  4904. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4905. cat <<EOF 1>&2
  4906. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  4907. *** to be unable to reliably create shared libraries on AIX.
  4908. *** Therefore, libtool is disabling shared libraries support. If you
  4909. *** really care for shared libraries, you may want to modify your PATH
  4910. *** so that a non-GNU linker is found, and then restart.
  4911. EOF
  4912. fi
  4913. ;;
  4914. amigaos*)
  4915. _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
  4916. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4917. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4918. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  4919. # that the semantics of dynamic libraries on AmigaOS, at least up
  4920. # to version 4, is to share data among multiple programs linked
  4921. # with the same dynamic library. Since this doesn't match the
  4922. # behavior of shared libraries on other platforms, we can't use
  4923. # them.
  4924. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4925. ;;
  4926. beos*)
  4927. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  4928. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4929. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4930. # support --undefined. This deserves some investigation. FIXME
  4931. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4932. else
  4933. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4934. fi
  4935. ;;
  4936. cygwin* | mingw* | pw32*)
  4937. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4938. # as there is no search path for DLLs.
  4939. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4940. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4941. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  4942. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4943. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  4944. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  4945. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4946. # If the export-symbols file already is a .def file (1st line
  4947. # is EXPORTS), use it as is; otherwise, prepend...
  4948. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4949. cp $export_symbols $output_objdir/$soname.def;
  4950. else
  4951. echo EXPORTS > $output_objdir/$soname.def;
  4952. cat $export_symbols >> $output_objdir/$soname.def;
  4953. fi~
  4954. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4955. else
  4956. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4957. fi
  4958. ;;
  4959. interix[[3-9]]*)
  4960. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4961. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4962. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4963. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4964. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4965. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4966. # default) and relocated if they conflict, which is a slow very memory
  4967. # consuming and fragmenting process. To avoid this, we pick a random,
  4968. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4969. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4970. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4971. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
  4972. ;;
  4973. gnu* | linux* | k*bsd*-gnu)
  4974. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  4975. tmp_addflag=
  4976. case $cc_basename,$host_cpu in
  4977. pgcc*) # Portland Group C compiler
  4978. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  4979. tmp_addflag=' $pic_flag'
  4980. ;;
  4981. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  4982. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  4983. tmp_addflag=' $pic_flag -Mnomain' ;;
  4984. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4985. tmp_addflag=' -i_dynamic' ;;
  4986. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4987. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4988. ifc* | ifort*) # Intel Fortran compiler
  4989. tmp_addflag=' -nofor_main' ;;
  4990. esac
  4991. case `$CC -V 2>&1 | sed 5q` in
  4992. *Sun\ C*) # Sun C 5.9
  4993. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  4994. tmp_sharedflag='-G' ;;
  4995. *Sun\ F*) # Sun Fortran 8.3
  4996. tmp_sharedflag='-G' ;;
  4997. *)
  4998. tmp_sharedflag='-shared' ;;
  4999. esac
  5000. _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5001. if test $supports_anon_versioning = yes; then
  5002. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  5003. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5004. $echo "local: *; };" >> $output_objdir/$libname.ver~
  5005. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5006. fi
  5007. else
  5008. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5009. fi
  5010. ;;
  5011. netbsd*)
  5012. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5013. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5014. wlarc=
  5015. else
  5016. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5017. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5018. fi
  5019. ;;
  5020. solaris*)
  5021. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5022. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5023. cat <<EOF 1>&2
  5024. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5025. *** create shared libraries on Solaris systems. Therefore, libtool
  5026. *** is disabling shared libraries support. We urge you to upgrade GNU
  5027. *** binutils to release 2.9.1 or newer. Another option is to modify
  5028. *** your PATH or compiler configuration so that the native linker is
  5029. *** used, and then restart.
  5030. EOF
  5031. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5032. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5033. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5034. else
  5035. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5036. fi
  5037. ;;
  5038. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5039. case `$LD -v 2>&1` in
  5040. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5041. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5042. cat <<_LT_EOF 1>&2
  5043. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5044. *** reliably create shared libraries on SCO systems. Therefore, libtool
  5045. *** is disabling shared libraries support. We urge you to upgrade GNU
  5046. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5047. *** your PATH or compiler configuration so that the native linker is
  5048. *** used, and then restart.
  5049. _LT_EOF
  5050. ;;
  5051. *)
  5052. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5053. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  5054. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  5055. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  5056. else
  5057. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5058. fi
  5059. ;;
  5060. esac
  5061. ;;
  5062. sunos4*)
  5063. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5064. wlarc=
  5065. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5066. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5067. ;;
  5068. *)
  5069. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5070. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5071. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5072. else
  5073. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5074. fi
  5075. ;;
  5076. esac
  5077. if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  5078. runpath_var=
  5079. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5080. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5081. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5082. fi
  5083. else
  5084. # PORTME fill in a description of your system's linker (not GNU ld)
  5085. case $host_os in
  5086. aix3*)
  5087. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5088. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5089. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  5090. # Note: this linker hardcodes the directories in LIBPATH if there
  5091. # are no directories specified by -L.
  5092. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5093. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5094. # Neither direct hardcoding nor static linking is supported with a
  5095. # broken collect2.
  5096. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5097. fi
  5098. ;;
  5099. aix[[4-9]]*)
  5100. if test "$host_cpu" = ia64; then
  5101. # On IA64, the linker does run time linking by default, so we don't
  5102. # have to do anything special.
  5103. aix_use_runtimelinking=no
  5104. exp_sym_flag='-Bexport'
  5105. no_entry_flag=""
  5106. else
  5107. # If we're using GNU nm, then we don't want the "-C" option.
  5108. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5109. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5110. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  5111. else
  5112. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  5113. fi
  5114. aix_use_runtimelinking=no
  5115. # Test if we are trying to use run time linking or normal
  5116. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5117. # need to do runtime linking.
  5118. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5119. for ld_flag in $LDFLAGS; do
  5120. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5121. aix_use_runtimelinking=yes
  5122. break
  5123. fi
  5124. done
  5125. ;;
  5126. esac
  5127. exp_sym_flag='-bexport'
  5128. no_entry_flag='-bnoentry'
  5129. fi
  5130. # When large executables or shared objects are built, AIX ld can
  5131. # have problems creating the table of contents. If linking a library
  5132. # or program results in "error TOC overflow" add -mminimal-toc to
  5133. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5134. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5135. _LT_AC_TAGVAR(archive_cmds, $1)=''
  5136. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5137. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5138. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5139. if test "$GCC" = yes; then
  5140. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5141. # We only want to do this on AIX 4.2 and lower, the check
  5142. # below for broken collect2 doesn't work under 4.3+
  5143. collect2name=`${CC} -print-prog-name=collect2`
  5144. if test -f "$collect2name" && \
  5145. strings "$collect2name" | grep resolve_lib_name >/dev/null
  5146. then
  5147. # We have reworked collect2
  5148. :
  5149. else
  5150. # We have old collect2
  5151. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5152. # It fails to find uninstalled libraries when the uninstalled
  5153. # path is not listed in the libpath. Setting hardcode_minus_L
  5154. # to unsupported forces relinking
  5155. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5156. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5157. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5158. fi
  5159. ;;
  5160. esac
  5161. shared_flag='-shared'
  5162. if test "$aix_use_runtimelinking" = yes; then
  5163. shared_flag="$shared_flag "'${wl}-G'
  5164. fi
  5165. else
  5166. # not using gcc
  5167. if test "$host_cpu" = ia64; then
  5168. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5169. # chokes on -Wl,-G. The following line is correct:
  5170. shared_flag='-G'
  5171. else
  5172. if test "$aix_use_runtimelinking" = yes; then
  5173. shared_flag='${wl}-G'
  5174. else
  5175. shared_flag='${wl}-bM:SRE'
  5176. fi
  5177. fi
  5178. fi
  5179. # It seems that -bexpall does not export symbols beginning with
  5180. # underscore (_), so it is better to generate a list of symbols to export.
  5181. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5182. if test "$aix_use_runtimelinking" = yes; then
  5183. # Warning - without using the other runtime loading flags (-brtl),
  5184. # -berok will link without error, but may produce a broken library.
  5185. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5186. # Determine the default libpath from the value encoded in an empty executable.
  5187. _LT_AC_SYS_LIBPATH_AIX
  5188. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5189. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5190. else
  5191. if test "$host_cpu" = ia64; then
  5192. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5193. _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5194. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
  5195. else
  5196. # Determine the default libpath from the value encoded in an empty executable.
  5197. _LT_AC_SYS_LIBPATH_AIX
  5198. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5199. # Warning - without using the other run time loading flags,
  5200. # -berok will link without error, but may produce a broken library.
  5201. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5202. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5203. # Exported symbols can be pulled into shared objects from archives
  5204. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5205. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5206. # This is similar to how AIX traditionally builds its shared libraries.
  5207. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5208. fi
  5209. fi
  5210. ;;
  5211. amigaos*)
  5212. _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
  5213. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5214. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5215. # see comment about different semantics on the GNU ld section
  5216. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5217. ;;
  5218. bsdi[[45]]*)
  5219. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5220. ;;
  5221. cygwin* | mingw* | pw32*)
  5222. # When not using gcc, we currently assume that we are using
  5223. # Microsoft Visual C++.
  5224. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5225. # no search path for DLLs.
  5226. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5227. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5228. # Tell ltmain to make .lib files, not .a files.
  5229. libext=lib
  5230. # Tell ltmain to make .dll files, not .so files.
  5231. shrext_cmds=".dll"
  5232. # FIXME: Setting linknames here is a bad hack.
  5233. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5234. # The linker will automatically build a .lib file if we build a DLL.
  5235. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  5236. # FIXME: Should let the user specify the lib program.
  5237. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  5238. _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  5239. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5240. ;;
  5241. darwin* | rhapsody*)
  5242. case $host_os in
  5243. rhapsody* | darwin1.[[012]])
  5244. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5245. ;;
  5246. *) # Darwin 1.3 on
  5247. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5248. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5249. else
  5250. case ${MACOSX_DEPLOYMENT_TARGET} in
  5251. 10.[[012]])
  5252. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5253. ;;
  5254. *)
  5255. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5256. ;;
  5257. esac
  5258. fi
  5259. ;;
  5260. esac
  5261. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5262. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5263. _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5264. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5265. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5266. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5267. if test "$GCC" = yes ; then
  5268. output_verbose_link_cmd='echo'
  5269. _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  5270. _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  5271. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}"
  5272. _LT_AC_TAGVAR(module_expsym_cmds, $1)="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}"
  5273. else
  5274. case $cc_basename in
  5275. xlc*)
  5276. output_verbose_link_cmd='echo'
  5277. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  5278. _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5279. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5280. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5281. _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5282. ;;
  5283. *)
  5284. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5285. ;;
  5286. esac
  5287. fi
  5288. ;;
  5289. dgux*)
  5290. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5291. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5292. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5293. ;;
  5294. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5295. # support. Future versions do this automatically, but an explicit c++rt0.o
  5296. # does not break anything, and helps significantly (at the cost of a little
  5297. # extra space).
  5298. freebsd2.2*)
  5299. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5300. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5301. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5302. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5303. ;;
  5304. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5305. freebsd2*)
  5306. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5307. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5308. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5309. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5310. ;;
  5311. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5312. freebsd* | dragonfly*)
  5313. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  5314. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5315. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5316. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5317. ;;
  5318. hpux9*)
  5319. if test "$GCC" = yes; then
  5320. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5321. else
  5322. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5323. fi
  5324. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5325. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5326. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5327. # hardcode_minus_L: Not really in the search PATH,
  5328. # but as the default location of the library.
  5329. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5330. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5331. ;;
  5332. hpux10*)
  5333. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  5334. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5335. else
  5336. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5337. fi
  5338. if test "$with_gnu_ld" = no; then
  5339. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5340. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5341. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5342. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5343. # hardcode_minus_L: Not really in the search PATH,
  5344. # but as the default location of the library.
  5345. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5346. fi
  5347. ;;
  5348. hpux11*)
  5349. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  5350. case $host_cpu in
  5351. hppa*64*)
  5352. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5353. ;;
  5354. ia64*)
  5355. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5356. ;;
  5357. *)
  5358. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5359. ;;
  5360. esac
  5361. else
  5362. case $host_cpu in
  5363. hppa*64*)
  5364. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5365. ;;
  5366. ia64*)
  5367. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5368. ;;
  5369. *)
  5370. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5371. ;;
  5372. esac
  5373. fi
  5374. if test "$with_gnu_ld" = no; then
  5375. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5376. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5377. case $host_cpu in
  5378. hppa*64*|ia64*)
  5379. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5380. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5381. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5382. ;;
  5383. *)
  5384. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5385. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5386. # hardcode_minus_L: Not really in the search PATH,
  5387. # but as the default location of the library.
  5388. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5389. ;;
  5390. esac
  5391. fi
  5392. ;;
  5393. irix5* | irix6* | nonstopux*)
  5394. if test "$GCC" = yes; then
  5395. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5396. else
  5397. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5398. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  5399. fi
  5400. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5401. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5402. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5403. ;;
  5404. netbsd*)
  5405. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5406. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5407. else
  5408. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5409. fi
  5410. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5411. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5412. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5413. ;;
  5414. newsos6)
  5415. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5416. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5417. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5418. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5419. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5420. ;;
  5421. openbsd*)
  5422. if test -f /usr/libexec/ld.so; then
  5423. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5424. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5425. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5426. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5427. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  5428. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5429. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5430. else
  5431. case $host_os in
  5432. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  5433. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5434. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5435. ;;
  5436. *)
  5437. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5438. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5439. ;;
  5440. esac
  5441. fi
  5442. else
  5443. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5444. fi
  5445. ;;
  5446. os2*)
  5447. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5448. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5449. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5450. _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  5451. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  5452. ;;
  5453. osf3*)
  5454. if test "$GCC" = yes; then
  5455. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5456. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5457. else
  5458. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5459. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5460. fi
  5461. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5462. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5463. ;;
  5464. osf4* | osf5*) # as osf3* with the addition of -msym flag
  5465. if test "$GCC" = yes; then
  5466. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5467. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5468. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5469. else
  5470. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5471. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5472. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  5473. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  5474. # Both c and cxx compiler support -rpath directly
  5475. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5476. fi
  5477. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5478. ;;
  5479. solaris*)
  5480. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  5481. if test "$GCC" = yes; then
  5482. wlarc='${wl}'
  5483. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5484. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5485. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  5486. else
  5487. wlarc=''
  5488. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5489. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5490. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  5491. fi
  5492. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5493. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5494. case $host_os in
  5495. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5496. *)
  5497. # The compiler driver will combine and reorder linker options,
  5498. # but understands `-z linker_flag'. GCC discards it without `$wl',
  5499. # but is careful enough not to reorder.
  5500. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5501. if test "$GCC" = yes; then
  5502. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5503. else
  5504. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5505. fi
  5506. ;;
  5507. esac
  5508. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5509. ;;
  5510. sunos4*)
  5511. if test "x$host_vendor" = xsequent; then
  5512. # Use $CC to link under sequent, because it throws in some extra .o
  5513. # files that make .init and .fini sections work.
  5514. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5515. else
  5516. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5517. fi
  5518. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5519. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5520. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5521. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5522. ;;
  5523. sysv4)
  5524. case $host_vendor in
  5525. sni)
  5526. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5527. _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5528. ;;
  5529. siemens)
  5530. ## LD is ld it makes a PLAMLIB
  5531. ## CC just makes a GrossModule.
  5532. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5533. _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5534. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5535. ;;
  5536. motorola)
  5537. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5538. _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5539. ;;
  5540. esac
  5541. runpath_var='LD_RUN_PATH'
  5542. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5543. ;;
  5544. sysv4.3*)
  5545. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5546. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5547. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5548. ;;
  5549. sysv4*MP*)
  5550. if test -d /usr/nec; then
  5551. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5552. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5553. runpath_var=LD_RUN_PATH
  5554. hardcode_runpath_var=yes
  5555. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5556. fi
  5557. ;;
  5558. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5559. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5560. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5561. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5562. runpath_var='LD_RUN_PATH'
  5563. if test "$GCC" = yes; then
  5564. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5565. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5566. else
  5567. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5568. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5569. fi
  5570. ;;
  5571. sysv5* | sco3.2v5* | sco5v6*)
  5572. # Note: We can NOT use -z defs as we might desire, because we do not
  5573. # link with -lc, and that would cause any symbols used from libc to
  5574. # always be unresolved, which means just about no library would
  5575. # ever link correctly. If we're not using GNU ld we use -z text
  5576. # though, which does catch some bad symbols but isn't as heavy-handed
  5577. # as -z defs.
  5578. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5579. _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5580. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5581. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5582. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  5583. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5584. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5585. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5586. runpath_var='LD_RUN_PATH'
  5587. if test "$GCC" = yes; then
  5588. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5589. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5590. else
  5591. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5592. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5593. fi
  5594. ;;
  5595. uts4*)
  5596. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5597. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5598. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5599. ;;
  5600. *)
  5601. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5602. ;;
  5603. esac
  5604. fi
  5605. ])
  5606. AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  5607. test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5608. #
  5609. # Do we need to explicitly link libc?
  5610. #
  5611. case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  5612. x|xyes)
  5613. # Assume -lc should be added
  5614. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5615. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5616. case $_LT_AC_TAGVAR(archive_cmds, $1) in
  5617. *'~'*)
  5618. # FIXME: we may have to deal with multi-command sequences.
  5619. ;;
  5620. '$CC '*)
  5621. # Test whether the compiler implicitly links with -lc since on some
  5622. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5623. # to ld, don't add -lc before -lgcc.
  5624. AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  5625. $rm conftest*
  5626. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5627. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5628. soname=conftest
  5629. lib=conftest
  5630. libobjs=conftest.$ac_objext
  5631. deplibs=
  5632. wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  5633. pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  5634. compiler_flags=-v
  5635. linker_flags=-v
  5636. verstring=
  5637. output_objdir=.
  5638. libname=conftest
  5639. lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  5640. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5641. if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  5642. then
  5643. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5644. else
  5645. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5646. fi
  5647. _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5648. else
  5649. cat conftest.err 1>&5
  5650. fi
  5651. $rm conftest*
  5652. AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  5653. ;;
  5654. esac
  5655. fi
  5656. ;;
  5657. esac
  5658. ])# AC_LIBTOOL_PROG_LD_SHLIBS
  5659. # _LT_AC_FILE_LTDLL_C
  5660. # -------------------
  5661. # Be careful that the start marker always follows a newline.
  5662. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  5663. # /* ltdll.c starts here */
  5664. # #define WIN32_LEAN_AND_MEAN
  5665. # #include <windows.h>
  5666. # #undef WIN32_LEAN_AND_MEAN
  5667. # #include <stdio.h>
  5668. #
  5669. # #ifndef __CYGWIN__
  5670. # # ifdef __CYGWIN32__
  5671. # # define __CYGWIN__ __CYGWIN32__
  5672. # # endif
  5673. # #endif
  5674. #
  5675. # #ifdef __cplusplus
  5676. # extern "C" {
  5677. # #endif
  5678. # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  5679. # #ifdef __cplusplus
  5680. # }
  5681. # #endif
  5682. #
  5683. # #ifdef __CYGWIN__
  5684. # #include <cygwin/cygwin_dll.h>
  5685. # DECLARE_CYGWIN_DLL( DllMain );
  5686. # #endif
  5687. # HINSTANCE __hDllInstance_base;
  5688. #
  5689. # BOOL APIENTRY
  5690. # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  5691. # {
  5692. # __hDllInstance_base = hInst;
  5693. # return TRUE;
  5694. # }
  5695. # /* ltdll.c ends here */
  5696. ])# _LT_AC_FILE_LTDLL_C
  5697. # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  5698. # ---------------------------------
  5699. AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  5700. # old names
  5701. AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  5702. AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  5703. AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  5704. AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  5705. AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  5706. AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  5707. AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  5708. # This is just to silence aclocal about the macro not being used
  5709. ifelse([AC_DISABLE_FAST_INSTALL])
  5710. ############################################################
  5711. # NOTE: This macro has been submitted for inclusion into #
  5712. # GNU Autoconf as AC_PROG_SED. When it is available in #
  5713. # a released version of Autoconf we should remove this #
  5714. # macro and use it instead. #
  5715. ############################################################
  5716. # LT_AC_PROG_SED
  5717. # --------------
  5718. # Check for a fully-functional sed program, that truncates
  5719. # as few characters as possible. Prefer GNU sed if found.
  5720. AC_DEFUN([LT_AC_PROG_SED],
  5721. [AC_MSG_CHECKING([for a sed that does not truncate output])
  5722. AC_CACHE_VAL(lt_cv_path_SED,
  5723. [# Loop through the user's path and test for sed and gsed.
  5724. # Then use that list of sed's as ones to test for truncation.
  5725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5726. for as_dir in $PATH
  5727. do
  5728. IFS=$as_save_IFS
  5729. test -z "$as_dir" && as_dir=.
  5730. for lt_ac_prog in sed gsed; do
  5731. for ac_exec_ext in '' $ac_executable_extensions; do
  5732. if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  5733. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  5734. fi
  5735. done
  5736. done
  5737. done
  5738. lt_ac_max=0
  5739. lt_ac_count=0
  5740. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  5741. # along with /bin/sed that truncates output.
  5742. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  5743. test ! -f $lt_ac_sed && continue
  5744. cat /dev/null > conftest.in
  5745. lt_ac_count=0
  5746. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  5747. # Check for GNU sed and select it if it is found.
  5748. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  5749. lt_cv_path_SED=$lt_ac_sed
  5750. break
  5751. fi
  5752. while true; do
  5753. cat conftest.in conftest.in >conftest.tmp
  5754. mv conftest.tmp conftest.in
  5755. cp conftest.in conftest.nl
  5756. echo >>conftest.nl
  5757. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  5758. cmp -s conftest.out conftest.nl || break
  5759. # 10000 chars as input seems more than enough
  5760. test $lt_ac_count -gt 10 && break
  5761. lt_ac_count=`expr $lt_ac_count + 1`
  5762. if test $lt_ac_count -gt $lt_ac_max; then
  5763. lt_ac_max=$lt_ac_count
  5764. lt_cv_path_SED=$lt_ac_sed
  5765. fi
  5766. done
  5767. done
  5768. ])
  5769. SED=$lt_cv_path_SED
  5770. AC_MSG_RESULT([$SED])
  5771. ])