libtool.m4 258 KB

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