aclocal.m4 339 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637
  1. # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
  4. # Inc.
  5. # This file is free software; the Free Software Foundation
  6. # gives unlimited permission to copy and/or distribute it,
  7. # with or without modifications, as long as this notice is preserved.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  10. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  11. # PARTICULAR PURPOSE.
  12. m4_ifndef([AC_AUTOCONF_VERSION],
  13. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  14. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
  15. [m4_warning([this file was generated for autoconf 2.68.
  16. You have another version of autoconf. It may work, but is not guaranteed to.
  17. If you have problems, you may need to regenerate the build system entirely.
  18. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  19. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  20. #
  21. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23. # Foundation, Inc.
  24. # Written by Gordon Matzigkeit, 1996
  25. #
  26. # This file is free software; the Free Software Foundation gives
  27. # unlimited permission to copy and/or distribute it, with or without
  28. # modifications, as long as this notice is preserved.
  29. m4_define([_LT_COPYING], [dnl
  30. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  31. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  32. # Foundation, Inc.
  33. # Written by Gordon Matzigkeit, 1996
  34. #
  35. # This file is part of GNU Libtool.
  36. #
  37. # GNU Libtool is free software; you can redistribute it and/or
  38. # modify it under the terms of the GNU General Public License as
  39. # published by the Free Software Foundation; either version 2 of
  40. # the License, or (at your option) any later version.
  41. #
  42. # As a special exception to the GNU General Public License,
  43. # if you distribute this file as part of a program or library that
  44. # is built using GNU Libtool, you may include this file under the
  45. # same distribution terms that you use for the rest of that program.
  46. #
  47. # GNU Libtool is distributed in the hope that it will be useful,
  48. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  49. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  50. # GNU General Public License for more details.
  51. #
  52. # You should have received a copy of the GNU General Public License
  53. # along with GNU Libtool; see the file COPYING. If not, a copy
  54. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  55. # obtained by writing to the Free Software Foundation, Inc.,
  56. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  57. ])
  58. # serial 57 LT_INIT
  59. # LT_PREREQ(VERSION)
  60. # ------------------
  61. # Complain and exit if this libtool version is less that VERSION.
  62. m4_defun([LT_PREREQ],
  63. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  64. [m4_default([$3],
  65. [m4_fatal([Libtool version $1 or higher is required],
  66. 63)])],
  67. [$2])])
  68. # _LT_CHECK_BUILDDIR
  69. # ------------------
  70. # Complain if the absolute build directory name contains unusual characters
  71. m4_defun([_LT_CHECK_BUILDDIR],
  72. [case `pwd` in
  73. *\ * | *\ *)
  74. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  75. esac
  76. ])
  77. # LT_INIT([OPTIONS])
  78. # ------------------
  79. AC_DEFUN([LT_INIT],
  80. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  81. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  82. AC_BEFORE([$0], [LT_LANG])dnl
  83. AC_BEFORE([$0], [LT_OUTPUT])dnl
  84. AC_BEFORE([$0], [LTDL_INIT])dnl
  85. m4_require([_LT_CHECK_BUILDDIR])dnl
  86. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  87. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  88. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  89. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  90. dnl unless we require an AC_DEFUNed macro:
  91. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  92. AC_REQUIRE([LTSUGAR_VERSION])dnl
  93. AC_REQUIRE([LTVERSION_VERSION])dnl
  94. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  95. m4_require([_LT_PROG_LTMAIN])dnl
  96. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  97. dnl Parse OPTIONS
  98. _LT_SET_OPTIONS([$0], [$1])
  99. # This can be used to rebuild libtool when needed
  100. LIBTOOL_DEPS="$ltmain"
  101. # Always use our own libtool.
  102. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  103. AC_SUBST(LIBTOOL)dnl
  104. _LT_SETUP
  105. # Only expand once:
  106. m4_define([LT_INIT])
  107. ])# LT_INIT
  108. # Old names:
  109. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  110. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  111. dnl aclocal-1.4 backwards compatibility:
  112. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  113. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  114. # _LT_CC_BASENAME(CC)
  115. # -------------------
  116. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  117. m4_defun([_LT_CC_BASENAME],
  118. [for cc_temp in $1""; do
  119. case $cc_temp in
  120. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  121. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  122. \-*) ;;
  123. *) break;;
  124. esac
  125. done
  126. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  127. ])
  128. # _LT_FILEUTILS_DEFAULTS
  129. # ----------------------
  130. # It is okay to use these file commands and assume they have been set
  131. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  132. m4_defun([_LT_FILEUTILS_DEFAULTS],
  133. [: ${CP="cp -f"}
  134. : ${MV="mv -f"}
  135. : ${RM="rm -f"}
  136. ])# _LT_FILEUTILS_DEFAULTS
  137. # _LT_SETUP
  138. # ---------
  139. m4_defun([_LT_SETUP],
  140. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  141. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  142. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  143. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  144. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  145. dnl
  146. _LT_DECL([], [host_alias], [0], [The host system])dnl
  147. _LT_DECL([], [host], [0])dnl
  148. _LT_DECL([], [host_os], [0])dnl
  149. dnl
  150. _LT_DECL([], [build_alias], [0], [The build system])dnl
  151. _LT_DECL([], [build], [0])dnl
  152. _LT_DECL([], [build_os], [0])dnl
  153. dnl
  154. AC_REQUIRE([AC_PROG_CC])dnl
  155. AC_REQUIRE([LT_PATH_LD])dnl
  156. AC_REQUIRE([LT_PATH_NM])dnl
  157. dnl
  158. AC_REQUIRE([AC_PROG_LN_S])dnl
  159. test -z "$LN_S" && LN_S="ln -s"
  160. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  161. dnl
  162. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  163. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  164. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  165. dnl
  166. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  167. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  168. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  169. m4_require([_LT_CMD_RELOAD])dnl
  170. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  171. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  172. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  173. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  174. m4_require([_LT_WITH_SYSROOT])dnl
  175. _LT_CONFIG_LIBTOOL_INIT([
  176. # See if we are running on zsh, and set the options which allow our
  177. # commands through without removal of \ escapes INIT.
  178. if test -n "\${ZSH_VERSION+set}" ; then
  179. setopt NO_GLOB_SUBST
  180. fi
  181. ])
  182. if test -n "${ZSH_VERSION+set}" ; then
  183. setopt NO_GLOB_SUBST
  184. fi
  185. _LT_CHECK_OBJDIR
  186. m4_require([_LT_TAG_COMPILER])dnl
  187. case $host_os in
  188. aix3*)
  189. # AIX sometimes has problems with the GCC collect2 program. For some
  190. # reason, if we set the COLLECT_NAMES environment variable, the problems
  191. # vanish in a puff of smoke.
  192. if test "X${COLLECT_NAMES+set}" != Xset; then
  193. COLLECT_NAMES=
  194. export COLLECT_NAMES
  195. fi
  196. ;;
  197. esac
  198. # Global variables:
  199. ofile=libtool
  200. can_build_shared=yes
  201. # All known linkers require a `.a' archive for static linking (except MSVC,
  202. # which needs '.lib').
  203. libext=a
  204. with_gnu_ld="$lt_cv_prog_gnu_ld"
  205. old_CC="$CC"
  206. old_CFLAGS="$CFLAGS"
  207. # Set sane defaults for various variables
  208. test -z "$CC" && CC=cc
  209. test -z "$LTCC" && LTCC=$CC
  210. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  211. test -z "$LD" && LD=ld
  212. test -z "$ac_objext" && ac_objext=o
  213. _LT_CC_BASENAME([$compiler])
  214. # Only perform the check for file, if the check method requires it
  215. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  216. case $deplibs_check_method in
  217. file_magic*)
  218. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  219. _LT_PATH_MAGIC
  220. fi
  221. ;;
  222. esac
  223. # Use C for the default configuration in the libtool script
  224. LT_SUPPORTED_TAG([CC])
  225. _LT_LANG_C_CONFIG
  226. _LT_LANG_DEFAULT_CONFIG
  227. _LT_CONFIG_COMMANDS
  228. ])# _LT_SETUP
  229. # _LT_PREPARE_SED_QUOTE_VARS
  230. # --------------------------
  231. # Define a few sed substitution that help us do robust quoting.
  232. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  233. [# Backslashify metacharacters that are still active within
  234. # double-quoted strings.
  235. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  236. # Same as above, but do not quote variable references.
  237. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  238. # Sed substitution to delay expansion of an escaped shell variable in a
  239. # double_quote_subst'ed string.
  240. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  241. # Sed substitution to delay expansion of an escaped single quote.
  242. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  243. # Sed substitution to avoid accidental globbing in evaled expressions
  244. no_glob_subst='s/\*/\\\*/g'
  245. ])
  246. # _LT_PROG_LTMAIN
  247. # ---------------
  248. # Note that this code is called both from `configure', and `config.status'
  249. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  250. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  251. # so we pass a copy along to make sure it has a sensible value anyway.
  252. m4_defun([_LT_PROG_LTMAIN],
  253. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  254. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  255. ltmain="$ac_aux_dir/ltmain.sh"
  256. ])# _LT_PROG_LTMAIN
  257. # So that we can recreate a full libtool script including additional
  258. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  259. # in macros and then make a single call at the end using the `libtool'
  260. # label.
  261. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  262. # ----------------------------------------
  263. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  264. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  265. [m4_ifval([$1],
  266. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  267. [$1
  268. ])])])
  269. # Initialize.
  270. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  271. # _LT_CONFIG_LIBTOOL([COMMANDS])
  272. # ------------------------------
  273. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  274. m4_define([_LT_CONFIG_LIBTOOL],
  275. [m4_ifval([$1],
  276. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  277. [$1
  278. ])])])
  279. # Initialize.
  280. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  281. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  282. # -----------------------------------------------------
  283. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  284. [_LT_CONFIG_LIBTOOL([$1])
  285. _LT_CONFIG_LIBTOOL_INIT([$2])
  286. ])
  287. # _LT_FORMAT_COMMENT([COMMENT])
  288. # -----------------------------
  289. # Add leading comment marks to the start of each line, and a trailing
  290. # full-stop to the whole comment if one is not present already.
  291. m4_define([_LT_FORMAT_COMMENT],
  292. [m4_ifval([$1], [
  293. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  294. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  295. )])
  296. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  297. # -------------------------------------------------------------------
  298. # CONFIGNAME is the name given to the value in the libtool script.
  299. # VARNAME is the (base) name used in the configure script.
  300. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  301. # VARNAME. Any other value will be used directly.
  302. m4_define([_LT_DECL],
  303. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  304. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  305. [m4_ifval([$1], [$1], [$2])])
  306. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  307. m4_ifval([$4],
  308. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  309. lt_dict_add_subkey([lt_decl_dict], [$2],
  310. [tagged?], [m4_ifval([$5], [yes], [no])])])
  311. ])
  312. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  313. # --------------------------------------------------------
  314. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  315. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  316. # ------------------------------------------------
  317. m4_define([lt_decl_tag_varnames],
  318. [_lt_decl_filter([tagged?], [yes], $@)])
  319. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  320. # ---------------------------------------------------------
  321. m4_define([_lt_decl_filter],
  322. [m4_case([$#],
  323. [0], [m4_fatal([$0: too few arguments: $#])],
  324. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  325. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  326. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  327. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  328. ])
  329. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  330. # --------------------------------------------------
  331. m4_define([lt_decl_quote_varnames],
  332. [_lt_decl_filter([value], [1], $@)])
  333. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  334. # ---------------------------------------------------
  335. m4_define([lt_decl_dquote_varnames],
  336. [_lt_decl_filter([value], [2], $@)])
  337. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  338. # ---------------------------------------------------
  339. m4_define([lt_decl_varnames_tagged],
  340. [m4_assert([$# <= 2])dnl
  341. _$0(m4_quote(m4_default([$1], [[, ]])),
  342. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  343. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  344. m4_define([_lt_decl_varnames_tagged],
  345. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  346. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  347. # ------------------------------------------------
  348. m4_define([lt_decl_all_varnames],
  349. [_$0(m4_quote(m4_default([$1], [[, ]])),
  350. m4_if([$2], [],
  351. m4_quote(lt_decl_varnames),
  352. m4_quote(m4_shift($@))))[]dnl
  353. ])
  354. m4_define([_lt_decl_all_varnames],
  355. [lt_join($@, lt_decl_varnames_tagged([$1],
  356. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  357. ])
  358. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  359. # ------------------------------------
  360. # Quote a variable value, and forward it to `config.status' so that its
  361. # declaration there will have the same value as in `configure'. VARNAME
  362. # must have a single quote delimited value for this to work.
  363. m4_define([_LT_CONFIG_STATUS_DECLARE],
  364. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  365. # _LT_CONFIG_STATUS_DECLARATIONS
  366. # ------------------------------
  367. # We delimit libtool config variables with single quotes, so when
  368. # we write them to config.status, we have to be sure to quote all
  369. # embedded single quotes properly. In configure, this macro expands
  370. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  371. #
  372. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  373. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  374. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  375. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  376. # _LT_LIBTOOL_TAGS
  377. # ----------------
  378. # Output comment and list of tags supported by the script
  379. m4_defun([_LT_LIBTOOL_TAGS],
  380. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  381. available_tags="_LT_TAGS"dnl
  382. ])
  383. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  384. # -----------------------------------
  385. # Extract the dictionary values for VARNAME (optionally with TAG) and
  386. # expand to a commented shell variable setting:
  387. #
  388. # # Some comment about what VAR is for.
  389. # visible_name=$lt_internal_name
  390. m4_define([_LT_LIBTOOL_DECLARE],
  391. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  392. [description])))[]dnl
  393. m4_pushdef([_libtool_name],
  394. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  395. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  396. [0], [_libtool_name=[$]$1],
  397. [1], [_libtool_name=$lt_[]$1],
  398. [2], [_libtool_name=$lt_[]$1],
  399. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  400. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  401. ])
  402. # _LT_LIBTOOL_CONFIG_VARS
  403. # -----------------------
  404. # Produce commented declarations of non-tagged libtool config variables
  405. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  406. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  407. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  408. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  409. [m4_foreach([_lt_var],
  410. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  411. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  412. # _LT_LIBTOOL_TAG_VARS(TAG)
  413. # -------------------------
  414. m4_define([_LT_LIBTOOL_TAG_VARS],
  415. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  416. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  417. # _LT_TAGVAR(VARNAME, [TAGNAME])
  418. # ------------------------------
  419. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  420. # _LT_CONFIG_COMMANDS
  421. # -------------------
  422. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  423. # variables for single and double quote escaping we saved from calls
  424. # to _LT_DECL, we can put quote escaped variables declarations
  425. # into `config.status', and then the shell code to quote escape them in
  426. # for loops in `config.status'. Finally, any additional code accumulated
  427. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  428. m4_defun([_LT_CONFIG_COMMANDS],
  429. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  430. dnl If the libtool generation code has been placed in $CONFIG_LT,
  431. dnl instead of duplicating it all over again into config.status,
  432. dnl then we will have config.status run $CONFIG_LT later, so it
  433. dnl needs to know what name is stored there:
  434. [AC_CONFIG_COMMANDS([libtool],
  435. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  436. dnl If the libtool generation code is destined for config.status,
  437. dnl expand the accumulated commands and init code now:
  438. [AC_CONFIG_COMMANDS([libtool],
  439. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  440. ])#_LT_CONFIG_COMMANDS
  441. # Initialize.
  442. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  443. [
  444. # The HP-UX ksh and POSIX shell print the target directory to stdout
  445. # if CDPATH is set.
  446. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  447. sed_quote_subst='$sed_quote_subst'
  448. double_quote_subst='$double_quote_subst'
  449. delay_variable_subst='$delay_variable_subst'
  450. _LT_CONFIG_STATUS_DECLARATIONS
  451. LTCC='$LTCC'
  452. LTCFLAGS='$LTCFLAGS'
  453. compiler='$compiler_DEFAULT'
  454. # A function that is used when there is no print builtin or printf.
  455. func_fallback_echo ()
  456. {
  457. eval 'cat <<_LTECHO_EOF
  458. \$[]1
  459. _LTECHO_EOF'
  460. }
  461. # Quote evaled strings.
  462. for var in lt_decl_all_varnames([[ \
  463. ]], lt_decl_quote_varnames); do
  464. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  465. *[[\\\\\\\`\\"\\\$]]*)
  466. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  467. ;;
  468. *)
  469. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  470. ;;
  471. esac
  472. done
  473. # Double-quote double-evaled strings.
  474. for var in lt_decl_all_varnames([[ \
  475. ]], lt_decl_dquote_varnames); do
  476. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  477. *[[\\\\\\\`\\"\\\$]]*)
  478. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  479. ;;
  480. *)
  481. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  482. ;;
  483. esac
  484. done
  485. _LT_OUTPUT_LIBTOOL_INIT
  486. ])
  487. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  488. # ------------------------------------
  489. # Generate a child script FILE with all initialization necessary to
  490. # reuse the environment learned by the parent script, and make the
  491. # file executable. If COMMENT is supplied, it is inserted after the
  492. # `#!' sequence but before initialization text begins. After this
  493. # macro, additional text can be appended to FILE to form the body of
  494. # the child script. The macro ends with non-zero status if the
  495. # file could not be fully written (such as if the disk is full).
  496. m4_ifdef([AS_INIT_GENERATED],
  497. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  498. [m4_defun([_LT_GENERATED_FILE_INIT],
  499. [m4_require([AS_PREPARE])]dnl
  500. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  501. [lt_write_fail=0
  502. cat >$1 <<_ASEOF || lt_write_fail=1
  503. #! $SHELL
  504. # Generated by $as_me.
  505. $2
  506. SHELL=\${CONFIG_SHELL-$SHELL}
  507. export SHELL
  508. _ASEOF
  509. cat >>$1 <<\_ASEOF || lt_write_fail=1
  510. AS_SHELL_SANITIZE
  511. _AS_PREPARE
  512. exec AS_MESSAGE_FD>&1
  513. _ASEOF
  514. test $lt_write_fail = 0 && chmod +x $1[]dnl
  515. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  516. # LT_OUTPUT
  517. # ---------
  518. # This macro allows early generation of the libtool script (before
  519. # AC_OUTPUT is called), incase it is used in configure for compilation
  520. # tests.
  521. AC_DEFUN([LT_OUTPUT],
  522. [: ${CONFIG_LT=./config.lt}
  523. AC_MSG_NOTICE([creating $CONFIG_LT])
  524. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  525. [# Run this file to recreate a libtool stub with the current configuration.])
  526. cat >>"$CONFIG_LT" <<\_LTEOF
  527. lt_cl_silent=false
  528. exec AS_MESSAGE_LOG_FD>>config.log
  529. {
  530. echo
  531. AS_BOX([Running $as_me.])
  532. } >&AS_MESSAGE_LOG_FD
  533. lt_cl_help="\
  534. \`$as_me' creates a local libtool stub from the current configuration,
  535. for use in further configure time tests before the real libtool is
  536. generated.
  537. Usage: $[0] [[OPTIONS]]
  538. -h, --help print this help, then exit
  539. -V, --version print version number, then exit
  540. -q, --quiet do not print progress messages
  541. -d, --debug don't remove temporary files
  542. Report bugs to <[email protected]>."
  543. lt_cl_version="\
  544. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  545. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  546. configured by $[0], generated by m4_PACKAGE_STRING.
  547. Copyright (C) 2011 Free Software Foundation, Inc.
  548. This config.lt script is free software; the Free Software Foundation
  549. gives unlimited permision to copy, distribute and modify it."
  550. while test $[#] != 0
  551. do
  552. case $[1] in
  553. --version | --v* | -V )
  554. echo "$lt_cl_version"; exit 0 ;;
  555. --help | --h* | -h )
  556. echo "$lt_cl_help"; exit 0 ;;
  557. --debug | --d* | -d )
  558. debug=: ;;
  559. --quiet | --q* | --silent | --s* | -q )
  560. lt_cl_silent=: ;;
  561. -*) AC_MSG_ERROR([unrecognized option: $[1]
  562. Try \`$[0] --help' for more information.]) ;;
  563. *) AC_MSG_ERROR([unrecognized argument: $[1]
  564. Try \`$[0] --help' for more information.]) ;;
  565. esac
  566. shift
  567. done
  568. if $lt_cl_silent; then
  569. exec AS_MESSAGE_FD>/dev/null
  570. fi
  571. _LTEOF
  572. cat >>"$CONFIG_LT" <<_LTEOF
  573. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  574. _LTEOF
  575. cat >>"$CONFIG_LT" <<\_LTEOF
  576. AC_MSG_NOTICE([creating $ofile])
  577. _LT_OUTPUT_LIBTOOL_COMMANDS
  578. AS_EXIT(0)
  579. _LTEOF
  580. chmod +x "$CONFIG_LT"
  581. # configure is writing to config.log, but config.lt does its own redirection,
  582. # appending to config.log, which fails on DOS, as config.log is still kept
  583. # open by configure. Here we exec the FD to /dev/null, effectively closing
  584. # config.log, so it can be properly (re)opened and appended to by config.lt.
  585. lt_cl_success=:
  586. test "$silent" = yes &&
  587. lt_config_lt_args="$lt_config_lt_args --quiet"
  588. exec AS_MESSAGE_LOG_FD>/dev/null
  589. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  590. exec AS_MESSAGE_LOG_FD>>config.log
  591. $lt_cl_success || AS_EXIT(1)
  592. ])# LT_OUTPUT
  593. # _LT_CONFIG(TAG)
  594. # ---------------
  595. # If TAG is the built-in tag, create an initial libtool script with a
  596. # default configuration from the untagged config vars. Otherwise add code
  597. # to config.status for appending the configuration named by TAG from the
  598. # matching tagged config vars.
  599. m4_defun([_LT_CONFIG],
  600. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  601. _LT_CONFIG_SAVE_COMMANDS([
  602. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  603. m4_if(_LT_TAG, [C], [
  604. # See if we are running on zsh, and set the options which allow our
  605. # commands through without removal of \ escapes.
  606. if test -n "${ZSH_VERSION+set}" ; then
  607. setopt NO_GLOB_SUBST
  608. fi
  609. cfgfile="${ofile}T"
  610. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  611. $RM "$cfgfile"
  612. cat <<_LT_EOF >> "$cfgfile"
  613. #! $SHELL
  614. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  615. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  616. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  617. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  618. #
  619. _LT_COPYING
  620. _LT_LIBTOOL_TAGS
  621. # ### BEGIN LIBTOOL CONFIG
  622. _LT_LIBTOOL_CONFIG_VARS
  623. _LT_LIBTOOL_TAG_VARS
  624. # ### END LIBTOOL CONFIG
  625. _LT_EOF
  626. case $host_os in
  627. aix3*)
  628. cat <<\_LT_EOF >> "$cfgfile"
  629. # AIX sometimes has problems with the GCC collect2 program. For some
  630. # reason, if we set the COLLECT_NAMES environment variable, the problems
  631. # vanish in a puff of smoke.
  632. if test "X${COLLECT_NAMES+set}" != Xset; then
  633. COLLECT_NAMES=
  634. export COLLECT_NAMES
  635. fi
  636. _LT_EOF
  637. ;;
  638. esac
  639. _LT_PROG_LTMAIN
  640. # We use sed instead of cat because bash on DJGPP gets confused if
  641. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  642. # text mode, it properly converts lines to CR/LF. This bash problem
  643. # is reportedly fixed, but why not run on old versions too?
  644. sed '$q' "$ltmain" >> "$cfgfile" \
  645. || (rm -f "$cfgfile"; exit 1)
  646. _LT_PROG_REPLACE_SHELLFNS
  647. mv -f "$cfgfile" "$ofile" ||
  648. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  649. chmod +x "$ofile"
  650. ],
  651. [cat <<_LT_EOF >> "$ofile"
  652. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  653. dnl in a comment (ie after a #).
  654. # ### BEGIN LIBTOOL TAG CONFIG: $1
  655. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  656. # ### END LIBTOOL TAG CONFIG: $1
  657. _LT_EOF
  658. ])dnl /m4_if
  659. ],
  660. [m4_if([$1], [], [
  661. PACKAGE='$PACKAGE'
  662. VERSION='$VERSION'
  663. TIMESTAMP='$TIMESTAMP'
  664. RM='$RM'
  665. ofile='$ofile'], [])
  666. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  667. ])# _LT_CONFIG
  668. # LT_SUPPORTED_TAG(TAG)
  669. # ---------------------
  670. # Trace this macro to discover what tags are supported by the libtool
  671. # --tag option, using:
  672. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  673. AC_DEFUN([LT_SUPPORTED_TAG], [])
  674. # C support is built-in for now
  675. m4_define([_LT_LANG_C_enabled], [])
  676. m4_define([_LT_TAGS], [])
  677. # LT_LANG(LANG)
  678. # -------------
  679. # Enable libtool support for the given language if not already enabled.
  680. AC_DEFUN([LT_LANG],
  681. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  682. m4_case([$1],
  683. [C], [_LT_LANG(C)],
  684. [C++], [_LT_LANG(CXX)],
  685. [Go], [_LT_LANG(GO)],
  686. [Java], [_LT_LANG(GCJ)],
  687. [Fortran 77], [_LT_LANG(F77)],
  688. [Fortran], [_LT_LANG(FC)],
  689. [Windows Resource], [_LT_LANG(RC)],
  690. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  691. [_LT_LANG($1)],
  692. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  693. ])# LT_LANG
  694. # _LT_LANG(LANGNAME)
  695. # ------------------
  696. m4_defun([_LT_LANG],
  697. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  698. [LT_SUPPORTED_TAG([$1])dnl
  699. m4_append([_LT_TAGS], [$1 ])dnl
  700. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  701. _LT_LANG_$1_CONFIG($1)])dnl
  702. ])# _LT_LANG
  703. m4_ifndef([AC_PROG_GO], [
  704. # NOTE: This macro has been submitted for inclusion into #
  705. # GNU Autoconf as AC_PROG_GO. When it is available in #
  706. # a released version of Autoconf we should remove this #
  707. # macro and use it instead. #
  708. m4_defun([AC_PROG_GO],
  709. [AC_LANG_PUSH(Go)dnl
  710. AC_ARG_VAR([GOC], [Go compiler command])dnl
  711. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  712. _AC_ARG_VAR_LDFLAGS()dnl
  713. AC_CHECK_TOOL(GOC, gccgo)
  714. if test -z "$GOC"; then
  715. if test -n "$ac_tool_prefix"; then
  716. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  717. fi
  718. fi
  719. if test -z "$GOC"; then
  720. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  721. fi
  722. ])#m4_defun
  723. ])#m4_ifndef
  724. # _LT_LANG_DEFAULT_CONFIG
  725. # -----------------------
  726. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  727. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  728. [LT_LANG(CXX)],
  729. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  730. AC_PROVIDE_IFELSE([AC_PROG_F77],
  731. [LT_LANG(F77)],
  732. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  733. AC_PROVIDE_IFELSE([AC_PROG_FC],
  734. [LT_LANG(FC)],
  735. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  736. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  737. dnl pulling things in needlessly.
  738. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  739. [LT_LANG(GCJ)],
  740. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  741. [LT_LANG(GCJ)],
  742. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  743. [LT_LANG(GCJ)],
  744. [m4_ifdef([AC_PROG_GCJ],
  745. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  746. m4_ifdef([A][M_PROG_GCJ],
  747. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  748. m4_ifdef([LT_PROG_GCJ],
  749. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  750. AC_PROVIDE_IFELSE([AC_PROG_GO],
  751. [LT_LANG(GO)],
  752. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  753. AC_PROVIDE_IFELSE([LT_PROG_RC],
  754. [LT_LANG(RC)],
  755. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  756. ])# _LT_LANG_DEFAULT_CONFIG
  757. # Obsolete macros:
  758. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  759. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  760. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  761. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  762. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  763. dnl aclocal-1.4 backwards compatibility:
  764. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  765. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  766. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  767. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  768. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  769. # _LT_TAG_COMPILER
  770. # ----------------
  771. m4_defun([_LT_TAG_COMPILER],
  772. [AC_REQUIRE([AC_PROG_CC])dnl
  773. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  774. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  775. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  776. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  777. # If no C compiler was specified, use CC.
  778. LTCC=${LTCC-"$CC"}
  779. # If no C compiler flags were specified, use CFLAGS.
  780. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  781. # Allow CC to be a program name with arguments.
  782. compiler=$CC
  783. ])# _LT_TAG_COMPILER
  784. # _LT_COMPILER_BOILERPLATE
  785. # ------------------------
  786. # Check for compiler boilerplate output or warnings with
  787. # the simple compiler test code.
  788. m4_defun([_LT_COMPILER_BOILERPLATE],
  789. [m4_require([_LT_DECL_SED])dnl
  790. ac_outfile=conftest.$ac_objext
  791. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  792. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  793. _lt_compiler_boilerplate=`cat conftest.err`
  794. $RM conftest*
  795. ])# _LT_COMPILER_BOILERPLATE
  796. # _LT_LINKER_BOILERPLATE
  797. # ----------------------
  798. # Check for linker boilerplate output or warnings with
  799. # the simple link test code.
  800. m4_defun([_LT_LINKER_BOILERPLATE],
  801. [m4_require([_LT_DECL_SED])dnl
  802. ac_outfile=conftest.$ac_objext
  803. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  804. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  805. _lt_linker_boilerplate=`cat conftest.err`
  806. $RM -r conftest*
  807. ])# _LT_LINKER_BOILERPLATE
  808. # _LT_REQUIRED_DARWIN_CHECKS
  809. # -------------------------
  810. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  811. case $host_os in
  812. rhapsody* | darwin*)
  813. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  814. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  815. AC_CHECK_TOOL([LIPO], [lipo], [:])
  816. AC_CHECK_TOOL([OTOOL], [otool], [:])
  817. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  818. _LT_DECL([], [DSYMUTIL], [1],
  819. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  820. _LT_DECL([], [NMEDIT], [1],
  821. [Tool to change global to local symbols on Mac OS X])
  822. _LT_DECL([], [LIPO], [1],
  823. [Tool to manipulate fat objects and archives on Mac OS X])
  824. _LT_DECL([], [OTOOL], [1],
  825. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  826. _LT_DECL([], [OTOOL64], [1],
  827. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  828. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  829. [lt_cv_apple_cc_single_mod=no
  830. if test -z "${LT_MULTI_MODULE}"; then
  831. # By default we will add the -single_module flag. You can override
  832. # by either setting the environment variable LT_MULTI_MODULE
  833. # non-empty at configure time, or by adding -multi_module to the
  834. # link flags.
  835. rm -rf libconftest.dylib*
  836. echo "int foo(void){return 1;}" > conftest.c
  837. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  838. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  839. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  840. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  841. _lt_result=$?
  842. # If there is a non-empty error log, and "single_module"
  843. # appears in it, assume the flag caused a linker warning
  844. if test -s conftest.err && $GREP single_module conftest.err; then
  845. cat conftest.err >&AS_MESSAGE_LOG_FD
  846. # Otherwise, if the output was created with a 0 exit code from
  847. # the compiler, it worked.
  848. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  849. lt_cv_apple_cc_single_mod=yes
  850. else
  851. cat conftest.err >&AS_MESSAGE_LOG_FD
  852. fi
  853. rm -rf libconftest.dylib*
  854. rm -f conftest.*
  855. fi])
  856. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  857. [lt_cv_ld_exported_symbols_list],
  858. [lt_cv_ld_exported_symbols_list=no
  859. save_LDFLAGS=$LDFLAGS
  860. echo "_main" > conftest.sym
  861. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  862. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  863. [lt_cv_ld_exported_symbols_list=yes],
  864. [lt_cv_ld_exported_symbols_list=no])
  865. LDFLAGS="$save_LDFLAGS"
  866. ])
  867. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  868. [lt_cv_ld_force_load=no
  869. cat > conftest.c << _LT_EOF
  870. int forced_loaded() { return 2;}
  871. _LT_EOF
  872. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  873. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  874. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  875. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  876. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  877. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  878. cat > conftest.c << _LT_EOF
  879. int main() { return 0;}
  880. _LT_EOF
  881. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  882. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  883. _lt_result=$?
  884. if test -s conftest.err && $GREP force_load conftest.err; then
  885. cat conftest.err >&AS_MESSAGE_LOG_FD
  886. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  887. lt_cv_ld_force_load=yes
  888. else
  889. cat conftest.err >&AS_MESSAGE_LOG_FD
  890. fi
  891. rm -f conftest.err libconftest.a conftest conftest.c
  892. rm -rf conftest.dSYM
  893. ])
  894. case $host_os in
  895. rhapsody* | darwin1.[[012]])
  896. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  897. darwin1.*)
  898. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  899. darwin*) # darwin 5.x on
  900. # if running on 10.5 or later, the deployment target defaults
  901. # to the OS version, if on x86, and 10.4, the deployment
  902. # target defaults to 10.4. Don't you love it?
  903. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  904. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  905. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  906. 10.[[012]]*)
  907. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  908. 10.*)
  909. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  910. esac
  911. ;;
  912. esac
  913. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  914. _lt_dar_single_mod='$single_module'
  915. fi
  916. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  917. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  918. else
  919. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  920. fi
  921. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  922. _lt_dsymutil='~$DSYMUTIL $lib || :'
  923. else
  924. _lt_dsymutil=
  925. fi
  926. ;;
  927. esac
  928. ])
  929. # _LT_DARWIN_LINKER_FEATURES([TAG])
  930. # ---------------------------------
  931. # Checks for linker and compiler features on darwin
  932. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  933. [
  934. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  935. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  936. _LT_TAGVAR(hardcode_direct, $1)=no
  937. _LT_TAGVAR(hardcode_automatic, $1)=yes
  938. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  939. if test "$lt_cv_ld_force_load" = "yes"; then
  940. _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  941. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  942. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  943. else
  944. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  945. fi
  946. _LT_TAGVAR(link_all_deplibs, $1)=yes
  947. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  948. case $cc_basename in
  949. ifort*) _lt_dar_can_shared=yes ;;
  950. *) _lt_dar_can_shared=$GCC ;;
  951. esac
  952. if test "$_lt_dar_can_shared" = "yes"; then
  953. output_verbose_link_cmd=func_echo_all
  954. _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}"
  955. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  956. _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}"
  957. _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}"
  958. m4_if([$1], [CXX],
  959. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  960. _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}"
  961. _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}"
  962. fi
  963. ],[])
  964. else
  965. _LT_TAGVAR(ld_shlibs, $1)=no
  966. fi
  967. ])
  968. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  969. # ----------------------------------
  970. # Links a minimal program and checks the executable
  971. # for the system default hardcoded library path. In most cases,
  972. # this is /usr/lib:/lib, but when the MPI compilers are used
  973. # the location of the communication and MPI libs are included too.
  974. # If we don't find anything, use the default library path according
  975. # to the aix ld manual.
  976. # Store the results from the different compilers for each TAGNAME.
  977. # Allow to override them for all tags through lt_cv_aix_libpath.
  978. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  979. [m4_require([_LT_DECL_SED])dnl
  980. if test "${lt_cv_aix_libpath+set}" = set; then
  981. aix_libpath=$lt_cv_aix_libpath
  982. else
  983. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  984. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  985. lt_aix_libpath_sed='[
  986. /Import File Strings/,/^$/ {
  987. /^0/ {
  988. s/^0 *\([^ ]*\) *$/\1/
  989. p
  990. }
  991. }]'
  992. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  993. # Check for a 64-bit object if we didn't find anything.
  994. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  995. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  996. fi],[])
  997. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  998. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  999. fi
  1000. ])
  1001. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1002. fi
  1003. ])# _LT_SYS_MODULE_PATH_AIX
  1004. # _LT_SHELL_INIT(ARG)
  1005. # -------------------
  1006. m4_define([_LT_SHELL_INIT],
  1007. [m4_divert_text([M4SH-INIT], [$1
  1008. ])])# _LT_SHELL_INIT
  1009. # _LT_PROG_ECHO_BACKSLASH
  1010. # -----------------------
  1011. # Find how we can fake an echo command that does not interpret backslash.
  1012. # In particular, with Autoconf 2.60 or later we add some code to the start
  1013. # of the generated configure script which will find a shell with a builtin
  1014. # printf (which we can use as an echo command).
  1015. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1016. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1017. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1018. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1019. AC_MSG_CHECKING([how to print strings])
  1020. # Test print first, because it will be a builtin if present.
  1021. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1022. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1023. ECHO='print -r --'
  1024. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1025. ECHO='printf %s\n'
  1026. else
  1027. # Use this function as a fallback that always works.
  1028. func_fallback_echo ()
  1029. {
  1030. eval 'cat <<_LTECHO_EOF
  1031. $[]1
  1032. _LTECHO_EOF'
  1033. }
  1034. ECHO='func_fallback_echo'
  1035. fi
  1036. # func_echo_all arg...
  1037. # Invoke $ECHO with all args, space-separated.
  1038. func_echo_all ()
  1039. {
  1040. $ECHO "$*"
  1041. }
  1042. case "$ECHO" in
  1043. printf*) AC_MSG_RESULT([printf]) ;;
  1044. print*) AC_MSG_RESULT([print -r]) ;;
  1045. *) AC_MSG_RESULT([cat]) ;;
  1046. esac
  1047. m4_ifdef([_AS_DETECT_SUGGESTED],
  1048. [_AS_DETECT_SUGGESTED([
  1049. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1050. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1051. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1052. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1053. PATH=/empty FPATH=/empty; export PATH FPATH
  1054. test "X`printf %s $ECHO`" = "X$ECHO" \
  1055. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1056. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1057. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1058. ])# _LT_PROG_ECHO_BACKSLASH
  1059. # _LT_WITH_SYSROOT
  1060. # ----------------
  1061. AC_DEFUN([_LT_WITH_SYSROOT],
  1062. [AC_MSG_CHECKING([for sysroot])
  1063. AC_ARG_WITH([sysroot],
  1064. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1065. (or the compiler's sysroot if not specified).],
  1066. [], [with_sysroot=no])
  1067. dnl lt_sysroot will always be passed unquoted. We quote it here
  1068. dnl in case the user passed a directory name.
  1069. lt_sysroot=
  1070. case ${with_sysroot} in #(
  1071. yes)
  1072. if test "$GCC" = yes; then
  1073. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1074. fi
  1075. ;; #(
  1076. /*)
  1077. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1078. ;; #(
  1079. no|'')
  1080. ;; #(
  1081. *)
  1082. AC_MSG_RESULT([${with_sysroot}])
  1083. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1084. ;;
  1085. esac
  1086. AC_MSG_RESULT([${lt_sysroot:-no}])
  1087. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1088. [dependent libraries, and in which our libraries should be installed.])])
  1089. # _LT_ENABLE_LOCK
  1090. # ---------------
  1091. m4_defun([_LT_ENABLE_LOCK],
  1092. [AC_ARG_ENABLE([libtool-lock],
  1093. [AS_HELP_STRING([--disable-libtool-lock],
  1094. [avoid locking (might break parallel builds)])])
  1095. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1096. # Some flags need to be propagated to the compiler or linker for good
  1097. # libtool support.
  1098. case $host in
  1099. ia64-*-hpux*)
  1100. # Find out which ABI we are using.
  1101. echo 'int i;' > conftest.$ac_ext
  1102. if AC_TRY_EVAL(ac_compile); then
  1103. case `/usr/bin/file conftest.$ac_objext` in
  1104. *ELF-32*)
  1105. HPUX_IA64_MODE="32"
  1106. ;;
  1107. *ELF-64*)
  1108. HPUX_IA64_MODE="64"
  1109. ;;
  1110. esac
  1111. fi
  1112. rm -rf conftest*
  1113. ;;
  1114. *-*-irix6*)
  1115. # Find out which ABI we are using.
  1116. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1117. if AC_TRY_EVAL(ac_compile); then
  1118. if test "$lt_cv_prog_gnu_ld" = yes; then
  1119. case `/usr/bin/file conftest.$ac_objext` in
  1120. *32-bit*)
  1121. LD="${LD-ld} -melf32bsmip"
  1122. ;;
  1123. *N32*)
  1124. LD="${LD-ld} -melf32bmipn32"
  1125. ;;
  1126. *64-bit*)
  1127. LD="${LD-ld} -melf64bmip"
  1128. ;;
  1129. esac
  1130. else
  1131. case `/usr/bin/file conftest.$ac_objext` in
  1132. *32-bit*)
  1133. LD="${LD-ld} -32"
  1134. ;;
  1135. *N32*)
  1136. LD="${LD-ld} -n32"
  1137. ;;
  1138. *64-bit*)
  1139. LD="${LD-ld} -64"
  1140. ;;
  1141. esac
  1142. fi
  1143. fi
  1144. rm -rf conftest*
  1145. ;;
  1146. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1147. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1148. # Find out which ABI we are using.
  1149. echo 'int i;' > conftest.$ac_ext
  1150. if AC_TRY_EVAL(ac_compile); then
  1151. case `/usr/bin/file conftest.o` in
  1152. *32-bit*)
  1153. case $host in
  1154. x86_64-*kfreebsd*-gnu)
  1155. LD="${LD-ld} -m elf_i386_fbsd"
  1156. ;;
  1157. x86_64-*linux*)
  1158. LD="${LD-ld} -m elf_i386"
  1159. ;;
  1160. ppc64-*linux*|powerpc64-*linux*)
  1161. LD="${LD-ld} -m elf32ppclinux"
  1162. ;;
  1163. s390x-*linux*)
  1164. LD="${LD-ld} -m elf_s390"
  1165. ;;
  1166. sparc64-*linux*)
  1167. LD="${LD-ld} -m elf32_sparc"
  1168. ;;
  1169. esac
  1170. ;;
  1171. *64-bit*)
  1172. case $host in
  1173. x86_64-*kfreebsd*-gnu)
  1174. LD="${LD-ld} -m elf_x86_64_fbsd"
  1175. ;;
  1176. x86_64-*linux*)
  1177. LD="${LD-ld} -m elf_x86_64"
  1178. ;;
  1179. ppc*-*linux*|powerpc*-*linux*)
  1180. LD="${LD-ld} -m elf64ppc"
  1181. ;;
  1182. s390*-*linux*|s390*-*tpf*)
  1183. LD="${LD-ld} -m elf64_s390"
  1184. ;;
  1185. sparc*-*linux*)
  1186. LD="${LD-ld} -m elf64_sparc"
  1187. ;;
  1188. esac
  1189. ;;
  1190. esac
  1191. fi
  1192. rm -rf conftest*
  1193. ;;
  1194. *-*-sco3.2v5*)
  1195. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1196. SAVE_CFLAGS="$CFLAGS"
  1197. CFLAGS="$CFLAGS -belf"
  1198. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1199. [AC_LANG_PUSH(C)
  1200. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1201. AC_LANG_POP])
  1202. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1203. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1204. CFLAGS="$SAVE_CFLAGS"
  1205. fi
  1206. ;;
  1207. *-*solaris*)
  1208. # Find out which ABI we are using.
  1209. echo 'int i;' > conftest.$ac_ext
  1210. if AC_TRY_EVAL(ac_compile); then
  1211. case `/usr/bin/file conftest.o` in
  1212. *64-bit*)
  1213. case $lt_cv_prog_gnu_ld in
  1214. yes*)
  1215. case $host in
  1216. i?86-*-solaris*)
  1217. LD="${LD-ld} -m elf_x86_64"
  1218. ;;
  1219. sparc*-*-solaris*)
  1220. LD="${LD-ld} -m elf64_sparc"
  1221. ;;
  1222. esac
  1223. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1224. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1225. LD="${LD-ld}_sol2"
  1226. fi
  1227. ;;
  1228. *)
  1229. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1230. LD="${LD-ld} -64"
  1231. fi
  1232. ;;
  1233. esac
  1234. ;;
  1235. esac
  1236. fi
  1237. rm -rf conftest*
  1238. ;;
  1239. esac
  1240. need_locks="$enable_libtool_lock"
  1241. ])# _LT_ENABLE_LOCK
  1242. # _LT_PROG_AR
  1243. # -----------
  1244. m4_defun([_LT_PROG_AR],
  1245. [AC_CHECK_TOOLS(AR, [ar], false)
  1246. : ${AR=ar}
  1247. : ${AR_FLAGS=cru}
  1248. _LT_DECL([], [AR], [1], [The archiver])
  1249. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1250. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1251. [lt_cv_ar_at_file=no
  1252. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1253. [echo conftest.$ac_objext > conftest.lst
  1254. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1255. AC_TRY_EVAL([lt_ar_try])
  1256. if test "$ac_status" -eq 0; then
  1257. # Ensure the archiver fails upon bogus file names.
  1258. rm -f conftest.$ac_objext libconftest.a
  1259. AC_TRY_EVAL([lt_ar_try])
  1260. if test "$ac_status" -ne 0; then
  1261. lt_cv_ar_at_file=@
  1262. fi
  1263. fi
  1264. rm -f conftest.* libconftest.a
  1265. ])
  1266. ])
  1267. if test "x$lt_cv_ar_at_file" = xno; then
  1268. archiver_list_spec=
  1269. else
  1270. archiver_list_spec=$lt_cv_ar_at_file
  1271. fi
  1272. _LT_DECL([], [archiver_list_spec], [1],
  1273. [How to feed a file listing to the archiver])
  1274. ])# _LT_PROG_AR
  1275. # _LT_CMD_OLD_ARCHIVE
  1276. # -------------------
  1277. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1278. [_LT_PROG_AR
  1279. AC_CHECK_TOOL(STRIP, strip, :)
  1280. test -z "$STRIP" && STRIP=:
  1281. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1282. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1283. test -z "$RANLIB" && RANLIB=:
  1284. _LT_DECL([], [RANLIB], [1],
  1285. [Commands used to install an old-style archive])
  1286. # Determine commands to create old-style static archives.
  1287. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1288. old_postinstall_cmds='chmod 644 $oldlib'
  1289. old_postuninstall_cmds=
  1290. if test -n "$RANLIB"; then
  1291. case $host_os in
  1292. openbsd*)
  1293. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1294. ;;
  1295. *)
  1296. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1297. ;;
  1298. esac
  1299. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1300. fi
  1301. case $host_os in
  1302. darwin*)
  1303. lock_old_archive_extraction=yes ;;
  1304. *)
  1305. lock_old_archive_extraction=no ;;
  1306. esac
  1307. _LT_DECL([], [old_postinstall_cmds], [2])
  1308. _LT_DECL([], [old_postuninstall_cmds], [2])
  1309. _LT_TAGDECL([], [old_archive_cmds], [2],
  1310. [Commands used to build an old-style archive])
  1311. _LT_DECL([], [lock_old_archive_extraction], [0],
  1312. [Whether to use a lock for old archive extraction])
  1313. ])# _LT_CMD_OLD_ARCHIVE
  1314. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1315. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1316. # ----------------------------------------------------------------
  1317. # Check whether the given compiler option works
  1318. AC_DEFUN([_LT_COMPILER_OPTION],
  1319. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1320. m4_require([_LT_DECL_SED])dnl
  1321. AC_CACHE_CHECK([$1], [$2],
  1322. [$2=no
  1323. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1324. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1325. lt_compiler_flag="$3"
  1326. # Insert the option either (1) after the last *FLAGS variable, or
  1327. # (2) before a word containing "conftest.", or (3) at the end.
  1328. # Note that $ac_compile itself does not contain backslashes and begins
  1329. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1330. # The option is referenced via a variable to avoid confusing sed.
  1331. lt_compile=`echo "$ac_compile" | $SED \
  1332. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1333. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1334. -e 's:$: $lt_compiler_flag:'`
  1335. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1336. (eval "$lt_compile" 2>conftest.err)
  1337. ac_status=$?
  1338. cat conftest.err >&AS_MESSAGE_LOG_FD
  1339. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1340. if (exit $ac_status) && test -s "$ac_outfile"; then
  1341. # The compiler can only warn and ignore the option if not recognized
  1342. # So say no if there are warnings other than the usual output.
  1343. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1344. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1345. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1346. $2=yes
  1347. fi
  1348. fi
  1349. $RM conftest*
  1350. ])
  1351. if test x"[$]$2" = xyes; then
  1352. m4_if([$5], , :, [$5])
  1353. else
  1354. m4_if([$6], , :, [$6])
  1355. fi
  1356. ])# _LT_COMPILER_OPTION
  1357. # Old name:
  1358. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1359. dnl aclocal-1.4 backwards compatibility:
  1360. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1361. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1362. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1363. # ----------------------------------------------------
  1364. # Check whether the given linker option works
  1365. AC_DEFUN([_LT_LINKER_OPTION],
  1366. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1367. m4_require([_LT_DECL_SED])dnl
  1368. AC_CACHE_CHECK([$1], [$2],
  1369. [$2=no
  1370. save_LDFLAGS="$LDFLAGS"
  1371. LDFLAGS="$LDFLAGS $3"
  1372. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1373. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1374. # The linker can only warn and ignore the option if not recognized
  1375. # So say no if there are warnings
  1376. if test -s conftest.err; then
  1377. # Append any errors to the config.log.
  1378. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1379. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1380. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1381. if diff conftest.exp conftest.er2 >/dev/null; then
  1382. $2=yes
  1383. fi
  1384. else
  1385. $2=yes
  1386. fi
  1387. fi
  1388. $RM -r conftest*
  1389. LDFLAGS="$save_LDFLAGS"
  1390. ])
  1391. if test x"[$]$2" = xyes; then
  1392. m4_if([$4], , :, [$4])
  1393. else
  1394. m4_if([$5], , :, [$5])
  1395. fi
  1396. ])# _LT_LINKER_OPTION
  1397. # Old name:
  1398. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1399. dnl aclocal-1.4 backwards compatibility:
  1400. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1401. # LT_CMD_MAX_LEN
  1402. #---------------
  1403. AC_DEFUN([LT_CMD_MAX_LEN],
  1404. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1405. # find the maximum length of command line arguments
  1406. AC_MSG_CHECKING([the maximum length of command line arguments])
  1407. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1408. i=0
  1409. teststring="ABCD"
  1410. case $build_os in
  1411. msdosdjgpp*)
  1412. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1413. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1414. # during glob expansion). Even if it were fixed, the result of this
  1415. # check would be larger than it should be.
  1416. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1417. ;;
  1418. gnu*)
  1419. # Under GNU Hurd, this test is not required because there is
  1420. # no limit to the length of command line arguments.
  1421. # Libtool will interpret -1 as no limit whatsoever
  1422. lt_cv_sys_max_cmd_len=-1;
  1423. ;;
  1424. cygwin* | mingw* | cegcc*)
  1425. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1426. # about 5 minutes as the teststring grows exponentially.
  1427. # Worse, since 9x/ME are not pre-emptively multitasking,
  1428. # you end up with a "frozen" computer, even though with patience
  1429. # the test eventually succeeds (with a max line length of 256k).
  1430. # Instead, let's just punt: use the minimum linelength reported by
  1431. # all of the supported platforms: 8192 (on NT/2K/XP).
  1432. lt_cv_sys_max_cmd_len=8192;
  1433. ;;
  1434. mint*)
  1435. # On MiNT this can take a long time and run out of memory.
  1436. lt_cv_sys_max_cmd_len=8192;
  1437. ;;
  1438. amigaos*)
  1439. # On AmigaOS with pdksh, this test takes hours, literally.
  1440. # So we just punt and use a minimum line length of 8192.
  1441. lt_cv_sys_max_cmd_len=8192;
  1442. ;;
  1443. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1444. # This has been around since 386BSD, at least. Likely further.
  1445. if test -x /sbin/sysctl; then
  1446. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1447. elif test -x /usr/sbin/sysctl; then
  1448. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1449. else
  1450. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1451. fi
  1452. # And add a safety zone
  1453. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1454. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1455. ;;
  1456. interix*)
  1457. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1458. lt_cv_sys_max_cmd_len=196608
  1459. ;;
  1460. os2*)
  1461. # The test takes a long time on OS/2.
  1462. lt_cv_sys_max_cmd_len=8192
  1463. ;;
  1464. osf*)
  1465. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1466. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1467. # nice to cause kernel panics so lets avoid the loop below.
  1468. # First set a reasonable default.
  1469. lt_cv_sys_max_cmd_len=16384
  1470. #
  1471. if test -x /sbin/sysconfig; then
  1472. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1473. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1474. esac
  1475. fi
  1476. ;;
  1477. sco3.2v5*)
  1478. lt_cv_sys_max_cmd_len=102400
  1479. ;;
  1480. sysv5* | sco5v6* | sysv4.2uw2*)
  1481. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1482. if test -n "$kargmax"; then
  1483. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1484. else
  1485. lt_cv_sys_max_cmd_len=32768
  1486. fi
  1487. ;;
  1488. *)
  1489. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1490. if test -n "$lt_cv_sys_max_cmd_len"; then
  1491. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1492. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1493. else
  1494. # Make teststring a little bigger before we do anything with it.
  1495. # a 1K string should be a reasonable start.
  1496. for i in 1 2 3 4 5 6 7 8 ; do
  1497. teststring=$teststring$teststring
  1498. done
  1499. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1500. # If test is not a shell built-in, we'll probably end up computing a
  1501. # maximum length that is only half of the actual maximum length, but
  1502. # we can't tell.
  1503. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  1504. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1505. test $i != 17 # 1/2 MB should be enough
  1506. do
  1507. i=`expr $i + 1`
  1508. teststring=$teststring$teststring
  1509. done
  1510. # Only check the string length outside the loop.
  1511. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1512. teststring=
  1513. # Add a significant safety factor because C++ compilers can tack on
  1514. # massive amounts of additional arguments before passing them to the
  1515. # linker. It appears as though 1/2 is a usable value.
  1516. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1517. fi
  1518. ;;
  1519. esac
  1520. ])
  1521. if test -n $lt_cv_sys_max_cmd_len ; then
  1522. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1523. else
  1524. AC_MSG_RESULT(none)
  1525. fi
  1526. max_cmd_len=$lt_cv_sys_max_cmd_len
  1527. _LT_DECL([], [max_cmd_len], [0],
  1528. [What is the maximum length of a command?])
  1529. ])# LT_CMD_MAX_LEN
  1530. # Old name:
  1531. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1532. dnl aclocal-1.4 backwards compatibility:
  1533. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1534. # _LT_HEADER_DLFCN
  1535. # ----------------
  1536. m4_defun([_LT_HEADER_DLFCN],
  1537. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1538. ])# _LT_HEADER_DLFCN
  1539. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1540. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1541. # ----------------------------------------------------------------
  1542. m4_defun([_LT_TRY_DLOPEN_SELF],
  1543. [m4_require([_LT_HEADER_DLFCN])dnl
  1544. if test "$cross_compiling" = yes; then :
  1545. [$4]
  1546. else
  1547. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1548. lt_status=$lt_dlunknown
  1549. cat > conftest.$ac_ext <<_LT_EOF
  1550. [#line $LINENO "configure"
  1551. #include "confdefs.h"
  1552. #if HAVE_DLFCN_H
  1553. #include <dlfcn.h>
  1554. #endif
  1555. #include <stdio.h>
  1556. #ifdef RTLD_GLOBAL
  1557. # define LT_DLGLOBAL RTLD_GLOBAL
  1558. #else
  1559. # ifdef DL_GLOBAL
  1560. # define LT_DLGLOBAL DL_GLOBAL
  1561. # else
  1562. # define LT_DLGLOBAL 0
  1563. # endif
  1564. #endif
  1565. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1566. find out it does not work in some platform. */
  1567. #ifndef LT_DLLAZY_OR_NOW
  1568. # ifdef RTLD_LAZY
  1569. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1570. # else
  1571. # ifdef DL_LAZY
  1572. # define LT_DLLAZY_OR_NOW DL_LAZY
  1573. # else
  1574. # ifdef RTLD_NOW
  1575. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1576. # else
  1577. # ifdef DL_NOW
  1578. # define LT_DLLAZY_OR_NOW DL_NOW
  1579. # else
  1580. # define LT_DLLAZY_OR_NOW 0
  1581. # endif
  1582. # endif
  1583. # endif
  1584. # endif
  1585. #endif
  1586. /* When -fvisbility=hidden is used, assume the code has been annotated
  1587. correspondingly for the symbols needed. */
  1588. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1589. int fnord () __attribute__((visibility("default")));
  1590. #endif
  1591. int fnord () { return 42; }
  1592. int main ()
  1593. {
  1594. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1595. int status = $lt_dlunknown;
  1596. if (self)
  1597. {
  1598. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1599. else
  1600. {
  1601. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1602. else puts (dlerror ());
  1603. }
  1604. /* dlclose (self); */
  1605. }
  1606. else
  1607. puts (dlerror ());
  1608. return status;
  1609. }]
  1610. _LT_EOF
  1611. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1612. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1613. lt_status=$?
  1614. case x$lt_status in
  1615. x$lt_dlno_uscore) $1 ;;
  1616. x$lt_dlneed_uscore) $2 ;;
  1617. x$lt_dlunknown|x*) $3 ;;
  1618. esac
  1619. else :
  1620. # compilation failed
  1621. $3
  1622. fi
  1623. fi
  1624. rm -fr conftest*
  1625. ])# _LT_TRY_DLOPEN_SELF
  1626. # LT_SYS_DLOPEN_SELF
  1627. # ------------------
  1628. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1629. [m4_require([_LT_HEADER_DLFCN])dnl
  1630. if test "x$enable_dlopen" != xyes; then
  1631. enable_dlopen=unknown
  1632. enable_dlopen_self=unknown
  1633. enable_dlopen_self_static=unknown
  1634. else
  1635. lt_cv_dlopen=no
  1636. lt_cv_dlopen_libs=
  1637. case $host_os in
  1638. beos*)
  1639. lt_cv_dlopen="load_add_on"
  1640. lt_cv_dlopen_libs=
  1641. lt_cv_dlopen_self=yes
  1642. ;;
  1643. mingw* | pw32* | cegcc*)
  1644. lt_cv_dlopen="LoadLibrary"
  1645. lt_cv_dlopen_libs=
  1646. ;;
  1647. cygwin*)
  1648. lt_cv_dlopen="dlopen"
  1649. lt_cv_dlopen_libs=
  1650. ;;
  1651. darwin*)
  1652. # if libdl is installed we need to link against it
  1653. AC_CHECK_LIB([dl], [dlopen],
  1654. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1655. lt_cv_dlopen="dyld"
  1656. lt_cv_dlopen_libs=
  1657. lt_cv_dlopen_self=yes
  1658. ])
  1659. ;;
  1660. *)
  1661. AC_CHECK_FUNC([shl_load],
  1662. [lt_cv_dlopen="shl_load"],
  1663. [AC_CHECK_LIB([dld], [shl_load],
  1664. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1665. [AC_CHECK_FUNC([dlopen],
  1666. [lt_cv_dlopen="dlopen"],
  1667. [AC_CHECK_LIB([dl], [dlopen],
  1668. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1669. [AC_CHECK_LIB([svld], [dlopen],
  1670. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1671. [AC_CHECK_LIB([dld], [dld_link],
  1672. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1673. ])
  1674. ])
  1675. ])
  1676. ])
  1677. ])
  1678. ;;
  1679. esac
  1680. if test "x$lt_cv_dlopen" != xno; then
  1681. enable_dlopen=yes
  1682. else
  1683. enable_dlopen=no
  1684. fi
  1685. case $lt_cv_dlopen in
  1686. dlopen)
  1687. save_CPPFLAGS="$CPPFLAGS"
  1688. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1689. save_LDFLAGS="$LDFLAGS"
  1690. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1691. save_LIBS="$LIBS"
  1692. LIBS="$lt_cv_dlopen_libs $LIBS"
  1693. AC_CACHE_CHECK([whether a program can dlopen itself],
  1694. lt_cv_dlopen_self, [dnl
  1695. _LT_TRY_DLOPEN_SELF(
  1696. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1697. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1698. ])
  1699. if test "x$lt_cv_dlopen_self" = xyes; then
  1700. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1701. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1702. lt_cv_dlopen_self_static, [dnl
  1703. _LT_TRY_DLOPEN_SELF(
  1704. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1705. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1706. ])
  1707. fi
  1708. CPPFLAGS="$save_CPPFLAGS"
  1709. LDFLAGS="$save_LDFLAGS"
  1710. LIBS="$save_LIBS"
  1711. ;;
  1712. esac
  1713. case $lt_cv_dlopen_self in
  1714. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1715. *) enable_dlopen_self=unknown ;;
  1716. esac
  1717. case $lt_cv_dlopen_self_static in
  1718. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1719. *) enable_dlopen_self_static=unknown ;;
  1720. esac
  1721. fi
  1722. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1723. [Whether dlopen is supported])
  1724. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1725. [Whether dlopen of programs is supported])
  1726. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1727. [Whether dlopen of statically linked programs is supported])
  1728. ])# LT_SYS_DLOPEN_SELF
  1729. # Old name:
  1730. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1731. dnl aclocal-1.4 backwards compatibility:
  1732. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1733. # _LT_COMPILER_C_O([TAGNAME])
  1734. # ---------------------------
  1735. # Check to see if options -c and -o are simultaneously supported by compiler.
  1736. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1737. m4_defun([_LT_COMPILER_C_O],
  1738. [m4_require([_LT_DECL_SED])dnl
  1739. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1740. m4_require([_LT_TAG_COMPILER])dnl
  1741. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1742. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1743. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1744. $RM -r conftest 2>/dev/null
  1745. mkdir conftest
  1746. cd conftest
  1747. mkdir out
  1748. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1749. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1750. # Insert the option either (1) after the last *FLAGS variable, or
  1751. # (2) before a word containing "conftest.", or (3) at the end.
  1752. # Note that $ac_compile itself does not contain backslashes and begins
  1753. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1754. lt_compile=`echo "$ac_compile" | $SED \
  1755. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1756. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1757. -e 's:$: $lt_compiler_flag:'`
  1758. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1759. (eval "$lt_compile" 2>out/conftest.err)
  1760. ac_status=$?
  1761. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1762. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1763. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1764. then
  1765. # The compiler can only warn and ignore the option if not recognized
  1766. # So say no if there are warnings
  1767. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1768. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1769. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1770. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1771. fi
  1772. fi
  1773. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1774. $RM conftest*
  1775. # SGI C++ compiler will create directory out/ii_files/ for
  1776. # template instantiation
  1777. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1778. $RM out/* && rmdir out
  1779. cd ..
  1780. $RM -r conftest
  1781. $RM conftest*
  1782. ])
  1783. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1784. [Does compiler simultaneously support -c and -o options?])
  1785. ])# _LT_COMPILER_C_O
  1786. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1787. # ----------------------------------
  1788. # Check to see if we can do hard links to lock some files if needed
  1789. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1790. [m4_require([_LT_ENABLE_LOCK])dnl
  1791. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1792. _LT_COMPILER_C_O([$1])
  1793. hard_links="nottested"
  1794. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1795. # do not overwrite the value of need_locks provided by the user
  1796. AC_MSG_CHECKING([if we can lock with hard links])
  1797. hard_links=yes
  1798. $RM conftest*
  1799. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1800. touch conftest.a
  1801. ln conftest.a conftest.b 2>&5 || hard_links=no
  1802. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1803. AC_MSG_RESULT([$hard_links])
  1804. if test "$hard_links" = no; then
  1805. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1806. need_locks=warn
  1807. fi
  1808. else
  1809. need_locks=no
  1810. fi
  1811. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1812. ])# _LT_COMPILER_FILE_LOCKS
  1813. # _LT_CHECK_OBJDIR
  1814. # ----------------
  1815. m4_defun([_LT_CHECK_OBJDIR],
  1816. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1817. [rm -f .libs 2>/dev/null
  1818. mkdir .libs 2>/dev/null
  1819. if test -d .libs; then
  1820. lt_cv_objdir=.libs
  1821. else
  1822. # MS-DOS does not allow filenames that begin with a dot.
  1823. lt_cv_objdir=_libs
  1824. fi
  1825. rmdir .libs 2>/dev/null])
  1826. objdir=$lt_cv_objdir
  1827. _LT_DECL([], [objdir], [0],
  1828. [The name of the directory that contains temporary libtool files])dnl
  1829. m4_pattern_allow([LT_OBJDIR])dnl
  1830. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1831. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1832. ])# _LT_CHECK_OBJDIR
  1833. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1834. # --------------------------------------
  1835. # Check hardcoding attributes.
  1836. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1837. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1838. _LT_TAGVAR(hardcode_action, $1)=
  1839. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1840. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1841. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1842. # We can hardcode non-existent directories.
  1843. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1844. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1845. # have to relink, otherwise we might link with an installed library
  1846. # when we should be linking with a yet-to-be-installed one
  1847. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1848. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1849. # Linking always hardcodes the temporary library directory.
  1850. _LT_TAGVAR(hardcode_action, $1)=relink
  1851. else
  1852. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1853. _LT_TAGVAR(hardcode_action, $1)=immediate
  1854. fi
  1855. else
  1856. # We cannot hardcode anything, or else we can only hardcode existing
  1857. # directories.
  1858. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1859. fi
  1860. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1861. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1862. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1863. # Fast installation is not supported
  1864. enable_fast_install=no
  1865. elif test "$shlibpath_overrides_runpath" = yes ||
  1866. test "$enable_shared" = no; then
  1867. # Fast installation is not necessary
  1868. enable_fast_install=needless
  1869. fi
  1870. _LT_TAGDECL([], [hardcode_action], [0],
  1871. [How to hardcode a shared library path into an executable])
  1872. ])# _LT_LINKER_HARDCODE_LIBPATH
  1873. # _LT_CMD_STRIPLIB
  1874. # ----------------
  1875. m4_defun([_LT_CMD_STRIPLIB],
  1876. [m4_require([_LT_DECL_EGREP])
  1877. striplib=
  1878. old_striplib=
  1879. AC_MSG_CHECKING([whether stripping libraries is possible])
  1880. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1881. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1882. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1883. AC_MSG_RESULT([yes])
  1884. else
  1885. # FIXME - insert some real tests, host_os isn't really good enough
  1886. case $host_os in
  1887. darwin*)
  1888. if test -n "$STRIP" ; then
  1889. striplib="$STRIP -x"
  1890. old_striplib="$STRIP -S"
  1891. AC_MSG_RESULT([yes])
  1892. else
  1893. AC_MSG_RESULT([no])
  1894. fi
  1895. ;;
  1896. *)
  1897. AC_MSG_RESULT([no])
  1898. ;;
  1899. esac
  1900. fi
  1901. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1902. _LT_DECL([], [striplib], [1])
  1903. ])# _LT_CMD_STRIPLIB
  1904. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1905. # -----------------------------
  1906. # PORTME Fill in your ld.so characteristics
  1907. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1908. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1909. m4_require([_LT_DECL_EGREP])dnl
  1910. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1911. m4_require([_LT_DECL_OBJDUMP])dnl
  1912. m4_require([_LT_DECL_SED])dnl
  1913. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1914. AC_MSG_CHECKING([dynamic linker characteristics])
  1915. m4_if([$1],
  1916. [], [
  1917. if test "$GCC" = yes; then
  1918. case $host_os in
  1919. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1920. *) lt_awk_arg="/^libraries:/" ;;
  1921. esac
  1922. case $host_os in
  1923. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1924. *) lt_sed_strip_eq="s,=/,/,g" ;;
  1925. esac
  1926. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1927. case $lt_search_path_spec in
  1928. *\;*)
  1929. # if the path contains ";" then we assume it to be the separator
  1930. # otherwise default to the standard path separator (i.e. ":") - it is
  1931. # assumed that no part of a normal pathname contains ";" but that should
  1932. # okay in the real world where ";" in dirpaths is itself problematic.
  1933. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1934. ;;
  1935. *)
  1936. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1937. ;;
  1938. esac
  1939. # Ok, now we have the path, separated by spaces, we can step through it
  1940. # and add multilib dir if necessary.
  1941. lt_tmp_lt_search_path_spec=
  1942. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1943. for lt_sys_path in $lt_search_path_spec; do
  1944. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1945. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1946. else
  1947. test -d "$lt_sys_path" && \
  1948. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1949. fi
  1950. done
  1951. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1952. BEGIN {RS=" "; FS="/|\n";} {
  1953. lt_foo="";
  1954. lt_count=0;
  1955. for (lt_i = NF; lt_i > 0; lt_i--) {
  1956. if ($lt_i != "" && $lt_i != ".") {
  1957. if ($lt_i == "..") {
  1958. lt_count++;
  1959. } else {
  1960. if (lt_count == 0) {
  1961. lt_foo="/" $lt_i lt_foo;
  1962. } else {
  1963. lt_count--;
  1964. }
  1965. }
  1966. }
  1967. }
  1968. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1969. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1970. }'`
  1971. # AWK program above erroneously prepends '/' to C:/dos/paths
  1972. # for these hosts.
  1973. case $host_os in
  1974. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1975. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1976. esac
  1977. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1978. else
  1979. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1980. fi])
  1981. library_names_spec=
  1982. libname_spec='lib$name'
  1983. soname_spec=
  1984. shrext_cmds=".so"
  1985. postinstall_cmds=
  1986. postuninstall_cmds=
  1987. finish_cmds=
  1988. finish_eval=
  1989. shlibpath_var=
  1990. shlibpath_overrides_runpath=unknown
  1991. version_type=none
  1992. dynamic_linker="$host_os ld.so"
  1993. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1994. need_lib_prefix=unknown
  1995. hardcode_into_libs=no
  1996. # when you set need_version to no, make sure it does not cause -set_version
  1997. # flags to be left without arguments
  1998. need_version=unknown
  1999. case $host_os in
  2000. aix3*)
  2001. version_type=linux # correct to gnu/linux during the next big refactor
  2002. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2003. shlibpath_var=LIBPATH
  2004. # AIX 3 has no versioning support, so we append a major version to the name.
  2005. soname_spec='${libname}${release}${shared_ext}$major'
  2006. ;;
  2007. aix[[4-9]]*)
  2008. version_type=linux # correct to gnu/linux during the next big refactor
  2009. need_lib_prefix=no
  2010. need_version=no
  2011. hardcode_into_libs=yes
  2012. if test "$host_cpu" = ia64; then
  2013. # AIX 5 supports IA64
  2014. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2015. shlibpath_var=LD_LIBRARY_PATH
  2016. else
  2017. # With GCC up to 2.95.x, collect2 would create an import file
  2018. # for dependence libraries. The import file would start with
  2019. # the line `#! .'. This would cause the generated library to
  2020. # depend on `.', always an invalid library. This was fixed in
  2021. # development snapshots of GCC prior to 3.0.
  2022. case $host_os in
  2023. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2024. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2025. echo ' yes '
  2026. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2027. :
  2028. else
  2029. can_build_shared=no
  2030. fi
  2031. ;;
  2032. esac
  2033. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2034. # soname into executable. Probably we can add versioning support to
  2035. # collect2, so additional links can be useful in future.
  2036. if test "$aix_use_runtimelinking" = yes; then
  2037. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2038. # instead of lib<name>.a to let people know that these are not
  2039. # typical AIX shared libraries.
  2040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2041. else
  2042. # We preserve .a as extension for shared libraries through AIX4.2
  2043. # and later when we are not doing run time linking.
  2044. library_names_spec='${libname}${release}.a $libname.a'
  2045. soname_spec='${libname}${release}${shared_ext}$major'
  2046. fi
  2047. shlibpath_var=LIBPATH
  2048. fi
  2049. ;;
  2050. amigaos*)
  2051. case $host_cpu in
  2052. powerpc)
  2053. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2054. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2056. ;;
  2057. m68k)
  2058. library_names_spec='$libname.ixlibrary $libname.a'
  2059. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2060. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  2061. ;;
  2062. esac
  2063. ;;
  2064. beos*)
  2065. library_names_spec='${libname}${shared_ext}'
  2066. dynamic_linker="$host_os ld.so"
  2067. shlibpath_var=LIBRARY_PATH
  2068. ;;
  2069. bsdi[[45]]*)
  2070. version_type=linux # correct to gnu/linux during the next big refactor
  2071. need_version=no
  2072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2073. soname_spec='${libname}${release}${shared_ext}$major'
  2074. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2075. shlibpath_var=LD_LIBRARY_PATH
  2076. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2077. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2078. # the default ld.so.conf also contains /usr/contrib/lib and
  2079. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2080. # libtool to hard-code these into programs
  2081. ;;
  2082. cygwin* | mingw* | pw32* | cegcc*)
  2083. version_type=windows
  2084. shrext_cmds=".dll"
  2085. need_version=no
  2086. need_lib_prefix=no
  2087. case $GCC,$cc_basename in
  2088. yes,*)
  2089. # gcc
  2090. library_names_spec='$libname.dll.a'
  2091. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2092. postinstall_cmds='base_file=`basename \${file}`~
  2093. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2094. dldir=$destdir/`dirname \$dlpath`~
  2095. test -d \$dldir || mkdir -p \$dldir~
  2096. $install_prog $dir/$dlname \$dldir/$dlname~
  2097. chmod a+x \$dldir/$dlname~
  2098. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2099. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2100. fi'
  2101. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2102. dlpath=$dir/\$dldll~
  2103. $RM \$dlpath'
  2104. shlibpath_overrides_runpath=yes
  2105. case $host_os in
  2106. cygwin*)
  2107. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2108. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2109. m4_if([$1], [],[
  2110. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2111. ;;
  2112. mingw* | cegcc*)
  2113. # MinGW DLLs use traditional 'lib' prefix
  2114. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2115. ;;
  2116. pw32*)
  2117. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2118. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2119. ;;
  2120. esac
  2121. dynamic_linker='Win32 ld.exe'
  2122. ;;
  2123. *,cl*)
  2124. # Native MSVC
  2125. libname_spec='$name'
  2126. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2127. library_names_spec='${libname}.dll.lib'
  2128. case $build_os in
  2129. mingw*)
  2130. sys_lib_search_path_spec=
  2131. lt_save_ifs=$IFS
  2132. IFS=';'
  2133. for lt_path in $LIB
  2134. do
  2135. IFS=$lt_save_ifs
  2136. # Let DOS variable expansion print the short 8.3 style file name.
  2137. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2138. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2139. done
  2140. IFS=$lt_save_ifs
  2141. # Convert to MSYS style.
  2142. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2143. ;;
  2144. cygwin*)
  2145. # Convert to unix form, then to dos form, then back to unix form
  2146. # but this time dos style (no spaces!) so that the unix form looks
  2147. # like /cygdrive/c/PROGRA~1:/cygdr...
  2148. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2149. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2150. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2151. ;;
  2152. *)
  2153. sys_lib_search_path_spec="$LIB"
  2154. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2155. # It is most probably a Windows format PATH.
  2156. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2157. else
  2158. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2159. fi
  2160. # FIXME: find the short name or the path components, as spaces are
  2161. # common. (e.g. "Program Files" -> "PROGRA~1")
  2162. ;;
  2163. esac
  2164. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2165. postinstall_cmds='base_file=`basename \${file}`~
  2166. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2167. dldir=$destdir/`dirname \$dlpath`~
  2168. test -d \$dldir || mkdir -p \$dldir~
  2169. $install_prog $dir/$dlname \$dldir/$dlname'
  2170. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2171. dlpath=$dir/\$dldll~
  2172. $RM \$dlpath'
  2173. shlibpath_overrides_runpath=yes
  2174. dynamic_linker='Win32 link.exe'
  2175. ;;
  2176. *)
  2177. # Assume MSVC wrapper
  2178. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2179. dynamic_linker='Win32 ld.exe'
  2180. ;;
  2181. esac
  2182. # FIXME: first we should search . and the directory the executable is in
  2183. shlibpath_var=PATH
  2184. ;;
  2185. darwin* | rhapsody*)
  2186. dynamic_linker="$host_os dyld"
  2187. version_type=darwin
  2188. need_lib_prefix=no
  2189. need_version=no
  2190. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2191. soname_spec='${libname}${release}${major}$shared_ext'
  2192. shlibpath_overrides_runpath=yes
  2193. shlibpath_var=DYLD_LIBRARY_PATH
  2194. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2195. m4_if([$1], [],[
  2196. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2197. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2198. ;;
  2199. dgux*)
  2200. version_type=linux # correct to gnu/linux during the next big refactor
  2201. need_lib_prefix=no
  2202. need_version=no
  2203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2204. soname_spec='${libname}${release}${shared_ext}$major'
  2205. shlibpath_var=LD_LIBRARY_PATH
  2206. ;;
  2207. freebsd* | dragonfly*)
  2208. # DragonFly does not have aout. When/if they implement a new
  2209. # versioning mechanism, adjust this.
  2210. if test -x /usr/bin/objformat; then
  2211. objformat=`/usr/bin/objformat`
  2212. else
  2213. case $host_os in
  2214. freebsd[[23]].*) objformat=aout ;;
  2215. *) objformat=elf ;;
  2216. esac
  2217. fi
  2218. version_type=freebsd-$objformat
  2219. case $version_type in
  2220. freebsd-elf*)
  2221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2222. need_version=no
  2223. need_lib_prefix=no
  2224. ;;
  2225. freebsd-*)
  2226. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2227. need_version=yes
  2228. ;;
  2229. esac
  2230. shlibpath_var=LD_LIBRARY_PATH
  2231. case $host_os in
  2232. freebsd2.*)
  2233. shlibpath_overrides_runpath=yes
  2234. ;;
  2235. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2236. shlibpath_overrides_runpath=yes
  2237. hardcode_into_libs=yes
  2238. ;;
  2239. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2240. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2241. shlibpath_overrides_runpath=no
  2242. hardcode_into_libs=yes
  2243. ;;
  2244. *) # from 4.6 on, and DragonFly
  2245. shlibpath_overrides_runpath=yes
  2246. hardcode_into_libs=yes
  2247. ;;
  2248. esac
  2249. ;;
  2250. gnu*)
  2251. version_type=linux # correct to gnu/linux during the next big refactor
  2252. need_lib_prefix=no
  2253. need_version=no
  2254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2255. soname_spec='${libname}${release}${shared_ext}$major'
  2256. shlibpath_var=LD_LIBRARY_PATH
  2257. shlibpath_overrides_runpath=no
  2258. hardcode_into_libs=yes
  2259. ;;
  2260. haiku*)
  2261. version_type=linux # correct to gnu/linux during the next big refactor
  2262. need_lib_prefix=no
  2263. need_version=no
  2264. dynamic_linker="$host_os runtime_loader"
  2265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2266. soname_spec='${libname}${release}${shared_ext}$major'
  2267. shlibpath_var=LIBRARY_PATH
  2268. shlibpath_overrides_runpath=yes
  2269. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2270. hardcode_into_libs=yes
  2271. ;;
  2272. hpux9* | hpux10* | hpux11*)
  2273. # Give a soname corresponding to the major version so that dld.sl refuses to
  2274. # link against other versions.
  2275. version_type=sunos
  2276. need_lib_prefix=no
  2277. need_version=no
  2278. case $host_cpu in
  2279. ia64*)
  2280. shrext_cmds='.so'
  2281. hardcode_into_libs=yes
  2282. dynamic_linker="$host_os dld.so"
  2283. shlibpath_var=LD_LIBRARY_PATH
  2284. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2286. soname_spec='${libname}${release}${shared_ext}$major'
  2287. if test "X$HPUX_IA64_MODE" = X32; then
  2288. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2289. else
  2290. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2291. fi
  2292. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2293. ;;
  2294. hppa*64*)
  2295. shrext_cmds='.sl'
  2296. hardcode_into_libs=yes
  2297. dynamic_linker="$host_os dld.sl"
  2298. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2299. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2301. soname_spec='${libname}${release}${shared_ext}$major'
  2302. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2303. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2304. ;;
  2305. *)
  2306. shrext_cmds='.sl'
  2307. dynamic_linker="$host_os dld.sl"
  2308. shlibpath_var=SHLIB_PATH
  2309. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  2313. esac
  2314. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2315. postinstall_cmds='chmod 555 $lib'
  2316. # or fails outright, so override atomically:
  2317. install_override_mode=555
  2318. ;;
  2319. interix[[3-9]]*)
  2320. version_type=linux # correct to gnu/linux during the next big refactor
  2321. need_lib_prefix=no
  2322. need_version=no
  2323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2324. soname_spec='${libname}${release}${shared_ext}$major'
  2325. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2326. shlibpath_var=LD_LIBRARY_PATH
  2327. shlibpath_overrides_runpath=no
  2328. hardcode_into_libs=yes
  2329. ;;
  2330. irix5* | irix6* | nonstopux*)
  2331. case $host_os in
  2332. nonstopux*) version_type=nonstopux ;;
  2333. *)
  2334. if test "$lt_cv_prog_gnu_ld" = yes; then
  2335. version_type=linux # correct to gnu/linux during the next big refactor
  2336. else
  2337. version_type=irix
  2338. fi ;;
  2339. esac
  2340. need_lib_prefix=no
  2341. need_version=no
  2342. soname_spec='${libname}${release}${shared_ext}$major'
  2343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2344. case $host_os in
  2345. irix5* | nonstopux*)
  2346. libsuff= shlibsuff=
  2347. ;;
  2348. *)
  2349. case $LD in # libtool.m4 will add one of these switches to LD
  2350. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2351. libsuff= shlibsuff= libmagic=32-bit;;
  2352. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2353. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2354. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2355. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2356. *) libsuff= shlibsuff= libmagic=never-match;;
  2357. esac
  2358. ;;
  2359. esac
  2360. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2361. shlibpath_overrides_runpath=no
  2362. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2363. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2364. hardcode_into_libs=yes
  2365. ;;
  2366. # No shared lib support for Linux oldld, aout, or coff.
  2367. linux*oldld* | linux*aout* | linux*coff*)
  2368. dynamic_linker=no
  2369. ;;
  2370. # This must be glibc/ELF.
  2371. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2372. version_type=linux # correct to gnu/linux during the next big refactor
  2373. need_lib_prefix=no
  2374. need_version=no
  2375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2376. soname_spec='${libname}${release}${shared_ext}$major'
  2377. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2378. shlibpath_var=LD_LIBRARY_PATH
  2379. shlibpath_overrides_runpath=no
  2380. # Some binutils ld are patched to set DT_RUNPATH
  2381. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2382. [lt_cv_shlibpath_overrides_runpath=no
  2383. save_LDFLAGS=$LDFLAGS
  2384. save_libdir=$libdir
  2385. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2386. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2387. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2388. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2389. [lt_cv_shlibpath_overrides_runpath=yes])])
  2390. LDFLAGS=$save_LDFLAGS
  2391. libdir=$save_libdir
  2392. ])
  2393. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2394. # This implies no fast_install, which is unacceptable.
  2395. # Some rework will be needed to allow for fast_install
  2396. # before this can be enabled.
  2397. hardcode_into_libs=yes
  2398. # Add ABI-specific directories to the system library path.
  2399. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  2400. # Append ld.so.conf contents to the search path
  2401. if test -f /etc/ld.so.conf; then
  2402. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  2403. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  2404. fi
  2405. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2406. # powerpc, because MkLinux only supported shared libraries with the
  2407. # GNU dynamic linker. Since this was broken with cross compilers,
  2408. # most powerpc-linux boxes support dynamic linking these days and
  2409. # people can always --disable-shared, the test was removed, and we
  2410. # assume the GNU/Linux dynamic linker is in use.
  2411. dynamic_linker='GNU/Linux ld.so'
  2412. ;;
  2413. netbsd*)
  2414. version_type=sunos
  2415. need_lib_prefix=no
  2416. need_version=no
  2417. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2419. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2420. dynamic_linker='NetBSD (a.out) ld.so'
  2421. else
  2422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2423. soname_spec='${libname}${release}${shared_ext}$major'
  2424. dynamic_linker='NetBSD ld.elf_so'
  2425. fi
  2426. shlibpath_var=LD_LIBRARY_PATH
  2427. shlibpath_overrides_runpath=yes
  2428. hardcode_into_libs=yes
  2429. ;;
  2430. newsos6)
  2431. version_type=linux # correct to gnu/linux during the next big refactor
  2432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2433. shlibpath_var=LD_LIBRARY_PATH
  2434. shlibpath_overrides_runpath=yes
  2435. ;;
  2436. *nto* | *qnx*)
  2437. version_type=qnx
  2438. need_lib_prefix=no
  2439. need_version=no
  2440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2441. soname_spec='${libname}${release}${shared_ext}$major'
  2442. shlibpath_var=LD_LIBRARY_PATH
  2443. shlibpath_overrides_runpath=no
  2444. hardcode_into_libs=yes
  2445. dynamic_linker='ldqnx.so'
  2446. ;;
  2447. openbsd*)
  2448. version_type=sunos
  2449. sys_lib_dlsearch_path_spec="/usr/lib"
  2450. need_lib_prefix=no
  2451. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2452. case $host_os in
  2453. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2454. *) need_version=no ;;
  2455. esac
  2456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2457. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2458. shlibpath_var=LD_LIBRARY_PATH
  2459. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2460. case $host_os in
  2461. openbsd2.[[89]] | openbsd2.[[89]].*)
  2462. shlibpath_overrides_runpath=no
  2463. ;;
  2464. *)
  2465. shlibpath_overrides_runpath=yes
  2466. ;;
  2467. esac
  2468. else
  2469. shlibpath_overrides_runpath=yes
  2470. fi
  2471. ;;
  2472. os2*)
  2473. libname_spec='$name'
  2474. shrext_cmds=".dll"
  2475. need_lib_prefix=no
  2476. library_names_spec='$libname${shared_ext} $libname.a'
  2477. dynamic_linker='OS/2 ld.exe'
  2478. shlibpath_var=LIBPATH
  2479. ;;
  2480. osf3* | osf4* | osf5*)
  2481. version_type=osf
  2482. need_lib_prefix=no
  2483. need_version=no
  2484. soname_spec='${libname}${release}${shared_ext}$major'
  2485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2486. shlibpath_var=LD_LIBRARY_PATH
  2487. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2488. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2489. ;;
  2490. rdos*)
  2491. dynamic_linker=no
  2492. ;;
  2493. solaris*)
  2494. version_type=linux # correct to gnu/linux during the next big refactor
  2495. need_lib_prefix=no
  2496. need_version=no
  2497. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2498. soname_spec='${libname}${release}${shared_ext}$major'
  2499. shlibpath_var=LD_LIBRARY_PATH
  2500. shlibpath_overrides_runpath=yes
  2501. hardcode_into_libs=yes
  2502. # ldd complains unless libraries are executable
  2503. postinstall_cmds='chmod +x $lib'
  2504. ;;
  2505. sunos4*)
  2506. version_type=sunos
  2507. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2508. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2509. shlibpath_var=LD_LIBRARY_PATH
  2510. shlibpath_overrides_runpath=yes
  2511. if test "$with_gnu_ld" = yes; then
  2512. need_lib_prefix=no
  2513. fi
  2514. need_version=yes
  2515. ;;
  2516. sysv4 | sysv4.3*)
  2517. version_type=linux # correct to gnu/linux during the next big refactor
  2518. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2519. soname_spec='${libname}${release}${shared_ext}$major'
  2520. shlibpath_var=LD_LIBRARY_PATH
  2521. case $host_vendor in
  2522. sni)
  2523. shlibpath_overrides_runpath=no
  2524. need_lib_prefix=no
  2525. runpath_var=LD_RUN_PATH
  2526. ;;
  2527. siemens)
  2528. need_lib_prefix=no
  2529. ;;
  2530. motorola)
  2531. need_lib_prefix=no
  2532. need_version=no
  2533. shlibpath_overrides_runpath=no
  2534. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2535. ;;
  2536. esac
  2537. ;;
  2538. sysv4*MP*)
  2539. if test -d /usr/nec ;then
  2540. version_type=linux # correct to gnu/linux during the next big refactor
  2541. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2542. soname_spec='$libname${shared_ext}.$major'
  2543. shlibpath_var=LD_LIBRARY_PATH
  2544. fi
  2545. ;;
  2546. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2547. version_type=freebsd-elf
  2548. need_lib_prefix=no
  2549. need_version=no
  2550. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2551. soname_spec='${libname}${release}${shared_ext}$major'
  2552. shlibpath_var=LD_LIBRARY_PATH
  2553. shlibpath_overrides_runpath=yes
  2554. hardcode_into_libs=yes
  2555. if test "$with_gnu_ld" = yes; then
  2556. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2557. else
  2558. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2559. case $host_os in
  2560. sco3.2v5*)
  2561. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2562. ;;
  2563. esac
  2564. fi
  2565. sys_lib_dlsearch_path_spec='/usr/lib'
  2566. ;;
  2567. tpf*)
  2568. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2569. version_type=linux # correct to gnu/linux during the next big refactor
  2570. need_lib_prefix=no
  2571. need_version=no
  2572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2573. shlibpath_var=LD_LIBRARY_PATH
  2574. shlibpath_overrides_runpath=no
  2575. hardcode_into_libs=yes
  2576. ;;
  2577. uts4*)
  2578. version_type=linux # correct to gnu/linux during the next big refactor
  2579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2580. soname_spec='${libname}${release}${shared_ext}$major'
  2581. shlibpath_var=LD_LIBRARY_PATH
  2582. ;;
  2583. *)
  2584. dynamic_linker=no
  2585. ;;
  2586. esac
  2587. AC_MSG_RESULT([$dynamic_linker])
  2588. test "$dynamic_linker" = no && can_build_shared=no
  2589. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2590. if test "$GCC" = yes; then
  2591. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2592. fi
  2593. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2594. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2595. fi
  2596. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2597. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2598. fi
  2599. _LT_DECL([], [variables_saved_for_relink], [1],
  2600. [Variables whose values should be saved in libtool wrapper scripts and
  2601. restored at link time])
  2602. _LT_DECL([], [need_lib_prefix], [0],
  2603. [Do we need the "lib" prefix for modules?])
  2604. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2605. _LT_DECL([], [version_type], [0], [Library versioning type])
  2606. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2607. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2608. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2609. [Is shlibpath searched before the hard-coded library search path?])
  2610. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2611. _LT_DECL([], [library_names_spec], [1],
  2612. [[List of archive names. First name is the real one, the rest are links.
  2613. The last name is the one that the linker finds with -lNAME]])
  2614. _LT_DECL([], [soname_spec], [1],
  2615. [[The coded name of the library, if different from the real name]])
  2616. _LT_DECL([], [install_override_mode], [1],
  2617. [Permission mode override for installation of shared libraries])
  2618. _LT_DECL([], [postinstall_cmds], [2],
  2619. [Command to use after installation of a shared archive])
  2620. _LT_DECL([], [postuninstall_cmds], [2],
  2621. [Command to use after uninstallation of a shared archive])
  2622. _LT_DECL([], [finish_cmds], [2],
  2623. [Commands used to finish a libtool library installation in a directory])
  2624. _LT_DECL([], [finish_eval], [1],
  2625. [[As "finish_cmds", except a single script fragment to be evaled but
  2626. not shown]])
  2627. _LT_DECL([], [hardcode_into_libs], [0],
  2628. [Whether we should hardcode library paths into libraries])
  2629. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2630. [Compile-time system search path for libraries])
  2631. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2632. [Run-time system search path for libraries])
  2633. ])# _LT_SYS_DYNAMIC_LINKER
  2634. # _LT_PATH_TOOL_PREFIX(TOOL)
  2635. # --------------------------
  2636. # find a file program which can recognize shared library
  2637. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2638. [m4_require([_LT_DECL_EGREP])dnl
  2639. AC_MSG_CHECKING([for $1])
  2640. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2641. [case $MAGIC_CMD in
  2642. [[\\/*] | ?:[\\/]*])
  2643. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2644. ;;
  2645. *)
  2646. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2647. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2648. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2649. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2650. dnl not every word. This closes a longstanding sh security hole.
  2651. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2652. for ac_dir in $ac_dummy; do
  2653. IFS="$lt_save_ifs"
  2654. test -z "$ac_dir" && ac_dir=.
  2655. if test -f $ac_dir/$1; then
  2656. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2657. if test -n "$file_magic_test_file"; then
  2658. case $deplibs_check_method in
  2659. "file_magic "*)
  2660. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2661. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2662. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2663. $EGREP "$file_magic_regex" > /dev/null; then
  2664. :
  2665. else
  2666. cat <<_LT_EOF 1>&2
  2667. *** Warning: the command libtool uses to detect shared libraries,
  2668. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2669. *** The result is that libtool may fail to recognize shared libraries
  2670. *** as such. This will affect the creation of libtool libraries that
  2671. *** depend on shared libraries, but programs linked with such libtool
  2672. *** libraries will work regardless of this problem. Nevertheless, you
  2673. *** may want to report the problem to your system manager and/or to
  2674. *** [email protected]
  2675. _LT_EOF
  2676. fi ;;
  2677. esac
  2678. fi
  2679. break
  2680. fi
  2681. done
  2682. IFS="$lt_save_ifs"
  2683. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2684. ;;
  2685. esac])
  2686. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2687. if test -n "$MAGIC_CMD"; then
  2688. AC_MSG_RESULT($MAGIC_CMD)
  2689. else
  2690. AC_MSG_RESULT(no)
  2691. fi
  2692. _LT_DECL([], [MAGIC_CMD], [0],
  2693. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2694. ])# _LT_PATH_TOOL_PREFIX
  2695. # Old name:
  2696. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2697. dnl aclocal-1.4 backwards compatibility:
  2698. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2699. # _LT_PATH_MAGIC
  2700. # --------------
  2701. # find a file program which can recognize a shared library
  2702. m4_defun([_LT_PATH_MAGIC],
  2703. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2704. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2705. if test -n "$ac_tool_prefix"; then
  2706. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2707. else
  2708. MAGIC_CMD=:
  2709. fi
  2710. fi
  2711. ])# _LT_PATH_MAGIC
  2712. # LT_PATH_LD
  2713. # ----------
  2714. # find the pathname to the GNU or non-GNU linker
  2715. AC_DEFUN([LT_PATH_LD],
  2716. [AC_REQUIRE([AC_PROG_CC])dnl
  2717. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2718. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2719. m4_require([_LT_DECL_SED])dnl
  2720. m4_require([_LT_DECL_EGREP])dnl
  2721. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2722. AC_ARG_WITH([gnu-ld],
  2723. [AS_HELP_STRING([--with-gnu-ld],
  2724. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2725. [test "$withval" = no || with_gnu_ld=yes],
  2726. [with_gnu_ld=no])dnl
  2727. ac_prog=ld
  2728. if test "$GCC" = yes; then
  2729. # Check if gcc -print-prog-name=ld gives a path.
  2730. AC_MSG_CHECKING([for ld used by $CC])
  2731. case $host in
  2732. *-*-mingw*)
  2733. # gcc leaves a trailing carriage return which upsets mingw
  2734. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2735. *)
  2736. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2737. esac
  2738. case $ac_prog in
  2739. # Accept absolute paths.
  2740. [[\\/]]* | ?:[[\\/]]*)
  2741. re_direlt='/[[^/]][[^/]]*/\.\./'
  2742. # Canonicalize the pathname of ld
  2743. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2744. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2745. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2746. done
  2747. test -z "$LD" && LD="$ac_prog"
  2748. ;;
  2749. "")
  2750. # If it fails, then pretend we aren't using GCC.
  2751. ac_prog=ld
  2752. ;;
  2753. *)
  2754. # If it is relative, then search for the first ld in PATH.
  2755. with_gnu_ld=unknown
  2756. ;;
  2757. esac
  2758. elif test "$with_gnu_ld" = yes; then
  2759. AC_MSG_CHECKING([for GNU ld])
  2760. else
  2761. AC_MSG_CHECKING([for non-GNU ld])
  2762. fi
  2763. AC_CACHE_VAL(lt_cv_path_LD,
  2764. [if test -z "$LD"; then
  2765. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2766. for ac_dir in $PATH; do
  2767. IFS="$lt_save_ifs"
  2768. test -z "$ac_dir" && ac_dir=.
  2769. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2770. lt_cv_path_LD="$ac_dir/$ac_prog"
  2771. # Check to see if the program is GNU ld. I'd rather use --version,
  2772. # but apparently some variants of GNU ld only accept -v.
  2773. # Break only if it was the GNU/non-GNU ld that we prefer.
  2774. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2775. *GNU* | *'with BFD'*)
  2776. test "$with_gnu_ld" != no && break
  2777. ;;
  2778. *)
  2779. test "$with_gnu_ld" != yes && break
  2780. ;;
  2781. esac
  2782. fi
  2783. done
  2784. IFS="$lt_save_ifs"
  2785. else
  2786. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2787. fi])
  2788. LD="$lt_cv_path_LD"
  2789. if test -n "$LD"; then
  2790. AC_MSG_RESULT($LD)
  2791. else
  2792. AC_MSG_RESULT(no)
  2793. fi
  2794. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2795. _LT_PATH_LD_GNU
  2796. AC_SUBST([LD])
  2797. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2798. ])# LT_PATH_LD
  2799. # Old names:
  2800. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2801. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2802. dnl aclocal-1.4 backwards compatibility:
  2803. dnl AC_DEFUN([AM_PROG_LD], [])
  2804. dnl AC_DEFUN([AC_PROG_LD], [])
  2805. # _LT_PATH_LD_GNU
  2806. #- --------------
  2807. m4_defun([_LT_PATH_LD_GNU],
  2808. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2809. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2810. case `$LD -v 2>&1 </dev/null` in
  2811. *GNU* | *'with BFD'*)
  2812. lt_cv_prog_gnu_ld=yes
  2813. ;;
  2814. *)
  2815. lt_cv_prog_gnu_ld=no
  2816. ;;
  2817. esac])
  2818. with_gnu_ld=$lt_cv_prog_gnu_ld
  2819. ])# _LT_PATH_LD_GNU
  2820. # _LT_CMD_RELOAD
  2821. # --------------
  2822. # find reload flag for linker
  2823. # -- PORTME Some linkers may need a different reload flag.
  2824. m4_defun([_LT_CMD_RELOAD],
  2825. [AC_CACHE_CHECK([for $LD option to reload object files],
  2826. lt_cv_ld_reload_flag,
  2827. [lt_cv_ld_reload_flag='-r'])
  2828. reload_flag=$lt_cv_ld_reload_flag
  2829. case $reload_flag in
  2830. "" | " "*) ;;
  2831. *) reload_flag=" $reload_flag" ;;
  2832. esac
  2833. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2834. case $host_os in
  2835. cygwin* | mingw* | pw32* | cegcc*)
  2836. if test "$GCC" != yes; then
  2837. reload_cmds=false
  2838. fi
  2839. ;;
  2840. darwin*)
  2841. if test "$GCC" = yes; then
  2842. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2843. else
  2844. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2845. fi
  2846. ;;
  2847. esac
  2848. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2849. _LT_TAGDECL([], [reload_cmds], [2])dnl
  2850. ])# _LT_CMD_RELOAD
  2851. # _LT_CHECK_MAGIC_METHOD
  2852. # ----------------------
  2853. # how to check for library dependencies
  2854. # -- PORTME fill in with the dynamic library characteristics
  2855. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2856. [m4_require([_LT_DECL_EGREP])
  2857. m4_require([_LT_DECL_OBJDUMP])
  2858. AC_CACHE_CHECK([how to recognize dependent libraries],
  2859. lt_cv_deplibs_check_method,
  2860. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2861. lt_cv_file_magic_test_file=
  2862. lt_cv_deplibs_check_method='unknown'
  2863. # Need to set the preceding variable on all platforms that support
  2864. # interlibrary dependencies.
  2865. # 'none' -- dependencies not supported.
  2866. # `unknown' -- same as none, but documents that we really don't know.
  2867. # 'pass_all' -- all dependencies passed with no checks.
  2868. # 'test_compile' -- check by making test program.
  2869. # 'file_magic [[regex]]' -- check by looking for files in library path
  2870. # which responds to the $file_magic_cmd with a given extended regex.
  2871. # If you have `file' or equivalent on your system and you're not sure
  2872. # whether `pass_all' will *always* work, you probably want this one.
  2873. case $host_os in
  2874. aix[[4-9]]*)
  2875. lt_cv_deplibs_check_method=pass_all
  2876. ;;
  2877. beos*)
  2878. lt_cv_deplibs_check_method=pass_all
  2879. ;;
  2880. bsdi[[45]]*)
  2881. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2882. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2883. lt_cv_file_magic_test_file=/shlib/libc.so
  2884. ;;
  2885. cygwin*)
  2886. # func_win32_libid is a shell function defined in ltmain.sh
  2887. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2888. lt_cv_file_magic_cmd='func_win32_libid'
  2889. ;;
  2890. mingw* | pw32*)
  2891. # Base MSYS/MinGW do not provide the 'file' command needed by
  2892. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2893. # unless we find 'file', for example because we are cross-compiling.
  2894. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  2895. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  2896. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2897. lt_cv_file_magic_cmd='func_win32_libid'
  2898. else
  2899. # Keep this pattern in sync with the one in func_win32_libid.
  2900. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2901. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2902. fi
  2903. ;;
  2904. cegcc*)
  2905. # use the weaker test based on 'objdump'. See mingw*.
  2906. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2907. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2908. ;;
  2909. darwin* | rhapsody*)
  2910. lt_cv_deplibs_check_method=pass_all
  2911. ;;
  2912. freebsd* | dragonfly*)
  2913. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2914. case $host_cpu in
  2915. i*86 )
  2916. # Not sure whether the presence of OpenBSD here was a mistake.
  2917. # Let's accept both of them until this is cleared up.
  2918. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2919. lt_cv_file_magic_cmd=/usr/bin/file
  2920. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2921. ;;
  2922. esac
  2923. else
  2924. lt_cv_deplibs_check_method=pass_all
  2925. fi
  2926. ;;
  2927. gnu*)
  2928. lt_cv_deplibs_check_method=pass_all
  2929. ;;
  2930. haiku*)
  2931. lt_cv_deplibs_check_method=pass_all
  2932. ;;
  2933. hpux10.20* | hpux11*)
  2934. lt_cv_file_magic_cmd=/usr/bin/file
  2935. case $host_cpu in
  2936. ia64*)
  2937. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2938. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2939. ;;
  2940. hppa*64*)
  2941. [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
  2942. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2943. ;;
  2944. *)
  2945. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  2946. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2947. ;;
  2948. esac
  2949. ;;
  2950. interix[[3-9]]*)
  2951. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2952. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2953. ;;
  2954. irix5* | irix6* | nonstopux*)
  2955. case $LD in
  2956. *-32|*"-32 ") libmagic=32-bit;;
  2957. *-n32|*"-n32 ") libmagic=N32;;
  2958. *-64|*"-64 ") libmagic=64-bit;;
  2959. *) libmagic=never-match;;
  2960. esac
  2961. lt_cv_deplibs_check_method=pass_all
  2962. ;;
  2963. # This must be glibc/ELF.
  2964. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2965. lt_cv_deplibs_check_method=pass_all
  2966. ;;
  2967. netbsd*)
  2968. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2969. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2970. else
  2971. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2972. fi
  2973. ;;
  2974. newos6*)
  2975. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2976. lt_cv_file_magic_cmd=/usr/bin/file
  2977. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2978. ;;
  2979. *nto* | *qnx*)
  2980. lt_cv_deplibs_check_method=pass_all
  2981. ;;
  2982. openbsd*)
  2983. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2984. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2985. else
  2986. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2987. fi
  2988. ;;
  2989. osf3* | osf4* | osf5*)
  2990. lt_cv_deplibs_check_method=pass_all
  2991. ;;
  2992. rdos*)
  2993. lt_cv_deplibs_check_method=pass_all
  2994. ;;
  2995. solaris*)
  2996. lt_cv_deplibs_check_method=pass_all
  2997. ;;
  2998. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2999. lt_cv_deplibs_check_method=pass_all
  3000. ;;
  3001. sysv4 | sysv4.3*)
  3002. case $host_vendor in
  3003. motorola)
  3004. 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]]'
  3005. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3006. ;;
  3007. ncr)
  3008. lt_cv_deplibs_check_method=pass_all
  3009. ;;
  3010. sequent)
  3011. lt_cv_file_magic_cmd='/bin/file'
  3012. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3013. ;;
  3014. sni)
  3015. lt_cv_file_magic_cmd='/bin/file'
  3016. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3017. lt_cv_file_magic_test_file=/lib/libc.so
  3018. ;;
  3019. siemens)
  3020. lt_cv_deplibs_check_method=pass_all
  3021. ;;
  3022. pc)
  3023. lt_cv_deplibs_check_method=pass_all
  3024. ;;
  3025. esac
  3026. ;;
  3027. tpf*)
  3028. lt_cv_deplibs_check_method=pass_all
  3029. ;;
  3030. esac
  3031. ])
  3032. file_magic_glob=
  3033. want_nocaseglob=no
  3034. if test "$build" = "$host"; then
  3035. case $host_os in
  3036. mingw* | pw32*)
  3037. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3038. want_nocaseglob=yes
  3039. else
  3040. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3041. fi
  3042. ;;
  3043. esac
  3044. fi
  3045. file_magic_cmd=$lt_cv_file_magic_cmd
  3046. deplibs_check_method=$lt_cv_deplibs_check_method
  3047. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3048. _LT_DECL([], [deplibs_check_method], [1],
  3049. [Method to check whether dependent libraries are shared objects])
  3050. _LT_DECL([], [file_magic_cmd], [1],
  3051. [Command to use when deplibs_check_method = "file_magic"])
  3052. _LT_DECL([], [file_magic_glob], [1],
  3053. [How to find potential files when deplibs_check_method = "file_magic"])
  3054. _LT_DECL([], [want_nocaseglob], [1],
  3055. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3056. ])# _LT_CHECK_MAGIC_METHOD
  3057. # LT_PATH_NM
  3058. # ----------
  3059. # find the pathname to a BSD- or MS-compatible name lister
  3060. AC_DEFUN([LT_PATH_NM],
  3061. [AC_REQUIRE([AC_PROG_CC])dnl
  3062. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3063. [if test -n "$NM"; then
  3064. # Let the user override the test.
  3065. lt_cv_path_NM="$NM"
  3066. else
  3067. lt_nm_to_check="${ac_tool_prefix}nm"
  3068. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3069. lt_nm_to_check="$lt_nm_to_check nm"
  3070. fi
  3071. for lt_tmp_nm in $lt_nm_to_check; do
  3072. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3073. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3074. IFS="$lt_save_ifs"
  3075. test -z "$ac_dir" && ac_dir=.
  3076. tmp_nm="$ac_dir/$lt_tmp_nm"
  3077. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3078. # Check to see if the nm accepts a BSD-compat flag.
  3079. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3080. # nm: unknown option "B" ignored
  3081. # Tru64's nm complains that /dev/null is an invalid object file
  3082. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3083. */dev/null* | *'Invalid file or object type'*)
  3084. lt_cv_path_NM="$tmp_nm -B"
  3085. break
  3086. ;;
  3087. *)
  3088. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3089. */dev/null*)
  3090. lt_cv_path_NM="$tmp_nm -p"
  3091. break
  3092. ;;
  3093. *)
  3094. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3095. continue # so that we can try to find one that supports BSD flags
  3096. ;;
  3097. esac
  3098. ;;
  3099. esac
  3100. fi
  3101. done
  3102. IFS="$lt_save_ifs"
  3103. done
  3104. : ${lt_cv_path_NM=no}
  3105. fi])
  3106. if test "$lt_cv_path_NM" != "no"; then
  3107. NM="$lt_cv_path_NM"
  3108. else
  3109. # Didn't find any BSD compatible name lister, look for dumpbin.
  3110. if test -n "$DUMPBIN"; then :
  3111. # Let the user override the test.
  3112. else
  3113. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3114. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3115. *COFF*)
  3116. DUMPBIN="$DUMPBIN -symbols"
  3117. ;;
  3118. *)
  3119. DUMPBIN=:
  3120. ;;
  3121. esac
  3122. fi
  3123. AC_SUBST([DUMPBIN])
  3124. if test "$DUMPBIN" != ":"; then
  3125. NM="$DUMPBIN"
  3126. fi
  3127. fi
  3128. test -z "$NM" && NM=nm
  3129. AC_SUBST([NM])
  3130. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3131. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3132. [lt_cv_nm_interface="BSD nm"
  3133. echo "int some_variable = 0;" > conftest.$ac_ext
  3134. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3135. (eval "$ac_compile" 2>conftest.err)
  3136. cat conftest.err >&AS_MESSAGE_LOG_FD
  3137. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3138. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3139. cat conftest.err >&AS_MESSAGE_LOG_FD
  3140. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3141. cat conftest.out >&AS_MESSAGE_LOG_FD
  3142. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3143. lt_cv_nm_interface="MS dumpbin"
  3144. fi
  3145. rm -f conftest*])
  3146. ])# LT_PATH_NM
  3147. # Old names:
  3148. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3149. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3150. dnl aclocal-1.4 backwards compatibility:
  3151. dnl AC_DEFUN([AM_PROG_NM], [])
  3152. dnl AC_DEFUN([AC_PROG_NM], [])
  3153. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3154. # --------------------------------
  3155. # how to determine the name of the shared library
  3156. # associated with a specific link library.
  3157. # -- PORTME fill in with the dynamic library characteristics
  3158. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3159. [m4_require([_LT_DECL_EGREP])
  3160. m4_require([_LT_DECL_OBJDUMP])
  3161. m4_require([_LT_DECL_DLLTOOL])
  3162. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3163. lt_cv_sharedlib_from_linklib_cmd,
  3164. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3165. case $host_os in
  3166. cygwin* | mingw* | pw32* | cegcc*)
  3167. # two different shell functions defined in ltmain.sh
  3168. # decide which to use based on capabilities of $DLLTOOL
  3169. case `$DLLTOOL --help 2>&1` in
  3170. *--identify-strict*)
  3171. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3172. ;;
  3173. *)
  3174. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3175. ;;
  3176. esac
  3177. ;;
  3178. *)
  3179. # fallback: assume linklib IS sharedlib
  3180. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3181. ;;
  3182. esac
  3183. ])
  3184. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3185. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3186. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3187. [Command to associate shared and link libraries])
  3188. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3189. # _LT_PATH_MANIFEST_TOOL
  3190. # ----------------------
  3191. # locate the manifest tool
  3192. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3193. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3194. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3195. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3196. [lt_cv_path_mainfest_tool=no
  3197. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3198. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3199. cat conftest.err >&AS_MESSAGE_LOG_FD
  3200. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3201. lt_cv_path_mainfest_tool=yes
  3202. fi
  3203. rm -f conftest*])
  3204. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3205. MANIFEST_TOOL=:
  3206. fi
  3207. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3208. ])# _LT_PATH_MANIFEST_TOOL
  3209. # LT_LIB_M
  3210. # --------
  3211. # check for math library
  3212. AC_DEFUN([LT_LIB_M],
  3213. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3214. LIBM=
  3215. case $host in
  3216. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3217. # These system don't have libm, or don't need it
  3218. ;;
  3219. *-ncr-sysv4.3*)
  3220. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3221. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3222. ;;
  3223. *)
  3224. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3225. ;;
  3226. esac
  3227. AC_SUBST([LIBM])
  3228. ])# LT_LIB_M
  3229. # Old name:
  3230. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3231. dnl aclocal-1.4 backwards compatibility:
  3232. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3233. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3234. # -------------------------------
  3235. m4_defun([_LT_COMPILER_NO_RTTI],
  3236. [m4_require([_LT_TAG_COMPILER])dnl
  3237. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3238. if test "$GCC" = yes; then
  3239. case $cc_basename in
  3240. nvcc*)
  3241. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3242. *)
  3243. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3244. esac
  3245. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3246. lt_cv_prog_compiler_rtti_exceptions,
  3247. [-fno-rtti -fno-exceptions], [],
  3248. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3249. fi
  3250. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3251. [Compiler flag to turn off builtin functions])
  3252. ])# _LT_COMPILER_NO_RTTI
  3253. # _LT_CMD_GLOBAL_SYMBOLS
  3254. # ----------------------
  3255. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3256. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3257. AC_REQUIRE([AC_PROG_CC])dnl
  3258. AC_REQUIRE([AC_PROG_AWK])dnl
  3259. AC_REQUIRE([LT_PATH_NM])dnl
  3260. AC_REQUIRE([LT_PATH_LD])dnl
  3261. m4_require([_LT_DECL_SED])dnl
  3262. m4_require([_LT_DECL_EGREP])dnl
  3263. m4_require([_LT_TAG_COMPILER])dnl
  3264. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3265. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3266. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3267. [
  3268. # These are sane defaults that work on at least a few old systems.
  3269. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3270. # Character class describing NM global symbol codes.
  3271. symcode='[[BCDEGRST]]'
  3272. # Regexp to match symbols that can be accessed directly from C.
  3273. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3274. # Define system-specific variables.
  3275. case $host_os in
  3276. aix*)
  3277. symcode='[[BCDT]]'
  3278. ;;
  3279. cygwin* | mingw* | pw32* | cegcc*)
  3280. symcode='[[ABCDGISTW]]'
  3281. ;;
  3282. hpux*)
  3283. if test "$host_cpu" = ia64; then
  3284. symcode='[[ABCDEGRST]]'
  3285. fi
  3286. ;;
  3287. irix* | nonstopux*)
  3288. symcode='[[BCDEGRST]]'
  3289. ;;
  3290. osf*)
  3291. symcode='[[BCDEGQRST]]'
  3292. ;;
  3293. solaris*)
  3294. symcode='[[BDRT]]'
  3295. ;;
  3296. sco3.2v5*)
  3297. symcode='[[DT]]'
  3298. ;;
  3299. sysv4.2uw2*)
  3300. symcode='[[DT]]'
  3301. ;;
  3302. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3303. symcode='[[ABDT]]'
  3304. ;;
  3305. sysv4)
  3306. symcode='[[DFNSTU]]'
  3307. ;;
  3308. esac
  3309. # If we're using GNU nm, then use its standard symbol codes.
  3310. case `$NM -V 2>&1` in
  3311. *GNU* | *'with BFD'*)
  3312. symcode='[[ABCDGIRSTW]]' ;;
  3313. esac
  3314. # Transform an extracted symbol line into a proper C declaration.
  3315. # Some systems (esp. on ia64) link data and code symbols differently,
  3316. # so use this general approach.
  3317. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3318. # Transform an extracted symbol line into symbol name and symbol address
  3319. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3320. 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'"
  3321. # Handle CRLF in mingw tool chain
  3322. opt_cr=
  3323. case $build_os in
  3324. mingw*)
  3325. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3326. ;;
  3327. esac
  3328. # Try without a prefix underscore, then with it.
  3329. for ac_symprfx in "" "_"; do
  3330. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3331. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3332. # Write the raw and C identifiers.
  3333. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3334. # Fake it for dumpbin and say T for any non-static function
  3335. # and D for any global variable.
  3336. # Also find C++ and __fastcall symbols from MSVC++,
  3337. # which start with @ or ?.
  3338. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3339. " {last_section=section; section=\$ 3};"\
  3340. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3341. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3342. " \$ 0!~/External *\|/{next};"\
  3343. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3344. " {if(hide[section]) next};"\
  3345. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3346. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3347. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3348. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3349. " ' prfx=^$ac_symprfx]"
  3350. else
  3351. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3352. fi
  3353. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3354. # Check to see that the pipe works correctly.
  3355. pipe_works=no
  3356. rm -f conftest*
  3357. cat > conftest.$ac_ext <<_LT_EOF
  3358. #ifdef __cplusplus
  3359. extern "C" {
  3360. #endif
  3361. char nm_test_var;
  3362. void nm_test_func(void);
  3363. void nm_test_func(void){}
  3364. #ifdef __cplusplus
  3365. }
  3366. #endif
  3367. int main(){nm_test_var='a';nm_test_func();return(0);}
  3368. _LT_EOF
  3369. if AC_TRY_EVAL(ac_compile); then
  3370. # Now try to grab the symbols.
  3371. nlist=conftest.nm
  3372. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3373. # Try sorting and uniquifying the output.
  3374. if sort "$nlist" | uniq > "$nlist"T; then
  3375. mv -f "$nlist"T "$nlist"
  3376. else
  3377. rm -f "$nlist"T
  3378. fi
  3379. # Make sure that we snagged all the symbols we need.
  3380. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3381. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3382. cat <<_LT_EOF > conftest.$ac_ext
  3383. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3384. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3385. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3386. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3387. # define LT@&t@_DLSYM_CONST
  3388. #elif defined(__osf__)
  3389. /* This system does not cope well with relocations in const data. */
  3390. # define LT@&t@_DLSYM_CONST
  3391. #else
  3392. # define LT@&t@_DLSYM_CONST const
  3393. #endif
  3394. #ifdef __cplusplus
  3395. extern "C" {
  3396. #endif
  3397. _LT_EOF
  3398. # Now generate the symbol file.
  3399. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3400. cat <<_LT_EOF >> conftest.$ac_ext
  3401. /* The mapping between symbol names and symbols. */
  3402. LT@&t@_DLSYM_CONST struct {
  3403. const char *name;
  3404. void *address;
  3405. }
  3406. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3407. {
  3408. { "@PROGRAM@", (void *) 0 },
  3409. _LT_EOF
  3410. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3411. cat <<\_LT_EOF >> conftest.$ac_ext
  3412. {0, (void *) 0}
  3413. };
  3414. /* This works around a problem in FreeBSD linker */
  3415. #ifdef FREEBSD_WORKAROUND
  3416. static const void *lt_preloaded_setup() {
  3417. return lt__PROGRAM__LTX_preloaded_symbols;
  3418. }
  3419. #endif
  3420. #ifdef __cplusplus
  3421. }
  3422. #endif
  3423. _LT_EOF
  3424. # Now try linking the two files.
  3425. mv conftest.$ac_objext conftstm.$ac_objext
  3426. lt_globsym_save_LIBS=$LIBS
  3427. lt_globsym_save_CFLAGS=$CFLAGS
  3428. LIBS="conftstm.$ac_objext"
  3429. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3430. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3431. pipe_works=yes
  3432. fi
  3433. LIBS=$lt_globsym_save_LIBS
  3434. CFLAGS=$lt_globsym_save_CFLAGS
  3435. else
  3436. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3437. fi
  3438. else
  3439. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3440. fi
  3441. else
  3442. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3443. fi
  3444. else
  3445. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3446. cat conftest.$ac_ext >&5
  3447. fi
  3448. rm -rf conftest* conftst*
  3449. # Do not use the global_symbol_pipe unless it works.
  3450. if test "$pipe_works" = yes; then
  3451. break
  3452. else
  3453. lt_cv_sys_global_symbol_pipe=
  3454. fi
  3455. done
  3456. ])
  3457. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3458. lt_cv_sys_global_symbol_to_cdecl=
  3459. fi
  3460. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3461. AC_MSG_RESULT(failed)
  3462. else
  3463. AC_MSG_RESULT(ok)
  3464. fi
  3465. # Response file support.
  3466. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3467. nm_file_list_spec='@'
  3468. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3469. nm_file_list_spec='@'
  3470. fi
  3471. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3472. [Take the output of nm and produce a listing of raw symbols and C names])
  3473. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3474. [Transform the output of nm in a proper C declaration])
  3475. _LT_DECL([global_symbol_to_c_name_address],
  3476. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3477. [Transform the output of nm in a C name address pair])
  3478. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3479. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3480. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3481. _LT_DECL([], [nm_file_list_spec], [1],
  3482. [Specify filename containing input files for $NM])
  3483. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3484. # _LT_COMPILER_PIC([TAGNAME])
  3485. # ---------------------------
  3486. m4_defun([_LT_COMPILER_PIC],
  3487. [m4_require([_LT_TAG_COMPILER])dnl
  3488. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3489. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3490. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3491. m4_if([$1], [CXX], [
  3492. # C++ specific cases for pic, static, wl, etc.
  3493. if test "$GXX" = yes; then
  3494. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3495. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3496. case $host_os in
  3497. aix*)
  3498. # All AIX code is PIC.
  3499. if test "$host_cpu" = ia64; then
  3500. # AIX 5 now supports IA64 processor
  3501. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3502. fi
  3503. ;;
  3504. amigaos*)
  3505. case $host_cpu in
  3506. powerpc)
  3507. # see comment about AmigaOS4 .so support
  3508. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3509. ;;
  3510. m68k)
  3511. # FIXME: we need at least 68020 code to build shared libraries, but
  3512. # adding the `-m68020' flag to GCC prevents building anything better,
  3513. # like `-m68040'.
  3514. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3515. ;;
  3516. esac
  3517. ;;
  3518. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3519. # PIC is the default for these OSes.
  3520. ;;
  3521. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3522. # This hack is so that the source file can tell whether it is being
  3523. # built for inclusion in a dll (and should export symbols for example).
  3524. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3525. # (--disable-auto-import) libraries
  3526. m4_if([$1], [GCJ], [],
  3527. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3528. ;;
  3529. darwin* | rhapsody*)
  3530. # PIC is the default on this platform
  3531. # Common symbols not allowed in MH_DYLIB files
  3532. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3533. ;;
  3534. *djgpp*)
  3535. # DJGPP does not support shared libraries at all
  3536. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3537. ;;
  3538. haiku*)
  3539. # PIC is the default for Haiku.
  3540. # The "-static" flag exists, but is broken.
  3541. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3542. ;;
  3543. interix[[3-9]]*)
  3544. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3545. # Instead, we relocate shared libraries at runtime.
  3546. ;;
  3547. sysv4*MP*)
  3548. if test -d /usr/nec; then
  3549. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3550. fi
  3551. ;;
  3552. hpux*)
  3553. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3554. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3555. # sets the default TLS model and affects inlining.
  3556. case $host_cpu in
  3557. hppa*64*)
  3558. ;;
  3559. *)
  3560. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3561. ;;
  3562. esac
  3563. ;;
  3564. *qnx* | *nto*)
  3565. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3566. # it will coredump.
  3567. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3568. ;;
  3569. *)
  3570. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3571. ;;
  3572. esac
  3573. else
  3574. case $host_os in
  3575. aix[[4-9]]*)
  3576. # All AIX code is PIC.
  3577. if test "$host_cpu" = ia64; then
  3578. # AIX 5 now supports IA64 processor
  3579. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3580. else
  3581. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3582. fi
  3583. ;;
  3584. chorus*)
  3585. case $cc_basename in
  3586. cxch68*)
  3587. # Green Hills C++ Compiler
  3588. # _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"
  3589. ;;
  3590. esac
  3591. ;;
  3592. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3593. # This hack is so that the source file can tell whether it is being
  3594. # built for inclusion in a dll (and should export symbols for example).
  3595. m4_if([$1], [GCJ], [],
  3596. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3597. ;;
  3598. dgux*)
  3599. case $cc_basename in
  3600. ec++*)
  3601. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3602. ;;
  3603. ghcx*)
  3604. # Green Hills C++ Compiler
  3605. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3606. ;;
  3607. *)
  3608. ;;
  3609. esac
  3610. ;;
  3611. freebsd* | dragonfly*)
  3612. # FreeBSD uses GNU C++
  3613. ;;
  3614. hpux9* | hpux10* | hpux11*)
  3615. case $cc_basename in
  3616. CC*)
  3617. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3618. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3619. if test "$host_cpu" != ia64; then
  3620. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3621. fi
  3622. ;;
  3623. aCC*)
  3624. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3625. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3626. case $host_cpu in
  3627. hppa*64*|ia64*)
  3628. # +Z the default
  3629. ;;
  3630. *)
  3631. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3632. ;;
  3633. esac
  3634. ;;
  3635. *)
  3636. ;;
  3637. esac
  3638. ;;
  3639. interix*)
  3640. # This is c89, which is MS Visual C++ (no shared libs)
  3641. # Anyone wants to do a port?
  3642. ;;
  3643. irix5* | irix6* | nonstopux*)
  3644. case $cc_basename in
  3645. CC*)
  3646. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3647. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3648. # CC pic flag -KPIC is the default.
  3649. ;;
  3650. *)
  3651. ;;
  3652. esac
  3653. ;;
  3654. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3655. case $cc_basename in
  3656. KCC*)
  3657. # KAI C++ Compiler
  3658. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3659. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3660. ;;
  3661. ecpc* )
  3662. # old Intel C++ for x86_64 which still supported -KPIC.
  3663. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3664. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3665. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3666. ;;
  3667. icpc* )
  3668. # Intel C++, used to be incompatible with GCC.
  3669. # ICC 10 doesn't accept -KPIC any more.
  3670. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3671. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3672. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3673. ;;
  3674. pgCC* | pgcpp*)
  3675. # Portland Group C++ compiler
  3676. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3677. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3678. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3679. ;;
  3680. cxx*)
  3681. # Compaq C++
  3682. # Make sure the PIC flag is empty. It appears that all Alpha
  3683. # Linux and Compaq Tru64 Unix objects are PIC.
  3684. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3685. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3686. ;;
  3687. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3688. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3689. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3690. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3691. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3692. ;;
  3693. *)
  3694. case `$CC -V 2>&1 | sed 5q` in
  3695. *Sun\ C*)
  3696. # Sun C++ 5.9
  3697. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3698. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3699. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3700. ;;
  3701. esac
  3702. ;;
  3703. esac
  3704. ;;
  3705. lynxos*)
  3706. ;;
  3707. m88k*)
  3708. ;;
  3709. mvs*)
  3710. case $cc_basename in
  3711. cxx*)
  3712. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3713. ;;
  3714. *)
  3715. ;;
  3716. esac
  3717. ;;
  3718. netbsd*)
  3719. ;;
  3720. *qnx* | *nto*)
  3721. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3722. # it will coredump.
  3723. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3724. ;;
  3725. osf3* | osf4* | osf5*)
  3726. case $cc_basename in
  3727. KCC*)
  3728. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3729. ;;
  3730. RCC*)
  3731. # Rational C++ 2.4.1
  3732. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3733. ;;
  3734. cxx*)
  3735. # Digital/Compaq C++
  3736. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3737. # Make sure the PIC flag is empty. It appears that all Alpha
  3738. # Linux and Compaq Tru64 Unix objects are PIC.
  3739. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3740. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3741. ;;
  3742. *)
  3743. ;;
  3744. esac
  3745. ;;
  3746. psos*)
  3747. ;;
  3748. solaris*)
  3749. case $cc_basename in
  3750. CC* | sunCC*)
  3751. # Sun C++ 4.2, 5.x and Centerline C++
  3752. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3753. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3754. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3755. ;;
  3756. gcx*)
  3757. # Green Hills C++ Compiler
  3758. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3759. ;;
  3760. *)
  3761. ;;
  3762. esac
  3763. ;;
  3764. sunos4*)
  3765. case $cc_basename in
  3766. CC*)
  3767. # Sun C++ 4.x
  3768. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3769. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3770. ;;
  3771. lcc*)
  3772. # Lucid
  3773. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3774. ;;
  3775. *)
  3776. ;;
  3777. esac
  3778. ;;
  3779. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3780. case $cc_basename in
  3781. CC*)
  3782. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3783. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3784. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3785. ;;
  3786. esac
  3787. ;;
  3788. tandem*)
  3789. case $cc_basename in
  3790. NCC*)
  3791. # NonStop-UX NCC 3.20
  3792. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3793. ;;
  3794. *)
  3795. ;;
  3796. esac
  3797. ;;
  3798. vxworks*)
  3799. ;;
  3800. *)
  3801. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3802. ;;
  3803. esac
  3804. fi
  3805. ],
  3806. [
  3807. if test "$GCC" = yes; then
  3808. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3809. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3810. case $host_os in
  3811. aix*)
  3812. # All AIX code is PIC.
  3813. if test "$host_cpu" = ia64; then
  3814. # AIX 5 now supports IA64 processor
  3815. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3816. fi
  3817. ;;
  3818. amigaos*)
  3819. case $host_cpu in
  3820. powerpc)
  3821. # see comment about AmigaOS4 .so support
  3822. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3823. ;;
  3824. m68k)
  3825. # FIXME: we need at least 68020 code to build shared libraries, but
  3826. # adding the `-m68020' flag to GCC prevents building anything better,
  3827. # like `-m68040'.
  3828. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3829. ;;
  3830. esac
  3831. ;;
  3832. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3833. # PIC is the default for these OSes.
  3834. ;;
  3835. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3836. # This hack is so that the source file can tell whether it is being
  3837. # built for inclusion in a dll (and should export symbols for example).
  3838. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3839. # (--disable-auto-import) libraries
  3840. m4_if([$1], [GCJ], [],
  3841. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3842. ;;
  3843. darwin* | rhapsody*)
  3844. # PIC is the default on this platform
  3845. # Common symbols not allowed in MH_DYLIB files
  3846. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3847. ;;
  3848. haiku*)
  3849. # PIC is the default for Haiku.
  3850. # The "-static" flag exists, but is broken.
  3851. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3852. ;;
  3853. hpux*)
  3854. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3855. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3856. # sets the default TLS model and affects inlining.
  3857. case $host_cpu in
  3858. hppa*64*)
  3859. # +Z the default
  3860. ;;
  3861. *)
  3862. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3863. ;;
  3864. esac
  3865. ;;
  3866. interix[[3-9]]*)
  3867. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3868. # Instead, we relocate shared libraries at runtime.
  3869. ;;
  3870. msdosdjgpp*)
  3871. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3872. # on systems that don't support them.
  3873. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3874. enable_shared=no
  3875. ;;
  3876. *nto* | *qnx*)
  3877. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3878. # it will coredump.
  3879. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3880. ;;
  3881. sysv4*MP*)
  3882. if test -d /usr/nec; then
  3883. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3884. fi
  3885. ;;
  3886. *)
  3887. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3888. ;;
  3889. esac
  3890. case $cc_basename in
  3891. nvcc*) # Cuda Compiler Driver 2.2
  3892. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  3893. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  3894. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  3895. fi
  3896. ;;
  3897. esac
  3898. else
  3899. # PORTME Check for flag to pass linker flags through the system compiler.
  3900. case $host_os in
  3901. aix*)
  3902. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3903. if test "$host_cpu" = ia64; then
  3904. # AIX 5 now supports IA64 processor
  3905. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3906. else
  3907. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3908. fi
  3909. ;;
  3910. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3911. # This hack is so that the source file can tell whether it is being
  3912. # built for inclusion in a dll (and should export symbols for example).
  3913. m4_if([$1], [GCJ], [],
  3914. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3915. ;;
  3916. hpux9* | hpux10* | hpux11*)
  3917. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3918. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3919. # not for PA HP-UX.
  3920. case $host_cpu in
  3921. hppa*64*|ia64*)
  3922. # +Z the default
  3923. ;;
  3924. *)
  3925. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3926. ;;
  3927. esac
  3928. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3929. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3930. ;;
  3931. irix5* | irix6* | nonstopux*)
  3932. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3933. # PIC (with -KPIC) is the default.
  3934. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3935. ;;
  3936. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3937. case $cc_basename in
  3938. # old Intel for x86_64 which still supported -KPIC.
  3939. ecc*)
  3940. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3941. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3942. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3943. ;;
  3944. # icc used to be incompatible with GCC.
  3945. # ICC 10 doesn't accept -KPIC any more.
  3946. icc* | ifort*)
  3947. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3948. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3949. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3950. ;;
  3951. # Lahey Fortran 8.1.
  3952. lf95*)
  3953. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3954. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  3955. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  3956. ;;
  3957. nagfor*)
  3958. # NAG Fortran compiler
  3959. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  3960. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3961. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3962. ;;
  3963. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  3964. # Portland Group compilers (*not* the Pentium gcc compiler,
  3965. # which looks to be a dead project)
  3966. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3967. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3968. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3969. ;;
  3970. ccc*)
  3971. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3972. # All Alpha code is PIC.
  3973. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3974. ;;
  3975. xl* | bgxl* | bgf* | mpixl*)
  3976. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  3977. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3978. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3979. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3980. ;;
  3981. *)
  3982. case `$CC -V 2>&1 | sed 5q` in
  3983. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  3984. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  3985. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3986. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3987. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  3988. ;;
  3989. *Sun\ F* | *Sun*Fortran*)
  3990. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3991. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3992. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3993. ;;
  3994. *Sun\ C*)
  3995. # Sun C 5.9
  3996. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3997. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3998. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3999. ;;
  4000. *Intel*\ [[CF]]*Compiler*)
  4001. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4002. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4003. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4004. ;;
  4005. *Portland\ Group*)
  4006. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4007. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4008. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4009. ;;
  4010. esac
  4011. ;;
  4012. esac
  4013. ;;
  4014. newsos6)
  4015. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4016. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4017. ;;
  4018. *nto* | *qnx*)
  4019. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4020. # it will coredump.
  4021. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4022. ;;
  4023. osf3* | osf4* | osf5*)
  4024. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4025. # All OSF/1 code is PIC.
  4026. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4027. ;;
  4028. rdos*)
  4029. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4030. ;;
  4031. solaris*)
  4032. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4033. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4034. case $cc_basename in
  4035. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4036. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4037. *)
  4038. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4039. esac
  4040. ;;
  4041. sunos4*)
  4042. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4043. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4044. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4045. ;;
  4046. sysv4 | sysv4.2uw2* | sysv4.3*)
  4047. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4048. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4049. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4050. ;;
  4051. sysv4*MP*)
  4052. if test -d /usr/nec ;then
  4053. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4054. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4055. fi
  4056. ;;
  4057. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4058. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4059. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4060. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4061. ;;
  4062. unicos*)
  4063. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4064. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4065. ;;
  4066. uts4*)
  4067. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4068. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4069. ;;
  4070. *)
  4071. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4072. ;;
  4073. esac
  4074. fi
  4075. ])
  4076. case $host_os in
  4077. # For platforms which do not support PIC, -DPIC is meaningless:
  4078. *djgpp*)
  4079. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4080. ;;
  4081. *)
  4082. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4083. ;;
  4084. esac
  4085. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4086. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4087. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4088. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4089. #
  4090. # Check to make sure the PIC flag actually works.
  4091. #
  4092. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4093. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4094. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4095. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4096. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4097. "" | " "*) ;;
  4098. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4099. esac],
  4100. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4101. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4102. fi
  4103. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4104. [Additional compiler flags for building library objects])
  4105. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4106. [How to pass a linker flag through the compiler])
  4107. #
  4108. # Check to make sure the static flag actually works.
  4109. #
  4110. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4111. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4112. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4113. $lt_tmp_static_flag,
  4114. [],
  4115. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4116. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4117. [Compiler flag to prevent dynamic linking])
  4118. ])# _LT_COMPILER_PIC
  4119. # _LT_LINKER_SHLIBS([TAGNAME])
  4120. # ----------------------------
  4121. # See if the linker supports building shared libraries.
  4122. m4_defun([_LT_LINKER_SHLIBS],
  4123. [AC_REQUIRE([LT_PATH_LD])dnl
  4124. AC_REQUIRE([LT_PATH_NM])dnl
  4125. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4126. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4127. m4_require([_LT_DECL_EGREP])dnl
  4128. m4_require([_LT_DECL_SED])dnl
  4129. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4130. m4_require([_LT_TAG_COMPILER])dnl
  4131. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4132. m4_if([$1], [CXX], [
  4133. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4134. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4135. case $host_os in
  4136. aix[[4-9]]*)
  4137. # If we're using GNU nm, then we don't want the "-C" option.
  4138. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4139. # Also, AIX nm treats weak defined symbols like other global defined
  4140. # symbols, whereas GNU nm marks them as "W".
  4141. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4142. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4143. else
  4144. _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'
  4145. fi
  4146. ;;
  4147. pw32*)
  4148. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4149. ;;
  4150. cygwin* | mingw* | cegcc*)
  4151. case $cc_basename in
  4152. cl*)
  4153. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4154. ;;
  4155. *)
  4156. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4157. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4158. ;;
  4159. esac
  4160. ;;
  4161. *)
  4162. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4163. ;;
  4164. esac
  4165. ], [
  4166. runpath_var=
  4167. _LT_TAGVAR(allow_undefined_flag, $1)=
  4168. _LT_TAGVAR(always_export_symbols, $1)=no
  4169. _LT_TAGVAR(archive_cmds, $1)=
  4170. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4171. _LT_TAGVAR(compiler_needs_object, $1)=no
  4172. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4173. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4174. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4175. _LT_TAGVAR(hardcode_automatic, $1)=no
  4176. _LT_TAGVAR(hardcode_direct, $1)=no
  4177. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4178. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4179. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4180. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4181. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4182. _LT_TAGVAR(inherit_rpath, $1)=no
  4183. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4184. _LT_TAGVAR(module_cmds, $1)=
  4185. _LT_TAGVAR(module_expsym_cmds, $1)=
  4186. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4187. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4188. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4189. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4190. # include_expsyms should be a list of space-separated symbols to be *always*
  4191. # included in the symbol list
  4192. _LT_TAGVAR(include_expsyms, $1)=
  4193. # exclude_expsyms can be an extended regexp of symbols to exclude
  4194. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4195. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4196. # as well as any symbol that contains `d'.
  4197. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4198. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4199. # platforms (ab)use it in PIC code, but their linkers get confused if
  4200. # the symbol is explicitly referenced. Since portable code cannot
  4201. # rely on this symbol name, it's probably fine to never include it in
  4202. # preloaded symbol tables.
  4203. # Exclude shared library initialization/finalization symbols.
  4204. dnl Note also adjust exclude_expsyms for C++ above.
  4205. extract_expsyms_cmds=
  4206. case $host_os in
  4207. cygwin* | mingw* | pw32* | cegcc*)
  4208. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4209. # When not using gcc, we currently assume that we are using
  4210. # Microsoft Visual C++.
  4211. if test "$GCC" != yes; then
  4212. with_gnu_ld=no
  4213. fi
  4214. ;;
  4215. interix*)
  4216. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4217. with_gnu_ld=yes
  4218. ;;
  4219. openbsd*)
  4220. with_gnu_ld=no
  4221. ;;
  4222. esac
  4223. _LT_TAGVAR(ld_shlibs, $1)=yes
  4224. # On some targets, GNU ld is compatible enough with the native linker
  4225. # that we're better off using the native interface for both.
  4226. lt_use_gnu_ld_interface=no
  4227. if test "$with_gnu_ld" = yes; then
  4228. case $host_os in
  4229. aix*)
  4230. # The AIX port of GNU ld has always aspired to compatibility
  4231. # with the native linker. However, as the warning in the GNU ld
  4232. # block says, versions before 2.19.5* couldn't really create working
  4233. # shared libraries, regardless of the interface used.
  4234. case `$LD -v 2>&1` in
  4235. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4236. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4237. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4238. *)
  4239. lt_use_gnu_ld_interface=yes
  4240. ;;
  4241. esac
  4242. ;;
  4243. *)
  4244. lt_use_gnu_ld_interface=yes
  4245. ;;
  4246. esac
  4247. fi
  4248. if test "$lt_use_gnu_ld_interface" = yes; then
  4249. # If archive_cmds runs LD, not CC, wlarc should be empty
  4250. wlarc='${wl}'
  4251. # Set some defaults for GNU ld with shared library support. These
  4252. # are reset later if shared libraries are not supported. Putting them
  4253. # here allows them to be overridden if necessary.
  4254. runpath_var=LD_RUN_PATH
  4255. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4256. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4257. # ancient GNU ld didn't support --whole-archive et. al.
  4258. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4259. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4260. else
  4261. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4262. fi
  4263. supports_anon_versioning=no
  4264. case `$LD -v 2>&1` in
  4265. *GNU\ gold*) supports_anon_versioning=yes ;;
  4266. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4267. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4268. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4269. *\ 2.11.*) ;; # other 2.11 versions
  4270. *) supports_anon_versioning=yes ;;
  4271. esac
  4272. # See if GNU ld supports shared libraries.
  4273. case $host_os in
  4274. aix[[3-9]]*)
  4275. # On AIX/PPC, the GNU linker is very broken
  4276. if test "$host_cpu" != ia64; then
  4277. _LT_TAGVAR(ld_shlibs, $1)=no
  4278. cat <<_LT_EOF 1>&2
  4279. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4280. *** to be unable to reliably create shared libraries on AIX.
  4281. *** Therefore, libtool is disabling shared libraries support. If you
  4282. *** really care for shared libraries, you may want to install binutils
  4283. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4284. *** You will then need to restart the configuration process.
  4285. _LT_EOF
  4286. fi
  4287. ;;
  4288. amigaos*)
  4289. case $host_cpu in
  4290. powerpc)
  4291. # see comment about AmigaOS4 .so support
  4292. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4293. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4294. ;;
  4295. m68k)
  4296. _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)'
  4297. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4298. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4299. ;;
  4300. esac
  4301. ;;
  4302. beos*)
  4303. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4304. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4305. # Joseph Beckenbach <[email protected]> says some releases of gcc
  4306. # support --undefined. This deserves some investigation. FIXME
  4307. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4308. else
  4309. _LT_TAGVAR(ld_shlibs, $1)=no
  4310. fi
  4311. ;;
  4312. cygwin* | mingw* | pw32* | cegcc*)
  4313. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4314. # as there is no search path for DLLs.
  4315. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4316. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4317. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4318. _LT_TAGVAR(always_export_symbols, $1)=no
  4319. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4320. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4321. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4322. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4323. _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'
  4324. # If the export-symbols file already is a .def file (1st line
  4325. # is EXPORTS), use it as is; otherwise, prepend...
  4326. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4327. cp $export_symbols $output_objdir/$soname.def;
  4328. else
  4329. echo EXPORTS > $output_objdir/$soname.def;
  4330. cat $export_symbols >> $output_objdir/$soname.def;
  4331. fi~
  4332. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4333. else
  4334. _LT_TAGVAR(ld_shlibs, $1)=no
  4335. fi
  4336. ;;
  4337. haiku*)
  4338. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4339. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4340. ;;
  4341. interix[[3-9]]*)
  4342. _LT_TAGVAR(hardcode_direct, $1)=no
  4343. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4344. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4345. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4346. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4347. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4348. # default) and relocated if they conflict, which is a slow very memory
  4349. # consuming and fragmenting process. To avoid this, we pick a random,
  4350. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4351. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4352. _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'
  4353. _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'
  4354. ;;
  4355. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4356. tmp_diet=no
  4357. if test "$host_os" = linux-dietlibc; then
  4358. case $cc_basename in
  4359. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4360. esac
  4361. fi
  4362. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4363. && test "$tmp_diet" = no
  4364. then
  4365. tmp_addflag=' $pic_flag'
  4366. tmp_sharedflag='-shared'
  4367. case $cc_basename,$host_cpu in
  4368. pgcc*) # Portland Group C compiler
  4369. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4370. tmp_addflag=' $pic_flag'
  4371. ;;
  4372. pgf77* | pgf90* | pgf95* | pgfortran*)
  4373. # Portland Group f77 and f90 compilers
  4374. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4375. tmp_addflag=' $pic_flag -Mnomain' ;;
  4376. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4377. tmp_addflag=' -i_dynamic' ;;
  4378. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4379. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4380. ifc* | ifort*) # Intel Fortran compiler
  4381. tmp_addflag=' -nofor_main' ;;
  4382. lf95*) # Lahey Fortran 8.1
  4383. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4384. tmp_sharedflag='--shared' ;;
  4385. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4386. tmp_sharedflag='-qmkshrobj'
  4387. tmp_addflag= ;;
  4388. nvcc*) # Cuda Compiler Driver 2.2
  4389. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4390. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4391. ;;
  4392. esac
  4393. case `$CC -V 2>&1 | sed 5q` in
  4394. *Sun\ C*) # Sun C 5.9
  4395. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4396. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4397. tmp_sharedflag='-G' ;;
  4398. *Sun\ F*) # Sun Fortran 8.3
  4399. tmp_sharedflag='-G' ;;
  4400. esac
  4401. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4402. if test "x$supports_anon_versioning" = xyes; then
  4403. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4404. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4405. echo "local: *; };" >> $output_objdir/$libname.ver~
  4406. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4407. fi
  4408. case $cc_basename in
  4409. xlf* | bgf* | bgxlf* | mpixlf*)
  4410. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4411. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4412. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4413. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4414. if test "x$supports_anon_versioning" = xyes; then
  4415. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4416. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4417. echo "local: *; };" >> $output_objdir/$libname.ver~
  4418. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4419. fi
  4420. ;;
  4421. esac
  4422. else
  4423. _LT_TAGVAR(ld_shlibs, $1)=no
  4424. fi
  4425. ;;
  4426. netbsd*)
  4427. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4428. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4429. wlarc=
  4430. else
  4431. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4432. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4433. fi
  4434. ;;
  4435. solaris*)
  4436. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4437. _LT_TAGVAR(ld_shlibs, $1)=no
  4438. cat <<_LT_EOF 1>&2
  4439. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4440. *** create shared libraries on Solaris systems. Therefore, libtool
  4441. *** is disabling shared libraries support. We urge you to upgrade GNU
  4442. *** binutils to release 2.9.1 or newer. Another option is to modify
  4443. *** your PATH or compiler configuration so that the native linker is
  4444. *** used, and then restart.
  4445. _LT_EOF
  4446. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4447. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4448. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4449. else
  4450. _LT_TAGVAR(ld_shlibs, $1)=no
  4451. fi
  4452. ;;
  4453. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4454. case `$LD -v 2>&1` in
  4455. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4456. _LT_TAGVAR(ld_shlibs, $1)=no
  4457. cat <<_LT_EOF 1>&2
  4458. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4459. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4460. *** is disabling shared libraries support. We urge you to upgrade GNU
  4461. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4462. *** your PATH or compiler configuration so that the native linker is
  4463. *** used, and then restart.
  4464. _LT_EOF
  4465. ;;
  4466. *)
  4467. # For security reasons, it is highly recommended that you always
  4468. # use absolute paths for naming shared libraries, and exclude the
  4469. # DT_RUNPATH tag from executables and libraries. But doing so
  4470. # requires that you compile everything twice, which is a pain.
  4471. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4472. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4473. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4474. _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'
  4475. else
  4476. _LT_TAGVAR(ld_shlibs, $1)=no
  4477. fi
  4478. ;;
  4479. esac
  4480. ;;
  4481. sunos4*)
  4482. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4483. wlarc=
  4484. _LT_TAGVAR(hardcode_direct, $1)=yes
  4485. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4486. ;;
  4487. *)
  4488. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4489. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4490. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4491. else
  4492. _LT_TAGVAR(ld_shlibs, $1)=no
  4493. fi
  4494. ;;
  4495. esac
  4496. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4497. runpath_var=
  4498. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4499. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4500. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4501. fi
  4502. else
  4503. # PORTME fill in a description of your system's linker (not GNU ld)
  4504. case $host_os in
  4505. aix3*)
  4506. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4507. _LT_TAGVAR(always_export_symbols, $1)=yes
  4508. _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'
  4509. # Note: this linker hardcodes the directories in LIBPATH if there
  4510. # are no directories specified by -L.
  4511. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4512. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4513. # Neither direct hardcoding nor static linking is supported with a
  4514. # broken collect2.
  4515. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4516. fi
  4517. ;;
  4518. aix[[4-9]]*)
  4519. if test "$host_cpu" = ia64; then
  4520. # On IA64, the linker does run time linking by default, so we don't
  4521. # have to do anything special.
  4522. aix_use_runtimelinking=no
  4523. exp_sym_flag='-Bexport'
  4524. no_entry_flag=""
  4525. else
  4526. # If we're using GNU nm, then we don't want the "-C" option.
  4527. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4528. # Also, AIX nm treats weak defined symbols like other global
  4529. # defined symbols, whereas GNU nm marks them as "W".
  4530. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4531. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4532. else
  4533. _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'
  4534. fi
  4535. aix_use_runtimelinking=no
  4536. # Test if we are trying to use run time linking or normal
  4537. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4538. # need to do runtime linking.
  4539. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4540. for ld_flag in $LDFLAGS; do
  4541. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4542. aix_use_runtimelinking=yes
  4543. break
  4544. fi
  4545. done
  4546. ;;
  4547. esac
  4548. exp_sym_flag='-bexport'
  4549. no_entry_flag='-bnoentry'
  4550. fi
  4551. # When large executables or shared objects are built, AIX ld can
  4552. # have problems creating the table of contents. If linking a library
  4553. # or program results in "error TOC overflow" add -mminimal-toc to
  4554. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4555. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4556. _LT_TAGVAR(archive_cmds, $1)=''
  4557. _LT_TAGVAR(hardcode_direct, $1)=yes
  4558. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4559. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4560. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4561. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4562. if test "$GCC" = yes; then
  4563. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4564. # We only want to do this on AIX 4.2 and lower, the check
  4565. # below for broken collect2 doesn't work under 4.3+
  4566. collect2name=`${CC} -print-prog-name=collect2`
  4567. if test -f "$collect2name" &&
  4568. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4569. then
  4570. # We have reworked collect2
  4571. :
  4572. else
  4573. # We have old collect2
  4574. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4575. # It fails to find uninstalled libraries when the uninstalled
  4576. # path is not listed in the libpath. Setting hardcode_minus_L
  4577. # to unsupported forces relinking
  4578. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4579. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4580. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4581. fi
  4582. ;;
  4583. esac
  4584. shared_flag='-shared'
  4585. if test "$aix_use_runtimelinking" = yes; then
  4586. shared_flag="$shared_flag "'${wl}-G'
  4587. fi
  4588. else
  4589. # not using gcc
  4590. if test "$host_cpu" = ia64; then
  4591. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4592. # chokes on -Wl,-G. The following line is correct:
  4593. shared_flag='-G'
  4594. else
  4595. if test "$aix_use_runtimelinking" = yes; then
  4596. shared_flag='${wl}-G'
  4597. else
  4598. shared_flag='${wl}-bM:SRE'
  4599. fi
  4600. fi
  4601. fi
  4602. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4603. # It seems that -bexpall does not export symbols beginning with
  4604. # underscore (_), so it is better to generate a list of symbols to export.
  4605. _LT_TAGVAR(always_export_symbols, $1)=yes
  4606. if test "$aix_use_runtimelinking" = yes; then
  4607. # Warning - without using the other runtime loading flags (-brtl),
  4608. # -berok will link without error, but may produce a broken library.
  4609. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4610. # Determine the default libpath from the value encoded in an
  4611. # empty executable.
  4612. _LT_SYS_MODULE_PATH_AIX([$1])
  4613. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4614. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4615. else
  4616. if test "$host_cpu" = ia64; then
  4617. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4618. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4619. _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"
  4620. else
  4621. # Determine the default libpath from the value encoded in an
  4622. # empty executable.
  4623. _LT_SYS_MODULE_PATH_AIX([$1])
  4624. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4625. # Warning - without using the other run time loading flags,
  4626. # -berok will link without error, but may produce a broken library.
  4627. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4628. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4629. if test "$with_gnu_ld" = yes; then
  4630. # We only use this code for GNU lds that support --whole-archive.
  4631. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4632. else
  4633. # Exported symbols can be pulled into shared objects from archives
  4634. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4635. fi
  4636. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4637. # This is similar to how AIX traditionally builds its shared libraries.
  4638. _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'
  4639. fi
  4640. fi
  4641. ;;
  4642. amigaos*)
  4643. case $host_cpu in
  4644. powerpc)
  4645. # see comment about AmigaOS4 .so support
  4646. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4647. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4648. ;;
  4649. m68k)
  4650. _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)'
  4651. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4652. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4653. ;;
  4654. esac
  4655. ;;
  4656. bsdi[[45]]*)
  4657. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4658. ;;
  4659. cygwin* | mingw* | pw32* | cegcc*)
  4660. # When not using gcc, we currently assume that we are using
  4661. # Microsoft Visual C++.
  4662. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4663. # no search path for DLLs.
  4664. case $cc_basename in
  4665. cl*)
  4666. # Native MSVC
  4667. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4668. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4669. _LT_TAGVAR(always_export_symbols, $1)=yes
  4670. _LT_TAGVAR(file_list_spec, $1)='@'
  4671. # Tell ltmain to make .lib files, not .a files.
  4672. libext=lib
  4673. # Tell ltmain to make .dll files, not .so files.
  4674. shrext_cmds=".dll"
  4675. # FIXME: Setting linknames here is a bad hack.
  4676. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  4677. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4678. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  4679. else
  4680. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  4681. fi~
  4682. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4683. linknames='
  4684. # The linker will not automatically build a static lib if we build a DLL.
  4685. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4686. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4687. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4688. _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'
  4689. # Don't use ranlib
  4690. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  4691. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  4692. lt_tool_outputfile="@TOOL_OUTPUT@"~
  4693. case $lt_outputfile in
  4694. *.exe|*.EXE) ;;
  4695. *)
  4696. lt_outputfile="$lt_outputfile.exe"
  4697. lt_tool_outputfile="$lt_tool_outputfile.exe"
  4698. ;;
  4699. esac~
  4700. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  4701. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4702. $RM "$lt_outputfile.manifest";
  4703. fi'
  4704. ;;
  4705. *)
  4706. # Assume MSVC wrapper
  4707. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4708. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4709. # Tell ltmain to make .lib files, not .a files.
  4710. libext=lib
  4711. # Tell ltmain to make .dll files, not .so files.
  4712. shrext_cmds=".dll"
  4713. # FIXME: Setting linknames here is a bad hack.
  4714. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4715. # The linker will automatically build a .lib file if we build a DLL.
  4716. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4717. # FIXME: Should let the user specify the lib program.
  4718. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4719. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4720. ;;
  4721. esac
  4722. ;;
  4723. darwin* | rhapsody*)
  4724. _LT_DARWIN_LINKER_FEATURES($1)
  4725. ;;
  4726. dgux*)
  4727. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4728. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4729. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4730. ;;
  4731. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4732. # support. Future versions do this automatically, but an explicit c++rt0.o
  4733. # does not break anything, and helps significantly (at the cost of a little
  4734. # extra space).
  4735. freebsd2.2*)
  4736. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4737. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4738. _LT_TAGVAR(hardcode_direct, $1)=yes
  4739. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4740. ;;
  4741. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4742. freebsd2.*)
  4743. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4744. _LT_TAGVAR(hardcode_direct, $1)=yes
  4745. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4746. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4747. ;;
  4748. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4749. freebsd* | dragonfly*)
  4750. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4751. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4752. _LT_TAGVAR(hardcode_direct, $1)=yes
  4753. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4754. ;;
  4755. hpux9*)
  4756. if test "$GCC" = yes; then
  4757. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4758. else
  4759. _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'
  4760. fi
  4761. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4762. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4763. _LT_TAGVAR(hardcode_direct, $1)=yes
  4764. # hardcode_minus_L: Not really in the search PATH,
  4765. # but as the default location of the library.
  4766. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4767. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4768. ;;
  4769. hpux10*)
  4770. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4771. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4772. else
  4773. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4774. fi
  4775. if test "$with_gnu_ld" = no; then
  4776. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4777. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4778. _LT_TAGVAR(hardcode_direct, $1)=yes
  4779. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4780. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4781. # hardcode_minus_L: Not really in the search PATH,
  4782. # but as the default location of the library.
  4783. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4784. fi
  4785. ;;
  4786. hpux11*)
  4787. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4788. case $host_cpu in
  4789. hppa*64*)
  4790. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4791. ;;
  4792. ia64*)
  4793. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4794. ;;
  4795. *)
  4796. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4797. ;;
  4798. esac
  4799. else
  4800. case $host_cpu in
  4801. hppa*64*)
  4802. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4803. ;;
  4804. ia64*)
  4805. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4806. ;;
  4807. *)
  4808. m4_if($1, [], [
  4809. # Older versions of the 11.00 compiler do not understand -b yet
  4810. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4811. _LT_LINKER_OPTION([if $CC understands -b],
  4812. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4813. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4814. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4815. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4816. ;;
  4817. esac
  4818. fi
  4819. if test "$with_gnu_ld" = no; then
  4820. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4821. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4822. case $host_cpu in
  4823. hppa*64*|ia64*)
  4824. _LT_TAGVAR(hardcode_direct, $1)=no
  4825. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4826. ;;
  4827. *)
  4828. _LT_TAGVAR(hardcode_direct, $1)=yes
  4829. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4830. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4831. # hardcode_minus_L: Not really in the search PATH,
  4832. # but as the default location of the library.
  4833. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4834. ;;
  4835. esac
  4836. fi
  4837. ;;
  4838. irix5* | irix6* | nonstopux*)
  4839. if test "$GCC" = yes; then
  4840. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4841. # Try to use the -exported_symbol ld option, if it does not
  4842. # work, assume that -exports_file does not work either and
  4843. # implicitly export all symbols.
  4844. # This should be the same for all languages, so no per-tag cache variable.
  4845. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  4846. [lt_cv_irix_exported_symbol],
  4847. [save_LDFLAGS="$LDFLAGS"
  4848. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4849. AC_LINK_IFELSE(
  4850. [AC_LANG_SOURCE(
  4851. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  4852. [C++], [[int foo (void) { return 0; }]],
  4853. [Fortran 77], [[
  4854. subroutine foo
  4855. end]],
  4856. [Fortran], [[
  4857. subroutine foo
  4858. end]])])],
  4859. [lt_cv_irix_exported_symbol=yes],
  4860. [lt_cv_irix_exported_symbol=no])
  4861. LDFLAGS="$save_LDFLAGS"])
  4862. if test "$lt_cv_irix_exported_symbol" = yes; then
  4863. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  4864. fi
  4865. else
  4866. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4867. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  4868. fi
  4869. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4870. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4871. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4872. _LT_TAGVAR(inherit_rpath, $1)=yes
  4873. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4874. ;;
  4875. netbsd*)
  4876. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4877. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4878. else
  4879. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4880. fi
  4881. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4882. _LT_TAGVAR(hardcode_direct, $1)=yes
  4883. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4884. ;;
  4885. newsos6)
  4886. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4887. _LT_TAGVAR(hardcode_direct, $1)=yes
  4888. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4889. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4890. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4891. ;;
  4892. *nto* | *qnx*)
  4893. ;;
  4894. openbsd*)
  4895. if test -f /usr/libexec/ld.so; then
  4896. _LT_TAGVAR(hardcode_direct, $1)=yes
  4897. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4898. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4899. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4900. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4901. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4902. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4903. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4904. else
  4905. case $host_os in
  4906. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4907. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4908. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4909. ;;
  4910. *)
  4911. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4912. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4913. ;;
  4914. esac
  4915. fi
  4916. else
  4917. _LT_TAGVAR(ld_shlibs, $1)=no
  4918. fi
  4919. ;;
  4920. os2*)
  4921. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4922. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4923. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4924. _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'
  4925. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4926. ;;
  4927. osf3*)
  4928. if test "$GCC" = yes; then
  4929. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4930. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4931. else
  4932. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4933. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4934. fi
  4935. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4936. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4937. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4938. ;;
  4939. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4940. if test "$GCC" = yes; then
  4941. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4942. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4943. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4944. else
  4945. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4946. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4947. _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~
  4948. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  4949. # Both c and cxx compiler support -rpath directly
  4950. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4951. fi
  4952. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4953. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4954. ;;
  4955. solaris*)
  4956. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4957. if test "$GCC" = yes; then
  4958. wlarc='${wl}'
  4959. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4960. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4961. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4962. else
  4963. case `$CC -V 2>&1` in
  4964. *"Compilers 5.0"*)
  4965. wlarc=''
  4966. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4967. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4968. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4969. ;;
  4970. *)
  4971. wlarc='${wl}'
  4972. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4973. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4974. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4975. ;;
  4976. esac
  4977. fi
  4978. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4979. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4980. case $host_os in
  4981. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4982. *)
  4983. # The compiler driver will combine and reorder linker options,
  4984. # but understands `-z linker_flag'. GCC discards it without `$wl',
  4985. # but is careful enough not to reorder.
  4986. # Supported since Solaris 2.6 (maybe 2.5.1?)
  4987. if test "$GCC" = yes; then
  4988. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4989. else
  4990. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4991. fi
  4992. ;;
  4993. esac
  4994. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4995. ;;
  4996. sunos4*)
  4997. if test "x$host_vendor" = xsequent; then
  4998. # Use $CC to link under sequent, because it throws in some extra .o
  4999. # files that make .init and .fini sections work.
  5000. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5001. else
  5002. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5003. fi
  5004. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5005. _LT_TAGVAR(hardcode_direct, $1)=yes
  5006. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5007. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5008. ;;
  5009. sysv4)
  5010. case $host_vendor in
  5011. sni)
  5012. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5013. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5014. ;;
  5015. siemens)
  5016. ## LD is ld it makes a PLAMLIB
  5017. ## CC just makes a GrossModule.
  5018. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5019. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5020. _LT_TAGVAR(hardcode_direct, $1)=no
  5021. ;;
  5022. motorola)
  5023. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5024. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5025. ;;
  5026. esac
  5027. runpath_var='LD_RUN_PATH'
  5028. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5029. ;;
  5030. sysv4.3*)
  5031. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5032. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5033. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5034. ;;
  5035. sysv4*MP*)
  5036. if test -d /usr/nec; then
  5037. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5038. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5039. runpath_var=LD_RUN_PATH
  5040. hardcode_runpath_var=yes
  5041. _LT_TAGVAR(ld_shlibs, $1)=yes
  5042. fi
  5043. ;;
  5044. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5045. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5046. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5047. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5048. runpath_var='LD_RUN_PATH'
  5049. if test "$GCC" = yes; then
  5050. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5051. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5052. else
  5053. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5054. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5055. fi
  5056. ;;
  5057. sysv5* | sco3.2v5* | sco5v6*)
  5058. # Note: We can NOT use -z defs as we might desire, because we do not
  5059. # link with -lc, and that would cause any symbols used from libc to
  5060. # always be unresolved, which means just about no library would
  5061. # ever link correctly. If we're not using GNU ld we use -z text
  5062. # though, which does catch some bad symbols but isn't as heavy-handed
  5063. # as -z defs.
  5064. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5065. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5066. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5067. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5068. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5069. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5070. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5071. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5072. runpath_var='LD_RUN_PATH'
  5073. if test "$GCC" = yes; then
  5074. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5075. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5076. else
  5077. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5078. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5079. fi
  5080. ;;
  5081. uts4*)
  5082. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5083. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5084. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5085. ;;
  5086. *)
  5087. _LT_TAGVAR(ld_shlibs, $1)=no
  5088. ;;
  5089. esac
  5090. if test x$host_vendor = xsni; then
  5091. case $host in
  5092. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5093. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5094. ;;
  5095. esac
  5096. fi
  5097. fi
  5098. ])
  5099. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5100. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5101. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5102. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5103. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5104. _LT_DECL([], [extract_expsyms_cmds], [2],
  5105. [The commands to extract the exported symbol list from a shared archive])
  5106. #
  5107. # Do we need to explicitly link libc?
  5108. #
  5109. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5110. x|xyes)
  5111. # Assume -lc should be added
  5112. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5113. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5114. case $_LT_TAGVAR(archive_cmds, $1) in
  5115. *'~'*)
  5116. # FIXME: we may have to deal with multi-command sequences.
  5117. ;;
  5118. '$CC '*)
  5119. # Test whether the compiler implicitly links with -lc since on some
  5120. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5121. # to ld, don't add -lc before -lgcc.
  5122. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5123. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5124. [$RM conftest*
  5125. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5126. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5127. soname=conftest
  5128. lib=conftest
  5129. libobjs=conftest.$ac_objext
  5130. deplibs=
  5131. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5132. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5133. compiler_flags=-v
  5134. linker_flags=-v
  5135. verstring=
  5136. output_objdir=.
  5137. libname=conftest
  5138. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5139. _LT_TAGVAR(allow_undefined_flag, $1)=
  5140. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5141. then
  5142. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5143. else
  5144. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5145. fi
  5146. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5147. else
  5148. cat conftest.err 1>&5
  5149. fi
  5150. $RM conftest*
  5151. ])
  5152. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5153. ;;
  5154. esac
  5155. fi
  5156. ;;
  5157. esac
  5158. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5159. [Whether or not to add -lc for building shared libraries])
  5160. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5161. [enable_shared_with_static_runtimes], [0],
  5162. [Whether or not to disallow shared libs when runtime libs are static])
  5163. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5164. [Compiler flag to allow reflexive dlopens])
  5165. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5166. [Compiler flag to generate shared objects directly from archives])
  5167. _LT_TAGDECL([], [compiler_needs_object], [1],
  5168. [Whether the compiler copes with passing no objects directly])
  5169. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5170. [Create an old-style archive from a shared archive])
  5171. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5172. [Create a temporary old-style archive to link instead of a shared archive])
  5173. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5174. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5175. _LT_TAGDECL([], [module_cmds], [2],
  5176. [Commands used to build a loadable module if different from building
  5177. a shared archive.])
  5178. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5179. _LT_TAGDECL([], [with_gnu_ld], [1],
  5180. [Whether we are building with GNU ld or not])
  5181. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5182. [Flag that allows shared libraries with undefined symbols to be built])
  5183. _LT_TAGDECL([], [no_undefined_flag], [1],
  5184. [Flag that enforces no undefined symbols])
  5185. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5186. [Flag to hardcode $libdir into a binary during linking.
  5187. This must work even if $libdir does not exist])
  5188. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5189. [Whether we need a single "-rpath" flag with a separated argument])
  5190. _LT_TAGDECL([], [hardcode_direct], [0],
  5191. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5192. DIR into the resulting binary])
  5193. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5194. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5195. DIR into the resulting binary and the resulting library dependency is
  5196. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5197. library is relocated])
  5198. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5199. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5200. into the resulting binary])
  5201. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5202. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5203. into the resulting binary])
  5204. _LT_TAGDECL([], [hardcode_automatic], [0],
  5205. [Set to "yes" if building a shared library automatically hardcodes DIR
  5206. into the library and all subsequent libraries and executables linked
  5207. against it])
  5208. _LT_TAGDECL([], [inherit_rpath], [0],
  5209. [Set to yes if linker adds runtime paths of dependent libraries
  5210. to runtime path list])
  5211. _LT_TAGDECL([], [link_all_deplibs], [0],
  5212. [Whether libtool must link a program against all its dependency libraries])
  5213. _LT_TAGDECL([], [always_export_symbols], [0],
  5214. [Set to "yes" if exported symbols are required])
  5215. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5216. [The commands to list exported symbols])
  5217. _LT_TAGDECL([], [exclude_expsyms], [1],
  5218. [Symbols that should not be listed in the preloaded symbols])
  5219. _LT_TAGDECL([], [include_expsyms], [1],
  5220. [Symbols that must always be exported])
  5221. _LT_TAGDECL([], [prelink_cmds], [2],
  5222. [Commands necessary for linking programs (against libraries) with templates])
  5223. _LT_TAGDECL([], [postlink_cmds], [2],
  5224. [Commands necessary for finishing linking programs])
  5225. _LT_TAGDECL([], [file_list_spec], [1],
  5226. [Specify filename containing input files])
  5227. dnl FIXME: Not yet implemented
  5228. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5229. dnl [Compiler flag to generate thread safe objects])
  5230. ])# _LT_LINKER_SHLIBS
  5231. # _LT_LANG_C_CONFIG([TAG])
  5232. # ------------------------
  5233. # Ensure that the configuration variables for a C compiler are suitably
  5234. # defined. These variables are subsequently used by _LT_CONFIG to write
  5235. # the compiler configuration to `libtool'.
  5236. m4_defun([_LT_LANG_C_CONFIG],
  5237. [m4_require([_LT_DECL_EGREP])dnl
  5238. lt_save_CC="$CC"
  5239. AC_LANG_PUSH(C)
  5240. # Source file extension for C test sources.
  5241. ac_ext=c
  5242. # Object file extension for compiled C test sources.
  5243. objext=o
  5244. _LT_TAGVAR(objext, $1)=$objext
  5245. # Code to be used in simple compile tests
  5246. lt_simple_compile_test_code="int some_variable = 0;"
  5247. # Code to be used in simple link tests
  5248. lt_simple_link_test_code='int main(){return(0);}'
  5249. _LT_TAG_COMPILER
  5250. # Save the default compiler, since it gets overwritten when the other
  5251. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5252. compiler_DEFAULT=$CC
  5253. # save warnings/boilerplate of simple test code
  5254. _LT_COMPILER_BOILERPLATE
  5255. _LT_LINKER_BOILERPLATE
  5256. if test -n "$compiler"; then
  5257. _LT_COMPILER_NO_RTTI($1)
  5258. _LT_COMPILER_PIC($1)
  5259. _LT_COMPILER_C_O($1)
  5260. _LT_COMPILER_FILE_LOCKS($1)
  5261. _LT_LINKER_SHLIBS($1)
  5262. _LT_SYS_DYNAMIC_LINKER($1)
  5263. _LT_LINKER_HARDCODE_LIBPATH($1)
  5264. LT_SYS_DLOPEN_SELF
  5265. _LT_CMD_STRIPLIB
  5266. # Report which library types will actually be built
  5267. AC_MSG_CHECKING([if libtool supports shared libraries])
  5268. AC_MSG_RESULT([$can_build_shared])
  5269. AC_MSG_CHECKING([whether to build shared libraries])
  5270. test "$can_build_shared" = "no" && enable_shared=no
  5271. # On AIX, shared libraries and static libraries use the same namespace, and
  5272. # are all built from PIC.
  5273. case $host_os in
  5274. aix3*)
  5275. test "$enable_shared" = yes && enable_static=no
  5276. if test -n "$RANLIB"; then
  5277. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5278. postinstall_cmds='$RANLIB $lib'
  5279. fi
  5280. ;;
  5281. aix[[4-9]]*)
  5282. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5283. test "$enable_shared" = yes && enable_static=no
  5284. fi
  5285. ;;
  5286. esac
  5287. AC_MSG_RESULT([$enable_shared])
  5288. AC_MSG_CHECKING([whether to build static libraries])
  5289. # Make sure either enable_shared or enable_static is yes.
  5290. test "$enable_shared" = yes || enable_static=yes
  5291. AC_MSG_RESULT([$enable_static])
  5292. _LT_CONFIG($1)
  5293. fi
  5294. AC_LANG_POP
  5295. CC="$lt_save_CC"
  5296. ])# _LT_LANG_C_CONFIG
  5297. # _LT_LANG_CXX_CONFIG([TAG])
  5298. # --------------------------
  5299. # Ensure that the configuration variables for a C++ compiler are suitably
  5300. # defined. These variables are subsequently used by _LT_CONFIG to write
  5301. # the compiler configuration to `libtool'.
  5302. m4_defun([_LT_LANG_CXX_CONFIG],
  5303. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5304. m4_require([_LT_DECL_EGREP])dnl
  5305. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5306. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5307. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5308. (test "X$CXX" != "Xg++"))) ; then
  5309. AC_PROG_CXXCPP
  5310. else
  5311. _lt_caught_CXX_error=yes
  5312. fi
  5313. AC_LANG_PUSH(C++)
  5314. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5315. _LT_TAGVAR(allow_undefined_flag, $1)=
  5316. _LT_TAGVAR(always_export_symbols, $1)=no
  5317. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5318. _LT_TAGVAR(compiler_needs_object, $1)=no
  5319. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5320. _LT_TAGVAR(hardcode_direct, $1)=no
  5321. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5322. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5323. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5324. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5325. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5326. _LT_TAGVAR(hardcode_automatic, $1)=no
  5327. _LT_TAGVAR(inherit_rpath, $1)=no
  5328. _LT_TAGVAR(module_cmds, $1)=
  5329. _LT_TAGVAR(module_expsym_cmds, $1)=
  5330. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5331. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5332. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5333. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5334. _LT_TAGVAR(no_undefined_flag, $1)=
  5335. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5336. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5337. # Source file extension for C++ test sources.
  5338. ac_ext=cpp
  5339. # Object file extension for compiled C++ test sources.
  5340. objext=o
  5341. _LT_TAGVAR(objext, $1)=$objext
  5342. # No sense in running all these tests if we already determined that
  5343. # the CXX compiler isn't working. Some variables (like enable_shared)
  5344. # are currently assumed to apply to all compilers on this platform,
  5345. # and will be corrupted by setting them based on a non-working compiler.
  5346. if test "$_lt_caught_CXX_error" != yes; then
  5347. # Code to be used in simple compile tests
  5348. lt_simple_compile_test_code="int some_variable = 0;"
  5349. # Code to be used in simple link tests
  5350. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5351. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5352. _LT_TAG_COMPILER
  5353. # save warnings/boilerplate of simple test code
  5354. _LT_COMPILER_BOILERPLATE
  5355. _LT_LINKER_BOILERPLATE
  5356. # Allow CC to be a program name with arguments.
  5357. lt_save_CC=$CC
  5358. lt_save_CFLAGS=$CFLAGS
  5359. lt_save_LD=$LD
  5360. lt_save_GCC=$GCC
  5361. GCC=$GXX
  5362. lt_save_with_gnu_ld=$with_gnu_ld
  5363. lt_save_path_LD=$lt_cv_path_LD
  5364. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5365. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5366. else
  5367. $as_unset lt_cv_prog_gnu_ld
  5368. fi
  5369. if test -n "${lt_cv_path_LDCXX+set}"; then
  5370. lt_cv_path_LD=$lt_cv_path_LDCXX
  5371. else
  5372. $as_unset lt_cv_path_LD
  5373. fi
  5374. test -z "${LDCXX+set}" || LD=$LDCXX
  5375. CC=${CXX-"c++"}
  5376. CFLAGS=$CXXFLAGS
  5377. compiler=$CC
  5378. _LT_TAGVAR(compiler, $1)=$CC
  5379. _LT_CC_BASENAME([$compiler])
  5380. if test -n "$compiler"; then
  5381. # We don't want -fno-exception when compiling C++ code, so set the
  5382. # no_builtin_flag separately
  5383. if test "$GXX" = yes; then
  5384. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5385. else
  5386. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5387. fi
  5388. if test "$GXX" = yes; then
  5389. # Set up default GNU C++ configuration
  5390. LT_PATH_LD
  5391. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5392. # archiving commands below assume that GNU ld is being used.
  5393. if test "$with_gnu_ld" = yes; then
  5394. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5395. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5396. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5397. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5398. # If archive_cmds runs LD, not CC, wlarc should be empty
  5399. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5400. # investigate it a little bit more. (MM)
  5401. wlarc='${wl}'
  5402. # ancient GNU ld didn't support --whole-archive et. al.
  5403. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5404. $GREP 'no-whole-archive' > /dev/null; then
  5405. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5406. else
  5407. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5408. fi
  5409. else
  5410. with_gnu_ld=no
  5411. wlarc=
  5412. # A generic and very simple default shared library creation
  5413. # command for GNU C++ for the case where it uses the native
  5414. # linker, instead of GNU ld. If possible, this setting should
  5415. # overridden to take advantage of the native linker features on
  5416. # the platform it is being used on.
  5417. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5418. fi
  5419. # Commands to make compiler produce verbose output that lists
  5420. # what "hidden" libraries, object files and flags are used when
  5421. # linking a shared library.
  5422. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5423. else
  5424. GXX=no
  5425. with_gnu_ld=no
  5426. wlarc=
  5427. fi
  5428. # PORTME: fill in a description of your system's C++ link characteristics
  5429. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5430. _LT_TAGVAR(ld_shlibs, $1)=yes
  5431. case $host_os in
  5432. aix3*)
  5433. # FIXME: insert proper C++ library support
  5434. _LT_TAGVAR(ld_shlibs, $1)=no
  5435. ;;
  5436. aix[[4-9]]*)
  5437. if test "$host_cpu" = ia64; then
  5438. # On IA64, the linker does run time linking by default, so we don't
  5439. # have to do anything special.
  5440. aix_use_runtimelinking=no
  5441. exp_sym_flag='-Bexport'
  5442. no_entry_flag=""
  5443. else
  5444. aix_use_runtimelinking=no
  5445. # Test if we are trying to use run time linking or normal
  5446. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5447. # need to do runtime linking.
  5448. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5449. for ld_flag in $LDFLAGS; do
  5450. case $ld_flag in
  5451. *-brtl*)
  5452. aix_use_runtimelinking=yes
  5453. break
  5454. ;;
  5455. esac
  5456. done
  5457. ;;
  5458. esac
  5459. exp_sym_flag='-bexport'
  5460. no_entry_flag='-bnoentry'
  5461. fi
  5462. # When large executables or shared objects are built, AIX ld can
  5463. # have problems creating the table of contents. If linking a library
  5464. # or program results in "error TOC overflow" add -mminimal-toc to
  5465. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5466. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5467. _LT_TAGVAR(archive_cmds, $1)=''
  5468. _LT_TAGVAR(hardcode_direct, $1)=yes
  5469. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5470. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5471. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5472. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5473. if test "$GXX" = yes; then
  5474. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5475. # We only want to do this on AIX 4.2 and lower, the check
  5476. # below for broken collect2 doesn't work under 4.3+
  5477. collect2name=`${CC} -print-prog-name=collect2`
  5478. if test -f "$collect2name" &&
  5479. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5480. then
  5481. # We have reworked collect2
  5482. :
  5483. else
  5484. # We have old collect2
  5485. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5486. # It fails to find uninstalled libraries when the uninstalled
  5487. # path is not listed in the libpath. Setting hardcode_minus_L
  5488. # to unsupported forces relinking
  5489. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5490. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5491. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5492. fi
  5493. esac
  5494. shared_flag='-shared'
  5495. if test "$aix_use_runtimelinking" = yes; then
  5496. shared_flag="$shared_flag "'${wl}-G'
  5497. fi
  5498. else
  5499. # not using gcc
  5500. if test "$host_cpu" = ia64; then
  5501. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5502. # chokes on -Wl,-G. The following line is correct:
  5503. shared_flag='-G'
  5504. else
  5505. if test "$aix_use_runtimelinking" = yes; then
  5506. shared_flag='${wl}-G'
  5507. else
  5508. shared_flag='${wl}-bM:SRE'
  5509. fi
  5510. fi
  5511. fi
  5512. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5513. # It seems that -bexpall does not export symbols beginning with
  5514. # underscore (_), so it is better to generate a list of symbols to
  5515. # export.
  5516. _LT_TAGVAR(always_export_symbols, $1)=yes
  5517. if test "$aix_use_runtimelinking" = yes; then
  5518. # Warning - without using the other runtime loading flags (-brtl),
  5519. # -berok will link without error, but may produce a broken library.
  5520. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5521. # Determine the default libpath from the value encoded in an empty
  5522. # executable.
  5523. _LT_SYS_MODULE_PATH_AIX([$1])
  5524. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5525. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5526. else
  5527. if test "$host_cpu" = ia64; then
  5528. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5529. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5530. _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"
  5531. else
  5532. # Determine the default libpath from the value encoded in an
  5533. # empty executable.
  5534. _LT_SYS_MODULE_PATH_AIX([$1])
  5535. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5536. # Warning - without using the other run time loading flags,
  5537. # -berok will link without error, but may produce a broken library.
  5538. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5539. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5540. if test "$with_gnu_ld" = yes; then
  5541. # We only use this code for GNU lds that support --whole-archive.
  5542. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5543. else
  5544. # Exported symbols can be pulled into shared objects from archives
  5545. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5546. fi
  5547. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5548. # This is similar to how AIX traditionally builds its shared
  5549. # libraries.
  5550. _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'
  5551. fi
  5552. fi
  5553. ;;
  5554. beos*)
  5555. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5556. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5557. # Joseph Beckenbach <[email protected]> says some releases of gcc
  5558. # support --undefined. This deserves some investigation. FIXME
  5559. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5560. else
  5561. _LT_TAGVAR(ld_shlibs, $1)=no
  5562. fi
  5563. ;;
  5564. chorus*)
  5565. case $cc_basename in
  5566. *)
  5567. # FIXME: insert proper C++ library support
  5568. _LT_TAGVAR(ld_shlibs, $1)=no
  5569. ;;
  5570. esac
  5571. ;;
  5572. cygwin* | mingw* | pw32* | cegcc*)
  5573. case $GXX,$cc_basename in
  5574. ,cl* | no,cl*)
  5575. # Native MSVC
  5576. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5577. # no search path for DLLs.
  5578. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5579. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5580. _LT_TAGVAR(always_export_symbols, $1)=yes
  5581. _LT_TAGVAR(file_list_spec, $1)='@'
  5582. # Tell ltmain to make .lib files, not .a files.
  5583. libext=lib
  5584. # Tell ltmain to make .dll files, not .so files.
  5585. shrext_cmds=".dll"
  5586. # FIXME: Setting linknames here is a bad hack.
  5587. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5588. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5589. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5590. else
  5591. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5592. fi~
  5593. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5594. linknames='
  5595. # The linker will not automatically build a static lib if we build a DLL.
  5596. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5597. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5598. # Don't use ranlib
  5599. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5600. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5601. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5602. case $lt_outputfile in
  5603. *.exe|*.EXE) ;;
  5604. *)
  5605. lt_outputfile="$lt_outputfile.exe"
  5606. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5607. ;;
  5608. esac~
  5609. func_to_tool_file "$lt_outputfile"~
  5610. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5611. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5612. $RM "$lt_outputfile.manifest";
  5613. fi'
  5614. ;;
  5615. *)
  5616. # g++
  5617. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5618. # as there is no search path for DLLs.
  5619. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5620. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5621. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5622. _LT_TAGVAR(always_export_symbols, $1)=no
  5623. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5624. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5625. _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'
  5626. # If the export-symbols file already is a .def file (1st line
  5627. # is EXPORTS), use it as is; otherwise, prepend...
  5628. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5629. cp $export_symbols $output_objdir/$soname.def;
  5630. else
  5631. echo EXPORTS > $output_objdir/$soname.def;
  5632. cat $export_symbols >> $output_objdir/$soname.def;
  5633. fi~
  5634. $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'
  5635. else
  5636. _LT_TAGVAR(ld_shlibs, $1)=no
  5637. fi
  5638. ;;
  5639. esac
  5640. ;;
  5641. darwin* | rhapsody*)
  5642. _LT_DARWIN_LINKER_FEATURES($1)
  5643. ;;
  5644. dgux*)
  5645. case $cc_basename in
  5646. ec++*)
  5647. # FIXME: insert proper C++ library support
  5648. _LT_TAGVAR(ld_shlibs, $1)=no
  5649. ;;
  5650. ghcx*)
  5651. # Green Hills C++ Compiler
  5652. # FIXME: insert proper C++ library support
  5653. _LT_TAGVAR(ld_shlibs, $1)=no
  5654. ;;
  5655. *)
  5656. # FIXME: insert proper C++ library support
  5657. _LT_TAGVAR(ld_shlibs, $1)=no
  5658. ;;
  5659. esac
  5660. ;;
  5661. freebsd2.*)
  5662. # C++ shared libraries reported to be fairly broken before
  5663. # switch to ELF
  5664. _LT_TAGVAR(ld_shlibs, $1)=no
  5665. ;;
  5666. freebsd-elf*)
  5667. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5668. ;;
  5669. freebsd* | dragonfly*)
  5670. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5671. # conventions
  5672. _LT_TAGVAR(ld_shlibs, $1)=yes
  5673. ;;
  5674. gnu*)
  5675. ;;
  5676. haiku*)
  5677. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5678. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5679. ;;
  5680. hpux9*)
  5681. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5682. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5683. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5684. _LT_TAGVAR(hardcode_direct, $1)=yes
  5685. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5686. # but as the default
  5687. # location of the library.
  5688. case $cc_basename in
  5689. CC*)
  5690. # FIXME: insert proper C++ library support
  5691. _LT_TAGVAR(ld_shlibs, $1)=no
  5692. ;;
  5693. aCC*)
  5694. _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'
  5695. # Commands to make compiler produce verbose output that lists
  5696. # what "hidden" libraries, object files and flags are used when
  5697. # linking a shared library.
  5698. #
  5699. # There doesn't appear to be a way to prevent this compiler from
  5700. # explicitly linking system object files so we need to strip them
  5701. # from the output so that they don't get included in the library
  5702. # dependencies.
  5703. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  5704. ;;
  5705. *)
  5706. if test "$GXX" = yes; then
  5707. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5708. else
  5709. # FIXME: insert proper C++ library support
  5710. _LT_TAGVAR(ld_shlibs, $1)=no
  5711. fi
  5712. ;;
  5713. esac
  5714. ;;
  5715. hpux10*|hpux11*)
  5716. if test $with_gnu_ld = no; then
  5717. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5718. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5719. case $host_cpu in
  5720. hppa*64*|ia64*)
  5721. ;;
  5722. *)
  5723. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5724. ;;
  5725. esac
  5726. fi
  5727. case $host_cpu in
  5728. hppa*64*|ia64*)
  5729. _LT_TAGVAR(hardcode_direct, $1)=no
  5730. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5731. ;;
  5732. *)
  5733. _LT_TAGVAR(hardcode_direct, $1)=yes
  5734. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5735. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5736. # but as the default
  5737. # location of the library.
  5738. ;;
  5739. esac
  5740. case $cc_basename in
  5741. CC*)
  5742. # FIXME: insert proper C++ library support
  5743. _LT_TAGVAR(ld_shlibs, $1)=no
  5744. ;;
  5745. aCC*)
  5746. case $host_cpu in
  5747. hppa*64*)
  5748. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5749. ;;
  5750. ia64*)
  5751. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5752. ;;
  5753. *)
  5754. _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'
  5755. ;;
  5756. esac
  5757. # Commands to make compiler produce verbose output that lists
  5758. # what "hidden" libraries, object files and flags are used when
  5759. # linking a shared library.
  5760. #
  5761. # There doesn't appear to be a way to prevent this compiler from
  5762. # explicitly linking system object files so we need to strip them
  5763. # from the output so that they don't get included in the library
  5764. # dependencies.
  5765. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  5766. ;;
  5767. *)
  5768. if test "$GXX" = yes; then
  5769. if test $with_gnu_ld = no; then
  5770. case $host_cpu in
  5771. hppa*64*)
  5772. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5773. ;;
  5774. ia64*)
  5775. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5776. ;;
  5777. *)
  5778. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5779. ;;
  5780. esac
  5781. fi
  5782. else
  5783. # FIXME: insert proper C++ library support
  5784. _LT_TAGVAR(ld_shlibs, $1)=no
  5785. fi
  5786. ;;
  5787. esac
  5788. ;;
  5789. interix[[3-9]]*)
  5790. _LT_TAGVAR(hardcode_direct, $1)=no
  5791. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5792. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5793. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5794. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5795. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5796. # default) and relocated if they conflict, which is a slow very memory
  5797. # consuming and fragmenting process. To avoid this, we pick a random,
  5798. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5799. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5800. _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'
  5801. _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'
  5802. ;;
  5803. irix5* | irix6*)
  5804. case $cc_basename in
  5805. CC*)
  5806. # SGI C++
  5807. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  5808. # Archives containing C++ object files must be created using
  5809. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5810. # necessary to make sure instantiated templates are included
  5811. # in the archive.
  5812. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5813. ;;
  5814. *)
  5815. if test "$GXX" = yes; then
  5816. if test "$with_gnu_ld" = no; then
  5817. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5818. else
  5819. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  5820. fi
  5821. fi
  5822. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5823. ;;
  5824. esac
  5825. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5826. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5827. _LT_TAGVAR(inherit_rpath, $1)=yes
  5828. ;;
  5829. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5830. case $cc_basename in
  5831. KCC*)
  5832. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5833. # KCC will only create a shared library if the output file
  5834. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5835. # to its proper name (with version) after linking.
  5836. _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'
  5837. _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'
  5838. # Commands to make compiler produce verbose output that lists
  5839. # what "hidden" libraries, object files and flags are used when
  5840. # linking a shared library.
  5841. #
  5842. # There doesn't appear to be a way to prevent this compiler from
  5843. # explicitly linking system object files so we need to strip them
  5844. # from the output so that they don't get included in the library
  5845. # dependencies.
  5846. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  5847. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5848. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5849. # Archives containing C++ object files must be created using
  5850. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5851. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5852. ;;
  5853. icpc* | ecpc* )
  5854. # Intel C++
  5855. with_gnu_ld=yes
  5856. # version 8.0 and above of icpc choke on multiply defined symbols
  5857. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5858. # earlier do not add the objects themselves.
  5859. case `$CC -V 2>&1` in
  5860. *"Version 7."*)
  5861. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5862. _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'
  5863. ;;
  5864. *) # Version 8.0 or newer
  5865. tmp_idyn=
  5866. case $host_cpu in
  5867. ia64*) tmp_idyn=' -i_dynamic';;
  5868. esac
  5869. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5870. _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'
  5871. ;;
  5872. esac
  5873. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5874. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5875. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5876. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5877. ;;
  5878. pgCC* | pgcpp*)
  5879. # Portland Group C++ compiler
  5880. case `$CC -V` in
  5881. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  5882. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5883. rm -rf $tpldir~
  5884. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5885. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  5886. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5887. rm -rf $tpldir~
  5888. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5889. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  5890. $RANLIB $oldlib'
  5891. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5892. rm -rf $tpldir~
  5893. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5894. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5895. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5896. rm -rf $tpldir~
  5897. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5898. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  5899. ;;
  5900. *) # Version 6 and above use weak symbols
  5901. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5902. _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'
  5903. ;;
  5904. esac
  5905. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5906. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5907. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5908. ;;
  5909. cxx*)
  5910. # Compaq C++
  5911. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5912. _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'
  5913. runpath_var=LD_RUN_PATH
  5914. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5915. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5916. # Commands to make compiler produce verbose output that lists
  5917. # what "hidden" libraries, object files and flags are used when
  5918. # linking a shared library.
  5919. #
  5920. # There doesn't appear to be a way to prevent this compiler from
  5921. # explicitly linking system object files so we need to strip them
  5922. # from the output so that they don't get included in the library
  5923. # dependencies.
  5924. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  5925. ;;
  5926. xl* | mpixl* | bgxl*)
  5927. # IBM XL 8.0 on PPC, with GNU ld
  5928. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5929. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5930. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5931. if test "x$supports_anon_versioning" = xyes; then
  5932. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5933. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5934. echo "local: *; };" >> $output_objdir/$libname.ver~
  5935. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5936. fi
  5937. ;;
  5938. *)
  5939. case `$CC -V 2>&1 | sed 5q` in
  5940. *Sun\ C*)
  5941. # Sun C++ 5.9
  5942. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5943. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5944. _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'
  5945. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5946. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5947. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5948. # Not sure whether something based on
  5949. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5950. # would be better.
  5951. output_verbose_link_cmd='func_echo_all'
  5952. # Archives containing C++ object files must be created using
  5953. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5954. # necessary to make sure instantiated templates are included
  5955. # in the archive.
  5956. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5957. ;;
  5958. esac
  5959. ;;
  5960. esac
  5961. ;;
  5962. lynxos*)
  5963. # FIXME: insert proper C++ library support
  5964. _LT_TAGVAR(ld_shlibs, $1)=no
  5965. ;;
  5966. m88k*)
  5967. # FIXME: insert proper C++ library support
  5968. _LT_TAGVAR(ld_shlibs, $1)=no
  5969. ;;
  5970. mvs*)
  5971. case $cc_basename in
  5972. cxx*)
  5973. # FIXME: insert proper C++ library support
  5974. _LT_TAGVAR(ld_shlibs, $1)=no
  5975. ;;
  5976. *)
  5977. # FIXME: insert proper C++ library support
  5978. _LT_TAGVAR(ld_shlibs, $1)=no
  5979. ;;
  5980. esac
  5981. ;;
  5982. netbsd*)
  5983. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5984. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5985. wlarc=
  5986. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5987. _LT_TAGVAR(hardcode_direct, $1)=yes
  5988. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5989. fi
  5990. # Workaround some broken pre-1.5 toolchains
  5991. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5992. ;;
  5993. *nto* | *qnx*)
  5994. _LT_TAGVAR(ld_shlibs, $1)=yes
  5995. ;;
  5996. openbsd2*)
  5997. # C++ shared libraries are fairly broken
  5998. _LT_TAGVAR(ld_shlibs, $1)=no
  5999. ;;
  6000. openbsd*)
  6001. if test -f /usr/libexec/ld.so; then
  6002. _LT_TAGVAR(hardcode_direct, $1)=yes
  6003. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6004. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6005. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6006. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6007. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6008. _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'
  6009. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6010. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6011. fi
  6012. output_verbose_link_cmd=func_echo_all
  6013. else
  6014. _LT_TAGVAR(ld_shlibs, $1)=no
  6015. fi
  6016. ;;
  6017. osf3* | osf4* | osf5*)
  6018. case $cc_basename in
  6019. KCC*)
  6020. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6021. # KCC will only create a shared library if the output file
  6022. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6023. # to its proper name (with version) after linking.
  6024. _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'
  6025. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6026. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6027. # Archives containing C++ object files must be created using
  6028. # the KAI C++ compiler.
  6029. case $host in
  6030. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6031. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6032. esac
  6033. ;;
  6034. RCC*)
  6035. # Rational C++ 2.4.1
  6036. # FIXME: insert proper C++ library support
  6037. _LT_TAGVAR(ld_shlibs, $1)=no
  6038. ;;
  6039. cxx*)
  6040. case $host in
  6041. osf3*)
  6042. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6043. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  6044. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6045. ;;
  6046. *)
  6047. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6048. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  6049. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6050. echo "-hidden">> $lib.exp~
  6051. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  6052. $RM $lib.exp'
  6053. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6054. ;;
  6055. esac
  6056. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6057. # Commands to make compiler produce verbose output that lists
  6058. # what "hidden" libraries, object files and flags are used when
  6059. # linking a shared library.
  6060. #
  6061. # There doesn't appear to be a way to prevent this compiler from
  6062. # explicitly linking system object files so we need to strip them
  6063. # from the output so that they don't get included in the library
  6064. # dependencies.
  6065. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  6066. ;;
  6067. *)
  6068. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6069. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6070. case $host in
  6071. osf3*)
  6072. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6073. ;;
  6074. *)
  6075. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6076. ;;
  6077. esac
  6078. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6079. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6080. # Commands to make compiler produce verbose output that lists
  6081. # what "hidden" libraries, object files and flags are used when
  6082. # linking a shared library.
  6083. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6084. else
  6085. # FIXME: insert proper C++ library support
  6086. _LT_TAGVAR(ld_shlibs, $1)=no
  6087. fi
  6088. ;;
  6089. esac
  6090. ;;
  6091. psos*)
  6092. # FIXME: insert proper C++ library support
  6093. _LT_TAGVAR(ld_shlibs, $1)=no
  6094. ;;
  6095. sunos4*)
  6096. case $cc_basename in
  6097. CC*)
  6098. # Sun C++ 4.x
  6099. # FIXME: insert proper C++ library support
  6100. _LT_TAGVAR(ld_shlibs, $1)=no
  6101. ;;
  6102. lcc*)
  6103. # Lucid
  6104. # FIXME: insert proper C++ library support
  6105. _LT_TAGVAR(ld_shlibs, $1)=no
  6106. ;;
  6107. *)
  6108. # FIXME: insert proper C++ library support
  6109. _LT_TAGVAR(ld_shlibs, $1)=no
  6110. ;;
  6111. esac
  6112. ;;
  6113. solaris*)
  6114. case $cc_basename in
  6115. CC* | sunCC*)
  6116. # Sun C++ 4.2, 5.x and Centerline C++
  6117. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6118. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6119. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6120. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6121. $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'
  6122. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6123. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6124. case $host_os in
  6125. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6126. *)
  6127. # The compiler driver will combine and reorder linker options,
  6128. # but understands `-z linker_flag'.
  6129. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6130. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6131. ;;
  6132. esac
  6133. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6134. output_verbose_link_cmd='func_echo_all'
  6135. # Archives containing C++ object files must be created using
  6136. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6137. # necessary to make sure instantiated templates are included
  6138. # in the archive.
  6139. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6140. ;;
  6141. gcx*)
  6142. # Green Hills C++ Compiler
  6143. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6144. # The C++ compiler must be used to create the archive.
  6145. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6146. ;;
  6147. *)
  6148. # GNU C++ compiler with Solaris linker
  6149. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6150. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6151. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6152. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6153. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6154. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6155. # Commands to make compiler produce verbose output that lists
  6156. # what "hidden" libraries, object files and flags are used when
  6157. # linking a shared library.
  6158. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6159. else
  6160. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6161. # platform.
  6162. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6163. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6164. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6165. # Commands to make compiler produce verbose output that lists
  6166. # what "hidden" libraries, object files and flags are used when
  6167. # linking a shared library.
  6168. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6169. fi
  6170. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6171. case $host_os in
  6172. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6173. *)
  6174. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6175. ;;
  6176. esac
  6177. fi
  6178. ;;
  6179. esac
  6180. ;;
  6181. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6182. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6183. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6184. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6185. runpath_var='LD_RUN_PATH'
  6186. case $cc_basename in
  6187. CC*)
  6188. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6189. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6190. ;;
  6191. *)
  6192. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6193. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6194. ;;
  6195. esac
  6196. ;;
  6197. sysv5* | sco3.2v5* | sco5v6*)
  6198. # Note: We can NOT use -z defs as we might desire, because we do not
  6199. # link with -lc, and that would cause any symbols used from libc to
  6200. # always be unresolved, which means just about no library would
  6201. # ever link correctly. If we're not using GNU ld we use -z text
  6202. # though, which does catch some bad symbols but isn't as heavy-handed
  6203. # as -z defs.
  6204. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6205. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6206. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6207. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6208. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6209. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6210. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6211. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6212. runpath_var='LD_RUN_PATH'
  6213. case $cc_basename in
  6214. CC*)
  6215. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6216. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6217. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6218. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6219. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6220. '"$_LT_TAGVAR(reload_cmds, $1)"
  6221. ;;
  6222. *)
  6223. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6224. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6225. ;;
  6226. esac
  6227. ;;
  6228. tandem*)
  6229. case $cc_basename in
  6230. NCC*)
  6231. # NonStop-UX NCC 3.20
  6232. # FIXME: insert proper C++ library support
  6233. _LT_TAGVAR(ld_shlibs, $1)=no
  6234. ;;
  6235. *)
  6236. # FIXME: insert proper C++ library support
  6237. _LT_TAGVAR(ld_shlibs, $1)=no
  6238. ;;
  6239. esac
  6240. ;;
  6241. vxworks*)
  6242. # FIXME: insert proper C++ library support
  6243. _LT_TAGVAR(ld_shlibs, $1)=no
  6244. ;;
  6245. *)
  6246. # FIXME: insert proper C++ library support
  6247. _LT_TAGVAR(ld_shlibs, $1)=no
  6248. ;;
  6249. esac
  6250. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6251. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6252. _LT_TAGVAR(GCC, $1)="$GXX"
  6253. _LT_TAGVAR(LD, $1)="$LD"
  6254. ## CAVEAT EMPTOR:
  6255. ## There is no encapsulation within the following macros, do not change
  6256. ## the running order or otherwise move them around unless you know exactly
  6257. ## what you are doing...
  6258. _LT_SYS_HIDDEN_LIBDEPS($1)
  6259. _LT_COMPILER_PIC($1)
  6260. _LT_COMPILER_C_O($1)
  6261. _LT_COMPILER_FILE_LOCKS($1)
  6262. _LT_LINKER_SHLIBS($1)
  6263. _LT_SYS_DYNAMIC_LINKER($1)
  6264. _LT_LINKER_HARDCODE_LIBPATH($1)
  6265. _LT_CONFIG($1)
  6266. fi # test -n "$compiler"
  6267. CC=$lt_save_CC
  6268. CFLAGS=$lt_save_CFLAGS
  6269. LDCXX=$LD
  6270. LD=$lt_save_LD
  6271. GCC=$lt_save_GCC
  6272. with_gnu_ld=$lt_save_with_gnu_ld
  6273. lt_cv_path_LDCXX=$lt_cv_path_LD
  6274. lt_cv_path_LD=$lt_save_path_LD
  6275. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6276. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6277. fi # test "$_lt_caught_CXX_error" != yes
  6278. AC_LANG_POP
  6279. ])# _LT_LANG_CXX_CONFIG
  6280. # _LT_FUNC_STRIPNAME_CNF
  6281. # ----------------------
  6282. # func_stripname_cnf prefix suffix name
  6283. # strip PREFIX and SUFFIX off of NAME.
  6284. # PREFIX and SUFFIX must not contain globbing or regex special
  6285. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6286. # dot (in which case that matches only a dot).
  6287. #
  6288. # This function is identical to the (non-XSI) version of func_stripname,
  6289. # except this one can be used by m4 code that may be executed by configure,
  6290. # rather than the libtool script.
  6291. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6292. AC_REQUIRE([_LT_DECL_SED])
  6293. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6294. func_stripname_cnf ()
  6295. {
  6296. case ${2} in
  6297. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6298. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6299. esac
  6300. } # func_stripname_cnf
  6301. ])# _LT_FUNC_STRIPNAME_CNF
  6302. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6303. # ---------------------------------
  6304. # Figure out "hidden" library dependencies from verbose
  6305. # compiler output when linking a shared library.
  6306. # Parse the compiler output and extract the necessary
  6307. # objects, libraries and library flags.
  6308. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6309. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6310. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6311. # Dependencies to place before and after the object being linked:
  6312. _LT_TAGVAR(predep_objects, $1)=
  6313. _LT_TAGVAR(postdep_objects, $1)=
  6314. _LT_TAGVAR(predeps, $1)=
  6315. _LT_TAGVAR(postdeps, $1)=
  6316. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6317. dnl we can't use the lt_simple_compile_test_code here,
  6318. dnl because it contains code intended for an executable,
  6319. dnl not a library. It's possible we should let each
  6320. dnl tag define a new lt_????_link_test_code variable,
  6321. dnl but it's only used here...
  6322. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6323. int a;
  6324. void foo (void) { a = 0; }
  6325. _LT_EOF
  6326. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6327. class Foo
  6328. {
  6329. public:
  6330. Foo (void) { a = 0; }
  6331. private:
  6332. int a;
  6333. };
  6334. _LT_EOF
  6335. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6336. subroutine foo
  6337. implicit none
  6338. integer*4 a
  6339. a=0
  6340. return
  6341. end
  6342. _LT_EOF
  6343. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6344. subroutine foo
  6345. implicit none
  6346. integer a
  6347. a=0
  6348. return
  6349. end
  6350. _LT_EOF
  6351. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6352. public class foo {
  6353. private int a;
  6354. public void bar (void) {
  6355. a = 0;
  6356. }
  6357. };
  6358. _LT_EOF
  6359. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6360. package foo
  6361. func foo() {
  6362. }
  6363. _LT_EOF
  6364. ])
  6365. _lt_libdeps_save_CFLAGS=$CFLAGS
  6366. case "$CC $CFLAGS " in #(
  6367. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6368. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6369. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6370. esac
  6371. dnl Parse the compiler output and extract the necessary
  6372. dnl objects, libraries and library flags.
  6373. if AC_TRY_EVAL(ac_compile); then
  6374. # Parse the compiler output and extract the necessary
  6375. # objects, libraries and library flags.
  6376. # Sentinel used to keep track of whether or not we are before
  6377. # the conftest object file.
  6378. pre_test_object_deps_done=no
  6379. for p in `eval "$output_verbose_link_cmd"`; do
  6380. case ${prev}${p} in
  6381. -L* | -R* | -l*)
  6382. # Some compilers place space between "-{L,R}" and the path.
  6383. # Remove the space.
  6384. if test $p = "-L" ||
  6385. test $p = "-R"; then
  6386. prev=$p
  6387. continue
  6388. fi
  6389. # Expand the sysroot to ease extracting the directories later.
  6390. if test -z "$prev"; then
  6391. case $p in
  6392. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6393. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6394. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6395. esac
  6396. fi
  6397. case $p in
  6398. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6399. esac
  6400. if test "$pre_test_object_deps_done" = no; then
  6401. case ${prev} in
  6402. -L | -R)
  6403. # Internal compiler library paths should come after those
  6404. # provided the user. The postdeps already come after the
  6405. # user supplied libs so there is no need to process them.
  6406. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6407. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6408. else
  6409. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6410. fi
  6411. ;;
  6412. # The "-l" case would never come before the object being
  6413. # linked, so don't bother handling this case.
  6414. esac
  6415. else
  6416. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6417. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6418. else
  6419. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6420. fi
  6421. fi
  6422. prev=
  6423. ;;
  6424. *.lto.$objext) ;; # Ignore GCC LTO objects
  6425. *.$objext)
  6426. # This assumes that the test object file only shows up
  6427. # once in the compiler output.
  6428. if test "$p" = "conftest.$objext"; then
  6429. pre_test_object_deps_done=yes
  6430. continue
  6431. fi
  6432. if test "$pre_test_object_deps_done" = no; then
  6433. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6434. _LT_TAGVAR(predep_objects, $1)="$p"
  6435. else
  6436. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6437. fi
  6438. else
  6439. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6440. _LT_TAGVAR(postdep_objects, $1)="$p"
  6441. else
  6442. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6443. fi
  6444. fi
  6445. ;;
  6446. *) ;; # Ignore the rest.
  6447. esac
  6448. done
  6449. # Clean up.
  6450. rm -f a.out a.exe
  6451. else
  6452. echo "libtool.m4: error: problem compiling $1 test program"
  6453. fi
  6454. $RM -f confest.$objext
  6455. CFLAGS=$_lt_libdeps_save_CFLAGS
  6456. # PORTME: override above test on systems where it is broken
  6457. m4_if([$1], [CXX],
  6458. [case $host_os in
  6459. interix[[3-9]]*)
  6460. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6461. # hack all around it, let's just trust "g++" to DTRT.
  6462. _LT_TAGVAR(predep_objects,$1)=
  6463. _LT_TAGVAR(postdep_objects,$1)=
  6464. _LT_TAGVAR(postdeps,$1)=
  6465. ;;
  6466. linux*)
  6467. case `$CC -V 2>&1 | sed 5q` in
  6468. *Sun\ C*)
  6469. # Sun C++ 5.9
  6470. # The more standards-conforming stlport4 library is
  6471. # incompatible with the Cstd library. Avoid specifying
  6472. # it if it's in CXXFLAGS. Ignore libCrun as
  6473. # -library=stlport4 depends on it.
  6474. case " $CXX $CXXFLAGS " in
  6475. *" -library=stlport4 "*)
  6476. solaris_use_stlport4=yes
  6477. ;;
  6478. esac
  6479. if test "$solaris_use_stlport4" != yes; then
  6480. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6481. fi
  6482. ;;
  6483. esac
  6484. ;;
  6485. solaris*)
  6486. case $cc_basename in
  6487. CC* | sunCC*)
  6488. # The more standards-conforming stlport4 library is
  6489. # incompatible with the Cstd library. Avoid specifying
  6490. # it if it's in CXXFLAGS. Ignore libCrun as
  6491. # -library=stlport4 depends on it.
  6492. case " $CXX $CXXFLAGS " in
  6493. *" -library=stlport4 "*)
  6494. solaris_use_stlport4=yes
  6495. ;;
  6496. esac
  6497. # Adding this requires a known-good setup of shared libraries for
  6498. # Sun compiler versions before 5.6, else PIC objects from an old
  6499. # archive will be linked into the output, leading to subtle bugs.
  6500. if test "$solaris_use_stlport4" != yes; then
  6501. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6502. fi
  6503. ;;
  6504. esac
  6505. ;;
  6506. esac
  6507. ])
  6508. case " $_LT_TAGVAR(postdeps, $1) " in
  6509. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6510. esac
  6511. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6512. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6513. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6514. fi
  6515. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6516. [The directories searched by this compiler when creating a shared library])
  6517. _LT_TAGDECL([], [predep_objects], [1],
  6518. [Dependencies to place before and after the objects being linked to
  6519. create a shared library])
  6520. _LT_TAGDECL([], [postdep_objects], [1])
  6521. _LT_TAGDECL([], [predeps], [1])
  6522. _LT_TAGDECL([], [postdeps], [1])
  6523. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6524. [The library search path used internally by the compiler when linking
  6525. a shared library])
  6526. ])# _LT_SYS_HIDDEN_LIBDEPS
  6527. # _LT_LANG_F77_CONFIG([TAG])
  6528. # --------------------------
  6529. # Ensure that the configuration variables for a Fortran 77 compiler are
  6530. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6531. # to write the compiler configuration to `libtool'.
  6532. m4_defun([_LT_LANG_F77_CONFIG],
  6533. [AC_LANG_PUSH(Fortran 77)
  6534. if test -z "$F77" || test "X$F77" = "Xno"; then
  6535. _lt_disable_F77=yes
  6536. fi
  6537. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6538. _LT_TAGVAR(allow_undefined_flag, $1)=
  6539. _LT_TAGVAR(always_export_symbols, $1)=no
  6540. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6541. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6542. _LT_TAGVAR(hardcode_direct, $1)=no
  6543. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6544. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6545. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6546. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6547. _LT_TAGVAR(hardcode_automatic, $1)=no
  6548. _LT_TAGVAR(inherit_rpath, $1)=no
  6549. _LT_TAGVAR(module_cmds, $1)=
  6550. _LT_TAGVAR(module_expsym_cmds, $1)=
  6551. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6552. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6553. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6554. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6555. _LT_TAGVAR(no_undefined_flag, $1)=
  6556. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6557. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6558. # Source file extension for f77 test sources.
  6559. ac_ext=f
  6560. # Object file extension for compiled f77 test sources.
  6561. objext=o
  6562. _LT_TAGVAR(objext, $1)=$objext
  6563. # No sense in running all these tests if we already determined that
  6564. # the F77 compiler isn't working. Some variables (like enable_shared)
  6565. # are currently assumed to apply to all compilers on this platform,
  6566. # and will be corrupted by setting them based on a non-working compiler.
  6567. if test "$_lt_disable_F77" != yes; then
  6568. # Code to be used in simple compile tests
  6569. lt_simple_compile_test_code="\
  6570. subroutine t
  6571. return
  6572. end
  6573. "
  6574. # Code to be used in simple link tests
  6575. lt_simple_link_test_code="\
  6576. program t
  6577. end
  6578. "
  6579. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6580. _LT_TAG_COMPILER
  6581. # save warnings/boilerplate of simple test code
  6582. _LT_COMPILER_BOILERPLATE
  6583. _LT_LINKER_BOILERPLATE
  6584. # Allow CC to be a program name with arguments.
  6585. lt_save_CC="$CC"
  6586. lt_save_GCC=$GCC
  6587. lt_save_CFLAGS=$CFLAGS
  6588. CC=${F77-"f77"}
  6589. CFLAGS=$FFLAGS
  6590. compiler=$CC
  6591. _LT_TAGVAR(compiler, $1)=$CC
  6592. _LT_CC_BASENAME([$compiler])
  6593. GCC=$G77
  6594. if test -n "$compiler"; then
  6595. AC_MSG_CHECKING([if libtool supports shared libraries])
  6596. AC_MSG_RESULT([$can_build_shared])
  6597. AC_MSG_CHECKING([whether to build shared libraries])
  6598. test "$can_build_shared" = "no" && enable_shared=no
  6599. # On AIX, shared libraries and static libraries use the same namespace, and
  6600. # are all built from PIC.
  6601. case $host_os in
  6602. aix3*)
  6603. test "$enable_shared" = yes && enable_static=no
  6604. if test -n "$RANLIB"; then
  6605. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6606. postinstall_cmds='$RANLIB $lib'
  6607. fi
  6608. ;;
  6609. aix[[4-9]]*)
  6610. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6611. test "$enable_shared" = yes && enable_static=no
  6612. fi
  6613. ;;
  6614. esac
  6615. AC_MSG_RESULT([$enable_shared])
  6616. AC_MSG_CHECKING([whether to build static libraries])
  6617. # Make sure either enable_shared or enable_static is yes.
  6618. test "$enable_shared" = yes || enable_static=yes
  6619. AC_MSG_RESULT([$enable_static])
  6620. _LT_TAGVAR(GCC, $1)="$G77"
  6621. _LT_TAGVAR(LD, $1)="$LD"
  6622. ## CAVEAT EMPTOR:
  6623. ## There is no encapsulation within the following macros, do not change
  6624. ## the running order or otherwise move them around unless you know exactly
  6625. ## what you are doing...
  6626. _LT_COMPILER_PIC($1)
  6627. _LT_COMPILER_C_O($1)
  6628. _LT_COMPILER_FILE_LOCKS($1)
  6629. _LT_LINKER_SHLIBS($1)
  6630. _LT_SYS_DYNAMIC_LINKER($1)
  6631. _LT_LINKER_HARDCODE_LIBPATH($1)
  6632. _LT_CONFIG($1)
  6633. fi # test -n "$compiler"
  6634. GCC=$lt_save_GCC
  6635. CC="$lt_save_CC"
  6636. CFLAGS="$lt_save_CFLAGS"
  6637. fi # test "$_lt_disable_F77" != yes
  6638. AC_LANG_POP
  6639. ])# _LT_LANG_F77_CONFIG
  6640. # _LT_LANG_FC_CONFIG([TAG])
  6641. # -------------------------
  6642. # Ensure that the configuration variables for a Fortran compiler are
  6643. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6644. # to write the compiler configuration to `libtool'.
  6645. m4_defun([_LT_LANG_FC_CONFIG],
  6646. [AC_LANG_PUSH(Fortran)
  6647. if test -z "$FC" || test "X$FC" = "Xno"; then
  6648. _lt_disable_FC=yes
  6649. fi
  6650. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6651. _LT_TAGVAR(allow_undefined_flag, $1)=
  6652. _LT_TAGVAR(always_export_symbols, $1)=no
  6653. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6654. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6655. _LT_TAGVAR(hardcode_direct, $1)=no
  6656. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6657. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6658. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6659. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6660. _LT_TAGVAR(hardcode_automatic, $1)=no
  6661. _LT_TAGVAR(inherit_rpath, $1)=no
  6662. _LT_TAGVAR(module_cmds, $1)=
  6663. _LT_TAGVAR(module_expsym_cmds, $1)=
  6664. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6665. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6666. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6667. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6668. _LT_TAGVAR(no_undefined_flag, $1)=
  6669. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6670. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6671. # Source file extension for fc test sources.
  6672. ac_ext=${ac_fc_srcext-f}
  6673. # Object file extension for compiled fc test sources.
  6674. objext=o
  6675. _LT_TAGVAR(objext, $1)=$objext
  6676. # No sense in running all these tests if we already determined that
  6677. # the FC compiler isn't working. Some variables (like enable_shared)
  6678. # are currently assumed to apply to all compilers on this platform,
  6679. # and will be corrupted by setting them based on a non-working compiler.
  6680. if test "$_lt_disable_FC" != yes; then
  6681. # Code to be used in simple compile tests
  6682. lt_simple_compile_test_code="\
  6683. subroutine t
  6684. return
  6685. end
  6686. "
  6687. # Code to be used in simple link tests
  6688. lt_simple_link_test_code="\
  6689. program t
  6690. end
  6691. "
  6692. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6693. _LT_TAG_COMPILER
  6694. # save warnings/boilerplate of simple test code
  6695. _LT_COMPILER_BOILERPLATE
  6696. _LT_LINKER_BOILERPLATE
  6697. # Allow CC to be a program name with arguments.
  6698. lt_save_CC="$CC"
  6699. lt_save_GCC=$GCC
  6700. lt_save_CFLAGS=$CFLAGS
  6701. CC=${FC-"f95"}
  6702. CFLAGS=$FCFLAGS
  6703. compiler=$CC
  6704. GCC=$ac_cv_fc_compiler_gnu
  6705. _LT_TAGVAR(compiler, $1)=$CC
  6706. _LT_CC_BASENAME([$compiler])
  6707. if test -n "$compiler"; then
  6708. AC_MSG_CHECKING([if libtool supports shared libraries])
  6709. AC_MSG_RESULT([$can_build_shared])
  6710. AC_MSG_CHECKING([whether to build shared libraries])
  6711. test "$can_build_shared" = "no" && enable_shared=no
  6712. # On AIX, shared libraries and static libraries use the same namespace, and
  6713. # are all built from PIC.
  6714. case $host_os in
  6715. aix3*)
  6716. test "$enable_shared" = yes && enable_static=no
  6717. if test -n "$RANLIB"; then
  6718. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6719. postinstall_cmds='$RANLIB $lib'
  6720. fi
  6721. ;;
  6722. aix[[4-9]]*)
  6723. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6724. test "$enable_shared" = yes && enable_static=no
  6725. fi
  6726. ;;
  6727. esac
  6728. AC_MSG_RESULT([$enable_shared])
  6729. AC_MSG_CHECKING([whether to build static libraries])
  6730. # Make sure either enable_shared or enable_static is yes.
  6731. test "$enable_shared" = yes || enable_static=yes
  6732. AC_MSG_RESULT([$enable_static])
  6733. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6734. _LT_TAGVAR(LD, $1)="$LD"
  6735. ## CAVEAT EMPTOR:
  6736. ## There is no encapsulation within the following macros, do not change
  6737. ## the running order or otherwise move them around unless you know exactly
  6738. ## what you are doing...
  6739. _LT_SYS_HIDDEN_LIBDEPS($1)
  6740. _LT_COMPILER_PIC($1)
  6741. _LT_COMPILER_C_O($1)
  6742. _LT_COMPILER_FILE_LOCKS($1)
  6743. _LT_LINKER_SHLIBS($1)
  6744. _LT_SYS_DYNAMIC_LINKER($1)
  6745. _LT_LINKER_HARDCODE_LIBPATH($1)
  6746. _LT_CONFIG($1)
  6747. fi # test -n "$compiler"
  6748. GCC=$lt_save_GCC
  6749. CC=$lt_save_CC
  6750. CFLAGS=$lt_save_CFLAGS
  6751. fi # test "$_lt_disable_FC" != yes
  6752. AC_LANG_POP
  6753. ])# _LT_LANG_FC_CONFIG
  6754. # _LT_LANG_GCJ_CONFIG([TAG])
  6755. # --------------------------
  6756. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6757. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6758. # to write the compiler configuration to `libtool'.
  6759. m4_defun([_LT_LANG_GCJ_CONFIG],
  6760. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6761. AC_LANG_SAVE
  6762. # Source file extension for Java test sources.
  6763. ac_ext=java
  6764. # Object file extension for compiled Java test sources.
  6765. objext=o
  6766. _LT_TAGVAR(objext, $1)=$objext
  6767. # Code to be used in simple compile tests
  6768. lt_simple_compile_test_code="class foo {}"
  6769. # Code to be used in simple link tests
  6770. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6771. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6772. _LT_TAG_COMPILER
  6773. # save warnings/boilerplate of simple test code
  6774. _LT_COMPILER_BOILERPLATE
  6775. _LT_LINKER_BOILERPLATE
  6776. # Allow CC to be a program name with arguments.
  6777. lt_save_CC=$CC
  6778. lt_save_CFLAGS=$CFLAGS
  6779. lt_save_GCC=$GCC
  6780. GCC=yes
  6781. CC=${GCJ-"gcj"}
  6782. CFLAGS=$GCJFLAGS
  6783. compiler=$CC
  6784. _LT_TAGVAR(compiler, $1)=$CC
  6785. _LT_TAGVAR(LD, $1)="$LD"
  6786. _LT_CC_BASENAME([$compiler])
  6787. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6788. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6789. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6790. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6791. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6792. if test -n "$compiler"; then
  6793. _LT_COMPILER_NO_RTTI($1)
  6794. _LT_COMPILER_PIC($1)
  6795. _LT_COMPILER_C_O($1)
  6796. _LT_COMPILER_FILE_LOCKS($1)
  6797. _LT_LINKER_SHLIBS($1)
  6798. _LT_LINKER_HARDCODE_LIBPATH($1)
  6799. _LT_CONFIG($1)
  6800. fi
  6801. AC_LANG_RESTORE
  6802. GCC=$lt_save_GCC
  6803. CC=$lt_save_CC
  6804. CFLAGS=$lt_save_CFLAGS
  6805. ])# _LT_LANG_GCJ_CONFIG
  6806. # _LT_LANG_GO_CONFIG([TAG])
  6807. # --------------------------
  6808. # Ensure that the configuration variables for the GNU Go compiler
  6809. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6810. # to write the compiler configuration to `libtool'.
  6811. m4_defun([_LT_LANG_GO_CONFIG],
  6812. [AC_REQUIRE([LT_PROG_GO])dnl
  6813. AC_LANG_SAVE
  6814. # Source file extension for Go test sources.
  6815. ac_ext=go
  6816. # Object file extension for compiled Go test sources.
  6817. objext=o
  6818. _LT_TAGVAR(objext, $1)=$objext
  6819. # Code to be used in simple compile tests
  6820. lt_simple_compile_test_code="package main; func main() { }"
  6821. # Code to be used in simple link tests
  6822. lt_simple_link_test_code='package main; func main() { }'
  6823. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6824. _LT_TAG_COMPILER
  6825. # save warnings/boilerplate of simple test code
  6826. _LT_COMPILER_BOILERPLATE
  6827. _LT_LINKER_BOILERPLATE
  6828. # Allow CC to be a program name with arguments.
  6829. lt_save_CC=$CC
  6830. lt_save_CFLAGS=$CFLAGS
  6831. lt_save_GCC=$GCC
  6832. GCC=yes
  6833. CC=${GOC-"gccgo"}
  6834. CFLAGS=$GOFLAGS
  6835. compiler=$CC
  6836. _LT_TAGVAR(compiler, $1)=$CC
  6837. _LT_TAGVAR(LD, $1)="$LD"
  6838. _LT_CC_BASENAME([$compiler])
  6839. # Go did not exist at the time GCC didn't implicitly link libc in.
  6840. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6841. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6842. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6843. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6844. if test -n "$compiler"; then
  6845. _LT_COMPILER_NO_RTTI($1)
  6846. _LT_COMPILER_PIC($1)
  6847. _LT_COMPILER_C_O($1)
  6848. _LT_COMPILER_FILE_LOCKS($1)
  6849. _LT_LINKER_SHLIBS($1)
  6850. _LT_LINKER_HARDCODE_LIBPATH($1)
  6851. _LT_CONFIG($1)
  6852. fi
  6853. AC_LANG_RESTORE
  6854. GCC=$lt_save_GCC
  6855. CC=$lt_save_CC
  6856. CFLAGS=$lt_save_CFLAGS
  6857. ])# _LT_LANG_GO_CONFIG
  6858. # _LT_LANG_RC_CONFIG([TAG])
  6859. # -------------------------
  6860. # Ensure that the configuration variables for the Windows resource compiler
  6861. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6862. # to write the compiler configuration to `libtool'.
  6863. m4_defun([_LT_LANG_RC_CONFIG],
  6864. [AC_REQUIRE([LT_PROG_RC])dnl
  6865. AC_LANG_SAVE
  6866. # Source file extension for RC test sources.
  6867. ac_ext=rc
  6868. # Object file extension for compiled RC test sources.
  6869. objext=o
  6870. _LT_TAGVAR(objext, $1)=$objext
  6871. # Code to be used in simple compile tests
  6872. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6873. # Code to be used in simple link tests
  6874. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6875. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6876. _LT_TAG_COMPILER
  6877. # save warnings/boilerplate of simple test code
  6878. _LT_COMPILER_BOILERPLATE
  6879. _LT_LINKER_BOILERPLATE
  6880. # Allow CC to be a program name with arguments.
  6881. lt_save_CC="$CC"
  6882. lt_save_CFLAGS=$CFLAGS
  6883. lt_save_GCC=$GCC
  6884. GCC=
  6885. CC=${RC-"windres"}
  6886. CFLAGS=
  6887. compiler=$CC
  6888. _LT_TAGVAR(compiler, $1)=$CC
  6889. _LT_CC_BASENAME([$compiler])
  6890. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6891. if test -n "$compiler"; then
  6892. :
  6893. _LT_CONFIG($1)
  6894. fi
  6895. GCC=$lt_save_GCC
  6896. AC_LANG_RESTORE
  6897. CC=$lt_save_CC
  6898. CFLAGS=$lt_save_CFLAGS
  6899. ])# _LT_LANG_RC_CONFIG
  6900. # LT_PROG_GCJ
  6901. # -----------
  6902. AC_DEFUN([LT_PROG_GCJ],
  6903. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6904. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6905. [AC_CHECK_TOOL(GCJ, gcj,)
  6906. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6907. AC_SUBST(GCJFLAGS)])])[]dnl
  6908. ])
  6909. # Old name:
  6910. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6911. dnl aclocal-1.4 backwards compatibility:
  6912. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6913. # LT_PROG_GO
  6914. # ----------
  6915. AC_DEFUN([LT_PROG_GO],
  6916. [AC_CHECK_TOOL(GOC, gccgo,)
  6917. ])
  6918. # LT_PROG_RC
  6919. # ----------
  6920. AC_DEFUN([LT_PROG_RC],
  6921. [AC_CHECK_TOOL(RC, windres,)
  6922. ])
  6923. # Old name:
  6924. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6925. dnl aclocal-1.4 backwards compatibility:
  6926. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6927. # _LT_DECL_EGREP
  6928. # --------------
  6929. # If we don't have a new enough Autoconf to choose the best grep
  6930. # available, choose the one first in the user's PATH.
  6931. m4_defun([_LT_DECL_EGREP],
  6932. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6933. AC_REQUIRE([AC_PROG_FGREP])dnl
  6934. test -z "$GREP" && GREP=grep
  6935. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6936. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6937. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6938. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6939. AC_SUBST([GREP])
  6940. ])
  6941. # _LT_DECL_OBJDUMP
  6942. # --------------
  6943. # If we don't have a new enough Autoconf to choose the best objdump
  6944. # available, choose the one first in the user's PATH.
  6945. m4_defun([_LT_DECL_OBJDUMP],
  6946. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6947. test -z "$OBJDUMP" && OBJDUMP=objdump
  6948. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6949. AC_SUBST([OBJDUMP])
  6950. ])
  6951. # _LT_DECL_DLLTOOL
  6952. # ----------------
  6953. # Ensure DLLTOOL variable is set.
  6954. m4_defun([_LT_DECL_DLLTOOL],
  6955. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6956. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6957. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  6958. AC_SUBST([DLLTOOL])
  6959. ])
  6960. # _LT_DECL_SED
  6961. # ------------
  6962. # Check for a fully-functional sed program, that truncates
  6963. # as few characters as possible. Prefer GNU sed if found.
  6964. m4_defun([_LT_DECL_SED],
  6965. [AC_PROG_SED
  6966. test -z "$SED" && SED=sed
  6967. Xsed="$SED -e 1s/^X//"
  6968. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  6969. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  6970. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  6971. ])# _LT_DECL_SED
  6972. m4_ifndef([AC_PROG_SED], [
  6973. # NOTE: This macro has been submitted for inclusion into #
  6974. # GNU Autoconf as AC_PROG_SED. When it is available in #
  6975. # a released version of Autoconf we should remove this #
  6976. # macro and use it instead. #
  6977. m4_defun([AC_PROG_SED],
  6978. [AC_MSG_CHECKING([for a sed that does not truncate output])
  6979. AC_CACHE_VAL(lt_cv_path_SED,
  6980. [# Loop through the user's path and test for sed and gsed.
  6981. # Then use that list of sed's as ones to test for truncation.
  6982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6983. for as_dir in $PATH
  6984. do
  6985. IFS=$as_save_IFS
  6986. test -z "$as_dir" && as_dir=.
  6987. for lt_ac_prog in sed gsed; do
  6988. for ac_exec_ext in '' $ac_executable_extensions; do
  6989. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  6990. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6991. fi
  6992. done
  6993. done
  6994. done
  6995. IFS=$as_save_IFS
  6996. lt_ac_max=0
  6997. lt_ac_count=0
  6998. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  6999. # along with /bin/sed that truncates output.
  7000. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7001. test ! -f $lt_ac_sed && continue
  7002. cat /dev/null > conftest.in
  7003. lt_ac_count=0
  7004. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7005. # Check for GNU sed and select it if it is found.
  7006. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7007. lt_cv_path_SED=$lt_ac_sed
  7008. break
  7009. fi
  7010. while true; do
  7011. cat conftest.in conftest.in >conftest.tmp
  7012. mv conftest.tmp conftest.in
  7013. cp conftest.in conftest.nl
  7014. echo >>conftest.nl
  7015. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7016. cmp -s conftest.out conftest.nl || break
  7017. # 10000 chars as input seems more than enough
  7018. test $lt_ac_count -gt 10 && break
  7019. lt_ac_count=`expr $lt_ac_count + 1`
  7020. if test $lt_ac_count -gt $lt_ac_max; then
  7021. lt_ac_max=$lt_ac_count
  7022. lt_cv_path_SED=$lt_ac_sed
  7023. fi
  7024. done
  7025. done
  7026. ])
  7027. SED=$lt_cv_path_SED
  7028. AC_SUBST([SED])
  7029. AC_MSG_RESULT([$SED])
  7030. ])#AC_PROG_SED
  7031. ])#m4_ifndef
  7032. # Old name:
  7033. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7034. dnl aclocal-1.4 backwards compatibility:
  7035. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7036. # _LT_CHECK_SHELL_FEATURES
  7037. # ------------------------
  7038. # Find out whether the shell is Bourne or XSI compatible,
  7039. # or has some other useful features.
  7040. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7041. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7042. # Try some XSI features
  7043. xsi_shell=no
  7044. ( _lt_dummy="a/b/c"
  7045. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7046. = c,a/b,b/c, \
  7047. && eval 'test $(( 1 + 1 )) -eq 2 \
  7048. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7049. && xsi_shell=yes
  7050. AC_MSG_RESULT([$xsi_shell])
  7051. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7052. AC_MSG_CHECKING([whether the shell understands "+="])
  7053. lt_shell_append=no
  7054. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7055. >/dev/null 2>&1 \
  7056. && lt_shell_append=yes
  7057. AC_MSG_RESULT([$lt_shell_append])
  7058. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7059. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7060. lt_unset=unset
  7061. else
  7062. lt_unset=false
  7063. fi
  7064. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7065. # test EBCDIC or ASCII
  7066. case `echo X|tr X '\101'` in
  7067. A) # ASCII based system
  7068. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7069. lt_SP2NL='tr \040 \012'
  7070. lt_NL2SP='tr \015\012 \040\040'
  7071. ;;
  7072. *) # EBCDIC based system
  7073. lt_SP2NL='tr \100 \n'
  7074. lt_NL2SP='tr \r\n \100\100'
  7075. ;;
  7076. esac
  7077. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7078. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7079. ])# _LT_CHECK_SHELL_FEATURES
  7080. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  7081. # ------------------------------------------------------
  7082. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  7083. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  7084. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  7085. [dnl {
  7086. sed -e '/^$1 ()$/,/^} # $1 /c\
  7087. $1 ()\
  7088. {\
  7089. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  7090. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  7091. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7092. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7093. test 0 -eq $? || _lt_function_replace_fail=:
  7094. ])
  7095. # _LT_PROG_REPLACE_SHELLFNS
  7096. # -------------------------
  7097. # Replace existing portable implementations of several shell functions with
  7098. # equivalent extended shell implementations where those features are available..
  7099. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  7100. [if test x"$xsi_shell" = xyes; then
  7101. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  7102. case ${1} in
  7103. */*) func_dirname_result="${1%/*}${2}" ;;
  7104. * ) func_dirname_result="${3}" ;;
  7105. esac])
  7106. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  7107. func_basename_result="${1##*/}"])
  7108. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  7109. case ${1} in
  7110. */*) func_dirname_result="${1%/*}${2}" ;;
  7111. * ) func_dirname_result="${3}" ;;
  7112. esac
  7113. func_basename_result="${1##*/}"])
  7114. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  7115. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7116. # positional parameters, so assign one to ordinary parameter first.
  7117. func_stripname_result=${3}
  7118. func_stripname_result=${func_stripname_result#"${1}"}
  7119. func_stripname_result=${func_stripname_result%"${2}"}])
  7120. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  7121. func_split_long_opt_name=${1%%=*}
  7122. func_split_long_opt_arg=${1#*=}])
  7123. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  7124. func_split_short_opt_arg=${1#??}
  7125. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  7126. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7127. case ${1} in
  7128. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7129. *) func_lo2o_result=${1} ;;
  7130. esac])
  7131. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7132. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7133. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7134. fi
  7135. if test x"$lt_shell_append" = xyes; then
  7136. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7137. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7138. func_quote_for_eval "${2}"
  7139. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7140. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7141. # Save a `func_append' function call where possible by direct use of '+='
  7142. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7143. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7144. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7145. test 0 -eq $? || _lt_function_replace_fail=:
  7146. else
  7147. # Save a `func_append' function call even when '+=' is not available
  7148. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7149. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7150. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7151. test 0 -eq $? || _lt_function_replace_fail=:
  7152. fi
  7153. if test x"$_lt_function_replace_fail" = x":"; then
  7154. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7155. fi
  7156. ])
  7157. # _LT_PATH_CONVERSION_FUNCTIONS
  7158. # -----------------------------
  7159. # Determine which file name conversion functions should be used by
  7160. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7161. # for certain cross-compile configurations and native mingw.
  7162. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7163. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7164. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7165. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7166. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7167. [case $host in
  7168. *-*-mingw* )
  7169. case $build in
  7170. *-*-mingw* ) # actually msys
  7171. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7172. ;;
  7173. *-*-cygwin* )
  7174. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7175. ;;
  7176. * ) # otherwise, assume *nix
  7177. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7178. ;;
  7179. esac
  7180. ;;
  7181. *-*-cygwin* )
  7182. case $build in
  7183. *-*-mingw* ) # actually msys
  7184. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7185. ;;
  7186. *-*-cygwin* )
  7187. lt_cv_to_host_file_cmd=func_convert_file_noop
  7188. ;;
  7189. * ) # otherwise, assume *nix
  7190. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7191. ;;
  7192. esac
  7193. ;;
  7194. * ) # unhandled hosts (and "normal" native builds)
  7195. lt_cv_to_host_file_cmd=func_convert_file_noop
  7196. ;;
  7197. esac
  7198. ])
  7199. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7200. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7201. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7202. [0], [convert $build file names to $host format])dnl
  7203. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7204. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7205. [#assume ordinary cross tools, or native build.
  7206. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7207. case $host in
  7208. *-*-mingw* )
  7209. case $build in
  7210. *-*-mingw* ) # actually msys
  7211. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7212. ;;
  7213. esac
  7214. ;;
  7215. esac
  7216. ])
  7217. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7218. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7219. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7220. [0], [convert $build files to toolchain format])dnl
  7221. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7222. # Helper functions for option handling. -*- Autoconf -*-
  7223. #
  7224. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7225. # Inc.
  7226. # Written by Gary V. Vaughan, 2004
  7227. #
  7228. # This file is free software; the Free Software Foundation gives
  7229. # unlimited permission to copy and/or distribute it, with or without
  7230. # modifications, as long as this notice is preserved.
  7231. # serial 7 ltoptions.m4
  7232. # This is to help aclocal find these macros, as it can't see m4_define.
  7233. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7234. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7235. # ------------------------------------------
  7236. m4_define([_LT_MANGLE_OPTION],
  7237. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7238. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7239. # ---------------------------------------
  7240. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7241. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7242. # saved as a flag.
  7243. m4_define([_LT_SET_OPTION],
  7244. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7245. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7246. _LT_MANGLE_DEFUN([$1], [$2]),
  7247. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7248. ])
  7249. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7250. # ------------------------------------------------------------
  7251. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7252. m4_define([_LT_IF_OPTION],
  7253. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7254. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7255. # -------------------------------------------------------
  7256. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7257. # are set.
  7258. m4_define([_LT_UNLESS_OPTIONS],
  7259. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7260. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7261. [m4_define([$0_found])])])[]dnl
  7262. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7263. ])[]dnl
  7264. ])
  7265. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7266. # ----------------------------------------
  7267. # OPTION-LIST is a space-separated list of Libtool options associated
  7268. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7269. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7270. # the unknown option and exit.
  7271. m4_defun([_LT_SET_OPTIONS],
  7272. [# Set options
  7273. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7274. [_LT_SET_OPTION([$1], _LT_Option)])
  7275. m4_if([$1],[LT_INIT],[
  7276. dnl
  7277. dnl Simply set some default values (i.e off) if boolean options were not
  7278. dnl specified:
  7279. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7280. ])
  7281. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7282. ])
  7283. dnl
  7284. dnl If no reference was made to various pairs of opposing options, then
  7285. dnl we run the default mode handler for the pair. For example, if neither
  7286. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7287. dnl archives by default:
  7288. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7289. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7290. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7291. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7292. [_LT_ENABLE_FAST_INSTALL])
  7293. ])
  7294. ])# _LT_SET_OPTIONS
  7295. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7296. # -----------------------------------------
  7297. m4_define([_LT_MANGLE_DEFUN],
  7298. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7299. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7300. # -----------------------------------------------
  7301. m4_define([LT_OPTION_DEFINE],
  7302. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7303. ])# LT_OPTION_DEFINE
  7304. # dlopen
  7305. # ------
  7306. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7307. ])
  7308. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7309. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7310. AC_DIAGNOSE([obsolete],
  7311. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7312. put the `dlopen' option into LT_INIT's first parameter.])
  7313. ])
  7314. dnl aclocal-1.4 backwards compatibility:
  7315. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7316. # win32-dll
  7317. # ---------
  7318. # Declare package support for building win32 dll's.
  7319. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7320. [enable_win32_dll=yes
  7321. case $host in
  7322. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7323. AC_CHECK_TOOL(AS, as, false)
  7324. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7325. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7326. ;;
  7327. esac
  7328. test -z "$AS" && AS=as
  7329. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7330. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7331. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7332. test -z "$OBJDUMP" && OBJDUMP=objdump
  7333. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7334. ])# win32-dll
  7335. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7336. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7337. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7338. AC_DIAGNOSE([obsolete],
  7339. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7340. put the `win32-dll' option into LT_INIT's first parameter.])
  7341. ])
  7342. dnl aclocal-1.4 backwards compatibility:
  7343. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7344. # _LT_ENABLE_SHARED([DEFAULT])
  7345. # ----------------------------
  7346. # implement the --enable-shared flag, and supports the `shared' and
  7347. # `disable-shared' LT_INIT options.
  7348. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7349. m4_define([_LT_ENABLE_SHARED],
  7350. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7351. AC_ARG_ENABLE([shared],
  7352. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7353. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7354. [p=${PACKAGE-default}
  7355. case $enableval in
  7356. yes) enable_shared=yes ;;
  7357. no) enable_shared=no ;;
  7358. *)
  7359. enable_shared=no
  7360. # Look at the argument we got. We use all the common list separators.
  7361. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7362. for pkg in $enableval; do
  7363. IFS="$lt_save_ifs"
  7364. if test "X$pkg" = "X$p"; then
  7365. enable_shared=yes
  7366. fi
  7367. done
  7368. IFS="$lt_save_ifs"
  7369. ;;
  7370. esac],
  7371. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7372. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7373. [Whether or not to build shared libraries])
  7374. ])# _LT_ENABLE_SHARED
  7375. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7376. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7377. # Old names:
  7378. AC_DEFUN([AC_ENABLE_SHARED],
  7379. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7380. ])
  7381. AC_DEFUN([AC_DISABLE_SHARED],
  7382. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7383. ])
  7384. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7385. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7386. dnl aclocal-1.4 backwards compatibility:
  7387. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7388. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7389. # _LT_ENABLE_STATIC([DEFAULT])
  7390. # ----------------------------
  7391. # implement the --enable-static flag, and support the `static' and
  7392. # `disable-static' LT_INIT options.
  7393. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7394. m4_define([_LT_ENABLE_STATIC],
  7395. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7396. AC_ARG_ENABLE([static],
  7397. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7398. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7399. [p=${PACKAGE-default}
  7400. case $enableval in
  7401. yes) enable_static=yes ;;
  7402. no) enable_static=no ;;
  7403. *)
  7404. enable_static=no
  7405. # Look at the argument we got. We use all the common list separators.
  7406. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7407. for pkg in $enableval; do
  7408. IFS="$lt_save_ifs"
  7409. if test "X$pkg" = "X$p"; then
  7410. enable_static=yes
  7411. fi
  7412. done
  7413. IFS="$lt_save_ifs"
  7414. ;;
  7415. esac],
  7416. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7417. _LT_DECL([build_old_libs], [enable_static], [0],
  7418. [Whether or not to build static libraries])
  7419. ])# _LT_ENABLE_STATIC
  7420. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7421. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7422. # Old names:
  7423. AC_DEFUN([AC_ENABLE_STATIC],
  7424. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7425. ])
  7426. AC_DEFUN([AC_DISABLE_STATIC],
  7427. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7428. ])
  7429. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7430. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7431. dnl aclocal-1.4 backwards compatibility:
  7432. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7433. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7434. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7435. # ----------------------------------
  7436. # implement the --enable-fast-install flag, and support the `fast-install'
  7437. # and `disable-fast-install' LT_INIT options.
  7438. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7439. m4_define([_LT_ENABLE_FAST_INSTALL],
  7440. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7441. AC_ARG_ENABLE([fast-install],
  7442. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7443. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7444. [p=${PACKAGE-default}
  7445. case $enableval in
  7446. yes) enable_fast_install=yes ;;
  7447. no) enable_fast_install=no ;;
  7448. *)
  7449. enable_fast_install=no
  7450. # Look at the argument we got. We use all the common list separators.
  7451. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7452. for pkg in $enableval; do
  7453. IFS="$lt_save_ifs"
  7454. if test "X$pkg" = "X$p"; then
  7455. enable_fast_install=yes
  7456. fi
  7457. done
  7458. IFS="$lt_save_ifs"
  7459. ;;
  7460. esac],
  7461. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7462. _LT_DECL([fast_install], [enable_fast_install], [0],
  7463. [Whether or not to optimize for fast installation])dnl
  7464. ])# _LT_ENABLE_FAST_INSTALL
  7465. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7466. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7467. # Old names:
  7468. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7469. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7470. AC_DIAGNOSE([obsolete],
  7471. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7472. the `fast-install' option into LT_INIT's first parameter.])
  7473. ])
  7474. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7475. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7476. AC_DIAGNOSE([obsolete],
  7477. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7478. the `disable-fast-install' option into LT_INIT's first parameter.])
  7479. ])
  7480. dnl aclocal-1.4 backwards compatibility:
  7481. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7482. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7483. # _LT_WITH_PIC([MODE])
  7484. # --------------------
  7485. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7486. # LT_INIT options.
  7487. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7488. m4_define([_LT_WITH_PIC],
  7489. [AC_ARG_WITH([pic],
  7490. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7491. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7492. [lt_p=${PACKAGE-default}
  7493. case $withval in
  7494. yes|no) pic_mode=$withval ;;
  7495. *)
  7496. pic_mode=default
  7497. # Look at the argument we got. We use all the common list separators.
  7498. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7499. for lt_pkg in $withval; do
  7500. IFS="$lt_save_ifs"
  7501. if test "X$lt_pkg" = "X$lt_p"; then
  7502. pic_mode=yes
  7503. fi
  7504. done
  7505. IFS="$lt_save_ifs"
  7506. ;;
  7507. esac],
  7508. [pic_mode=default])
  7509. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7510. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7511. ])# _LT_WITH_PIC
  7512. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7513. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7514. # Old name:
  7515. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7516. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7517. AC_DIAGNOSE([obsolete],
  7518. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7519. put the `pic-only' option into LT_INIT's first parameter.])
  7520. ])
  7521. dnl aclocal-1.4 backwards compatibility:
  7522. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7523. m4_define([_LTDL_MODE], [])
  7524. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7525. [m4_define([_LTDL_MODE], [nonrecursive])])
  7526. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7527. [m4_define([_LTDL_MODE], [recursive])])
  7528. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7529. [m4_define([_LTDL_MODE], [subproject])])
  7530. m4_define([_LTDL_TYPE], [])
  7531. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7532. [m4_define([_LTDL_TYPE], [installable])])
  7533. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7534. [m4_define([_LTDL_TYPE], [convenience])])
  7535. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7536. #
  7537. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7538. # Written by Gary V. Vaughan, 2004
  7539. #
  7540. # This file is free software; the Free Software Foundation gives
  7541. # unlimited permission to copy and/or distribute it, with or without
  7542. # modifications, as long as this notice is preserved.
  7543. # serial 6 ltsugar.m4
  7544. # This is to help aclocal find these macros, as it can't see m4_define.
  7545. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7546. # lt_join(SEP, ARG1, [ARG2...])
  7547. # -----------------------------
  7548. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7549. # associated separator.
  7550. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7551. # versions in m4sugar had bugs.
  7552. m4_define([lt_join],
  7553. [m4_if([$#], [1], [],
  7554. [$#], [2], [[$2]],
  7555. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7556. m4_define([_lt_join],
  7557. [m4_if([$#$2], [2], [],
  7558. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7559. # lt_car(LIST)
  7560. # lt_cdr(LIST)
  7561. # ------------
  7562. # Manipulate m4 lists.
  7563. # These macros are necessary as long as will still need to support
  7564. # Autoconf-2.59 which quotes differently.
  7565. m4_define([lt_car], [[$1]])
  7566. m4_define([lt_cdr],
  7567. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7568. [$#], 1, [],
  7569. [m4_dquote(m4_shift($@))])])
  7570. m4_define([lt_unquote], $1)
  7571. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7572. # ------------------------------------------
  7573. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7574. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7575. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7576. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7577. # than defined and empty).
  7578. #
  7579. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7580. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7581. m4_define([lt_append],
  7582. [m4_define([$1],
  7583. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7584. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7585. # ----------------------------------------------------------
  7586. # Produce a SEP delimited list of all paired combinations of elements of
  7587. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7588. # has the form PREFIXmINFIXSUFFIXn.
  7589. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7590. m4_define([lt_combine],
  7591. [m4_if(m4_eval([$# > 3]), [1],
  7592. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7593. [[m4_foreach([_Lt_prefix], [$2],
  7594. [m4_foreach([_Lt_suffix],
  7595. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7596. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7597. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7598. # -----------------------------------------------------------------------
  7599. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7600. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7601. m4_define([lt_if_append_uniq],
  7602. [m4_ifdef([$1],
  7603. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7604. [lt_append([$1], [$2], [$3])$4],
  7605. [$5])],
  7606. [lt_append([$1], [$2], [$3])$4])])
  7607. # lt_dict_add(DICT, KEY, VALUE)
  7608. # -----------------------------
  7609. m4_define([lt_dict_add],
  7610. [m4_define([$1($2)], [$3])])
  7611. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7612. # --------------------------------------------
  7613. m4_define([lt_dict_add_subkey],
  7614. [m4_define([$1($2:$3)], [$4])])
  7615. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7616. # ----------------------------------
  7617. m4_define([lt_dict_fetch],
  7618. [m4_ifval([$3],
  7619. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7620. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7621. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7622. # -----------------------------------------------------------------
  7623. m4_define([lt_if_dict_fetch],
  7624. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7625. [$5],
  7626. [$6])])
  7627. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7628. # --------------------------------------------------------------
  7629. m4_define([lt_dict_filter],
  7630. [m4_if([$5], [], [],
  7631. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7632. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7633. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7634. ])
  7635. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7636. #
  7637. # Copyright (C) 2004 Free Software Foundation, Inc.
  7638. # Written by Scott James Remnant, 2004
  7639. #
  7640. # This file is free software; the Free Software Foundation gives
  7641. # unlimited permission to copy and/or distribute it, with or without
  7642. # modifications, as long as this notice is preserved.
  7643. # @configure_input@
  7644. # serial 3337 ltversion.m4
  7645. # This file is part of GNU Libtool
  7646. m4_define([LT_PACKAGE_VERSION], [2.4.2])
  7647. m4_define([LT_PACKAGE_REVISION], [1.3337])
  7648. AC_DEFUN([LTVERSION_VERSION],
  7649. [macro_version='2.4.2'
  7650. macro_revision='1.3337'
  7651. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7652. _LT_DECL(, macro_revision, 0)
  7653. ])
  7654. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7655. #
  7656. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  7657. # Written by Scott James Remnant, 2004.
  7658. #
  7659. # This file is free software; the Free Software Foundation gives
  7660. # unlimited permission to copy and/or distribute it, with or without
  7661. # modifications, as long as this notice is preserved.
  7662. # serial 5 lt~obsolete.m4
  7663. # These exist entirely to fool aclocal when bootstrapping libtool.
  7664. #
  7665. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7666. # which have later been changed to m4_define as they aren't part of the
  7667. # exported API, or moved to Autoconf or Automake where they belong.
  7668. #
  7669. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7670. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7671. # using a macro with the same name in our local m4/libtool.m4 it'll
  7672. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7673. # and doesn't know about Autoconf macros at all.)
  7674. #
  7675. # So we provide this file, which has a silly filename so it's always
  7676. # included after everything else. This provides aclocal with the
  7677. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7678. # because those macros already exist, or will be overwritten later.
  7679. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7680. #
  7681. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7682. # Yes, that means every name once taken will need to remain here until
  7683. # we give up compatibility with versions before 1.7, at which point
  7684. # we need to keep only those names which we still refer to.
  7685. # This is to help aclocal find these macros, as it can't see m4_define.
  7686. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7687. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7688. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7689. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7690. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7691. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7692. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7693. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7694. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7695. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7696. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7697. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7698. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7699. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7700. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7701. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7702. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7703. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7704. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7705. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7706. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7707. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7708. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7709. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7710. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7711. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7712. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7713. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7714. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7715. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7716. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7717. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7718. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7719. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7720. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7721. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7722. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7723. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7724. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7725. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7726. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7727. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7728. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7729. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7730. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7731. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7732. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7733. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7734. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7735. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7736. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7737. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7738. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7739. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7740. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7741. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7742. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7743. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7744. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7745. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7746. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7747. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7748. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
  7749. # Foundation, Inc.
  7750. #
  7751. # This file is free software; the Free Software Foundation
  7752. # gives unlimited permission to copy and/or distribute it,
  7753. # with or without modifications, as long as this notice is preserved.
  7754. # serial 1
  7755. # AM_AUTOMAKE_VERSION(VERSION)
  7756. # ----------------------------
  7757. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7758. # generated from the m4 files accompanying Automake X.Y.
  7759. # (This private macro should not be called outside this file.)
  7760. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7761. [am__api_version='1.11'
  7762. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7763. dnl require some minimum version. Point them to the right macro.
  7764. m4_if([$1], [1.11.6], [],
  7765. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7766. ])
  7767. # _AM_AUTOCONF_VERSION(VERSION)
  7768. # -----------------------------
  7769. # aclocal traces this macro to find the Autoconf version.
  7770. # This is a private macro too. Using m4_define simplifies
  7771. # the logic in aclocal, which can simply ignore this definition.
  7772. m4_define([_AM_AUTOCONF_VERSION], [])
  7773. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7774. # -------------------------------
  7775. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7776. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7777. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7778. [AM_AUTOMAKE_VERSION([1.11.6])dnl
  7779. m4_ifndef([AC_AUTOCONF_VERSION],
  7780. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7781. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7782. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7783. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
  7784. #
  7785. # This file is free software; the Free Software Foundation
  7786. # gives unlimited permission to copy and/or distribute it,
  7787. # with or without modifications, as long as this notice is preserved.
  7788. # serial 1
  7789. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7790. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  7791. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  7792. #
  7793. # Of course, Automake must honor this variable whenever it calls a
  7794. # tool from the auxiliary directory. The problem is that $srcdir (and
  7795. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7796. # depending on how configure is run. This is pretty annoying, since
  7797. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7798. # source directory, any form will work fine, but in subdirectories a
  7799. # relative path needs to be adjusted first.
  7800. #
  7801. # $ac_aux_dir/missing
  7802. # fails when called from a subdirectory if $ac_aux_dir is relative
  7803. # $top_srcdir/$ac_aux_dir/missing
  7804. # fails if $ac_aux_dir is absolute,
  7805. # fails when called from a subdirectory in a VPATH build with
  7806. # a relative $ac_aux_dir
  7807. #
  7808. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7809. # are both prefixed by $srcdir. In an in-source build this is usually
  7810. # harmless because $srcdir is `.', but things will broke when you
  7811. # start a VPATH build or use an absolute $srcdir.
  7812. #
  7813. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7814. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7815. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7816. # and then we would define $MISSING as
  7817. # MISSING="\${SHELL} $am_aux_dir/missing"
  7818. # This will work as long as MISSING is not called from configure, because
  7819. # unfortunately $(top_srcdir) has no meaning in configure.
  7820. # However there are other variables, like CC, which are often used in
  7821. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7822. #
  7823. # Another solution, used here, is to always expand $ac_aux_dir to an
  7824. # absolute PATH. The drawback is that using absolute paths prevent a
  7825. # configured tree to be moved without reconfiguration.
  7826. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7827. [dnl Rely on autoconf to set up CDPATH properly.
  7828. AC_PREREQ([2.50])dnl
  7829. # expand $ac_aux_dir to an absolute path
  7830. am_aux_dir=`cd $ac_aux_dir && pwd`
  7831. ])
  7832. # AM_CONDITIONAL -*- Autoconf -*-
  7833. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  7834. # Free Software Foundation, Inc.
  7835. #
  7836. # This file is free software; the Free Software Foundation
  7837. # gives unlimited permission to copy and/or distribute it,
  7838. # with or without modifications, as long as this notice is preserved.
  7839. # serial 9
  7840. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7841. # -------------------------------------
  7842. # Define a conditional.
  7843. AC_DEFUN([AM_CONDITIONAL],
  7844. [AC_PREREQ(2.52)dnl
  7845. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7846. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7847. AC_SUBST([$1_TRUE])dnl
  7848. AC_SUBST([$1_FALSE])dnl
  7849. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  7850. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  7851. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  7852. if $2; then
  7853. $1_TRUE=
  7854. $1_FALSE='#'
  7855. else
  7856. $1_TRUE='#'
  7857. $1_FALSE=
  7858. fi
  7859. AC_CONFIG_COMMANDS_PRE(
  7860. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  7861. AC_MSG_ERROR([[conditional "$1" was never defined.
  7862. Usually this means the macro was only invoked conditionally.]])
  7863. fi])])
  7864. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
  7865. # 2010, 2011 Free Software Foundation, Inc.
  7866. #
  7867. # This file is free software; the Free Software Foundation
  7868. # gives unlimited permission to copy and/or distribute it,
  7869. # with or without modifications, as long as this notice is preserved.
  7870. # serial 12
  7871. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  7872. # written in clear, in which case automake, when reading aclocal.m4,
  7873. # will think it sees a *use*, and therefore will trigger all it's
  7874. # C support machinery. Also note that it means that autoscan, seeing
  7875. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  7876. # _AM_DEPENDENCIES(NAME)
  7877. # ----------------------
  7878. # See how the compiler implements dependency checking.
  7879. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  7880. # We try a few techniques and use that to set a single cache variable.
  7881. #
  7882. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  7883. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  7884. # dependency, and given that the user is not expected to run this macro,
  7885. # just rely on AC_PROG_CC.
  7886. AC_DEFUN([_AM_DEPENDENCIES],
  7887. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  7888. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  7889. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  7890. AC_REQUIRE([AM_DEP_TRACK])dnl
  7891. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  7892. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  7893. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  7894. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  7895. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  7896. [depcc="$$1" am_compiler_list=])
  7897. AC_CACHE_CHECK([dependency style of $depcc],
  7898. [am_cv_$1_dependencies_compiler_type],
  7899. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7900. # We make a subdir and do the tests there. Otherwise we can end up
  7901. # making bogus files that we don't know about and never remove. For
  7902. # instance it was reported that on HP-UX the gcc test will end up
  7903. # making a dummy file named `D' -- because `-MD' means `put the output
  7904. # in D'.
  7905. rm -rf conftest.dir
  7906. mkdir conftest.dir
  7907. # Copy depcomp to subdir because otherwise we won't find it if we're
  7908. # using a relative directory.
  7909. cp "$am_depcomp" conftest.dir
  7910. cd conftest.dir
  7911. # We will build objects and dependencies in a subdirectory because
  7912. # it helps to detect inapplicable dependency modes. For instance
  7913. # both Tru64's cc and ICC support -MD to output dependencies as a
  7914. # side effect of compilation, but ICC will put the dependencies in
  7915. # the current directory while Tru64 will put them in the object
  7916. # directory.
  7917. mkdir sub
  7918. am_cv_$1_dependencies_compiler_type=none
  7919. if test "$am_compiler_list" = ""; then
  7920. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  7921. fi
  7922. am__universal=false
  7923. m4_case([$1], [CC],
  7924. [case " $depcc " in #(
  7925. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7926. esac],
  7927. [CXX],
  7928. [case " $depcc " in #(
  7929. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7930. esac])
  7931. for depmode in $am_compiler_list; do
  7932. # Setup a source with many dependencies, because some compilers
  7933. # like to wrap large dependency lists on column 80 (with \), and
  7934. # we should not choose a depcomp mode which is confused by this.
  7935. #
  7936. # We need to recreate these files for each test, as the compiler may
  7937. # overwrite some of them when testing with obscure command lines.
  7938. # This happens at least with the AIX C compiler.
  7939. : > sub/conftest.c
  7940. for i in 1 2 3 4 5 6; do
  7941. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7942. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7943. # Solaris 8's {/usr,}/bin/sh.
  7944. touch sub/conftst$i.h
  7945. done
  7946. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7947. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7948. # mode. It turns out that the SunPro C++ compiler does not properly
  7949. # handle `-M -o', and we need to detect this. Also, some Intel
  7950. # versions had trouble with output in subdirs
  7951. am__obj=sub/conftest.${OBJEXT-o}
  7952. am__minus_obj="-o $am__obj"
  7953. case $depmode in
  7954. gcc)
  7955. # This depmode causes a compiler race in universal mode.
  7956. test "$am__universal" = false || continue
  7957. ;;
  7958. nosideeffect)
  7959. # after this tag, mechanisms are not by side-effect, so they'll
  7960. # only be used when explicitly requested
  7961. if test "x$enable_dependency_tracking" = xyes; then
  7962. continue
  7963. else
  7964. break
  7965. fi
  7966. ;;
  7967. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  7968. # This compiler won't grok `-c -o', but also, the minuso test has
  7969. # not run yet. These depmodes are late enough in the game, and
  7970. # so weak that their functioning should not be impacted.
  7971. am__obj=conftest.${OBJEXT-o}
  7972. am__minus_obj=
  7973. ;;
  7974. none) break ;;
  7975. esac
  7976. if depmode=$depmode \
  7977. source=sub/conftest.c object=$am__obj \
  7978. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7979. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7980. >/dev/null 2>conftest.err &&
  7981. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7982. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7983. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7984. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7985. # icc doesn't choke on unknown options, it will just issue warnings
  7986. # or remarks (even with -Werror). So we grep stderr for any message
  7987. # that says an option was ignored or not supported.
  7988. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7989. # icc: Command line warning: ignoring option '-M'; no argument required
  7990. # The diagnosis changed in icc 8.0:
  7991. # icc: Command line remark: option '-MP' not supported
  7992. if (grep 'ignoring option' conftest.err ||
  7993. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7994. am_cv_$1_dependencies_compiler_type=$depmode
  7995. break
  7996. fi
  7997. fi
  7998. done
  7999. cd ..
  8000. rm -rf conftest.dir
  8001. else
  8002. am_cv_$1_dependencies_compiler_type=none
  8003. fi
  8004. ])
  8005. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8006. AM_CONDITIONAL([am__fastdep$1], [
  8007. test "x$enable_dependency_tracking" != xno \
  8008. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8009. ])
  8010. # AM_SET_DEPDIR
  8011. # -------------
  8012. # Choose a directory name for dependency files.
  8013. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  8014. AC_DEFUN([AM_SET_DEPDIR],
  8015. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8016. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8017. ])
  8018. # AM_DEP_TRACK
  8019. # ------------
  8020. AC_DEFUN([AM_DEP_TRACK],
  8021. [AC_ARG_ENABLE(dependency-tracking,
  8022. [ --disable-dependency-tracking speeds up one-time build
  8023. --enable-dependency-tracking do not reject slow dependency extractors])
  8024. if test "x$enable_dependency_tracking" != xno; then
  8025. am_depcomp="$ac_aux_dir/depcomp"
  8026. AMDEPBACKSLASH='\'
  8027. am__nodep='_no'
  8028. fi
  8029. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8030. AC_SUBST([AMDEPBACKSLASH])dnl
  8031. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8032. AC_SUBST([am__nodep])dnl
  8033. _AM_SUBST_NOTMAKE([am__nodep])dnl
  8034. ])
  8035. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8036. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  8037. # Free Software Foundation, Inc.
  8038. #
  8039. # This file is free software; the Free Software Foundation
  8040. # gives unlimited permission to copy and/or distribute it,
  8041. # with or without modifications, as long as this notice is preserved.
  8042. #serial 5
  8043. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8044. # ------------------------------
  8045. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8046. [{
  8047. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  8048. # are listed without --file. Let's play safe and only enable the eval
  8049. # if we detect the quoting.
  8050. case $CONFIG_FILES in
  8051. *\'*) eval set x "$CONFIG_FILES" ;;
  8052. *) set x $CONFIG_FILES ;;
  8053. esac
  8054. shift
  8055. for mf
  8056. do
  8057. # Strip MF so we end up with the name of the file.
  8058. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8059. # Check whether this is an Automake generated Makefile or not.
  8060. # We used to match only the files named `Makefile.in', but
  8061. # some people rename them; so instead we look at the file content.
  8062. # Grep'ing the first line is not enough: some people post-process
  8063. # each Makefile.in and add a new line on top of each file to say so.
  8064. # Grep'ing the whole file is not good either: AIX grep has a line
  8065. # limit of 2048, but all sed's we know have understand at least 4000.
  8066. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8067. dirpart=`AS_DIRNAME("$mf")`
  8068. else
  8069. continue
  8070. fi
  8071. # Extract the definition of DEPDIR, am__include, and am__quote
  8072. # from the Makefile without running `make'.
  8073. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8074. test -z "$DEPDIR" && continue
  8075. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8076. test -z "am__include" && continue
  8077. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8078. # When using ansi2knr, U may be empty or an underscore; expand it
  8079. U=`sed -n 's/^U = //p' < "$mf"`
  8080. # Find all dependency output files, they are included files with
  8081. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8082. # simplest approach to changing $(DEPDIR) to its actual value in the
  8083. # expansion.
  8084. for file in `sed -n "
  8085. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8086. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8087. # Make sure the directory exists.
  8088. test -f "$dirpart/$file" && continue
  8089. fdir=`AS_DIRNAME(["$file"])`
  8090. AS_MKDIR_P([$dirpart/$fdir])
  8091. # echo "creating $dirpart/$file"
  8092. echo '# dummy' > "$dirpart/$file"
  8093. done
  8094. done
  8095. }
  8096. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8097. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8098. # -----------------------------
  8099. # This macro should only be invoked once -- use via AC_REQUIRE.
  8100. #
  8101. # This code is only required when automatic dependency tracking
  8102. # is enabled. FIXME. This creates each `.P' file that we will
  8103. # need in order to bootstrap the dependency handling code.
  8104. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8105. [AC_CONFIG_COMMANDS([depfiles],
  8106. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8107. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8108. ])
  8109. # Do all the work for Automake. -*- Autoconf -*-
  8110. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8111. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  8112. #
  8113. # This file is free software; the Free Software Foundation
  8114. # gives unlimited permission to copy and/or distribute it,
  8115. # with or without modifications, as long as this notice is preserved.
  8116. # serial 16
  8117. # This macro actually does too much. Some checks are only needed if
  8118. # your package does certain things. But this isn't really a big deal.
  8119. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8120. # AM_INIT_AUTOMAKE([OPTIONS])
  8121. # -----------------------------------------------
  8122. # The call with PACKAGE and VERSION arguments is the old style
  8123. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8124. # and VERSION should now be passed to AC_INIT and removed from
  8125. # the call to AM_INIT_AUTOMAKE.
  8126. # We support both call styles for the transition. After
  8127. # the next Automake release, Autoconf can make the AC_INIT
  8128. # arguments mandatory, and then we can depend on a new Autoconf
  8129. # release and drop the old call support.
  8130. AC_DEFUN([AM_INIT_AUTOMAKE],
  8131. [AC_PREREQ([2.62])dnl
  8132. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8133. dnl the ones we care about.
  8134. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8135. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8136. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8137. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8138. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8139. # is not polluted with repeated "-I."
  8140. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8141. # test to see if srcdir already configured
  8142. if test -f $srcdir/config.status; then
  8143. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8144. fi
  8145. fi
  8146. # test whether we have cygpath
  8147. if test -z "$CYGPATH_W"; then
  8148. if (cygpath --version) >/dev/null 2>/dev/null; then
  8149. CYGPATH_W='cygpath -w'
  8150. else
  8151. CYGPATH_W=echo
  8152. fi
  8153. fi
  8154. AC_SUBST([CYGPATH_W])
  8155. # Define the identity of the package.
  8156. dnl Distinguish between old-style and new-style calls.
  8157. m4_ifval([$2],
  8158. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8159. AC_SUBST([PACKAGE], [$1])dnl
  8160. AC_SUBST([VERSION], [$2])],
  8161. [_AM_SET_OPTIONS([$1])dnl
  8162. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8163. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  8164. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8165. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8166. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8167. _AM_IF_OPTION([no-define],,
  8168. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8169. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8170. # Some tools Automake needs.
  8171. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8172. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8173. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8174. AM_MISSING_PROG(AUTOCONF, autoconf)
  8175. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8176. AM_MISSING_PROG(AUTOHEADER, autoheader)
  8177. AM_MISSING_PROG(MAKEINFO, makeinfo)
  8178. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8179. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8180. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8181. # We need awk for the "check" target. The system "awk" is bad on
  8182. # some platforms.
  8183. AC_REQUIRE([AC_PROG_AWK])dnl
  8184. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8185. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8186. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8187. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8188. [_AM_PROG_TAR([v7])])])
  8189. _AM_IF_OPTION([no-dependencies],,
  8190. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8191. [_AM_DEPENDENCIES(CC)],
  8192. [define([AC_PROG_CC],
  8193. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8194. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8195. [_AM_DEPENDENCIES(CXX)],
  8196. [define([AC_PROG_CXX],
  8197. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8198. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8199. [_AM_DEPENDENCIES(OBJC)],
  8200. [define([AC_PROG_OBJC],
  8201. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  8202. ])
  8203. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  8204. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  8205. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  8206. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8207. AC_CONFIG_COMMANDS_PRE(dnl
  8208. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8209. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8210. ])
  8211. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8212. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8213. dnl mangled by Autoconf and run in a shell conditional statement.
  8214. m4_define([_AC_COMPILER_EXEEXT],
  8215. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8216. # When config.status generates a header, we must update the stamp-h file.
  8217. # This file resides in the same directory as the config header
  8218. # that is generated. The stamp files are numbered to have different names.
  8219. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8220. # loop where config.status creates the headers, so we can generate
  8221. # our stamp files there.
  8222. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8223. [# Compute $1's index in $config_headers.
  8224. _am_arg=$1
  8225. _am_stamp_count=1
  8226. for _am_header in $config_headers :; do
  8227. case $_am_header in
  8228. $_am_arg | $_am_arg:* )
  8229. break ;;
  8230. * )
  8231. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8232. esac
  8233. done
  8234. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8235. # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
  8236. # Inc.
  8237. #
  8238. # This file is free software; the Free Software Foundation
  8239. # gives unlimited permission to copy and/or distribute it,
  8240. # with or without modifications, as long as this notice is preserved.
  8241. # serial 1
  8242. # AM_PROG_INSTALL_SH
  8243. # ------------------
  8244. # Define $install_sh.
  8245. AC_DEFUN([AM_PROG_INSTALL_SH],
  8246. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8247. if test x"${install_sh}" != xset; then
  8248. case $am_aux_dir in
  8249. *\ * | *\ *)
  8250. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8251. *)
  8252. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8253. esac
  8254. fi
  8255. AC_SUBST(install_sh)])
  8256. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  8257. #
  8258. # This file is free software; the Free Software Foundation
  8259. # gives unlimited permission to copy and/or distribute it,
  8260. # with or without modifications, as long as this notice is preserved.
  8261. # serial 2
  8262. # Check whether the underlying file-system supports filenames
  8263. # with a leading dot. For instance MS-DOS doesn't.
  8264. AC_DEFUN([AM_SET_LEADING_DOT],
  8265. [rm -rf .tst 2>/dev/null
  8266. mkdir .tst 2>/dev/null
  8267. if test -d .tst; then
  8268. am__leading_dot=.
  8269. else
  8270. am__leading_dot=_
  8271. fi
  8272. rmdir .tst 2>/dev/null
  8273. AC_SUBST([am__leading_dot])])
  8274. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  8275. # From Jim Meyering
  8276. # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
  8277. # 2011 Free Software Foundation, Inc.
  8278. #
  8279. # This file is free software; the Free Software Foundation
  8280. # gives unlimited permission to copy and/or distribute it,
  8281. # with or without modifications, as long as this notice is preserved.
  8282. # serial 5
  8283. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  8284. # ----------------------------------
  8285. # Control maintainer-specific portions of Makefiles.
  8286. # Default is to disable them, unless `enable' is passed literally.
  8287. # For symmetry, `disable' may be passed as well. Anyway, the user
  8288. # can override the default with the --enable/--disable switch.
  8289. AC_DEFUN([AM_MAINTAINER_MODE],
  8290. [m4_case(m4_default([$1], [disable]),
  8291. [enable], [m4_define([am_maintainer_other], [disable])],
  8292. [disable], [m4_define([am_maintainer_other], [enable])],
  8293. [m4_define([am_maintainer_other], [enable])
  8294. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  8295. AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  8296. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  8297. AC_ARG_ENABLE([maintainer-mode],
  8298. [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  8299. (and sometimes confusing) to the casual installer],
  8300. [USE_MAINTAINER_MODE=$enableval],
  8301. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  8302. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  8303. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  8304. MAINT=$MAINTAINER_MODE_TRUE
  8305. AC_SUBST([MAINT])dnl
  8306. ]
  8307. )
  8308. AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  8309. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8310. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  8311. #
  8312. # This file is free software; the Free Software Foundation
  8313. # gives unlimited permission to copy and/or distribute it,
  8314. # with or without modifications, as long as this notice is preserved.
  8315. # serial 4
  8316. # AM_MAKE_INCLUDE()
  8317. # -----------------
  8318. # Check to see how make treats includes.
  8319. AC_DEFUN([AM_MAKE_INCLUDE],
  8320. [am_make=${MAKE-make}
  8321. cat > confinc << 'END'
  8322. am__doit:
  8323. @echo this is the am__doit target
  8324. .PHONY: am__doit
  8325. END
  8326. # If we don't find an include directive, just comment out the code.
  8327. AC_MSG_CHECKING([for style of include used by $am_make])
  8328. am__include="#"
  8329. am__quote=
  8330. _am_result=none
  8331. # First try GNU make style include.
  8332. echo "include confinc" > confmf
  8333. # Ignore all kinds of additional output from `make'.
  8334. case `$am_make -s -f confmf 2> /dev/null` in #(
  8335. *the\ am__doit\ target*)
  8336. am__include=include
  8337. am__quote=
  8338. _am_result=GNU
  8339. ;;
  8340. esac
  8341. # Now try BSD make style include.
  8342. if test "$am__include" = "#"; then
  8343. echo '.include "confinc"' > confmf
  8344. case `$am_make -s -f confmf 2> /dev/null` in #(
  8345. *the\ am__doit\ target*)
  8346. am__include=.include
  8347. am__quote="\""
  8348. _am_result=BSD
  8349. ;;
  8350. esac
  8351. fi
  8352. AC_SUBST([am__include])
  8353. AC_SUBST([am__quote])
  8354. AC_MSG_RESULT([$_am_result])
  8355. rm -f confinc confmf
  8356. ])
  8357. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8358. # Free Software Foundation, Inc.
  8359. #
  8360. # This file is free software; the Free Software Foundation
  8361. # gives unlimited permission to copy and/or distribute it,
  8362. # with or without modifications, as long as this notice is preserved.
  8363. # serial 6
  8364. # AM_PROG_CC_C_O
  8365. # --------------
  8366. # Like AC_PROG_CC_C_O, but changed for automake.
  8367. AC_DEFUN([AM_PROG_CC_C_O],
  8368. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  8369. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8370. AC_REQUIRE_AUX_FILE([compile])dnl
  8371. # FIXME: we rely on the cache variable name because
  8372. # there is no other way.
  8373. set dummy $CC
  8374. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  8375. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  8376. if test "$am_t" != yes; then
  8377. # Losing compiler, so override with the script.
  8378. # FIXME: It is wrong to rewrite CC.
  8379. # But if we don't then we get into trouble of one sort or another.
  8380. # A longer-term fix would be to have automake use am__CC in this case,
  8381. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  8382. CC="$am_aux_dir/compile $CC"
  8383. fi
  8384. dnl Make sure AC_PROG_CC is never called again, or it will override our
  8385. dnl setting of CC.
  8386. m4_define([AC_PROG_CC],
  8387. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  8388. ])
  8389. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8390. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8391. # Free Software Foundation, Inc.
  8392. #
  8393. # This file is free software; the Free Software Foundation
  8394. # gives unlimited permission to copy and/or distribute it,
  8395. # with or without modifications, as long as this notice is preserved.
  8396. # serial 6
  8397. # AM_MISSING_PROG(NAME, PROGRAM)
  8398. # ------------------------------
  8399. AC_DEFUN([AM_MISSING_PROG],
  8400. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8401. $1=${$1-"${am_missing_run}$2"}
  8402. AC_SUBST($1)])
  8403. # AM_MISSING_HAS_RUN
  8404. # ------------------
  8405. # Define MISSING if not defined so far and test if it supports --run.
  8406. # If it does, set am_missing_run to use it, otherwise, to nothing.
  8407. AC_DEFUN([AM_MISSING_HAS_RUN],
  8408. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8409. AC_REQUIRE_AUX_FILE([missing])dnl
  8410. if test x"${MISSING+set}" != xset; then
  8411. case $am_aux_dir in
  8412. *\ * | *\ *)
  8413. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8414. *)
  8415. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8416. esac
  8417. fi
  8418. # Use eval to expand $SHELL
  8419. if eval "$MISSING --run true"; then
  8420. am_missing_run="$MISSING --run "
  8421. else
  8422. am_missing_run=
  8423. AC_MSG_WARN([`missing' script is too old or missing])
  8424. fi
  8425. ])
  8426. # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
  8427. # Inc.
  8428. #
  8429. # This file is free software; the Free Software Foundation
  8430. # gives unlimited permission to copy and/or distribute it,
  8431. # with or without modifications, as long as this notice is preserved.
  8432. # serial 1
  8433. # AM_PROG_MKDIR_P
  8434. # ---------------
  8435. # Check for `mkdir -p'.
  8436. AC_DEFUN([AM_PROG_MKDIR_P],
  8437. [AC_PREREQ([2.60])dnl
  8438. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8439. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  8440. dnl while keeping a definition of mkdir_p for backward compatibility.
  8441. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  8442. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  8443. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  8444. dnl adjustment using top_builddir (which is defined more often than
  8445. dnl MKDIR_P).
  8446. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  8447. case $mkdir_p in
  8448. [[\\/$]]* | ?:[[\\/]]*) ;;
  8449. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8450. esac
  8451. ])
  8452. # Helper functions for option handling. -*- Autoconf -*-
  8453. # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
  8454. # Foundation, Inc.
  8455. #
  8456. # This file is free software; the Free Software Foundation
  8457. # gives unlimited permission to copy and/or distribute it,
  8458. # with or without modifications, as long as this notice is preserved.
  8459. # serial 5
  8460. # _AM_MANGLE_OPTION(NAME)
  8461. # -----------------------
  8462. AC_DEFUN([_AM_MANGLE_OPTION],
  8463. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8464. # _AM_SET_OPTION(NAME)
  8465. # --------------------
  8466. # Set option NAME. Presently that only means defining a flag for this option.
  8467. AC_DEFUN([_AM_SET_OPTION],
  8468. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  8469. # _AM_SET_OPTIONS(OPTIONS)
  8470. # ------------------------
  8471. # OPTIONS is a space-separated list of Automake options.
  8472. AC_DEFUN([_AM_SET_OPTIONS],
  8473. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8474. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8475. # -------------------------------------------
  8476. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8477. AC_DEFUN([_AM_IF_OPTION],
  8478. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8479. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8480. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  8481. # Free Software Foundation, Inc.
  8482. #
  8483. # This file is free software; the Free Software Foundation
  8484. # gives unlimited permission to copy and/or distribute it,
  8485. # with or without modifications, as long as this notice is preserved.
  8486. # serial 5
  8487. # AM_SANITY_CHECK
  8488. # ---------------
  8489. AC_DEFUN([AM_SANITY_CHECK],
  8490. [AC_MSG_CHECKING([whether build environment is sane])
  8491. # Just in case
  8492. sleep 1
  8493. echo timestamp > conftest.file
  8494. # Reject unsafe characters in $srcdir or the absolute working directory
  8495. # name. Accept space and tab only in the latter.
  8496. am_lf='
  8497. '
  8498. case `pwd` in
  8499. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8500. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8501. esac
  8502. case $srcdir in
  8503. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8504. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  8505. esac
  8506. # Do `set' in a subshell so we don't clobber the current shell's
  8507. # arguments. Must try -L first in case configure is actually a
  8508. # symlink; some systems play weird games with the mod time of symlinks
  8509. # (eg FreeBSD returns the mod time of the symlink's containing
  8510. # directory).
  8511. if (
  8512. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8513. if test "$[*]" = "X"; then
  8514. # -L didn't work.
  8515. set X `ls -t "$srcdir/configure" conftest.file`
  8516. fi
  8517. rm -f conftest.file
  8518. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8519. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8520. # If neither matched, then we have a broken ls. This can happen
  8521. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8522. # broken ls alias from the environment. This has actually
  8523. # happened. Such a system could not be considered "sane".
  8524. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8525. alias in your environment])
  8526. fi
  8527. test "$[2]" = conftest.file
  8528. )
  8529. then
  8530. # Ok.
  8531. :
  8532. else
  8533. AC_MSG_ERROR([newly created file is older than distributed files!
  8534. Check your system clock])
  8535. fi
  8536. AC_MSG_RESULT(yes)])
  8537. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
  8538. #
  8539. # This file is free software; the Free Software Foundation
  8540. # gives unlimited permission to copy and/or distribute it,
  8541. # with or without modifications, as long as this notice is preserved.
  8542. # serial 1
  8543. # AM_PROG_INSTALL_STRIP
  8544. # ---------------------
  8545. # One issue with vendor `install' (even GNU) is that you can't
  8546. # specify the program used to strip binaries. This is especially
  8547. # annoying in cross-compiling environments, where the build's strip
  8548. # is unlikely to handle the host's binaries.
  8549. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8550. # always use install-sh in `make install-strip', and initialize
  8551. # STRIPPROG with the value of the STRIP variable (set by the user).
  8552. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8553. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8554. # Installed binaries are usually stripped using `strip' when the user
  8555. # run `make install-strip'. However `strip' might not be the right
  8556. # tool to use in cross-compilation environments, therefore Automake
  8557. # will honor the `STRIP' environment variable to overrule this program.
  8558. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  8559. if test "$cross_compiling" != no; then
  8560. AC_CHECK_TOOL([STRIP], [strip], :)
  8561. fi
  8562. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8563. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8564. # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
  8565. #
  8566. # This file is free software; the Free Software Foundation
  8567. # gives unlimited permission to copy and/or distribute it,
  8568. # with or without modifications, as long as this notice is preserved.
  8569. # serial 3
  8570. # _AM_SUBST_NOTMAKE(VARIABLE)
  8571. # ---------------------------
  8572. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8573. # This macro is traced by Automake.
  8574. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8575. # AM_SUBST_NOTMAKE(VARIABLE)
  8576. # --------------------------
  8577. # Public sister of _AM_SUBST_NOTMAKE.
  8578. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8579. # Check how to create a tarball. -*- Autoconf -*-
  8580. # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
  8581. #
  8582. # This file is free software; the Free Software Foundation
  8583. # gives unlimited permission to copy and/or distribute it,
  8584. # with or without modifications, as long as this notice is preserved.
  8585. # serial 2
  8586. # _AM_PROG_TAR(FORMAT)
  8587. # --------------------
  8588. # Check how to create a tarball in format FORMAT.
  8589. # FORMAT should be one of `v7', `ustar', or `pax'.
  8590. #
  8591. # Substitute a variable $(am__tar) that is a command
  8592. # writing to stdout a FORMAT-tarball containing the directory
  8593. # $tardir.
  8594. # tardir=directory && $(am__tar) > result.tar
  8595. #
  8596. # Substitute a variable $(am__untar) that extract such
  8597. # a tarball read from stdin.
  8598. # $(am__untar) < result.tar
  8599. AC_DEFUN([_AM_PROG_TAR],
  8600. [# Always define AMTAR for backward compatibility. Yes, it's still used
  8601. # in the wild :-( We should find a proper way to deprecate it ...
  8602. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  8603. m4_if([$1], [v7],
  8604. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  8605. [m4_case([$1], [ustar],, [pax],,
  8606. [m4_fatal([Unknown tar format])])
  8607. AC_MSG_CHECKING([how to create a $1 tar archive])
  8608. # Loop over all known methods to create a tar archive until one works.
  8609. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8610. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8611. # Do not fold the above two line into one, because Tru64 sh and
  8612. # Solaris sh will not grok spaces in the rhs of `-'.
  8613. for _am_tool in $_am_tools
  8614. do
  8615. case $_am_tool in
  8616. gnutar)
  8617. for _am_tar in tar gnutar gtar;
  8618. do
  8619. AM_RUN_LOG([$_am_tar --version]) && break
  8620. done
  8621. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8622. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8623. am__untar="$_am_tar -xf -"
  8624. ;;
  8625. plaintar)
  8626. # Must skip GNU tar: if it does not support --format= it doesn't create
  8627. # ustar tarball either.
  8628. (tar --version) >/dev/null 2>&1 && continue
  8629. am__tar='tar chf - "$$tardir"'
  8630. am__tar_='tar chf - "$tardir"'
  8631. am__untar='tar xf -'
  8632. ;;
  8633. pax)
  8634. am__tar='pax -L -x $1 -w "$$tardir"'
  8635. am__tar_='pax -L -x $1 -w "$tardir"'
  8636. am__untar='pax -r'
  8637. ;;
  8638. cpio)
  8639. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8640. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8641. am__untar='cpio -i -H $1 -d'
  8642. ;;
  8643. none)
  8644. am__tar=false
  8645. am__tar_=false
  8646. am__untar=false
  8647. ;;
  8648. esac
  8649. # If the value was cached, stop now. We just wanted to have am__tar
  8650. # and am__untar set.
  8651. test -n "${am_cv_prog_tar_$1}" && break
  8652. # tar/untar a dummy directory, and stop if the command works
  8653. rm -rf conftest.dir
  8654. mkdir conftest.dir
  8655. echo GrepMe > conftest.dir/file
  8656. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8657. rm -rf conftest.dir
  8658. if test -s conftest.tar; then
  8659. AM_RUN_LOG([$am__untar <conftest.tar])
  8660. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8661. fi
  8662. done
  8663. rm -rf conftest.dir
  8664. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8665. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8666. AC_SUBST([am__tar])
  8667. AC_SUBST([am__untar])
  8668. ]) # _AM_PROG_TAR