aclocal.m4 313 KB

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