aclocal.m4 276 KB

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