aclocal.m4 332 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436
  1. # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009 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. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
  14. [m4_warning([this file was generated for autoconf 2.68.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  18. # codeset.m4 serial 4 (gettext-0.18)
  19. dnl Copyright (C) 2000-2002, 2006, 2008-2010 Free Software Foundation, Inc.
  20. dnl This file is free software; the Free Software Foundation
  21. dnl gives unlimited permission to copy and/or distribute it,
  22. dnl with or without modifications, as long as this notice is preserved.
  23. dnl From Bruno Haible.
  24. AC_DEFUN([AM_LANGINFO_CODESET],
  25. [
  26. AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
  27. [AC_TRY_LINK([#include <langinfo.h>],
  28. [char* cs = nl_langinfo(CODESET); return !cs;],
  29. [am_cv_langinfo_codeset=yes],
  30. [am_cv_langinfo_codeset=no])
  31. ])
  32. if test $am_cv_langinfo_codeset = yes; then
  33. AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
  34. [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
  35. fi
  36. ])
  37. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  38. #
  39. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  40. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  41. # Inc.
  42. # Written by Gordon Matzigkeit, 1996
  43. #
  44. # This file is free software; the Free Software Foundation gives
  45. # unlimited permission to copy and/or distribute it, with or without
  46. # modifications, as long as this notice is preserved.
  47. m4_define([_LT_COPYING], [dnl
  48. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  49. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  50. # Inc.
  51. # Written by Gordon Matzigkeit, 1996
  52. #
  53. # This file is part of GNU Libtool.
  54. #
  55. # GNU Libtool is free software; you can redistribute it and/or
  56. # modify it under the terms of the GNU General Public License as
  57. # published by the Free Software Foundation; either version 2 of
  58. # the License, or (at your option) any later version.
  59. #
  60. # As a special exception to the GNU General Public License,
  61. # if you distribute this file as part of a program or library that
  62. # is built using GNU Libtool, you may include this file under the
  63. # same distribution terms that you use for the rest of that program.
  64. #
  65. # GNU Libtool is distributed in the hope that it will be useful,
  66. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  67. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  68. # GNU General Public License for more details.
  69. #
  70. # You should have received a copy of the GNU General Public License
  71. # along with GNU Libtool; see the file COPYING. If not, a copy
  72. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  73. # obtained by writing to the Free Software Foundation, Inc.,
  74. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  75. ])
  76. # serial 57 LT_INIT
  77. # LT_PREREQ(VERSION)
  78. # ------------------
  79. # Complain and exit if this libtool version is less that VERSION.
  80. m4_defun([LT_PREREQ],
  81. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  82. [m4_default([$3],
  83. [m4_fatal([Libtool version $1 or higher is required],
  84. 63)])],
  85. [$2])])
  86. # _LT_CHECK_BUILDDIR
  87. # ------------------
  88. # Complain if the absolute build directory name contains unusual characters
  89. m4_defun([_LT_CHECK_BUILDDIR],
  90. [case `pwd` in
  91. *\ * | *\ *)
  92. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  93. esac
  94. ])
  95. # LT_INIT([OPTIONS])
  96. # ------------------
  97. AC_DEFUN([LT_INIT],
  98. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  99. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  100. AC_BEFORE([$0], [LT_LANG])dnl
  101. AC_BEFORE([$0], [LT_OUTPUT])dnl
  102. AC_BEFORE([$0], [LTDL_INIT])dnl
  103. m4_require([_LT_CHECK_BUILDDIR])dnl
  104. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  105. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  106. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  107. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  108. dnl unless we require an AC_DEFUNed macro:
  109. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  110. AC_REQUIRE([LTSUGAR_VERSION])dnl
  111. AC_REQUIRE([LTVERSION_VERSION])dnl
  112. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  113. m4_require([_LT_PROG_LTMAIN])dnl
  114. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  115. dnl Parse OPTIONS
  116. _LT_SET_OPTIONS([$0], [$1])
  117. # This can be used to rebuild libtool when needed
  118. LIBTOOL_DEPS="$ltmain"
  119. # Always use our own libtool.
  120. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  121. AC_SUBST(LIBTOOL)dnl
  122. _LT_SETUP
  123. # Only expand once:
  124. m4_define([LT_INIT])
  125. ])# LT_INIT
  126. # Old names:
  127. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  128. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  129. dnl aclocal-1.4 backwards compatibility:
  130. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  131. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  132. # _LT_CC_BASENAME(CC)
  133. # -------------------
  134. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  135. m4_defun([_LT_CC_BASENAME],
  136. [for cc_temp in $1""; do
  137. case $cc_temp in
  138. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  139. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  140. \-*) ;;
  141. *) break;;
  142. esac
  143. done
  144. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  145. ])
  146. # _LT_FILEUTILS_DEFAULTS
  147. # ----------------------
  148. # It is okay to use these file commands and assume they have been set
  149. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  150. m4_defun([_LT_FILEUTILS_DEFAULTS],
  151. [: ${CP="cp -f"}
  152. : ${MV="mv -f"}
  153. : ${RM="rm -f"}
  154. ])# _LT_FILEUTILS_DEFAULTS
  155. # _LT_SETUP
  156. # ---------
  157. m4_defun([_LT_SETUP],
  158. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  159. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  160. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  161. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  162. _LT_DECL([], [host_alias], [0], [The host system])dnl
  163. _LT_DECL([], [host], [0])dnl
  164. _LT_DECL([], [host_os], [0])dnl
  165. dnl
  166. _LT_DECL([], [build_alias], [0], [The build system])dnl
  167. _LT_DECL([], [build], [0])dnl
  168. _LT_DECL([], [build_os], [0])dnl
  169. dnl
  170. AC_REQUIRE([AC_PROG_CC])dnl
  171. AC_REQUIRE([LT_PATH_LD])dnl
  172. AC_REQUIRE([LT_PATH_NM])dnl
  173. dnl
  174. AC_REQUIRE([AC_PROG_LN_S])dnl
  175. test -z "$LN_S" && LN_S="ln -s"
  176. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  177. dnl
  178. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  179. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  180. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  181. dnl
  182. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  183. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  184. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  185. m4_require([_LT_CMD_RELOAD])dnl
  186. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  187. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  188. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  189. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  190. m4_require([_LT_WITH_SYSROOT])dnl
  191. _LT_CONFIG_LIBTOOL_INIT([
  192. # See if we are running on zsh, and set the options which allow our
  193. # commands through without removal of \ escapes INIT.
  194. if test -n "\${ZSH_VERSION+set}" ; then
  195. setopt NO_GLOB_SUBST
  196. fi
  197. ])
  198. if test -n "${ZSH_VERSION+set}" ; then
  199. setopt NO_GLOB_SUBST
  200. fi
  201. _LT_CHECK_OBJDIR
  202. m4_require([_LT_TAG_COMPILER])dnl
  203. case $host_os in
  204. aix3*)
  205. # AIX sometimes has problems with the GCC collect2 program. For some
  206. # reason, if we set the COLLECT_NAMES environment variable, the problems
  207. # vanish in a puff of smoke.
  208. if test "X${COLLECT_NAMES+set}" != Xset; then
  209. COLLECT_NAMES=
  210. export COLLECT_NAMES
  211. fi
  212. ;;
  213. esac
  214. # Global variables:
  215. ofile=libtool
  216. can_build_shared=yes
  217. # All known linkers require a `.a' archive for static linking (except MSVC,
  218. # which needs '.lib').
  219. libext=a
  220. with_gnu_ld="$lt_cv_prog_gnu_ld"
  221. old_CC="$CC"
  222. old_CFLAGS="$CFLAGS"
  223. # Set sane defaults for various variables
  224. test -z "$CC" && CC=cc
  225. test -z "$LTCC" && LTCC=$CC
  226. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  227. test -z "$LD" && LD=ld
  228. test -z "$ac_objext" && ac_objext=o
  229. _LT_CC_BASENAME([$compiler])
  230. # Only perform the check for file, if the check method requires it
  231. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  232. case $deplibs_check_method in
  233. file_magic*)
  234. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  235. _LT_PATH_MAGIC
  236. fi
  237. ;;
  238. esac
  239. # Use C for the default configuration in the libtool script
  240. LT_SUPPORTED_TAG([CC])
  241. _LT_LANG_C_CONFIG
  242. _LT_LANG_DEFAULT_CONFIG
  243. _LT_CONFIG_COMMANDS
  244. ])# _LT_SETUP
  245. # _LT_PREPARE_SED_QUOTE_VARS
  246. # --------------------------
  247. # Define a few sed substitution that help us do robust quoting.
  248. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  249. [# Backslashify metacharacters that are still active within
  250. # double-quoted strings.
  251. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  252. # Same as above, but do not quote variable references.
  253. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  254. # Sed substitution to delay expansion of an escaped shell variable in a
  255. # double_quote_subst'ed string.
  256. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  257. # Sed substitution to delay expansion of an escaped single quote.
  258. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  259. # Sed substitution to avoid accidental globbing in evaled expressions
  260. no_glob_subst='s/\*/\\\*/g'
  261. ])
  262. # _LT_PROG_LTMAIN
  263. # ---------------
  264. # Note that this code is called both from `configure', and `config.status'
  265. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  266. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  267. # so we pass a copy along to make sure it has a sensible value anyway.
  268. m4_defun([_LT_PROG_LTMAIN],
  269. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  270. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  271. ltmain="$ac_aux_dir/ltmain.sh"
  272. ])# _LT_PROG_LTMAIN
  273. # So that we can recreate a full libtool script including additional
  274. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  275. # in macros and then make a single call at the end using the `libtool'
  276. # label.
  277. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  278. # ----------------------------------------
  279. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  280. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  281. [m4_ifval([$1],
  282. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  283. [$1
  284. ])])])
  285. # Initialize.
  286. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  287. # _LT_CONFIG_LIBTOOL([COMMANDS])
  288. # ------------------------------
  289. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  290. m4_define([_LT_CONFIG_LIBTOOL],
  291. [m4_ifval([$1],
  292. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  293. [$1
  294. ])])])
  295. # Initialize.
  296. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  297. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  298. # -----------------------------------------------------
  299. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  300. [_LT_CONFIG_LIBTOOL([$1])
  301. _LT_CONFIG_LIBTOOL_INIT([$2])
  302. ])
  303. # _LT_FORMAT_COMMENT([COMMENT])
  304. # -----------------------------
  305. # Add leading comment marks to the start of each line, and a trailing
  306. # full-stop to the whole comment if one is not present already.
  307. m4_define([_LT_FORMAT_COMMENT],
  308. [m4_ifval([$1], [
  309. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  310. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  311. )])
  312. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  313. # -------------------------------------------------------------------
  314. # CONFIGNAME is the name given to the value in the libtool script.
  315. # VARNAME is the (base) name used in the configure script.
  316. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  317. # VARNAME. Any other value will be used directly.
  318. m4_define([_LT_DECL],
  319. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  320. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  321. [m4_ifval([$1], [$1], [$2])])
  322. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  323. m4_ifval([$4],
  324. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  325. lt_dict_add_subkey([lt_decl_dict], [$2],
  326. [tagged?], [m4_ifval([$5], [yes], [no])])])
  327. ])
  328. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  329. # --------------------------------------------------------
  330. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  331. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  332. # ------------------------------------------------
  333. m4_define([lt_decl_tag_varnames],
  334. [_lt_decl_filter([tagged?], [yes], $@)])
  335. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  336. # ---------------------------------------------------------
  337. m4_define([_lt_decl_filter],
  338. [m4_case([$#],
  339. [0], [m4_fatal([$0: too few arguments: $#])],
  340. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  341. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  342. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  343. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  344. ])
  345. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  346. # --------------------------------------------------
  347. m4_define([lt_decl_quote_varnames],
  348. [_lt_decl_filter([value], [1], $@)])
  349. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  350. # ---------------------------------------------------
  351. m4_define([lt_decl_dquote_varnames],
  352. [_lt_decl_filter([value], [2], $@)])
  353. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  354. # ---------------------------------------------------
  355. m4_define([lt_decl_varnames_tagged],
  356. [m4_assert([$# <= 2])dnl
  357. _$0(m4_quote(m4_default([$1], [[, ]])),
  358. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  359. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  360. m4_define([_lt_decl_varnames_tagged],
  361. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  362. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  363. # ------------------------------------------------
  364. m4_define([lt_decl_all_varnames],
  365. [_$0(m4_quote(m4_default([$1], [[, ]])),
  366. m4_if([$2], [],
  367. m4_quote(lt_decl_varnames),
  368. m4_quote(m4_shift($@))))[]dnl
  369. ])
  370. m4_define([_lt_decl_all_varnames],
  371. [lt_join($@, lt_decl_varnames_tagged([$1],
  372. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  373. ])
  374. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  375. # ------------------------------------
  376. # Quote a variable value, and forward it to `config.status' so that its
  377. # declaration there will have the same value as in `configure'. VARNAME
  378. # must have a single quote delimited value for this to work.
  379. m4_define([_LT_CONFIG_STATUS_DECLARE],
  380. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  381. # _LT_CONFIG_STATUS_DECLARATIONS
  382. # ------------------------------
  383. # We delimit libtool config variables with single quotes, so when
  384. # we write them to config.status, we have to be sure to quote all
  385. # embedded single quotes properly. In configure, this macro expands
  386. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  387. #
  388. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  389. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  390. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  391. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  392. # _LT_LIBTOOL_TAGS
  393. # ----------------
  394. # Output comment and list of tags supported by the script
  395. m4_defun([_LT_LIBTOOL_TAGS],
  396. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  397. available_tags="_LT_TAGS"dnl
  398. ])
  399. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  400. # -----------------------------------
  401. # Extract the dictionary values for VARNAME (optionally with TAG) and
  402. # expand to a commented shell variable setting:
  403. #
  404. # # Some comment about what VAR is for.
  405. # visible_name=$lt_internal_name
  406. m4_define([_LT_LIBTOOL_DECLARE],
  407. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  408. [description])))[]dnl
  409. m4_pushdef([_libtool_name],
  410. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  411. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  412. [0], [_libtool_name=[$]$1],
  413. [1], [_libtool_name=$lt_[]$1],
  414. [2], [_libtool_name=$lt_[]$1],
  415. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  416. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  417. ])
  418. # _LT_LIBTOOL_CONFIG_VARS
  419. # -----------------------
  420. # Produce commented declarations of non-tagged libtool config variables
  421. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  422. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  423. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  424. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  425. [m4_foreach([_lt_var],
  426. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  427. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  428. # _LT_LIBTOOL_TAG_VARS(TAG)
  429. # -------------------------
  430. m4_define([_LT_LIBTOOL_TAG_VARS],
  431. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  432. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  433. # _LT_TAGVAR(VARNAME, [TAGNAME])
  434. # ------------------------------
  435. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  436. # _LT_CONFIG_COMMANDS
  437. # -------------------
  438. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  439. # variables for single and double quote escaping we saved from calls
  440. # to _LT_DECL, we can put quote escaped variables declarations
  441. # into `config.status', and then the shell code to quote escape them in
  442. # for loops in `config.status'. Finally, any additional code accumulated
  443. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  444. m4_defun([_LT_CONFIG_COMMANDS],
  445. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  446. dnl If the libtool generation code has been placed in $CONFIG_LT,
  447. dnl instead of duplicating it all over again into config.status,
  448. dnl then we will have config.status run $CONFIG_LT later, so it
  449. dnl needs to know what name is stored there:
  450. [AC_CONFIG_COMMANDS([libtool],
  451. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  452. dnl If the libtool generation code is destined for config.status,
  453. dnl expand the accumulated commands and init code now:
  454. [AC_CONFIG_COMMANDS([libtool],
  455. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  456. ])#_LT_CONFIG_COMMANDS
  457. # Initialize.
  458. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  459. [
  460. # The HP-UX ksh and POSIX shell print the target directory to stdout
  461. # if CDPATH is set.
  462. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  463. sed_quote_subst='$sed_quote_subst'
  464. double_quote_subst='$double_quote_subst'
  465. delay_variable_subst='$delay_variable_subst'
  466. _LT_CONFIG_STATUS_DECLARATIONS
  467. LTCC='$LTCC'
  468. LTCFLAGS='$LTCFLAGS'
  469. compiler='$compiler_DEFAULT'
  470. # A function that is used when there is no print builtin or printf.
  471. func_fallback_echo ()
  472. {
  473. eval 'cat <<_LTECHO_EOF
  474. \$[]1
  475. _LTECHO_EOF'
  476. }
  477. # Quote evaled strings.
  478. for var in lt_decl_all_varnames([[ \
  479. ]], lt_decl_quote_varnames); do
  480. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  481. *[[\\\\\\\`\\"\\\$]]*)
  482. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  483. ;;
  484. *)
  485. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  486. ;;
  487. esac
  488. done
  489. # Double-quote double-evaled strings.
  490. for var in lt_decl_all_varnames([[ \
  491. ]], lt_decl_dquote_varnames); do
  492. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  493. *[[\\\\\\\`\\"\\\$]]*)
  494. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  495. ;;
  496. *)
  497. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  498. ;;
  499. esac
  500. done
  501. _LT_OUTPUT_LIBTOOL_INIT
  502. ])
  503. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  504. # ------------------------------------
  505. # Generate a child script FILE with all initialization necessary to
  506. # reuse the environment learned by the parent script, and make the
  507. # file executable. If COMMENT is supplied, it is inserted after the
  508. # `#!' sequence but before initialization text begins. After this
  509. # macro, additional text can be appended to FILE to form the body of
  510. # the child script. The macro ends with non-zero status if the
  511. # file could not be fully written (such as if the disk is full).
  512. m4_ifdef([AS_INIT_GENERATED],
  513. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  514. [m4_defun([_LT_GENERATED_FILE_INIT],
  515. [m4_require([AS_PREPARE])]dnl
  516. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  517. [lt_write_fail=0
  518. cat >$1 <<_ASEOF || lt_write_fail=1
  519. #! $SHELL
  520. # Generated by $as_me.
  521. $2
  522. SHELL=\${CONFIG_SHELL-$SHELL}
  523. export SHELL
  524. _ASEOF
  525. cat >>$1 <<\_ASEOF || lt_write_fail=1
  526. AS_SHELL_SANITIZE
  527. _AS_PREPARE
  528. exec AS_MESSAGE_FD>&1
  529. _ASEOF
  530. test $lt_write_fail = 0 && chmod +x $1[]dnl
  531. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  532. # LT_OUTPUT
  533. # ---------
  534. # This macro allows early generation of the libtool script (before
  535. # AC_OUTPUT is called), incase it is used in configure for compilation
  536. # tests.
  537. AC_DEFUN([LT_OUTPUT],
  538. [: ${CONFIG_LT=./config.lt}
  539. AC_MSG_NOTICE([creating $CONFIG_LT])
  540. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  541. [# Run this file to recreate a libtool stub with the current configuration.])
  542. cat >>"$CONFIG_LT" <<\_LTEOF
  543. lt_cl_silent=false
  544. exec AS_MESSAGE_LOG_FD>>config.log
  545. {
  546. echo
  547. AS_BOX([Running $as_me.])
  548. } >&AS_MESSAGE_LOG_FD
  549. lt_cl_help="\
  550. \`$as_me' creates a local libtool stub from the current configuration,
  551. for use in further configure time tests before the real libtool is
  552. generated.
  553. Usage: $[0] [[OPTIONS]]
  554. -h, --help print this help, then exit
  555. -V, --version print version number, then exit
  556. -q, --quiet do not print progress messages
  557. -d, --debug don't remove temporary files
  558. Report bugs to <bug-libtool@gnu.org>."
  559. lt_cl_version="\
  560. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  561. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  562. configured by $[0], generated by m4_PACKAGE_STRING.
  563. Copyright (C) 2010 Free Software Foundation, Inc.
  564. This config.lt script is free software; the Free Software Foundation
  565. gives unlimited permision to copy, distribute and modify it."
  566. while test $[#] != 0
  567. do
  568. case $[1] in
  569. --version | --v* | -V )
  570. echo "$lt_cl_version"; exit 0 ;;
  571. --help | --h* | -h )
  572. echo "$lt_cl_help"; exit 0 ;;
  573. --debug | --d* | -d )
  574. debug=: ;;
  575. --quiet | --q* | --silent | --s* | -q )
  576. lt_cl_silent=: ;;
  577. -*) AC_MSG_ERROR([unrecognized option: $[1]
  578. Try \`$[0] --help' for more information.]) ;;
  579. *) AC_MSG_ERROR([unrecognized argument: $[1]
  580. Try \`$[0] --help' for more information.]) ;;
  581. esac
  582. shift
  583. done
  584. if $lt_cl_silent; then
  585. exec AS_MESSAGE_FD>/dev/null
  586. fi
  587. _LTEOF
  588. cat >>"$CONFIG_LT" <<_LTEOF
  589. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  590. _LTEOF
  591. cat >>"$CONFIG_LT" <<\_LTEOF
  592. AC_MSG_NOTICE([creating $ofile])
  593. _LT_OUTPUT_LIBTOOL_COMMANDS
  594. AS_EXIT(0)
  595. _LTEOF
  596. chmod +x "$CONFIG_LT"
  597. # configure is writing to config.log, but config.lt does its own redirection,
  598. # appending to config.log, which fails on DOS, as config.log is still kept
  599. # open by configure. Here we exec the FD to /dev/null, effectively closing
  600. # config.log, so it can be properly (re)opened and appended to by config.lt.
  601. lt_cl_success=:
  602. test "$silent" = yes &&
  603. lt_config_lt_args="$lt_config_lt_args --quiet"
  604. exec AS_MESSAGE_LOG_FD>/dev/null
  605. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  606. exec AS_MESSAGE_LOG_FD>>config.log
  607. $lt_cl_success || AS_EXIT(1)
  608. ])# LT_OUTPUT
  609. # _LT_CONFIG(TAG)
  610. # ---------------
  611. # If TAG is the built-in tag, create an initial libtool script with a
  612. # default configuration from the untagged config vars. Otherwise add code
  613. # to config.status for appending the configuration named by TAG from the
  614. # matching tagged config vars.
  615. m4_defun([_LT_CONFIG],
  616. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  617. _LT_CONFIG_SAVE_COMMANDS([
  618. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  619. m4_if(_LT_TAG, [C], [
  620. # See if we are running on zsh, and set the options which allow our
  621. # commands through without removal of \ escapes.
  622. if test -n "${ZSH_VERSION+set}" ; then
  623. setopt NO_GLOB_SUBST
  624. fi
  625. cfgfile="${ofile}T"
  626. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  627. $RM "$cfgfile"
  628. cat <<_LT_EOF >> "$cfgfile"
  629. #! $SHELL
  630. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  631. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  632. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  633. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  634. #
  635. _LT_COPYING
  636. _LT_LIBTOOL_TAGS
  637. # ### BEGIN LIBTOOL CONFIG
  638. _LT_LIBTOOL_CONFIG_VARS
  639. _LT_LIBTOOL_TAG_VARS
  640. # ### END LIBTOOL CONFIG
  641. _LT_EOF
  642. case $host_os in
  643. aix3*)
  644. cat <<\_LT_EOF >> "$cfgfile"
  645. # AIX sometimes has problems with the GCC collect2 program. For some
  646. # reason, if we set the COLLECT_NAMES environment variable, the problems
  647. # vanish in a puff of smoke.
  648. if test "X${COLLECT_NAMES+set}" != Xset; then
  649. COLLECT_NAMES=
  650. export COLLECT_NAMES
  651. fi
  652. _LT_EOF
  653. ;;
  654. esac
  655. _LT_PROG_LTMAIN
  656. # We use sed instead of cat because bash on DJGPP gets confused if
  657. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  658. # text mode, it properly converts lines to CR/LF. This bash problem
  659. # is reportedly fixed, but why not run on old versions too?
  660. sed '$q' "$ltmain" >> "$cfgfile" \
  661. || (rm -f "$cfgfile"; exit 1)
  662. _LT_PROG_REPLACE_SHELLFNS
  663. mv -f "$cfgfile" "$ofile" ||
  664. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  665. chmod +x "$ofile"
  666. ],
  667. [cat <<_LT_EOF >> "$ofile"
  668. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  669. dnl in a comment (ie after a #).
  670. # ### BEGIN LIBTOOL TAG CONFIG: $1
  671. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  672. # ### END LIBTOOL TAG CONFIG: $1
  673. _LT_EOF
  674. ])dnl /m4_if
  675. ],
  676. [m4_if([$1], [], [
  677. PACKAGE='$PACKAGE'
  678. VERSION='$VERSION'
  679. TIMESTAMP='$TIMESTAMP'
  680. RM='$RM'
  681. ofile='$ofile'], [])
  682. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  683. ])# _LT_CONFIG
  684. # LT_SUPPORTED_TAG(TAG)
  685. # ---------------------
  686. # Trace this macro to discover what tags are supported by the libtool
  687. # --tag option, using:
  688. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  689. AC_DEFUN([LT_SUPPORTED_TAG], [])
  690. # C support is built-in for now
  691. m4_define([_LT_LANG_C_enabled], [])
  692. m4_define([_LT_TAGS], [])
  693. # LT_LANG(LANG)
  694. # -------------
  695. # Enable libtool support for the given language if not already enabled.
  696. AC_DEFUN([LT_LANG],
  697. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  698. m4_case([$1],
  699. [C], [_LT_LANG(C)],
  700. [C++], [_LT_LANG(CXX)],
  701. [Java], [_LT_LANG(GCJ)],
  702. [Fortran 77], [_LT_LANG(F77)],
  703. [Fortran], [_LT_LANG(FC)],
  704. [Windows Resource], [_LT_LANG(RC)],
  705. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  706. [_LT_LANG($1)],
  707. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  708. ])# LT_LANG
  709. # _LT_LANG(LANGNAME)
  710. # ------------------
  711. m4_defun([_LT_LANG],
  712. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  713. [LT_SUPPORTED_TAG([$1])dnl
  714. m4_append([_LT_TAGS], [$1 ])dnl
  715. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  716. _LT_LANG_$1_CONFIG($1)])dnl
  717. ])# _LT_LANG
  718. # _LT_LANG_DEFAULT_CONFIG
  719. # -----------------------
  720. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  721. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  722. [LT_LANG(CXX)],
  723. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  724. AC_PROVIDE_IFELSE([AC_PROG_F77],
  725. [LT_LANG(F77)],
  726. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  727. AC_PROVIDE_IFELSE([AC_PROG_FC],
  728. [LT_LANG(FC)],
  729. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  730. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  731. dnl pulling things in needlessly.
  732. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  733. [LT_LANG(GCJ)],
  734. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  735. [LT_LANG(GCJ)],
  736. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  737. [LT_LANG(GCJ)],
  738. [m4_ifdef([AC_PROG_GCJ],
  739. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  740. m4_ifdef([A][M_PROG_GCJ],
  741. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  742. m4_ifdef([LT_PROG_GCJ],
  743. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  744. AC_PROVIDE_IFELSE([LT_PROG_RC],
  745. [LT_LANG(RC)],
  746. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  747. ])# _LT_LANG_DEFAULT_CONFIG
  748. # Obsolete macros:
  749. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  750. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  751. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  752. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  753. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  754. dnl aclocal-1.4 backwards compatibility:
  755. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  756. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  757. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  758. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  759. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  760. # _LT_TAG_COMPILER
  761. # ----------------
  762. m4_defun([_LT_TAG_COMPILER],
  763. [AC_REQUIRE([AC_PROG_CC])dnl
  764. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  765. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  766. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  767. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  768. # If no C compiler was specified, use CC.
  769. LTCC=${LTCC-"$CC"}
  770. # If no C compiler flags were specified, use CFLAGS.
  771. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  772. # Allow CC to be a program name with arguments.
  773. compiler=$CC
  774. ])# _LT_TAG_COMPILER
  775. # _LT_COMPILER_BOILERPLATE
  776. # ------------------------
  777. # Check for compiler boilerplate output or warnings with
  778. # the simple compiler test code.
  779. m4_defun([_LT_COMPILER_BOILERPLATE],
  780. [m4_require([_LT_DECL_SED])dnl
  781. ac_outfile=conftest.$ac_objext
  782. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  783. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  784. _lt_compiler_boilerplate=`cat conftest.err`
  785. $RM conftest*
  786. ])# _LT_COMPILER_BOILERPLATE
  787. # _LT_LINKER_BOILERPLATE
  788. # ----------------------
  789. # Check for linker boilerplate output or warnings with
  790. # the simple link test code.
  791. m4_defun([_LT_LINKER_BOILERPLATE],
  792. [m4_require([_LT_DECL_SED])dnl
  793. ac_outfile=conftest.$ac_objext
  794. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  795. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  796. _lt_linker_boilerplate=`cat conftest.err`
  797. $RM -r conftest*
  798. ])# _LT_LINKER_BOILERPLATE
  799. # _LT_REQUIRED_DARWIN_CHECKS
  800. # -------------------------
  801. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  802. case $host_os in
  803. rhapsody* | darwin*)
  804. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  805. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  806. AC_CHECK_TOOL([LIPO], [lipo], [:])
  807. AC_CHECK_TOOL([OTOOL], [otool], [:])
  808. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  809. _LT_DECL([], [DSYMUTIL], [1],
  810. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  811. _LT_DECL([], [NMEDIT], [1],
  812. [Tool to change global to local symbols on Mac OS X])
  813. _LT_DECL([], [LIPO], [1],
  814. [Tool to manipulate fat objects and archives on Mac OS X])
  815. _LT_DECL([], [OTOOL], [1],
  816. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  817. _LT_DECL([], [OTOOL64], [1],
  818. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  819. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  820. [lt_cv_apple_cc_single_mod=no
  821. if test -z "${LT_MULTI_MODULE}"; then
  822. # By default we will add the -single_module flag. You can override
  823. # by either setting the environment variable LT_MULTI_MODULE
  824. # non-empty at configure time, or by adding -multi_module to the
  825. # link flags.
  826. rm -rf libconftest.dylib*
  827. echo "int foo(void){return 1;}" > conftest.c
  828. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  829. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  830. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  831. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  832. _lt_result=$?
  833. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  834. lt_cv_apple_cc_single_mod=yes
  835. else
  836. cat conftest.err >&AS_MESSAGE_LOG_FD
  837. fi
  838. rm -rf libconftest.dylib*
  839. rm -f conftest.*
  840. fi])
  841. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  842. [lt_cv_ld_exported_symbols_list],
  843. [lt_cv_ld_exported_symbols_list=no
  844. save_LDFLAGS=$LDFLAGS
  845. echo "_main" > conftest.sym
  846. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  847. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  848. [lt_cv_ld_exported_symbols_list=yes],
  849. [lt_cv_ld_exported_symbols_list=no])
  850. LDFLAGS="$save_LDFLAGS"
  851. ])
  852. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  853. [lt_cv_ld_force_load=no
  854. cat > conftest.c << _LT_EOF
  855. int forced_loaded() { return 2;}
  856. _LT_EOF
  857. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  858. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  859. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  860. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  861. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  862. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  863. cat > conftest.c << _LT_EOF
  864. int main() { return 0;}
  865. _LT_EOF
  866. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  867. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  868. _lt_result=$?
  869. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  870. lt_cv_ld_force_load=yes
  871. else
  872. cat conftest.err >&AS_MESSAGE_LOG_FD
  873. fi
  874. rm -f conftest.err libconftest.a conftest conftest.c
  875. rm -rf conftest.dSYM
  876. ])
  877. case $host_os in
  878. rhapsody* | darwin1.[[012]])
  879. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  880. darwin1.*)
  881. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  882. darwin*) # darwin 5.x on
  883. # if running on 10.5 or later, the deployment target defaults
  884. # to the OS version, if on x86, and 10.4, the deployment
  885. # target defaults to 10.4. Don't you love it?
  886. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  887. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  888. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  889. 10.[[012]]*)
  890. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  891. 10.*)
  892. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  893. esac
  894. ;;
  895. esac
  896. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  897. _lt_dar_single_mod='$single_module'
  898. fi
  899. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  900. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  901. else
  902. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  903. fi
  904. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  905. _lt_dsymutil='~$DSYMUTIL $lib || :'
  906. else
  907. _lt_dsymutil=
  908. fi
  909. ;;
  910. esac
  911. ])
  912. # _LT_DARWIN_LINKER_FEATURES
  913. # --------------------------
  914. # Checks for linker and compiler features on darwin
  915. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  916. [
  917. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  918. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  919. _LT_TAGVAR(hardcode_direct, $1)=no
  920. _LT_TAGVAR(hardcode_automatic, $1)=yes
  921. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  922. if test "$lt_cv_ld_force_load" = "yes"; then
  923. _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  924. else
  925. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  926. fi
  927. _LT_TAGVAR(link_all_deplibs, $1)=yes
  928. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  929. case $cc_basename in
  930. ifort*) _lt_dar_can_shared=yes ;;
  931. *) _lt_dar_can_shared=$GCC ;;
  932. esac
  933. if test "$_lt_dar_can_shared" = "yes"; then
  934. output_verbose_link_cmd=func_echo_all
  935. _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}"
  936. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  937. _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}"
  938. _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}"
  939. m4_if([$1], [CXX],
  940. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  941. _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}"
  942. _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}"
  943. fi
  944. ],[])
  945. else
  946. _LT_TAGVAR(ld_shlibs, $1)=no
  947. fi
  948. ])
  949. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  950. # ----------------------------------
  951. # Links a minimal program and checks the executable
  952. # for the system default hardcoded library path. In most cases,
  953. # this is /usr/lib:/lib, but when the MPI compilers are used
  954. # the location of the communication and MPI libs are included too.
  955. # If we don't find anything, use the default library path according
  956. # to the aix ld manual.
  957. # Store the results from the different compilers for each TAGNAME.
  958. # Allow to override them for all tags through lt_cv_aix_libpath.
  959. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  960. [m4_require([_LT_DECL_SED])dnl
  961. if test "${lt_cv_aix_libpath+set}" = set; then
  962. aix_libpath=$lt_cv_aix_libpath
  963. else
  964. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  965. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  966. lt_aix_libpath_sed='[
  967. /Import File Strings/,/^$/ {
  968. /^0/ {
  969. s/^0 *\([^ ]*\) *$/\1/
  970. p
  971. }
  972. }]'
  973. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  974. # Check for a 64-bit object if we didn't find anything.
  975. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  976. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  977. fi],[])
  978. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  979. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  980. fi
  981. ])
  982. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  983. fi
  984. ])# _LT_SYS_MODULE_PATH_AIX
  985. # _LT_SHELL_INIT(ARG)
  986. # -------------------
  987. m4_define([_LT_SHELL_INIT],
  988. [m4_divert_text([M4SH-INIT], [$1
  989. ])])# _LT_SHELL_INIT
  990. # _LT_PROG_ECHO_BACKSLASH
  991. # -----------------------
  992. # Find how we can fake an echo command that does not interpret backslash.
  993. # In particular, with Autoconf 2.60 or later we add some code to the start
  994. # of the generated configure script which will find a shell with a builtin
  995. # printf (which we can use as an echo command).
  996. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  997. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  998. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  999. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1000. AC_MSG_CHECKING([how to print strings])
  1001. # Test print first, because it will be a builtin if present.
  1002. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1003. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1004. ECHO='print -r --'
  1005. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1006. ECHO='printf %s\n'
  1007. else
  1008. # Use this function as a fallback that always works.
  1009. func_fallback_echo ()
  1010. {
  1011. eval 'cat <<_LTECHO_EOF
  1012. $[]1
  1013. _LTECHO_EOF'
  1014. }
  1015. ECHO='func_fallback_echo'
  1016. fi
  1017. # func_echo_all arg...
  1018. # Invoke $ECHO with all args, space-separated.
  1019. func_echo_all ()
  1020. {
  1021. $ECHO "$*"
  1022. }
  1023. case "$ECHO" in
  1024. printf*) AC_MSG_RESULT([printf]) ;;
  1025. print*) AC_MSG_RESULT([print -r]) ;;
  1026. *) AC_MSG_RESULT([cat]) ;;
  1027. esac
  1028. m4_ifdef([_AS_DETECT_SUGGESTED],
  1029. [_AS_DETECT_SUGGESTED([
  1030. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1031. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1032. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1033. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1034. PATH=/empty FPATH=/empty; export PATH FPATH
  1035. test "X`printf %s $ECHO`" = "X$ECHO" \
  1036. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1037. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1038. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1039. ])# _LT_PROG_ECHO_BACKSLASH
  1040. # _LT_WITH_SYSROOT
  1041. # ----------------
  1042. AC_DEFUN([_LT_WITH_SYSROOT],
  1043. [AC_MSG_CHECKING([for sysroot])
  1044. AC_ARG_WITH([sysroot],
  1045. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1046. (or the compiler's sysroot if not specified).],
  1047. [], [with_sysroot=no])
  1048. dnl lt_sysroot will always be passed unquoted. We quote it here
  1049. dnl in case the user passed a directory name.
  1050. lt_sysroot=
  1051. case ${with_sysroot} in #(
  1052. yes)
  1053. if test "$GCC" = yes; then
  1054. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1055. fi
  1056. ;; #(
  1057. /*)
  1058. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1059. ;; #(
  1060. no|'')
  1061. ;; #(
  1062. *)
  1063. AC_MSG_RESULT([${with_sysroot}])
  1064. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1065. ;;
  1066. esac
  1067. AC_MSG_RESULT([${lt_sysroot:-no}])
  1068. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1069. [dependent libraries, and in which our libraries should be installed.])])
  1070. # _LT_ENABLE_LOCK
  1071. # ---------------
  1072. m4_defun([_LT_ENABLE_LOCK],
  1073. [AC_ARG_ENABLE([libtool-lock],
  1074. [AS_HELP_STRING([--disable-libtool-lock],
  1075. [avoid locking (might break parallel builds)])])
  1076. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1077. # Some flags need to be propagated to the compiler or linker for good
  1078. # libtool support.
  1079. case $host in
  1080. ia64-*-hpux*)
  1081. # Find out which ABI we are using.
  1082. echo 'int i;' > conftest.$ac_ext
  1083. if AC_TRY_EVAL(ac_compile); then
  1084. case `/usr/bin/file conftest.$ac_objext` in
  1085. *ELF-32*)
  1086. HPUX_IA64_MODE="32"
  1087. ;;
  1088. *ELF-64*)
  1089. HPUX_IA64_MODE="64"
  1090. ;;
  1091. esac
  1092. fi
  1093. rm -rf conftest*
  1094. ;;
  1095. *-*-irix6*)
  1096. # Find out which ABI we are using.
  1097. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1098. if AC_TRY_EVAL(ac_compile); then
  1099. if test "$lt_cv_prog_gnu_ld" = yes; then
  1100. case `/usr/bin/file conftest.$ac_objext` in
  1101. *32-bit*)
  1102. LD="${LD-ld} -melf32bsmip"
  1103. ;;
  1104. *N32*)
  1105. LD="${LD-ld} -melf32bmipn32"
  1106. ;;
  1107. *64-bit*)
  1108. LD="${LD-ld} -melf64bmip"
  1109. ;;
  1110. esac
  1111. else
  1112. case `/usr/bin/file conftest.$ac_objext` in
  1113. *32-bit*)
  1114. LD="${LD-ld} -32"
  1115. ;;
  1116. *N32*)
  1117. LD="${LD-ld} -n32"
  1118. ;;
  1119. *64-bit*)
  1120. LD="${LD-ld} -64"
  1121. ;;
  1122. esac
  1123. fi
  1124. fi
  1125. rm -rf conftest*
  1126. ;;
  1127. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1128. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1129. # Find out which ABI we are using.
  1130. echo 'int i;' > conftest.$ac_ext
  1131. if AC_TRY_EVAL(ac_compile); then
  1132. case `/usr/bin/file conftest.o` in
  1133. *32-bit*)
  1134. case $host in
  1135. x86_64-*kfreebsd*-gnu)
  1136. LD="${LD-ld} -m elf_i386_fbsd"
  1137. ;;
  1138. x86_64-*linux*)
  1139. LD="${LD-ld} -m elf_i386"
  1140. ;;
  1141. ppc64-*linux*|powerpc64-*linux*)
  1142. LD="${LD-ld} -m elf32ppclinux"
  1143. ;;
  1144. s390x-*linux*)
  1145. LD="${LD-ld} -m elf_s390"
  1146. ;;
  1147. sparc64-*linux*)
  1148. LD="${LD-ld} -m elf32_sparc"
  1149. ;;
  1150. esac
  1151. ;;
  1152. *64-bit*)
  1153. case $host in
  1154. x86_64-*kfreebsd*-gnu)
  1155. LD="${LD-ld} -m elf_x86_64_fbsd"
  1156. ;;
  1157. x86_64-*linux*)
  1158. LD="${LD-ld} -m elf_x86_64"
  1159. ;;
  1160. ppc*-*linux*|powerpc*-*linux*)
  1161. LD="${LD-ld} -m elf64ppc"
  1162. ;;
  1163. s390*-*linux*|s390*-*tpf*)
  1164. LD="${LD-ld} -m elf64_s390"
  1165. ;;
  1166. sparc*-*linux*)
  1167. LD="${LD-ld} -m elf64_sparc"
  1168. ;;
  1169. esac
  1170. ;;
  1171. esac
  1172. fi
  1173. rm -rf conftest*
  1174. ;;
  1175. *-*-sco3.2v5*)
  1176. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1177. SAVE_CFLAGS="$CFLAGS"
  1178. CFLAGS="$CFLAGS -belf"
  1179. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1180. [AC_LANG_PUSH(C)
  1181. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1182. AC_LANG_POP])
  1183. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1184. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1185. CFLAGS="$SAVE_CFLAGS"
  1186. fi
  1187. ;;
  1188. sparc*-*solaris*)
  1189. # Find out which ABI we are using.
  1190. echo 'int i;' > conftest.$ac_ext
  1191. if AC_TRY_EVAL(ac_compile); then
  1192. case `/usr/bin/file conftest.o` in
  1193. *64-bit*)
  1194. case $lt_cv_prog_gnu_ld in
  1195. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1196. *)
  1197. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1198. LD="${LD-ld} -64"
  1199. fi
  1200. ;;
  1201. esac
  1202. ;;
  1203. esac
  1204. fi
  1205. rm -rf conftest*
  1206. ;;
  1207. esac
  1208. need_locks="$enable_libtool_lock"
  1209. ])# _LT_ENABLE_LOCK
  1210. # _LT_PROG_AR
  1211. # -----------
  1212. m4_defun([_LT_PROG_AR],
  1213. [AC_CHECK_TOOLS(AR, [ar], false)
  1214. : ${AR=ar}
  1215. : ${AR_FLAGS=cru}
  1216. _LT_DECL([], [AR], [1], [The archiver])
  1217. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1218. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1219. [lt_cv_ar_at_file=no
  1220. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1221. [echo conftest.$ac_objext > conftest.lst
  1222. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1223. AC_TRY_EVAL([lt_ar_try])
  1224. if test "$ac_status" -eq 0; then
  1225. # Ensure the archiver fails upon bogus file names.
  1226. rm -f conftest.$ac_objext libconftest.a
  1227. AC_TRY_EVAL([lt_ar_try])
  1228. if test "$ac_status" -ne 0; then
  1229. lt_cv_ar_at_file=@
  1230. fi
  1231. fi
  1232. rm -f conftest.* libconftest.a
  1233. ])
  1234. ])
  1235. if test "x$lt_cv_ar_at_file" = xno; then
  1236. archiver_list_spec=
  1237. else
  1238. archiver_list_spec=$lt_cv_ar_at_file
  1239. fi
  1240. _LT_DECL([], [archiver_list_spec], [1],
  1241. [How to feed a file listing to the archiver])
  1242. ])# _LT_PROG_AR
  1243. # _LT_CMD_OLD_ARCHIVE
  1244. # -------------------
  1245. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1246. [_LT_PROG_AR
  1247. AC_CHECK_TOOL(STRIP, strip, :)
  1248. test -z "$STRIP" && STRIP=:
  1249. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1250. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1251. test -z "$RANLIB" && RANLIB=:
  1252. _LT_DECL([], [RANLIB], [1],
  1253. [Commands used to install an old-style archive])
  1254. # Determine commands to create old-style static archives.
  1255. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1256. old_postinstall_cmds='chmod 644 $oldlib'
  1257. old_postuninstall_cmds=
  1258. if test -n "$RANLIB"; then
  1259. case $host_os in
  1260. openbsd*)
  1261. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1262. ;;
  1263. *)
  1264. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1265. ;;
  1266. esac
  1267. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1268. fi
  1269. case $host_os in
  1270. darwin*)
  1271. lock_old_archive_extraction=yes ;;
  1272. *)
  1273. lock_old_archive_extraction=no ;;
  1274. esac
  1275. _LT_DECL([], [old_postinstall_cmds], [2])
  1276. _LT_DECL([], [old_postuninstall_cmds], [2])
  1277. _LT_TAGDECL([], [old_archive_cmds], [2],
  1278. [Commands used to build an old-style archive])
  1279. _LT_DECL([], [lock_old_archive_extraction], [0],
  1280. [Whether to use a lock for old archive extraction])
  1281. ])# _LT_CMD_OLD_ARCHIVE
  1282. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1283. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1284. # ----------------------------------------------------------------
  1285. # Check whether the given compiler option works
  1286. AC_DEFUN([_LT_COMPILER_OPTION],
  1287. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1288. m4_require([_LT_DECL_SED])dnl
  1289. AC_CACHE_CHECK([$1], [$2],
  1290. [$2=no
  1291. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1292. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1293. lt_compiler_flag="$3"
  1294. # Insert the option either (1) after the last *FLAGS variable, or
  1295. # (2) before a word containing "conftest.", or (3) at the end.
  1296. # Note that $ac_compile itself does not contain backslashes and begins
  1297. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1298. # The option is referenced via a variable to avoid confusing sed.
  1299. lt_compile=`echo "$ac_compile" | $SED \
  1300. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1301. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1302. -e 's:$: $lt_compiler_flag:'`
  1303. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1304. (eval "$lt_compile" 2>conftest.err)
  1305. ac_status=$?
  1306. cat conftest.err >&AS_MESSAGE_LOG_FD
  1307. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1308. if (exit $ac_status) && test -s "$ac_outfile"; then
  1309. # The compiler can only warn and ignore the option if not recognized
  1310. # So say no if there are warnings other than the usual output.
  1311. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1312. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1313. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1314. $2=yes
  1315. fi
  1316. fi
  1317. $RM conftest*
  1318. ])
  1319. if test x"[$]$2" = xyes; then
  1320. m4_if([$5], , :, [$5])
  1321. else
  1322. m4_if([$6], , :, [$6])
  1323. fi
  1324. ])# _LT_COMPILER_OPTION
  1325. # Old name:
  1326. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1327. dnl aclocal-1.4 backwards compatibility:
  1328. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1329. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1330. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1331. # ----------------------------------------------------
  1332. # Check whether the given linker option works
  1333. AC_DEFUN([_LT_LINKER_OPTION],
  1334. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1335. m4_require([_LT_DECL_SED])dnl
  1336. AC_CACHE_CHECK([$1], [$2],
  1337. [$2=no
  1338. save_LDFLAGS="$LDFLAGS"
  1339. LDFLAGS="$LDFLAGS $3"
  1340. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1341. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1342. # The linker can only warn and ignore the option if not recognized
  1343. # So say no if there are warnings
  1344. if test -s conftest.err; then
  1345. # Append any errors to the config.log.
  1346. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1347. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1348. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1349. if diff conftest.exp conftest.er2 >/dev/null; then
  1350. $2=yes
  1351. fi
  1352. else
  1353. $2=yes
  1354. fi
  1355. fi
  1356. $RM -r conftest*
  1357. LDFLAGS="$save_LDFLAGS"
  1358. ])
  1359. if test x"[$]$2" = xyes; then
  1360. m4_if([$4], , :, [$4])
  1361. else
  1362. m4_if([$5], , :, [$5])
  1363. fi
  1364. ])# _LT_LINKER_OPTION
  1365. # Old name:
  1366. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1367. dnl aclocal-1.4 backwards compatibility:
  1368. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1369. # LT_CMD_MAX_LEN
  1370. #---------------
  1371. AC_DEFUN([LT_CMD_MAX_LEN],
  1372. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1373. # find the maximum length of command line arguments
  1374. AC_MSG_CHECKING([the maximum length of command line arguments])
  1375. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1376. i=0
  1377. teststring="ABCD"
  1378. case $build_os in
  1379. msdosdjgpp*)
  1380. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1381. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1382. # during glob expansion). Even if it were fixed, the result of this
  1383. # check would be larger than it should be.
  1384. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1385. ;;
  1386. gnu*)
  1387. # Under GNU Hurd, this test is not required because there is
  1388. # no limit to the length of command line arguments.
  1389. # Libtool will interpret -1 as no limit whatsoever
  1390. lt_cv_sys_max_cmd_len=-1;
  1391. ;;
  1392. cygwin* | mingw* | cegcc*)
  1393. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1394. # about 5 minutes as the teststring grows exponentially.
  1395. # Worse, since 9x/ME are not pre-emptively multitasking,
  1396. # you end up with a "frozen" computer, even though with patience
  1397. # the test eventually succeeds (with a max line length of 256k).
  1398. # Instead, let's just punt: use the minimum linelength reported by
  1399. # all of the supported platforms: 8192 (on NT/2K/XP).
  1400. lt_cv_sys_max_cmd_len=8192;
  1401. ;;
  1402. mint*)
  1403. # On MiNT this can take a long time and run out of memory.
  1404. lt_cv_sys_max_cmd_len=8192;
  1405. ;;
  1406. amigaos*)
  1407. # On AmigaOS with pdksh, this test takes hours, literally.
  1408. # So we just punt and use a minimum line length of 8192.
  1409. lt_cv_sys_max_cmd_len=8192;
  1410. ;;
  1411. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1412. # This has been around since 386BSD, at least. Likely further.
  1413. if test -x /sbin/sysctl; then
  1414. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1415. elif test -x /usr/sbin/sysctl; then
  1416. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1417. else
  1418. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1419. fi
  1420. # And add a safety zone
  1421. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1422. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1423. ;;
  1424. interix*)
  1425. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1426. lt_cv_sys_max_cmd_len=196608
  1427. ;;
  1428. osf*)
  1429. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1430. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1431. # nice to cause kernel panics so lets avoid the loop below.
  1432. # First set a reasonable default.
  1433. lt_cv_sys_max_cmd_len=16384
  1434. #
  1435. if test -x /sbin/sysconfig; then
  1436. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1437. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1438. esac
  1439. fi
  1440. ;;
  1441. sco3.2v5*)
  1442. lt_cv_sys_max_cmd_len=102400
  1443. ;;
  1444. sysv5* | sco5v6* | sysv4.2uw2*)
  1445. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1446. if test -n "$kargmax"; then
  1447. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1448. else
  1449. lt_cv_sys_max_cmd_len=32768
  1450. fi
  1451. ;;
  1452. *)
  1453. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1454. if test -n "$lt_cv_sys_max_cmd_len"; then
  1455. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1456. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1457. else
  1458. # Make teststring a little bigger before we do anything with it.
  1459. # a 1K string should be a reasonable start.
  1460. for i in 1 2 3 4 5 6 7 8 ; do
  1461. teststring=$teststring$teststring
  1462. done
  1463. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1464. # If test is not a shell built-in, we'll probably end up computing a
  1465. # maximum length that is only half of the actual maximum length, but
  1466. # we can't tell.
  1467. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  1468. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1469. test $i != 17 # 1/2 MB should be enough
  1470. do
  1471. i=`expr $i + 1`
  1472. teststring=$teststring$teststring
  1473. done
  1474. # Only check the string length outside the loop.
  1475. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1476. teststring=
  1477. # Add a significant safety factor because C++ compilers can tack on
  1478. # massive amounts of additional arguments before passing them to the
  1479. # linker. It appears as though 1/2 is a usable value.
  1480. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1481. fi
  1482. ;;
  1483. esac
  1484. ])
  1485. if test -n $lt_cv_sys_max_cmd_len ; then
  1486. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1487. else
  1488. AC_MSG_RESULT(none)
  1489. fi
  1490. max_cmd_len=$lt_cv_sys_max_cmd_len
  1491. _LT_DECL([], [max_cmd_len], [0],
  1492. [What is the maximum length of a command?])
  1493. ])# LT_CMD_MAX_LEN
  1494. # Old name:
  1495. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1496. dnl aclocal-1.4 backwards compatibility:
  1497. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1498. # _LT_HEADER_DLFCN
  1499. # ----------------
  1500. m4_defun([_LT_HEADER_DLFCN],
  1501. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1502. ])# _LT_HEADER_DLFCN
  1503. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1504. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1505. # ----------------------------------------------------------------
  1506. m4_defun([_LT_TRY_DLOPEN_SELF],
  1507. [m4_require([_LT_HEADER_DLFCN])dnl
  1508. if test "$cross_compiling" = yes; then :
  1509. [$4]
  1510. else
  1511. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1512. lt_status=$lt_dlunknown
  1513. cat > conftest.$ac_ext <<_LT_EOF
  1514. [#line $LINENO "configure"
  1515. #include "confdefs.h"
  1516. #if HAVE_DLFCN_H
  1517. #include <dlfcn.h>
  1518. #endif
  1519. #include <stdio.h>
  1520. #ifdef RTLD_GLOBAL
  1521. # define LT_DLGLOBAL RTLD_GLOBAL
  1522. #else
  1523. # ifdef DL_GLOBAL
  1524. # define LT_DLGLOBAL DL_GLOBAL
  1525. # else
  1526. # define LT_DLGLOBAL 0
  1527. # endif
  1528. #endif
  1529. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1530. find out it does not work in some platform. */
  1531. #ifndef LT_DLLAZY_OR_NOW
  1532. # ifdef RTLD_LAZY
  1533. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1534. # else
  1535. # ifdef DL_LAZY
  1536. # define LT_DLLAZY_OR_NOW DL_LAZY
  1537. # else
  1538. # ifdef RTLD_NOW
  1539. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1540. # else
  1541. # ifdef DL_NOW
  1542. # define LT_DLLAZY_OR_NOW DL_NOW
  1543. # else
  1544. # define LT_DLLAZY_OR_NOW 0
  1545. # endif
  1546. # endif
  1547. # endif
  1548. # endif
  1549. #endif
  1550. /* When -fvisbility=hidden is used, assume the code has been annotated
  1551. correspondingly for the symbols needed. */
  1552. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1553. int fnord () __attribute__((visibility("default")));
  1554. #endif
  1555. int fnord () { return 42; }
  1556. int main ()
  1557. {
  1558. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1559. int status = $lt_dlunknown;
  1560. if (self)
  1561. {
  1562. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1563. else
  1564. {
  1565. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1566. else puts (dlerror ());
  1567. }
  1568. /* dlclose (self); */
  1569. }
  1570. else
  1571. puts (dlerror ());
  1572. return status;
  1573. }]
  1574. _LT_EOF
  1575. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1576. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1577. lt_status=$?
  1578. case x$lt_status in
  1579. x$lt_dlno_uscore) $1 ;;
  1580. x$lt_dlneed_uscore) $2 ;;
  1581. x$lt_dlunknown|x*) $3 ;;
  1582. esac
  1583. else :
  1584. # compilation failed
  1585. $3
  1586. fi
  1587. fi
  1588. rm -fr conftest*
  1589. ])# _LT_TRY_DLOPEN_SELF
  1590. # LT_SYS_DLOPEN_SELF
  1591. # ------------------
  1592. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1593. [m4_require([_LT_HEADER_DLFCN])dnl
  1594. if test "x$enable_dlopen" != xyes; then
  1595. enable_dlopen=unknown
  1596. enable_dlopen_self=unknown
  1597. enable_dlopen_self_static=unknown
  1598. else
  1599. lt_cv_dlopen=no
  1600. lt_cv_dlopen_libs=
  1601. case $host_os in
  1602. beos*)
  1603. lt_cv_dlopen="load_add_on"
  1604. lt_cv_dlopen_libs=
  1605. lt_cv_dlopen_self=yes
  1606. ;;
  1607. mingw* | pw32* | cegcc*)
  1608. lt_cv_dlopen="LoadLibrary"
  1609. lt_cv_dlopen_libs=
  1610. ;;
  1611. cygwin*)
  1612. lt_cv_dlopen="dlopen"
  1613. lt_cv_dlopen_libs=
  1614. ;;
  1615. darwin*)
  1616. # if libdl is installed we need to link against it
  1617. AC_CHECK_LIB([dl], [dlopen],
  1618. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1619. lt_cv_dlopen="dyld"
  1620. lt_cv_dlopen_libs=
  1621. lt_cv_dlopen_self=yes
  1622. ])
  1623. ;;
  1624. *)
  1625. AC_CHECK_FUNC([shl_load],
  1626. [lt_cv_dlopen="shl_load"],
  1627. [AC_CHECK_LIB([dld], [shl_load],
  1628. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1629. [AC_CHECK_FUNC([dlopen],
  1630. [lt_cv_dlopen="dlopen"],
  1631. [AC_CHECK_LIB([dl], [dlopen],
  1632. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1633. [AC_CHECK_LIB([svld], [dlopen],
  1634. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1635. [AC_CHECK_LIB([dld], [dld_link],
  1636. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1637. ])
  1638. ])
  1639. ])
  1640. ])
  1641. ])
  1642. ;;
  1643. esac
  1644. if test "x$lt_cv_dlopen" != xno; then
  1645. enable_dlopen=yes
  1646. else
  1647. enable_dlopen=no
  1648. fi
  1649. case $lt_cv_dlopen in
  1650. dlopen)
  1651. save_CPPFLAGS="$CPPFLAGS"
  1652. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1653. save_LDFLAGS="$LDFLAGS"
  1654. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1655. save_LIBS="$LIBS"
  1656. LIBS="$lt_cv_dlopen_libs $LIBS"
  1657. AC_CACHE_CHECK([whether a program can dlopen itself],
  1658. lt_cv_dlopen_self, [dnl
  1659. _LT_TRY_DLOPEN_SELF(
  1660. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1661. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1662. ])
  1663. if test "x$lt_cv_dlopen_self" = xyes; then
  1664. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1665. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1666. lt_cv_dlopen_self_static, [dnl
  1667. _LT_TRY_DLOPEN_SELF(
  1668. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1669. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1670. ])
  1671. fi
  1672. CPPFLAGS="$save_CPPFLAGS"
  1673. LDFLAGS="$save_LDFLAGS"
  1674. LIBS="$save_LIBS"
  1675. ;;
  1676. esac
  1677. case $lt_cv_dlopen_self in
  1678. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1679. *) enable_dlopen_self=unknown ;;
  1680. esac
  1681. case $lt_cv_dlopen_self_static in
  1682. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1683. *) enable_dlopen_self_static=unknown ;;
  1684. esac
  1685. fi
  1686. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1687. [Whether dlopen is supported])
  1688. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1689. [Whether dlopen of programs is supported])
  1690. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1691. [Whether dlopen of statically linked programs is supported])
  1692. ])# LT_SYS_DLOPEN_SELF
  1693. # Old name:
  1694. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1695. dnl aclocal-1.4 backwards compatibility:
  1696. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1697. # _LT_COMPILER_C_O([TAGNAME])
  1698. # ---------------------------
  1699. # Check to see if options -c and -o are simultaneously supported by compiler.
  1700. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1701. m4_defun([_LT_COMPILER_C_O],
  1702. [m4_require([_LT_DECL_SED])dnl
  1703. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1704. m4_require([_LT_TAG_COMPILER])dnl
  1705. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1706. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1707. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1708. $RM -r conftest 2>/dev/null
  1709. mkdir conftest
  1710. cd conftest
  1711. mkdir out
  1712. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1713. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1714. # Insert the option either (1) after the last *FLAGS variable, or
  1715. # (2) before a word containing "conftest.", or (3) at the end.
  1716. # Note that $ac_compile itself does not contain backslashes and begins
  1717. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1718. lt_compile=`echo "$ac_compile" | $SED \
  1719. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1720. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1721. -e 's:$: $lt_compiler_flag:'`
  1722. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1723. (eval "$lt_compile" 2>out/conftest.err)
  1724. ac_status=$?
  1725. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1726. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1727. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1728. then
  1729. # The compiler can only warn and ignore the option if not recognized
  1730. # So say no if there are warnings
  1731. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1732. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1733. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1734. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1735. fi
  1736. fi
  1737. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1738. $RM conftest*
  1739. # SGI C++ compiler will create directory out/ii_files/ for
  1740. # template instantiation
  1741. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1742. $RM out/* && rmdir out
  1743. cd ..
  1744. $RM -r conftest
  1745. $RM conftest*
  1746. ])
  1747. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1748. [Does compiler simultaneously support -c and -o options?])
  1749. ])# _LT_COMPILER_C_O
  1750. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1751. # ----------------------------------
  1752. # Check to see if we can do hard links to lock some files if needed
  1753. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1754. [m4_require([_LT_ENABLE_LOCK])dnl
  1755. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1756. _LT_COMPILER_C_O([$1])
  1757. hard_links="nottested"
  1758. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1759. # do not overwrite the value of need_locks provided by the user
  1760. AC_MSG_CHECKING([if we can lock with hard links])
  1761. hard_links=yes
  1762. $RM conftest*
  1763. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1764. touch conftest.a
  1765. ln conftest.a conftest.b 2>&5 || hard_links=no
  1766. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1767. AC_MSG_RESULT([$hard_links])
  1768. if test "$hard_links" = no; then
  1769. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1770. need_locks=warn
  1771. fi
  1772. else
  1773. need_locks=no
  1774. fi
  1775. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1776. ])# _LT_COMPILER_FILE_LOCKS
  1777. # _LT_CHECK_OBJDIR
  1778. # ----------------
  1779. m4_defun([_LT_CHECK_OBJDIR],
  1780. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1781. [rm -f .libs 2>/dev/null
  1782. mkdir .libs 2>/dev/null
  1783. if test -d .libs; then
  1784. lt_cv_objdir=.libs
  1785. else
  1786. # MS-DOS does not allow filenames that begin with a dot.
  1787. lt_cv_objdir=_libs
  1788. fi
  1789. rmdir .libs 2>/dev/null])
  1790. objdir=$lt_cv_objdir
  1791. _LT_DECL([], [objdir], [0],
  1792. [The name of the directory that contains temporary libtool files])dnl
  1793. m4_pattern_allow([LT_OBJDIR])dnl
  1794. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1795. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1796. ])# _LT_CHECK_OBJDIR
  1797. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1798. # --------------------------------------
  1799. # Check hardcoding attributes.
  1800. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1801. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1802. _LT_TAGVAR(hardcode_action, $1)=
  1803. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1804. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1805. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1806. # We can hardcode non-existent directories.
  1807. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1808. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1809. # have to relink, otherwise we might link with an installed library
  1810. # when we should be linking with a yet-to-be-installed one
  1811. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1812. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1813. # Linking always hardcodes the temporary library directory.
  1814. _LT_TAGVAR(hardcode_action, $1)=relink
  1815. else
  1816. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1817. _LT_TAGVAR(hardcode_action, $1)=immediate
  1818. fi
  1819. else
  1820. # We cannot hardcode anything, or else we can only hardcode existing
  1821. # directories.
  1822. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1823. fi
  1824. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1825. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1826. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1827. # Fast installation is not supported
  1828. enable_fast_install=no
  1829. elif test "$shlibpath_overrides_runpath" = yes ||
  1830. test "$enable_shared" = no; then
  1831. # Fast installation is not necessary
  1832. enable_fast_install=needless
  1833. fi
  1834. _LT_TAGDECL([], [hardcode_action], [0],
  1835. [How to hardcode a shared library path into an executable])
  1836. ])# _LT_LINKER_HARDCODE_LIBPATH
  1837. # _LT_CMD_STRIPLIB
  1838. # ----------------
  1839. m4_defun([_LT_CMD_STRIPLIB],
  1840. [m4_require([_LT_DECL_EGREP])
  1841. striplib=
  1842. old_striplib=
  1843. AC_MSG_CHECKING([whether stripping libraries is possible])
  1844. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1845. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1846. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1847. AC_MSG_RESULT([yes])
  1848. else
  1849. # FIXME - insert some real tests, host_os isn't really good enough
  1850. case $host_os in
  1851. darwin*)
  1852. if test -n "$STRIP" ; then
  1853. striplib="$STRIP -x"
  1854. old_striplib="$STRIP -S"
  1855. AC_MSG_RESULT([yes])
  1856. else
  1857. AC_MSG_RESULT([no])
  1858. fi
  1859. ;;
  1860. *)
  1861. AC_MSG_RESULT([no])
  1862. ;;
  1863. esac
  1864. fi
  1865. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1866. _LT_DECL([], [striplib], [1])
  1867. ])# _LT_CMD_STRIPLIB
  1868. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1869. # -----------------------------
  1870. # PORTME Fill in your ld.so characteristics
  1871. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1872. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1873. m4_require([_LT_DECL_EGREP])dnl
  1874. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1875. m4_require([_LT_DECL_OBJDUMP])dnl
  1876. m4_require([_LT_DECL_SED])dnl
  1877. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1878. AC_MSG_CHECKING([dynamic linker characteristics])
  1879. m4_if([$1],
  1880. [], [
  1881. if test "$GCC" = yes; then
  1882. case $host_os in
  1883. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1884. *) lt_awk_arg="/^libraries:/" ;;
  1885. esac
  1886. case $host_os in
  1887. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1888. *) lt_sed_strip_eq="s,=/,/,g" ;;
  1889. esac
  1890. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1891. case $lt_search_path_spec in
  1892. *\;*)
  1893. # if the path contains ";" then we assume it to be the separator
  1894. # otherwise default to the standard path separator (i.e. ":") - it is
  1895. # assumed that no part of a normal pathname contains ";" but that should
  1896. # okay in the real world where ";" in dirpaths is itself problematic.
  1897. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1898. ;;
  1899. *)
  1900. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1901. ;;
  1902. esac
  1903. # Ok, now we have the path, separated by spaces, we can step through it
  1904. # and add multilib dir if necessary.
  1905. lt_tmp_lt_search_path_spec=
  1906. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1907. for lt_sys_path in $lt_search_path_spec; do
  1908. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1909. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1910. else
  1911. test -d "$lt_sys_path" && \
  1912. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1913. fi
  1914. done
  1915. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1916. BEGIN {RS=" "; FS="/|\n";} {
  1917. lt_foo="";
  1918. lt_count=0;
  1919. for (lt_i = NF; lt_i > 0; lt_i--) {
  1920. if ($lt_i != "" && $lt_i != ".") {
  1921. if ($lt_i == "..") {
  1922. lt_count++;
  1923. } else {
  1924. if (lt_count == 0) {
  1925. lt_foo="/" $lt_i lt_foo;
  1926. } else {
  1927. lt_count--;
  1928. }
  1929. }
  1930. }
  1931. }
  1932. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1933. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1934. }'`
  1935. # AWK program above erroneously prepends '/' to C:/dos/paths
  1936. # for these hosts.
  1937. case $host_os in
  1938. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1939. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1940. esac
  1941. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1942. else
  1943. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1944. fi])
  1945. library_names_spec=
  1946. libname_spec='lib$name'
  1947. soname_spec=
  1948. shrext_cmds=".so"
  1949. postinstall_cmds=
  1950. postuninstall_cmds=
  1951. finish_cmds=
  1952. finish_eval=
  1953. shlibpath_var=
  1954. shlibpath_overrides_runpath=unknown
  1955. version_type=none
  1956. dynamic_linker="$host_os ld.so"
  1957. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1958. need_lib_prefix=unknown
  1959. hardcode_into_libs=no
  1960. # when you set need_version to no, make sure it does not cause -set_version
  1961. # flags to be left without arguments
  1962. need_version=unknown
  1963. case $host_os in
  1964. aix3*)
  1965. version_type=linux
  1966. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1967. shlibpath_var=LIBPATH
  1968. # AIX 3 has no versioning support, so we append a major version to the name.
  1969. soname_spec='${libname}${release}${shared_ext}$major'
  1970. ;;
  1971. aix[[4-9]]*)
  1972. version_type=linux
  1973. need_lib_prefix=no
  1974. need_version=no
  1975. hardcode_into_libs=yes
  1976. if test "$host_cpu" = ia64; then
  1977. # AIX 5 supports IA64
  1978. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1979. shlibpath_var=LD_LIBRARY_PATH
  1980. else
  1981. # With GCC up to 2.95.x, collect2 would create an import file
  1982. # for dependence libraries. The import file would start with
  1983. # the line `#! .'. This would cause the generated library to
  1984. # depend on `.', always an invalid library. This was fixed in
  1985. # development snapshots of GCC prior to 3.0.
  1986. case $host_os in
  1987. aix4 | aix4.[[01]] | aix4.[[01]].*)
  1988. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1989. echo ' yes '
  1990. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  1991. :
  1992. else
  1993. can_build_shared=no
  1994. fi
  1995. ;;
  1996. esac
  1997. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1998. # soname into executable. Probably we can add versioning support to
  1999. # collect2, so additional links can be useful in future.
  2000. if test "$aix_use_runtimelinking" = yes; then
  2001. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2002. # instead of lib<name>.a to let people know that these are not
  2003. # typical AIX shared libraries.
  2004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2005. else
  2006. # We preserve .a as extension for shared libraries through AIX4.2
  2007. # and later when we are not doing run time linking.
  2008. library_names_spec='${libname}${release}.a $libname.a'
  2009. soname_spec='${libname}${release}${shared_ext}$major'
  2010. fi
  2011. shlibpath_var=LIBPATH
  2012. fi
  2013. ;;
  2014. amigaos*)
  2015. case $host_cpu in
  2016. powerpc)
  2017. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2018. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2020. ;;
  2021. m68k)
  2022. library_names_spec='$libname.ixlibrary $libname.a'
  2023. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2024. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  2025. ;;
  2026. esac
  2027. ;;
  2028. beos*)
  2029. library_names_spec='${libname}${shared_ext}'
  2030. dynamic_linker="$host_os ld.so"
  2031. shlibpath_var=LIBRARY_PATH
  2032. ;;
  2033. bsdi[[45]]*)
  2034. version_type=linux
  2035. need_version=no
  2036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2037. soname_spec='${libname}${release}${shared_ext}$major'
  2038. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2039. shlibpath_var=LD_LIBRARY_PATH
  2040. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2041. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2042. # the default ld.so.conf also contains /usr/contrib/lib and
  2043. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2044. # libtool to hard-code these into programs
  2045. ;;
  2046. cygwin* | mingw* | pw32* | cegcc*)
  2047. version_type=windows
  2048. shrext_cmds=".dll"
  2049. need_version=no
  2050. need_lib_prefix=no
  2051. case $GCC,$cc_basename in
  2052. yes,*)
  2053. # gcc
  2054. library_names_spec='$libname.dll.a'
  2055. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2056. postinstall_cmds='base_file=`basename \${file}`~
  2057. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2058. dldir=$destdir/`dirname \$dlpath`~
  2059. test -d \$dldir || mkdir -p \$dldir~
  2060. $install_prog $dir/$dlname \$dldir/$dlname~
  2061. chmod a+x \$dldir/$dlname~
  2062. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2063. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2064. fi'
  2065. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2066. dlpath=$dir/\$dldll~
  2067. $RM \$dlpath'
  2068. shlibpath_overrides_runpath=yes
  2069. case $host_os in
  2070. cygwin*)
  2071. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2072. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2073. m4_if([$1], [],[
  2074. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2075. ;;
  2076. mingw* | cegcc*)
  2077. # MinGW DLLs use traditional 'lib' prefix
  2078. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2079. ;;
  2080. pw32*)
  2081. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2082. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2083. ;;
  2084. esac
  2085. dynamic_linker='Win32 ld.exe'
  2086. ;;
  2087. *,cl*)
  2088. # Native MSVC
  2089. libname_spec='$name'
  2090. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2091. library_names_spec='${libname}.dll.lib'
  2092. case $build_os in
  2093. mingw*)
  2094. sys_lib_search_path_spec=
  2095. lt_save_ifs=$IFS
  2096. IFS=';'
  2097. for lt_path in $LIB
  2098. do
  2099. IFS=$lt_save_ifs
  2100. # Let DOS variable expansion print the short 8.3 style file name.
  2101. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2102. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2103. done
  2104. IFS=$lt_save_ifs
  2105. # Convert to MSYS style.
  2106. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2107. ;;
  2108. cygwin*)
  2109. # Convert to unix form, then to dos form, then back to unix form
  2110. # but this time dos style (no spaces!) so that the unix form looks
  2111. # like /cygdrive/c/PROGRA~1:/cygdr...
  2112. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2113. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2114. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2115. ;;
  2116. *)
  2117. sys_lib_search_path_spec="$LIB"
  2118. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2119. # It is most probably a Windows format PATH.
  2120. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2121. else
  2122. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2123. fi
  2124. # FIXME: find the short name or the path components, as spaces are
  2125. # common. (e.g. "Program Files" -> "PROGRA~1")
  2126. ;;
  2127. esac
  2128. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2129. postinstall_cmds='base_file=`basename \${file}`~
  2130. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2131. dldir=$destdir/`dirname \$dlpath`~
  2132. test -d \$dldir || mkdir -p \$dldir~
  2133. $install_prog $dir/$dlname \$dldir/$dlname'
  2134. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2135. dlpath=$dir/\$dldll~
  2136. $RM \$dlpath'
  2137. shlibpath_overrides_runpath=yes
  2138. dynamic_linker='Win32 link.exe'
  2139. ;;
  2140. *)
  2141. # Assume MSVC wrapper
  2142. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2143. dynamic_linker='Win32 ld.exe'
  2144. ;;
  2145. esac
  2146. # FIXME: first we should search . and the directory the executable is in
  2147. shlibpath_var=PATH
  2148. ;;
  2149. darwin* | rhapsody*)
  2150. dynamic_linker="$host_os dyld"
  2151. version_type=darwin
  2152. need_lib_prefix=no
  2153. need_version=no
  2154. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2155. soname_spec='${libname}${release}${major}$shared_ext'
  2156. shlibpath_overrides_runpath=yes
  2157. shlibpath_var=DYLD_LIBRARY_PATH
  2158. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2159. m4_if([$1], [],[
  2160. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2161. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2162. ;;
  2163. dgux*)
  2164. version_type=linux
  2165. need_lib_prefix=no
  2166. need_version=no
  2167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2168. soname_spec='${libname}${release}${shared_ext}$major'
  2169. shlibpath_var=LD_LIBRARY_PATH
  2170. ;;
  2171. freebsd1*)
  2172. dynamic_linker=no
  2173. ;;
  2174. freebsd* | dragonfly*)
  2175. # DragonFly does not have aout. When/if they implement a new
  2176. # versioning mechanism, adjust this.
  2177. if test -x /usr/bin/objformat; then
  2178. objformat=`/usr/bin/objformat`
  2179. else
  2180. case $host_os in
  2181. freebsd[[123]]*) objformat=aout ;;
  2182. *) objformat=elf ;;
  2183. esac
  2184. fi
  2185. version_type=freebsd-$objformat
  2186. case $version_type in
  2187. freebsd-elf*)
  2188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2189. need_version=no
  2190. need_lib_prefix=no
  2191. ;;
  2192. freebsd-*)
  2193. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2194. need_version=yes
  2195. ;;
  2196. esac
  2197. shlibpath_var=LD_LIBRARY_PATH
  2198. case $host_os in
  2199. freebsd2*)
  2200. shlibpath_overrides_runpath=yes
  2201. ;;
  2202. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2203. shlibpath_overrides_runpath=yes
  2204. hardcode_into_libs=yes
  2205. ;;
  2206. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2207. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2208. shlibpath_overrides_runpath=no
  2209. hardcode_into_libs=yes
  2210. ;;
  2211. *) # from 4.6 on, and DragonFly
  2212. shlibpath_overrides_runpath=yes
  2213. hardcode_into_libs=yes
  2214. ;;
  2215. esac
  2216. ;;
  2217. gnu*)
  2218. version_type=linux
  2219. need_lib_prefix=no
  2220. need_version=no
  2221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2222. soname_spec='${libname}${release}${shared_ext}$major'
  2223. shlibpath_var=LD_LIBRARY_PATH
  2224. hardcode_into_libs=yes
  2225. ;;
  2226. haiku*)
  2227. version_type=linux
  2228. need_lib_prefix=no
  2229. need_version=no
  2230. dynamic_linker="$host_os runtime_loader"
  2231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2232. soname_spec='${libname}${release}${shared_ext}$major'
  2233. shlibpath_var=LIBRARY_PATH
  2234. shlibpath_overrides_runpath=yes
  2235. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2236. hardcode_into_libs=yes
  2237. ;;
  2238. hpux9* | hpux10* | hpux11*)
  2239. # Give a soname corresponding to the major version so that dld.sl refuses to
  2240. # link against other versions.
  2241. version_type=sunos
  2242. need_lib_prefix=no
  2243. need_version=no
  2244. case $host_cpu in
  2245. ia64*)
  2246. shrext_cmds='.so'
  2247. hardcode_into_libs=yes
  2248. dynamic_linker="$host_os dld.so"
  2249. shlibpath_var=LD_LIBRARY_PATH
  2250. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2251. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2252. soname_spec='${libname}${release}${shared_ext}$major'
  2253. if test "X$HPUX_IA64_MODE" = X32; then
  2254. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2255. else
  2256. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2257. fi
  2258. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2259. ;;
  2260. hppa*64*)
  2261. shrext_cmds='.sl'
  2262. hardcode_into_libs=yes
  2263. dynamic_linker="$host_os dld.sl"
  2264. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2265. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2267. soname_spec='${libname}${release}${shared_ext}$major'
  2268. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2269. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2270. ;;
  2271. *)
  2272. shrext_cmds='.sl'
  2273. dynamic_linker="$host_os dld.sl"
  2274. shlibpath_var=SHLIB_PATH
  2275. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2277. soname_spec='${libname}${release}${shared_ext}$major'
  2278. ;;
  2279. esac
  2280. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2281. postinstall_cmds='chmod 555 $lib'
  2282. # or fails outright, so override atomically:
  2283. install_override_mode=555
  2284. ;;
  2285. interix[[3-9]]*)
  2286. version_type=linux
  2287. need_lib_prefix=no
  2288. need_version=no
  2289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2290. soname_spec='${libname}${release}${shared_ext}$major'
  2291. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2292. shlibpath_var=LD_LIBRARY_PATH
  2293. shlibpath_overrides_runpath=no
  2294. hardcode_into_libs=yes
  2295. ;;
  2296. irix5* | irix6* | nonstopux*)
  2297. case $host_os in
  2298. nonstopux*) version_type=nonstopux ;;
  2299. *)
  2300. if test "$lt_cv_prog_gnu_ld" = yes; then
  2301. version_type=linux
  2302. else
  2303. version_type=irix
  2304. fi ;;
  2305. esac
  2306. need_lib_prefix=no
  2307. need_version=no
  2308. soname_spec='${libname}${release}${shared_ext}$major'
  2309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2310. case $host_os in
  2311. irix5* | nonstopux*)
  2312. libsuff= shlibsuff=
  2313. ;;
  2314. *)
  2315. case $LD in # libtool.m4 will add one of these switches to LD
  2316. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2317. libsuff= shlibsuff= libmagic=32-bit;;
  2318. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2319. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2320. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2321. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2322. *) libsuff= shlibsuff= libmagic=never-match;;
  2323. esac
  2324. ;;
  2325. esac
  2326. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2327. shlibpath_overrides_runpath=no
  2328. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2329. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2330. hardcode_into_libs=yes
  2331. ;;
  2332. # No shared lib support for Linux oldld, aout, or coff.
  2333. linux*oldld* | linux*aout* | linux*coff*)
  2334. dynamic_linker=no
  2335. ;;
  2336. # This must be Linux ELF.
  2337. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2338. version_type=linux
  2339. need_lib_prefix=no
  2340. need_version=no
  2341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2342. soname_spec='${libname}${release}${shared_ext}$major'
  2343. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2344. shlibpath_var=LD_LIBRARY_PATH
  2345. shlibpath_overrides_runpath=no
  2346. # Some binutils ld are patched to set DT_RUNPATH
  2347. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2348. [lt_cv_shlibpath_overrides_runpath=no
  2349. save_LDFLAGS=$LDFLAGS
  2350. save_libdir=$libdir
  2351. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2352. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2353. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2354. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2355. [lt_cv_shlibpath_overrides_runpath=yes])])
  2356. LDFLAGS=$save_LDFLAGS
  2357. libdir=$save_libdir
  2358. ])
  2359. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2360. # This implies no fast_install, which is unacceptable.
  2361. # Some rework will be needed to allow for fast_install
  2362. # before this can be enabled.
  2363. hardcode_into_libs=yes
  2364. # Append ld.so.conf contents to the search path
  2365. if test -f /etc/ld.so.conf; then
  2366. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  2367. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2368. fi
  2369. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2370. # powerpc, because MkLinux only supported shared libraries with the
  2371. # GNU dynamic linker. Since this was broken with cross compilers,
  2372. # most powerpc-linux boxes support dynamic linking these days and
  2373. # people can always --disable-shared, the test was removed, and we
  2374. # assume the GNU/Linux dynamic linker is in use.
  2375. dynamic_linker='GNU/Linux ld.so'
  2376. ;;
  2377. netbsd*)
  2378. version_type=sunos
  2379. need_lib_prefix=no
  2380. need_version=no
  2381. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2383. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2384. dynamic_linker='NetBSD (a.out) ld.so'
  2385. else
  2386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2387. soname_spec='${libname}${release}${shared_ext}$major'
  2388. dynamic_linker='NetBSD ld.elf_so'
  2389. fi
  2390. shlibpath_var=LD_LIBRARY_PATH
  2391. shlibpath_overrides_runpath=yes
  2392. hardcode_into_libs=yes
  2393. ;;
  2394. newsos6)
  2395. version_type=linux
  2396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2397. shlibpath_var=LD_LIBRARY_PATH
  2398. shlibpath_overrides_runpath=yes
  2399. ;;
  2400. *nto* | *qnx*)
  2401. version_type=qnx
  2402. need_lib_prefix=no
  2403. need_version=no
  2404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2405. soname_spec='${libname}${release}${shared_ext}$major'
  2406. shlibpath_var=LD_LIBRARY_PATH
  2407. shlibpath_overrides_runpath=no
  2408. hardcode_into_libs=yes
  2409. dynamic_linker='ldqnx.so'
  2410. ;;
  2411. openbsd*)
  2412. version_type=sunos
  2413. sys_lib_dlsearch_path_spec="/usr/lib"
  2414. need_lib_prefix=no
  2415. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2416. case $host_os in
  2417. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2418. *) need_version=no ;;
  2419. esac
  2420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2421. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2422. shlibpath_var=LD_LIBRARY_PATH
  2423. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2424. case $host_os in
  2425. openbsd2.[[89]] | openbsd2.[[89]].*)
  2426. shlibpath_overrides_runpath=no
  2427. ;;
  2428. *)
  2429. shlibpath_overrides_runpath=yes
  2430. ;;
  2431. esac
  2432. else
  2433. shlibpath_overrides_runpath=yes
  2434. fi
  2435. ;;
  2436. os2*)
  2437. libname_spec='$name'
  2438. shrext_cmds=".dll"
  2439. need_lib_prefix=no
  2440. library_names_spec='$libname${shared_ext} $libname.a'
  2441. dynamic_linker='OS/2 ld.exe'
  2442. shlibpath_var=LIBPATH
  2443. ;;
  2444. osf3* | osf4* | osf5*)
  2445. version_type=osf
  2446. need_lib_prefix=no
  2447. need_version=no
  2448. soname_spec='${libname}${release}${shared_ext}$major'
  2449. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2450. shlibpath_var=LD_LIBRARY_PATH
  2451. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2452. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2453. ;;
  2454. rdos*)
  2455. dynamic_linker=no
  2456. ;;
  2457. solaris*)
  2458. version_type=linux
  2459. need_lib_prefix=no
  2460. need_version=no
  2461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2462. soname_spec='${libname}${release}${shared_ext}$major'
  2463. shlibpath_var=LD_LIBRARY_PATH
  2464. shlibpath_overrides_runpath=yes
  2465. hardcode_into_libs=yes
  2466. # ldd complains unless libraries are executable
  2467. postinstall_cmds='chmod +x $lib'
  2468. ;;
  2469. sunos4*)
  2470. version_type=sunos
  2471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2472. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2473. shlibpath_var=LD_LIBRARY_PATH
  2474. shlibpath_overrides_runpath=yes
  2475. if test "$with_gnu_ld" = yes; then
  2476. need_lib_prefix=no
  2477. fi
  2478. need_version=yes
  2479. ;;
  2480. sysv4 | sysv4.3*)
  2481. version_type=linux
  2482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2483. soname_spec='${libname}${release}${shared_ext}$major'
  2484. shlibpath_var=LD_LIBRARY_PATH
  2485. case $host_vendor in
  2486. sni)
  2487. shlibpath_overrides_runpath=no
  2488. need_lib_prefix=no
  2489. runpath_var=LD_RUN_PATH
  2490. ;;
  2491. siemens)
  2492. need_lib_prefix=no
  2493. ;;
  2494. motorola)
  2495. need_lib_prefix=no
  2496. need_version=no
  2497. shlibpath_overrides_runpath=no
  2498. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2499. ;;
  2500. esac
  2501. ;;
  2502. sysv4*MP*)
  2503. if test -d /usr/nec ;then
  2504. version_type=linux
  2505. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2506. soname_spec='$libname${shared_ext}.$major'
  2507. shlibpath_var=LD_LIBRARY_PATH
  2508. fi
  2509. ;;
  2510. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2511. version_type=freebsd-elf
  2512. need_lib_prefix=no
  2513. need_version=no
  2514. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2515. soname_spec='${libname}${release}${shared_ext}$major'
  2516. shlibpath_var=LD_LIBRARY_PATH
  2517. shlibpath_overrides_runpath=yes
  2518. hardcode_into_libs=yes
  2519. if test "$with_gnu_ld" = yes; then
  2520. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2521. else
  2522. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2523. case $host_os in
  2524. sco3.2v5*)
  2525. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2526. ;;
  2527. esac
  2528. fi
  2529. sys_lib_dlsearch_path_spec='/usr/lib'
  2530. ;;
  2531. tpf*)
  2532. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2533. version_type=linux
  2534. need_lib_prefix=no
  2535. need_version=no
  2536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2537. shlibpath_var=LD_LIBRARY_PATH
  2538. shlibpath_overrides_runpath=no
  2539. hardcode_into_libs=yes
  2540. ;;
  2541. uts4*)
  2542. version_type=linux
  2543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2544. soname_spec='${libname}${release}${shared_ext}$major'
  2545. shlibpath_var=LD_LIBRARY_PATH
  2546. ;;
  2547. *)
  2548. dynamic_linker=no
  2549. ;;
  2550. esac
  2551. AC_MSG_RESULT([$dynamic_linker])
  2552. test "$dynamic_linker" = no && can_build_shared=no
  2553. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2554. if test "$GCC" = yes; then
  2555. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2556. fi
  2557. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2558. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2559. fi
  2560. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2561. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2562. fi
  2563. _LT_DECL([], [variables_saved_for_relink], [1],
  2564. [Variables whose values should be saved in libtool wrapper scripts and
  2565. restored at link time])
  2566. _LT_DECL([], [need_lib_prefix], [0],
  2567. [Do we need the "lib" prefix for modules?])
  2568. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2569. _LT_DECL([], [version_type], [0], [Library versioning type])
  2570. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2571. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2572. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2573. [Is shlibpath searched before the hard-coded library search path?])
  2574. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2575. _LT_DECL([], [library_names_spec], [1],
  2576. [[List of archive names. First name is the real one, the rest are links.
  2577. The last name is the one that the linker finds with -lNAME]])
  2578. _LT_DECL([], [soname_spec], [1],
  2579. [[The coded name of the library, if different from the real name]])
  2580. _LT_DECL([], [install_override_mode], [1],
  2581. [Permission mode override for installation of shared libraries])
  2582. _LT_DECL([], [postinstall_cmds], [2],
  2583. [Command to use after installation of a shared archive])
  2584. _LT_DECL([], [postuninstall_cmds], [2],
  2585. [Command to use after uninstallation of a shared archive])
  2586. _LT_DECL([], [finish_cmds], [2],
  2587. [Commands used to finish a libtool library installation in a directory])
  2588. _LT_DECL([], [finish_eval], [1],
  2589. [[As "finish_cmds", except a single script fragment to be evaled but
  2590. not shown]])
  2591. _LT_DECL([], [hardcode_into_libs], [0],
  2592. [Whether we should hardcode library paths into libraries])
  2593. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2594. [Compile-time system search path for libraries])
  2595. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2596. [Run-time system search path for libraries])
  2597. ])# _LT_SYS_DYNAMIC_LINKER
  2598. # _LT_PATH_TOOL_PREFIX(TOOL)
  2599. # --------------------------
  2600. # find a file program which can recognize shared library
  2601. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2602. [m4_require([_LT_DECL_EGREP])dnl
  2603. AC_MSG_CHECKING([for $1])
  2604. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2605. [case $MAGIC_CMD in
  2606. [[\\/*] | ?:[\\/]*])
  2607. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2608. ;;
  2609. *)
  2610. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2611. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2612. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2613. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2614. dnl not every word. This closes a longstanding sh security hole.
  2615. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2616. for ac_dir in $ac_dummy; do
  2617. IFS="$lt_save_ifs"
  2618. test -z "$ac_dir" && ac_dir=.
  2619. if test -f $ac_dir/$1; then
  2620. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2621. if test -n "$file_magic_test_file"; then
  2622. case $deplibs_check_method in
  2623. "file_magic "*)
  2624. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2625. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2626. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2627. $EGREP "$file_magic_regex" > /dev/null; then
  2628. :
  2629. else
  2630. cat <<_LT_EOF 1>&2
  2631. *** Warning: the command libtool uses to detect shared libraries,
  2632. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2633. *** The result is that libtool may fail to recognize shared libraries
  2634. *** as such. This will affect the creation of libtool libraries that
  2635. *** depend on shared libraries, but programs linked with such libtool
  2636. *** libraries will work regardless of this problem. Nevertheless, you
  2637. *** may want to report the problem to your system manager and/or to
  2638. *** bug-libtool@gnu.org
  2639. _LT_EOF
  2640. fi ;;
  2641. esac
  2642. fi
  2643. break
  2644. fi
  2645. done
  2646. IFS="$lt_save_ifs"
  2647. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2648. ;;
  2649. esac])
  2650. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2651. if test -n "$MAGIC_CMD"; then
  2652. AC_MSG_RESULT($MAGIC_CMD)
  2653. else
  2654. AC_MSG_RESULT(no)
  2655. fi
  2656. _LT_DECL([], [MAGIC_CMD], [0],
  2657. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2658. ])# _LT_PATH_TOOL_PREFIX
  2659. # Old name:
  2660. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2661. dnl aclocal-1.4 backwards compatibility:
  2662. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2663. # _LT_PATH_MAGIC
  2664. # --------------
  2665. # find a file program which can recognize a shared library
  2666. m4_defun([_LT_PATH_MAGIC],
  2667. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2668. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2669. if test -n "$ac_tool_prefix"; then
  2670. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2671. else
  2672. MAGIC_CMD=:
  2673. fi
  2674. fi
  2675. ])# _LT_PATH_MAGIC
  2676. # LT_PATH_LD
  2677. # ----------
  2678. # find the pathname to the GNU or non-GNU linker
  2679. AC_DEFUN([LT_PATH_LD],
  2680. [AC_REQUIRE([AC_PROG_CC])dnl
  2681. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2682. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2683. m4_require([_LT_DECL_SED])dnl
  2684. m4_require([_LT_DECL_EGREP])dnl
  2685. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2686. AC_ARG_WITH([gnu-ld],
  2687. [AS_HELP_STRING([--with-gnu-ld],
  2688. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2689. [test "$withval" = no || with_gnu_ld=yes],
  2690. [with_gnu_ld=no])dnl
  2691. ac_prog=ld
  2692. if test "$GCC" = yes; then
  2693. # Check if gcc -print-prog-name=ld gives a path.
  2694. AC_MSG_CHECKING([for ld used by $CC])
  2695. case $host in
  2696. *-*-mingw*)
  2697. # gcc leaves a trailing carriage return which upsets mingw
  2698. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2699. *)
  2700. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2701. esac
  2702. case $ac_prog in
  2703. # Accept absolute paths.
  2704. [[\\/]]* | ?:[[\\/]]*)
  2705. re_direlt='/[[^/]][[^/]]*/\.\./'
  2706. # Canonicalize the pathname of ld
  2707. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2708. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2709. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2710. done
  2711. test -z "$LD" && LD="$ac_prog"
  2712. ;;
  2713. "")
  2714. # If it fails, then pretend we aren't using GCC.
  2715. ac_prog=ld
  2716. ;;
  2717. *)
  2718. # If it is relative, then search for the first ld in PATH.
  2719. with_gnu_ld=unknown
  2720. ;;
  2721. esac
  2722. elif test "$with_gnu_ld" = yes; then
  2723. AC_MSG_CHECKING([for GNU ld])
  2724. else
  2725. AC_MSG_CHECKING([for non-GNU ld])
  2726. fi
  2727. AC_CACHE_VAL(lt_cv_path_LD,
  2728. [if test -z "$LD"; then
  2729. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2730. for ac_dir in $PATH; do
  2731. IFS="$lt_save_ifs"
  2732. test -z "$ac_dir" && ac_dir=.
  2733. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2734. lt_cv_path_LD="$ac_dir/$ac_prog"
  2735. # Check to see if the program is GNU ld. I'd rather use --version,
  2736. # but apparently some variants of GNU ld only accept -v.
  2737. # Break only if it was the GNU/non-GNU ld that we prefer.
  2738. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2739. *GNU* | *'with BFD'*)
  2740. test "$with_gnu_ld" != no && break
  2741. ;;
  2742. *)
  2743. test "$with_gnu_ld" != yes && break
  2744. ;;
  2745. esac
  2746. fi
  2747. done
  2748. IFS="$lt_save_ifs"
  2749. else
  2750. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2751. fi])
  2752. LD="$lt_cv_path_LD"
  2753. if test -n "$LD"; then
  2754. AC_MSG_RESULT($LD)
  2755. else
  2756. AC_MSG_RESULT(no)
  2757. fi
  2758. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2759. _LT_PATH_LD_GNU
  2760. AC_SUBST([LD])
  2761. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2762. ])# LT_PATH_LD
  2763. # Old names:
  2764. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2765. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2766. dnl aclocal-1.4 backwards compatibility:
  2767. dnl AC_DEFUN([AM_PROG_LD], [])
  2768. dnl AC_DEFUN([AC_PROG_LD], [])
  2769. # _LT_PATH_LD_GNU
  2770. #- --------------
  2771. m4_defun([_LT_PATH_LD_GNU],
  2772. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2773. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2774. case `$LD -v 2>&1 </dev/null` in
  2775. *GNU* | *'with BFD'*)
  2776. lt_cv_prog_gnu_ld=yes
  2777. ;;
  2778. *)
  2779. lt_cv_prog_gnu_ld=no
  2780. ;;
  2781. esac])
  2782. with_gnu_ld=$lt_cv_prog_gnu_ld
  2783. ])# _LT_PATH_LD_GNU
  2784. # _LT_CMD_RELOAD
  2785. # --------------
  2786. # find reload flag for linker
  2787. # -- PORTME Some linkers may need a different reload flag.
  2788. m4_defun([_LT_CMD_RELOAD],
  2789. [AC_CACHE_CHECK([for $LD option to reload object files],
  2790. lt_cv_ld_reload_flag,
  2791. [lt_cv_ld_reload_flag='-r'])
  2792. reload_flag=$lt_cv_ld_reload_flag
  2793. case $reload_flag in
  2794. "" | " "*) ;;
  2795. *) reload_flag=" $reload_flag" ;;
  2796. esac
  2797. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2798. case $host_os in
  2799. cygwin* | mingw* | pw32* | cegcc*)
  2800. if test "$GCC" != yes; then
  2801. reload_cmds=false
  2802. fi
  2803. ;;
  2804. darwin*)
  2805. if test "$GCC" = yes; then
  2806. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2807. else
  2808. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2809. fi
  2810. ;;
  2811. esac
  2812. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2813. _LT_TAGDECL([], [reload_cmds], [2])dnl
  2814. ])# _LT_CMD_RELOAD
  2815. # _LT_CHECK_MAGIC_METHOD
  2816. # ----------------------
  2817. # how to check for library dependencies
  2818. # -- PORTME fill in with the dynamic library characteristics
  2819. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2820. [m4_require([_LT_DECL_EGREP])
  2821. m4_require([_LT_DECL_OBJDUMP])
  2822. AC_CACHE_CHECK([how to recognize dependent libraries],
  2823. lt_cv_deplibs_check_method,
  2824. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2825. lt_cv_file_magic_test_file=
  2826. lt_cv_deplibs_check_method='unknown'
  2827. # Need to set the preceding variable on all platforms that support
  2828. # interlibrary dependencies.
  2829. # 'none' -- dependencies not supported.
  2830. # `unknown' -- same as none, but documents that we really don't know.
  2831. # 'pass_all' -- all dependencies passed with no checks.
  2832. # 'test_compile' -- check by making test program.
  2833. # 'file_magic [[regex]]' -- check by looking for files in library path
  2834. # which responds to the $file_magic_cmd with a given extended regex.
  2835. # If you have `file' or equivalent on your system and you're not sure
  2836. # whether `pass_all' will *always* work, you probably want this one.
  2837. case $host_os in
  2838. aix[[4-9]]*)
  2839. lt_cv_deplibs_check_method=pass_all
  2840. ;;
  2841. beos*)
  2842. lt_cv_deplibs_check_method=pass_all
  2843. ;;
  2844. bsdi[[45]]*)
  2845. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2846. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2847. lt_cv_file_magic_test_file=/shlib/libc.so
  2848. ;;
  2849. cygwin*)
  2850. # func_win32_libid is a shell function defined in ltmain.sh
  2851. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2852. lt_cv_file_magic_cmd='func_win32_libid'
  2853. ;;
  2854. mingw* | pw32*)
  2855. # Base MSYS/MinGW do not provide the 'file' command needed by
  2856. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2857. # unless we find 'file', for example because we are cross-compiling.
  2858. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  2859. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  2860. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2861. lt_cv_file_magic_cmd='func_win32_libid'
  2862. else
  2863. # Keep this pattern in sync with the one in func_win32_libid.
  2864. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2865. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2866. fi
  2867. ;;
  2868. cegcc*)
  2869. # use the weaker test based on 'objdump'. See mingw*.
  2870. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2871. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2872. ;;
  2873. darwin* | rhapsody*)
  2874. lt_cv_deplibs_check_method=pass_all
  2875. ;;
  2876. freebsd* | dragonfly*)
  2877. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2878. case $host_cpu in
  2879. i*86 )
  2880. # Not sure whether the presence of OpenBSD here was a mistake.
  2881. # Let's accept both of them until this is cleared up.
  2882. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2883. lt_cv_file_magic_cmd=/usr/bin/file
  2884. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2885. ;;
  2886. esac
  2887. else
  2888. lt_cv_deplibs_check_method=pass_all
  2889. fi
  2890. ;;
  2891. gnu*)
  2892. lt_cv_deplibs_check_method=pass_all
  2893. ;;
  2894. haiku*)
  2895. lt_cv_deplibs_check_method=pass_all
  2896. ;;
  2897. hpux10.20* | hpux11*)
  2898. lt_cv_file_magic_cmd=/usr/bin/file
  2899. case $host_cpu in
  2900. ia64*)
  2901. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2902. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2903. ;;
  2904. hppa*64*)
  2905. [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
  2906. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2907. ;;
  2908. *)
  2909. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  2910. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2911. ;;
  2912. esac
  2913. ;;
  2914. interix[[3-9]]*)
  2915. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2916. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2917. ;;
  2918. irix5* | irix6* | nonstopux*)
  2919. case $LD in
  2920. *-32|*"-32 ") libmagic=32-bit;;
  2921. *-n32|*"-n32 ") libmagic=N32;;
  2922. *-64|*"-64 ") libmagic=64-bit;;
  2923. *) libmagic=never-match;;
  2924. esac
  2925. lt_cv_deplibs_check_method=pass_all
  2926. ;;
  2927. # This must be Linux ELF.
  2928. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2929. lt_cv_deplibs_check_method=pass_all
  2930. ;;
  2931. netbsd*)
  2932. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2933. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2934. else
  2935. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2936. fi
  2937. ;;
  2938. newos6*)
  2939. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2940. lt_cv_file_magic_cmd=/usr/bin/file
  2941. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2942. ;;
  2943. *nto* | *qnx*)
  2944. lt_cv_deplibs_check_method=pass_all
  2945. ;;
  2946. openbsd*)
  2947. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2948. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2949. else
  2950. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2951. fi
  2952. ;;
  2953. osf3* | osf4* | osf5*)
  2954. lt_cv_deplibs_check_method=pass_all
  2955. ;;
  2956. rdos*)
  2957. lt_cv_deplibs_check_method=pass_all
  2958. ;;
  2959. solaris*)
  2960. lt_cv_deplibs_check_method=pass_all
  2961. ;;
  2962. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2963. lt_cv_deplibs_check_method=pass_all
  2964. ;;
  2965. sysv4 | sysv4.3*)
  2966. case $host_vendor in
  2967. motorola)
  2968. 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]]'
  2969. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2970. ;;
  2971. ncr)
  2972. lt_cv_deplibs_check_method=pass_all
  2973. ;;
  2974. sequent)
  2975. lt_cv_file_magic_cmd='/bin/file'
  2976. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  2977. ;;
  2978. sni)
  2979. lt_cv_file_magic_cmd='/bin/file'
  2980. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  2981. lt_cv_file_magic_test_file=/lib/libc.so
  2982. ;;
  2983. siemens)
  2984. lt_cv_deplibs_check_method=pass_all
  2985. ;;
  2986. pc)
  2987. lt_cv_deplibs_check_method=pass_all
  2988. ;;
  2989. esac
  2990. ;;
  2991. tpf*)
  2992. lt_cv_deplibs_check_method=pass_all
  2993. ;;
  2994. esac
  2995. ])
  2996. file_magic_glob=
  2997. want_nocaseglob=no
  2998. if test "$build" = "$host"; then
  2999. case $host_os in
  3000. mingw* | pw32*)
  3001. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3002. want_nocaseglob=yes
  3003. else
  3004. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3005. fi
  3006. ;;
  3007. esac
  3008. fi
  3009. file_magic_cmd=$lt_cv_file_magic_cmd
  3010. deplibs_check_method=$lt_cv_deplibs_check_method
  3011. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3012. _LT_DECL([], [deplibs_check_method], [1],
  3013. [Method to check whether dependent libraries are shared objects])
  3014. _LT_DECL([], [file_magic_cmd], [1],
  3015. [Command to use when deplibs_check_method = "file_magic"])
  3016. _LT_DECL([], [file_magic_glob], [1],
  3017. [How to find potential files when deplibs_check_method = "file_magic"])
  3018. _LT_DECL([], [want_nocaseglob], [1],
  3019. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3020. ])# _LT_CHECK_MAGIC_METHOD
  3021. # LT_PATH_NM
  3022. # ----------
  3023. # find the pathname to a BSD- or MS-compatible name lister
  3024. AC_DEFUN([LT_PATH_NM],
  3025. [AC_REQUIRE([AC_PROG_CC])dnl
  3026. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3027. [if test -n "$NM"; then
  3028. # Let the user override the test.
  3029. lt_cv_path_NM="$NM"
  3030. else
  3031. lt_nm_to_check="${ac_tool_prefix}nm"
  3032. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3033. lt_nm_to_check="$lt_nm_to_check nm"
  3034. fi
  3035. for lt_tmp_nm in $lt_nm_to_check; do
  3036. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3037. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3038. IFS="$lt_save_ifs"
  3039. test -z "$ac_dir" && ac_dir=.
  3040. tmp_nm="$ac_dir/$lt_tmp_nm"
  3041. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3042. # Check to see if the nm accepts a BSD-compat flag.
  3043. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3044. # nm: unknown option "B" ignored
  3045. # Tru64's nm complains that /dev/null is an invalid object file
  3046. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3047. */dev/null* | *'Invalid file or object type'*)
  3048. lt_cv_path_NM="$tmp_nm -B"
  3049. break
  3050. ;;
  3051. *)
  3052. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3053. */dev/null*)
  3054. lt_cv_path_NM="$tmp_nm -p"
  3055. break
  3056. ;;
  3057. *)
  3058. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3059. continue # so that we can try to find one that supports BSD flags
  3060. ;;
  3061. esac
  3062. ;;
  3063. esac
  3064. fi
  3065. done
  3066. IFS="$lt_save_ifs"
  3067. done
  3068. : ${lt_cv_path_NM=no}
  3069. fi])
  3070. if test "$lt_cv_path_NM" != "no"; then
  3071. NM="$lt_cv_path_NM"
  3072. else
  3073. # Didn't find any BSD compatible name lister, look for dumpbin.
  3074. if test -n "$DUMPBIN"; then :
  3075. # Let the user override the test.
  3076. else
  3077. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3078. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3079. *COFF*)
  3080. DUMPBIN="$DUMPBIN -symbols"
  3081. ;;
  3082. *)
  3083. DUMPBIN=:
  3084. ;;
  3085. esac
  3086. fi
  3087. AC_SUBST([DUMPBIN])
  3088. if test "$DUMPBIN" != ":"; then
  3089. NM="$DUMPBIN"
  3090. fi
  3091. fi
  3092. test -z "$NM" && NM=nm
  3093. AC_SUBST([NM])
  3094. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3095. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3096. [lt_cv_nm_interface="BSD nm"
  3097. echo "int some_variable = 0;" > conftest.$ac_ext
  3098. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3099. (eval "$ac_compile" 2>conftest.err)
  3100. cat conftest.err >&AS_MESSAGE_LOG_FD
  3101. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3102. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3103. cat conftest.err >&AS_MESSAGE_LOG_FD
  3104. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3105. cat conftest.out >&AS_MESSAGE_LOG_FD
  3106. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3107. lt_cv_nm_interface="MS dumpbin"
  3108. fi
  3109. rm -f conftest*])
  3110. ])# LT_PATH_NM
  3111. # Old names:
  3112. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3113. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3114. dnl aclocal-1.4 backwards compatibility:
  3115. dnl AC_DEFUN([AM_PROG_NM], [])
  3116. dnl AC_DEFUN([AC_PROG_NM], [])
  3117. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3118. # --------------------------------
  3119. # how to determine the name of the shared library
  3120. # associated with a specific link library.
  3121. # -- PORTME fill in with the dynamic library characteristics
  3122. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3123. [m4_require([_LT_DECL_EGREP])
  3124. m4_require([_LT_DECL_OBJDUMP])
  3125. m4_require([_LT_DECL_DLLTOOL])
  3126. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3127. lt_cv_sharedlib_from_linklib_cmd,
  3128. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3129. case $host_os in
  3130. cygwin* | mingw* | pw32* | cegcc*)
  3131. # two different shell functions defined in ltmain.sh
  3132. # decide which to use based on capabilities of $DLLTOOL
  3133. case `$DLLTOOL --help 2>&1` in
  3134. *--identify-strict*)
  3135. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3136. ;;
  3137. *)
  3138. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3139. ;;
  3140. esac
  3141. ;;
  3142. *)
  3143. # fallback: assume linklib IS sharedlib
  3144. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3145. ;;
  3146. esac
  3147. ])
  3148. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3149. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3150. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3151. [Command to associate shared and link libraries])
  3152. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3153. # _LT_PATH_MANIFEST_TOOL
  3154. # ----------------------
  3155. # locate the manifest tool
  3156. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3157. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3158. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3159. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3160. [lt_cv_path_mainfest_tool=no
  3161. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3162. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3163. cat conftest.err >&AS_MESSAGE_LOG_FD
  3164. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3165. lt_cv_path_mainfest_tool=yes
  3166. fi
  3167. rm -f conftest*])
  3168. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3169. MANIFEST_TOOL=:
  3170. fi
  3171. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3172. ])# _LT_PATH_MANIFEST_TOOL
  3173. # LT_LIB_M
  3174. # --------
  3175. # check for math library
  3176. AC_DEFUN([LT_LIB_M],
  3177. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3178. LIBM=
  3179. case $host in
  3180. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3181. # These system don't have libm, or don't need it
  3182. ;;
  3183. *-ncr-sysv4.3*)
  3184. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3185. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3186. ;;
  3187. *)
  3188. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3189. ;;
  3190. esac
  3191. AC_SUBST([LIBM])
  3192. ])# LT_LIB_M
  3193. # Old name:
  3194. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3195. dnl aclocal-1.4 backwards compatibility:
  3196. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3197. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3198. # -------------------------------
  3199. m4_defun([_LT_COMPILER_NO_RTTI],
  3200. [m4_require([_LT_TAG_COMPILER])dnl
  3201. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3202. if test "$GCC" = yes; then
  3203. case $cc_basename in
  3204. nvcc*)
  3205. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3206. *)
  3207. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3208. esac
  3209. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3210. lt_cv_prog_compiler_rtti_exceptions,
  3211. [-fno-rtti -fno-exceptions], [],
  3212. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3213. fi
  3214. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3215. [Compiler flag to turn off builtin functions])
  3216. ])# _LT_COMPILER_NO_RTTI
  3217. # _LT_CMD_GLOBAL_SYMBOLS
  3218. # ----------------------
  3219. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3220. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3221. AC_REQUIRE([AC_PROG_CC])dnl
  3222. AC_REQUIRE([AC_PROG_AWK])dnl
  3223. AC_REQUIRE([LT_PATH_NM])dnl
  3224. AC_REQUIRE([LT_PATH_LD])dnl
  3225. m4_require([_LT_DECL_SED])dnl
  3226. m4_require([_LT_DECL_EGREP])dnl
  3227. m4_require([_LT_TAG_COMPILER])dnl
  3228. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3229. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3230. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3231. [
  3232. # These are sane defaults that work on at least a few old systems.
  3233. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3234. # Character class describing NM global symbol codes.
  3235. symcode='[[BCDEGRST]]'
  3236. # Regexp to match symbols that can be accessed directly from C.
  3237. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3238. # Define system-specific variables.
  3239. case $host_os in
  3240. aix*)
  3241. symcode='[[BCDT]]'
  3242. ;;
  3243. cygwin* | mingw* | pw32* | cegcc*)
  3244. symcode='[[ABCDGISTW]]'
  3245. ;;
  3246. hpux*)
  3247. if test "$host_cpu" = ia64; then
  3248. symcode='[[ABCDEGRST]]'
  3249. fi
  3250. ;;
  3251. irix* | nonstopux*)
  3252. symcode='[[BCDEGRST]]'
  3253. ;;
  3254. osf*)
  3255. symcode='[[BCDEGQRST]]'
  3256. ;;
  3257. solaris*)
  3258. symcode='[[BDRT]]'
  3259. ;;
  3260. sco3.2v5*)
  3261. symcode='[[DT]]'
  3262. ;;
  3263. sysv4.2uw2*)
  3264. symcode='[[DT]]'
  3265. ;;
  3266. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3267. symcode='[[ABDT]]'
  3268. ;;
  3269. sysv4)
  3270. symcode='[[DFNSTU]]'
  3271. ;;
  3272. esac
  3273. # If we're using GNU nm, then use its standard symbol codes.
  3274. case `$NM -V 2>&1` in
  3275. *GNU* | *'with BFD'*)
  3276. symcode='[[ABCDGIRSTW]]' ;;
  3277. esac
  3278. # Transform an extracted symbol line into a proper C declaration.
  3279. # Some systems (esp. on ia64) link data and code symbols differently,
  3280. # so use this general approach.
  3281. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3282. # Transform an extracted symbol line into symbol name and symbol address
  3283. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3284. 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'"
  3285. # Handle CRLF in mingw tool chain
  3286. opt_cr=
  3287. case $build_os in
  3288. mingw*)
  3289. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3290. ;;
  3291. esac
  3292. # Try without a prefix underscore, then with it.
  3293. for ac_symprfx in "" "_"; do
  3294. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3295. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3296. # Write the raw and C identifiers.
  3297. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3298. # Fake it for dumpbin and say T for any non-static function
  3299. # and D for any global variable.
  3300. # Also find C++ and __fastcall symbols from MSVC++,
  3301. # which start with @ or ?.
  3302. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3303. " {last_section=section; section=\$ 3};"\
  3304. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3305. " \$ 0!~/External *\|/{next};"\
  3306. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3307. " {if(hide[section]) next};"\
  3308. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3309. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3310. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3311. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3312. " ' prfx=^$ac_symprfx]"
  3313. else
  3314. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3315. fi
  3316. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3317. # Check to see that the pipe works correctly.
  3318. pipe_works=no
  3319. rm -f conftest*
  3320. cat > conftest.$ac_ext <<_LT_EOF
  3321. #ifdef __cplusplus
  3322. extern "C" {
  3323. #endif
  3324. char nm_test_var;
  3325. void nm_test_func(void);
  3326. void nm_test_func(void){}
  3327. #ifdef __cplusplus
  3328. }
  3329. #endif
  3330. int main(){nm_test_var='a';nm_test_func();return(0);}
  3331. _LT_EOF
  3332. if AC_TRY_EVAL(ac_compile); then
  3333. # Now try to grab the symbols.
  3334. nlist=conftest.nm
  3335. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3336. # Try sorting and uniquifying the output.
  3337. if sort "$nlist" | uniq > "$nlist"T; then
  3338. mv -f "$nlist"T "$nlist"
  3339. else
  3340. rm -f "$nlist"T
  3341. fi
  3342. # Make sure that we snagged all the symbols we need.
  3343. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3344. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3345. cat <<_LT_EOF > conftest.$ac_ext
  3346. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3347. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3348. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3349. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3350. # define LT@&t@_DLSYM_CONST
  3351. #elif defined(__osf__)
  3352. /* This system does not cope well with relocations in const data. */
  3353. # define LT@&t@_DLSYM_CONST
  3354. #else
  3355. # define LT@&t@_DLSYM_CONST const
  3356. #endif
  3357. #ifdef __cplusplus
  3358. extern "C" {
  3359. #endif
  3360. _LT_EOF
  3361. # Now generate the symbol file.
  3362. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3363. cat <<_LT_EOF >> conftest.$ac_ext
  3364. /* The mapping between symbol names and symbols. */
  3365. LT@&t@_DLSYM_CONST struct {
  3366. const char *name;
  3367. void *address;
  3368. }
  3369. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3370. {
  3371. { "@PROGRAM@", (void *) 0 },
  3372. _LT_EOF
  3373. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3374. cat <<\_LT_EOF >> conftest.$ac_ext
  3375. {0, (void *) 0}
  3376. };
  3377. /* This works around a problem in FreeBSD linker */
  3378. #ifdef FREEBSD_WORKAROUND
  3379. static const void *lt_preloaded_setup() {
  3380. return lt__PROGRAM__LTX_preloaded_symbols;
  3381. }
  3382. #endif
  3383. #ifdef __cplusplus
  3384. }
  3385. #endif
  3386. _LT_EOF
  3387. # Now try linking the two files.
  3388. mv conftest.$ac_objext conftstm.$ac_objext
  3389. lt_globsym_save_LIBS=$LIBS
  3390. lt_globsym_save_CFLAGS=$CFLAGS
  3391. LIBS="conftstm.$ac_objext"
  3392. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3393. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3394. pipe_works=yes
  3395. fi
  3396. LIBS=$lt_globsym_save_LIBS
  3397. CFLAGS=$lt_globsym_save_CFLAGS
  3398. else
  3399. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3400. fi
  3401. else
  3402. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3403. fi
  3404. else
  3405. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3406. fi
  3407. else
  3408. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3409. cat conftest.$ac_ext >&5
  3410. fi
  3411. rm -rf conftest* conftst*
  3412. # Do not use the global_symbol_pipe unless it works.
  3413. if test "$pipe_works" = yes; then
  3414. break
  3415. else
  3416. lt_cv_sys_global_symbol_pipe=
  3417. fi
  3418. done
  3419. ])
  3420. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3421. lt_cv_sys_global_symbol_to_cdecl=
  3422. fi
  3423. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3424. AC_MSG_RESULT(failed)
  3425. else
  3426. AC_MSG_RESULT(ok)
  3427. fi
  3428. # Response file support.
  3429. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3430. nm_file_list_spec='@'
  3431. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3432. nm_file_list_spec='@'
  3433. fi
  3434. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3435. [Take the output of nm and produce a listing of raw symbols and C names])
  3436. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3437. [Transform the output of nm in a proper C declaration])
  3438. _LT_DECL([global_symbol_to_c_name_address],
  3439. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3440. [Transform the output of nm in a C name address pair])
  3441. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3442. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3443. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3444. _LT_DECL([], [nm_file_list_spec], [1],
  3445. [Specify filename containing input files for $NM])
  3446. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3447. # _LT_COMPILER_PIC([TAGNAME])
  3448. # ---------------------------
  3449. m4_defun([_LT_COMPILER_PIC],
  3450. [m4_require([_LT_TAG_COMPILER])dnl
  3451. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3452. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3453. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3454. m4_if([$1], [CXX], [
  3455. # C++ specific cases for pic, static, wl, etc.
  3456. if test "$GXX" = yes; then
  3457. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3458. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3459. case $host_os in
  3460. aix*)
  3461. # All AIX code is PIC.
  3462. if test "$host_cpu" = ia64; then
  3463. # AIX 5 now supports IA64 processor
  3464. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3465. fi
  3466. ;;
  3467. amigaos*)
  3468. case $host_cpu in
  3469. powerpc)
  3470. # see comment about AmigaOS4 .so support
  3471. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3472. ;;
  3473. m68k)
  3474. # FIXME: we need at least 68020 code to build shared libraries, but
  3475. # adding the `-m68020' flag to GCC prevents building anything better,
  3476. # like `-m68040'.
  3477. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3478. ;;
  3479. esac
  3480. ;;
  3481. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3482. # PIC is the default for these OSes.
  3483. ;;
  3484. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3485. # This hack is so that the source file can tell whether it is being
  3486. # built for inclusion in a dll (and should export symbols for example).
  3487. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3488. # (--disable-auto-import) libraries
  3489. m4_if([$1], [GCJ], [],
  3490. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3491. ;;
  3492. darwin* | rhapsody*)
  3493. # PIC is the default on this platform
  3494. # Common symbols not allowed in MH_DYLIB files
  3495. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3496. ;;
  3497. *djgpp*)
  3498. # DJGPP does not support shared libraries at all
  3499. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3500. ;;
  3501. haiku*)
  3502. # PIC is the default for Haiku.
  3503. # The "-static" flag exists, but is broken.
  3504. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3505. ;;
  3506. interix[[3-9]]*)
  3507. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3508. # Instead, we relocate shared libraries at runtime.
  3509. ;;
  3510. sysv4*MP*)
  3511. if test -d /usr/nec; then
  3512. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3513. fi
  3514. ;;
  3515. hpux*)
  3516. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3517. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3518. # sets the default TLS model and affects inlining.
  3519. case $host_cpu in
  3520. hppa*64*)
  3521. ;;
  3522. *)
  3523. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3524. ;;
  3525. esac
  3526. ;;
  3527. *qnx* | *nto*)
  3528. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3529. # it will coredump.
  3530. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3531. ;;
  3532. *)
  3533. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3534. ;;
  3535. esac
  3536. else
  3537. case $host_os in
  3538. aix[[4-9]]*)
  3539. # All AIX code is PIC.
  3540. if test "$host_cpu" = ia64; then
  3541. # AIX 5 now supports IA64 processor
  3542. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3543. else
  3544. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3545. fi
  3546. ;;
  3547. chorus*)
  3548. case $cc_basename in
  3549. cxch68*)
  3550. # Green Hills C++ Compiler
  3551. # _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"
  3552. ;;
  3553. esac
  3554. ;;
  3555. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3556. # This hack is so that the source file can tell whether it is being
  3557. # built for inclusion in a dll (and should export symbols for example).
  3558. m4_if([$1], [GCJ], [],
  3559. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3560. ;;
  3561. dgux*)
  3562. case $cc_basename in
  3563. ec++*)
  3564. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3565. ;;
  3566. ghcx*)
  3567. # Green Hills C++ Compiler
  3568. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3569. ;;
  3570. *)
  3571. ;;
  3572. esac
  3573. ;;
  3574. freebsd* | dragonfly*)
  3575. # FreeBSD uses GNU C++
  3576. ;;
  3577. hpux9* | hpux10* | hpux11*)
  3578. case $cc_basename in
  3579. CC*)
  3580. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3581. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3582. if test "$host_cpu" != ia64; then
  3583. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3584. fi
  3585. ;;
  3586. aCC*)
  3587. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3588. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3589. case $host_cpu in
  3590. hppa*64*|ia64*)
  3591. # +Z the default
  3592. ;;
  3593. *)
  3594. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3595. ;;
  3596. esac
  3597. ;;
  3598. *)
  3599. ;;
  3600. esac
  3601. ;;
  3602. interix*)
  3603. # This is c89, which is MS Visual C++ (no shared libs)
  3604. # Anyone wants to do a port?
  3605. ;;
  3606. irix5* | irix6* | nonstopux*)
  3607. case $cc_basename in
  3608. CC*)
  3609. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3610. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3611. # CC pic flag -KPIC is the default.
  3612. ;;
  3613. *)
  3614. ;;
  3615. esac
  3616. ;;
  3617. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3618. case $cc_basename in
  3619. KCC*)
  3620. # KAI C++ Compiler
  3621. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3622. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3623. ;;
  3624. ecpc* )
  3625. # old Intel C++ for x86_64 which still supported -KPIC.
  3626. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3627. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3628. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3629. ;;
  3630. icpc* )
  3631. # Intel C++, used to be incompatible with GCC.
  3632. # ICC 10 doesn't accept -KPIC any more.
  3633. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3634. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3635. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3636. ;;
  3637. pgCC* | pgcpp*)
  3638. # Portland Group C++ compiler
  3639. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3640. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3641. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3642. ;;
  3643. cxx*)
  3644. # Compaq C++
  3645. # Make sure the PIC flag is empty. It appears that all Alpha
  3646. # Linux and Compaq Tru64 Unix objects are PIC.
  3647. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3648. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3649. ;;
  3650. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3651. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3652. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3653. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3654. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3655. ;;
  3656. *)
  3657. case `$CC -V 2>&1 | sed 5q` in
  3658. *Sun\ C*)
  3659. # Sun C++ 5.9
  3660. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3661. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3662. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3663. ;;
  3664. esac
  3665. ;;
  3666. esac
  3667. ;;
  3668. lynxos*)
  3669. ;;
  3670. m88k*)
  3671. ;;
  3672. mvs*)
  3673. case $cc_basename in
  3674. cxx*)
  3675. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3676. ;;
  3677. *)
  3678. ;;
  3679. esac
  3680. ;;
  3681. netbsd*)
  3682. ;;
  3683. *qnx* | *nto*)
  3684. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3685. # it will coredump.
  3686. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3687. ;;
  3688. osf3* | osf4* | osf5*)
  3689. case $cc_basename in
  3690. KCC*)
  3691. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3692. ;;
  3693. RCC*)
  3694. # Rational C++ 2.4.1
  3695. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3696. ;;
  3697. cxx*)
  3698. # Digital/Compaq C++
  3699. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3700. # Make sure the PIC flag is empty. It appears that all Alpha
  3701. # Linux and Compaq Tru64 Unix objects are PIC.
  3702. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3703. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3704. ;;
  3705. *)
  3706. ;;
  3707. esac
  3708. ;;
  3709. psos*)
  3710. ;;
  3711. solaris*)
  3712. case $cc_basename in
  3713. CC* | sunCC*)
  3714. # Sun C++ 4.2, 5.x and Centerline C++
  3715. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3716. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3717. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3718. ;;
  3719. gcx*)
  3720. # Green Hills C++ Compiler
  3721. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3722. ;;
  3723. *)
  3724. ;;
  3725. esac
  3726. ;;
  3727. sunos4*)
  3728. case $cc_basename in
  3729. CC*)
  3730. # Sun C++ 4.x
  3731. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3732. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3733. ;;
  3734. lcc*)
  3735. # Lucid
  3736. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3737. ;;
  3738. *)
  3739. ;;
  3740. esac
  3741. ;;
  3742. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3743. case $cc_basename in
  3744. CC*)
  3745. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3746. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3747. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3748. ;;
  3749. esac
  3750. ;;
  3751. tandem*)
  3752. case $cc_basename in
  3753. NCC*)
  3754. # NonStop-UX NCC 3.20
  3755. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3756. ;;
  3757. *)
  3758. ;;
  3759. esac
  3760. ;;
  3761. vxworks*)
  3762. ;;
  3763. *)
  3764. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3765. ;;
  3766. esac
  3767. fi
  3768. ],
  3769. [
  3770. if test "$GCC" = yes; then
  3771. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3772. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3773. case $host_os in
  3774. aix*)
  3775. # All AIX code is PIC.
  3776. if test "$host_cpu" = ia64; then
  3777. # AIX 5 now supports IA64 processor
  3778. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3779. fi
  3780. ;;
  3781. amigaos*)
  3782. case $host_cpu in
  3783. powerpc)
  3784. # see comment about AmigaOS4 .so support
  3785. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3786. ;;
  3787. m68k)
  3788. # FIXME: we need at least 68020 code to build shared libraries, but
  3789. # adding the `-m68020' flag to GCC prevents building anything better,
  3790. # like `-m68040'.
  3791. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3792. ;;
  3793. esac
  3794. ;;
  3795. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3796. # PIC is the default for these OSes.
  3797. ;;
  3798. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3799. # This hack is so that the source file can tell whether it is being
  3800. # built for inclusion in a dll (and should export symbols for example).
  3801. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3802. # (--disable-auto-import) libraries
  3803. m4_if([$1], [GCJ], [],
  3804. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3805. ;;
  3806. darwin* | rhapsody*)
  3807. # PIC is the default on this platform
  3808. # Common symbols not allowed in MH_DYLIB files
  3809. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3810. ;;
  3811. haiku*)
  3812. # PIC is the default for Haiku.
  3813. # The "-static" flag exists, but is broken.
  3814. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3815. ;;
  3816. hpux*)
  3817. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3818. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3819. # sets the default TLS model and affects inlining.
  3820. case $host_cpu in
  3821. hppa*64*)
  3822. # +Z the default
  3823. ;;
  3824. *)
  3825. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3826. ;;
  3827. esac
  3828. ;;
  3829. interix[[3-9]]*)
  3830. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3831. # Instead, we relocate shared libraries at runtime.
  3832. ;;
  3833. msdosdjgpp*)
  3834. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3835. # on systems that don't support them.
  3836. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3837. enable_shared=no
  3838. ;;
  3839. *nto* | *qnx*)
  3840. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3841. # it will coredump.
  3842. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3843. ;;
  3844. sysv4*MP*)
  3845. if test -d /usr/nec; then
  3846. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3847. fi
  3848. ;;
  3849. *)
  3850. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3851. ;;
  3852. esac
  3853. case $cc_basename in
  3854. nvcc*) # Cuda Compiler Driver 2.2
  3855. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  3856. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
  3857. ;;
  3858. esac
  3859. else
  3860. # PORTME Check for flag to pass linker flags through the system compiler.
  3861. case $host_os in
  3862. aix*)
  3863. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3864. if test "$host_cpu" = ia64; then
  3865. # AIX 5 now supports IA64 processor
  3866. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3867. else
  3868. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3869. fi
  3870. ;;
  3871. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3872. # This hack is so that the source file can tell whether it is being
  3873. # built for inclusion in a dll (and should export symbols for example).
  3874. m4_if([$1], [GCJ], [],
  3875. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3876. ;;
  3877. hpux9* | hpux10* | hpux11*)
  3878. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3879. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3880. # not for PA HP-UX.
  3881. case $host_cpu in
  3882. hppa*64*|ia64*)
  3883. # +Z the default
  3884. ;;
  3885. *)
  3886. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3887. ;;
  3888. esac
  3889. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3890. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3891. ;;
  3892. irix5* | irix6* | nonstopux*)
  3893. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3894. # PIC (with -KPIC) is the default.
  3895. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3896. ;;
  3897. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3898. case $cc_basename in
  3899. # old Intel for x86_64 which still supported -KPIC.
  3900. ecc*)
  3901. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3902. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3903. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3904. ;;
  3905. # icc used to be incompatible with GCC.
  3906. # ICC 10 doesn't accept -KPIC any more.
  3907. icc* | ifort*)
  3908. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3909. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3910. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3911. ;;
  3912. # Lahey Fortran 8.1.
  3913. lf95*)
  3914. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3915. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  3916. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  3917. ;;
  3918. nagfor*)
  3919. # NAG Fortran compiler
  3920. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  3921. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3922. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3923. ;;
  3924. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  3925. # Portland Group compilers (*not* the Pentium gcc compiler,
  3926. # which looks to be a dead project)
  3927. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3928. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3929. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3930. ;;
  3931. ccc*)
  3932. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3933. # All Alpha code is PIC.
  3934. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3935. ;;
  3936. xl* | bgxl* | bgf* | mpixl*)
  3937. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  3938. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3939. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3940. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3941. ;;
  3942. *)
  3943. case `$CC -V 2>&1 | sed 5q` in
  3944. *Sun\ F* | *Sun*Fortran*)
  3945. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  3946. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3947. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3948. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  3949. ;;
  3950. *Sun\ C*)
  3951. # Sun C 5.9
  3952. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3953. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3954. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3955. ;;
  3956. esac
  3957. ;;
  3958. esac
  3959. ;;
  3960. newsos6)
  3961. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3962. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3963. ;;
  3964. *nto* | *qnx*)
  3965. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3966. # it will coredump.
  3967. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3968. ;;
  3969. osf3* | osf4* | osf5*)
  3970. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3971. # All OSF/1 code is PIC.
  3972. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3973. ;;
  3974. rdos*)
  3975. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3976. ;;
  3977. solaris*)
  3978. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3979. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3980. case $cc_basename in
  3981. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  3982. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  3983. *)
  3984. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  3985. esac
  3986. ;;
  3987. sunos4*)
  3988. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3989. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3990. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3991. ;;
  3992. sysv4 | sysv4.2uw2* | sysv4.3*)
  3993. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3994. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3995. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3996. ;;
  3997. sysv4*MP*)
  3998. if test -d /usr/nec ;then
  3999. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4000. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4001. fi
  4002. ;;
  4003. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4004. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4005. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4006. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4007. ;;
  4008. unicos*)
  4009. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4010. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4011. ;;
  4012. uts4*)
  4013. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4014. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4015. ;;
  4016. *)
  4017. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4018. ;;
  4019. esac
  4020. fi
  4021. ])
  4022. case $host_os in
  4023. # For platforms which do not support PIC, -DPIC is meaningless:
  4024. *djgpp*)
  4025. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4026. ;;
  4027. *)
  4028. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4029. ;;
  4030. esac
  4031. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4032. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4033. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4034. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4035. #
  4036. # Check to make sure the PIC flag actually works.
  4037. #
  4038. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4039. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4040. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4041. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4042. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4043. "" | " "*) ;;
  4044. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4045. esac],
  4046. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4047. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4048. fi
  4049. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4050. [Additional compiler flags for building library objects])
  4051. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4052. [How to pass a linker flag through the compiler])
  4053. #
  4054. # Check to make sure the static flag actually works.
  4055. #
  4056. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4057. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4058. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4059. $lt_tmp_static_flag,
  4060. [],
  4061. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4062. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4063. [Compiler flag to prevent dynamic linking])
  4064. ])# _LT_COMPILER_PIC
  4065. # _LT_LINKER_SHLIBS([TAGNAME])
  4066. # ----------------------------
  4067. # See if the linker supports building shared libraries.
  4068. m4_defun([_LT_LINKER_SHLIBS],
  4069. [AC_REQUIRE([LT_PATH_LD])dnl
  4070. AC_REQUIRE([LT_PATH_NM])dnl
  4071. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4072. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4073. m4_require([_LT_DECL_EGREP])dnl
  4074. m4_require([_LT_DECL_SED])dnl
  4075. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4076. m4_require([_LT_TAG_COMPILER])dnl
  4077. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4078. m4_if([$1], [CXX], [
  4079. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4080. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4081. case $host_os in
  4082. aix[[4-9]]*)
  4083. # If we're using GNU nm, then we don't want the "-C" option.
  4084. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4085. # Also, AIX nm treats weak defined symbols like other global defined
  4086. # symbols, whereas GNU nm marks them as "W".
  4087. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4088. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4089. else
  4090. _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'
  4091. fi
  4092. ;;
  4093. pw32*)
  4094. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4095. ;;
  4096. cygwin* | mingw* | cegcc*)
  4097. case $cc_basename in
  4098. cl*) ;;
  4099. *)
  4100. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4101. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4102. ;;
  4103. esac
  4104. ;;
  4105. *)
  4106. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4107. ;;
  4108. esac
  4109. ], [
  4110. runpath_var=
  4111. _LT_TAGVAR(allow_undefined_flag, $1)=
  4112. _LT_TAGVAR(always_export_symbols, $1)=no
  4113. _LT_TAGVAR(archive_cmds, $1)=
  4114. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4115. _LT_TAGVAR(compiler_needs_object, $1)=no
  4116. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4117. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4118. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4119. _LT_TAGVAR(hardcode_automatic, $1)=no
  4120. _LT_TAGVAR(hardcode_direct, $1)=no
  4121. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4122. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4123. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4124. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4125. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4126. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4127. _LT_TAGVAR(inherit_rpath, $1)=no
  4128. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4129. _LT_TAGVAR(module_cmds, $1)=
  4130. _LT_TAGVAR(module_expsym_cmds, $1)=
  4131. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4132. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4133. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4134. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4135. # include_expsyms should be a list of space-separated symbols to be *always*
  4136. # included in the symbol list
  4137. _LT_TAGVAR(include_expsyms, $1)=
  4138. # exclude_expsyms can be an extended regexp of symbols to exclude
  4139. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4140. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4141. # as well as any symbol that contains `d'.
  4142. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4143. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4144. # platforms (ab)use it in PIC code, but their linkers get confused if
  4145. # the symbol is explicitly referenced. Since portable code cannot
  4146. # rely on this symbol name, it's probably fine to never include it in
  4147. # preloaded symbol tables.
  4148. # Exclude shared library initialization/finalization symbols.
  4149. dnl Note also adjust exclude_expsyms for C++ above.
  4150. extract_expsyms_cmds=
  4151. case $host_os in
  4152. cygwin* | mingw* | pw32* | cegcc*)
  4153. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4154. # When not using gcc, we currently assume that we are using
  4155. # Microsoft Visual C++.
  4156. if test "$GCC" != yes; then
  4157. with_gnu_ld=no
  4158. fi
  4159. ;;
  4160. interix*)
  4161. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4162. with_gnu_ld=yes
  4163. ;;
  4164. openbsd*)
  4165. with_gnu_ld=no
  4166. ;;
  4167. esac
  4168. _LT_TAGVAR(ld_shlibs, $1)=yes
  4169. # On some targets, GNU ld is compatible enough with the native linker
  4170. # that we're better off using the native interface for both.
  4171. lt_use_gnu_ld_interface=no
  4172. if test "$with_gnu_ld" = yes; then
  4173. case $host_os in
  4174. aix*)
  4175. # The AIX port of GNU ld has always aspired to compatibility
  4176. # with the native linker. However, as the warning in the GNU ld
  4177. # block says, versions before 2.19.5* couldn't really create working
  4178. # shared libraries, regardless of the interface used.
  4179. case `$LD -v 2>&1` in
  4180. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4181. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4182. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4183. *)
  4184. lt_use_gnu_ld_interface=yes
  4185. ;;
  4186. esac
  4187. ;;
  4188. *)
  4189. lt_use_gnu_ld_interface=yes
  4190. ;;
  4191. esac
  4192. fi
  4193. if test "$lt_use_gnu_ld_interface" = yes; then
  4194. # If archive_cmds runs LD, not CC, wlarc should be empty
  4195. wlarc='${wl}'
  4196. # Set some defaults for GNU ld with shared library support. These
  4197. # are reset later if shared libraries are not supported. Putting them
  4198. # here allows them to be overridden if necessary.
  4199. runpath_var=LD_RUN_PATH
  4200. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4201. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4202. # ancient GNU ld didn't support --whole-archive et. al.
  4203. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4204. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4205. else
  4206. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4207. fi
  4208. supports_anon_versioning=no
  4209. case `$LD -v 2>&1` in
  4210. *GNU\ gold*) supports_anon_versioning=yes ;;
  4211. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4212. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4213. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4214. *\ 2.11.*) ;; # other 2.11 versions
  4215. *) supports_anon_versioning=yes ;;
  4216. esac
  4217. # See if GNU ld supports shared libraries.
  4218. case $host_os in
  4219. aix[[3-9]]*)
  4220. # On AIX/PPC, the GNU linker is very broken
  4221. if test "$host_cpu" != ia64; then
  4222. _LT_TAGVAR(ld_shlibs, $1)=no
  4223. cat <<_LT_EOF 1>&2
  4224. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4225. *** to be unable to reliably create shared libraries on AIX.
  4226. *** Therefore, libtool is disabling shared libraries support. If you
  4227. *** really care for shared libraries, you may want to install binutils
  4228. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4229. *** You will then need to restart the configuration process.
  4230. _LT_EOF
  4231. fi
  4232. ;;
  4233. amigaos*)
  4234. case $host_cpu in
  4235. powerpc)
  4236. # see comment about AmigaOS4 .so support
  4237. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4238. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4239. ;;
  4240. m68k)
  4241. _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)'
  4242. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4243. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4244. ;;
  4245. esac
  4246. ;;
  4247. beos*)
  4248. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4249. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4250. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4251. # support --undefined. This deserves some investigation. FIXME
  4252. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4253. else
  4254. _LT_TAGVAR(ld_shlibs, $1)=no
  4255. fi
  4256. ;;
  4257. cygwin* | mingw* | pw32* | cegcc*)
  4258. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4259. # as there is no search path for DLLs.
  4260. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4261. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4262. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4263. _LT_TAGVAR(always_export_symbols, $1)=no
  4264. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4265. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4266. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4267. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4268. _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'
  4269. # If the export-symbols file already is a .def file (1st line
  4270. # is EXPORTS), use it as is; otherwise, prepend...
  4271. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4272. cp $export_symbols $output_objdir/$soname.def;
  4273. else
  4274. echo EXPORTS > $output_objdir/$soname.def;
  4275. cat $export_symbols >> $output_objdir/$soname.def;
  4276. fi~
  4277. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4278. else
  4279. _LT_TAGVAR(ld_shlibs, $1)=no
  4280. fi
  4281. ;;
  4282. haiku*)
  4283. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4284. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4285. ;;
  4286. interix[[3-9]]*)
  4287. _LT_TAGVAR(hardcode_direct, $1)=no
  4288. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4289. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4290. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4291. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4292. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4293. # default) and relocated if they conflict, which is a slow very memory
  4294. # consuming and fragmenting process. To avoid this, we pick a random,
  4295. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4296. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4297. _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'
  4298. _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'
  4299. ;;
  4300. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4301. tmp_diet=no
  4302. if test "$host_os" = linux-dietlibc; then
  4303. case $cc_basename in
  4304. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4305. esac
  4306. fi
  4307. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4308. && test "$tmp_diet" = no
  4309. then
  4310. tmp_addflag=' $pic_flag'
  4311. tmp_sharedflag='-shared'
  4312. case $cc_basename,$host_cpu in
  4313. pgcc*) # Portland Group C compiler
  4314. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4315. tmp_addflag=' $pic_flag'
  4316. ;;
  4317. pgf77* | pgf90* | pgf95* | pgfortran*)
  4318. # Portland Group f77 and f90 compilers
  4319. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4320. tmp_addflag=' $pic_flag -Mnomain' ;;
  4321. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4322. tmp_addflag=' -i_dynamic' ;;
  4323. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4324. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4325. ifc* | ifort*) # Intel Fortran compiler
  4326. tmp_addflag=' -nofor_main' ;;
  4327. lf95*) # Lahey Fortran 8.1
  4328. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4329. tmp_sharedflag='--shared' ;;
  4330. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4331. tmp_sharedflag='-qmkshrobj'
  4332. tmp_addflag= ;;
  4333. nvcc*) # Cuda Compiler Driver 2.2
  4334. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4335. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4336. ;;
  4337. esac
  4338. case `$CC -V 2>&1 | sed 5q` in
  4339. *Sun\ C*) # Sun C 5.9
  4340. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4341. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4342. tmp_sharedflag='-G' ;;
  4343. *Sun\ F*) # Sun Fortran 8.3
  4344. tmp_sharedflag='-G' ;;
  4345. esac
  4346. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4347. if test "x$supports_anon_versioning" = xyes; then
  4348. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4349. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4350. echo "local: *; };" >> $output_objdir/$libname.ver~
  4351. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4352. fi
  4353. case $cc_basename in
  4354. xlf* | bgf* | bgxlf* | mpixlf*)
  4355. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4356. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4357. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4358. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  4359. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4360. if test "x$supports_anon_versioning" = xyes; then
  4361. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4362. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4363. echo "local: *; };" >> $output_objdir/$libname.ver~
  4364. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4365. fi
  4366. ;;
  4367. esac
  4368. else
  4369. _LT_TAGVAR(ld_shlibs, $1)=no
  4370. fi
  4371. ;;
  4372. netbsd*)
  4373. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4374. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4375. wlarc=
  4376. else
  4377. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4378. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4379. fi
  4380. ;;
  4381. solaris*)
  4382. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4383. _LT_TAGVAR(ld_shlibs, $1)=no
  4384. cat <<_LT_EOF 1>&2
  4385. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4386. *** create shared libraries on Solaris systems. Therefore, libtool
  4387. *** is disabling shared libraries support. We urge you to upgrade GNU
  4388. *** binutils to release 2.9.1 or newer. Another option is to modify
  4389. *** your PATH or compiler configuration so that the native linker is
  4390. *** used, and then restart.
  4391. _LT_EOF
  4392. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4393. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4394. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4395. else
  4396. _LT_TAGVAR(ld_shlibs, $1)=no
  4397. fi
  4398. ;;
  4399. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4400. case `$LD -v 2>&1` in
  4401. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4402. _LT_TAGVAR(ld_shlibs, $1)=no
  4403. cat <<_LT_EOF 1>&2
  4404. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4405. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4406. *** is disabling shared libraries support. We urge you to upgrade GNU
  4407. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4408. *** your PATH or compiler configuration so that the native linker is
  4409. *** used, and then restart.
  4410. _LT_EOF
  4411. ;;
  4412. *)
  4413. # For security reasons, it is highly recommended that you always
  4414. # use absolute paths for naming shared libraries, and exclude the
  4415. # DT_RUNPATH tag from executables and libraries. But doing so
  4416. # requires that you compile everything twice, which is a pain.
  4417. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4418. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4419. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4420. _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'
  4421. else
  4422. _LT_TAGVAR(ld_shlibs, $1)=no
  4423. fi
  4424. ;;
  4425. esac
  4426. ;;
  4427. sunos4*)
  4428. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4429. wlarc=
  4430. _LT_TAGVAR(hardcode_direct, $1)=yes
  4431. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4432. ;;
  4433. *)
  4434. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4435. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4436. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4437. else
  4438. _LT_TAGVAR(ld_shlibs, $1)=no
  4439. fi
  4440. ;;
  4441. esac
  4442. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4443. runpath_var=
  4444. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4445. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4446. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4447. fi
  4448. else
  4449. # PORTME fill in a description of your system's linker (not GNU ld)
  4450. case $host_os in
  4451. aix3*)
  4452. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4453. _LT_TAGVAR(always_export_symbols, $1)=yes
  4454. _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'
  4455. # Note: this linker hardcodes the directories in LIBPATH if there
  4456. # are no directories specified by -L.
  4457. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4458. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4459. # Neither direct hardcoding nor static linking is supported with a
  4460. # broken collect2.
  4461. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4462. fi
  4463. ;;
  4464. aix[[4-9]]*)
  4465. if test "$host_cpu" = ia64; then
  4466. # On IA64, the linker does run time linking by default, so we don't
  4467. # have to do anything special.
  4468. aix_use_runtimelinking=no
  4469. exp_sym_flag='-Bexport'
  4470. no_entry_flag=""
  4471. else
  4472. # If we're using GNU nm, then we don't want the "-C" option.
  4473. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4474. # Also, AIX nm treats weak defined symbols like other global
  4475. # defined symbols, whereas GNU nm marks them as "W".
  4476. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4477. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4478. else
  4479. _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'
  4480. fi
  4481. aix_use_runtimelinking=no
  4482. # Test if we are trying to use run time linking or normal
  4483. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4484. # need to do runtime linking.
  4485. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4486. for ld_flag in $LDFLAGS; do
  4487. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4488. aix_use_runtimelinking=yes
  4489. break
  4490. fi
  4491. done
  4492. ;;
  4493. esac
  4494. exp_sym_flag='-bexport'
  4495. no_entry_flag='-bnoentry'
  4496. fi
  4497. # When large executables or shared objects are built, AIX ld can
  4498. # have problems creating the table of contents. If linking a library
  4499. # or program results in "error TOC overflow" add -mminimal-toc to
  4500. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4501. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4502. _LT_TAGVAR(archive_cmds, $1)=''
  4503. _LT_TAGVAR(hardcode_direct, $1)=yes
  4504. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4505. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4506. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4507. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4508. if test "$GCC" = yes; then
  4509. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4510. # We only want to do this on AIX 4.2 and lower, the check
  4511. # below for broken collect2 doesn't work under 4.3+
  4512. collect2name=`${CC} -print-prog-name=collect2`
  4513. if test -f "$collect2name" &&
  4514. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4515. then
  4516. # We have reworked collect2
  4517. :
  4518. else
  4519. # We have old collect2
  4520. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4521. # It fails to find uninstalled libraries when the uninstalled
  4522. # path is not listed in the libpath. Setting hardcode_minus_L
  4523. # to unsupported forces relinking
  4524. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4525. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4526. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4527. fi
  4528. ;;
  4529. esac
  4530. shared_flag='-shared'
  4531. if test "$aix_use_runtimelinking" = yes; then
  4532. shared_flag="$shared_flag "'${wl}-G'
  4533. fi
  4534. else
  4535. # not using gcc
  4536. if test "$host_cpu" = ia64; then
  4537. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4538. # chokes on -Wl,-G. The following line is correct:
  4539. shared_flag='-G'
  4540. else
  4541. if test "$aix_use_runtimelinking" = yes; then
  4542. shared_flag='${wl}-G'
  4543. else
  4544. shared_flag='${wl}-bM:SRE'
  4545. fi
  4546. fi
  4547. fi
  4548. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4549. # It seems that -bexpall does not export symbols beginning with
  4550. # underscore (_), so it is better to generate a list of symbols to export.
  4551. _LT_TAGVAR(always_export_symbols, $1)=yes
  4552. if test "$aix_use_runtimelinking" = yes; then
  4553. # Warning - without using the other runtime loading flags (-brtl),
  4554. # -berok will link without error, but may produce a broken library.
  4555. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4556. # Determine the default libpath from the value encoded in an
  4557. # empty executable.
  4558. _LT_SYS_MODULE_PATH_AIX([$1])
  4559. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4560. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4561. else
  4562. if test "$host_cpu" = ia64; then
  4563. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4564. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4565. _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"
  4566. else
  4567. # Determine the default libpath from the value encoded in an
  4568. # empty executable.
  4569. _LT_SYS_MODULE_PATH_AIX([$1])
  4570. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4571. # Warning - without using the other run time loading flags,
  4572. # -berok will link without error, but may produce a broken library.
  4573. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4574. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4575. if test "$with_gnu_ld" = yes; then
  4576. # We only use this code for GNU lds that support --whole-archive.
  4577. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4578. else
  4579. # Exported symbols can be pulled into shared objects from archives
  4580. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4581. fi
  4582. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4583. # This is similar to how AIX traditionally builds its shared libraries.
  4584. _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'
  4585. fi
  4586. fi
  4587. ;;
  4588. amigaos*)
  4589. case $host_cpu in
  4590. powerpc)
  4591. # see comment about AmigaOS4 .so support
  4592. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4593. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4594. ;;
  4595. m68k)
  4596. _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)'
  4597. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4598. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4599. ;;
  4600. esac
  4601. ;;
  4602. bsdi[[45]]*)
  4603. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4604. ;;
  4605. cygwin* | mingw* | pw32* | cegcc*)
  4606. # When not using gcc, we currently assume that we are using
  4607. # Microsoft Visual C++.
  4608. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4609. # no search path for DLLs.
  4610. case $cc_basename in
  4611. cl*)
  4612. # Native MSVC
  4613. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4614. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4615. _LT_TAGVAR(always_export_symbols, $1)=yes
  4616. _LT_TAGVAR(file_list_spec, $1)='@'
  4617. # Tell ltmain to make .lib files, not .a files.
  4618. libext=lib
  4619. # Tell ltmain to make .dll files, not .so files.
  4620. shrext_cmds=".dll"
  4621. # FIXME: Setting linknames here is a bad hack.
  4622. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  4623. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4624. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  4625. else
  4626. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  4627. fi~
  4628. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4629. linknames='
  4630. # The linker will not automatically build a static lib if we build a DLL.
  4631. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4632. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4633. _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'
  4634. # Don't use ranlib
  4635. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  4636. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  4637. lt_tool_outputfile="@TOOL_OUTPUT@"~
  4638. case $lt_outputfile in
  4639. *.exe|*.EXE) ;;
  4640. *)
  4641. lt_outputfile="$lt_outputfile.exe"
  4642. lt_tool_outputfile="$lt_tool_outputfile.exe"
  4643. ;;
  4644. esac~
  4645. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  4646. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4647. $RM "$lt_outputfile.manifest";
  4648. fi'
  4649. ;;
  4650. *)
  4651. # Assume MSVC wrapper
  4652. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4653. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4654. # Tell ltmain to make .lib files, not .a files.
  4655. libext=lib
  4656. # Tell ltmain to make .dll files, not .so files.
  4657. shrext_cmds=".dll"
  4658. # FIXME: Setting linknames here is a bad hack.
  4659. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4660. # The linker will automatically build a .lib file if we build a DLL.
  4661. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4662. # FIXME: Should let the user specify the lib program.
  4663. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4664. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4665. ;;
  4666. esac
  4667. ;;
  4668. darwin* | rhapsody*)
  4669. _LT_DARWIN_LINKER_FEATURES($1)
  4670. ;;
  4671. dgux*)
  4672. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4673. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4674. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4675. ;;
  4676. freebsd1*)
  4677. _LT_TAGVAR(ld_shlibs, $1)=no
  4678. ;;
  4679. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4680. # support. Future versions do this automatically, but an explicit c++rt0.o
  4681. # does not break anything, and helps significantly (at the cost of a little
  4682. # extra space).
  4683. freebsd2.2*)
  4684. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4685. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4686. _LT_TAGVAR(hardcode_direct, $1)=yes
  4687. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4688. ;;
  4689. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4690. freebsd2*)
  4691. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4692. _LT_TAGVAR(hardcode_direct, $1)=yes
  4693. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4694. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4695. ;;
  4696. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4697. freebsd* | dragonfly*)
  4698. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4699. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4700. _LT_TAGVAR(hardcode_direct, $1)=yes
  4701. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4702. ;;
  4703. hpux9*)
  4704. if test "$GCC" = yes; then
  4705. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4706. else
  4707. _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'
  4708. fi
  4709. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4710. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4711. _LT_TAGVAR(hardcode_direct, $1)=yes
  4712. # hardcode_minus_L: Not really in the search PATH,
  4713. # but as the default location of the library.
  4714. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4715. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4716. ;;
  4717. hpux10*)
  4718. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4719. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4720. else
  4721. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4722. fi
  4723. if test "$with_gnu_ld" = no; then
  4724. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4725. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4726. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4727. _LT_TAGVAR(hardcode_direct, $1)=yes
  4728. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4729. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4730. # hardcode_minus_L: Not really in the search PATH,
  4731. # but as the default location of the library.
  4732. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4733. fi
  4734. ;;
  4735. hpux11*)
  4736. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4737. case $host_cpu in
  4738. hppa*64*)
  4739. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4740. ;;
  4741. ia64*)
  4742. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4743. ;;
  4744. *)
  4745. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4746. ;;
  4747. esac
  4748. else
  4749. case $host_cpu in
  4750. hppa*64*)
  4751. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4752. ;;
  4753. ia64*)
  4754. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4755. ;;
  4756. *)
  4757. m4_if($1, [], [
  4758. # Older versions of the 11.00 compiler do not understand -b yet
  4759. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4760. _LT_LINKER_OPTION([if $CC understands -b],
  4761. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4762. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4763. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4764. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4765. ;;
  4766. esac
  4767. fi
  4768. if test "$with_gnu_ld" = no; then
  4769. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4770. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4771. case $host_cpu in
  4772. hppa*64*|ia64*)
  4773. _LT_TAGVAR(hardcode_direct, $1)=no
  4774. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4775. ;;
  4776. *)
  4777. _LT_TAGVAR(hardcode_direct, $1)=yes
  4778. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4779. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4780. # hardcode_minus_L: Not really in the search PATH,
  4781. # but as the default location of the library.
  4782. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4783. ;;
  4784. esac
  4785. fi
  4786. ;;
  4787. irix5* | irix6* | nonstopux*)
  4788. if test "$GCC" = yes; then
  4789. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4790. # Try to use the -exported_symbol ld option, if it does not
  4791. # work, assume that -exports_file does not work either and
  4792. # implicitly export all symbols.
  4793. # This should be the same for all languages, so no per-tag cache variable.
  4794. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  4795. [lt_cv_irix_exported_symbol],
  4796. [save_LDFLAGS="$LDFLAGS"
  4797. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4798. AC_LINK_IFELSE(
  4799. [AC_LANG_SOURCE(
  4800. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  4801. [C++], [[int foo (void) { return 0; }]],
  4802. [Fortran 77], [[
  4803. subroutine foo
  4804. end]],
  4805. [Fortran], [[
  4806. subroutine foo
  4807. end]])])],
  4808. [lt_cv_irix_exported_symbol=yes],
  4809. [lt_cv_irix_exported_symbol=no])
  4810. LDFLAGS="$save_LDFLAGS"])
  4811. if test "$lt_cv_irix_exported_symbol" = yes; then
  4812. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  4813. fi
  4814. else
  4815. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4816. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  4817. fi
  4818. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4819. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4820. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4821. _LT_TAGVAR(inherit_rpath, $1)=yes
  4822. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4823. ;;
  4824. netbsd*)
  4825. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4826. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4827. else
  4828. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4829. fi
  4830. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4831. _LT_TAGVAR(hardcode_direct, $1)=yes
  4832. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4833. ;;
  4834. newsos6)
  4835. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4836. _LT_TAGVAR(hardcode_direct, $1)=yes
  4837. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4838. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4839. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4840. ;;
  4841. *nto* | *qnx*)
  4842. ;;
  4843. openbsd*)
  4844. if test -f /usr/libexec/ld.so; then
  4845. _LT_TAGVAR(hardcode_direct, $1)=yes
  4846. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4847. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4848. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4849. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4850. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4851. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4852. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4853. else
  4854. case $host_os in
  4855. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4856. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4857. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4858. ;;
  4859. *)
  4860. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4861. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4862. ;;
  4863. esac
  4864. fi
  4865. else
  4866. _LT_TAGVAR(ld_shlibs, $1)=no
  4867. fi
  4868. ;;
  4869. os2*)
  4870. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4871. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4872. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4873. _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'
  4874. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4875. ;;
  4876. osf3*)
  4877. if test "$GCC" = yes; then
  4878. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4879. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4880. else
  4881. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4882. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4883. fi
  4884. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4885. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4886. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4887. ;;
  4888. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4889. if test "$GCC" = yes; then
  4890. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4891. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4892. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4893. else
  4894. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4895. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4896. _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~
  4897. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  4898. # Both c and cxx compiler support -rpath directly
  4899. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4900. fi
  4901. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4902. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4903. ;;
  4904. solaris*)
  4905. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4906. if test "$GCC" = yes; then
  4907. wlarc='${wl}'
  4908. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4909. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4910. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4911. else
  4912. case `$CC -V 2>&1` in
  4913. *"Compilers 5.0"*)
  4914. wlarc=''
  4915. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4916. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4917. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4918. ;;
  4919. *)
  4920. wlarc='${wl}'
  4921. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4922. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4923. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4924. ;;
  4925. esac
  4926. fi
  4927. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4928. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4929. case $host_os in
  4930. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4931. *)
  4932. # The compiler driver will combine and reorder linker options,
  4933. # but understands `-z linker_flag'. GCC discards it without `$wl',
  4934. # but is careful enough not to reorder.
  4935. # Supported since Solaris 2.6 (maybe 2.5.1?)
  4936. if test "$GCC" = yes; then
  4937. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4938. else
  4939. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4940. fi
  4941. ;;
  4942. esac
  4943. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4944. ;;
  4945. sunos4*)
  4946. if test "x$host_vendor" = xsequent; then
  4947. # Use $CC to link under sequent, because it throws in some extra .o
  4948. # files that make .init and .fini sections work.
  4949. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4950. else
  4951. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  4952. fi
  4953. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4954. _LT_TAGVAR(hardcode_direct, $1)=yes
  4955. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4956. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4957. ;;
  4958. sysv4)
  4959. case $host_vendor in
  4960. sni)
  4961. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4962. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  4963. ;;
  4964. siemens)
  4965. ## LD is ld it makes a PLAMLIB
  4966. ## CC just makes a GrossModule.
  4967. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  4968. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  4969. _LT_TAGVAR(hardcode_direct, $1)=no
  4970. ;;
  4971. motorola)
  4972. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4973. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  4974. ;;
  4975. esac
  4976. runpath_var='LD_RUN_PATH'
  4977. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4978. ;;
  4979. sysv4.3*)
  4980. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4981. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4982. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  4983. ;;
  4984. sysv4*MP*)
  4985. if test -d /usr/nec; then
  4986. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4987. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4988. runpath_var=LD_RUN_PATH
  4989. hardcode_runpath_var=yes
  4990. _LT_TAGVAR(ld_shlibs, $1)=yes
  4991. fi
  4992. ;;
  4993. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  4994. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4995. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  4996. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4997. runpath_var='LD_RUN_PATH'
  4998. if test "$GCC" = yes; then
  4999. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5000. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5001. else
  5002. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5003. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5004. fi
  5005. ;;
  5006. sysv5* | sco3.2v5* | sco5v6*)
  5007. # Note: We can NOT use -z defs as we might desire, because we do not
  5008. # link with -lc, and that would cause any symbols used from libc to
  5009. # always be unresolved, which means just about no library would
  5010. # ever link correctly. If we're not using GNU ld we use -z text
  5011. # though, which does catch some bad symbols but isn't as heavy-handed
  5012. # as -z defs.
  5013. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5014. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5015. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5016. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5017. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5018. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5019. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5020. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5021. runpath_var='LD_RUN_PATH'
  5022. if test "$GCC" = yes; then
  5023. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5024. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5025. else
  5026. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5027. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5028. fi
  5029. ;;
  5030. uts4*)
  5031. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5032. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5033. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5034. ;;
  5035. *)
  5036. _LT_TAGVAR(ld_shlibs, $1)=no
  5037. ;;
  5038. esac
  5039. if test x$host_vendor = xsni; then
  5040. case $host in
  5041. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5042. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5043. ;;
  5044. esac
  5045. fi
  5046. fi
  5047. ])
  5048. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5049. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5050. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5051. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5052. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5053. _LT_DECL([], [extract_expsyms_cmds], [2],
  5054. [The commands to extract the exported symbol list from a shared archive])
  5055. #
  5056. # Do we need to explicitly link libc?
  5057. #
  5058. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5059. x|xyes)
  5060. # Assume -lc should be added
  5061. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5062. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5063. case $_LT_TAGVAR(archive_cmds, $1) in
  5064. *'~'*)
  5065. # FIXME: we may have to deal with multi-command sequences.
  5066. ;;
  5067. '$CC '*)
  5068. # Test whether the compiler implicitly links with -lc since on some
  5069. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5070. # to ld, don't add -lc before -lgcc.
  5071. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5072. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5073. [$RM conftest*
  5074. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5075. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5076. soname=conftest
  5077. lib=conftest
  5078. libobjs=conftest.$ac_objext
  5079. deplibs=
  5080. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5081. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5082. compiler_flags=-v
  5083. linker_flags=-v
  5084. verstring=
  5085. output_objdir=.
  5086. libname=conftest
  5087. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5088. _LT_TAGVAR(allow_undefined_flag, $1)=
  5089. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5090. then
  5091. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5092. else
  5093. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5094. fi
  5095. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5096. else
  5097. cat conftest.err 1>&5
  5098. fi
  5099. $RM conftest*
  5100. ])
  5101. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5102. ;;
  5103. esac
  5104. fi
  5105. ;;
  5106. esac
  5107. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5108. [Whether or not to add -lc for building shared libraries])
  5109. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5110. [enable_shared_with_static_runtimes], [0],
  5111. [Whether or not to disallow shared libs when runtime libs are static])
  5112. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5113. [Compiler flag to allow reflexive dlopens])
  5114. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5115. [Compiler flag to generate shared objects directly from archives])
  5116. _LT_TAGDECL([], [compiler_needs_object], [1],
  5117. [Whether the compiler copes with passing no objects directly])
  5118. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5119. [Create an old-style archive from a shared archive])
  5120. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5121. [Create a temporary old-style archive to link instead of a shared archive])
  5122. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5123. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5124. _LT_TAGDECL([], [module_cmds], [2],
  5125. [Commands used to build a loadable module if different from building
  5126. a shared archive.])
  5127. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5128. _LT_TAGDECL([], [with_gnu_ld], [1],
  5129. [Whether we are building with GNU ld or not])
  5130. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5131. [Flag that allows shared libraries with undefined symbols to be built])
  5132. _LT_TAGDECL([], [no_undefined_flag], [1],
  5133. [Flag that enforces no undefined symbols])
  5134. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5135. [Flag to hardcode $libdir into a binary during linking.
  5136. This must work even if $libdir does not exist])
  5137. _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  5138. [[If ld is used when linking, flag to hardcode $libdir into a binary
  5139. during linking. This must work even if $libdir does not exist]])
  5140. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5141. [Whether we need a single "-rpath" flag with a separated argument])
  5142. _LT_TAGDECL([], [hardcode_direct], [0],
  5143. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5144. DIR into the resulting binary])
  5145. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5146. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5147. DIR into the resulting binary and the resulting library dependency is
  5148. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5149. library is relocated])
  5150. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5151. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5152. into the resulting binary])
  5153. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5154. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5155. into the resulting binary])
  5156. _LT_TAGDECL([], [hardcode_automatic], [0],
  5157. [Set to "yes" if building a shared library automatically hardcodes DIR
  5158. into the library and all subsequent libraries and executables linked
  5159. against it])
  5160. _LT_TAGDECL([], [inherit_rpath], [0],
  5161. [Set to yes if linker adds runtime paths of dependent libraries
  5162. to runtime path list])
  5163. _LT_TAGDECL([], [link_all_deplibs], [0],
  5164. [Whether libtool must link a program against all its dependency libraries])
  5165. _LT_TAGDECL([], [always_export_symbols], [0],
  5166. [Set to "yes" if exported symbols are required])
  5167. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5168. [The commands to list exported symbols])
  5169. _LT_TAGDECL([], [exclude_expsyms], [1],
  5170. [Symbols that should not be listed in the preloaded symbols])
  5171. _LT_TAGDECL([], [include_expsyms], [1],
  5172. [Symbols that must always be exported])
  5173. _LT_TAGDECL([], [prelink_cmds], [2],
  5174. [Commands necessary for linking programs (against libraries) with templates])
  5175. _LT_TAGDECL([], [postlink_cmds], [2],
  5176. [Commands necessary for finishing linking programs])
  5177. _LT_TAGDECL([], [file_list_spec], [1],
  5178. [Specify filename containing input files])
  5179. dnl FIXME: Not yet implemented
  5180. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5181. dnl [Compiler flag to generate thread safe objects])
  5182. ])# _LT_LINKER_SHLIBS
  5183. # _LT_LANG_C_CONFIG([TAG])
  5184. # ------------------------
  5185. # Ensure that the configuration variables for a C compiler are suitably
  5186. # defined. These variables are subsequently used by _LT_CONFIG to write
  5187. # the compiler configuration to `libtool'.
  5188. m4_defun([_LT_LANG_C_CONFIG],
  5189. [m4_require([_LT_DECL_EGREP])dnl
  5190. lt_save_CC="$CC"
  5191. AC_LANG_PUSH(C)
  5192. # Source file extension for C test sources.
  5193. ac_ext=c
  5194. # Object file extension for compiled C test sources.
  5195. objext=o
  5196. _LT_TAGVAR(objext, $1)=$objext
  5197. # Code to be used in simple compile tests
  5198. lt_simple_compile_test_code="int some_variable = 0;"
  5199. # Code to be used in simple link tests
  5200. lt_simple_link_test_code='int main(){return(0);}'
  5201. _LT_TAG_COMPILER
  5202. # Save the default compiler, since it gets overwritten when the other
  5203. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5204. compiler_DEFAULT=$CC
  5205. # save warnings/boilerplate of simple test code
  5206. _LT_COMPILER_BOILERPLATE
  5207. _LT_LINKER_BOILERPLATE
  5208. if test -n "$compiler"; then
  5209. _LT_COMPILER_NO_RTTI($1)
  5210. _LT_COMPILER_PIC($1)
  5211. _LT_COMPILER_C_O($1)
  5212. _LT_COMPILER_FILE_LOCKS($1)
  5213. _LT_LINKER_SHLIBS($1)
  5214. _LT_SYS_DYNAMIC_LINKER($1)
  5215. _LT_LINKER_HARDCODE_LIBPATH($1)
  5216. LT_SYS_DLOPEN_SELF
  5217. _LT_CMD_STRIPLIB
  5218. # Report which library types will actually be built
  5219. AC_MSG_CHECKING([if libtool supports shared libraries])
  5220. AC_MSG_RESULT([$can_build_shared])
  5221. AC_MSG_CHECKING([whether to build shared libraries])
  5222. test "$can_build_shared" = "no" && enable_shared=no
  5223. # On AIX, shared libraries and static libraries use the same namespace, and
  5224. # are all built from PIC.
  5225. case $host_os in
  5226. aix3*)
  5227. test "$enable_shared" = yes && enable_static=no
  5228. if test -n "$RANLIB"; then
  5229. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5230. postinstall_cmds='$RANLIB $lib'
  5231. fi
  5232. ;;
  5233. aix[[4-9]]*)
  5234. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5235. test "$enable_shared" = yes && enable_static=no
  5236. fi
  5237. ;;
  5238. esac
  5239. AC_MSG_RESULT([$enable_shared])
  5240. AC_MSG_CHECKING([whether to build static libraries])
  5241. # Make sure either enable_shared or enable_static is yes.
  5242. test "$enable_shared" = yes || enable_static=yes
  5243. AC_MSG_RESULT([$enable_static])
  5244. _LT_CONFIG($1)
  5245. fi
  5246. AC_LANG_POP
  5247. CC="$lt_save_CC"
  5248. ])# _LT_LANG_C_CONFIG
  5249. # _LT_LANG_CXX_CONFIG([TAG])
  5250. # --------------------------
  5251. # Ensure that the configuration variables for a C++ compiler are suitably
  5252. # defined. These variables are subsequently used by _LT_CONFIG to write
  5253. # the compiler configuration to `libtool'.
  5254. m4_defun([_LT_LANG_CXX_CONFIG],
  5255. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5256. m4_require([_LT_DECL_EGREP])dnl
  5257. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5258. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5259. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5260. (test "X$CXX" != "Xg++"))) ; then
  5261. AC_PROG_CXXCPP
  5262. else
  5263. _lt_caught_CXX_error=yes
  5264. fi
  5265. AC_LANG_PUSH(C++)
  5266. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5267. _LT_TAGVAR(allow_undefined_flag, $1)=
  5268. _LT_TAGVAR(always_export_symbols, $1)=no
  5269. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5270. _LT_TAGVAR(compiler_needs_object, $1)=no
  5271. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5272. _LT_TAGVAR(hardcode_direct, $1)=no
  5273. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5274. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5275. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5276. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5277. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5278. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5279. _LT_TAGVAR(hardcode_automatic, $1)=no
  5280. _LT_TAGVAR(inherit_rpath, $1)=no
  5281. _LT_TAGVAR(module_cmds, $1)=
  5282. _LT_TAGVAR(module_expsym_cmds, $1)=
  5283. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5284. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5285. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5286. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5287. _LT_TAGVAR(no_undefined_flag, $1)=
  5288. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5289. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5290. # Source file extension for C++ test sources.
  5291. ac_ext=cpp
  5292. # Object file extension for compiled C++ test sources.
  5293. objext=o
  5294. _LT_TAGVAR(objext, $1)=$objext
  5295. # No sense in running all these tests if we already determined that
  5296. # the CXX compiler isn't working. Some variables (like enable_shared)
  5297. # are currently assumed to apply to all compilers on this platform,
  5298. # and will be corrupted by setting them based on a non-working compiler.
  5299. if test "$_lt_caught_CXX_error" != yes; then
  5300. # Code to be used in simple compile tests
  5301. lt_simple_compile_test_code="int some_variable = 0;"
  5302. # Code to be used in simple link tests
  5303. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5304. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5305. _LT_TAG_COMPILER
  5306. # save warnings/boilerplate of simple test code
  5307. _LT_COMPILER_BOILERPLATE
  5308. _LT_LINKER_BOILERPLATE
  5309. # Allow CC to be a program name with arguments.
  5310. lt_save_CC=$CC
  5311. lt_save_CFLAGS=$CFLAGS
  5312. lt_save_LD=$LD
  5313. lt_save_GCC=$GCC
  5314. GCC=$GXX
  5315. lt_save_with_gnu_ld=$with_gnu_ld
  5316. lt_save_path_LD=$lt_cv_path_LD
  5317. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5318. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5319. else
  5320. $as_unset lt_cv_prog_gnu_ld
  5321. fi
  5322. if test -n "${lt_cv_path_LDCXX+set}"; then
  5323. lt_cv_path_LD=$lt_cv_path_LDCXX
  5324. else
  5325. $as_unset lt_cv_path_LD
  5326. fi
  5327. test -z "${LDCXX+set}" || LD=$LDCXX
  5328. CC=${CXX-"c++"}
  5329. CFLAGS=$CXXFLAGS
  5330. compiler=$CC
  5331. _LT_TAGVAR(compiler, $1)=$CC
  5332. _LT_CC_BASENAME([$compiler])
  5333. if test -n "$compiler"; then
  5334. # We don't want -fno-exception when compiling C++ code, so set the
  5335. # no_builtin_flag separately
  5336. if test "$GXX" = yes; then
  5337. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5338. else
  5339. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5340. fi
  5341. if test "$GXX" = yes; then
  5342. # Set up default GNU C++ configuration
  5343. LT_PATH_LD
  5344. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5345. # archiving commands below assume that GNU ld is being used.
  5346. if test "$with_gnu_ld" = yes; then
  5347. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5348. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5349. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5350. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5351. # If archive_cmds runs LD, not CC, wlarc should be empty
  5352. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5353. # investigate it a little bit more. (MM)
  5354. wlarc='${wl}'
  5355. # ancient GNU ld didn't support --whole-archive et. al.
  5356. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5357. $GREP 'no-whole-archive' > /dev/null; then
  5358. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5359. else
  5360. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5361. fi
  5362. else
  5363. with_gnu_ld=no
  5364. wlarc=
  5365. # A generic and very simple default shared library creation
  5366. # command for GNU C++ for the case where it uses the native
  5367. # linker, instead of GNU ld. If possible, this setting should
  5368. # overridden to take advantage of the native linker features on
  5369. # the platform it is being used on.
  5370. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5371. fi
  5372. # Commands to make compiler produce verbose output that lists
  5373. # what "hidden" libraries, object files and flags are used when
  5374. # linking a shared library.
  5375. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5376. else
  5377. GXX=no
  5378. with_gnu_ld=no
  5379. wlarc=
  5380. fi
  5381. # PORTME: fill in a description of your system's C++ link characteristics
  5382. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5383. _LT_TAGVAR(ld_shlibs, $1)=yes
  5384. case $host_os in
  5385. aix3*)
  5386. # FIXME: insert proper C++ library support
  5387. _LT_TAGVAR(ld_shlibs, $1)=no
  5388. ;;
  5389. aix[[4-9]]*)
  5390. if test "$host_cpu" = ia64; then
  5391. # On IA64, the linker does run time linking by default, so we don't
  5392. # have to do anything special.
  5393. aix_use_runtimelinking=no
  5394. exp_sym_flag='-Bexport'
  5395. no_entry_flag=""
  5396. else
  5397. aix_use_runtimelinking=no
  5398. # Test if we are trying to use run time linking or normal
  5399. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5400. # need to do runtime linking.
  5401. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5402. for ld_flag in $LDFLAGS; do
  5403. case $ld_flag in
  5404. *-brtl*)
  5405. aix_use_runtimelinking=yes
  5406. break
  5407. ;;
  5408. esac
  5409. done
  5410. ;;
  5411. esac
  5412. exp_sym_flag='-bexport'
  5413. no_entry_flag='-bnoentry'
  5414. fi
  5415. # When large executables or shared objects are built, AIX ld can
  5416. # have problems creating the table of contents. If linking a library
  5417. # or program results in "error TOC overflow" add -mminimal-toc to
  5418. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5419. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5420. _LT_TAGVAR(archive_cmds, $1)=''
  5421. _LT_TAGVAR(hardcode_direct, $1)=yes
  5422. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5423. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5424. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5425. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5426. if test "$GXX" = yes; then
  5427. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5428. # We only want to do this on AIX 4.2 and lower, the check
  5429. # below for broken collect2 doesn't work under 4.3+
  5430. collect2name=`${CC} -print-prog-name=collect2`
  5431. if test -f "$collect2name" &&
  5432. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5433. then
  5434. # We have reworked collect2
  5435. :
  5436. else
  5437. # We have old collect2
  5438. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5439. # It fails to find uninstalled libraries when the uninstalled
  5440. # path is not listed in the libpath. Setting hardcode_minus_L
  5441. # to unsupported forces relinking
  5442. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5443. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5444. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5445. fi
  5446. esac
  5447. shared_flag='-shared'
  5448. if test "$aix_use_runtimelinking" = yes; then
  5449. shared_flag="$shared_flag "'${wl}-G'
  5450. fi
  5451. else
  5452. # not using gcc
  5453. if test "$host_cpu" = ia64; then
  5454. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5455. # chokes on -Wl,-G. The following line is correct:
  5456. shared_flag='-G'
  5457. else
  5458. if test "$aix_use_runtimelinking" = yes; then
  5459. shared_flag='${wl}-G'
  5460. else
  5461. shared_flag='${wl}-bM:SRE'
  5462. fi
  5463. fi
  5464. fi
  5465. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5466. # It seems that -bexpall does not export symbols beginning with
  5467. # underscore (_), so it is better to generate a list of symbols to
  5468. # export.
  5469. _LT_TAGVAR(always_export_symbols, $1)=yes
  5470. if test "$aix_use_runtimelinking" = yes; then
  5471. # Warning - without using the other runtime loading flags (-brtl),
  5472. # -berok will link without error, but may produce a broken library.
  5473. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5474. # Determine the default libpath from the value encoded in an empty
  5475. # executable.
  5476. _LT_SYS_MODULE_PATH_AIX([$1])
  5477. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5478. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5479. else
  5480. if test "$host_cpu" = ia64; then
  5481. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5482. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5483. _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"
  5484. else
  5485. # Determine the default libpath from the value encoded in an
  5486. # empty executable.
  5487. _LT_SYS_MODULE_PATH_AIX([$1])
  5488. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5489. # Warning - without using the other run time loading flags,
  5490. # -berok will link without error, but may produce a broken library.
  5491. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5492. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5493. if test "$with_gnu_ld" = yes; then
  5494. # We only use this code for GNU lds that support --whole-archive.
  5495. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5496. else
  5497. # Exported symbols can be pulled into shared objects from archives
  5498. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5499. fi
  5500. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5501. # This is similar to how AIX traditionally builds its shared
  5502. # libraries.
  5503. _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'
  5504. fi
  5505. fi
  5506. ;;
  5507. beos*)
  5508. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5509. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5510. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5511. # support --undefined. This deserves some investigation. FIXME
  5512. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5513. else
  5514. _LT_TAGVAR(ld_shlibs, $1)=no
  5515. fi
  5516. ;;
  5517. chorus*)
  5518. case $cc_basename in
  5519. *)
  5520. # FIXME: insert proper C++ library support
  5521. _LT_TAGVAR(ld_shlibs, $1)=no
  5522. ;;
  5523. esac
  5524. ;;
  5525. cygwin* | mingw* | pw32* | cegcc*)
  5526. case $GXX,$cc_basename in
  5527. ,cl* | no,cl*)
  5528. # Native MSVC
  5529. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5530. # no search path for DLLs.
  5531. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5532. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5533. _LT_TAGVAR(always_export_symbols, $1)=yes
  5534. _LT_TAGVAR(file_list_spec, $1)='@'
  5535. # Tell ltmain to make .lib files, not .a files.
  5536. libext=lib
  5537. # Tell ltmain to make .dll files, not .so files.
  5538. shrext_cmds=".dll"
  5539. # FIXME: Setting linknames here is a bad hack.
  5540. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5541. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5542. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5543. else
  5544. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5545. fi~
  5546. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5547. linknames='
  5548. # The linker will not automatically build a static lib if we build a DLL.
  5549. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5550. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5551. # Don't use ranlib
  5552. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5553. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5554. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5555. case $lt_outputfile in
  5556. *.exe|*.EXE) ;;
  5557. *)
  5558. lt_outputfile="$lt_outputfile.exe"
  5559. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5560. ;;
  5561. esac~
  5562. func_to_tool_file "$lt_outputfile"~
  5563. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5564. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5565. $RM "$lt_outputfile.manifest";
  5566. fi'
  5567. ;;
  5568. *)
  5569. # g++
  5570. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5571. # as there is no search path for DLLs.
  5572. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5573. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5574. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5575. _LT_TAGVAR(always_export_symbols, $1)=no
  5576. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5577. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5578. _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'
  5579. # If the export-symbols file already is a .def file (1st line
  5580. # is EXPORTS), use it as is; otherwise, prepend...
  5581. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5582. cp $export_symbols $output_objdir/$soname.def;
  5583. else
  5584. echo EXPORTS > $output_objdir/$soname.def;
  5585. cat $export_symbols >> $output_objdir/$soname.def;
  5586. fi~
  5587. $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'
  5588. else
  5589. _LT_TAGVAR(ld_shlibs, $1)=no
  5590. fi
  5591. ;;
  5592. esac
  5593. ;;
  5594. darwin* | rhapsody*)
  5595. _LT_DARWIN_LINKER_FEATURES($1)
  5596. ;;
  5597. dgux*)
  5598. case $cc_basename in
  5599. ec++*)
  5600. # FIXME: insert proper C++ library support
  5601. _LT_TAGVAR(ld_shlibs, $1)=no
  5602. ;;
  5603. ghcx*)
  5604. # Green Hills C++ Compiler
  5605. # FIXME: insert proper C++ library support
  5606. _LT_TAGVAR(ld_shlibs, $1)=no
  5607. ;;
  5608. *)
  5609. # FIXME: insert proper C++ library support
  5610. _LT_TAGVAR(ld_shlibs, $1)=no
  5611. ;;
  5612. esac
  5613. ;;
  5614. freebsd[[12]]*)
  5615. # C++ shared libraries reported to be fairly broken before
  5616. # switch to ELF
  5617. _LT_TAGVAR(ld_shlibs, $1)=no
  5618. ;;
  5619. freebsd-elf*)
  5620. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5621. ;;
  5622. freebsd* | dragonfly*)
  5623. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5624. # conventions
  5625. _LT_TAGVAR(ld_shlibs, $1)=yes
  5626. ;;
  5627. gnu*)
  5628. ;;
  5629. haiku*)
  5630. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5631. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5632. ;;
  5633. hpux9*)
  5634. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5635. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5636. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5637. _LT_TAGVAR(hardcode_direct, $1)=yes
  5638. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5639. # but as the default
  5640. # location of the library.
  5641. case $cc_basename in
  5642. CC*)
  5643. # FIXME: insert proper C++ library support
  5644. _LT_TAGVAR(ld_shlibs, $1)=no
  5645. ;;
  5646. aCC*)
  5647. _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'
  5648. # Commands to make compiler produce verbose output that lists
  5649. # what "hidden" libraries, object files and flags are used when
  5650. # linking a shared library.
  5651. #
  5652. # There doesn't appear to be a way to prevent this compiler from
  5653. # explicitly linking system object files so we need to strip them
  5654. # from the output so that they don't get included in the library
  5655. # dependencies.
  5656. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  5657. ;;
  5658. *)
  5659. if test "$GXX" = yes; then
  5660. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5661. else
  5662. # FIXME: insert proper C++ library support
  5663. _LT_TAGVAR(ld_shlibs, $1)=no
  5664. fi
  5665. ;;
  5666. esac
  5667. ;;
  5668. hpux10*|hpux11*)
  5669. if test $with_gnu_ld = no; then
  5670. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5671. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5672. case $host_cpu in
  5673. hppa*64*|ia64*)
  5674. ;;
  5675. *)
  5676. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5677. ;;
  5678. esac
  5679. fi
  5680. case $host_cpu in
  5681. hppa*64*|ia64*)
  5682. _LT_TAGVAR(hardcode_direct, $1)=no
  5683. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5684. ;;
  5685. *)
  5686. _LT_TAGVAR(hardcode_direct, $1)=yes
  5687. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5688. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5689. # but as the default
  5690. # location of the library.
  5691. ;;
  5692. esac
  5693. case $cc_basename in
  5694. CC*)
  5695. # FIXME: insert proper C++ library support
  5696. _LT_TAGVAR(ld_shlibs, $1)=no
  5697. ;;
  5698. aCC*)
  5699. case $host_cpu in
  5700. hppa*64*)
  5701. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5702. ;;
  5703. ia64*)
  5704. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5705. ;;
  5706. *)
  5707. _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'
  5708. ;;
  5709. esac
  5710. # Commands to make compiler produce verbose output that lists
  5711. # what "hidden" libraries, object files and flags are used when
  5712. # linking a shared library.
  5713. #
  5714. # There doesn't appear to be a way to prevent this compiler from
  5715. # explicitly linking system object files so we need to strip them
  5716. # from the output so that they don't get included in the library
  5717. # dependencies.
  5718. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  5719. ;;
  5720. *)
  5721. if test "$GXX" = yes; then
  5722. if test $with_gnu_ld = no; then
  5723. case $host_cpu in
  5724. hppa*64*)
  5725. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5726. ;;
  5727. ia64*)
  5728. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5729. ;;
  5730. *)
  5731. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5732. ;;
  5733. esac
  5734. fi
  5735. else
  5736. # FIXME: insert proper C++ library support
  5737. _LT_TAGVAR(ld_shlibs, $1)=no
  5738. fi
  5739. ;;
  5740. esac
  5741. ;;
  5742. interix[[3-9]]*)
  5743. _LT_TAGVAR(hardcode_direct, $1)=no
  5744. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5745. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5746. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5747. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5748. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5749. # default) and relocated if they conflict, which is a slow very memory
  5750. # consuming and fragmenting process. To avoid this, we pick a random,
  5751. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5752. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5753. _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'
  5754. _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'
  5755. ;;
  5756. irix5* | irix6*)
  5757. case $cc_basename in
  5758. CC*)
  5759. # SGI C++
  5760. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  5761. # Archives containing C++ object files must be created using
  5762. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5763. # necessary to make sure instantiated templates are included
  5764. # in the archive.
  5765. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5766. ;;
  5767. *)
  5768. if test "$GXX" = yes; then
  5769. if test "$with_gnu_ld" = no; then
  5770. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5771. else
  5772. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  5773. fi
  5774. fi
  5775. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5776. ;;
  5777. esac
  5778. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5779. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5780. _LT_TAGVAR(inherit_rpath, $1)=yes
  5781. ;;
  5782. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5783. case $cc_basename in
  5784. KCC*)
  5785. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5786. # KCC will only create a shared library if the output file
  5787. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5788. # to its proper name (with version) after linking.
  5789. _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'
  5790. _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'
  5791. # Commands to make compiler produce verbose output that lists
  5792. # what "hidden" libraries, object files and flags are used when
  5793. # linking a shared library.
  5794. #
  5795. # There doesn't appear to be a way to prevent this compiler from
  5796. # explicitly linking system object files so we need to strip them
  5797. # from the output so that they don't get included in the library
  5798. # dependencies.
  5799. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  5800. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5801. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5802. # Archives containing C++ object files must be created using
  5803. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5804. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5805. ;;
  5806. icpc* | ecpc* )
  5807. # Intel C++
  5808. with_gnu_ld=yes
  5809. # version 8.0 and above of icpc choke on multiply defined symbols
  5810. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5811. # earlier do not add the objects themselves.
  5812. case `$CC -V 2>&1` in
  5813. *"Version 7."*)
  5814. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5815. _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'
  5816. ;;
  5817. *) # Version 8.0 or newer
  5818. tmp_idyn=
  5819. case $host_cpu in
  5820. ia64*) tmp_idyn=' -i_dynamic';;
  5821. esac
  5822. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5823. _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'
  5824. ;;
  5825. esac
  5826. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5827. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5828. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5829. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5830. ;;
  5831. pgCC* | pgcpp*)
  5832. # Portland Group C++ compiler
  5833. case `$CC -V` in
  5834. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  5835. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5836. rm -rf $tpldir~
  5837. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5838. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  5839. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5840. rm -rf $tpldir~
  5841. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5842. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  5843. $RANLIB $oldlib'
  5844. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5845. rm -rf $tpldir~
  5846. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5847. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5848. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5849. rm -rf $tpldir~
  5850. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5851. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  5852. ;;
  5853. *) # Version 6 and above use weak symbols
  5854. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5855. _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'
  5856. ;;
  5857. esac
  5858. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5859. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5860. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5861. ;;
  5862. cxx*)
  5863. # Compaq C++
  5864. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5865. _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'
  5866. runpath_var=LD_RUN_PATH
  5867. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5868. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5869. # Commands to make compiler produce verbose output that lists
  5870. # what "hidden" libraries, object files and flags are used when
  5871. # linking a shared library.
  5872. #
  5873. # There doesn't appear to be a way to prevent this compiler from
  5874. # explicitly linking system object files so we need to strip them
  5875. # from the output so that they don't get included in the library
  5876. # dependencies.
  5877. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  5878. ;;
  5879. xl* | mpixl* | bgxl*)
  5880. # IBM XL 8.0 on PPC, with GNU ld
  5881. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5882. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5883. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5884. if test "x$supports_anon_versioning" = xyes; then
  5885. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5886. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5887. echo "local: *; };" >> $output_objdir/$libname.ver~
  5888. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5889. fi
  5890. ;;
  5891. *)
  5892. case `$CC -V 2>&1 | sed 5q` in
  5893. *Sun\ C*)
  5894. # Sun C++ 5.9
  5895. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5896. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5897. _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'
  5898. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5899. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5900. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5901. # Not sure whether something based on
  5902. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5903. # would be better.
  5904. output_verbose_link_cmd='func_echo_all'
  5905. # Archives containing C++ object files must be created using
  5906. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5907. # necessary to make sure instantiated templates are included
  5908. # in the archive.
  5909. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5910. ;;
  5911. esac
  5912. ;;
  5913. esac
  5914. ;;
  5915. lynxos*)
  5916. # FIXME: insert proper C++ library support
  5917. _LT_TAGVAR(ld_shlibs, $1)=no
  5918. ;;
  5919. m88k*)
  5920. # FIXME: insert proper C++ library support
  5921. _LT_TAGVAR(ld_shlibs, $1)=no
  5922. ;;
  5923. mvs*)
  5924. case $cc_basename in
  5925. cxx*)
  5926. # FIXME: insert proper C++ library support
  5927. _LT_TAGVAR(ld_shlibs, $1)=no
  5928. ;;
  5929. *)
  5930. # FIXME: insert proper C++ library support
  5931. _LT_TAGVAR(ld_shlibs, $1)=no
  5932. ;;
  5933. esac
  5934. ;;
  5935. netbsd*)
  5936. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5937. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5938. wlarc=
  5939. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5940. _LT_TAGVAR(hardcode_direct, $1)=yes
  5941. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5942. fi
  5943. # Workaround some broken pre-1.5 toolchains
  5944. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5945. ;;
  5946. *nto* | *qnx*)
  5947. _LT_TAGVAR(ld_shlibs, $1)=yes
  5948. ;;
  5949. openbsd2*)
  5950. # C++ shared libraries are fairly broken
  5951. _LT_TAGVAR(ld_shlibs, $1)=no
  5952. ;;
  5953. openbsd*)
  5954. if test -f /usr/libexec/ld.so; then
  5955. _LT_TAGVAR(hardcode_direct, $1)=yes
  5956. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5957. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5958. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5959. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5960. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5961. _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'
  5962. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5963. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5964. fi
  5965. output_verbose_link_cmd=func_echo_all
  5966. else
  5967. _LT_TAGVAR(ld_shlibs, $1)=no
  5968. fi
  5969. ;;
  5970. osf3* | osf4* | osf5*)
  5971. case $cc_basename in
  5972. KCC*)
  5973. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5974. # KCC will only create a shared library if the output file
  5975. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5976. # to its proper name (with version) after linking.
  5977. _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'
  5978. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5979. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5980. # Archives containing C++ object files must be created using
  5981. # the KAI C++ compiler.
  5982. case $host in
  5983. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  5984. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  5985. esac
  5986. ;;
  5987. RCC*)
  5988. # Rational C++ 2.4.1
  5989. # FIXME: insert proper C++ library support
  5990. _LT_TAGVAR(ld_shlibs, $1)=no
  5991. ;;
  5992. cxx*)
  5993. case $host in
  5994. osf3*)
  5995. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5996. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  5997. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5998. ;;
  5999. *)
  6000. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6001. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  6002. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6003. echo "-hidden">> $lib.exp~
  6004. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  6005. $RM $lib.exp'
  6006. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6007. ;;
  6008. esac
  6009. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6010. # Commands to make compiler produce verbose output that lists
  6011. # what "hidden" libraries, object files and flags are used when
  6012. # linking a shared library.
  6013. #
  6014. # There doesn't appear to be a way to prevent this compiler from
  6015. # explicitly linking system object files so we need to strip them
  6016. # from the output so that they don't get included in the library
  6017. # dependencies.
  6018. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  6019. ;;
  6020. *)
  6021. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6022. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6023. case $host in
  6024. osf3*)
  6025. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6026. ;;
  6027. *)
  6028. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6029. ;;
  6030. esac
  6031. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6032. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6033. # Commands to make compiler produce verbose output that lists
  6034. # what "hidden" libraries, object files and flags are used when
  6035. # linking a shared library.
  6036. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6037. else
  6038. # FIXME: insert proper C++ library support
  6039. _LT_TAGVAR(ld_shlibs, $1)=no
  6040. fi
  6041. ;;
  6042. esac
  6043. ;;
  6044. psos*)
  6045. # FIXME: insert proper C++ library support
  6046. _LT_TAGVAR(ld_shlibs, $1)=no
  6047. ;;
  6048. sunos4*)
  6049. case $cc_basename in
  6050. CC*)
  6051. # Sun C++ 4.x
  6052. # FIXME: insert proper C++ library support
  6053. _LT_TAGVAR(ld_shlibs, $1)=no
  6054. ;;
  6055. lcc*)
  6056. # Lucid
  6057. # FIXME: insert proper C++ library support
  6058. _LT_TAGVAR(ld_shlibs, $1)=no
  6059. ;;
  6060. *)
  6061. # FIXME: insert proper C++ library support
  6062. _LT_TAGVAR(ld_shlibs, $1)=no
  6063. ;;
  6064. esac
  6065. ;;
  6066. solaris*)
  6067. case $cc_basename in
  6068. CC* | sunCC*)
  6069. # Sun C++ 4.2, 5.x and Centerline C++
  6070. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6071. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6072. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6073. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6074. $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'
  6075. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6076. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6077. case $host_os in
  6078. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6079. *)
  6080. # The compiler driver will combine and reorder linker options,
  6081. # but understands `-z linker_flag'.
  6082. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6083. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6084. ;;
  6085. esac
  6086. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6087. output_verbose_link_cmd='func_echo_all'
  6088. # Archives containing C++ object files must be created using
  6089. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6090. # necessary to make sure instantiated templates are included
  6091. # in the archive.
  6092. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6093. ;;
  6094. gcx*)
  6095. # Green Hills C++ Compiler
  6096. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6097. # The C++ compiler must be used to create the archive.
  6098. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6099. ;;
  6100. *)
  6101. # GNU C++ compiler with Solaris linker
  6102. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6103. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6104. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6105. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6106. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6107. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6108. # Commands to make compiler produce verbose output that lists
  6109. # what "hidden" libraries, object files and flags are used when
  6110. # linking a shared library.
  6111. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6112. else
  6113. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6114. # platform.
  6115. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6116. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6117. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6118. # Commands to make compiler produce verbose output that lists
  6119. # what "hidden" libraries, object files and flags are used when
  6120. # linking a shared library.
  6121. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6122. fi
  6123. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6124. case $host_os in
  6125. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6126. *)
  6127. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6128. ;;
  6129. esac
  6130. fi
  6131. ;;
  6132. esac
  6133. ;;
  6134. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6135. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6136. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6137. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6138. runpath_var='LD_RUN_PATH'
  6139. case $cc_basename in
  6140. CC*)
  6141. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6142. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6143. ;;
  6144. *)
  6145. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6146. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6147. ;;
  6148. esac
  6149. ;;
  6150. sysv5* | sco3.2v5* | sco5v6*)
  6151. # Note: We can NOT use -z defs as we might desire, because we do not
  6152. # link with -lc, and that would cause any symbols used from libc to
  6153. # always be unresolved, which means just about no library would
  6154. # ever link correctly. If we're not using GNU ld we use -z text
  6155. # though, which does catch some bad symbols but isn't as heavy-handed
  6156. # as -z defs.
  6157. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6158. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6159. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6160. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6161. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6162. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6163. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6164. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6165. runpath_var='LD_RUN_PATH'
  6166. case $cc_basename in
  6167. CC*)
  6168. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6169. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6170. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6171. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6172. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6173. '"$_LT_TAGVAR(reload_cmds, $1)"
  6174. ;;
  6175. *)
  6176. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6177. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6178. ;;
  6179. esac
  6180. ;;
  6181. tandem*)
  6182. case $cc_basename in
  6183. NCC*)
  6184. # NonStop-UX NCC 3.20
  6185. # FIXME: insert proper C++ library support
  6186. _LT_TAGVAR(ld_shlibs, $1)=no
  6187. ;;
  6188. *)
  6189. # FIXME: insert proper C++ library support
  6190. _LT_TAGVAR(ld_shlibs, $1)=no
  6191. ;;
  6192. esac
  6193. ;;
  6194. vxworks*)
  6195. # FIXME: insert proper C++ library support
  6196. _LT_TAGVAR(ld_shlibs, $1)=no
  6197. ;;
  6198. *)
  6199. # FIXME: insert proper C++ library support
  6200. _LT_TAGVAR(ld_shlibs, $1)=no
  6201. ;;
  6202. esac
  6203. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6204. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6205. _LT_TAGVAR(GCC, $1)="$GXX"
  6206. _LT_TAGVAR(LD, $1)="$LD"
  6207. ## CAVEAT EMPTOR:
  6208. ## There is no encapsulation within the following macros, do not change
  6209. ## the running order or otherwise move them around unless you know exactly
  6210. ## what you are doing...
  6211. _LT_SYS_HIDDEN_LIBDEPS($1)
  6212. _LT_COMPILER_PIC($1)
  6213. _LT_COMPILER_C_O($1)
  6214. _LT_COMPILER_FILE_LOCKS($1)
  6215. _LT_LINKER_SHLIBS($1)
  6216. _LT_SYS_DYNAMIC_LINKER($1)
  6217. _LT_LINKER_HARDCODE_LIBPATH($1)
  6218. _LT_CONFIG($1)
  6219. fi # test -n "$compiler"
  6220. CC=$lt_save_CC
  6221. CFLAGS=$lt_save_CFLAGS
  6222. LDCXX=$LD
  6223. LD=$lt_save_LD
  6224. GCC=$lt_save_GCC
  6225. with_gnu_ld=$lt_save_with_gnu_ld
  6226. lt_cv_path_LDCXX=$lt_cv_path_LD
  6227. lt_cv_path_LD=$lt_save_path_LD
  6228. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6229. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6230. fi # test "$_lt_caught_CXX_error" != yes
  6231. AC_LANG_POP
  6232. ])# _LT_LANG_CXX_CONFIG
  6233. # _LT_FUNC_STRIPNAME_CNF
  6234. # ----------------------
  6235. # func_stripname_cnf prefix suffix name
  6236. # strip PREFIX and SUFFIX off of NAME.
  6237. # PREFIX and SUFFIX must not contain globbing or regex special
  6238. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6239. # dot (in which case that matches only a dot).
  6240. #
  6241. # This function is identical to the (non-XSI) version of func_stripname,
  6242. # except this one can be used by m4 code that may be executed by configure,
  6243. # rather than the libtool script.
  6244. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6245. AC_REQUIRE([_LT_DECL_SED])
  6246. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6247. func_stripname_cnf ()
  6248. {
  6249. case ${2} in
  6250. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6251. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6252. esac
  6253. } # func_stripname_cnf
  6254. ])# _LT_FUNC_STRIPNAME_CNF
  6255. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6256. # ---------------------------------
  6257. # Figure out "hidden" library dependencies from verbose
  6258. # compiler output when linking a shared library.
  6259. # Parse the compiler output and extract the necessary
  6260. # objects, libraries and library flags.
  6261. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6262. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6263. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6264. # Dependencies to place before and after the object being linked:
  6265. _LT_TAGVAR(predep_objects, $1)=
  6266. _LT_TAGVAR(postdep_objects, $1)=
  6267. _LT_TAGVAR(predeps, $1)=
  6268. _LT_TAGVAR(postdeps, $1)=
  6269. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6270. dnl we can't use the lt_simple_compile_test_code here,
  6271. dnl because it contains code intended for an executable,
  6272. dnl not a library. It's possible we should let each
  6273. dnl tag define a new lt_????_link_test_code variable,
  6274. dnl but it's only used here...
  6275. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6276. int a;
  6277. void foo (void) { a = 0; }
  6278. _LT_EOF
  6279. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6280. class Foo
  6281. {
  6282. public:
  6283. Foo (void) { a = 0; }
  6284. private:
  6285. int a;
  6286. };
  6287. _LT_EOF
  6288. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6289. subroutine foo
  6290. implicit none
  6291. integer*4 a
  6292. a=0
  6293. return
  6294. end
  6295. _LT_EOF
  6296. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6297. subroutine foo
  6298. implicit none
  6299. integer a
  6300. a=0
  6301. return
  6302. end
  6303. _LT_EOF
  6304. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6305. public class foo {
  6306. private int a;
  6307. public void bar (void) {
  6308. a = 0;
  6309. }
  6310. };
  6311. _LT_EOF
  6312. ])
  6313. _lt_libdeps_save_CFLAGS=$CFLAGS
  6314. case "$CC $CFLAGS " in #(
  6315. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6316. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6317. esac
  6318. dnl Parse the compiler output and extract the necessary
  6319. dnl objects, libraries and library flags.
  6320. if AC_TRY_EVAL(ac_compile); then
  6321. # Parse the compiler output and extract the necessary
  6322. # objects, libraries and library flags.
  6323. # Sentinel used to keep track of whether or not we are before
  6324. # the conftest object file.
  6325. pre_test_object_deps_done=no
  6326. for p in `eval "$output_verbose_link_cmd"`; do
  6327. case ${prev}${p} in
  6328. -L* | -R* | -l*)
  6329. # Some compilers place space between "-{L,R}" and the path.
  6330. # Remove the space.
  6331. if test $p = "-L" ||
  6332. test $p = "-R"; then
  6333. prev=$p
  6334. continue
  6335. fi
  6336. # Expand the sysroot to ease extracting the directories later.
  6337. if test -z "$prev"; then
  6338. case $p in
  6339. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6340. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6341. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6342. esac
  6343. fi
  6344. case $p in
  6345. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6346. esac
  6347. if test "$pre_test_object_deps_done" = no; then
  6348. case ${prev} in
  6349. -L | -R)
  6350. # Internal compiler library paths should come after those
  6351. # provided the user. The postdeps already come after the
  6352. # user supplied libs so there is no need to process them.
  6353. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6354. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6355. else
  6356. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6357. fi
  6358. ;;
  6359. # The "-l" case would never come before the object being
  6360. # linked, so don't bother handling this case.
  6361. esac
  6362. else
  6363. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6364. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6365. else
  6366. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6367. fi
  6368. fi
  6369. prev=
  6370. ;;
  6371. *.lto.$objext) ;; # Ignore GCC LTO objects
  6372. *.$objext)
  6373. # This assumes that the test object file only shows up
  6374. # once in the compiler output.
  6375. if test "$p" = "conftest.$objext"; then
  6376. pre_test_object_deps_done=yes
  6377. continue
  6378. fi
  6379. if test "$pre_test_object_deps_done" = no; then
  6380. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6381. _LT_TAGVAR(predep_objects, $1)="$p"
  6382. else
  6383. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6384. fi
  6385. else
  6386. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6387. _LT_TAGVAR(postdep_objects, $1)="$p"
  6388. else
  6389. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6390. fi
  6391. fi
  6392. ;;
  6393. *) ;; # Ignore the rest.
  6394. esac
  6395. done
  6396. # Clean up.
  6397. rm -f a.out a.exe
  6398. else
  6399. echo "libtool.m4: error: problem compiling $1 test program"
  6400. fi
  6401. $RM -f confest.$objext
  6402. CFLAGS=$_lt_libdeps_save_CFLAGS
  6403. # PORTME: override above test on systems where it is broken
  6404. m4_if([$1], [CXX],
  6405. [case $host_os in
  6406. interix[[3-9]]*)
  6407. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6408. # hack all around it, let's just trust "g++" to DTRT.
  6409. _LT_TAGVAR(predep_objects,$1)=
  6410. _LT_TAGVAR(postdep_objects,$1)=
  6411. _LT_TAGVAR(postdeps,$1)=
  6412. ;;
  6413. linux*)
  6414. case `$CC -V 2>&1 | sed 5q` in
  6415. *Sun\ C*)
  6416. # Sun C++ 5.9
  6417. # The more standards-conforming stlport4 library is
  6418. # incompatible with the Cstd library. Avoid specifying
  6419. # it if it's in CXXFLAGS. Ignore libCrun as
  6420. # -library=stlport4 depends on it.
  6421. case " $CXX $CXXFLAGS " in
  6422. *" -library=stlport4 "*)
  6423. solaris_use_stlport4=yes
  6424. ;;
  6425. esac
  6426. if test "$solaris_use_stlport4" != yes; then
  6427. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6428. fi
  6429. ;;
  6430. esac
  6431. ;;
  6432. solaris*)
  6433. case $cc_basename in
  6434. CC* | sunCC*)
  6435. # The more standards-conforming stlport4 library is
  6436. # incompatible with the Cstd library. Avoid specifying
  6437. # it if it's in CXXFLAGS. Ignore libCrun as
  6438. # -library=stlport4 depends on it.
  6439. case " $CXX $CXXFLAGS " in
  6440. *" -library=stlport4 "*)
  6441. solaris_use_stlport4=yes
  6442. ;;
  6443. esac
  6444. # Adding this requires a known-good setup of shared libraries for
  6445. # Sun compiler versions before 5.6, else PIC objects from an old
  6446. # archive will be linked into the output, leading to subtle bugs.
  6447. if test "$solaris_use_stlport4" != yes; then
  6448. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6449. fi
  6450. ;;
  6451. esac
  6452. ;;
  6453. esac
  6454. ])
  6455. case " $_LT_TAGVAR(postdeps, $1) " in
  6456. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6457. esac
  6458. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6459. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6460. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6461. fi
  6462. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6463. [The directories searched by this compiler when creating a shared library])
  6464. _LT_TAGDECL([], [predep_objects], [1],
  6465. [Dependencies to place before and after the objects being linked to
  6466. create a shared library])
  6467. _LT_TAGDECL([], [postdep_objects], [1])
  6468. _LT_TAGDECL([], [predeps], [1])
  6469. _LT_TAGDECL([], [postdeps], [1])
  6470. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6471. [The library search path used internally by the compiler when linking
  6472. a shared library])
  6473. ])# _LT_SYS_HIDDEN_LIBDEPS
  6474. # _LT_LANG_F77_CONFIG([TAG])
  6475. # --------------------------
  6476. # Ensure that the configuration variables for a Fortran 77 compiler are
  6477. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6478. # to write the compiler configuration to `libtool'.
  6479. m4_defun([_LT_LANG_F77_CONFIG],
  6480. [AC_LANG_PUSH(Fortran 77)
  6481. if test -z "$F77" || test "X$F77" = "Xno"; then
  6482. _lt_disable_F77=yes
  6483. fi
  6484. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6485. _LT_TAGVAR(allow_undefined_flag, $1)=
  6486. _LT_TAGVAR(always_export_symbols, $1)=no
  6487. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6488. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6489. _LT_TAGVAR(hardcode_direct, $1)=no
  6490. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6491. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6492. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6493. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6494. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6495. _LT_TAGVAR(hardcode_automatic, $1)=no
  6496. _LT_TAGVAR(inherit_rpath, $1)=no
  6497. _LT_TAGVAR(module_cmds, $1)=
  6498. _LT_TAGVAR(module_expsym_cmds, $1)=
  6499. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6500. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6501. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6502. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6503. _LT_TAGVAR(no_undefined_flag, $1)=
  6504. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6505. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6506. # Source file extension for f77 test sources.
  6507. ac_ext=f
  6508. # Object file extension for compiled f77 test sources.
  6509. objext=o
  6510. _LT_TAGVAR(objext, $1)=$objext
  6511. # No sense in running all these tests if we already determined that
  6512. # the F77 compiler isn't working. Some variables (like enable_shared)
  6513. # are currently assumed to apply to all compilers on this platform,
  6514. # and will be corrupted by setting them based on a non-working compiler.
  6515. if test "$_lt_disable_F77" != yes; then
  6516. # Code to be used in simple compile tests
  6517. lt_simple_compile_test_code="\
  6518. subroutine t
  6519. return
  6520. end
  6521. "
  6522. # Code to be used in simple link tests
  6523. lt_simple_link_test_code="\
  6524. program t
  6525. end
  6526. "
  6527. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6528. _LT_TAG_COMPILER
  6529. # save warnings/boilerplate of simple test code
  6530. _LT_COMPILER_BOILERPLATE
  6531. _LT_LINKER_BOILERPLATE
  6532. # Allow CC to be a program name with arguments.
  6533. lt_save_CC="$CC"
  6534. lt_save_GCC=$GCC
  6535. lt_save_CFLAGS=$CFLAGS
  6536. CC=${F77-"f77"}
  6537. CFLAGS=$FFLAGS
  6538. compiler=$CC
  6539. _LT_TAGVAR(compiler, $1)=$CC
  6540. _LT_CC_BASENAME([$compiler])
  6541. GCC=$G77
  6542. if test -n "$compiler"; then
  6543. AC_MSG_CHECKING([if libtool supports shared libraries])
  6544. AC_MSG_RESULT([$can_build_shared])
  6545. AC_MSG_CHECKING([whether to build shared libraries])
  6546. test "$can_build_shared" = "no" && enable_shared=no
  6547. # On AIX, shared libraries and static libraries use the same namespace, and
  6548. # are all built from PIC.
  6549. case $host_os in
  6550. aix3*)
  6551. test "$enable_shared" = yes && enable_static=no
  6552. if test -n "$RANLIB"; then
  6553. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6554. postinstall_cmds='$RANLIB $lib'
  6555. fi
  6556. ;;
  6557. aix[[4-9]]*)
  6558. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6559. test "$enable_shared" = yes && enable_static=no
  6560. fi
  6561. ;;
  6562. esac
  6563. AC_MSG_RESULT([$enable_shared])
  6564. AC_MSG_CHECKING([whether to build static libraries])
  6565. # Make sure either enable_shared or enable_static is yes.
  6566. test "$enable_shared" = yes || enable_static=yes
  6567. AC_MSG_RESULT([$enable_static])
  6568. _LT_TAGVAR(GCC, $1)="$G77"
  6569. _LT_TAGVAR(LD, $1)="$LD"
  6570. ## CAVEAT EMPTOR:
  6571. ## There is no encapsulation within the following macros, do not change
  6572. ## the running order or otherwise move them around unless you know exactly
  6573. ## what you are doing...
  6574. _LT_COMPILER_PIC($1)
  6575. _LT_COMPILER_C_O($1)
  6576. _LT_COMPILER_FILE_LOCKS($1)
  6577. _LT_LINKER_SHLIBS($1)
  6578. _LT_SYS_DYNAMIC_LINKER($1)
  6579. _LT_LINKER_HARDCODE_LIBPATH($1)
  6580. _LT_CONFIG($1)
  6581. fi # test -n "$compiler"
  6582. GCC=$lt_save_GCC
  6583. CC="$lt_save_CC"
  6584. CFLAGS="$lt_save_CFLAGS"
  6585. fi # test "$_lt_disable_F77" != yes
  6586. AC_LANG_POP
  6587. ])# _LT_LANG_F77_CONFIG
  6588. # _LT_LANG_FC_CONFIG([TAG])
  6589. # -------------------------
  6590. # Ensure that the configuration variables for a Fortran compiler are
  6591. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6592. # to write the compiler configuration to `libtool'.
  6593. m4_defun([_LT_LANG_FC_CONFIG],
  6594. [AC_LANG_PUSH(Fortran)
  6595. if test -z "$FC" || test "X$FC" = "Xno"; then
  6596. _lt_disable_FC=yes
  6597. fi
  6598. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6599. _LT_TAGVAR(allow_undefined_flag, $1)=
  6600. _LT_TAGVAR(always_export_symbols, $1)=no
  6601. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6602. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6603. _LT_TAGVAR(hardcode_direct, $1)=no
  6604. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6605. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6606. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6607. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6608. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6609. _LT_TAGVAR(hardcode_automatic, $1)=no
  6610. _LT_TAGVAR(inherit_rpath, $1)=no
  6611. _LT_TAGVAR(module_cmds, $1)=
  6612. _LT_TAGVAR(module_expsym_cmds, $1)=
  6613. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6614. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6615. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6616. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6617. _LT_TAGVAR(no_undefined_flag, $1)=
  6618. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6619. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6620. # Source file extension for fc test sources.
  6621. ac_ext=${ac_fc_srcext-f}
  6622. # Object file extension for compiled fc test sources.
  6623. objext=o
  6624. _LT_TAGVAR(objext, $1)=$objext
  6625. # No sense in running all these tests if we already determined that
  6626. # the FC compiler isn't working. Some variables (like enable_shared)
  6627. # are currently assumed to apply to all compilers on this platform,
  6628. # and will be corrupted by setting them based on a non-working compiler.
  6629. if test "$_lt_disable_FC" != yes; then
  6630. # Code to be used in simple compile tests
  6631. lt_simple_compile_test_code="\
  6632. subroutine t
  6633. return
  6634. end
  6635. "
  6636. # Code to be used in simple link tests
  6637. lt_simple_link_test_code="\
  6638. program t
  6639. end
  6640. "
  6641. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6642. _LT_TAG_COMPILER
  6643. # save warnings/boilerplate of simple test code
  6644. _LT_COMPILER_BOILERPLATE
  6645. _LT_LINKER_BOILERPLATE
  6646. # Allow CC to be a program name with arguments.
  6647. lt_save_CC="$CC"
  6648. lt_save_GCC=$GCC
  6649. lt_save_CFLAGS=$CFLAGS
  6650. CC=${FC-"f95"}
  6651. CFLAGS=$FCFLAGS
  6652. compiler=$CC
  6653. GCC=$ac_cv_fc_compiler_gnu
  6654. _LT_TAGVAR(compiler, $1)=$CC
  6655. _LT_CC_BASENAME([$compiler])
  6656. if test -n "$compiler"; then
  6657. AC_MSG_CHECKING([if libtool supports shared libraries])
  6658. AC_MSG_RESULT([$can_build_shared])
  6659. AC_MSG_CHECKING([whether to build shared libraries])
  6660. test "$can_build_shared" = "no" && enable_shared=no
  6661. # On AIX, shared libraries and static libraries use the same namespace, and
  6662. # are all built from PIC.
  6663. case $host_os in
  6664. aix3*)
  6665. test "$enable_shared" = yes && enable_static=no
  6666. if test -n "$RANLIB"; then
  6667. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6668. postinstall_cmds='$RANLIB $lib'
  6669. fi
  6670. ;;
  6671. aix[[4-9]]*)
  6672. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6673. test "$enable_shared" = yes && enable_static=no
  6674. fi
  6675. ;;
  6676. esac
  6677. AC_MSG_RESULT([$enable_shared])
  6678. AC_MSG_CHECKING([whether to build static libraries])
  6679. # Make sure either enable_shared or enable_static is yes.
  6680. test "$enable_shared" = yes || enable_static=yes
  6681. AC_MSG_RESULT([$enable_static])
  6682. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6683. _LT_TAGVAR(LD, $1)="$LD"
  6684. ## CAVEAT EMPTOR:
  6685. ## There is no encapsulation within the following macros, do not change
  6686. ## the running order or otherwise move them around unless you know exactly
  6687. ## what you are doing...
  6688. _LT_SYS_HIDDEN_LIBDEPS($1)
  6689. _LT_COMPILER_PIC($1)
  6690. _LT_COMPILER_C_O($1)
  6691. _LT_COMPILER_FILE_LOCKS($1)
  6692. _LT_LINKER_SHLIBS($1)
  6693. _LT_SYS_DYNAMIC_LINKER($1)
  6694. _LT_LINKER_HARDCODE_LIBPATH($1)
  6695. _LT_CONFIG($1)
  6696. fi # test -n "$compiler"
  6697. GCC=$lt_save_GCC
  6698. CC=$lt_save_CC
  6699. CFLAGS=$lt_save_CFLAGS
  6700. fi # test "$_lt_disable_FC" != yes
  6701. AC_LANG_POP
  6702. ])# _LT_LANG_FC_CONFIG
  6703. # _LT_LANG_GCJ_CONFIG([TAG])
  6704. # --------------------------
  6705. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6706. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6707. # to write the compiler configuration to `libtool'.
  6708. m4_defun([_LT_LANG_GCJ_CONFIG],
  6709. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6710. AC_LANG_SAVE
  6711. # Source file extension for Java test sources.
  6712. ac_ext=java
  6713. # Object file extension for compiled Java test sources.
  6714. objext=o
  6715. _LT_TAGVAR(objext, $1)=$objext
  6716. # Code to be used in simple compile tests
  6717. lt_simple_compile_test_code="class foo {}"
  6718. # Code to be used in simple link tests
  6719. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6720. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6721. _LT_TAG_COMPILER
  6722. # save warnings/boilerplate of simple test code
  6723. _LT_COMPILER_BOILERPLATE
  6724. _LT_LINKER_BOILERPLATE
  6725. # Allow CC to be a program name with arguments.
  6726. lt_save_CC=$CC
  6727. lt_save_CFLAGS=$CFLAGS
  6728. lt_save_GCC=$GCC
  6729. GCC=yes
  6730. CC=${GCJ-"gcj"}
  6731. CFLAGS=$GCJFLAGS
  6732. compiler=$CC
  6733. _LT_TAGVAR(compiler, $1)=$CC
  6734. _LT_TAGVAR(LD, $1)="$LD"
  6735. _LT_CC_BASENAME([$compiler])
  6736. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6737. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6738. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6739. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6740. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6741. if test -n "$compiler"; then
  6742. _LT_COMPILER_NO_RTTI($1)
  6743. _LT_COMPILER_PIC($1)
  6744. _LT_COMPILER_C_O($1)
  6745. _LT_COMPILER_FILE_LOCKS($1)
  6746. _LT_LINKER_SHLIBS($1)
  6747. _LT_LINKER_HARDCODE_LIBPATH($1)
  6748. _LT_CONFIG($1)
  6749. fi
  6750. AC_LANG_RESTORE
  6751. GCC=$lt_save_GCC
  6752. CC=$lt_save_CC
  6753. CFLAGS=$lt_save_CFLAGS
  6754. ])# _LT_LANG_GCJ_CONFIG
  6755. # _LT_LANG_RC_CONFIG([TAG])
  6756. # -------------------------
  6757. # Ensure that the configuration variables for the Windows resource compiler
  6758. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6759. # to write the compiler configuration to `libtool'.
  6760. m4_defun([_LT_LANG_RC_CONFIG],
  6761. [AC_REQUIRE([LT_PROG_RC])dnl
  6762. AC_LANG_SAVE
  6763. # Source file extension for RC test sources.
  6764. ac_ext=rc
  6765. # Object file extension for compiled RC test sources.
  6766. objext=o
  6767. _LT_TAGVAR(objext, $1)=$objext
  6768. # Code to be used in simple compile tests
  6769. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6770. # Code to be used in simple link tests
  6771. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6772. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6773. _LT_TAG_COMPILER
  6774. # save warnings/boilerplate of simple test code
  6775. _LT_COMPILER_BOILERPLATE
  6776. _LT_LINKER_BOILERPLATE
  6777. # Allow CC to be a program name with arguments.
  6778. lt_save_CC="$CC"
  6779. lt_save_CFLAGS=$CFLAGS
  6780. lt_save_GCC=$GCC
  6781. GCC=
  6782. CC=${RC-"windres"}
  6783. CFLAGS=
  6784. compiler=$CC
  6785. _LT_TAGVAR(compiler, $1)=$CC
  6786. _LT_CC_BASENAME([$compiler])
  6787. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6788. if test -n "$compiler"; then
  6789. :
  6790. _LT_CONFIG($1)
  6791. fi
  6792. GCC=$lt_save_GCC
  6793. AC_LANG_RESTORE
  6794. CC=$lt_save_CC
  6795. CFLAGS=$lt_save_CFLAGS
  6796. ])# _LT_LANG_RC_CONFIG
  6797. # LT_PROG_GCJ
  6798. # -----------
  6799. AC_DEFUN([LT_PROG_GCJ],
  6800. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6801. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6802. [AC_CHECK_TOOL(GCJ, gcj,)
  6803. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6804. AC_SUBST(GCJFLAGS)])])[]dnl
  6805. ])
  6806. # Old name:
  6807. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6808. dnl aclocal-1.4 backwards compatibility:
  6809. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6810. # LT_PROG_RC
  6811. # ----------
  6812. AC_DEFUN([LT_PROG_RC],
  6813. [AC_CHECK_TOOL(RC, windres,)
  6814. ])
  6815. # Old name:
  6816. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6817. dnl aclocal-1.4 backwards compatibility:
  6818. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6819. # _LT_DECL_EGREP
  6820. # --------------
  6821. # If we don't have a new enough Autoconf to choose the best grep
  6822. # available, choose the one first in the user's PATH.
  6823. m4_defun([_LT_DECL_EGREP],
  6824. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6825. AC_REQUIRE([AC_PROG_FGREP])dnl
  6826. test -z "$GREP" && GREP=grep
  6827. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6828. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6829. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6830. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6831. AC_SUBST([GREP])
  6832. ])
  6833. # _LT_DECL_OBJDUMP
  6834. # --------------
  6835. # If we don't have a new enough Autoconf to choose the best objdump
  6836. # available, choose the one first in the user's PATH.
  6837. m4_defun([_LT_DECL_OBJDUMP],
  6838. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6839. test -z "$OBJDUMP" && OBJDUMP=objdump
  6840. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6841. AC_SUBST([OBJDUMP])
  6842. ])
  6843. # _LT_DECL_DLLTOOL
  6844. # ----------------
  6845. # Ensure DLLTOOL variable is set.
  6846. m4_defun([_LT_DECL_DLLTOOL],
  6847. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6848. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6849. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  6850. AC_SUBST([DLLTOOL])
  6851. ])
  6852. # _LT_DECL_SED
  6853. # ------------
  6854. # Check for a fully-functional sed program, that truncates
  6855. # as few characters as possible. Prefer GNU sed if found.
  6856. m4_defun([_LT_DECL_SED],
  6857. [AC_PROG_SED
  6858. test -z "$SED" && SED=sed
  6859. Xsed="$SED -e 1s/^X//"
  6860. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  6861. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  6862. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  6863. ])# _LT_DECL_SED
  6864. m4_ifndef([AC_PROG_SED], [
  6865. # NOTE: This macro has been submitted for inclusion into #
  6866. # GNU Autoconf as AC_PROG_SED. When it is available in #
  6867. # a released version of Autoconf we should remove this #
  6868. # macro and use it instead. #
  6869. m4_defun([AC_PROG_SED],
  6870. [AC_MSG_CHECKING([for a sed that does not truncate output])
  6871. AC_CACHE_VAL(lt_cv_path_SED,
  6872. [# Loop through the user's path and test for sed and gsed.
  6873. # Then use that list of sed's as ones to test for truncation.
  6874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6875. for as_dir in $PATH
  6876. do
  6877. IFS=$as_save_IFS
  6878. test -z "$as_dir" && as_dir=.
  6879. for lt_ac_prog in sed gsed; do
  6880. for ac_exec_ext in '' $ac_executable_extensions; do
  6881. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  6882. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6883. fi
  6884. done
  6885. done
  6886. done
  6887. IFS=$as_save_IFS
  6888. lt_ac_max=0
  6889. lt_ac_count=0
  6890. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  6891. # along with /bin/sed that truncates output.
  6892. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  6893. test ! -f $lt_ac_sed && continue
  6894. cat /dev/null > conftest.in
  6895. lt_ac_count=0
  6896. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  6897. # Check for GNU sed and select it if it is found.
  6898. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  6899. lt_cv_path_SED=$lt_ac_sed
  6900. break
  6901. fi
  6902. while true; do
  6903. cat conftest.in conftest.in >conftest.tmp
  6904. mv conftest.tmp conftest.in
  6905. cp conftest.in conftest.nl
  6906. echo >>conftest.nl
  6907. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  6908. cmp -s conftest.out conftest.nl || break
  6909. # 10000 chars as input seems more than enough
  6910. test $lt_ac_count -gt 10 && break
  6911. lt_ac_count=`expr $lt_ac_count + 1`
  6912. if test $lt_ac_count -gt $lt_ac_max; then
  6913. lt_ac_max=$lt_ac_count
  6914. lt_cv_path_SED=$lt_ac_sed
  6915. fi
  6916. done
  6917. done
  6918. ])
  6919. SED=$lt_cv_path_SED
  6920. AC_SUBST([SED])
  6921. AC_MSG_RESULT([$SED])
  6922. ])#AC_PROG_SED
  6923. ])#m4_ifndef
  6924. # Old name:
  6925. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  6926. dnl aclocal-1.4 backwards compatibility:
  6927. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  6928. # _LT_CHECK_SHELL_FEATURES
  6929. # ------------------------
  6930. # Find out whether the shell is Bourne or XSI compatible,
  6931. # or has some other useful features.
  6932. m4_defun([_LT_CHECK_SHELL_FEATURES],
  6933. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  6934. # Try some XSI features
  6935. xsi_shell=no
  6936. ( _lt_dummy="a/b/c"
  6937. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  6938. = c,a/b,b/c, \
  6939. && eval 'test $(( 1 + 1 )) -eq 2 \
  6940. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6941. && xsi_shell=yes
  6942. AC_MSG_RESULT([$xsi_shell])
  6943. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  6944. AC_MSG_CHECKING([whether the shell understands "+="])
  6945. lt_shell_append=no
  6946. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  6947. >/dev/null 2>&1 \
  6948. && lt_shell_append=yes
  6949. AC_MSG_RESULT([$lt_shell_append])
  6950. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  6951. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6952. lt_unset=unset
  6953. else
  6954. lt_unset=false
  6955. fi
  6956. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  6957. # test EBCDIC or ASCII
  6958. case `echo X|tr X '\101'` in
  6959. A) # ASCII based system
  6960. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6961. lt_SP2NL='tr \040 \012'
  6962. lt_NL2SP='tr \015\012 \040\040'
  6963. ;;
  6964. *) # EBCDIC based system
  6965. lt_SP2NL='tr \100 \n'
  6966. lt_NL2SP='tr \r\n \100\100'
  6967. ;;
  6968. esac
  6969. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  6970. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  6971. ])# _LT_CHECK_SHELL_FEATURES
  6972. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  6973. # ------------------------------------------------------
  6974. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  6975. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  6976. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  6977. [dnl {
  6978. sed -e '/^$1 ()$/,/^} # $1 /c\
  6979. $1 ()\
  6980. {\
  6981. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  6982. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  6983. && mv -f "$cfgfile.tmp" "$cfgfile" \
  6984. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  6985. test 0 -eq $? || _lt_function_replace_fail=:
  6986. ])
  6987. # _LT_PROG_REPLACE_SHELLFNS
  6988. # -------------------------
  6989. # Replace existing portable implementations of several shell functions with
  6990. # equivalent extended shell implementations where those features are available..
  6991. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  6992. [if test x"$xsi_shell" = xyes; then
  6993. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  6994. case ${1} in
  6995. */*) func_dirname_result="${1%/*}${2}" ;;
  6996. * ) func_dirname_result="${3}" ;;
  6997. esac])
  6998. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  6999. func_basename_result="${1##*/}"])
  7000. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  7001. case ${1} in
  7002. */*) func_dirname_result="${1%/*}${2}" ;;
  7003. * ) func_dirname_result="${3}" ;;
  7004. esac
  7005. func_basename_result="${1##*/}"])
  7006. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  7007. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7008. # positional parameters, so assign one to ordinary parameter first.
  7009. func_stripname_result=${3}
  7010. func_stripname_result=${func_stripname_result#"${1}"}
  7011. func_stripname_result=${func_stripname_result%"${2}"}])
  7012. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  7013. func_split_long_opt_name=${1%%=*}
  7014. func_split_long_opt_arg=${1#*=}])
  7015. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  7016. func_split_short_opt_arg=${1#??}
  7017. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  7018. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7019. case ${1} in
  7020. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7021. *) func_lo2o_result=${1} ;;
  7022. esac])
  7023. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7024. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7025. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7026. fi
  7027. if test x"$lt_shell_append" = xyes; then
  7028. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7029. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7030. func_quote_for_eval "${2}"
  7031. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7032. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7033. # Save a `func_append' function call where possible by direct use of '+='
  7034. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7035. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7036. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7037. test 0 -eq $? || _lt_function_replace_fail=:
  7038. else
  7039. # Save a `func_append' function call even when '+=' is not available
  7040. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7041. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7042. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7043. test 0 -eq $? || _lt_function_replace_fail=:
  7044. fi
  7045. if test x"$_lt_function_replace_fail" = x":"; then
  7046. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7047. fi
  7048. ])
  7049. # _LT_PATH_CONVERSION_FUNCTIONS
  7050. # -----------------------------
  7051. # Determine which file name conversion functions should be used by
  7052. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7053. # for certain cross-compile configurations and native mingw.
  7054. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7055. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7056. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7057. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7058. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7059. [case $host in
  7060. *-*-mingw* )
  7061. case $build in
  7062. *-*-mingw* ) # actually msys
  7063. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7064. ;;
  7065. *-*-cygwin* )
  7066. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7067. ;;
  7068. * ) # otherwise, assume *nix
  7069. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7070. ;;
  7071. esac
  7072. ;;
  7073. *-*-cygwin* )
  7074. case $build in
  7075. *-*-mingw* ) # actually msys
  7076. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7077. ;;
  7078. *-*-cygwin* )
  7079. lt_cv_to_host_file_cmd=func_convert_file_noop
  7080. ;;
  7081. * ) # otherwise, assume *nix
  7082. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7083. ;;
  7084. esac
  7085. ;;
  7086. * ) # unhandled hosts (and "normal" native builds)
  7087. lt_cv_to_host_file_cmd=func_convert_file_noop
  7088. ;;
  7089. esac
  7090. ])
  7091. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7092. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7093. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7094. [0], [convert $build file names to $host format])dnl
  7095. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7096. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7097. [#assume ordinary cross tools, or native build.
  7098. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7099. case $host in
  7100. *-*-mingw* )
  7101. case $build in
  7102. *-*-mingw* ) # actually msys
  7103. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7104. ;;
  7105. esac
  7106. ;;
  7107. esac
  7108. ])
  7109. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7110. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7111. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7112. [0], [convert $build files to toolchain format])dnl
  7113. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7114. # Helper functions for option handling. -*- Autoconf -*-
  7115. #
  7116. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7117. # Inc.
  7118. # Written by Gary V. Vaughan, 2004
  7119. #
  7120. # This file is free software; the Free Software Foundation gives
  7121. # unlimited permission to copy and/or distribute it, with or without
  7122. # modifications, as long as this notice is preserved.
  7123. # serial 7 ltoptions.m4
  7124. # This is to help aclocal find these macros, as it can't see m4_define.
  7125. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7126. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7127. # ------------------------------------------
  7128. m4_define([_LT_MANGLE_OPTION],
  7129. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7130. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7131. # ---------------------------------------
  7132. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7133. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7134. # saved as a flag.
  7135. m4_define([_LT_SET_OPTION],
  7136. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7137. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7138. _LT_MANGLE_DEFUN([$1], [$2]),
  7139. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7140. ])
  7141. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7142. # ------------------------------------------------------------
  7143. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7144. m4_define([_LT_IF_OPTION],
  7145. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7146. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7147. # -------------------------------------------------------
  7148. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7149. # are set.
  7150. m4_define([_LT_UNLESS_OPTIONS],
  7151. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7152. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7153. [m4_define([$0_found])])])[]dnl
  7154. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7155. ])[]dnl
  7156. ])
  7157. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7158. # ----------------------------------------
  7159. # OPTION-LIST is a space-separated list of Libtool options associated
  7160. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7161. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7162. # the unknown option and exit.
  7163. m4_defun([_LT_SET_OPTIONS],
  7164. [# Set options
  7165. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7166. [_LT_SET_OPTION([$1], _LT_Option)])
  7167. m4_if([$1],[LT_INIT],[
  7168. dnl
  7169. dnl Simply set some default values (i.e off) if boolean options were not
  7170. dnl specified:
  7171. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7172. ])
  7173. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7174. ])
  7175. dnl
  7176. dnl If no reference was made to various pairs of opposing options, then
  7177. dnl we run the default mode handler for the pair. For example, if neither
  7178. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7179. dnl archives by default:
  7180. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7181. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7182. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7183. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7184. [_LT_ENABLE_FAST_INSTALL])
  7185. ])
  7186. ])# _LT_SET_OPTIONS
  7187. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7188. # -----------------------------------------
  7189. m4_define([_LT_MANGLE_DEFUN],
  7190. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7191. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7192. # -----------------------------------------------
  7193. m4_define([LT_OPTION_DEFINE],
  7194. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7195. ])# LT_OPTION_DEFINE
  7196. # dlopen
  7197. # ------
  7198. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7199. ])
  7200. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7201. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7202. AC_DIAGNOSE([obsolete],
  7203. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7204. put the `dlopen' option into LT_INIT's first parameter.])
  7205. ])
  7206. dnl aclocal-1.4 backwards compatibility:
  7207. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7208. # win32-dll
  7209. # ---------
  7210. # Declare package support for building win32 dll's.
  7211. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7212. [enable_win32_dll=yes
  7213. case $host in
  7214. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7215. AC_CHECK_TOOL(AS, as, false)
  7216. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7217. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7218. ;;
  7219. esac
  7220. test -z "$AS" && AS=as
  7221. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7222. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7223. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7224. test -z "$OBJDUMP" && OBJDUMP=objdump
  7225. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7226. ])# win32-dll
  7227. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7228. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7229. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7230. AC_DIAGNOSE([obsolete],
  7231. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7232. put the `win32-dll' option into LT_INIT's first parameter.])
  7233. ])
  7234. dnl aclocal-1.4 backwards compatibility:
  7235. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7236. # _LT_ENABLE_SHARED([DEFAULT])
  7237. # ----------------------------
  7238. # implement the --enable-shared flag, and supports the `shared' and
  7239. # `disable-shared' LT_INIT options.
  7240. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7241. m4_define([_LT_ENABLE_SHARED],
  7242. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7243. AC_ARG_ENABLE([shared],
  7244. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7245. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7246. [p=${PACKAGE-default}
  7247. case $enableval in
  7248. yes) enable_shared=yes ;;
  7249. no) enable_shared=no ;;
  7250. *)
  7251. enable_shared=no
  7252. # Look at the argument we got. We use all the common list separators.
  7253. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7254. for pkg in $enableval; do
  7255. IFS="$lt_save_ifs"
  7256. if test "X$pkg" = "X$p"; then
  7257. enable_shared=yes
  7258. fi
  7259. done
  7260. IFS="$lt_save_ifs"
  7261. ;;
  7262. esac],
  7263. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7264. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7265. [Whether or not to build shared libraries])
  7266. ])# _LT_ENABLE_SHARED
  7267. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7268. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7269. # Old names:
  7270. AC_DEFUN([AC_ENABLE_SHARED],
  7271. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7272. ])
  7273. AC_DEFUN([AC_DISABLE_SHARED],
  7274. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7275. ])
  7276. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7277. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7278. dnl aclocal-1.4 backwards compatibility:
  7279. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7280. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7281. # _LT_ENABLE_STATIC([DEFAULT])
  7282. # ----------------------------
  7283. # implement the --enable-static flag, and support the `static' and
  7284. # `disable-static' LT_INIT options.
  7285. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7286. m4_define([_LT_ENABLE_STATIC],
  7287. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7288. AC_ARG_ENABLE([static],
  7289. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7290. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7291. [p=${PACKAGE-default}
  7292. case $enableval in
  7293. yes) enable_static=yes ;;
  7294. no) enable_static=no ;;
  7295. *)
  7296. enable_static=no
  7297. # Look at the argument we got. We use all the common list separators.
  7298. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7299. for pkg in $enableval; do
  7300. IFS="$lt_save_ifs"
  7301. if test "X$pkg" = "X$p"; then
  7302. enable_static=yes
  7303. fi
  7304. done
  7305. IFS="$lt_save_ifs"
  7306. ;;
  7307. esac],
  7308. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7309. _LT_DECL([build_old_libs], [enable_static], [0],
  7310. [Whether or not to build static libraries])
  7311. ])# _LT_ENABLE_STATIC
  7312. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7313. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7314. # Old names:
  7315. AC_DEFUN([AC_ENABLE_STATIC],
  7316. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7317. ])
  7318. AC_DEFUN([AC_DISABLE_STATIC],
  7319. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7320. ])
  7321. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7322. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7323. dnl aclocal-1.4 backwards compatibility:
  7324. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7325. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7326. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7327. # ----------------------------------
  7328. # implement the --enable-fast-install flag, and support the `fast-install'
  7329. # and `disable-fast-install' LT_INIT options.
  7330. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7331. m4_define([_LT_ENABLE_FAST_INSTALL],
  7332. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7333. AC_ARG_ENABLE([fast-install],
  7334. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7335. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7336. [p=${PACKAGE-default}
  7337. case $enableval in
  7338. yes) enable_fast_install=yes ;;
  7339. no) enable_fast_install=no ;;
  7340. *)
  7341. enable_fast_install=no
  7342. # Look at the argument we got. We use all the common list separators.
  7343. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7344. for pkg in $enableval; do
  7345. IFS="$lt_save_ifs"
  7346. if test "X$pkg" = "X$p"; then
  7347. enable_fast_install=yes
  7348. fi
  7349. done
  7350. IFS="$lt_save_ifs"
  7351. ;;
  7352. esac],
  7353. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7354. _LT_DECL([fast_install], [enable_fast_install], [0],
  7355. [Whether or not to optimize for fast installation])dnl
  7356. ])# _LT_ENABLE_FAST_INSTALL
  7357. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7358. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7359. # Old names:
  7360. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7361. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7362. AC_DIAGNOSE([obsolete],
  7363. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7364. the `fast-install' option into LT_INIT's first parameter.])
  7365. ])
  7366. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7367. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7368. AC_DIAGNOSE([obsolete],
  7369. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7370. the `disable-fast-install' option into LT_INIT's first parameter.])
  7371. ])
  7372. dnl aclocal-1.4 backwards compatibility:
  7373. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7374. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7375. # _LT_WITH_PIC([MODE])
  7376. # --------------------
  7377. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7378. # LT_INIT options.
  7379. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7380. m4_define([_LT_WITH_PIC],
  7381. [AC_ARG_WITH([pic],
  7382. [AS_HELP_STRING([--with-pic],
  7383. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7384. [pic_mode="$withval"],
  7385. [pic_mode=default])
  7386. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7387. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7388. ])# _LT_WITH_PIC
  7389. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7390. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7391. # Old name:
  7392. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7393. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7394. AC_DIAGNOSE([obsolete],
  7395. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7396. put the `pic-only' option into LT_INIT's first parameter.])
  7397. ])
  7398. dnl aclocal-1.4 backwards compatibility:
  7399. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7400. m4_define([_LTDL_MODE], [])
  7401. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7402. [m4_define([_LTDL_MODE], [nonrecursive])])
  7403. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7404. [m4_define([_LTDL_MODE], [recursive])])
  7405. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7406. [m4_define([_LTDL_MODE], [subproject])])
  7407. m4_define([_LTDL_TYPE], [])
  7408. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7409. [m4_define([_LTDL_TYPE], [installable])])
  7410. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7411. [m4_define([_LTDL_TYPE], [convenience])])
  7412. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7413. #
  7414. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7415. # Written by Gary V. Vaughan, 2004
  7416. #
  7417. # This file is free software; the Free Software Foundation gives
  7418. # unlimited permission to copy and/or distribute it, with or without
  7419. # modifications, as long as this notice is preserved.
  7420. # serial 6 ltsugar.m4
  7421. # This is to help aclocal find these macros, as it can't see m4_define.
  7422. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7423. # lt_join(SEP, ARG1, [ARG2...])
  7424. # -----------------------------
  7425. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7426. # associated separator.
  7427. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7428. # versions in m4sugar had bugs.
  7429. m4_define([lt_join],
  7430. [m4_if([$#], [1], [],
  7431. [$#], [2], [[$2]],
  7432. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7433. m4_define([_lt_join],
  7434. [m4_if([$#$2], [2], [],
  7435. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7436. # lt_car(LIST)
  7437. # lt_cdr(LIST)
  7438. # ------------
  7439. # Manipulate m4 lists.
  7440. # These macros are necessary as long as will still need to support
  7441. # Autoconf-2.59 which quotes differently.
  7442. m4_define([lt_car], [[$1]])
  7443. m4_define([lt_cdr],
  7444. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7445. [$#], 1, [],
  7446. [m4_dquote(m4_shift($@))])])
  7447. m4_define([lt_unquote], $1)
  7448. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7449. # ------------------------------------------
  7450. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7451. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7452. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7453. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7454. # than defined and empty).
  7455. #
  7456. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7457. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7458. m4_define([lt_append],
  7459. [m4_define([$1],
  7460. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7461. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7462. # ----------------------------------------------------------
  7463. # Produce a SEP delimited list of all paired combinations of elements of
  7464. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7465. # has the form PREFIXmINFIXSUFFIXn.
  7466. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7467. m4_define([lt_combine],
  7468. [m4_if(m4_eval([$# > 3]), [1],
  7469. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7470. [[m4_foreach([_Lt_prefix], [$2],
  7471. [m4_foreach([_Lt_suffix],
  7472. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7473. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7474. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7475. # -----------------------------------------------------------------------
  7476. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7477. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7478. m4_define([lt_if_append_uniq],
  7479. [m4_ifdef([$1],
  7480. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7481. [lt_append([$1], [$2], [$3])$4],
  7482. [$5])],
  7483. [lt_append([$1], [$2], [$3])$4])])
  7484. # lt_dict_add(DICT, KEY, VALUE)
  7485. # -----------------------------
  7486. m4_define([lt_dict_add],
  7487. [m4_define([$1($2)], [$3])])
  7488. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7489. # --------------------------------------------
  7490. m4_define([lt_dict_add_subkey],
  7491. [m4_define([$1($2:$3)], [$4])])
  7492. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7493. # ----------------------------------
  7494. m4_define([lt_dict_fetch],
  7495. [m4_ifval([$3],
  7496. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7497. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7498. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7499. # -----------------------------------------------------------------
  7500. m4_define([lt_if_dict_fetch],
  7501. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7502. [$5],
  7503. [$6])])
  7504. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7505. # --------------------------------------------------------------
  7506. m4_define([lt_dict_filter],
  7507. [m4_if([$5], [], [],
  7508. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7509. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7510. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7511. ])
  7512. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7513. #
  7514. # Copyright (C) 2004 Free Software Foundation, Inc.
  7515. # Written by Scott James Remnant, 2004
  7516. #
  7517. # This file is free software; the Free Software Foundation gives
  7518. # unlimited permission to copy and/or distribute it, with or without
  7519. # modifications, as long as this notice is preserved.
  7520. # @configure_input@
  7521. # serial 3293 ltversion.m4
  7522. # This file is part of GNU Libtool
  7523. m4_define([LT_PACKAGE_VERSION], [2.4])
  7524. m4_define([LT_PACKAGE_REVISION], [1.3293])
  7525. AC_DEFUN([LTVERSION_VERSION],
  7526. [macro_version='2.4'
  7527. macro_revision='1.3293'
  7528. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7529. _LT_DECL(, macro_revision, 0)
  7530. ])
  7531. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7532. #
  7533. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  7534. # Written by Scott James Remnant, 2004.
  7535. #
  7536. # This file is free software; the Free Software Foundation gives
  7537. # unlimited permission to copy and/or distribute it, with or without
  7538. # modifications, as long as this notice is preserved.
  7539. # serial 5 lt~obsolete.m4
  7540. # These exist entirely to fool aclocal when bootstrapping libtool.
  7541. #
  7542. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7543. # which have later been changed to m4_define as they aren't part of the
  7544. # exported API, or moved to Autoconf or Automake where they belong.
  7545. #
  7546. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7547. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7548. # using a macro with the same name in our local m4/libtool.m4 it'll
  7549. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7550. # and doesn't know about Autoconf macros at all.)
  7551. #
  7552. # So we provide this file, which has a silly filename so it's always
  7553. # included after everything else. This provides aclocal with the
  7554. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7555. # because those macros already exist, or will be overwritten later.
  7556. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7557. #
  7558. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7559. # Yes, that means every name once taken will need to remain here until
  7560. # we give up compatibility with versions before 1.7, at which point
  7561. # we need to keep only those names which we still refer to.
  7562. # This is to help aclocal find these macros, as it can't see m4_define.
  7563. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7564. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7565. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7566. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7567. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7568. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7569. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7570. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7571. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7572. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7573. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7574. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7575. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7576. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7577. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7578. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7579. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7580. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7581. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7582. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7583. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7584. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7585. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7586. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7587. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7588. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7589. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7590. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7591. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7592. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7593. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7594. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7595. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7596. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7597. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7598. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7599. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7600. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7601. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7602. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7603. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7604. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7605. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7606. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7607. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7608. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7609. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7610. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7611. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7612. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7613. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7614. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7615. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7616. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7617. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7618. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7619. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7620. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7621. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7622. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7623. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7624. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7625. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7626. #
  7627. # This file is free software; the Free Software Foundation
  7628. # gives unlimited permission to copy and/or distribute it,
  7629. # with or without modifications, as long as this notice is preserved.
  7630. # AM_AUTOMAKE_VERSION(VERSION)
  7631. # ----------------------------
  7632. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7633. # generated from the m4 files accompanying Automake X.Y.
  7634. # (This private macro should not be called outside this file.)
  7635. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7636. [am__api_version='1.11'
  7637. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7638. dnl require some minimum version. Point them to the right macro.
  7639. m4_if([$1], [1.11.1], [],
  7640. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7641. ])
  7642. # _AM_AUTOCONF_VERSION(VERSION)
  7643. # -----------------------------
  7644. # aclocal traces this macro to find the Autoconf version.
  7645. # This is a private macro too. Using m4_define simplifies
  7646. # the logic in aclocal, which can simply ignore this definition.
  7647. m4_define([_AM_AUTOCONF_VERSION], [])
  7648. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7649. # -------------------------------
  7650. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7651. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7652. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7653. [AM_AUTOMAKE_VERSION([1.11.1])dnl
  7654. m4_ifndef([AC_AUTOCONF_VERSION],
  7655. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7656. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7657. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7658. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  7659. #
  7660. # This file is free software; the Free Software Foundation
  7661. # gives unlimited permission to copy and/or distribute it,
  7662. # with or without modifications, as long as this notice is preserved.
  7663. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7664. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  7665. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  7666. #
  7667. # Of course, Automake must honor this variable whenever it calls a
  7668. # tool from the auxiliary directory. The problem is that $srcdir (and
  7669. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7670. # depending on how configure is run. This is pretty annoying, since
  7671. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7672. # source directory, any form will work fine, but in subdirectories a
  7673. # relative path needs to be adjusted first.
  7674. #
  7675. # $ac_aux_dir/missing
  7676. # fails when called from a subdirectory if $ac_aux_dir is relative
  7677. # $top_srcdir/$ac_aux_dir/missing
  7678. # fails if $ac_aux_dir is absolute,
  7679. # fails when called from a subdirectory in a VPATH build with
  7680. # a relative $ac_aux_dir
  7681. #
  7682. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7683. # are both prefixed by $srcdir. In an in-source build this is usually
  7684. # harmless because $srcdir is `.', but things will broke when you
  7685. # start a VPATH build or use an absolute $srcdir.
  7686. #
  7687. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7688. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7689. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7690. # and then we would define $MISSING as
  7691. # MISSING="\${SHELL} $am_aux_dir/missing"
  7692. # This will work as long as MISSING is not called from configure, because
  7693. # unfortunately $(top_srcdir) has no meaning in configure.
  7694. # However there are other variables, like CC, which are often used in
  7695. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7696. #
  7697. # Another solution, used here, is to always expand $ac_aux_dir to an
  7698. # absolute PATH. The drawback is that using absolute paths prevent a
  7699. # configured tree to be moved without reconfiguration.
  7700. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7701. [dnl Rely on autoconf to set up CDPATH properly.
  7702. AC_PREREQ([2.50])dnl
  7703. # expand $ac_aux_dir to an absolute path
  7704. am_aux_dir=`cd $ac_aux_dir && pwd`
  7705. ])
  7706. # AM_CONDITIONAL -*- Autoconf -*-
  7707. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  7708. # Free Software Foundation, Inc.
  7709. #
  7710. # This file is free software; the Free Software Foundation
  7711. # gives unlimited permission to copy and/or distribute it,
  7712. # with or without modifications, as long as this notice is preserved.
  7713. # serial 9
  7714. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7715. # -------------------------------------
  7716. # Define a conditional.
  7717. AC_DEFUN([AM_CONDITIONAL],
  7718. [AC_PREREQ(2.52)dnl
  7719. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7720. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7721. AC_SUBST([$1_TRUE])dnl
  7722. AC_SUBST([$1_FALSE])dnl
  7723. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  7724. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  7725. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  7726. if $2; then
  7727. $1_TRUE=
  7728. $1_FALSE='#'
  7729. else
  7730. $1_TRUE='#'
  7731. $1_FALSE=
  7732. fi
  7733. AC_CONFIG_COMMANDS_PRE(
  7734. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  7735. AC_MSG_ERROR([[conditional "$1" was never defined.
  7736. Usually this means the macro was only invoked conditionally.]])
  7737. fi])])
  7738. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  7739. # Free Software Foundation, Inc.
  7740. #
  7741. # This file is free software; the Free Software Foundation
  7742. # gives unlimited permission to copy and/or distribute it,
  7743. # with or without modifications, as long as this notice is preserved.
  7744. # serial 10
  7745. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  7746. # written in clear, in which case automake, when reading aclocal.m4,
  7747. # will think it sees a *use*, and therefore will trigger all it's
  7748. # C support machinery. Also note that it means that autoscan, seeing
  7749. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  7750. # _AM_DEPENDENCIES(NAME)
  7751. # ----------------------
  7752. # See how the compiler implements dependency checking.
  7753. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  7754. # We try a few techniques and use that to set a single cache variable.
  7755. #
  7756. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  7757. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  7758. # dependency, and given that the user is not expected to run this macro,
  7759. # just rely on AC_PROG_CC.
  7760. AC_DEFUN([_AM_DEPENDENCIES],
  7761. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  7762. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  7763. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  7764. AC_REQUIRE([AM_DEP_TRACK])dnl
  7765. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  7766. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  7767. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  7768. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  7769. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  7770. [depcc="$$1" am_compiler_list=])
  7771. AC_CACHE_CHECK([dependency style of $depcc],
  7772. [am_cv_$1_dependencies_compiler_type],
  7773. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7774. # We make a subdir and do the tests there. Otherwise we can end up
  7775. # making bogus files that we don't know about and never remove. For
  7776. # instance it was reported that on HP-UX the gcc test will end up
  7777. # making a dummy file named `D' -- because `-MD' means `put the output
  7778. # in D'.
  7779. mkdir conftest.dir
  7780. # Copy depcomp to subdir because otherwise we won't find it if we're
  7781. # using a relative directory.
  7782. cp "$am_depcomp" conftest.dir
  7783. cd conftest.dir
  7784. # We will build objects and dependencies in a subdirectory because
  7785. # it helps to detect inapplicable dependency modes. For instance
  7786. # both Tru64's cc and ICC support -MD to output dependencies as a
  7787. # side effect of compilation, but ICC will put the dependencies in
  7788. # the current directory while Tru64 will put them in the object
  7789. # directory.
  7790. mkdir sub
  7791. am_cv_$1_dependencies_compiler_type=none
  7792. if test "$am_compiler_list" = ""; then
  7793. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  7794. fi
  7795. am__universal=false
  7796. m4_case([$1], [CC],
  7797. [case " $depcc " in #(
  7798. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7799. esac],
  7800. [CXX],
  7801. [case " $depcc " in #(
  7802. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7803. esac])
  7804. for depmode in $am_compiler_list; do
  7805. # Setup a source with many dependencies, because some compilers
  7806. # like to wrap large dependency lists on column 80 (with \), and
  7807. # we should not choose a depcomp mode which is confused by this.
  7808. #
  7809. # We need to recreate these files for each test, as the compiler may
  7810. # overwrite some of them when testing with obscure command lines.
  7811. # This happens at least with the AIX C compiler.
  7812. : > sub/conftest.c
  7813. for i in 1 2 3 4 5 6; do
  7814. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7815. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7816. # Solaris 8's {/usr,}/bin/sh.
  7817. touch sub/conftst$i.h
  7818. done
  7819. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7820. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7821. # mode. It turns out that the SunPro C++ compiler does not properly
  7822. # handle `-M -o', and we need to detect this. Also, some Intel
  7823. # versions had trouble with output in subdirs
  7824. am__obj=sub/conftest.${OBJEXT-o}
  7825. am__minus_obj="-o $am__obj"
  7826. case $depmode in
  7827. gcc)
  7828. # This depmode causes a compiler race in universal mode.
  7829. test "$am__universal" = false || continue
  7830. ;;
  7831. nosideeffect)
  7832. # after this tag, mechanisms are not by side-effect, so they'll
  7833. # only be used when explicitly requested
  7834. if test "x$enable_dependency_tracking" = xyes; then
  7835. continue
  7836. else
  7837. break
  7838. fi
  7839. ;;
  7840. msvisualcpp | msvcmsys)
  7841. # This compiler won't grok `-c -o', but also, the minuso test has
  7842. # not run yet. These depmodes are late enough in the game, and
  7843. # so weak that their functioning should not be impacted.
  7844. am__obj=conftest.${OBJEXT-o}
  7845. am__minus_obj=
  7846. ;;
  7847. none) break ;;
  7848. esac
  7849. if depmode=$depmode \
  7850. source=sub/conftest.c object=$am__obj \
  7851. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7852. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7853. >/dev/null 2>conftest.err &&
  7854. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7855. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7856. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7857. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7858. # icc doesn't choke on unknown options, it will just issue warnings
  7859. # or remarks (even with -Werror). So we grep stderr for any message
  7860. # that says an option was ignored or not supported.
  7861. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7862. # icc: Command line warning: ignoring option '-M'; no argument required
  7863. # The diagnosis changed in icc 8.0:
  7864. # icc: Command line remark: option '-MP' not supported
  7865. if (grep 'ignoring option' conftest.err ||
  7866. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7867. am_cv_$1_dependencies_compiler_type=$depmode
  7868. break
  7869. fi
  7870. fi
  7871. done
  7872. cd ..
  7873. rm -rf conftest.dir
  7874. else
  7875. am_cv_$1_dependencies_compiler_type=none
  7876. fi
  7877. ])
  7878. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  7879. AM_CONDITIONAL([am__fastdep$1], [
  7880. test "x$enable_dependency_tracking" != xno \
  7881. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  7882. ])
  7883. # AM_SET_DEPDIR
  7884. # -------------
  7885. # Choose a directory name for dependency files.
  7886. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  7887. AC_DEFUN([AM_SET_DEPDIR],
  7888. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  7889. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  7890. ])
  7891. # AM_DEP_TRACK
  7892. # ------------
  7893. AC_DEFUN([AM_DEP_TRACK],
  7894. [AC_ARG_ENABLE(dependency-tracking,
  7895. [ --disable-dependency-tracking speeds up one-time build
  7896. --enable-dependency-tracking do not reject slow dependency extractors])
  7897. if test "x$enable_dependency_tracking" != xno; then
  7898. am_depcomp="$ac_aux_dir/depcomp"
  7899. AMDEPBACKSLASH='\'
  7900. fi
  7901. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  7902. AC_SUBST([AMDEPBACKSLASH])dnl
  7903. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  7904. ])
  7905. # Generate code to set up dependency tracking. -*- Autoconf -*-
  7906. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  7907. # Free Software Foundation, Inc.
  7908. #
  7909. # This file is free software; the Free Software Foundation
  7910. # gives unlimited permission to copy and/or distribute it,
  7911. # with or without modifications, as long as this notice is preserved.
  7912. #serial 5
  7913. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  7914. # ------------------------------
  7915. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  7916. [{
  7917. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  7918. # are listed without --file. Let's play safe and only enable the eval
  7919. # if we detect the quoting.
  7920. case $CONFIG_FILES in
  7921. *\'*) eval set x "$CONFIG_FILES" ;;
  7922. *) set x $CONFIG_FILES ;;
  7923. esac
  7924. shift
  7925. for mf
  7926. do
  7927. # Strip MF so we end up with the name of the file.
  7928. mf=`echo "$mf" | sed -e 's/:.*$//'`
  7929. # Check whether this is an Automake generated Makefile or not.
  7930. # We used to match only the files named `Makefile.in', but
  7931. # some people rename them; so instead we look at the file content.
  7932. # Grep'ing the first line is not enough: some people post-process
  7933. # each Makefile.in and add a new line on top of each file to say so.
  7934. # Grep'ing the whole file is not good either: AIX grep has a line
  7935. # limit of 2048, but all sed's we know have understand at least 4000.
  7936. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  7937. dirpart=`AS_DIRNAME("$mf")`
  7938. else
  7939. continue
  7940. fi
  7941. # Extract the definition of DEPDIR, am__include, and am__quote
  7942. # from the Makefile without running `make'.
  7943. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  7944. test -z "$DEPDIR" && continue
  7945. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  7946. test -z "am__include" && continue
  7947. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  7948. # When using ansi2knr, U may be empty or an underscore; expand it
  7949. U=`sed -n 's/^U = //p' < "$mf"`
  7950. # Find all dependency output files, they are included files with
  7951. # $(DEPDIR) in their names. We invoke sed twice because it is the
  7952. # simplest approach to changing $(DEPDIR) to its actual value in the
  7953. # expansion.
  7954. for file in `sed -n "
  7955. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  7956. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  7957. # Make sure the directory exists.
  7958. test -f "$dirpart/$file" && continue
  7959. fdir=`AS_DIRNAME(["$file"])`
  7960. AS_MKDIR_P([$dirpart/$fdir])
  7961. # echo "creating $dirpart/$file"
  7962. echo '# dummy' > "$dirpart/$file"
  7963. done
  7964. done
  7965. }
  7966. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  7967. # AM_OUTPUT_DEPENDENCY_COMMANDS
  7968. # -----------------------------
  7969. # This macro should only be invoked once -- use via AC_REQUIRE.
  7970. #
  7971. # This code is only required when automatic dependency tracking
  7972. # is enabled. FIXME. This creates each `.P' file that we will
  7973. # need in order to bootstrap the dependency handling code.
  7974. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  7975. [AC_CONFIG_COMMANDS([depfiles],
  7976. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  7977. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  7978. ])
  7979. # Do all the work for Automake. -*- Autoconf -*-
  7980. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  7981. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  7982. #
  7983. # This file is free software; the Free Software Foundation
  7984. # gives unlimited permission to copy and/or distribute it,
  7985. # with or without modifications, as long as this notice is preserved.
  7986. # serial 16
  7987. # This macro actually does too much. Some checks are only needed if
  7988. # your package does certain things. But this isn't really a big deal.
  7989. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  7990. # AM_INIT_AUTOMAKE([OPTIONS])
  7991. # -----------------------------------------------
  7992. # The call with PACKAGE and VERSION arguments is the old style
  7993. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  7994. # and VERSION should now be passed to AC_INIT and removed from
  7995. # the call to AM_INIT_AUTOMAKE.
  7996. # We support both call styles for the transition. After
  7997. # the next Automake release, Autoconf can make the AC_INIT
  7998. # arguments mandatory, and then we can depend on a new Autoconf
  7999. # release and drop the old call support.
  8000. AC_DEFUN([AM_INIT_AUTOMAKE],
  8001. [AC_PREREQ([2.62])dnl
  8002. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8003. dnl the ones we care about.
  8004. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8005. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8006. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8007. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8008. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8009. # is not polluted with repeated "-I."
  8010. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8011. # test to see if srcdir already configured
  8012. if test -f $srcdir/config.status; then
  8013. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8014. fi
  8015. fi
  8016. # test whether we have cygpath
  8017. if test -z "$CYGPATH_W"; then
  8018. if (cygpath --version) >/dev/null 2>/dev/null; then
  8019. CYGPATH_W='cygpath -w'
  8020. else
  8021. CYGPATH_W=echo
  8022. fi
  8023. fi
  8024. AC_SUBST([CYGPATH_W])
  8025. # Define the identity of the package.
  8026. dnl Distinguish between old-style and new-style calls.
  8027. m4_ifval([$2],
  8028. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8029. AC_SUBST([PACKAGE], [$1])dnl
  8030. AC_SUBST([VERSION], [$2])],
  8031. [_AM_SET_OPTIONS([$1])dnl
  8032. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8033. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  8034. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8035. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8036. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8037. _AM_IF_OPTION([no-define],,
  8038. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8039. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8040. # Some tools Automake needs.
  8041. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8042. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8043. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8044. AM_MISSING_PROG(AUTOCONF, autoconf)
  8045. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8046. AM_MISSING_PROG(AUTOHEADER, autoheader)
  8047. AM_MISSING_PROG(MAKEINFO, makeinfo)
  8048. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8049. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8050. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8051. # We need awk for the "check" target. The system "awk" is bad on
  8052. # some platforms.
  8053. AC_REQUIRE([AC_PROG_AWK])dnl
  8054. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8055. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8056. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8057. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8058. [_AM_PROG_TAR([v7])])])
  8059. _AM_IF_OPTION([no-dependencies],,
  8060. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8061. [_AM_DEPENDENCIES(CC)],
  8062. [define([AC_PROG_CC],
  8063. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8064. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8065. [_AM_DEPENDENCIES(CXX)],
  8066. [define([AC_PROG_CXX],
  8067. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8068. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8069. [_AM_DEPENDENCIES(OBJC)],
  8070. [define([AC_PROG_OBJC],
  8071. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  8072. ])
  8073. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  8074. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  8075. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  8076. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8077. AC_CONFIG_COMMANDS_PRE(dnl
  8078. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8079. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8080. ])
  8081. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8082. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8083. dnl mangled by Autoconf and run in a shell conditional statement.
  8084. m4_define([_AC_COMPILER_EXEEXT],
  8085. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8086. # When config.status generates a header, we must update the stamp-h file.
  8087. # This file resides in the same directory as the config header
  8088. # that is generated. The stamp files are numbered to have different names.
  8089. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8090. # loop where config.status creates the headers, so we can generate
  8091. # our stamp files there.
  8092. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8093. [# Compute $1's index in $config_headers.
  8094. _am_arg=$1
  8095. _am_stamp_count=1
  8096. for _am_header in $config_headers :; do
  8097. case $_am_header in
  8098. $_am_arg | $_am_arg:* )
  8099. break ;;
  8100. * )
  8101. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8102. esac
  8103. done
  8104. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8105. # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  8106. #
  8107. # This file is free software; the Free Software Foundation
  8108. # gives unlimited permission to copy and/or distribute it,
  8109. # with or without modifications, as long as this notice is preserved.
  8110. # AM_PROG_INSTALL_SH
  8111. # ------------------
  8112. # Define $install_sh.
  8113. AC_DEFUN([AM_PROG_INSTALL_SH],
  8114. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8115. if test x"${install_sh}" != xset; then
  8116. case $am_aux_dir in
  8117. *\ * | *\ *)
  8118. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8119. *)
  8120. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8121. esac
  8122. fi
  8123. AC_SUBST(install_sh)])
  8124. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  8125. #
  8126. # This file is free software; the Free Software Foundation
  8127. # gives unlimited permission to copy and/or distribute it,
  8128. # with or without modifications, as long as this notice is preserved.
  8129. # serial 2
  8130. # Check whether the underlying file-system supports filenames
  8131. # with a leading dot. For instance MS-DOS doesn't.
  8132. AC_DEFUN([AM_SET_LEADING_DOT],
  8133. [rm -rf .tst 2>/dev/null
  8134. mkdir .tst 2>/dev/null
  8135. if test -d .tst; then
  8136. am__leading_dot=.
  8137. else
  8138. am__leading_dot=_
  8139. fi
  8140. rmdir .tst 2>/dev/null
  8141. AC_SUBST([am__leading_dot])])
  8142. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8143. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  8144. #
  8145. # This file is free software; the Free Software Foundation
  8146. # gives unlimited permission to copy and/or distribute it,
  8147. # with or without modifications, as long as this notice is preserved.
  8148. # serial 4
  8149. # AM_MAKE_INCLUDE()
  8150. # -----------------
  8151. # Check to see how make treats includes.
  8152. AC_DEFUN([AM_MAKE_INCLUDE],
  8153. [am_make=${MAKE-make}
  8154. cat > confinc << 'END'
  8155. am__doit:
  8156. @echo this is the am__doit target
  8157. .PHONY: am__doit
  8158. END
  8159. # If we don't find an include directive, just comment out the code.
  8160. AC_MSG_CHECKING([for style of include used by $am_make])
  8161. am__include="#"
  8162. am__quote=
  8163. _am_result=none
  8164. # First try GNU make style include.
  8165. echo "include confinc" > confmf
  8166. # Ignore all kinds of additional output from `make'.
  8167. case `$am_make -s -f confmf 2> /dev/null` in #(
  8168. *the\ am__doit\ target*)
  8169. am__include=include
  8170. am__quote=
  8171. _am_result=GNU
  8172. ;;
  8173. esac
  8174. # Now try BSD make style include.
  8175. if test "$am__include" = "#"; then
  8176. echo '.include "confinc"' > confmf
  8177. case `$am_make -s -f confmf 2> /dev/null` in #(
  8178. *the\ am__doit\ target*)
  8179. am__include=.include
  8180. am__quote="\""
  8181. _am_result=BSD
  8182. ;;
  8183. esac
  8184. fi
  8185. AC_SUBST([am__include])
  8186. AC_SUBST([am__quote])
  8187. AC_MSG_RESULT([$_am_result])
  8188. rm -f confinc confmf
  8189. ])
  8190. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8191. # Free Software Foundation, Inc.
  8192. #
  8193. # This file is free software; the Free Software Foundation
  8194. # gives unlimited permission to copy and/or distribute it,
  8195. # with or without modifications, as long as this notice is preserved.
  8196. # serial 6
  8197. # AM_PROG_CC_C_O
  8198. # --------------
  8199. # Like AC_PROG_CC_C_O, but changed for automake.
  8200. AC_DEFUN([AM_PROG_CC_C_O],
  8201. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  8202. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8203. AC_REQUIRE_AUX_FILE([compile])dnl
  8204. # FIXME: we rely on the cache variable name because
  8205. # there is no other way.
  8206. set dummy $CC
  8207. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  8208. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  8209. if test "$am_t" != yes; then
  8210. # Losing compiler, so override with the script.
  8211. # FIXME: It is wrong to rewrite CC.
  8212. # But if we don't then we get into trouble of one sort or another.
  8213. # A longer-term fix would be to have automake use am__CC in this case,
  8214. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  8215. CC="$am_aux_dir/compile $CC"
  8216. fi
  8217. dnl Make sure AC_PROG_CC is never called again, or it will override our
  8218. dnl setting of CC.
  8219. m4_define([AC_PROG_CC],
  8220. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  8221. ])
  8222. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8223. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8224. # Free Software Foundation, Inc.
  8225. #
  8226. # This file is free software; the Free Software Foundation
  8227. # gives unlimited permission to copy and/or distribute it,
  8228. # with or without modifications, as long as this notice is preserved.
  8229. # serial 6
  8230. # AM_MISSING_PROG(NAME, PROGRAM)
  8231. # ------------------------------
  8232. AC_DEFUN([AM_MISSING_PROG],
  8233. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8234. $1=${$1-"${am_missing_run}$2"}
  8235. AC_SUBST($1)])
  8236. # AM_MISSING_HAS_RUN
  8237. # ------------------
  8238. # Define MISSING if not defined so far and test if it supports --run.
  8239. # If it does, set am_missing_run to use it, otherwise, to nothing.
  8240. AC_DEFUN([AM_MISSING_HAS_RUN],
  8241. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8242. AC_REQUIRE_AUX_FILE([missing])dnl
  8243. if test x"${MISSING+set}" != xset; then
  8244. case $am_aux_dir in
  8245. *\ * | *\ *)
  8246. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8247. *)
  8248. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8249. esac
  8250. fi
  8251. # Use eval to expand $SHELL
  8252. if eval "$MISSING --run true"; then
  8253. am_missing_run="$MISSING --run "
  8254. else
  8255. am_missing_run=
  8256. AC_MSG_WARN([`missing' script is too old or missing])
  8257. fi
  8258. ])
  8259. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8260. #
  8261. # This file is free software; the Free Software Foundation
  8262. # gives unlimited permission to copy and/or distribute it,
  8263. # with or without modifications, as long as this notice is preserved.
  8264. # AM_PROG_MKDIR_P
  8265. # ---------------
  8266. # Check for `mkdir -p'.
  8267. AC_DEFUN([AM_PROG_MKDIR_P],
  8268. [AC_PREREQ([2.60])dnl
  8269. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8270. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  8271. dnl while keeping a definition of mkdir_p for backward compatibility.
  8272. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  8273. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  8274. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  8275. dnl adjustment using top_builddir (which is defined more often than
  8276. dnl MKDIR_P).
  8277. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  8278. case $mkdir_p in
  8279. [[\\/$]]* | ?:[[\\/]]*) ;;
  8280. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8281. esac
  8282. ])
  8283. # Helper functions for option handling. -*- Autoconf -*-
  8284. # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  8285. #
  8286. # This file is free software; the Free Software Foundation
  8287. # gives unlimited permission to copy and/or distribute it,
  8288. # with or without modifications, as long as this notice is preserved.
  8289. # serial 4
  8290. # _AM_MANGLE_OPTION(NAME)
  8291. # -----------------------
  8292. AC_DEFUN([_AM_MANGLE_OPTION],
  8293. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8294. # _AM_SET_OPTION(NAME)
  8295. # ------------------------------
  8296. # Set option NAME. Presently that only means defining a flag for this option.
  8297. AC_DEFUN([_AM_SET_OPTION],
  8298. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  8299. # _AM_SET_OPTIONS(OPTIONS)
  8300. # ----------------------------------
  8301. # OPTIONS is a space-separated list of Automake options.
  8302. AC_DEFUN([_AM_SET_OPTIONS],
  8303. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8304. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8305. # -------------------------------------------
  8306. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8307. AC_DEFUN([_AM_IF_OPTION],
  8308. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8309. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8310. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  8311. # Free Software Foundation, Inc.
  8312. #
  8313. # This file is free software; the Free Software Foundation
  8314. # gives unlimited permission to copy and/or distribute it,
  8315. # with or without modifications, as long as this notice is preserved.
  8316. # serial 5
  8317. # AM_SANITY_CHECK
  8318. # ---------------
  8319. AC_DEFUN([AM_SANITY_CHECK],
  8320. [AC_MSG_CHECKING([whether build environment is sane])
  8321. # Just in case
  8322. sleep 1
  8323. echo timestamp > conftest.file
  8324. # Reject unsafe characters in $srcdir or the absolute working directory
  8325. # name. Accept space and tab only in the latter.
  8326. am_lf='
  8327. '
  8328. case `pwd` in
  8329. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8330. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8331. esac
  8332. case $srcdir in
  8333. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8334. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  8335. esac
  8336. # Do `set' in a subshell so we don't clobber the current shell's
  8337. # arguments. Must try -L first in case configure is actually a
  8338. # symlink; some systems play weird games with the mod time of symlinks
  8339. # (eg FreeBSD returns the mod time of the symlink's containing
  8340. # directory).
  8341. if (
  8342. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8343. if test "$[*]" = "X"; then
  8344. # -L didn't work.
  8345. set X `ls -t "$srcdir/configure" conftest.file`
  8346. fi
  8347. rm -f conftest.file
  8348. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8349. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8350. # If neither matched, then we have a broken ls. This can happen
  8351. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8352. # broken ls alias from the environment. This has actually
  8353. # happened. Such a system could not be considered "sane".
  8354. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8355. alias in your environment])
  8356. fi
  8357. test "$[2]" = conftest.file
  8358. )
  8359. then
  8360. # Ok.
  8361. :
  8362. else
  8363. AC_MSG_ERROR([newly created file is older than distributed files!
  8364. Check your system clock])
  8365. fi
  8366. AC_MSG_RESULT(yes)])
  8367. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  8368. #
  8369. # This file is free software; the Free Software Foundation
  8370. # gives unlimited permission to copy and/or distribute it,
  8371. # with or without modifications, as long as this notice is preserved.
  8372. # AM_PROG_INSTALL_STRIP
  8373. # ---------------------
  8374. # One issue with vendor `install' (even GNU) is that you can't
  8375. # specify the program used to strip binaries. This is especially
  8376. # annoying in cross-compiling environments, where the build's strip
  8377. # is unlikely to handle the host's binaries.
  8378. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8379. # always use install-sh in `make install-strip', and initialize
  8380. # STRIPPROG with the value of the STRIP variable (set by the user).
  8381. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8382. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8383. # Installed binaries are usually stripped using `strip' when the user
  8384. # run `make install-strip'. However `strip' might not be the right
  8385. # tool to use in cross-compilation environments, therefore Automake
  8386. # will honor the `STRIP' environment variable to overrule this program.
  8387. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  8388. if test "$cross_compiling" != no; then
  8389. AC_CHECK_TOOL([STRIP], [strip], :)
  8390. fi
  8391. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8392. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8393. # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  8394. #
  8395. # This file is free software; the Free Software Foundation
  8396. # gives unlimited permission to copy and/or distribute it,
  8397. # with or without modifications, as long as this notice is preserved.
  8398. # serial 2
  8399. # _AM_SUBST_NOTMAKE(VARIABLE)
  8400. # ---------------------------
  8401. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8402. # This macro is traced by Automake.
  8403. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8404. # AM_SUBST_NOTMAKE(VARIABLE)
  8405. # ---------------------------
  8406. # Public sister of _AM_SUBST_NOTMAKE.
  8407. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8408. # Check how to create a tarball. -*- Autoconf -*-
  8409. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  8410. #
  8411. # This file is free software; the Free Software Foundation
  8412. # gives unlimited permission to copy and/or distribute it,
  8413. # with or without modifications, as long as this notice is preserved.
  8414. # serial 2
  8415. # _AM_PROG_TAR(FORMAT)
  8416. # --------------------
  8417. # Check how to create a tarball in format FORMAT.
  8418. # FORMAT should be one of `v7', `ustar', or `pax'.
  8419. #
  8420. # Substitute a variable $(am__tar) that is a command
  8421. # writing to stdout a FORMAT-tarball containing the directory
  8422. # $tardir.
  8423. # tardir=directory && $(am__tar) > result.tar
  8424. #
  8425. # Substitute a variable $(am__untar) that extract such
  8426. # a tarball read from stdin.
  8427. # $(am__untar) < result.tar
  8428. AC_DEFUN([_AM_PROG_TAR],
  8429. [# Always define AMTAR for backward compatibility.
  8430. AM_MISSING_PROG([AMTAR], [tar])
  8431. m4_if([$1], [v7],
  8432. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  8433. [m4_case([$1], [ustar],, [pax],,
  8434. [m4_fatal([Unknown tar format])])
  8435. AC_MSG_CHECKING([how to create a $1 tar archive])
  8436. # Loop over all known methods to create a tar archive until one works.
  8437. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8438. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8439. # Do not fold the above two line into one, because Tru64 sh and
  8440. # Solaris sh will not grok spaces in the rhs of `-'.
  8441. for _am_tool in $_am_tools
  8442. do
  8443. case $_am_tool in
  8444. gnutar)
  8445. for _am_tar in tar gnutar gtar;
  8446. do
  8447. AM_RUN_LOG([$_am_tar --version]) && break
  8448. done
  8449. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8450. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8451. am__untar="$_am_tar -xf -"
  8452. ;;
  8453. plaintar)
  8454. # Must skip GNU tar: if it does not support --format= it doesn't create
  8455. # ustar tarball either.
  8456. (tar --version) >/dev/null 2>&1 && continue
  8457. am__tar='tar chf - "$$tardir"'
  8458. am__tar_='tar chf - "$tardir"'
  8459. am__untar='tar xf -'
  8460. ;;
  8461. pax)
  8462. am__tar='pax -L -x $1 -w "$$tardir"'
  8463. am__tar_='pax -L -x $1 -w "$tardir"'
  8464. am__untar='pax -r'
  8465. ;;
  8466. cpio)
  8467. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8468. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8469. am__untar='cpio -i -H $1 -d'
  8470. ;;
  8471. none)
  8472. am__tar=false
  8473. am__tar_=false
  8474. am__untar=false
  8475. ;;
  8476. esac
  8477. # If the value was cached, stop now. We just wanted to have am__tar
  8478. # and am__untar set.
  8479. test -n "${am_cv_prog_tar_$1}" && break
  8480. # tar/untar a dummy directory, and stop if the command works
  8481. rm -rf conftest.dir
  8482. mkdir conftest.dir
  8483. echo GrepMe > conftest.dir/file
  8484. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8485. rm -rf conftest.dir
  8486. if test -s conftest.tar; then
  8487. AM_RUN_LOG([$am__untar <conftest.tar])
  8488. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8489. fi
  8490. done
  8491. rm -rf conftest.dir
  8492. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8493. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8494. AC_SUBST([am__tar])
  8495. AC_SUBST([am__untar])
  8496. ]) # _AM_PROG_TAR