You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

aclocal.m4 351 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739
  1. # generated automatically by aclocal 1.15 -*- Autoconf -*-
  2. # Copyright (C) 1996-2014 Free Software Foundation, Inc.
  3. # This file is free software; the Free Software Foundation
  4. # gives unlimited permission to copy and/or distribute it,
  5. # with or without modifications, as long as this notice is preserved.
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. # PARTICULAR PURPOSE.
  10. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
  14. [m4_warning([this file was generated for autoconf 2.69.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically 'autoreconf'.])])
  18. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  19. #
  20. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22. # Foundation, Inc.
  23. # Written by Gordon Matzigkeit, 1996
  24. #
  25. # This file is free software; the Free Software Foundation gives
  26. # unlimited permission to copy and/or distribute it, with or without
  27. # modifications, as long as this notice is preserved.
  28. m4_define([_LT_COPYING], [dnl
  29. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  30. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  31. # Foundation, Inc.
  32. # Written by Gordon Matzigkeit, 1996
  33. #
  34. # This file is part of GNU Libtool.
  35. #
  36. # GNU Libtool is free software; you can redistribute it and/or
  37. # modify it under the terms of the GNU General Public License as
  38. # published by the Free Software Foundation; either version 2 of
  39. # the License, or (at your option) any later version.
  40. #
  41. # As a special exception to the GNU General Public License,
  42. # if you distribute this file as part of a program or library that
  43. # is built using GNU Libtool, you may include this file under the
  44. # same distribution terms that you use for the rest of that program.
  45. #
  46. # GNU Libtool is distributed in the hope that it will be useful,
  47. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  48. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  49. # GNU General Public License for more details.
  50. #
  51. # You should have received a copy of the GNU General Public License
  52. # along with GNU Libtool; see the file COPYING. If not, a copy
  53. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  54. # obtained by writing to the Free Software Foundation, Inc.,
  55. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  56. ])
  57. # serial 57 LT_INIT
  58. # LT_PREREQ(VERSION)
  59. # ------------------
  60. # Complain and exit if this libtool version is less that VERSION.
  61. m4_defun([LT_PREREQ],
  62. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  63. [m4_default([$3],
  64. [m4_fatal([Libtool version $1 or higher is required],
  65. 63)])],
  66. [$2])])
  67. # _LT_CHECK_BUILDDIR
  68. # ------------------
  69. # Complain if the absolute build directory name contains unusual characters
  70. m4_defun([_LT_CHECK_BUILDDIR],
  71. [case `pwd` in
  72. *\ * | *\ *)
  73. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  74. esac
  75. ])
  76. # LT_INIT([OPTIONS])
  77. # ------------------
  78. AC_DEFUN([LT_INIT],
  79. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  80. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  81. AC_BEFORE([$0], [LT_LANG])dnl
  82. AC_BEFORE([$0], [LT_OUTPUT])dnl
  83. AC_BEFORE([$0], [LTDL_INIT])dnl
  84. m4_require([_LT_CHECK_BUILDDIR])dnl
  85. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  86. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  87. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  88. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  89. dnl unless we require an AC_DEFUNed macro:
  90. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  91. AC_REQUIRE([LTSUGAR_VERSION])dnl
  92. AC_REQUIRE([LTVERSION_VERSION])dnl
  93. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  94. m4_require([_LT_PROG_LTMAIN])dnl
  95. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  96. dnl Parse OPTIONS
  97. _LT_SET_OPTIONS([$0], [$1])
  98. # This can be used to rebuild libtool when needed
  99. LIBTOOL_DEPS="$ltmain"
  100. # Always use our own libtool.
  101. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  102. AC_SUBST(LIBTOOL)dnl
  103. _LT_SETUP
  104. # Only expand once:
  105. m4_define([LT_INIT])
  106. ])# LT_INIT
  107. # Old names:
  108. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  109. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  110. dnl aclocal-1.4 backwards compatibility:
  111. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  112. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  113. # _LT_CC_BASENAME(CC)
  114. # -------------------
  115. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  116. m4_defun([_LT_CC_BASENAME],
  117. [for cc_temp in $1""; do
  118. case $cc_temp in
  119. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  120. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  121. \-*) ;;
  122. *) break;;
  123. esac
  124. done
  125. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  126. ])
  127. # _LT_FILEUTILS_DEFAULTS
  128. # ----------------------
  129. # It is okay to use these file commands and assume they have been set
  130. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  131. m4_defun([_LT_FILEUTILS_DEFAULTS],
  132. [: ${CP="cp -f"}
  133. : ${MV="mv -f"}
  134. : ${RM="rm -f"}
  135. ])# _LT_FILEUTILS_DEFAULTS
  136. # _LT_SETUP
  137. # ---------
  138. m4_defun([_LT_SETUP],
  139. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  140. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  141. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  142. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  143. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  144. dnl
  145. _LT_DECL([], [host_alias], [0], [The host system])dnl
  146. _LT_DECL([], [host], [0])dnl
  147. _LT_DECL([], [host_os], [0])dnl
  148. dnl
  149. _LT_DECL([], [build_alias], [0], [The build system])dnl
  150. _LT_DECL([], [build], [0])dnl
  151. _LT_DECL([], [build_os], [0])dnl
  152. dnl
  153. AC_REQUIRE([AC_PROG_CC])dnl
  154. AC_REQUIRE([LT_PATH_LD])dnl
  155. AC_REQUIRE([LT_PATH_NM])dnl
  156. dnl
  157. AC_REQUIRE([AC_PROG_LN_S])dnl
  158. test -z "$LN_S" && LN_S="ln -s"
  159. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  160. dnl
  161. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  162. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  163. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  164. dnl
  165. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  166. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  167. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  168. m4_require([_LT_CMD_RELOAD])dnl
  169. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  170. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  171. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  172. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  173. m4_require([_LT_WITH_SYSROOT])dnl
  174. _LT_CONFIG_LIBTOOL_INIT([
  175. # See if we are running on zsh, and set the options which allow our
  176. # commands through without removal of \ escapes INIT.
  177. if test -n "\${ZSH_VERSION+set}" ; then
  178. setopt NO_GLOB_SUBST
  179. fi
  180. ])
  181. if test -n "${ZSH_VERSION+set}" ; then
  182. setopt NO_GLOB_SUBST
  183. fi
  184. _LT_CHECK_OBJDIR
  185. m4_require([_LT_TAG_COMPILER])dnl
  186. case $host_os in
  187. aix3*)
  188. # AIX sometimes has problems with the GCC collect2 program. For some
  189. # reason, if we set the COLLECT_NAMES environment variable, the problems
  190. # vanish in a puff of smoke.
  191. if test "X${COLLECT_NAMES+set}" != Xset; then
  192. COLLECT_NAMES=
  193. export COLLECT_NAMES
  194. fi
  195. ;;
  196. esac
  197. # Global variables:
  198. ofile=libtool
  199. can_build_shared=yes
  200. # All known linkers require a `.a' archive for static linking (except MSVC,
  201. # which needs '.lib').
  202. libext=a
  203. with_gnu_ld="$lt_cv_prog_gnu_ld"
  204. old_CC="$CC"
  205. old_CFLAGS="$CFLAGS"
  206. # Set sane defaults for various variables
  207. test -z "$CC" && CC=cc
  208. test -z "$LTCC" && LTCC=$CC
  209. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  210. test -z "$LD" && LD=ld
  211. test -z "$ac_objext" && ac_objext=o
  212. _LT_CC_BASENAME([$compiler])
  213. # Only perform the check for file, if the check method requires it
  214. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  215. case $deplibs_check_method in
  216. file_magic*)
  217. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  218. _LT_PATH_MAGIC
  219. fi
  220. ;;
  221. esac
  222. # Use C for the default configuration in the libtool script
  223. LT_SUPPORTED_TAG([CC])
  224. _LT_LANG_C_CONFIG
  225. _LT_LANG_DEFAULT_CONFIG
  226. _LT_CONFIG_COMMANDS
  227. ])# _LT_SETUP
  228. # _LT_PREPARE_SED_QUOTE_VARS
  229. # --------------------------
  230. # Define a few sed substitution that help us do robust quoting.
  231. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  232. [# Backslashify metacharacters that are still active within
  233. # double-quoted strings.
  234. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  235. # Same as above, but do not quote variable references.
  236. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  237. # Sed substitution to delay expansion of an escaped shell variable in a
  238. # double_quote_subst'ed string.
  239. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  240. # Sed substitution to delay expansion of an escaped single quote.
  241. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  242. # Sed substitution to avoid accidental globbing in evaled expressions
  243. no_glob_subst='s/\*/\\\*/g'
  244. ])
  245. # _LT_PROG_LTMAIN
  246. # ---------------
  247. # Note that this code is called both from `configure', and `config.status'
  248. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  249. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  250. # so we pass a copy along to make sure it has a sensible value anyway.
  251. m4_defun([_LT_PROG_LTMAIN],
  252. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  253. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  254. ltmain="$ac_aux_dir/ltmain.sh"
  255. ])# _LT_PROG_LTMAIN
  256. # So that we can recreate a full libtool script including additional
  257. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  258. # in macros and then make a single call at the end using the `libtool'
  259. # label.
  260. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  261. # ----------------------------------------
  262. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  263. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  264. [m4_ifval([$1],
  265. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  266. [$1
  267. ])])])
  268. # Initialize.
  269. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  270. # _LT_CONFIG_LIBTOOL([COMMANDS])
  271. # ------------------------------
  272. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  273. m4_define([_LT_CONFIG_LIBTOOL],
  274. [m4_ifval([$1],
  275. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  276. [$1
  277. ])])])
  278. # Initialize.
  279. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  280. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  281. # -----------------------------------------------------
  282. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  283. [_LT_CONFIG_LIBTOOL([$1])
  284. _LT_CONFIG_LIBTOOL_INIT([$2])
  285. ])
  286. # _LT_FORMAT_COMMENT([COMMENT])
  287. # -----------------------------
  288. # Add leading comment marks to the start of each line, and a trailing
  289. # full-stop to the whole comment if one is not present already.
  290. m4_define([_LT_FORMAT_COMMENT],
  291. [m4_ifval([$1], [
  292. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  293. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  294. )])
  295. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  296. # -------------------------------------------------------------------
  297. # CONFIGNAME is the name given to the value in the libtool script.
  298. # VARNAME is the (base) name used in the configure script.
  299. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  300. # VARNAME. Any other value will be used directly.
  301. m4_define([_LT_DECL],
  302. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  303. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  304. [m4_ifval([$1], [$1], [$2])])
  305. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  306. m4_ifval([$4],
  307. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  308. lt_dict_add_subkey([lt_decl_dict], [$2],
  309. [tagged?], [m4_ifval([$5], [yes], [no])])])
  310. ])
  311. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  312. # --------------------------------------------------------
  313. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  314. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  315. # ------------------------------------------------
  316. m4_define([lt_decl_tag_varnames],
  317. [_lt_decl_filter([tagged?], [yes], $@)])
  318. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  319. # ---------------------------------------------------------
  320. m4_define([_lt_decl_filter],
  321. [m4_case([$#],
  322. [0], [m4_fatal([$0: too few arguments: $#])],
  323. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  324. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  325. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  326. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  327. ])
  328. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  329. # --------------------------------------------------
  330. m4_define([lt_decl_quote_varnames],
  331. [_lt_decl_filter([value], [1], $@)])
  332. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  333. # ---------------------------------------------------
  334. m4_define([lt_decl_dquote_varnames],
  335. [_lt_decl_filter([value], [2], $@)])
  336. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  337. # ---------------------------------------------------
  338. m4_define([lt_decl_varnames_tagged],
  339. [m4_assert([$# <= 2])dnl
  340. _$0(m4_quote(m4_default([$1], [[, ]])),
  341. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  342. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  343. m4_define([_lt_decl_varnames_tagged],
  344. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  345. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  346. # ------------------------------------------------
  347. m4_define([lt_decl_all_varnames],
  348. [_$0(m4_quote(m4_default([$1], [[, ]])),
  349. m4_if([$2], [],
  350. m4_quote(lt_decl_varnames),
  351. m4_quote(m4_shift($@))))[]dnl
  352. ])
  353. m4_define([_lt_decl_all_varnames],
  354. [lt_join($@, lt_decl_varnames_tagged([$1],
  355. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  356. ])
  357. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  358. # ------------------------------------
  359. # Quote a variable value, and forward it to `config.status' so that its
  360. # declaration there will have the same value as in `configure'. VARNAME
  361. # must have a single quote delimited value for this to work.
  362. m4_define([_LT_CONFIG_STATUS_DECLARE],
  363. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  364. # _LT_CONFIG_STATUS_DECLARATIONS
  365. # ------------------------------
  366. # We delimit libtool config variables with single quotes, so when
  367. # we write them to config.status, we have to be sure to quote all
  368. # embedded single quotes properly. In configure, this macro expands
  369. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  370. #
  371. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  372. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  373. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  374. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  375. # _LT_LIBTOOL_TAGS
  376. # ----------------
  377. # Output comment and list of tags supported by the script
  378. m4_defun([_LT_LIBTOOL_TAGS],
  379. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  380. available_tags="_LT_TAGS"dnl
  381. ])
  382. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  383. # -----------------------------------
  384. # Extract the dictionary values for VARNAME (optionally with TAG) and
  385. # expand to a commented shell variable setting:
  386. #
  387. # # Some comment about what VAR is for.
  388. # visible_name=$lt_internal_name
  389. m4_define([_LT_LIBTOOL_DECLARE],
  390. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  391. [description])))[]dnl
  392. m4_pushdef([_libtool_name],
  393. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  394. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  395. [0], [_libtool_name=[$]$1],
  396. [1], [_libtool_name=$lt_[]$1],
  397. [2], [_libtool_name=$lt_[]$1],
  398. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  399. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  400. ])
  401. # _LT_LIBTOOL_CONFIG_VARS
  402. # -----------------------
  403. # Produce commented declarations of non-tagged libtool config variables
  404. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  405. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  406. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  407. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  408. [m4_foreach([_lt_var],
  409. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  410. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  411. # _LT_LIBTOOL_TAG_VARS(TAG)
  412. # -------------------------
  413. m4_define([_LT_LIBTOOL_TAG_VARS],
  414. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  415. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  416. # _LT_TAGVAR(VARNAME, [TAGNAME])
  417. # ------------------------------
  418. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  419. # _LT_CONFIG_COMMANDS
  420. # -------------------
  421. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  422. # variables for single and double quote escaping we saved from calls
  423. # to _LT_DECL, we can put quote escaped variables declarations
  424. # into `config.status', and then the shell code to quote escape them in
  425. # for loops in `config.status'. Finally, any additional code accumulated
  426. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  427. m4_defun([_LT_CONFIG_COMMANDS],
  428. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  429. dnl If the libtool generation code has been placed in $CONFIG_LT,
  430. dnl instead of duplicating it all over again into config.status,
  431. dnl then we will have config.status run $CONFIG_LT later, so it
  432. dnl needs to know what name is stored there:
  433. [AC_CONFIG_COMMANDS([libtool],
  434. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  435. dnl If the libtool generation code is destined for config.status,
  436. dnl expand the accumulated commands and init code now:
  437. [AC_CONFIG_COMMANDS([libtool],
  438. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  439. ])#_LT_CONFIG_COMMANDS
  440. # Initialize.
  441. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  442. [
  443. # The HP-UX ksh and POSIX shell print the target directory to stdout
  444. # if CDPATH is set.
  445. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  446. sed_quote_subst='$sed_quote_subst'
  447. double_quote_subst='$double_quote_subst'
  448. delay_variable_subst='$delay_variable_subst'
  449. _LT_CONFIG_STATUS_DECLARATIONS
  450. LTCC='$LTCC'
  451. LTCFLAGS='$LTCFLAGS'
  452. compiler='$compiler_DEFAULT'
  453. # A function that is used when there is no print builtin or printf.
  454. func_fallback_echo ()
  455. {
  456. eval 'cat <<_LTECHO_EOF
  457. \$[]1
  458. _LTECHO_EOF'
  459. }
  460. # Quote evaled strings.
  461. for var in lt_decl_all_varnames([[ \
  462. ]], lt_decl_quote_varnames); do
  463. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  464. *[[\\\\\\\`\\"\\\$]]*)
  465. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  466. ;;
  467. *)
  468. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  469. ;;
  470. esac
  471. done
  472. # Double-quote double-evaled strings.
  473. for var in lt_decl_all_varnames([[ \
  474. ]], lt_decl_dquote_varnames); do
  475. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  476. *[[\\\\\\\`\\"\\\$]]*)
  477. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  478. ;;
  479. *)
  480. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  481. ;;
  482. esac
  483. done
  484. _LT_OUTPUT_LIBTOOL_INIT
  485. ])
  486. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  487. # ------------------------------------
  488. # Generate a child script FILE with all initialization necessary to
  489. # reuse the environment learned by the parent script, and make the
  490. # file executable. If COMMENT is supplied, it is inserted after the
  491. # `#!' sequence but before initialization text begins. After this
  492. # macro, additional text can be appended to FILE to form the body of
  493. # the child script. The macro ends with non-zero status if the
  494. # file could not be fully written (such as if the disk is full).
  495. m4_ifdef([AS_INIT_GENERATED],
  496. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  497. [m4_defun([_LT_GENERATED_FILE_INIT],
  498. [m4_require([AS_PREPARE])]dnl
  499. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  500. [lt_write_fail=0
  501. cat >$1 <<_ASEOF || lt_write_fail=1
  502. #! $SHELL
  503. # Generated by $as_me.
  504. $2
  505. SHELL=\${CONFIG_SHELL-$SHELL}
  506. export SHELL
  507. _ASEOF
  508. cat >>$1 <<\_ASEOF || lt_write_fail=1
  509. AS_SHELL_SANITIZE
  510. _AS_PREPARE
  511. exec AS_MESSAGE_FD>&1
  512. _ASEOF
  513. test $lt_write_fail = 0 && chmod +x $1[]dnl
  514. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  515. # LT_OUTPUT
  516. # ---------
  517. # This macro allows early generation of the libtool script (before
  518. # AC_OUTPUT is called), incase it is used in configure for compilation
  519. # tests.
  520. AC_DEFUN([LT_OUTPUT],
  521. [: ${CONFIG_LT=./config.lt}
  522. AC_MSG_NOTICE([creating $CONFIG_LT])
  523. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  524. [# Run this file to recreate a libtool stub with the current configuration.])
  525. cat >>"$CONFIG_LT" <<\_LTEOF
  526. lt_cl_silent=false
  527. exec AS_MESSAGE_LOG_FD>>config.log
  528. {
  529. echo
  530. AS_BOX([Running $as_me.])
  531. } >&AS_MESSAGE_LOG_FD
  532. lt_cl_help="\
  533. \`$as_me' creates a local libtool stub from the current configuration,
  534. for use in further configure time tests before the real libtool is
  535. generated.
  536. Usage: $[0] [[OPTIONS]]
  537. -h, --help print this help, then exit
  538. -V, --version print version number, then exit
  539. -q, --quiet do not print progress messages
  540. -d, --debug don't remove temporary files
  541. Report bugs to <bug-libtool@gnu.org>."
  542. lt_cl_version="\
  543. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  544. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  545. configured by $[0], generated by m4_PACKAGE_STRING.
  546. Copyright (C) 2011 Free Software Foundation, Inc.
  547. This config.lt script is free software; the Free Software Foundation
  548. gives unlimited permision to copy, distribute and modify it."
  549. while test $[#] != 0
  550. do
  551. case $[1] in
  552. --version | --v* | -V )
  553. echo "$lt_cl_version"; exit 0 ;;
  554. --help | --h* | -h )
  555. echo "$lt_cl_help"; exit 0 ;;
  556. --debug | --d* | -d )
  557. debug=: ;;
  558. --quiet | --q* | --silent | --s* | -q )
  559. lt_cl_silent=: ;;
  560. -*) AC_MSG_ERROR([unrecognized option: $[1]
  561. Try \`$[0] --help' for more information.]) ;;
  562. *) AC_MSG_ERROR([unrecognized argument: $[1]
  563. Try \`$[0] --help' for more information.]) ;;
  564. esac
  565. shift
  566. done
  567. if $lt_cl_silent; then
  568. exec AS_MESSAGE_FD>/dev/null
  569. fi
  570. _LTEOF
  571. cat >>"$CONFIG_LT" <<_LTEOF
  572. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  573. _LTEOF
  574. cat >>"$CONFIG_LT" <<\_LTEOF
  575. AC_MSG_NOTICE([creating $ofile])
  576. _LT_OUTPUT_LIBTOOL_COMMANDS
  577. AS_EXIT(0)
  578. _LTEOF
  579. chmod +x "$CONFIG_LT"
  580. # configure is writing to config.log, but config.lt does its own redirection,
  581. # appending to config.log, which fails on DOS, as config.log is still kept
  582. # open by configure. Here we exec the FD to /dev/null, effectively closing
  583. # config.log, so it can be properly (re)opened and appended to by config.lt.
  584. lt_cl_success=:
  585. test "$silent" = yes &&
  586. lt_config_lt_args="$lt_config_lt_args --quiet"
  587. exec AS_MESSAGE_LOG_FD>/dev/null
  588. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  589. exec AS_MESSAGE_LOG_FD>>config.log
  590. $lt_cl_success || AS_EXIT(1)
  591. ])# LT_OUTPUT
  592. # _LT_CONFIG(TAG)
  593. # ---------------
  594. # If TAG is the built-in tag, create an initial libtool script with a
  595. # default configuration from the untagged config vars. Otherwise add code
  596. # to config.status for appending the configuration named by TAG from the
  597. # matching tagged config vars.
  598. m4_defun([_LT_CONFIG],
  599. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  600. _LT_CONFIG_SAVE_COMMANDS([
  601. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  602. m4_if(_LT_TAG, [C], [
  603. # See if we are running on zsh, and set the options which allow our
  604. # commands through without removal of \ escapes.
  605. if test -n "${ZSH_VERSION+set}" ; then
  606. setopt NO_GLOB_SUBST
  607. fi
  608. cfgfile="${ofile}T"
  609. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  610. $RM "$cfgfile"
  611. cat <<_LT_EOF >> "$cfgfile"
  612. #! $SHELL
  613. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  614. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  615. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  616. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  617. #
  618. _LT_COPYING
  619. _LT_LIBTOOL_TAGS
  620. # ### BEGIN LIBTOOL CONFIG
  621. _LT_LIBTOOL_CONFIG_VARS
  622. _LT_LIBTOOL_TAG_VARS
  623. # ### END LIBTOOL CONFIG
  624. _LT_EOF
  625. case $host_os in
  626. aix3*)
  627. cat <<\_LT_EOF >> "$cfgfile"
  628. # AIX sometimes has problems with the GCC collect2 program. For some
  629. # reason, if we set the COLLECT_NAMES environment variable, the problems
  630. # vanish in a puff of smoke.
  631. if test "X${COLLECT_NAMES+set}" != Xset; then
  632. COLLECT_NAMES=
  633. export COLLECT_NAMES
  634. fi
  635. _LT_EOF
  636. ;;
  637. esac
  638. _LT_PROG_LTMAIN
  639. # We use sed instead of cat because bash on DJGPP gets confused if
  640. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  641. # text mode, it properly converts lines to CR/LF. This bash problem
  642. # is reportedly fixed, but why not run on old versions too?
  643. sed '$q' "$ltmain" >> "$cfgfile" \
  644. || (rm -f "$cfgfile"; exit 1)
  645. _LT_PROG_REPLACE_SHELLFNS
  646. mv -f "$cfgfile" "$ofile" ||
  647. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  648. chmod +x "$ofile"
  649. ],
  650. [cat <<_LT_EOF >> "$ofile"
  651. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  652. dnl in a comment (ie after a #).
  653. # ### BEGIN LIBTOOL TAG CONFIG: $1
  654. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  655. # ### END LIBTOOL TAG CONFIG: $1
  656. _LT_EOF
  657. ])dnl /m4_if
  658. ],
  659. [m4_if([$1], [], [
  660. PACKAGE='$PACKAGE'
  661. VERSION='$VERSION'
  662. TIMESTAMP='$TIMESTAMP'
  663. RM='$RM'
  664. ofile='$ofile'], [])
  665. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  666. ])# _LT_CONFIG
  667. # LT_SUPPORTED_TAG(TAG)
  668. # ---------------------
  669. # Trace this macro to discover what tags are supported by the libtool
  670. # --tag option, using:
  671. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  672. AC_DEFUN([LT_SUPPORTED_TAG], [])
  673. # C support is built-in for now
  674. m4_define([_LT_LANG_C_enabled], [])
  675. m4_define([_LT_TAGS], [])
  676. # LT_LANG(LANG)
  677. # -------------
  678. # Enable libtool support for the given language if not already enabled.
  679. AC_DEFUN([LT_LANG],
  680. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  681. m4_case([$1],
  682. [C], [_LT_LANG(C)],
  683. [C++], [_LT_LANG(CXX)],
  684. [Go], [_LT_LANG(GO)],
  685. [Java], [_LT_LANG(GCJ)],
  686. [Fortran 77], [_LT_LANG(F77)],
  687. [Fortran], [_LT_LANG(FC)],
  688. [Windows Resource], [_LT_LANG(RC)],
  689. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  690. [_LT_LANG($1)],
  691. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  692. ])# LT_LANG
  693. # _LT_LANG(LANGNAME)
  694. # ------------------
  695. m4_defun([_LT_LANG],
  696. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  697. [LT_SUPPORTED_TAG([$1])dnl
  698. m4_append([_LT_TAGS], [$1 ])dnl
  699. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  700. _LT_LANG_$1_CONFIG($1)])dnl
  701. ])# _LT_LANG
  702. m4_ifndef([AC_PROG_GO], [
  703. # NOTE: This macro has been submitted for inclusion into #
  704. # GNU Autoconf as AC_PROG_GO. When it is available in #
  705. # a released version of Autoconf we should remove this #
  706. # macro and use it instead. #
  707. m4_defun([AC_PROG_GO],
  708. [AC_LANG_PUSH(Go)dnl
  709. AC_ARG_VAR([GOC], [Go compiler command])dnl
  710. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  711. _AC_ARG_VAR_LDFLAGS()dnl
  712. AC_CHECK_TOOL(GOC, gccgo)
  713. if test -z "$GOC"; then
  714. if test -n "$ac_tool_prefix"; then
  715. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  716. fi
  717. fi
  718. if test -z "$GOC"; then
  719. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  720. fi
  721. ])#m4_defun
  722. ])#m4_ifndef
  723. # _LT_LANG_DEFAULT_CONFIG
  724. # -----------------------
  725. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  726. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  727. [LT_LANG(CXX)],
  728. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  729. AC_PROVIDE_IFELSE([AC_PROG_F77],
  730. [LT_LANG(F77)],
  731. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  732. AC_PROVIDE_IFELSE([AC_PROG_FC],
  733. [LT_LANG(FC)],
  734. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  735. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  736. dnl pulling things in needlessly.
  737. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  738. [LT_LANG(GCJ)],
  739. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  740. [LT_LANG(GCJ)],
  741. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  742. [LT_LANG(GCJ)],
  743. [m4_ifdef([AC_PROG_GCJ],
  744. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  745. m4_ifdef([A][M_PROG_GCJ],
  746. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  747. m4_ifdef([LT_PROG_GCJ],
  748. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  749. AC_PROVIDE_IFELSE([AC_PROG_GO],
  750. [LT_LANG(GO)],
  751. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  752. AC_PROVIDE_IFELSE([LT_PROG_RC],
  753. [LT_LANG(RC)],
  754. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  755. ])# _LT_LANG_DEFAULT_CONFIG
  756. # Obsolete macros:
  757. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  758. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  759. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  760. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  761. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  762. dnl aclocal-1.4 backwards compatibility:
  763. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  764. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  765. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  766. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  767. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  768. # _LT_TAG_COMPILER
  769. # ----------------
  770. m4_defun([_LT_TAG_COMPILER],
  771. [AC_REQUIRE([AC_PROG_CC])dnl
  772. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  773. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  774. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  775. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  776. # If no C compiler was specified, use CC.
  777. LTCC=${LTCC-"$CC"}
  778. # If no C compiler flags were specified, use CFLAGS.
  779. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  780. # Allow CC to be a program name with arguments.
  781. compiler=$CC
  782. ])# _LT_TAG_COMPILER
  783. # _LT_COMPILER_BOILERPLATE
  784. # ------------------------
  785. # Check for compiler boilerplate output or warnings with
  786. # the simple compiler test code.
  787. m4_defun([_LT_COMPILER_BOILERPLATE],
  788. [m4_require([_LT_DECL_SED])dnl
  789. ac_outfile=conftest.$ac_objext
  790. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  791. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  792. _lt_compiler_boilerplate=`cat conftest.err`
  793. $RM conftest*
  794. ])# _LT_COMPILER_BOILERPLATE
  795. # _LT_LINKER_BOILERPLATE
  796. # ----------------------
  797. # Check for linker boilerplate output or warnings with
  798. # the simple link test code.
  799. m4_defun([_LT_LINKER_BOILERPLATE],
  800. [m4_require([_LT_DECL_SED])dnl
  801. ac_outfile=conftest.$ac_objext
  802. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  803. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  804. _lt_linker_boilerplate=`cat conftest.err`
  805. $RM -r conftest*
  806. ])# _LT_LINKER_BOILERPLATE
  807. # _LT_REQUIRED_DARWIN_CHECKS
  808. # -------------------------
  809. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  810. case $host_os in
  811. rhapsody* | darwin*)
  812. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  813. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  814. AC_CHECK_TOOL([LIPO], [lipo], [:])
  815. AC_CHECK_TOOL([OTOOL], [otool], [:])
  816. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  817. _LT_DECL([], [DSYMUTIL], [1],
  818. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  819. _LT_DECL([], [NMEDIT], [1],
  820. [Tool to change global to local symbols on Mac OS X])
  821. _LT_DECL([], [LIPO], [1],
  822. [Tool to manipulate fat objects and archives on Mac OS X])
  823. _LT_DECL([], [OTOOL], [1],
  824. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  825. _LT_DECL([], [OTOOL64], [1],
  826. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  827. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  828. [lt_cv_apple_cc_single_mod=no
  829. if test -z "${LT_MULTI_MODULE}"; then
  830. # By default we will add the -single_module flag. You can override
  831. # by either setting the environment variable LT_MULTI_MODULE
  832. # non-empty at configure time, or by adding -multi_module to the
  833. # link flags.
  834. rm -rf libconftest.dylib*
  835. echo "int foo(void){return 1;}" > conftest.c
  836. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  837. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  838. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  839. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  840. _lt_result=$?
  841. # If there is a non-empty error log, and "single_module"
  842. # appears in it, assume the flag caused a linker warning
  843. if test -s conftest.err && $GREP single_module conftest.err; then
  844. cat conftest.err >&AS_MESSAGE_LOG_FD
  845. # Otherwise, if the output was created with a 0 exit code from
  846. # the compiler, it worked.
  847. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  848. lt_cv_apple_cc_single_mod=yes
  849. else
  850. cat conftest.err >&AS_MESSAGE_LOG_FD
  851. fi
  852. rm -rf libconftest.dylib*
  853. rm -f conftest.*
  854. fi])
  855. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  856. [lt_cv_ld_exported_symbols_list],
  857. [lt_cv_ld_exported_symbols_list=no
  858. save_LDFLAGS=$LDFLAGS
  859. echo "_main" > conftest.sym
  860. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  861. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  862. [lt_cv_ld_exported_symbols_list=yes],
  863. [lt_cv_ld_exported_symbols_list=no])
  864. LDFLAGS="$save_LDFLAGS"
  865. ])
  866. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  867. [lt_cv_ld_force_load=no
  868. cat > conftest.c << _LT_EOF
  869. int forced_loaded() { return 2;}
  870. _LT_EOF
  871. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  872. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  873. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  874. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  875. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  876. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  877. cat > conftest.c << _LT_EOF
  878. int main() { return 0;}
  879. _LT_EOF
  880. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  881. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  882. _lt_result=$?
  883. if test -s conftest.err && $GREP force_load conftest.err; then
  884. cat conftest.err >&AS_MESSAGE_LOG_FD
  885. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  886. lt_cv_ld_force_load=yes
  887. else
  888. cat conftest.err >&AS_MESSAGE_LOG_FD
  889. fi
  890. rm -f conftest.err libconftest.a conftest conftest.c
  891. rm -rf conftest.dSYM
  892. ])
  893. case $host_os in
  894. rhapsody* | darwin1.[[012]])
  895. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  896. darwin1.*)
  897. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  898. darwin*) # darwin 5.x on
  899. # if running on 10.5 or later, the deployment target defaults
  900. # to the OS version, if on x86, and 10.4, the deployment
  901. # target defaults to 10.4. Don't you love it?
  902. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  903. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  904. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  905. 10.[[012]]*)
  906. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  907. 10.*)
  908. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  909. esac
  910. ;;
  911. esac
  912. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  913. _lt_dar_single_mod='$single_module'
  914. fi
  915. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  916. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  917. else
  918. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  919. fi
  920. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  921. _lt_dsymutil='~$DSYMUTIL $lib || :'
  922. else
  923. _lt_dsymutil=
  924. fi
  925. ;;
  926. esac
  927. ])
  928. # _LT_DARWIN_LINKER_FEATURES([TAG])
  929. # ---------------------------------
  930. # Checks for linker and compiler features on darwin
  931. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  932. [
  933. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  934. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  935. _LT_TAGVAR(hardcode_direct, $1)=no
  936. _LT_TAGVAR(hardcode_automatic, $1)=yes
  937. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  938. if test "$lt_cv_ld_force_load" = "yes"; then
  939. _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\"`'
  940. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  941. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  942. else
  943. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  944. fi
  945. _LT_TAGVAR(link_all_deplibs, $1)=yes
  946. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  947. case $cc_basename in
  948. ifort*) _lt_dar_can_shared=yes ;;
  949. *) _lt_dar_can_shared=$GCC ;;
  950. esac
  951. if test "$_lt_dar_can_shared" = "yes"; then
  952. output_verbose_link_cmd=func_echo_all
  953. _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}"
  954. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  955. _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}"
  956. _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}"
  957. m4_if([$1], [CXX],
  958. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  959. _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}"
  960. _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}"
  961. fi
  962. ],[])
  963. else
  964. _LT_TAGVAR(ld_shlibs, $1)=no
  965. fi
  966. ])
  967. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  968. # ----------------------------------
  969. # Links a minimal program and checks the executable
  970. # for the system default hardcoded library path. In most cases,
  971. # this is /usr/lib:/lib, but when the MPI compilers are used
  972. # the location of the communication and MPI libs are included too.
  973. # If we don't find anything, use the default library path according
  974. # to the aix ld manual.
  975. # Store the results from the different compilers for each TAGNAME.
  976. # Allow to override them for all tags through lt_cv_aix_libpath.
  977. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  978. [m4_require([_LT_DECL_SED])dnl
  979. if test "${lt_cv_aix_libpath+set}" = set; then
  980. aix_libpath=$lt_cv_aix_libpath
  981. else
  982. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  983. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  984. lt_aix_libpath_sed='[
  985. /Import File Strings/,/^$/ {
  986. /^0/ {
  987. s/^0 *\([^ ]*\) *$/\1/
  988. p
  989. }
  990. }]'
  991. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  992. # Check for a 64-bit object if we didn't find anything.
  993. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  994. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  995. fi],[])
  996. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  997. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  998. fi
  999. ])
  1000. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1001. fi
  1002. ])# _LT_SYS_MODULE_PATH_AIX
  1003. # _LT_SHELL_INIT(ARG)
  1004. # -------------------
  1005. m4_define([_LT_SHELL_INIT],
  1006. [m4_divert_text([M4SH-INIT], [$1
  1007. ])])# _LT_SHELL_INIT
  1008. # _LT_PROG_ECHO_BACKSLASH
  1009. # -----------------------
  1010. # Find how we can fake an echo command that does not interpret backslash.
  1011. # In particular, with Autoconf 2.60 or later we add some code to the start
  1012. # of the generated configure script which will find a shell with a builtin
  1013. # printf (which we can use as an echo command).
  1014. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1015. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1016. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1017. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1018. AC_MSG_CHECKING([how to print strings])
  1019. # Test print first, because it will be a builtin if present.
  1020. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1021. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1022. ECHO='print -r --'
  1023. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1024. ECHO='printf %s\n'
  1025. else
  1026. # Use this function as a fallback that always works.
  1027. func_fallback_echo ()
  1028. {
  1029. eval 'cat <<_LTECHO_EOF
  1030. $[]1
  1031. _LTECHO_EOF'
  1032. }
  1033. ECHO='func_fallback_echo'
  1034. fi
  1035. # func_echo_all arg...
  1036. # Invoke $ECHO with all args, space-separated.
  1037. func_echo_all ()
  1038. {
  1039. $ECHO "$*"
  1040. }
  1041. case "$ECHO" in
  1042. printf*) AC_MSG_RESULT([printf]) ;;
  1043. print*) AC_MSG_RESULT([print -r]) ;;
  1044. *) AC_MSG_RESULT([cat]) ;;
  1045. esac
  1046. m4_ifdef([_AS_DETECT_SUGGESTED],
  1047. [_AS_DETECT_SUGGESTED([
  1048. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1049. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1050. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1051. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1052. PATH=/empty FPATH=/empty; export PATH FPATH
  1053. test "X`printf %s $ECHO`" = "X$ECHO" \
  1054. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1055. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1056. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1057. ])# _LT_PROG_ECHO_BACKSLASH
  1058. # _LT_WITH_SYSROOT
  1059. # ----------------
  1060. AC_DEFUN([_LT_WITH_SYSROOT],
  1061. [AC_MSG_CHECKING([for sysroot])
  1062. AC_ARG_WITH([sysroot],
  1063. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1064. (or the compiler's sysroot if not specified).],
  1065. [], [with_sysroot=no])
  1066. dnl lt_sysroot will always be passed unquoted. We quote it here
  1067. dnl in case the user passed a directory name.
  1068. lt_sysroot=
  1069. case ${with_sysroot} in #(
  1070. yes)
  1071. if test "$GCC" = yes; then
  1072. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1073. fi
  1074. ;; #(
  1075. /*)
  1076. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1077. ;; #(
  1078. no|'')
  1079. ;; #(
  1080. *)
  1081. AC_MSG_RESULT([${with_sysroot}])
  1082. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1083. ;;
  1084. esac
  1085. AC_MSG_RESULT([${lt_sysroot:-no}])
  1086. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1087. [dependent libraries, and in which our libraries should be installed.])])
  1088. # _LT_ENABLE_LOCK
  1089. # ---------------
  1090. m4_defun([_LT_ENABLE_LOCK],
  1091. [AC_ARG_ENABLE([libtool-lock],
  1092. [AS_HELP_STRING([--disable-libtool-lock],
  1093. [avoid locking (might break parallel builds)])])
  1094. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1095. # Some flags need to be propagated to the compiler or linker for good
  1096. # libtool support.
  1097. case $host in
  1098. ia64-*-hpux*)
  1099. # Find out which ABI we are using.
  1100. echo 'int i;' > conftest.$ac_ext
  1101. if AC_TRY_EVAL(ac_compile); then
  1102. case `/usr/bin/file conftest.$ac_objext` in
  1103. *ELF-32*)
  1104. HPUX_IA64_MODE="32"
  1105. ;;
  1106. *ELF-64*)
  1107. HPUX_IA64_MODE="64"
  1108. ;;
  1109. esac
  1110. fi
  1111. rm -rf conftest*
  1112. ;;
  1113. *-*-irix6*)
  1114. # Find out which ABI we are using.
  1115. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1116. if AC_TRY_EVAL(ac_compile); then
  1117. if test "$lt_cv_prog_gnu_ld" = yes; then
  1118. case `/usr/bin/file conftest.$ac_objext` in
  1119. *32-bit*)
  1120. LD="${LD-ld} -melf32bsmip"
  1121. ;;
  1122. *N32*)
  1123. LD="${LD-ld} -melf32bmipn32"
  1124. ;;
  1125. *64-bit*)
  1126. LD="${LD-ld} -melf64bmip"
  1127. ;;
  1128. esac
  1129. else
  1130. case `/usr/bin/file conftest.$ac_objext` in
  1131. *32-bit*)
  1132. LD="${LD-ld} -32"
  1133. ;;
  1134. *N32*)
  1135. LD="${LD-ld} -n32"
  1136. ;;
  1137. *64-bit*)
  1138. LD="${LD-ld} -64"
  1139. ;;
  1140. esac
  1141. fi
  1142. fi
  1143. rm -rf conftest*
  1144. ;;
  1145. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1146. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1147. # Find out which ABI we are using.
  1148. echo 'int i;' > conftest.$ac_ext
  1149. if AC_TRY_EVAL(ac_compile); then
  1150. case `/usr/bin/file conftest.o` in
  1151. *32-bit*)
  1152. case $host in
  1153. x86_64-*kfreebsd*-gnu)
  1154. LD="${LD-ld} -m elf_i386_fbsd"
  1155. ;;
  1156. x86_64-*linux*)
  1157. LD="${LD-ld} -m elf_i386"
  1158. ;;
  1159. ppc64-*linux*|powerpc64-*linux*)
  1160. LD="${LD-ld} -m elf32ppclinux"
  1161. ;;
  1162. s390x-*linux*)
  1163. LD="${LD-ld} -m elf_s390"
  1164. ;;
  1165. sparc64-*linux*)
  1166. LD="${LD-ld} -m elf32_sparc"
  1167. ;;
  1168. esac
  1169. ;;
  1170. *64-bit*)
  1171. case $host in
  1172. x86_64-*kfreebsd*-gnu)
  1173. LD="${LD-ld} -m elf_x86_64_fbsd"
  1174. ;;
  1175. x86_64-*linux*)
  1176. LD="${LD-ld} -m elf_x86_64"
  1177. ;;
  1178. ppc*-*linux*|powerpc*-*linux*)
  1179. LD="${LD-ld} -m elf64ppc"
  1180. ;;
  1181. s390*-*linux*|s390*-*tpf*)
  1182. LD="${LD-ld} -m elf64_s390"
  1183. ;;
  1184. sparc*-*linux*)
  1185. LD="${LD-ld} -m elf64_sparc"
  1186. ;;
  1187. esac
  1188. ;;
  1189. esac
  1190. fi
  1191. rm -rf conftest*
  1192. ;;
  1193. *-*-sco3.2v5*)
  1194. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1195. SAVE_CFLAGS="$CFLAGS"
  1196. CFLAGS="$CFLAGS -belf"
  1197. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1198. [AC_LANG_PUSH(C)
  1199. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1200. AC_LANG_POP])
  1201. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1202. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1203. CFLAGS="$SAVE_CFLAGS"
  1204. fi
  1205. ;;
  1206. *-*solaris*)
  1207. # Find out which ABI we are using.
  1208. echo 'int i;' > conftest.$ac_ext
  1209. if AC_TRY_EVAL(ac_compile); then
  1210. case `/usr/bin/file conftest.o` in
  1211. *64-bit*)
  1212. case $lt_cv_prog_gnu_ld in
  1213. yes*)
  1214. case $host in
  1215. i?86-*-solaris*)
  1216. LD="${LD-ld} -m elf_x86_64"
  1217. ;;
  1218. sparc*-*-solaris*)
  1219. LD="${LD-ld} -m elf64_sparc"
  1220. ;;
  1221. esac
  1222. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1223. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1224. LD="${LD-ld}_sol2"
  1225. fi
  1226. ;;
  1227. *)
  1228. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1229. LD="${LD-ld} -64"
  1230. fi
  1231. ;;
  1232. esac
  1233. ;;
  1234. esac
  1235. fi
  1236. rm -rf conftest*
  1237. ;;
  1238. esac
  1239. need_locks="$enable_libtool_lock"
  1240. ])# _LT_ENABLE_LOCK
  1241. # _LT_PROG_AR
  1242. # -----------
  1243. m4_defun([_LT_PROG_AR],
  1244. [AC_CHECK_TOOLS(AR, [ar], false)
  1245. : ${AR=ar}
  1246. : ${AR_FLAGS=cru}
  1247. _LT_DECL([], [AR], [1], [The archiver])
  1248. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1249. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1250. [lt_cv_ar_at_file=no
  1251. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1252. [echo conftest.$ac_objext > conftest.lst
  1253. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1254. AC_TRY_EVAL([lt_ar_try])
  1255. if test "$ac_status" -eq 0; then
  1256. # Ensure the archiver fails upon bogus file names.
  1257. rm -f conftest.$ac_objext libconftest.a
  1258. AC_TRY_EVAL([lt_ar_try])
  1259. if test "$ac_status" -ne 0; then
  1260. lt_cv_ar_at_file=@
  1261. fi
  1262. fi
  1263. rm -f conftest.* libconftest.a
  1264. ])
  1265. ])
  1266. if test "x$lt_cv_ar_at_file" = xno; then
  1267. archiver_list_spec=
  1268. else
  1269. archiver_list_spec=$lt_cv_ar_at_file
  1270. fi
  1271. _LT_DECL([], [archiver_list_spec], [1],
  1272. [How to feed a file listing to the archiver])
  1273. ])# _LT_PROG_AR
  1274. # _LT_CMD_OLD_ARCHIVE
  1275. # -------------------
  1276. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1277. [_LT_PROG_AR
  1278. AC_CHECK_TOOL(STRIP, strip, :)
  1279. test -z "$STRIP" && STRIP=:
  1280. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1281. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1282. test -z "$RANLIB" && RANLIB=:
  1283. _LT_DECL([], [RANLIB], [1],
  1284. [Commands used to install an old-style archive])
  1285. # Determine commands to create old-style static archives.
  1286. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1287. old_postinstall_cmds='chmod 644 $oldlib'
  1288. old_postuninstall_cmds=
  1289. if test -n "$RANLIB"; then
  1290. case $host_os in
  1291. openbsd*)
  1292. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1293. ;;
  1294. *)
  1295. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1296. ;;
  1297. esac
  1298. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1299. fi
  1300. case $host_os in
  1301. darwin*)
  1302. lock_old_archive_extraction=yes ;;
  1303. *)
  1304. lock_old_archive_extraction=no ;;
  1305. esac
  1306. _LT_DECL([], [old_postinstall_cmds], [2])
  1307. _LT_DECL([], [old_postuninstall_cmds], [2])
  1308. _LT_TAGDECL([], [old_archive_cmds], [2],
  1309. [Commands used to build an old-style archive])
  1310. _LT_DECL([], [lock_old_archive_extraction], [0],
  1311. [Whether to use a lock for old archive extraction])
  1312. ])# _LT_CMD_OLD_ARCHIVE
  1313. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1314. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1315. # ----------------------------------------------------------------
  1316. # Check whether the given compiler option works
  1317. AC_DEFUN([_LT_COMPILER_OPTION],
  1318. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1319. m4_require([_LT_DECL_SED])dnl
  1320. AC_CACHE_CHECK([$1], [$2],
  1321. [$2=no
  1322. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1323. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1324. lt_compiler_flag="$3"
  1325. # Insert the option either (1) after the last *FLAGS variable, or
  1326. # (2) before a word containing "conftest.", or (3) at the end.
  1327. # Note that $ac_compile itself does not contain backslashes and begins
  1328. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1329. # The option is referenced via a variable to avoid confusing sed.
  1330. lt_compile=`echo "$ac_compile" | $SED \
  1331. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1332. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1333. -e 's:$: $lt_compiler_flag:'`
  1334. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1335. (eval "$lt_compile" 2>conftest.err)
  1336. ac_status=$?
  1337. cat conftest.err >&AS_MESSAGE_LOG_FD
  1338. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1339. if (exit $ac_status) && test -s "$ac_outfile"; then
  1340. # The compiler can only warn and ignore the option if not recognized
  1341. # So say no if there are warnings other than the usual output.
  1342. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1343. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1344. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1345. $2=yes
  1346. fi
  1347. fi
  1348. $RM conftest*
  1349. ])
  1350. if test x"[$]$2" = xyes; then
  1351. m4_if([$5], , :, [$5])
  1352. else
  1353. m4_if([$6], , :, [$6])
  1354. fi
  1355. ])# _LT_COMPILER_OPTION
  1356. # Old name:
  1357. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1358. dnl aclocal-1.4 backwards compatibility:
  1359. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1360. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1361. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1362. # ----------------------------------------------------
  1363. # Check whether the given linker option works
  1364. AC_DEFUN([_LT_LINKER_OPTION],
  1365. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1366. m4_require([_LT_DECL_SED])dnl
  1367. AC_CACHE_CHECK([$1], [$2],
  1368. [$2=no
  1369. save_LDFLAGS="$LDFLAGS"
  1370. LDFLAGS="$LDFLAGS $3"
  1371. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1372. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1373. # The linker can only warn and ignore the option if not recognized
  1374. # So say no if there are warnings
  1375. if test -s conftest.err; then
  1376. # Append any errors to the config.log.
  1377. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1378. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1379. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1380. if diff conftest.exp conftest.er2 >/dev/null; then
  1381. $2=yes
  1382. fi
  1383. else
  1384. $2=yes
  1385. fi
  1386. fi
  1387. $RM -r conftest*
  1388. LDFLAGS="$save_LDFLAGS"
  1389. ])
  1390. if test x"[$]$2" = xyes; then
  1391. m4_if([$4], , :, [$4])
  1392. else
  1393. m4_if([$5], , :, [$5])
  1394. fi
  1395. ])# _LT_LINKER_OPTION
  1396. # Old name:
  1397. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1398. dnl aclocal-1.4 backwards compatibility:
  1399. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1400. # LT_CMD_MAX_LEN
  1401. #---------------
  1402. AC_DEFUN([LT_CMD_MAX_LEN],
  1403. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1404. # find the maximum length of command line arguments
  1405. AC_MSG_CHECKING([the maximum length of command line arguments])
  1406. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1407. i=0
  1408. teststring="ABCD"
  1409. case $build_os in
  1410. msdosdjgpp*)
  1411. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1412. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1413. # during glob expansion). Even if it were fixed, the result of this
  1414. # check would be larger than it should be.
  1415. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1416. ;;
  1417. gnu*)
  1418. # Under GNU Hurd, this test is not required because there is
  1419. # no limit to the length of command line arguments.
  1420. # Libtool will interpret -1 as no limit whatsoever
  1421. lt_cv_sys_max_cmd_len=-1;
  1422. ;;
  1423. cygwin* | mingw* | cegcc*)
  1424. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1425. # about 5 minutes as the teststring grows exponentially.
  1426. # Worse, since 9x/ME are not pre-emptively multitasking,
  1427. # you end up with a "frozen" computer, even though with patience
  1428. # the test eventually succeeds (with a max line length of 256k).
  1429. # Instead, let's just punt: use the minimum linelength reported by
  1430. # all of the supported platforms: 8192 (on NT/2K/XP).
  1431. lt_cv_sys_max_cmd_len=8192;
  1432. ;;
  1433. mint*)
  1434. # On MiNT this can take a long time and run out of memory.
  1435. lt_cv_sys_max_cmd_len=8192;
  1436. ;;
  1437. amigaos*)
  1438. # On AmigaOS with pdksh, this test takes hours, literally.
  1439. # So we just punt and use a minimum line length of 8192.
  1440. lt_cv_sys_max_cmd_len=8192;
  1441. ;;
  1442. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1443. # This has been around since 386BSD, at least. Likely further.
  1444. if test -x /sbin/sysctl; then
  1445. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1446. elif test -x /usr/sbin/sysctl; then
  1447. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1448. else
  1449. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1450. fi
  1451. # And add a safety zone
  1452. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1453. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1454. ;;
  1455. interix*)
  1456. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1457. lt_cv_sys_max_cmd_len=196608
  1458. ;;
  1459. os2*)
  1460. # The test takes a long time on OS/2.
  1461. lt_cv_sys_max_cmd_len=8192
  1462. ;;
  1463. osf*)
  1464. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1465. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1466. # nice to cause kernel panics so lets avoid the loop below.
  1467. # First set a reasonable default.
  1468. lt_cv_sys_max_cmd_len=16384
  1469. #
  1470. if test -x /sbin/sysconfig; then
  1471. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1472. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1473. esac
  1474. fi
  1475. ;;
  1476. sco3.2v5*)
  1477. lt_cv_sys_max_cmd_len=102400
  1478. ;;
  1479. sysv5* | sco5v6* | sysv4.2uw2*)
  1480. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1481. if test -n "$kargmax"; then
  1482. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1483. else
  1484. lt_cv_sys_max_cmd_len=32768
  1485. fi
  1486. ;;
  1487. *)
  1488. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1489. if test -n "$lt_cv_sys_max_cmd_len"; then
  1490. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1491. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1492. else
  1493. # Make teststring a little bigger before we do anything with it.
  1494. # a 1K string should be a reasonable start.
  1495. for i in 1 2 3 4 5 6 7 8 ; do
  1496. teststring=$teststring$teststring
  1497. done
  1498. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1499. # If test is not a shell built-in, we'll probably end up computing a
  1500. # maximum length that is only half of the actual maximum length, but
  1501. # we can't tell.
  1502. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  1503. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1504. test $i != 17 # 1/2 MB should be enough
  1505. do
  1506. i=`expr $i + 1`
  1507. teststring=$teststring$teststring
  1508. done
  1509. # Only check the string length outside the loop.
  1510. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1511. teststring=
  1512. # Add a significant safety factor because C++ compilers can tack on
  1513. # massive amounts of additional arguments before passing them to the
  1514. # linker. It appears as though 1/2 is a usable value.
  1515. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1516. fi
  1517. ;;
  1518. esac
  1519. ])
  1520. if test -n $lt_cv_sys_max_cmd_len ; then
  1521. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1522. else
  1523. AC_MSG_RESULT(none)
  1524. fi
  1525. max_cmd_len=$lt_cv_sys_max_cmd_len
  1526. _LT_DECL([], [max_cmd_len], [0],
  1527. [What is the maximum length of a command?])
  1528. ])# LT_CMD_MAX_LEN
  1529. # Old name:
  1530. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1531. dnl aclocal-1.4 backwards compatibility:
  1532. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1533. # _LT_HEADER_DLFCN
  1534. # ----------------
  1535. m4_defun([_LT_HEADER_DLFCN],
  1536. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1537. ])# _LT_HEADER_DLFCN
  1538. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1539. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1540. # ----------------------------------------------------------------
  1541. m4_defun([_LT_TRY_DLOPEN_SELF],
  1542. [m4_require([_LT_HEADER_DLFCN])dnl
  1543. if test "$cross_compiling" = yes; then :
  1544. [$4]
  1545. else
  1546. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1547. lt_status=$lt_dlunknown
  1548. cat > conftest.$ac_ext <<_LT_EOF
  1549. [#line $LINENO "configure"
  1550. #include "confdefs.h"
  1551. #if HAVE_DLFCN_H
  1552. #include <dlfcn.h>
  1553. #endif
  1554. #include <stdio.h>
  1555. #ifdef RTLD_GLOBAL
  1556. # define LT_DLGLOBAL RTLD_GLOBAL
  1557. #else
  1558. # ifdef DL_GLOBAL
  1559. # define LT_DLGLOBAL DL_GLOBAL
  1560. # else
  1561. # define LT_DLGLOBAL 0
  1562. # endif
  1563. #endif
  1564. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1565. find out it does not work in some platform. */
  1566. #ifndef LT_DLLAZY_OR_NOW
  1567. # ifdef RTLD_LAZY
  1568. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1569. # else
  1570. # ifdef DL_LAZY
  1571. # define LT_DLLAZY_OR_NOW DL_LAZY
  1572. # else
  1573. # ifdef RTLD_NOW
  1574. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1575. # else
  1576. # ifdef DL_NOW
  1577. # define LT_DLLAZY_OR_NOW DL_NOW
  1578. # else
  1579. # define LT_DLLAZY_OR_NOW 0
  1580. # endif
  1581. # endif
  1582. # endif
  1583. # endif
  1584. #endif
  1585. /* When -fvisbility=hidden is used, assume the code has been annotated
  1586. correspondingly for the symbols needed. */
  1587. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1588. int fnord () __attribute__((visibility("default")));
  1589. #endif
  1590. int fnord () { return 42; }
  1591. int main ()
  1592. {
  1593. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1594. int status = $lt_dlunknown;
  1595. if (self)
  1596. {
  1597. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1598. else
  1599. {
  1600. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1601. else puts (dlerror ());
  1602. }
  1603. /* dlclose (self); */
  1604. }
  1605. else
  1606. puts (dlerror ());
  1607. return status;
  1608. }]
  1609. _LT_EOF
  1610. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1611. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1612. lt_status=$?
  1613. case x$lt_status in
  1614. x$lt_dlno_uscore) $1 ;;
  1615. x$lt_dlneed_uscore) $2 ;;
  1616. x$lt_dlunknown|x*) $3 ;;
  1617. esac
  1618. else :
  1619. # compilation failed
  1620. $3
  1621. fi
  1622. fi
  1623. rm -fr conftest*
  1624. ])# _LT_TRY_DLOPEN_SELF
  1625. # LT_SYS_DLOPEN_SELF
  1626. # ------------------
  1627. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1628. [m4_require([_LT_HEADER_DLFCN])dnl
  1629. if test "x$enable_dlopen" != xyes; then
  1630. enable_dlopen=unknown
  1631. enable_dlopen_self=unknown
  1632. enable_dlopen_self_static=unknown
  1633. else
  1634. lt_cv_dlopen=no
  1635. lt_cv_dlopen_libs=
  1636. case $host_os in
  1637. beos*)
  1638. lt_cv_dlopen="load_add_on"
  1639. lt_cv_dlopen_libs=
  1640. lt_cv_dlopen_self=yes
  1641. ;;
  1642. mingw* | pw32* | cegcc*)
  1643. lt_cv_dlopen="LoadLibrary"
  1644. lt_cv_dlopen_libs=
  1645. ;;
  1646. cygwin*)
  1647. lt_cv_dlopen="dlopen"
  1648. lt_cv_dlopen_libs=
  1649. ;;
  1650. darwin*)
  1651. # if libdl is installed we need to link against it
  1652. AC_CHECK_LIB([dl], [dlopen],
  1653. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1654. lt_cv_dlopen="dyld"
  1655. lt_cv_dlopen_libs=
  1656. lt_cv_dlopen_self=yes
  1657. ])
  1658. ;;
  1659. *)
  1660. AC_CHECK_FUNC([shl_load],
  1661. [lt_cv_dlopen="shl_load"],
  1662. [AC_CHECK_LIB([dld], [shl_load],
  1663. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1664. [AC_CHECK_FUNC([dlopen],
  1665. [lt_cv_dlopen="dlopen"],
  1666. [AC_CHECK_LIB([dl], [dlopen],
  1667. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1668. [AC_CHECK_LIB([svld], [dlopen],
  1669. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1670. [AC_CHECK_LIB([dld], [dld_link],
  1671. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1672. ])
  1673. ])
  1674. ])
  1675. ])
  1676. ])
  1677. ;;
  1678. esac
  1679. if test "x$lt_cv_dlopen" != xno; then
  1680. enable_dlopen=yes
  1681. else
  1682. enable_dlopen=no
  1683. fi
  1684. case $lt_cv_dlopen in
  1685. dlopen)
  1686. save_CPPFLAGS="$CPPFLAGS"
  1687. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1688. save_LDFLAGS="$LDFLAGS"
  1689. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1690. save_LIBS="$LIBS"
  1691. LIBS="$lt_cv_dlopen_libs $LIBS"
  1692. AC_CACHE_CHECK([whether a program can dlopen itself],
  1693. lt_cv_dlopen_self, [dnl
  1694. _LT_TRY_DLOPEN_SELF(
  1695. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1696. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1697. ])
  1698. if test "x$lt_cv_dlopen_self" = xyes; then
  1699. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1700. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1701. lt_cv_dlopen_self_static, [dnl
  1702. _LT_TRY_DLOPEN_SELF(
  1703. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1704. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1705. ])
  1706. fi
  1707. CPPFLAGS="$save_CPPFLAGS"
  1708. LDFLAGS="$save_LDFLAGS"
  1709. LIBS="$save_LIBS"
  1710. ;;
  1711. esac
  1712. case $lt_cv_dlopen_self in
  1713. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1714. *) enable_dlopen_self=unknown ;;
  1715. esac
  1716. case $lt_cv_dlopen_self_static in
  1717. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1718. *) enable_dlopen_self_static=unknown ;;
  1719. esac
  1720. fi
  1721. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1722. [Whether dlopen is supported])
  1723. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1724. [Whether dlopen of programs is supported])
  1725. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1726. [Whether dlopen of statically linked programs is supported])
  1727. ])# LT_SYS_DLOPEN_SELF
  1728. # Old name:
  1729. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1730. dnl aclocal-1.4 backwards compatibility:
  1731. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1732. # _LT_COMPILER_C_O([TAGNAME])
  1733. # ---------------------------
  1734. # Check to see if options -c and -o are simultaneously supported by compiler.
  1735. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1736. m4_defun([_LT_COMPILER_C_O],
  1737. [m4_require([_LT_DECL_SED])dnl
  1738. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1739. m4_require([_LT_TAG_COMPILER])dnl
  1740. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1741. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1742. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1743. $RM -r conftest 2>/dev/null
  1744. mkdir conftest
  1745. cd conftest
  1746. mkdir out
  1747. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1748. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1749. # Insert the option either (1) after the last *FLAGS variable, or
  1750. # (2) before a word containing "conftest.", or (3) at the end.
  1751. # Note that $ac_compile itself does not contain backslashes and begins
  1752. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1753. lt_compile=`echo "$ac_compile" | $SED \
  1754. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1755. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1756. -e 's:$: $lt_compiler_flag:'`
  1757. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1758. (eval "$lt_compile" 2>out/conftest.err)
  1759. ac_status=$?
  1760. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1761. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1762. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1763. then
  1764. # The compiler can only warn and ignore the option if not recognized
  1765. # So say no if there are warnings
  1766. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1767. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1768. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1769. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1770. fi
  1771. fi
  1772. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1773. $RM conftest*
  1774. # SGI C++ compiler will create directory out/ii_files/ for
  1775. # template instantiation
  1776. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1777. $RM out/* && rmdir out
  1778. cd ..
  1779. $RM -r conftest
  1780. $RM conftest*
  1781. ])
  1782. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1783. [Does compiler simultaneously support -c and -o options?])
  1784. ])# _LT_COMPILER_C_O
  1785. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1786. # ----------------------------------
  1787. # Check to see if we can do hard links to lock some files if needed
  1788. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1789. [m4_require([_LT_ENABLE_LOCK])dnl
  1790. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1791. _LT_COMPILER_C_O([$1])
  1792. hard_links="nottested"
  1793. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1794. # do not overwrite the value of need_locks provided by the user
  1795. AC_MSG_CHECKING([if we can lock with hard links])
  1796. hard_links=yes
  1797. $RM conftest*
  1798. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1799. touch conftest.a
  1800. ln conftest.a conftest.b 2>&5 || hard_links=no
  1801. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1802. AC_MSG_RESULT([$hard_links])
  1803. if test "$hard_links" = no; then
  1804. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1805. need_locks=warn
  1806. fi
  1807. else
  1808. need_locks=no
  1809. fi
  1810. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1811. ])# _LT_COMPILER_FILE_LOCKS
  1812. # _LT_CHECK_OBJDIR
  1813. # ----------------
  1814. m4_defun([_LT_CHECK_OBJDIR],
  1815. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1816. [rm -f .libs 2>/dev/null
  1817. mkdir .libs 2>/dev/null
  1818. if test -d .libs; then
  1819. lt_cv_objdir=.libs
  1820. else
  1821. # MS-DOS does not allow filenames that begin with a dot.
  1822. lt_cv_objdir=_libs
  1823. fi
  1824. rmdir .libs 2>/dev/null])
  1825. objdir=$lt_cv_objdir
  1826. _LT_DECL([], [objdir], [0],
  1827. [The name of the directory that contains temporary libtool files])dnl
  1828. m4_pattern_allow([LT_OBJDIR])dnl
  1829. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1830. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1831. ])# _LT_CHECK_OBJDIR
  1832. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1833. # --------------------------------------
  1834. # Check hardcoding attributes.
  1835. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1836. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1837. _LT_TAGVAR(hardcode_action, $1)=
  1838. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1839. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1840. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1841. # We can hardcode non-existent directories.
  1842. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1843. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1844. # have to relink, otherwise we might link with an installed library
  1845. # when we should be linking with a yet-to-be-installed one
  1846. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1847. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1848. # Linking always hardcodes the temporary library directory.
  1849. _LT_TAGVAR(hardcode_action, $1)=relink
  1850. else
  1851. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1852. _LT_TAGVAR(hardcode_action, $1)=immediate
  1853. fi
  1854. else
  1855. # We cannot hardcode anything, or else we can only hardcode existing
  1856. # directories.
  1857. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1858. fi
  1859. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1860. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1861. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1862. # Fast installation is not supported
  1863. enable_fast_install=no
  1864. elif test "$shlibpath_overrides_runpath" = yes ||
  1865. test "$enable_shared" = no; then
  1866. # Fast installation is not necessary
  1867. enable_fast_install=needless
  1868. fi
  1869. _LT_TAGDECL([], [hardcode_action], [0],
  1870. [How to hardcode a shared library path into an executable])
  1871. ])# _LT_LINKER_HARDCODE_LIBPATH
  1872. # _LT_CMD_STRIPLIB
  1873. # ----------------
  1874. m4_defun([_LT_CMD_STRIPLIB],
  1875. [m4_require([_LT_DECL_EGREP])
  1876. striplib=
  1877. old_striplib=
  1878. AC_MSG_CHECKING([whether stripping libraries is possible])
  1879. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1880. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1881. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1882. AC_MSG_RESULT([yes])
  1883. else
  1884. # FIXME - insert some real tests, host_os isn't really good enough
  1885. case $host_os in
  1886. darwin*)
  1887. if test -n "$STRIP" ; then
  1888. striplib="$STRIP -x"
  1889. old_striplib="$STRIP -S"
  1890. AC_MSG_RESULT([yes])
  1891. else
  1892. AC_MSG_RESULT([no])
  1893. fi
  1894. ;;
  1895. *)
  1896. AC_MSG_RESULT([no])
  1897. ;;
  1898. esac
  1899. fi
  1900. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1901. _LT_DECL([], [striplib], [1])
  1902. ])# _LT_CMD_STRIPLIB
  1903. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1904. # -----------------------------
  1905. # PORTME Fill in your ld.so characteristics
  1906. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1907. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1908. m4_require([_LT_DECL_EGREP])dnl
  1909. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1910. m4_require([_LT_DECL_OBJDUMP])dnl
  1911. m4_require([_LT_DECL_SED])dnl
  1912. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1913. AC_MSG_CHECKING([dynamic linker characteristics])
  1914. m4_if([$1],
  1915. [], [
  1916. if test "$GCC" = yes; then
  1917. case $host_os in
  1918. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1919. *) lt_awk_arg="/^libraries:/" ;;
  1920. esac
  1921. case $host_os in
  1922. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1923. *) lt_sed_strip_eq="s,=/,/,g" ;;
  1924. esac
  1925. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1926. case $lt_search_path_spec in
  1927. *\;*)
  1928. # if the path contains ";" then we assume it to be the separator
  1929. # otherwise default to the standard path separator (i.e. ":") - it is
  1930. # assumed that no part of a normal pathname contains ";" but that should
  1931. # okay in the real world where ";" in dirpaths is itself problematic.
  1932. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1933. ;;
  1934. *)
  1935. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1936. ;;
  1937. esac
  1938. # Ok, now we have the path, separated by spaces, we can step through it
  1939. # and add multilib dir if necessary.
  1940. lt_tmp_lt_search_path_spec=
  1941. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1942. for lt_sys_path in $lt_search_path_spec; do
  1943. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1944. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1945. else
  1946. test -d "$lt_sys_path" && \
  1947. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1948. fi
  1949. done
  1950. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1951. BEGIN {RS=" "; FS="/|\n";} {
  1952. lt_foo="";
  1953. lt_count=0;
  1954. for (lt_i = NF; lt_i > 0; lt_i--) {
  1955. if ($lt_i != "" && $lt_i != ".") {
  1956. if ($lt_i == "..") {
  1957. lt_count++;
  1958. } else {
  1959. if (lt_count == 0) {
  1960. lt_foo="/" $lt_i lt_foo;
  1961. } else {
  1962. lt_count--;
  1963. }
  1964. }
  1965. }
  1966. }
  1967. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1968. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1969. }'`
  1970. # AWK program above erroneously prepends '/' to C:/dos/paths
  1971. # for these hosts.
  1972. case $host_os in
  1973. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1974. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1975. esac
  1976. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1977. else
  1978. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1979. fi])
  1980. library_names_spec=
  1981. libname_spec='lib$name'
  1982. soname_spec=
  1983. shrext_cmds=".so"
  1984. postinstall_cmds=
  1985. postuninstall_cmds=
  1986. finish_cmds=
  1987. finish_eval=
  1988. shlibpath_var=
  1989. shlibpath_overrides_runpath=unknown
  1990. version_type=none
  1991. dynamic_linker="$host_os ld.so"
  1992. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1993. need_lib_prefix=unknown
  1994. hardcode_into_libs=no
  1995. # when you set need_version to no, make sure it does not cause -set_version
  1996. # flags to be left without arguments
  1997. need_version=unknown
  1998. case $host_os in
  1999. aix3*)
  2000. version_type=linux # correct to gnu/linux during the next big refactor
  2001. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2002. shlibpath_var=LIBPATH
  2003. # AIX 3 has no versioning support, so we append a major version to the name.
  2004. soname_spec='${libname}${release}${shared_ext}$major'
  2005. ;;
  2006. aix[[4-9]]*)
  2007. version_type=linux # correct to gnu/linux during the next big refactor
  2008. need_lib_prefix=no
  2009. need_version=no
  2010. hardcode_into_libs=yes
  2011. if test "$host_cpu" = ia64; then
  2012. # AIX 5 supports IA64
  2013. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2014. shlibpath_var=LD_LIBRARY_PATH
  2015. else
  2016. # With GCC up to 2.95.x, collect2 would create an import file
  2017. # for dependence libraries. The import file would start with
  2018. # the line `#! .'. This would cause the generated library to
  2019. # depend on `.', always an invalid library. This was fixed in
  2020. # development snapshots of GCC prior to 3.0.
  2021. case $host_os in
  2022. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2023. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2024. echo ' yes '
  2025. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2026. :
  2027. else
  2028. can_build_shared=no
  2029. fi
  2030. ;;
  2031. esac
  2032. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2033. # soname into executable. Probably we can add versioning support to
  2034. # collect2, so additional links can be useful in future.
  2035. if test "$aix_use_runtimelinking" = yes; then
  2036. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2037. # instead of lib<name>.a to let people know that these are not
  2038. # typical AIX shared libraries.
  2039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2040. else
  2041. # We preserve .a as extension for shared libraries through AIX4.2
  2042. # and later when we are not doing run time linking.
  2043. library_names_spec='${libname}${release}.a $libname.a'
  2044. soname_spec='${libname}${release}${shared_ext}$major'
  2045. fi
  2046. shlibpath_var=LIBPATH
  2047. fi
  2048. ;;
  2049. amigaos*)
  2050. case $host_cpu in
  2051. powerpc)
  2052. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2053. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2055. ;;
  2056. m68k)
  2057. library_names_spec='$libname.ixlibrary $libname.a'
  2058. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2059. 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'
  2060. ;;
  2061. esac
  2062. ;;
  2063. beos*)
  2064. library_names_spec='${libname}${shared_ext}'
  2065. dynamic_linker="$host_os ld.so"
  2066. shlibpath_var=LIBRARY_PATH
  2067. ;;
  2068. bsdi[[45]]*)
  2069. version_type=linux # correct to gnu/linux during the next big refactor
  2070. need_version=no
  2071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2072. soname_spec='${libname}${release}${shared_ext}$major'
  2073. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2074. shlibpath_var=LD_LIBRARY_PATH
  2075. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2076. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2077. # the default ld.so.conf also contains /usr/contrib/lib and
  2078. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2079. # libtool to hard-code these into programs
  2080. ;;
  2081. cygwin* | mingw* | pw32* | cegcc*)
  2082. version_type=windows
  2083. shrext_cmds=".dll"
  2084. need_version=no
  2085. need_lib_prefix=no
  2086. case $GCC,$cc_basename in
  2087. yes,*)
  2088. # gcc
  2089. library_names_spec='$libname.dll.a'
  2090. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2091. postinstall_cmds='base_file=`basename \${file}`~
  2092. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2093. dldir=$destdir/`dirname \$dlpath`~
  2094. test -d \$dldir || mkdir -p \$dldir~
  2095. $install_prog $dir/$dlname \$dldir/$dlname~
  2096. chmod a+x \$dldir/$dlname~
  2097. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2098. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2099. fi'
  2100. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2101. dlpath=$dir/\$dldll~
  2102. $RM \$dlpath'
  2103. shlibpath_overrides_runpath=yes
  2104. case $host_os in
  2105. cygwin*)
  2106. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2107. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2108. m4_if([$1], [],[
  2109. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2110. ;;
  2111. mingw* | cegcc*)
  2112. # MinGW DLLs use traditional 'lib' prefix
  2113. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2114. ;;
  2115. pw32*)
  2116. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2117. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2118. ;;
  2119. esac
  2120. dynamic_linker='Win32 ld.exe'
  2121. ;;
  2122. *,cl*)
  2123. # Native MSVC
  2124. libname_spec='$name'
  2125. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2126. library_names_spec='${libname}.dll.lib'
  2127. case $build_os in
  2128. mingw*)
  2129. sys_lib_search_path_spec=
  2130. lt_save_ifs=$IFS
  2131. IFS=';'
  2132. for lt_path in $LIB
  2133. do
  2134. IFS=$lt_save_ifs
  2135. # Let DOS variable expansion print the short 8.3 style file name.
  2136. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2137. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2138. done
  2139. IFS=$lt_save_ifs
  2140. # Convert to MSYS style.
  2141. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2142. ;;
  2143. cygwin*)
  2144. # Convert to unix form, then to dos form, then back to unix form
  2145. # but this time dos style (no spaces!) so that the unix form looks
  2146. # like /cygdrive/c/PROGRA~1:/cygdr...
  2147. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2148. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2149. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2150. ;;
  2151. *)
  2152. sys_lib_search_path_spec="$LIB"
  2153. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2154. # It is most probably a Windows format PATH.
  2155. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2156. else
  2157. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2158. fi
  2159. # FIXME: find the short name or the path components, as spaces are
  2160. # common. (e.g. "Program Files" -> "PROGRA~1")
  2161. ;;
  2162. esac
  2163. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2164. postinstall_cmds='base_file=`basename \${file}`~
  2165. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2166. dldir=$destdir/`dirname \$dlpath`~
  2167. test -d \$dldir || mkdir -p \$dldir~
  2168. $install_prog $dir/$dlname \$dldir/$dlname'
  2169. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2170. dlpath=$dir/\$dldll~
  2171. $RM \$dlpath'
  2172. shlibpath_overrides_runpath=yes
  2173. dynamic_linker='Win32 link.exe'
  2174. ;;
  2175. *)
  2176. # Assume MSVC wrapper
  2177. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2178. dynamic_linker='Win32 ld.exe'
  2179. ;;
  2180. esac
  2181. # FIXME: first we should search . and the directory the executable is in
  2182. shlibpath_var=PATH
  2183. ;;
  2184. darwin* | rhapsody*)
  2185. dynamic_linker="$host_os dyld"
  2186. version_type=darwin
  2187. need_lib_prefix=no
  2188. need_version=no
  2189. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2190. soname_spec='${libname}${release}${major}$shared_ext'
  2191. shlibpath_overrides_runpath=yes
  2192. shlibpath_var=DYLD_LIBRARY_PATH
  2193. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2194. m4_if([$1], [],[
  2195. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2196. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2197. ;;
  2198. dgux*)
  2199. version_type=linux # correct to gnu/linux during the next big refactor
  2200. need_lib_prefix=no
  2201. need_version=no
  2202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2203. soname_spec='${libname}${release}${shared_ext}$major'
  2204. shlibpath_var=LD_LIBRARY_PATH
  2205. ;;
  2206. freebsd* | dragonfly*)
  2207. # DragonFly does not have aout. When/if they implement a new
  2208. # versioning mechanism, adjust this.
  2209. if test -x /usr/bin/objformat; then
  2210. objformat=`/usr/bin/objformat`
  2211. else
  2212. case $host_os in
  2213. freebsd[[23]].*) objformat=aout ;;
  2214. *) objformat=elf ;;
  2215. esac
  2216. fi
  2217. version_type=freebsd-$objformat
  2218. case $version_type in
  2219. freebsd-elf*)
  2220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2221. need_version=no
  2222. need_lib_prefix=no
  2223. ;;
  2224. freebsd-*)
  2225. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2226. need_version=yes
  2227. ;;
  2228. esac
  2229. shlibpath_var=LD_LIBRARY_PATH
  2230. case $host_os in
  2231. freebsd2.*)
  2232. shlibpath_overrides_runpath=yes
  2233. ;;
  2234. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2235. shlibpath_overrides_runpath=yes
  2236. hardcode_into_libs=yes
  2237. ;;
  2238. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2239. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2240. shlibpath_overrides_runpath=no
  2241. hardcode_into_libs=yes
  2242. ;;
  2243. *) # from 4.6 on, and DragonFly
  2244. shlibpath_overrides_runpath=yes
  2245. hardcode_into_libs=yes
  2246. ;;
  2247. esac
  2248. ;;
  2249. gnu*)
  2250. version_type=linux # correct to gnu/linux during the next big refactor
  2251. need_lib_prefix=no
  2252. need_version=no
  2253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2254. soname_spec='${libname}${release}${shared_ext}$major'
  2255. shlibpath_var=LD_LIBRARY_PATH
  2256. shlibpath_overrides_runpath=no
  2257. hardcode_into_libs=yes
  2258. ;;
  2259. haiku*)
  2260. version_type=linux # correct to gnu/linux during the next big refactor
  2261. need_lib_prefix=no
  2262. need_version=no
  2263. dynamic_linker="$host_os runtime_loader"
  2264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2265. soname_spec='${libname}${release}${shared_ext}$major'
  2266. shlibpath_var=LIBRARY_PATH
  2267. shlibpath_overrides_runpath=yes
  2268. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2269. hardcode_into_libs=yes
  2270. ;;
  2271. hpux9* | hpux10* | hpux11*)
  2272. # Give a soname corresponding to the major version so that dld.sl refuses to
  2273. # link against other versions.
  2274. version_type=sunos
  2275. need_lib_prefix=no
  2276. need_version=no
  2277. case $host_cpu in
  2278. ia64*)
  2279. shrext_cmds='.so'
  2280. hardcode_into_libs=yes
  2281. dynamic_linker="$host_os dld.so"
  2282. shlibpath_var=LD_LIBRARY_PATH
  2283. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2285. soname_spec='${libname}${release}${shared_ext}$major'
  2286. if test "X$HPUX_IA64_MODE" = X32; then
  2287. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2288. else
  2289. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2290. fi
  2291. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2292. ;;
  2293. hppa*64*)
  2294. shrext_cmds='.sl'
  2295. hardcode_into_libs=yes
  2296. dynamic_linker="$host_os dld.sl"
  2297. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2298. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2300. soname_spec='${libname}${release}${shared_ext}$major'
  2301. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2302. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2303. ;;
  2304. *)
  2305. shrext_cmds='.sl'
  2306. dynamic_linker="$host_os dld.sl"
  2307. shlibpath_var=SHLIB_PATH
  2308. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2310. soname_spec='${libname}${release}${shared_ext}$major'
  2311. ;;
  2312. esac
  2313. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2314. postinstall_cmds='chmod 555 $lib'
  2315. # or fails outright, so override atomically:
  2316. install_override_mode=555
  2317. ;;
  2318. interix[[3-9]]*)
  2319. version_type=linux # correct to gnu/linux during the next big refactor
  2320. need_lib_prefix=no
  2321. need_version=no
  2322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2323. soname_spec='${libname}${release}${shared_ext}$major'
  2324. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2325. shlibpath_var=LD_LIBRARY_PATH
  2326. shlibpath_overrides_runpath=no
  2327. hardcode_into_libs=yes
  2328. ;;
  2329. irix5* | irix6* | nonstopux*)
  2330. case $host_os in
  2331. nonstopux*) version_type=nonstopux ;;
  2332. *)
  2333. if test "$lt_cv_prog_gnu_ld" = yes; then
  2334. version_type=linux # correct to gnu/linux during the next big refactor
  2335. else
  2336. version_type=irix
  2337. fi ;;
  2338. esac
  2339. need_lib_prefix=no
  2340. need_version=no
  2341. soname_spec='${libname}${release}${shared_ext}$major'
  2342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2343. case $host_os in
  2344. irix5* | nonstopux*)
  2345. libsuff= shlibsuff=
  2346. ;;
  2347. *)
  2348. case $LD in # libtool.m4 will add one of these switches to LD
  2349. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2350. libsuff= shlibsuff= libmagic=32-bit;;
  2351. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2352. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2353. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2354. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2355. *) libsuff= shlibsuff= libmagic=never-match;;
  2356. esac
  2357. ;;
  2358. esac
  2359. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2360. shlibpath_overrides_runpath=no
  2361. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2362. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2363. hardcode_into_libs=yes
  2364. ;;
  2365. # No shared lib support for Linux oldld, aout, or coff.
  2366. linux*oldld* | linux*aout* | linux*coff*)
  2367. dynamic_linker=no
  2368. ;;
  2369. # This must be glibc/ELF.
  2370. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2371. version_type=linux # correct to gnu/linux during the next big refactor
  2372. need_lib_prefix=no
  2373. need_version=no
  2374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2375. soname_spec='${libname}${release}${shared_ext}$major'
  2376. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2377. shlibpath_var=LD_LIBRARY_PATH
  2378. shlibpath_overrides_runpath=no
  2379. # Some binutils ld are patched to set DT_RUNPATH
  2380. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2381. [lt_cv_shlibpath_overrides_runpath=no
  2382. save_LDFLAGS=$LDFLAGS
  2383. save_libdir=$libdir
  2384. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2385. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2386. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2387. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2388. [lt_cv_shlibpath_overrides_runpath=yes])])
  2389. LDFLAGS=$save_LDFLAGS
  2390. libdir=$save_libdir
  2391. ])
  2392. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2393. # This implies no fast_install, which is unacceptable.
  2394. # Some rework will be needed to allow for fast_install
  2395. # before this can be enabled.
  2396. hardcode_into_libs=yes
  2397. # Append ld.so.conf contents to the search path
  2398. if test -f /etc/ld.so.conf; then
  2399. 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' ' '`
  2400. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2401. fi
  2402. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2403. # powerpc, because MkLinux only supported shared libraries with the
  2404. # GNU dynamic linker. Since this was broken with cross compilers,
  2405. # most powerpc-linux boxes support dynamic linking these days and
  2406. # people can always --disable-shared, the test was removed, and we
  2407. # assume the GNU/Linux dynamic linker is in use.
  2408. dynamic_linker='GNU/Linux ld.so'
  2409. ;;
  2410. netbsd*)
  2411. version_type=sunos
  2412. need_lib_prefix=no
  2413. need_version=no
  2414. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2416. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2417. dynamic_linker='NetBSD (a.out) ld.so'
  2418. else
  2419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2420. soname_spec='${libname}${release}${shared_ext}$major'
  2421. dynamic_linker='NetBSD ld.elf_so'
  2422. fi
  2423. shlibpath_var=LD_LIBRARY_PATH
  2424. shlibpath_overrides_runpath=yes
  2425. hardcode_into_libs=yes
  2426. ;;
  2427. newsos6)
  2428. version_type=linux # correct to gnu/linux during the next big refactor
  2429. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2430. shlibpath_var=LD_LIBRARY_PATH
  2431. shlibpath_overrides_runpath=yes
  2432. ;;
  2433. *nto* | *qnx*)
  2434. version_type=qnx
  2435. need_lib_prefix=no
  2436. need_version=no
  2437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2438. soname_spec='${libname}${release}${shared_ext}$major'
  2439. shlibpath_var=LD_LIBRARY_PATH
  2440. shlibpath_overrides_runpath=no
  2441. hardcode_into_libs=yes
  2442. dynamic_linker='ldqnx.so'
  2443. ;;
  2444. openbsd*)
  2445. version_type=sunos
  2446. sys_lib_dlsearch_path_spec="/usr/lib"
  2447. need_lib_prefix=no
  2448. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2449. case $host_os in
  2450. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2451. *) need_version=no ;;
  2452. esac
  2453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2454. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2455. shlibpath_var=LD_LIBRARY_PATH
  2456. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2457. case $host_os in
  2458. openbsd2.[[89]] | openbsd2.[[89]].*)
  2459. shlibpath_overrides_runpath=no
  2460. ;;
  2461. *)
  2462. shlibpath_overrides_runpath=yes
  2463. ;;
  2464. esac
  2465. else
  2466. shlibpath_overrides_runpath=yes
  2467. fi
  2468. ;;
  2469. os2*)
  2470. libname_spec='$name'
  2471. shrext_cmds=".dll"
  2472. need_lib_prefix=no
  2473. library_names_spec='$libname${shared_ext} $libname.a'
  2474. dynamic_linker='OS/2 ld.exe'
  2475. shlibpath_var=LIBPATH
  2476. ;;
  2477. osf3* | osf4* | osf5*)
  2478. version_type=osf
  2479. need_lib_prefix=no
  2480. need_version=no
  2481. soname_spec='${libname}${release}${shared_ext}$major'
  2482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2483. shlibpath_var=LD_LIBRARY_PATH
  2484. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2485. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2486. ;;
  2487. rdos*)
  2488. dynamic_linker=no
  2489. ;;
  2490. solaris*)
  2491. version_type=linux # correct to gnu/linux during the next big refactor
  2492. need_lib_prefix=no
  2493. need_version=no
  2494. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2495. soname_spec='${libname}${release}${shared_ext}$major'
  2496. shlibpath_var=LD_LIBRARY_PATH
  2497. shlibpath_overrides_runpath=yes
  2498. hardcode_into_libs=yes
  2499. # ldd complains unless libraries are executable
  2500. postinstall_cmds='chmod +x $lib'
  2501. ;;
  2502. sunos4*)
  2503. version_type=sunos
  2504. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2505. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2506. shlibpath_var=LD_LIBRARY_PATH
  2507. shlibpath_overrides_runpath=yes
  2508. if test "$with_gnu_ld" = yes; then
  2509. need_lib_prefix=no
  2510. fi
  2511. need_version=yes
  2512. ;;
  2513. sysv4 | sysv4.3*)
  2514. version_type=linux # correct to gnu/linux during the next big refactor
  2515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2516. soname_spec='${libname}${release}${shared_ext}$major'
  2517. shlibpath_var=LD_LIBRARY_PATH
  2518. case $host_vendor in
  2519. sni)
  2520. shlibpath_overrides_runpath=no
  2521. need_lib_prefix=no
  2522. runpath_var=LD_RUN_PATH
  2523. ;;
  2524. siemens)
  2525. need_lib_prefix=no
  2526. ;;
  2527. motorola)
  2528. need_lib_prefix=no
  2529. need_version=no
  2530. shlibpath_overrides_runpath=no
  2531. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2532. ;;
  2533. esac
  2534. ;;
  2535. sysv4*MP*)
  2536. if test -d /usr/nec ;then
  2537. version_type=linux # correct to gnu/linux during the next big refactor
  2538. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2539. soname_spec='$libname${shared_ext}.$major'
  2540. shlibpath_var=LD_LIBRARY_PATH
  2541. fi
  2542. ;;
  2543. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2544. version_type=freebsd-elf
  2545. need_lib_prefix=no
  2546. need_version=no
  2547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2548. soname_spec='${libname}${release}${shared_ext}$major'
  2549. shlibpath_var=LD_LIBRARY_PATH
  2550. shlibpath_overrides_runpath=yes
  2551. hardcode_into_libs=yes
  2552. if test "$with_gnu_ld" = yes; then
  2553. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2554. else
  2555. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2556. case $host_os in
  2557. sco3.2v5*)
  2558. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2559. ;;
  2560. esac
  2561. fi
  2562. sys_lib_dlsearch_path_spec='/usr/lib'
  2563. ;;
  2564. tpf*)
  2565. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2566. version_type=linux # correct to gnu/linux during the next big refactor
  2567. need_lib_prefix=no
  2568. need_version=no
  2569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2570. shlibpath_var=LD_LIBRARY_PATH
  2571. shlibpath_overrides_runpath=no
  2572. hardcode_into_libs=yes
  2573. ;;
  2574. uts4*)
  2575. version_type=linux # correct to gnu/linux during the next big refactor
  2576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2577. soname_spec='${libname}${release}${shared_ext}$major'
  2578. shlibpath_var=LD_LIBRARY_PATH
  2579. ;;
  2580. *)
  2581. dynamic_linker=no
  2582. ;;
  2583. esac
  2584. AC_MSG_RESULT([$dynamic_linker])
  2585. test "$dynamic_linker" = no && can_build_shared=no
  2586. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2587. if test "$GCC" = yes; then
  2588. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2589. fi
  2590. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2591. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2592. fi
  2593. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2594. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2595. fi
  2596. _LT_DECL([], [variables_saved_for_relink], [1],
  2597. [Variables whose values should be saved in libtool wrapper scripts and
  2598. restored at link time])
  2599. _LT_DECL([], [need_lib_prefix], [0],
  2600. [Do we need the "lib" prefix for modules?])
  2601. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2602. _LT_DECL([], [version_type], [0], [Library versioning type])
  2603. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2604. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2605. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2606. [Is shlibpath searched before the hard-coded library search path?])
  2607. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2608. _LT_DECL([], [library_names_spec], [1],
  2609. [[List of archive names. First name is the real one, the rest are links.
  2610. The last name is the one that the linker finds with -lNAME]])
  2611. _LT_DECL([], [soname_spec], [1],
  2612. [[The coded name of the library, if different from the real name]])
  2613. _LT_DECL([], [install_override_mode], [1],
  2614. [Permission mode override for installation of shared libraries])
  2615. _LT_DECL([], [postinstall_cmds], [2],
  2616. [Command to use after installation of a shared archive])
  2617. _LT_DECL([], [postuninstall_cmds], [2],
  2618. [Command to use after uninstallation of a shared archive])
  2619. _LT_DECL([], [finish_cmds], [2],
  2620. [Commands used to finish a libtool library installation in a directory])
  2621. _LT_DECL([], [finish_eval], [1],
  2622. [[As "finish_cmds", except a single script fragment to be evaled but
  2623. not shown]])
  2624. _LT_DECL([], [hardcode_into_libs], [0],
  2625. [Whether we should hardcode library paths into libraries])
  2626. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2627. [Compile-time system search path for libraries])
  2628. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2629. [Run-time system search path for libraries])
  2630. ])# _LT_SYS_DYNAMIC_LINKER
  2631. # _LT_PATH_TOOL_PREFIX(TOOL)
  2632. # --------------------------
  2633. # find a file program which can recognize shared library
  2634. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2635. [m4_require([_LT_DECL_EGREP])dnl
  2636. AC_MSG_CHECKING([for $1])
  2637. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2638. [case $MAGIC_CMD in
  2639. [[\\/*] | ?:[\\/]*])
  2640. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2641. ;;
  2642. *)
  2643. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2644. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2645. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2646. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2647. dnl not every word. This closes a longstanding sh security hole.
  2648. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2649. for ac_dir in $ac_dummy; do
  2650. IFS="$lt_save_ifs"
  2651. test -z "$ac_dir" && ac_dir=.
  2652. if test -f $ac_dir/$1; then
  2653. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2654. if test -n "$file_magic_test_file"; then
  2655. case $deplibs_check_method in
  2656. "file_magic "*)
  2657. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2658. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2659. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2660. $EGREP "$file_magic_regex" > /dev/null; then
  2661. :
  2662. else
  2663. cat <<_LT_EOF 1>&2
  2664. *** Warning: the command libtool uses to detect shared libraries,
  2665. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2666. *** The result is that libtool may fail to recognize shared libraries
  2667. *** as such. This will affect the creation of libtool libraries that
  2668. *** depend on shared libraries, but programs linked with such libtool
  2669. *** libraries will work regardless of this problem. Nevertheless, you
  2670. *** may want to report the problem to your system manager and/or to
  2671. *** bug-libtool@gnu.org
  2672. _LT_EOF
  2673. fi ;;
  2674. esac
  2675. fi
  2676. break
  2677. fi
  2678. done
  2679. IFS="$lt_save_ifs"
  2680. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2681. ;;
  2682. esac])
  2683. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2684. if test -n "$MAGIC_CMD"; then
  2685. AC_MSG_RESULT($MAGIC_CMD)
  2686. else
  2687. AC_MSG_RESULT(no)
  2688. fi
  2689. _LT_DECL([], [MAGIC_CMD], [0],
  2690. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2691. ])# _LT_PATH_TOOL_PREFIX
  2692. # Old name:
  2693. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2694. dnl aclocal-1.4 backwards compatibility:
  2695. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2696. # _LT_PATH_MAGIC
  2697. # --------------
  2698. # find a file program which can recognize a shared library
  2699. m4_defun([_LT_PATH_MAGIC],
  2700. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2701. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2702. if test -n "$ac_tool_prefix"; then
  2703. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2704. else
  2705. MAGIC_CMD=:
  2706. fi
  2707. fi
  2708. ])# _LT_PATH_MAGIC
  2709. # LT_PATH_LD
  2710. # ----------
  2711. # find the pathname to the GNU or non-GNU linker
  2712. AC_DEFUN([LT_PATH_LD],
  2713. [AC_REQUIRE([AC_PROG_CC])dnl
  2714. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2715. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2716. m4_require([_LT_DECL_SED])dnl
  2717. m4_require([_LT_DECL_EGREP])dnl
  2718. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2719. AC_ARG_WITH([gnu-ld],
  2720. [AS_HELP_STRING([--with-gnu-ld],
  2721. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2722. [test "$withval" = no || with_gnu_ld=yes],
  2723. [with_gnu_ld=no])dnl
  2724. ac_prog=ld
  2725. if test "$GCC" = yes; then
  2726. # Check if gcc -print-prog-name=ld gives a path.
  2727. AC_MSG_CHECKING([for ld used by $CC])
  2728. case $host in
  2729. *-*-mingw*)
  2730. # gcc leaves a trailing carriage return which upsets mingw
  2731. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2732. *)
  2733. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2734. esac
  2735. case $ac_prog in
  2736. # Accept absolute paths.
  2737. [[\\/]]* | ?:[[\\/]]*)
  2738. re_direlt='/[[^/]][[^/]]*/\.\./'
  2739. # Canonicalize the pathname of ld
  2740. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2741. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2742. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2743. done
  2744. test -z "$LD" && LD="$ac_prog"
  2745. ;;
  2746. "")
  2747. # If it fails, then pretend we aren't using GCC.
  2748. ac_prog=ld
  2749. ;;
  2750. *)
  2751. # If it is relative, then search for the first ld in PATH.
  2752. with_gnu_ld=unknown
  2753. ;;
  2754. esac
  2755. elif test "$with_gnu_ld" = yes; then
  2756. AC_MSG_CHECKING([for GNU ld])
  2757. else
  2758. AC_MSG_CHECKING([for non-GNU ld])
  2759. fi
  2760. AC_CACHE_VAL(lt_cv_path_LD,
  2761. [if test -z "$LD"; then
  2762. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2763. for ac_dir in $PATH; do
  2764. IFS="$lt_save_ifs"
  2765. test -z "$ac_dir" && ac_dir=.
  2766. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2767. lt_cv_path_LD="$ac_dir/$ac_prog"
  2768. # Check to see if the program is GNU ld. I'd rather use --version,
  2769. # but apparently some variants of GNU ld only accept -v.
  2770. # Break only if it was the GNU/non-GNU ld that we prefer.
  2771. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2772. *GNU* | *'with BFD'*)
  2773. test "$with_gnu_ld" != no && break
  2774. ;;
  2775. *)
  2776. test "$with_gnu_ld" != yes && break
  2777. ;;
  2778. esac
  2779. fi
  2780. done
  2781. IFS="$lt_save_ifs"
  2782. else
  2783. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2784. fi])
  2785. LD="$lt_cv_path_LD"
  2786. if test -n "$LD"; then
  2787. AC_MSG_RESULT($LD)
  2788. else
  2789. AC_MSG_RESULT(no)
  2790. fi
  2791. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2792. _LT_PATH_LD_GNU
  2793. AC_SUBST([LD])
  2794. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2795. ])# LT_PATH_LD
  2796. # Old names:
  2797. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2798. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2799. dnl aclocal-1.4 backwards compatibility:
  2800. dnl AC_DEFUN([AM_PROG_LD], [])
  2801. dnl AC_DEFUN([AC_PROG_LD], [])
  2802. # _LT_PATH_LD_GNU
  2803. #- --------------
  2804. m4_defun([_LT_PATH_LD_GNU],
  2805. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2806. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2807. case `$LD -v 2>&1 </dev/null` in
  2808. *GNU* | *'with BFD'*)
  2809. lt_cv_prog_gnu_ld=yes
  2810. ;;
  2811. *)
  2812. lt_cv_prog_gnu_ld=no
  2813. ;;
  2814. esac])
  2815. with_gnu_ld=$lt_cv_prog_gnu_ld
  2816. ])# _LT_PATH_LD_GNU
  2817. # _LT_CMD_RELOAD
  2818. # --------------
  2819. # find reload flag for linker
  2820. # -- PORTME Some linkers may need a different reload flag.
  2821. m4_defun([_LT_CMD_RELOAD],
  2822. [AC_CACHE_CHECK([for $LD option to reload object files],
  2823. lt_cv_ld_reload_flag,
  2824. [lt_cv_ld_reload_flag='-r'])
  2825. reload_flag=$lt_cv_ld_reload_flag
  2826. case $reload_flag in
  2827. "" | " "*) ;;
  2828. *) reload_flag=" $reload_flag" ;;
  2829. esac
  2830. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2831. case $host_os in
  2832. cygwin* | mingw* | pw32* | cegcc*)
  2833. if test "$GCC" != yes; then
  2834. reload_cmds=false
  2835. fi
  2836. ;;
  2837. darwin*)
  2838. if test "$GCC" = yes; then
  2839. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2840. else
  2841. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2842. fi
  2843. ;;
  2844. esac
  2845. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2846. _LT_TAGDECL([], [reload_cmds], [2])dnl
  2847. ])# _LT_CMD_RELOAD
  2848. # _LT_CHECK_MAGIC_METHOD
  2849. # ----------------------
  2850. # how to check for library dependencies
  2851. # -- PORTME fill in with the dynamic library characteristics
  2852. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2853. [m4_require([_LT_DECL_EGREP])
  2854. m4_require([_LT_DECL_OBJDUMP])
  2855. AC_CACHE_CHECK([how to recognize dependent libraries],
  2856. lt_cv_deplibs_check_method,
  2857. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2858. lt_cv_file_magic_test_file=
  2859. lt_cv_deplibs_check_method='unknown'
  2860. # Need to set the preceding variable on all platforms that support
  2861. # interlibrary dependencies.
  2862. # 'none' -- dependencies not supported.
  2863. # `unknown' -- same as none, but documents that we really don't know.
  2864. # 'pass_all' -- all dependencies passed with no checks.
  2865. # 'test_compile' -- check by making test program.
  2866. # 'file_magic [[regex]]' -- check by looking for files in library path
  2867. # which responds to the $file_magic_cmd with a given extended regex.
  2868. # If you have `file' or equivalent on your system and you're not sure
  2869. # whether `pass_all' will *always* work, you probably want this one.
  2870. case $host_os in
  2871. aix[[4-9]]*)
  2872. lt_cv_deplibs_check_method=pass_all
  2873. ;;
  2874. beos*)
  2875. lt_cv_deplibs_check_method=pass_all
  2876. ;;
  2877. bsdi[[45]]*)
  2878. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2879. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2880. lt_cv_file_magic_test_file=/shlib/libc.so
  2881. ;;
  2882. cygwin*)
  2883. # func_win32_libid is a shell function defined in ltmain.sh
  2884. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2885. lt_cv_file_magic_cmd='func_win32_libid'
  2886. ;;
  2887. mingw* | pw32*)
  2888. # Base MSYS/MinGW do not provide the 'file' command needed by
  2889. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2890. # unless we find 'file', for example because we are cross-compiling.
  2891. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  2892. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  2893. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2894. lt_cv_file_magic_cmd='func_win32_libid'
  2895. else
  2896. # Keep this pattern in sync with the one in func_win32_libid.
  2897. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2898. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2899. fi
  2900. ;;
  2901. cegcc*)
  2902. # use the weaker test based on 'objdump'. See mingw*.
  2903. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2904. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2905. ;;
  2906. darwin* | rhapsody*)
  2907. lt_cv_deplibs_check_method=pass_all
  2908. ;;
  2909. freebsd* | dragonfly*)
  2910. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2911. case $host_cpu in
  2912. i*86 )
  2913. # Not sure whether the presence of OpenBSD here was a mistake.
  2914. # Let's accept both of them until this is cleared up.
  2915. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2916. lt_cv_file_magic_cmd=/usr/bin/file
  2917. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2918. ;;
  2919. esac
  2920. else
  2921. lt_cv_deplibs_check_method=pass_all
  2922. fi
  2923. ;;
  2924. gnu*)
  2925. lt_cv_deplibs_check_method=pass_all
  2926. ;;
  2927. haiku*)
  2928. lt_cv_deplibs_check_method=pass_all
  2929. ;;
  2930. hpux10.20* | hpux11*)
  2931. lt_cv_file_magic_cmd=/usr/bin/file
  2932. case $host_cpu in
  2933. ia64*)
  2934. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2935. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2936. ;;
  2937. hppa*64*)
  2938. [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]']
  2939. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2940. ;;
  2941. *)
  2942. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  2943. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2944. ;;
  2945. esac
  2946. ;;
  2947. interix[[3-9]]*)
  2948. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2949. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2950. ;;
  2951. irix5* | irix6* | nonstopux*)
  2952. case $LD in
  2953. *-32|*"-32 ") libmagic=32-bit;;
  2954. *-n32|*"-n32 ") libmagic=N32;;
  2955. *-64|*"-64 ") libmagic=64-bit;;
  2956. *) libmagic=never-match;;
  2957. esac
  2958. lt_cv_deplibs_check_method=pass_all
  2959. ;;
  2960. # This must be glibc/ELF.
  2961. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2962. lt_cv_deplibs_check_method=pass_all
  2963. ;;
  2964. netbsd*)
  2965. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2966. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2967. else
  2968. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2969. fi
  2970. ;;
  2971. newos6*)
  2972. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2973. lt_cv_file_magic_cmd=/usr/bin/file
  2974. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2975. ;;
  2976. *nto* | *qnx*)
  2977. lt_cv_deplibs_check_method=pass_all
  2978. ;;
  2979. openbsd*)
  2980. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2981. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2982. else
  2983. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2984. fi
  2985. ;;
  2986. osf3* | osf4* | osf5*)
  2987. lt_cv_deplibs_check_method=pass_all
  2988. ;;
  2989. rdos*)
  2990. lt_cv_deplibs_check_method=pass_all
  2991. ;;
  2992. solaris*)
  2993. lt_cv_deplibs_check_method=pass_all
  2994. ;;
  2995. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2996. lt_cv_deplibs_check_method=pass_all
  2997. ;;
  2998. sysv4 | sysv4.3*)
  2999. case $host_vendor in
  3000. motorola)
  3001. 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]]'
  3002. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3003. ;;
  3004. ncr)
  3005. lt_cv_deplibs_check_method=pass_all
  3006. ;;
  3007. sequent)
  3008. lt_cv_file_magic_cmd='/bin/file'
  3009. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3010. ;;
  3011. sni)
  3012. lt_cv_file_magic_cmd='/bin/file'
  3013. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3014. lt_cv_file_magic_test_file=/lib/libc.so
  3015. ;;
  3016. siemens)
  3017. lt_cv_deplibs_check_method=pass_all
  3018. ;;
  3019. pc)
  3020. lt_cv_deplibs_check_method=pass_all
  3021. ;;
  3022. esac
  3023. ;;
  3024. tpf*)
  3025. lt_cv_deplibs_check_method=pass_all
  3026. ;;
  3027. esac
  3028. ])
  3029. file_magic_glob=
  3030. want_nocaseglob=no
  3031. if test "$build" = "$host"; then
  3032. case $host_os in
  3033. mingw* | pw32*)
  3034. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3035. want_nocaseglob=yes
  3036. else
  3037. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3038. fi
  3039. ;;
  3040. esac
  3041. fi
  3042. file_magic_cmd=$lt_cv_file_magic_cmd
  3043. deplibs_check_method=$lt_cv_deplibs_check_method
  3044. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3045. _LT_DECL([], [deplibs_check_method], [1],
  3046. [Method to check whether dependent libraries are shared objects])
  3047. _LT_DECL([], [file_magic_cmd], [1],
  3048. [Command to use when deplibs_check_method = "file_magic"])
  3049. _LT_DECL([], [file_magic_glob], [1],
  3050. [How to find potential files when deplibs_check_method = "file_magic"])
  3051. _LT_DECL([], [want_nocaseglob], [1],
  3052. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3053. ])# _LT_CHECK_MAGIC_METHOD
  3054. # LT_PATH_NM
  3055. # ----------
  3056. # find the pathname to a BSD- or MS-compatible name lister
  3057. AC_DEFUN([LT_PATH_NM],
  3058. [AC_REQUIRE([AC_PROG_CC])dnl
  3059. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3060. [if test -n "$NM"; then
  3061. # Let the user override the test.
  3062. lt_cv_path_NM="$NM"
  3063. else
  3064. lt_nm_to_check="${ac_tool_prefix}nm"
  3065. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3066. lt_nm_to_check="$lt_nm_to_check nm"
  3067. fi
  3068. for lt_tmp_nm in $lt_nm_to_check; do
  3069. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3070. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3071. IFS="$lt_save_ifs"
  3072. test -z "$ac_dir" && ac_dir=.
  3073. tmp_nm="$ac_dir/$lt_tmp_nm"
  3074. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3075. # Check to see if the nm accepts a BSD-compat flag.
  3076. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3077. # nm: unknown option "B" ignored
  3078. # Tru64's nm complains that /dev/null is an invalid object file
  3079. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3080. */dev/null* | *'Invalid file or object type'*)
  3081. lt_cv_path_NM="$tmp_nm -B"
  3082. break
  3083. ;;
  3084. *)
  3085. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3086. */dev/null*)
  3087. lt_cv_path_NM="$tmp_nm -p"
  3088. break
  3089. ;;
  3090. *)
  3091. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3092. continue # so that we can try to find one that supports BSD flags
  3093. ;;
  3094. esac
  3095. ;;
  3096. esac
  3097. fi
  3098. done
  3099. IFS="$lt_save_ifs"
  3100. done
  3101. : ${lt_cv_path_NM=no}
  3102. fi])
  3103. if test "$lt_cv_path_NM" != "no"; then
  3104. NM="$lt_cv_path_NM"
  3105. else
  3106. # Didn't find any BSD compatible name lister, look for dumpbin.
  3107. if test -n "$DUMPBIN"; then :
  3108. # Let the user override the test.
  3109. else
  3110. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3111. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3112. *COFF*)
  3113. DUMPBIN="$DUMPBIN -symbols"
  3114. ;;
  3115. *)
  3116. DUMPBIN=:
  3117. ;;
  3118. esac
  3119. fi
  3120. AC_SUBST([DUMPBIN])
  3121. if test "$DUMPBIN" != ":"; then
  3122. NM="$DUMPBIN"
  3123. fi
  3124. fi
  3125. test -z "$NM" && NM=nm
  3126. AC_SUBST([NM])
  3127. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3128. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3129. [lt_cv_nm_interface="BSD nm"
  3130. echo "int some_variable = 0;" > conftest.$ac_ext
  3131. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3132. (eval "$ac_compile" 2>conftest.err)
  3133. cat conftest.err >&AS_MESSAGE_LOG_FD
  3134. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3135. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3136. cat conftest.err >&AS_MESSAGE_LOG_FD
  3137. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3138. cat conftest.out >&AS_MESSAGE_LOG_FD
  3139. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3140. lt_cv_nm_interface="MS dumpbin"
  3141. fi
  3142. rm -f conftest*])
  3143. ])# LT_PATH_NM
  3144. # Old names:
  3145. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3146. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3147. dnl aclocal-1.4 backwards compatibility:
  3148. dnl AC_DEFUN([AM_PROG_NM], [])
  3149. dnl AC_DEFUN([AC_PROG_NM], [])
  3150. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3151. # --------------------------------
  3152. # how to determine the name of the shared library
  3153. # associated with a specific link library.
  3154. # -- PORTME fill in with the dynamic library characteristics
  3155. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3156. [m4_require([_LT_DECL_EGREP])
  3157. m4_require([_LT_DECL_OBJDUMP])
  3158. m4_require([_LT_DECL_DLLTOOL])
  3159. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3160. lt_cv_sharedlib_from_linklib_cmd,
  3161. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3162. case $host_os in
  3163. cygwin* | mingw* | pw32* | cegcc*)
  3164. # two different shell functions defined in ltmain.sh
  3165. # decide which to use based on capabilities of $DLLTOOL
  3166. case `$DLLTOOL --help 2>&1` in
  3167. *--identify-strict*)
  3168. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3169. ;;
  3170. *)
  3171. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3172. ;;
  3173. esac
  3174. ;;
  3175. *)
  3176. # fallback: assume linklib IS sharedlib
  3177. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3178. ;;
  3179. esac
  3180. ])
  3181. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3182. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3183. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3184. [Command to associate shared and link libraries])
  3185. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3186. # _LT_PATH_MANIFEST_TOOL
  3187. # ----------------------
  3188. # locate the manifest tool
  3189. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3190. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3191. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3192. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3193. [lt_cv_path_mainfest_tool=no
  3194. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3195. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3196. cat conftest.err >&AS_MESSAGE_LOG_FD
  3197. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3198. lt_cv_path_mainfest_tool=yes
  3199. fi
  3200. rm -f conftest*])
  3201. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3202. MANIFEST_TOOL=:
  3203. fi
  3204. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3205. ])# _LT_PATH_MANIFEST_TOOL
  3206. # LT_LIB_M
  3207. # --------
  3208. # check for math library
  3209. AC_DEFUN([LT_LIB_M],
  3210. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3211. LIBM=
  3212. case $host in
  3213. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3214. # These system don't have libm, or don't need it
  3215. ;;
  3216. *-ncr-sysv4.3*)
  3217. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3218. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3219. ;;
  3220. *)
  3221. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3222. ;;
  3223. esac
  3224. AC_SUBST([LIBM])
  3225. ])# LT_LIB_M
  3226. # Old name:
  3227. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3228. dnl aclocal-1.4 backwards compatibility:
  3229. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3230. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3231. # -------------------------------
  3232. m4_defun([_LT_COMPILER_NO_RTTI],
  3233. [m4_require([_LT_TAG_COMPILER])dnl
  3234. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3235. if test "$GCC" = yes; then
  3236. case $cc_basename in
  3237. nvcc*)
  3238. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3239. *)
  3240. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3241. esac
  3242. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3243. lt_cv_prog_compiler_rtti_exceptions,
  3244. [-fno-rtti -fno-exceptions], [],
  3245. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3246. fi
  3247. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3248. [Compiler flag to turn off builtin functions])
  3249. ])# _LT_COMPILER_NO_RTTI
  3250. # _LT_CMD_GLOBAL_SYMBOLS
  3251. # ----------------------
  3252. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3253. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3254. AC_REQUIRE([AC_PROG_CC])dnl
  3255. AC_REQUIRE([AC_PROG_AWK])dnl
  3256. AC_REQUIRE([LT_PATH_NM])dnl
  3257. AC_REQUIRE([LT_PATH_LD])dnl
  3258. m4_require([_LT_DECL_SED])dnl
  3259. m4_require([_LT_DECL_EGREP])dnl
  3260. m4_require([_LT_TAG_COMPILER])dnl
  3261. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3262. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3263. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3264. [
  3265. # These are sane defaults that work on at least a few old systems.
  3266. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3267. # Character class describing NM global symbol codes.
  3268. symcode='[[BCDEGRST]]'
  3269. # Regexp to match symbols that can be accessed directly from C.
  3270. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3271. # Define system-specific variables.
  3272. case $host_os in
  3273. aix*)
  3274. symcode='[[BCDT]]'
  3275. ;;
  3276. cygwin* | mingw* | pw32* | cegcc*)
  3277. symcode='[[ABCDGISTW]]'
  3278. ;;
  3279. hpux*)
  3280. if test "$host_cpu" = ia64; then
  3281. symcode='[[ABCDEGRST]]'
  3282. fi
  3283. ;;
  3284. irix* | nonstopux*)
  3285. symcode='[[BCDEGRST]]'
  3286. ;;
  3287. osf*)
  3288. symcode='[[BCDEGQRST]]'
  3289. ;;
  3290. solaris*)
  3291. symcode='[[BDRT]]'
  3292. ;;
  3293. sco3.2v5*)
  3294. symcode='[[DT]]'
  3295. ;;
  3296. sysv4.2uw2*)
  3297. symcode='[[DT]]'
  3298. ;;
  3299. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3300. symcode='[[ABDT]]'
  3301. ;;
  3302. sysv4)
  3303. symcode='[[DFNSTU]]'
  3304. ;;
  3305. esac
  3306. # If we're using GNU nm, then use its standard symbol codes.
  3307. case `$NM -V 2>&1` in
  3308. *GNU* | *'with BFD'*)
  3309. symcode='[[ABCDGIRSTW]]' ;;
  3310. esac
  3311. # Transform an extracted symbol line into a proper C declaration.
  3312. # Some systems (esp. on ia64) link data and code symbols differently,
  3313. # so use this general approach.
  3314. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3315. # Transform an extracted symbol line into symbol name and symbol address
  3316. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3317. 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'"
  3318. # Handle CRLF in mingw tool chain
  3319. opt_cr=
  3320. case $build_os in
  3321. mingw*)
  3322. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3323. ;;
  3324. esac
  3325. # Try without a prefix underscore, then with it.
  3326. for ac_symprfx in "" "_"; do
  3327. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3328. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3329. # Write the raw and C identifiers.
  3330. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3331. # Fake it for dumpbin and say T for any non-static function
  3332. # and D for any global variable.
  3333. # Also find C++ and __fastcall symbols from MSVC++,
  3334. # which start with @ or ?.
  3335. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3336. " {last_section=section; section=\$ 3};"\
  3337. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3338. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3339. " \$ 0!~/External *\|/{next};"\
  3340. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3341. " {if(hide[section]) next};"\
  3342. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3343. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3344. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3345. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3346. " ' prfx=^$ac_symprfx]"
  3347. else
  3348. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3349. fi
  3350. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3351. # Check to see that the pipe works correctly.
  3352. pipe_works=no
  3353. rm -f conftest*
  3354. cat > conftest.$ac_ext <<_LT_EOF
  3355. #ifdef __cplusplus
  3356. extern "C" {
  3357. #endif
  3358. char nm_test_var;
  3359. void nm_test_func(void);
  3360. void nm_test_func(void){}
  3361. #ifdef __cplusplus
  3362. }
  3363. #endif
  3364. int main(){nm_test_var='a';nm_test_func();return(0);}
  3365. _LT_EOF
  3366. if AC_TRY_EVAL(ac_compile); then
  3367. # Now try to grab the symbols.
  3368. nlist=conftest.nm
  3369. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3370. # Try sorting and uniquifying the output.
  3371. if sort "$nlist" | uniq > "$nlist"T; then
  3372. mv -f "$nlist"T "$nlist"
  3373. else
  3374. rm -f "$nlist"T
  3375. fi
  3376. # Make sure that we snagged all the symbols we need.
  3377. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3378. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3379. cat <<_LT_EOF > conftest.$ac_ext
  3380. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3381. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3382. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3383. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3384. # define LT@&t@_DLSYM_CONST
  3385. #elif defined(__osf__)
  3386. /* This system does not cope well with relocations in const data. */
  3387. # define LT@&t@_DLSYM_CONST
  3388. #else
  3389. # define LT@&t@_DLSYM_CONST const
  3390. #endif
  3391. #ifdef __cplusplus
  3392. extern "C" {
  3393. #endif
  3394. _LT_EOF
  3395. # Now generate the symbol file.
  3396. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3397. cat <<_LT_EOF >> conftest.$ac_ext
  3398. /* The mapping between symbol names and symbols. */
  3399. LT@&t@_DLSYM_CONST struct {
  3400. const char *name;
  3401. void *address;
  3402. }
  3403. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3404. {
  3405. { "@PROGRAM@", (void *) 0 },
  3406. _LT_EOF
  3407. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3408. cat <<\_LT_EOF >> conftest.$ac_ext
  3409. {0, (void *) 0}
  3410. };
  3411. /* This works around a problem in FreeBSD linker */
  3412. #ifdef FREEBSD_WORKAROUND
  3413. static const void *lt_preloaded_setup() {
  3414. return lt__PROGRAM__LTX_preloaded_symbols;
  3415. }
  3416. #endif
  3417. #ifdef __cplusplus
  3418. }
  3419. #endif
  3420. _LT_EOF
  3421. # Now try linking the two files.
  3422. mv conftest.$ac_objext conftstm.$ac_objext
  3423. lt_globsym_save_LIBS=$LIBS
  3424. lt_globsym_save_CFLAGS=$CFLAGS
  3425. LIBS="conftstm.$ac_objext"
  3426. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3427. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3428. pipe_works=yes
  3429. fi
  3430. LIBS=$lt_globsym_save_LIBS
  3431. CFLAGS=$lt_globsym_save_CFLAGS
  3432. else
  3433. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3434. fi
  3435. else
  3436. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3437. fi
  3438. else
  3439. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3440. fi
  3441. else
  3442. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3443. cat conftest.$ac_ext >&5
  3444. fi
  3445. rm -rf conftest* conftst*
  3446. # Do not use the global_symbol_pipe unless it works.
  3447. if test "$pipe_works" = yes; then
  3448. break
  3449. else
  3450. lt_cv_sys_global_symbol_pipe=
  3451. fi
  3452. done
  3453. ])
  3454. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3455. lt_cv_sys_global_symbol_to_cdecl=
  3456. fi
  3457. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3458. AC_MSG_RESULT(failed)
  3459. else
  3460. AC_MSG_RESULT(ok)
  3461. fi
  3462. # Response file support.
  3463. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3464. nm_file_list_spec='@'
  3465. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3466. nm_file_list_spec='@'
  3467. fi
  3468. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3469. [Take the output of nm and produce a listing of raw symbols and C names])
  3470. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3471. [Transform the output of nm in a proper C declaration])
  3472. _LT_DECL([global_symbol_to_c_name_address],
  3473. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3474. [Transform the output of nm in a C name address pair])
  3475. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3476. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3477. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3478. _LT_DECL([], [nm_file_list_spec], [1],
  3479. [Specify filename containing input files for $NM])
  3480. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3481. # _LT_COMPILER_PIC([TAGNAME])
  3482. # ---------------------------
  3483. m4_defun([_LT_COMPILER_PIC],
  3484. [m4_require([_LT_TAG_COMPILER])dnl
  3485. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3486. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3487. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3488. m4_if([$1], [CXX], [
  3489. # C++ specific cases for pic, static, wl, etc.
  3490. if test "$GXX" = yes; then
  3491. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3492. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3493. case $host_os in
  3494. aix*)
  3495. # All AIX code is PIC.
  3496. if test "$host_cpu" = ia64; then
  3497. # AIX 5 now supports IA64 processor
  3498. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3499. fi
  3500. ;;
  3501. amigaos*)
  3502. case $host_cpu in
  3503. powerpc)
  3504. # see comment about AmigaOS4 .so support
  3505. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3506. ;;
  3507. m68k)
  3508. # FIXME: we need at least 68020 code to build shared libraries, but
  3509. # adding the `-m68020' flag to GCC prevents building anything better,
  3510. # like `-m68040'.
  3511. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3512. ;;
  3513. esac
  3514. ;;
  3515. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3516. # PIC is the default for these OSes.
  3517. ;;
  3518. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3519. # This hack is so that the source file can tell whether it is being
  3520. # built for inclusion in a dll (and should export symbols for example).
  3521. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3522. # (--disable-auto-import) libraries
  3523. m4_if([$1], [GCJ], [],
  3524. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3525. ;;
  3526. darwin* | rhapsody*)
  3527. # PIC is the default on this platform
  3528. # Common symbols not allowed in MH_DYLIB files
  3529. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3530. ;;
  3531. *djgpp*)
  3532. # DJGPP does not support shared libraries at all
  3533. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3534. ;;
  3535. haiku*)
  3536. # PIC is the default for Haiku.
  3537. # The "-static" flag exists, but is broken.
  3538. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3539. ;;
  3540. interix[[3-9]]*)
  3541. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3542. # Instead, we relocate shared libraries at runtime.
  3543. ;;
  3544. sysv4*MP*)
  3545. if test -d /usr/nec; then
  3546. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3547. fi
  3548. ;;
  3549. hpux*)
  3550. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3551. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3552. # sets the default TLS model and affects inlining.
  3553. case $host_cpu in
  3554. hppa*64*)
  3555. ;;
  3556. *)
  3557. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3558. ;;
  3559. esac
  3560. ;;
  3561. *qnx* | *nto*)
  3562. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3563. # it will coredump.
  3564. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3565. ;;
  3566. *)
  3567. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3568. ;;
  3569. esac
  3570. else
  3571. case $host_os in
  3572. aix[[4-9]]*)
  3573. # All AIX code is PIC.
  3574. if test "$host_cpu" = ia64; then
  3575. # AIX 5 now supports IA64 processor
  3576. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3577. else
  3578. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3579. fi
  3580. ;;
  3581. chorus*)
  3582. case $cc_basename in
  3583. cxch68*)
  3584. # Green Hills C++ Compiler
  3585. # _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"
  3586. ;;
  3587. esac
  3588. ;;
  3589. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3590. # This hack is so that the source file can tell whether it is being
  3591. # built for inclusion in a dll (and should export symbols for example).
  3592. m4_if([$1], [GCJ], [],
  3593. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3594. ;;
  3595. dgux*)
  3596. case $cc_basename in
  3597. ec++*)
  3598. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3599. ;;
  3600. ghcx*)
  3601. # Green Hills C++ Compiler
  3602. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3603. ;;
  3604. *)
  3605. ;;
  3606. esac
  3607. ;;
  3608. freebsd* | dragonfly*)
  3609. # FreeBSD uses GNU C++
  3610. ;;
  3611. hpux9* | hpux10* | hpux11*)
  3612. case $cc_basename in
  3613. CC*)
  3614. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3615. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3616. if test "$host_cpu" != ia64; then
  3617. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3618. fi
  3619. ;;
  3620. aCC*)
  3621. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3622. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3623. case $host_cpu in
  3624. hppa*64*|ia64*)
  3625. # +Z the default
  3626. ;;
  3627. *)
  3628. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3629. ;;
  3630. esac
  3631. ;;
  3632. *)
  3633. ;;
  3634. esac
  3635. ;;
  3636. interix*)
  3637. # This is c89, which is MS Visual C++ (no shared libs)
  3638. # Anyone wants to do a port?
  3639. ;;
  3640. irix5* | irix6* | nonstopux*)
  3641. case $cc_basename in
  3642. CC*)
  3643. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3644. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3645. # CC pic flag -KPIC is the default.
  3646. ;;
  3647. *)
  3648. ;;
  3649. esac
  3650. ;;
  3651. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3652. case $cc_basename in
  3653. KCC*)
  3654. # KAI C++ Compiler
  3655. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3656. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3657. ;;
  3658. ecpc* )
  3659. # old Intel C++ for x86_64 which still supported -KPIC.
  3660. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3661. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3662. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3663. ;;
  3664. icpc* )
  3665. # Intel C++, used to be incompatible with GCC.
  3666. # ICC 10 doesn't accept -KPIC any more.
  3667. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3668. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3669. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3670. ;;
  3671. pgCC* | pgcpp*)
  3672. # Portland Group C++ compiler
  3673. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3674. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3675. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3676. ;;
  3677. cxx*)
  3678. # Compaq C++
  3679. # Make sure the PIC flag is empty. It appears that all Alpha
  3680. # Linux and Compaq Tru64 Unix objects are PIC.
  3681. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3682. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3683. ;;
  3684. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3685. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3686. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3687. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3688. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3689. ;;
  3690. *)
  3691. case `$CC -V 2>&1 | sed 5q` in
  3692. *Sun\ C*)
  3693. # Sun C++ 5.9
  3694. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3695. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3696. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3697. ;;
  3698. esac
  3699. ;;
  3700. esac
  3701. ;;
  3702. lynxos*)
  3703. ;;
  3704. m88k*)
  3705. ;;
  3706. mvs*)
  3707. case $cc_basename in
  3708. cxx*)
  3709. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3710. ;;
  3711. *)
  3712. ;;
  3713. esac
  3714. ;;
  3715. netbsd*)
  3716. ;;
  3717. *qnx* | *nto*)
  3718. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3719. # it will coredump.
  3720. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3721. ;;
  3722. osf3* | osf4* | osf5*)
  3723. case $cc_basename in
  3724. KCC*)
  3725. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3726. ;;
  3727. RCC*)
  3728. # Rational C++ 2.4.1
  3729. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3730. ;;
  3731. cxx*)
  3732. # Digital/Compaq C++
  3733. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3734. # Make sure the PIC flag is empty. It appears that all Alpha
  3735. # Linux and Compaq Tru64 Unix objects are PIC.
  3736. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3737. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3738. ;;
  3739. *)
  3740. ;;
  3741. esac
  3742. ;;
  3743. psos*)
  3744. ;;
  3745. solaris*)
  3746. case $cc_basename in
  3747. CC* | sunCC*)
  3748. # Sun C++ 4.2, 5.x and Centerline C++
  3749. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3750. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3751. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3752. ;;
  3753. gcx*)
  3754. # Green Hills C++ Compiler
  3755. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3756. ;;
  3757. *)
  3758. ;;
  3759. esac
  3760. ;;
  3761. sunos4*)
  3762. case $cc_basename in
  3763. CC*)
  3764. # Sun C++ 4.x
  3765. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3766. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3767. ;;
  3768. lcc*)
  3769. # Lucid
  3770. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3771. ;;
  3772. *)
  3773. ;;
  3774. esac
  3775. ;;
  3776. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3777. case $cc_basename in
  3778. CC*)
  3779. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3780. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3781. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3782. ;;
  3783. esac
  3784. ;;
  3785. tandem*)
  3786. case $cc_basename in
  3787. NCC*)
  3788. # NonStop-UX NCC 3.20
  3789. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3790. ;;
  3791. *)
  3792. ;;
  3793. esac
  3794. ;;
  3795. vxworks*)
  3796. ;;
  3797. *)
  3798. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3799. ;;
  3800. esac
  3801. fi
  3802. ],
  3803. [
  3804. if test "$GCC" = yes; then
  3805. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3806. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3807. case $host_os in
  3808. aix*)
  3809. # All AIX code is PIC.
  3810. if test "$host_cpu" = ia64; then
  3811. # AIX 5 now supports IA64 processor
  3812. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3813. fi
  3814. ;;
  3815. amigaos*)
  3816. case $host_cpu in
  3817. powerpc)
  3818. # see comment about AmigaOS4 .so support
  3819. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3820. ;;
  3821. m68k)
  3822. # FIXME: we need at least 68020 code to build shared libraries, but
  3823. # adding the `-m68020' flag to GCC prevents building anything better,
  3824. # like `-m68040'.
  3825. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3826. ;;
  3827. esac
  3828. ;;
  3829. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3830. # PIC is the default for these OSes.
  3831. ;;
  3832. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3833. # This hack is so that the source file can tell whether it is being
  3834. # built for inclusion in a dll (and should export symbols for example).
  3835. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3836. # (--disable-auto-import) libraries
  3837. m4_if([$1], [GCJ], [],
  3838. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3839. ;;
  3840. darwin* | rhapsody*)
  3841. # PIC is the default on this platform
  3842. # Common symbols not allowed in MH_DYLIB files
  3843. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3844. ;;
  3845. haiku*)
  3846. # PIC is the default for Haiku.
  3847. # The "-static" flag exists, but is broken.
  3848. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3849. ;;
  3850. hpux*)
  3851. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3852. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3853. # sets the default TLS model and affects inlining.
  3854. case $host_cpu in
  3855. hppa*64*)
  3856. # +Z the default
  3857. ;;
  3858. *)
  3859. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3860. ;;
  3861. esac
  3862. ;;
  3863. interix[[3-9]]*)
  3864. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3865. # Instead, we relocate shared libraries at runtime.
  3866. ;;
  3867. msdosdjgpp*)
  3868. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3869. # on systems that don't support them.
  3870. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3871. enable_shared=no
  3872. ;;
  3873. *nto* | *qnx*)
  3874. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3875. # it will coredump.
  3876. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3877. ;;
  3878. sysv4*MP*)
  3879. if test -d /usr/nec; then
  3880. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3881. fi
  3882. ;;
  3883. *)
  3884. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3885. ;;
  3886. esac
  3887. case $cc_basename in
  3888. nvcc*) # Cuda Compiler Driver 2.2
  3889. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  3890. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  3891. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  3892. fi
  3893. ;;
  3894. esac
  3895. else
  3896. # PORTME Check for flag to pass linker flags through the system compiler.
  3897. case $host_os in
  3898. aix*)
  3899. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3900. if test "$host_cpu" = ia64; then
  3901. # AIX 5 now supports IA64 processor
  3902. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3903. else
  3904. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3905. fi
  3906. ;;
  3907. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3908. # This hack is so that the source file can tell whether it is being
  3909. # built for inclusion in a dll (and should export symbols for example).
  3910. m4_if([$1], [GCJ], [],
  3911. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3912. ;;
  3913. hpux9* | hpux10* | hpux11*)
  3914. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3915. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3916. # not for PA HP-UX.
  3917. case $host_cpu in
  3918. hppa*64*|ia64*)
  3919. # +Z the default
  3920. ;;
  3921. *)
  3922. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3923. ;;
  3924. esac
  3925. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3926. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3927. ;;
  3928. irix5* | irix6* | nonstopux*)
  3929. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3930. # PIC (with -KPIC) is the default.
  3931. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3932. ;;
  3933. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3934. case $cc_basename in
  3935. # old Intel for x86_64 which still supported -KPIC.
  3936. ecc*)
  3937. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3938. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3939. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3940. ;;
  3941. # icc used to be incompatible with GCC.
  3942. # ICC 10 doesn't accept -KPIC any more.
  3943. icc* | ifort*)
  3944. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3945. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3946. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3947. ;;
  3948. # Lahey Fortran 8.1.
  3949. lf95*)
  3950. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3951. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  3952. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  3953. ;;
  3954. nagfor*)
  3955. # NAG Fortran compiler
  3956. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  3957. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3958. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3959. ;;
  3960. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  3961. # Portland Group compilers (*not* the Pentium gcc compiler,
  3962. # which looks to be a dead project)
  3963. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3964. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3965. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3966. ;;
  3967. ccc*)
  3968. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3969. # All Alpha code is PIC.
  3970. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3971. ;;
  3972. xl* | bgxl* | bgf* | mpixl*)
  3973. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  3974. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3975. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3976. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3977. ;;
  3978. *)
  3979. case `$CC -V 2>&1 | sed 5q` in
  3980. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  3981. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  3982. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3983. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3984. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  3985. ;;
  3986. *Sun\ F* | *Sun*Fortran*)
  3987. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3988. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3989. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3990. ;;
  3991. *Sun\ C*)
  3992. # Sun C 5.9
  3993. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3994. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3995. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3996. ;;
  3997. *Intel*\ [[CF]]*Compiler*)
  3998. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3999. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4000. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4001. ;;
  4002. *Portland\ Group*)
  4003. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4004. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4005. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4006. ;;
  4007. esac
  4008. ;;
  4009. esac
  4010. ;;
  4011. newsos6)
  4012. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4013. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4014. ;;
  4015. *nto* | *qnx*)
  4016. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4017. # it will coredump.
  4018. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4019. ;;
  4020. osf3* | osf4* | osf5*)
  4021. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4022. # All OSF/1 code is PIC.
  4023. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4024. ;;
  4025. rdos*)
  4026. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4027. ;;
  4028. solaris*)
  4029. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4030. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4031. case $cc_basename in
  4032. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4033. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4034. *)
  4035. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4036. esac
  4037. ;;
  4038. sunos4*)
  4039. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4040. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4041. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4042. ;;
  4043. sysv4 | sysv4.2uw2* | sysv4.3*)
  4044. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4045. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4046. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4047. ;;
  4048. sysv4*MP*)
  4049. if test -d /usr/nec ;then
  4050. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4051. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4052. fi
  4053. ;;
  4054. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4055. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4056. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4057. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4058. ;;
  4059. unicos*)
  4060. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4061. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4062. ;;
  4063. uts4*)
  4064. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4065. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4066. ;;
  4067. *)
  4068. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4069. ;;
  4070. esac
  4071. fi
  4072. ])
  4073. case $host_os in
  4074. # For platforms which do not support PIC, -DPIC is meaningless:
  4075. *djgpp*)
  4076. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4077. ;;
  4078. *)
  4079. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4080. ;;
  4081. esac
  4082. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4083. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4084. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4085. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4086. #
  4087. # Check to make sure the PIC flag actually works.
  4088. #
  4089. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4090. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4091. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4092. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4093. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4094. "" | " "*) ;;
  4095. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4096. esac],
  4097. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4098. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4099. fi
  4100. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4101. [Additional compiler flags for building library objects])
  4102. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4103. [How to pass a linker flag through the compiler])
  4104. #
  4105. # Check to make sure the static flag actually works.
  4106. #
  4107. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4108. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4109. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4110. $lt_tmp_static_flag,
  4111. [],
  4112. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4113. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4114. [Compiler flag to prevent dynamic linking])
  4115. ])# _LT_COMPILER_PIC
  4116. # _LT_LINKER_SHLIBS([TAGNAME])
  4117. # ----------------------------
  4118. # See if the linker supports building shared libraries.
  4119. m4_defun([_LT_LINKER_SHLIBS],
  4120. [AC_REQUIRE([LT_PATH_LD])dnl
  4121. AC_REQUIRE([LT_PATH_NM])dnl
  4122. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4123. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4124. m4_require([_LT_DECL_EGREP])dnl
  4125. m4_require([_LT_DECL_SED])dnl
  4126. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4127. m4_require([_LT_TAG_COMPILER])dnl
  4128. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4129. m4_if([$1], [CXX], [
  4130. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4131. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4132. case $host_os in
  4133. aix[[4-9]]*)
  4134. # If we're using GNU nm, then we don't want the "-C" option.
  4135. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4136. # Also, AIX nm treats weak defined symbols like other global defined
  4137. # symbols, whereas GNU nm marks them as "W".
  4138. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4139. _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'
  4140. else
  4141. _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'
  4142. fi
  4143. ;;
  4144. pw32*)
  4145. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4146. ;;
  4147. cygwin* | mingw* | cegcc*)
  4148. case $cc_basename in
  4149. cl*)
  4150. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4151. ;;
  4152. *)
  4153. _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'
  4154. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4155. ;;
  4156. esac
  4157. ;;
  4158. *)
  4159. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4160. ;;
  4161. esac
  4162. ], [
  4163. runpath_var=
  4164. _LT_TAGVAR(allow_undefined_flag, $1)=
  4165. _LT_TAGVAR(always_export_symbols, $1)=no
  4166. _LT_TAGVAR(archive_cmds, $1)=
  4167. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4168. _LT_TAGVAR(compiler_needs_object, $1)=no
  4169. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4170. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4171. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4172. _LT_TAGVAR(hardcode_automatic, $1)=no
  4173. _LT_TAGVAR(hardcode_direct, $1)=no
  4174. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4175. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4176. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4177. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4178. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4179. _LT_TAGVAR(inherit_rpath, $1)=no
  4180. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4181. _LT_TAGVAR(module_cmds, $1)=
  4182. _LT_TAGVAR(module_expsym_cmds, $1)=
  4183. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4184. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4185. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4186. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4187. # include_expsyms should be a list of space-separated symbols to be *always*
  4188. # included in the symbol list
  4189. _LT_TAGVAR(include_expsyms, $1)=
  4190. # exclude_expsyms can be an extended regexp of symbols to exclude
  4191. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4192. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4193. # as well as any symbol that contains `d'.
  4194. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4195. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4196. # platforms (ab)use it in PIC code, but their linkers get confused if
  4197. # the symbol is explicitly referenced. Since portable code cannot
  4198. # rely on this symbol name, it's probably fine to never include it in
  4199. # preloaded symbol tables.
  4200. # Exclude shared library initialization/finalization symbols.
  4201. dnl Note also adjust exclude_expsyms for C++ above.
  4202. extract_expsyms_cmds=
  4203. case $host_os in
  4204. cygwin* | mingw* | pw32* | cegcc*)
  4205. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4206. # When not using gcc, we currently assume that we are using
  4207. # Microsoft Visual C++.
  4208. if test "$GCC" != yes; then
  4209. with_gnu_ld=no
  4210. fi
  4211. ;;
  4212. interix*)
  4213. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4214. with_gnu_ld=yes
  4215. ;;
  4216. openbsd*)
  4217. with_gnu_ld=no
  4218. ;;
  4219. esac
  4220. _LT_TAGVAR(ld_shlibs, $1)=yes
  4221. # On some targets, GNU ld is compatible enough with the native linker
  4222. # that we're better off using the native interface for both.
  4223. lt_use_gnu_ld_interface=no
  4224. if test "$with_gnu_ld" = yes; then
  4225. case $host_os in
  4226. aix*)
  4227. # The AIX port of GNU ld has always aspired to compatibility
  4228. # with the native linker. However, as the warning in the GNU ld
  4229. # block says, versions before 2.19.5* couldn't really create working
  4230. # shared libraries, regardless of the interface used.
  4231. case `$LD -v 2>&1` in
  4232. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4233. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4234. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4235. *)
  4236. lt_use_gnu_ld_interface=yes
  4237. ;;
  4238. esac
  4239. ;;
  4240. *)
  4241. lt_use_gnu_ld_interface=yes
  4242. ;;
  4243. esac
  4244. fi
  4245. if test "$lt_use_gnu_ld_interface" = yes; then
  4246. # If archive_cmds runs LD, not CC, wlarc should be empty
  4247. wlarc='${wl}'
  4248. # Set some defaults for GNU ld with shared library support. These
  4249. # are reset later if shared libraries are not supported. Putting them
  4250. # here allows them to be overridden if necessary.
  4251. runpath_var=LD_RUN_PATH
  4252. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4253. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4254. # ancient GNU ld didn't support --whole-archive et. al.
  4255. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4256. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4257. else
  4258. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4259. fi
  4260. supports_anon_versioning=no
  4261. case `$LD -v 2>&1` in
  4262. *GNU\ gold*) supports_anon_versioning=yes ;;
  4263. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4264. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4265. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4266. *\ 2.11.*) ;; # other 2.11 versions
  4267. *) supports_anon_versioning=yes ;;
  4268. esac
  4269. # See if GNU ld supports shared libraries.
  4270. case $host_os in
  4271. aix[[3-9]]*)
  4272. # On AIX/PPC, the GNU linker is very broken
  4273. if test "$host_cpu" != ia64; then
  4274. _LT_TAGVAR(ld_shlibs, $1)=no
  4275. cat <<_LT_EOF 1>&2
  4276. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4277. *** to be unable to reliably create shared libraries on AIX.
  4278. *** Therefore, libtool is disabling shared libraries support. If you
  4279. *** really care for shared libraries, you may want to install binutils
  4280. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4281. *** You will then need to restart the configuration process.
  4282. _LT_EOF
  4283. fi
  4284. ;;
  4285. amigaos*)
  4286. case $host_cpu in
  4287. powerpc)
  4288. # see comment about AmigaOS4 .so support
  4289. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4290. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4291. ;;
  4292. m68k)
  4293. _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)'
  4294. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4295. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4296. ;;
  4297. esac
  4298. ;;
  4299. beos*)
  4300. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4301. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4302. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4303. # support --undefined. This deserves some investigation. FIXME
  4304. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4305. else
  4306. _LT_TAGVAR(ld_shlibs, $1)=no
  4307. fi
  4308. ;;
  4309. cygwin* | mingw* | pw32* | cegcc*)
  4310. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4311. # as there is no search path for DLLs.
  4312. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4313. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4314. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4315. _LT_TAGVAR(always_export_symbols, $1)=no
  4316. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4317. _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'
  4318. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4319. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4320. _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'
  4321. # If the export-symbols file already is a .def file (1st line
  4322. # is EXPORTS), use it as is; otherwise, prepend...
  4323. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4324. cp $export_symbols $output_objdir/$soname.def;
  4325. else
  4326. echo EXPORTS > $output_objdir/$soname.def;
  4327. cat $export_symbols >> $output_objdir/$soname.def;
  4328. fi~
  4329. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4330. else
  4331. _LT_TAGVAR(ld_shlibs, $1)=no
  4332. fi
  4333. ;;
  4334. haiku*)
  4335. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4336. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4337. ;;
  4338. interix[[3-9]]*)
  4339. _LT_TAGVAR(hardcode_direct, $1)=no
  4340. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4341. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4342. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4343. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4344. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4345. # default) and relocated if they conflict, which is a slow very memory
  4346. # consuming and fragmenting process. To avoid this, we pick a random,
  4347. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4348. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4349. _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'
  4350. _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'
  4351. ;;
  4352. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4353. tmp_diet=no
  4354. if test "$host_os" = linux-dietlibc; then
  4355. case $cc_basename in
  4356. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4357. esac
  4358. fi
  4359. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4360. && test "$tmp_diet" = no
  4361. then
  4362. tmp_addflag=' $pic_flag'
  4363. tmp_sharedflag='-shared'
  4364. case $cc_basename,$host_cpu in
  4365. pgcc*) # Portland Group C compiler
  4366. _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'
  4367. tmp_addflag=' $pic_flag'
  4368. ;;
  4369. pgf77* | pgf90* | pgf95* | pgfortran*)
  4370. # Portland Group f77 and f90 compilers
  4371. _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'
  4372. tmp_addflag=' $pic_flag -Mnomain' ;;
  4373. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4374. tmp_addflag=' -i_dynamic' ;;
  4375. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4376. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4377. ifc* | ifort*) # Intel Fortran compiler
  4378. tmp_addflag=' -nofor_main' ;;
  4379. lf95*) # Lahey Fortran 8.1
  4380. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4381. tmp_sharedflag='--shared' ;;
  4382. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4383. tmp_sharedflag='-qmkshrobj'
  4384. tmp_addflag= ;;
  4385. nvcc*) # Cuda Compiler Driver 2.2
  4386. _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'
  4387. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4388. ;;
  4389. esac
  4390. case `$CC -V 2>&1 | sed 5q` in
  4391. *Sun\ C*) # Sun C 5.9
  4392. _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'
  4393. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4394. tmp_sharedflag='-G' ;;
  4395. *Sun\ F*) # Sun Fortran 8.3
  4396. tmp_sharedflag='-G' ;;
  4397. esac
  4398. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4399. if test "x$supports_anon_versioning" = xyes; then
  4400. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4401. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4402. echo "local: *; };" >> $output_objdir/$libname.ver~
  4403. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4404. fi
  4405. case $cc_basename in
  4406. xlf* | bgf* | bgxlf* | mpixlf*)
  4407. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4408. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4409. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4410. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4411. if test "x$supports_anon_versioning" = xyes; then
  4412. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4413. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4414. echo "local: *; };" >> $output_objdir/$libname.ver~
  4415. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4416. fi
  4417. ;;
  4418. esac
  4419. else
  4420. _LT_TAGVAR(ld_shlibs, $1)=no
  4421. fi
  4422. ;;
  4423. netbsd*)
  4424. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4425. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4426. wlarc=
  4427. else
  4428. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4429. _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'
  4430. fi
  4431. ;;
  4432. solaris*)
  4433. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4434. _LT_TAGVAR(ld_shlibs, $1)=no
  4435. cat <<_LT_EOF 1>&2
  4436. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4437. *** create shared libraries on Solaris systems. Therefore, libtool
  4438. *** is disabling shared libraries support. We urge you to upgrade GNU
  4439. *** binutils to release 2.9.1 or newer. Another option is to modify
  4440. *** your PATH or compiler configuration so that the native linker is
  4441. *** used, and then restart.
  4442. _LT_EOF
  4443. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4444. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4445. _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'
  4446. else
  4447. _LT_TAGVAR(ld_shlibs, $1)=no
  4448. fi
  4449. ;;
  4450. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4451. case `$LD -v 2>&1` in
  4452. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4453. _LT_TAGVAR(ld_shlibs, $1)=no
  4454. cat <<_LT_EOF 1>&2
  4455. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4456. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4457. *** is disabling shared libraries support. We urge you to upgrade GNU
  4458. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4459. *** your PATH or compiler configuration so that the native linker is
  4460. *** used, and then restart.
  4461. _LT_EOF
  4462. ;;
  4463. *)
  4464. # For security reasons, it is highly recommended that you always
  4465. # use absolute paths for naming shared libraries, and exclude the
  4466. # DT_RUNPATH tag from executables and libraries. But doing so
  4467. # requires that you compile everything twice, which is a pain.
  4468. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4469. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4470. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4471. _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'
  4472. else
  4473. _LT_TAGVAR(ld_shlibs, $1)=no
  4474. fi
  4475. ;;
  4476. esac
  4477. ;;
  4478. sunos4*)
  4479. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4480. wlarc=
  4481. _LT_TAGVAR(hardcode_direct, $1)=yes
  4482. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4483. ;;
  4484. *)
  4485. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4486. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4487. _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'
  4488. else
  4489. _LT_TAGVAR(ld_shlibs, $1)=no
  4490. fi
  4491. ;;
  4492. esac
  4493. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4494. runpath_var=
  4495. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4496. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4497. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4498. fi
  4499. else
  4500. # PORTME fill in a description of your system's linker (not GNU ld)
  4501. case $host_os in
  4502. aix3*)
  4503. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4504. _LT_TAGVAR(always_export_symbols, $1)=yes
  4505. _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'
  4506. # Note: this linker hardcodes the directories in LIBPATH if there
  4507. # are no directories specified by -L.
  4508. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4509. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4510. # Neither direct hardcoding nor static linking is supported with a
  4511. # broken collect2.
  4512. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4513. fi
  4514. ;;
  4515. aix[[4-9]]*)
  4516. if test "$host_cpu" = ia64; then
  4517. # On IA64, the linker does run time linking by default, so we don't
  4518. # have to do anything special.
  4519. aix_use_runtimelinking=no
  4520. exp_sym_flag='-Bexport'
  4521. no_entry_flag=""
  4522. else
  4523. # If we're using GNU nm, then we don't want the "-C" option.
  4524. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4525. # Also, AIX nm treats weak defined symbols like other global
  4526. # defined symbols, whereas GNU nm marks them as "W".
  4527. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4528. _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'
  4529. else
  4530. _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'
  4531. fi
  4532. aix_use_runtimelinking=no
  4533. # Test if we are trying to use run time linking or normal
  4534. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4535. # need to do runtime linking.
  4536. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4537. for ld_flag in $LDFLAGS; do
  4538. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4539. aix_use_runtimelinking=yes
  4540. break
  4541. fi
  4542. done
  4543. ;;
  4544. esac
  4545. exp_sym_flag='-bexport'
  4546. no_entry_flag='-bnoentry'
  4547. fi
  4548. # When large executables or shared objects are built, AIX ld can
  4549. # have problems creating the table of contents. If linking a library
  4550. # or program results in "error TOC overflow" add -mminimal-toc to
  4551. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4552. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4553. _LT_TAGVAR(archive_cmds, $1)=''
  4554. _LT_TAGVAR(hardcode_direct, $1)=yes
  4555. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4556. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4557. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4558. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4559. if test "$GCC" = yes; then
  4560. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4561. # We only want to do this on AIX 4.2 and lower, the check
  4562. # below for broken collect2 doesn't work under 4.3+
  4563. collect2name=`${CC} -print-prog-name=collect2`
  4564. if test -f "$collect2name" &&
  4565. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4566. then
  4567. # We have reworked collect2
  4568. :
  4569. else
  4570. # We have old collect2
  4571. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4572. # It fails to find uninstalled libraries when the uninstalled
  4573. # path is not listed in the libpath. Setting hardcode_minus_L
  4574. # to unsupported forces relinking
  4575. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4576. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4577. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4578. fi
  4579. ;;
  4580. esac
  4581. shared_flag='-shared'
  4582. if test "$aix_use_runtimelinking" = yes; then
  4583. shared_flag="$shared_flag "'${wl}-G'
  4584. fi
  4585. else
  4586. # not using gcc
  4587. if test "$host_cpu" = ia64; then
  4588. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4589. # chokes on -Wl,-G. The following line is correct:
  4590. shared_flag='-G'
  4591. else
  4592. if test "$aix_use_runtimelinking" = yes; then
  4593. shared_flag='${wl}-G'
  4594. else
  4595. shared_flag='${wl}-bM:SRE'
  4596. fi
  4597. fi
  4598. fi
  4599. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4600. # It seems that -bexpall does not export symbols beginning with
  4601. # underscore (_), so it is better to generate a list of symbols to export.
  4602. _LT_TAGVAR(always_export_symbols, $1)=yes
  4603. if test "$aix_use_runtimelinking" = yes; then
  4604. # Warning - without using the other runtime loading flags (-brtl),
  4605. # -berok will link without error, but may produce a broken library.
  4606. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4607. # Determine the default libpath from the value encoded in an
  4608. # empty executable.
  4609. _LT_SYS_MODULE_PATH_AIX([$1])
  4610. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4611. _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"
  4612. else
  4613. if test "$host_cpu" = ia64; then
  4614. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4615. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4616. _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"
  4617. else
  4618. # Determine the default libpath from the value encoded in an
  4619. # empty executable.
  4620. _LT_SYS_MODULE_PATH_AIX([$1])
  4621. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4622. # Warning - without using the other run time loading flags,
  4623. # -berok will link without error, but may produce a broken library.
  4624. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4625. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4626. if test "$with_gnu_ld" = yes; then
  4627. # We only use this code for GNU lds that support --whole-archive.
  4628. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4629. else
  4630. # Exported symbols can be pulled into shared objects from archives
  4631. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4632. fi
  4633. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4634. # This is similar to how AIX traditionally builds its shared libraries.
  4635. _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'
  4636. fi
  4637. fi
  4638. ;;
  4639. amigaos*)
  4640. case $host_cpu in
  4641. powerpc)
  4642. # see comment about AmigaOS4 .so support
  4643. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4644. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4645. ;;
  4646. m68k)
  4647. _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)'
  4648. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4649. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4650. ;;
  4651. esac
  4652. ;;
  4653. bsdi[[45]]*)
  4654. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4655. ;;
  4656. cygwin* | mingw* | pw32* | cegcc*)
  4657. # When not using gcc, we currently assume that we are using
  4658. # Microsoft Visual C++.
  4659. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4660. # no search path for DLLs.
  4661. case $cc_basename in
  4662. cl*)
  4663. # Native MSVC
  4664. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4665. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4666. _LT_TAGVAR(always_export_symbols, $1)=yes
  4667. _LT_TAGVAR(file_list_spec, $1)='@'
  4668. # Tell ltmain to make .lib files, not .a files.
  4669. libext=lib
  4670. # Tell ltmain to make .dll files, not .so files.
  4671. shrext_cmds=".dll"
  4672. # FIXME: Setting linknames here is a bad hack.
  4673. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  4674. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4675. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  4676. else
  4677. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  4678. fi~
  4679. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4680. linknames='
  4681. # The linker will not automatically build a static lib if we build a DLL.
  4682. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4683. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4684. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4685. _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'
  4686. # Don't use ranlib
  4687. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  4688. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  4689. lt_tool_outputfile="@TOOL_OUTPUT@"~
  4690. case $lt_outputfile in
  4691. *.exe|*.EXE) ;;
  4692. *)
  4693. lt_outputfile="$lt_outputfile.exe"
  4694. lt_tool_outputfile="$lt_tool_outputfile.exe"
  4695. ;;
  4696. esac~
  4697. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  4698. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4699. $RM "$lt_outputfile.manifest";
  4700. fi'
  4701. ;;
  4702. *)
  4703. # Assume MSVC wrapper
  4704. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4705. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4706. # Tell ltmain to make .lib files, not .a files.
  4707. libext=lib
  4708. # Tell ltmain to make .dll files, not .so files.
  4709. shrext_cmds=".dll"
  4710. # FIXME: Setting linknames here is a bad hack.
  4711. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4712. # The linker will automatically build a .lib file if we build a DLL.
  4713. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4714. # FIXME: Should let the user specify the lib program.
  4715. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4716. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4717. ;;
  4718. esac
  4719. ;;
  4720. darwin* | rhapsody*)
  4721. _LT_DARWIN_LINKER_FEATURES($1)
  4722. ;;
  4723. dgux*)
  4724. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4725. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4726. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4727. ;;
  4728. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4729. # support. Future versions do this automatically, but an explicit c++rt0.o
  4730. # does not break anything, and helps significantly (at the cost of a little
  4731. # extra space).
  4732. freebsd2.2*)
  4733. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4734. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4735. _LT_TAGVAR(hardcode_direct, $1)=yes
  4736. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4737. ;;
  4738. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4739. freebsd2.*)
  4740. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4741. _LT_TAGVAR(hardcode_direct, $1)=yes
  4742. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4743. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4744. ;;
  4745. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4746. freebsd* | dragonfly*)
  4747. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4748. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4749. _LT_TAGVAR(hardcode_direct, $1)=yes
  4750. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4751. ;;
  4752. hpux9*)
  4753. if test "$GCC" = yes; then
  4754. _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'
  4755. else
  4756. _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'
  4757. fi
  4758. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4759. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4760. _LT_TAGVAR(hardcode_direct, $1)=yes
  4761. # hardcode_minus_L: Not really in the search PATH,
  4762. # but as the default location of the library.
  4763. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4764. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4765. ;;
  4766. hpux10*)
  4767. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4768. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4769. else
  4770. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4771. fi
  4772. if test "$with_gnu_ld" = no; then
  4773. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4774. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4775. _LT_TAGVAR(hardcode_direct, $1)=yes
  4776. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4777. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4778. # hardcode_minus_L: Not really in the search PATH,
  4779. # but as the default location of the library.
  4780. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4781. fi
  4782. ;;
  4783. hpux11*)
  4784. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4785. case $host_cpu in
  4786. hppa*64*)
  4787. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4788. ;;
  4789. ia64*)
  4790. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4791. ;;
  4792. *)
  4793. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4794. ;;
  4795. esac
  4796. else
  4797. case $host_cpu in
  4798. hppa*64*)
  4799. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4800. ;;
  4801. ia64*)
  4802. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4803. ;;
  4804. *)
  4805. m4_if($1, [], [
  4806. # Older versions of the 11.00 compiler do not understand -b yet
  4807. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4808. _LT_LINKER_OPTION([if $CC understands -b],
  4809. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4810. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4811. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4812. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4813. ;;
  4814. esac
  4815. fi
  4816. if test "$with_gnu_ld" = no; then
  4817. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4818. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4819. case $host_cpu in
  4820. hppa*64*|ia64*)
  4821. _LT_TAGVAR(hardcode_direct, $1)=no
  4822. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4823. ;;
  4824. *)
  4825. _LT_TAGVAR(hardcode_direct, $1)=yes
  4826. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4827. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4828. # hardcode_minus_L: Not really in the search PATH,
  4829. # but as the default location of the library.
  4830. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4831. ;;
  4832. esac
  4833. fi
  4834. ;;
  4835. irix5* | irix6* | nonstopux*)
  4836. if test "$GCC" = yes; then
  4837. _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'
  4838. # Try to use the -exported_symbol ld option, if it does not
  4839. # work, assume that -exports_file does not work either and
  4840. # implicitly export all symbols.
  4841. # This should be the same for all languages, so no per-tag cache variable.
  4842. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  4843. [lt_cv_irix_exported_symbol],
  4844. [save_LDFLAGS="$LDFLAGS"
  4845. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4846. AC_LINK_IFELSE(
  4847. [AC_LANG_SOURCE(
  4848. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  4849. [C++], [[int foo (void) { return 0; }]],
  4850. [Fortran 77], [[
  4851. subroutine foo
  4852. end]],
  4853. [Fortran], [[
  4854. subroutine foo
  4855. end]])])],
  4856. [lt_cv_irix_exported_symbol=yes],
  4857. [lt_cv_irix_exported_symbol=no])
  4858. LDFLAGS="$save_LDFLAGS"])
  4859. if test "$lt_cv_irix_exported_symbol" = yes; then
  4860. _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'
  4861. fi
  4862. else
  4863. _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'
  4864. _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'
  4865. fi
  4866. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4867. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4868. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4869. _LT_TAGVAR(inherit_rpath, $1)=yes
  4870. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4871. ;;
  4872. netbsd*)
  4873. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4874. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4875. else
  4876. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4877. fi
  4878. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4879. _LT_TAGVAR(hardcode_direct, $1)=yes
  4880. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4881. ;;
  4882. newsos6)
  4883. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4884. _LT_TAGVAR(hardcode_direct, $1)=yes
  4885. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4886. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4887. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4888. ;;
  4889. *nto* | *qnx*)
  4890. ;;
  4891. openbsd*)
  4892. if test -f /usr/libexec/ld.so; then
  4893. _LT_TAGVAR(hardcode_direct, $1)=yes
  4894. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4895. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4896. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4897. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4898. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4899. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4900. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4901. else
  4902. case $host_os in
  4903. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4904. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4905. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4906. ;;
  4907. *)
  4908. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4909. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4910. ;;
  4911. esac
  4912. fi
  4913. else
  4914. _LT_TAGVAR(ld_shlibs, $1)=no
  4915. fi
  4916. ;;
  4917. os2*)
  4918. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4919. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4920. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4921. _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'
  4922. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4923. ;;
  4924. osf3*)
  4925. if test "$GCC" = yes; then
  4926. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4927. _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'
  4928. else
  4929. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4930. _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'
  4931. fi
  4932. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4933. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4934. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4935. ;;
  4936. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4937. if test "$GCC" = yes; then
  4938. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4939. _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'
  4940. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4941. else
  4942. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4943. _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'
  4944. _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~
  4945. $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'
  4946. # Both c and cxx compiler support -rpath directly
  4947. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4948. fi
  4949. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4950. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4951. ;;
  4952. solaris*)
  4953. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4954. if test "$GCC" = yes; then
  4955. wlarc='${wl}'
  4956. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4957. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4958. $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'
  4959. else
  4960. case `$CC -V 2>&1` in
  4961. *"Compilers 5.0"*)
  4962. wlarc=''
  4963. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4964. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4965. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4966. ;;
  4967. *)
  4968. wlarc='${wl}'
  4969. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4970. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4971. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4972. ;;
  4973. esac
  4974. fi
  4975. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4976. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4977. case $host_os in
  4978. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4979. *)
  4980. # The compiler driver will combine and reorder linker options,
  4981. # but understands `-z linker_flag'. GCC discards it without `$wl',
  4982. # but is careful enough not to reorder.
  4983. # Supported since Solaris 2.6 (maybe 2.5.1?)
  4984. if test "$GCC" = yes; then
  4985. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4986. else
  4987. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4988. fi
  4989. ;;
  4990. esac
  4991. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4992. ;;
  4993. sunos4*)
  4994. if test "x$host_vendor" = xsequent; then
  4995. # Use $CC to link under sequent, because it throws in some extra .o
  4996. # files that make .init and .fini sections work.
  4997. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4998. else
  4999. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5000. fi
  5001. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5002. _LT_TAGVAR(hardcode_direct, $1)=yes
  5003. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5004. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5005. ;;
  5006. sysv4)
  5007. case $host_vendor in
  5008. sni)
  5009. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5010. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5011. ;;
  5012. siemens)
  5013. ## LD is ld it makes a PLAMLIB
  5014. ## CC just makes a GrossModule.
  5015. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5016. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5017. _LT_TAGVAR(hardcode_direct, $1)=no
  5018. ;;
  5019. motorola)
  5020. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5021. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5022. ;;
  5023. esac
  5024. runpath_var='LD_RUN_PATH'
  5025. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5026. ;;
  5027. sysv4.3*)
  5028. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5029. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5030. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5031. ;;
  5032. sysv4*MP*)
  5033. if test -d /usr/nec; then
  5034. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5035. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5036. runpath_var=LD_RUN_PATH
  5037. hardcode_runpath_var=yes
  5038. _LT_TAGVAR(ld_shlibs, $1)=yes
  5039. fi
  5040. ;;
  5041. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5042. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5043. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5044. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5045. runpath_var='LD_RUN_PATH'
  5046. if test "$GCC" = yes; then
  5047. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5048. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5049. else
  5050. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5051. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5052. fi
  5053. ;;
  5054. sysv5* | sco3.2v5* | sco5v6*)
  5055. # Note: We can NOT use -z defs as we might desire, because we do not
  5056. # link with -lc, and that would cause any symbols used from libc to
  5057. # always be unresolved, which means just about no library would
  5058. # ever link correctly. If we're not using GNU ld we use -z text
  5059. # though, which does catch some bad symbols but isn't as heavy-handed
  5060. # as -z defs.
  5061. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5062. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5063. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5064. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5065. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5066. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5067. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5068. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5069. runpath_var='LD_RUN_PATH'
  5070. if test "$GCC" = yes; then
  5071. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5072. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5073. else
  5074. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5075. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5076. fi
  5077. ;;
  5078. uts4*)
  5079. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5080. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5081. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5082. ;;
  5083. *)
  5084. _LT_TAGVAR(ld_shlibs, $1)=no
  5085. ;;
  5086. esac
  5087. if test x$host_vendor = xsni; then
  5088. case $host in
  5089. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5090. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5091. ;;
  5092. esac
  5093. fi
  5094. fi
  5095. ])
  5096. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5097. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5098. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5099. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5100. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5101. _LT_DECL([], [extract_expsyms_cmds], [2],
  5102. [The commands to extract the exported symbol list from a shared archive])
  5103. #
  5104. # Do we need to explicitly link libc?
  5105. #
  5106. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5107. x|xyes)
  5108. # Assume -lc should be added
  5109. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5110. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5111. case $_LT_TAGVAR(archive_cmds, $1) in
  5112. *'~'*)
  5113. # FIXME: we may have to deal with multi-command sequences.
  5114. ;;
  5115. '$CC '*)
  5116. # Test whether the compiler implicitly links with -lc since on some
  5117. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5118. # to ld, don't add -lc before -lgcc.
  5119. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5120. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5121. [$RM conftest*
  5122. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5123. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5124. soname=conftest
  5125. lib=conftest
  5126. libobjs=conftest.$ac_objext
  5127. deplibs=
  5128. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5129. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5130. compiler_flags=-v
  5131. linker_flags=-v
  5132. verstring=
  5133. output_objdir=.
  5134. libname=conftest
  5135. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5136. _LT_TAGVAR(allow_undefined_flag, $1)=
  5137. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5138. then
  5139. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5140. else
  5141. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5142. fi
  5143. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5144. else
  5145. cat conftest.err 1>&5
  5146. fi
  5147. $RM conftest*
  5148. ])
  5149. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5150. ;;
  5151. esac
  5152. fi
  5153. ;;
  5154. esac
  5155. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5156. [Whether or not to add -lc for building shared libraries])
  5157. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5158. [enable_shared_with_static_runtimes], [0],
  5159. [Whether or not to disallow shared libs when runtime libs are static])
  5160. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5161. [Compiler flag to allow reflexive dlopens])
  5162. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5163. [Compiler flag to generate shared objects directly from archives])
  5164. _LT_TAGDECL([], [compiler_needs_object], [1],
  5165. [Whether the compiler copes with passing no objects directly])
  5166. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5167. [Create an old-style archive from a shared archive])
  5168. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5169. [Create a temporary old-style archive to link instead of a shared archive])
  5170. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5171. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5172. _LT_TAGDECL([], [module_cmds], [2],
  5173. [Commands used to build a loadable module if different from building
  5174. a shared archive.])
  5175. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5176. _LT_TAGDECL([], [with_gnu_ld], [1],
  5177. [Whether we are building with GNU ld or not])
  5178. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5179. [Flag that allows shared libraries with undefined symbols to be built])
  5180. _LT_TAGDECL([], [no_undefined_flag], [1],
  5181. [Flag that enforces no undefined symbols])
  5182. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5183. [Flag to hardcode $libdir into a binary during linking.
  5184. This must work even if $libdir does not exist])
  5185. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5186. [Whether we need a single "-rpath" flag with a separated argument])
  5187. _LT_TAGDECL([], [hardcode_direct], [0],
  5188. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5189. DIR into the resulting binary])
  5190. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5191. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5192. DIR into the resulting binary and the resulting library dependency is
  5193. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5194. library is relocated])
  5195. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5196. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5197. into the resulting binary])
  5198. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5199. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5200. into the resulting binary])
  5201. _LT_TAGDECL([], [hardcode_automatic], [0],
  5202. [Set to "yes" if building a shared library automatically hardcodes DIR
  5203. into the library and all subsequent libraries and executables linked
  5204. against it])
  5205. _LT_TAGDECL([], [inherit_rpath], [0],
  5206. [Set to yes if linker adds runtime paths of dependent libraries
  5207. to runtime path list])
  5208. _LT_TAGDECL([], [link_all_deplibs], [0],
  5209. [Whether libtool must link a program against all its dependency libraries])
  5210. _LT_TAGDECL([], [always_export_symbols], [0],
  5211. [Set to "yes" if exported symbols are required])
  5212. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5213. [The commands to list exported symbols])
  5214. _LT_TAGDECL([], [exclude_expsyms], [1],
  5215. [Symbols that should not be listed in the preloaded symbols])
  5216. _LT_TAGDECL([], [include_expsyms], [1],
  5217. [Symbols that must always be exported])
  5218. _LT_TAGDECL([], [prelink_cmds], [2],
  5219. [Commands necessary for linking programs (against libraries) with templates])
  5220. _LT_TAGDECL([], [postlink_cmds], [2],
  5221. [Commands necessary for finishing linking programs])
  5222. _LT_TAGDECL([], [file_list_spec], [1],
  5223. [Specify filename containing input files])
  5224. dnl FIXME: Not yet implemented
  5225. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5226. dnl [Compiler flag to generate thread safe objects])
  5227. ])# _LT_LINKER_SHLIBS
  5228. # _LT_LANG_C_CONFIG([TAG])
  5229. # ------------------------
  5230. # Ensure that the configuration variables for a C compiler are suitably
  5231. # defined. These variables are subsequently used by _LT_CONFIG to write
  5232. # the compiler configuration to `libtool'.
  5233. m4_defun([_LT_LANG_C_CONFIG],
  5234. [m4_require([_LT_DECL_EGREP])dnl
  5235. lt_save_CC="$CC"
  5236. AC_LANG_PUSH(C)
  5237. # Source file extension for C test sources.
  5238. ac_ext=c
  5239. # Object file extension for compiled C test sources.
  5240. objext=o
  5241. _LT_TAGVAR(objext, $1)=$objext
  5242. # Code to be used in simple compile tests
  5243. lt_simple_compile_test_code="int some_variable = 0;"
  5244. # Code to be used in simple link tests
  5245. lt_simple_link_test_code='int main(){return(0);}'
  5246. _LT_TAG_COMPILER
  5247. # Save the default compiler, since it gets overwritten when the other
  5248. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5249. compiler_DEFAULT=$CC
  5250. # save warnings/boilerplate of simple test code
  5251. _LT_COMPILER_BOILERPLATE
  5252. _LT_LINKER_BOILERPLATE
  5253. if test -n "$compiler"; then
  5254. _LT_COMPILER_NO_RTTI($1)
  5255. _LT_COMPILER_PIC($1)
  5256. _LT_COMPILER_C_O($1)
  5257. _LT_COMPILER_FILE_LOCKS($1)
  5258. _LT_LINKER_SHLIBS($1)
  5259. _LT_SYS_DYNAMIC_LINKER($1)
  5260. _LT_LINKER_HARDCODE_LIBPATH($1)
  5261. LT_SYS_DLOPEN_SELF
  5262. _LT_CMD_STRIPLIB
  5263. # Report which library types will actually be built
  5264. AC_MSG_CHECKING([if libtool supports shared libraries])
  5265. AC_MSG_RESULT([$can_build_shared])
  5266. AC_MSG_CHECKING([whether to build shared libraries])
  5267. test "$can_build_shared" = "no" && enable_shared=no
  5268. # On AIX, shared libraries and static libraries use the same namespace, and
  5269. # are all built from PIC.
  5270. case $host_os in
  5271. aix3*)
  5272. test "$enable_shared" = yes && enable_static=no
  5273. if test -n "$RANLIB"; then
  5274. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5275. postinstall_cmds='$RANLIB $lib'
  5276. fi
  5277. ;;
  5278. aix[[4-9]]*)
  5279. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5280. test "$enable_shared" = yes && enable_static=no
  5281. fi
  5282. ;;
  5283. esac
  5284. AC_MSG_RESULT([$enable_shared])
  5285. AC_MSG_CHECKING([whether to build static libraries])
  5286. # Make sure either enable_shared or enable_static is yes.
  5287. test "$enable_shared" = yes || enable_static=yes
  5288. AC_MSG_RESULT([$enable_static])
  5289. _LT_CONFIG($1)
  5290. fi
  5291. AC_LANG_POP
  5292. CC="$lt_save_CC"
  5293. ])# _LT_LANG_C_CONFIG
  5294. # _LT_LANG_CXX_CONFIG([TAG])
  5295. # --------------------------
  5296. # Ensure that the configuration variables for a C++ compiler are suitably
  5297. # defined. These variables are subsequently used by _LT_CONFIG to write
  5298. # the compiler configuration to `libtool'.
  5299. m4_defun([_LT_LANG_CXX_CONFIG],
  5300. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5301. m4_require([_LT_DECL_EGREP])dnl
  5302. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5303. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5304. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5305. (test "X$CXX" != "Xg++"))) ; then
  5306. AC_PROG_CXXCPP
  5307. else
  5308. _lt_caught_CXX_error=yes
  5309. fi
  5310. AC_LANG_PUSH(C++)
  5311. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5312. _LT_TAGVAR(allow_undefined_flag, $1)=
  5313. _LT_TAGVAR(always_export_symbols, $1)=no
  5314. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5315. _LT_TAGVAR(compiler_needs_object, $1)=no
  5316. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5317. _LT_TAGVAR(hardcode_direct, $1)=no
  5318. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5319. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5320. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5321. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5322. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5323. _LT_TAGVAR(hardcode_automatic, $1)=no
  5324. _LT_TAGVAR(inherit_rpath, $1)=no
  5325. _LT_TAGVAR(module_cmds, $1)=
  5326. _LT_TAGVAR(module_expsym_cmds, $1)=
  5327. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5328. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5329. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5330. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5331. _LT_TAGVAR(no_undefined_flag, $1)=
  5332. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5333. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5334. # Source file extension for C++ test sources.
  5335. ac_ext=cpp
  5336. # Object file extension for compiled C++ test sources.
  5337. objext=o
  5338. _LT_TAGVAR(objext, $1)=$objext
  5339. # No sense in running all these tests if we already determined that
  5340. # the CXX compiler isn't working. Some variables (like enable_shared)
  5341. # are currently assumed to apply to all compilers on this platform,
  5342. # and will be corrupted by setting them based on a non-working compiler.
  5343. if test "$_lt_caught_CXX_error" != yes; then
  5344. # Code to be used in simple compile tests
  5345. lt_simple_compile_test_code="int some_variable = 0;"
  5346. # Code to be used in simple link tests
  5347. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5348. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5349. _LT_TAG_COMPILER
  5350. # save warnings/boilerplate of simple test code
  5351. _LT_COMPILER_BOILERPLATE
  5352. _LT_LINKER_BOILERPLATE
  5353. # Allow CC to be a program name with arguments.
  5354. lt_save_CC=$CC
  5355. lt_save_CFLAGS=$CFLAGS
  5356. lt_save_LD=$LD
  5357. lt_save_GCC=$GCC
  5358. GCC=$GXX
  5359. lt_save_with_gnu_ld=$with_gnu_ld
  5360. lt_save_path_LD=$lt_cv_path_LD
  5361. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5362. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5363. else
  5364. $as_unset lt_cv_prog_gnu_ld
  5365. fi
  5366. if test -n "${lt_cv_path_LDCXX+set}"; then
  5367. lt_cv_path_LD=$lt_cv_path_LDCXX
  5368. else
  5369. $as_unset lt_cv_path_LD
  5370. fi
  5371. test -z "${LDCXX+set}" || LD=$LDCXX
  5372. CC=${CXX-"c++"}
  5373. CFLAGS=$CXXFLAGS
  5374. compiler=$CC
  5375. _LT_TAGVAR(compiler, $1)=$CC
  5376. _LT_CC_BASENAME([$compiler])
  5377. if test -n "$compiler"; then
  5378. # We don't want -fno-exception when compiling C++ code, so set the
  5379. # no_builtin_flag separately
  5380. if test "$GXX" = yes; then
  5381. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5382. else
  5383. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5384. fi
  5385. if test "$GXX" = yes; then
  5386. # Set up default GNU C++ configuration
  5387. LT_PATH_LD
  5388. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5389. # archiving commands below assume that GNU ld is being used.
  5390. if test "$with_gnu_ld" = yes; then
  5391. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5392. _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'
  5393. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5394. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5395. # If archive_cmds runs LD, not CC, wlarc should be empty
  5396. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5397. # investigate it a little bit more. (MM)
  5398. wlarc='${wl}'
  5399. # ancient GNU ld didn't support --whole-archive et. al.
  5400. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5401. $GREP 'no-whole-archive' > /dev/null; then
  5402. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5403. else
  5404. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5405. fi
  5406. else
  5407. with_gnu_ld=no
  5408. wlarc=
  5409. # A generic and very simple default shared library creation
  5410. # command for GNU C++ for the case where it uses the native
  5411. # linker, instead of GNU ld. If possible, this setting should
  5412. # overridden to take advantage of the native linker features on
  5413. # the platform it is being used on.
  5414. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5415. fi
  5416. # Commands to make compiler produce verbose output that lists
  5417. # what "hidden" libraries, object files and flags are used when
  5418. # linking a shared library.
  5419. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5420. else
  5421. GXX=no
  5422. with_gnu_ld=no
  5423. wlarc=
  5424. fi
  5425. # PORTME: fill in a description of your system's C++ link characteristics
  5426. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5427. _LT_TAGVAR(ld_shlibs, $1)=yes
  5428. case $host_os in
  5429. aix3*)
  5430. # FIXME: insert proper C++ library support
  5431. _LT_TAGVAR(ld_shlibs, $1)=no
  5432. ;;
  5433. aix[[4-9]]*)
  5434. if test "$host_cpu" = ia64; then
  5435. # On IA64, the linker does run time linking by default, so we don't
  5436. # have to do anything special.
  5437. aix_use_runtimelinking=no
  5438. exp_sym_flag='-Bexport'
  5439. no_entry_flag=""
  5440. else
  5441. aix_use_runtimelinking=no
  5442. # Test if we are trying to use run time linking or normal
  5443. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5444. # need to do runtime linking.
  5445. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5446. for ld_flag in $LDFLAGS; do
  5447. case $ld_flag in
  5448. *-brtl*)
  5449. aix_use_runtimelinking=yes
  5450. break
  5451. ;;
  5452. esac
  5453. done
  5454. ;;
  5455. esac
  5456. exp_sym_flag='-bexport'
  5457. no_entry_flag='-bnoentry'
  5458. fi
  5459. # When large executables or shared objects are built, AIX ld can
  5460. # have problems creating the table of contents. If linking a library
  5461. # or program results in "error TOC overflow" add -mminimal-toc to
  5462. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5463. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5464. _LT_TAGVAR(archive_cmds, $1)=''
  5465. _LT_TAGVAR(hardcode_direct, $1)=yes
  5466. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5467. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5468. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5469. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5470. if test "$GXX" = yes; then
  5471. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5472. # We only want to do this on AIX 4.2 and lower, the check
  5473. # below for broken collect2 doesn't work under 4.3+
  5474. collect2name=`${CC} -print-prog-name=collect2`
  5475. if test -f "$collect2name" &&
  5476. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5477. then
  5478. # We have reworked collect2
  5479. :
  5480. else
  5481. # We have old collect2
  5482. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5483. # It fails to find uninstalled libraries when the uninstalled
  5484. # path is not listed in the libpath. Setting hardcode_minus_L
  5485. # to unsupported forces relinking
  5486. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5487. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5488. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5489. fi
  5490. esac
  5491. shared_flag='-shared'
  5492. if test "$aix_use_runtimelinking" = yes; then
  5493. shared_flag="$shared_flag "'${wl}-G'
  5494. fi
  5495. else
  5496. # not using gcc
  5497. if test "$host_cpu" = ia64; then
  5498. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5499. # chokes on -Wl,-G. The following line is correct:
  5500. shared_flag='-G'
  5501. else
  5502. if test "$aix_use_runtimelinking" = yes; then
  5503. shared_flag='${wl}-G'
  5504. else
  5505. shared_flag='${wl}-bM:SRE'
  5506. fi
  5507. fi
  5508. fi
  5509. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5510. # It seems that -bexpall does not export symbols beginning with
  5511. # underscore (_), so it is better to generate a list of symbols to
  5512. # export.
  5513. _LT_TAGVAR(always_export_symbols, $1)=yes
  5514. if test "$aix_use_runtimelinking" = yes; then
  5515. # Warning - without using the other runtime loading flags (-brtl),
  5516. # -berok will link without error, but may produce a broken library.
  5517. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5518. # Determine the default libpath from the value encoded in an empty
  5519. # executable.
  5520. _LT_SYS_MODULE_PATH_AIX([$1])
  5521. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5522. _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"
  5523. else
  5524. if test "$host_cpu" = ia64; then
  5525. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5526. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5527. _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"
  5528. else
  5529. # Determine the default libpath from the value encoded in an
  5530. # empty executable.
  5531. _LT_SYS_MODULE_PATH_AIX([$1])
  5532. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5533. # Warning - without using the other run time loading flags,
  5534. # -berok will link without error, but may produce a broken library.
  5535. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5536. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5537. if test "$with_gnu_ld" = yes; then
  5538. # We only use this code for GNU lds that support --whole-archive.
  5539. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5540. else
  5541. # Exported symbols can be pulled into shared objects from archives
  5542. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5543. fi
  5544. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5545. # This is similar to how AIX traditionally builds its shared
  5546. # libraries.
  5547. _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'
  5548. fi
  5549. fi
  5550. ;;
  5551. beos*)
  5552. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5553. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5554. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5555. # support --undefined. This deserves some investigation. FIXME
  5556. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5557. else
  5558. _LT_TAGVAR(ld_shlibs, $1)=no
  5559. fi
  5560. ;;
  5561. chorus*)
  5562. case $cc_basename in
  5563. *)
  5564. # FIXME: insert proper C++ library support
  5565. _LT_TAGVAR(ld_shlibs, $1)=no
  5566. ;;
  5567. esac
  5568. ;;
  5569. cygwin* | mingw* | pw32* | cegcc*)
  5570. case $GXX,$cc_basename in
  5571. ,cl* | no,cl*)
  5572. # Native MSVC
  5573. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5574. # no search path for DLLs.
  5575. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5576. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5577. _LT_TAGVAR(always_export_symbols, $1)=yes
  5578. _LT_TAGVAR(file_list_spec, $1)='@'
  5579. # Tell ltmain to make .lib files, not .a files.
  5580. libext=lib
  5581. # Tell ltmain to make .dll files, not .so files.
  5582. shrext_cmds=".dll"
  5583. # FIXME: Setting linknames here is a bad hack.
  5584. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5585. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5586. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5587. else
  5588. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5589. fi~
  5590. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5591. linknames='
  5592. # The linker will not automatically build a static lib if we build a DLL.
  5593. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5594. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5595. # Don't use ranlib
  5596. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5597. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5598. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5599. case $lt_outputfile in
  5600. *.exe|*.EXE) ;;
  5601. *)
  5602. lt_outputfile="$lt_outputfile.exe"
  5603. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5604. ;;
  5605. esac~
  5606. func_to_tool_file "$lt_outputfile"~
  5607. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5608. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5609. $RM "$lt_outputfile.manifest";
  5610. fi'
  5611. ;;
  5612. *)
  5613. # g++
  5614. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5615. # as there is no search path for DLLs.
  5616. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5617. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5618. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5619. _LT_TAGVAR(always_export_symbols, $1)=no
  5620. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5621. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5622. _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'
  5623. # If the export-symbols file already is a .def file (1st line
  5624. # is EXPORTS), use it as is; otherwise, prepend...
  5625. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5626. cp $export_symbols $output_objdir/$soname.def;
  5627. else
  5628. echo EXPORTS > $output_objdir/$soname.def;
  5629. cat $export_symbols >> $output_objdir/$soname.def;
  5630. fi~
  5631. $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'
  5632. else
  5633. _LT_TAGVAR(ld_shlibs, $1)=no
  5634. fi
  5635. ;;
  5636. esac
  5637. ;;
  5638. darwin* | rhapsody*)
  5639. _LT_DARWIN_LINKER_FEATURES($1)
  5640. ;;
  5641. dgux*)
  5642. case $cc_basename in
  5643. ec++*)
  5644. # FIXME: insert proper C++ library support
  5645. _LT_TAGVAR(ld_shlibs, $1)=no
  5646. ;;
  5647. ghcx*)
  5648. # Green Hills C++ Compiler
  5649. # FIXME: insert proper C++ library support
  5650. _LT_TAGVAR(ld_shlibs, $1)=no
  5651. ;;
  5652. *)
  5653. # FIXME: insert proper C++ library support
  5654. _LT_TAGVAR(ld_shlibs, $1)=no
  5655. ;;
  5656. esac
  5657. ;;
  5658. freebsd2.*)
  5659. # C++ shared libraries reported to be fairly broken before
  5660. # switch to ELF
  5661. _LT_TAGVAR(ld_shlibs, $1)=no
  5662. ;;
  5663. freebsd-elf*)
  5664. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5665. ;;
  5666. freebsd* | dragonfly*)
  5667. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5668. # conventions
  5669. _LT_TAGVAR(ld_shlibs, $1)=yes
  5670. ;;
  5671. gnu*)
  5672. ;;
  5673. haiku*)
  5674. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5675. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5676. ;;
  5677. hpux9*)
  5678. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5679. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5680. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5681. _LT_TAGVAR(hardcode_direct, $1)=yes
  5682. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5683. # but as the default
  5684. # location of the library.
  5685. case $cc_basename in
  5686. CC*)
  5687. # FIXME: insert proper C++ library support
  5688. _LT_TAGVAR(ld_shlibs, $1)=no
  5689. ;;
  5690. aCC*)
  5691. _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'
  5692. # Commands to make compiler produce verbose output that lists
  5693. # what "hidden" libraries, object files and flags are used when
  5694. # linking a shared library.
  5695. #
  5696. # There doesn't appear to be a way to prevent this compiler from
  5697. # explicitly linking system object files so we need to strip them
  5698. # from the output so that they don't get included in the library
  5699. # dependencies.
  5700. 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"'
  5701. ;;
  5702. *)
  5703. if test "$GXX" = yes; then
  5704. _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'
  5705. else
  5706. # FIXME: insert proper C++ library support
  5707. _LT_TAGVAR(ld_shlibs, $1)=no
  5708. fi
  5709. ;;
  5710. esac
  5711. ;;
  5712. hpux10*|hpux11*)
  5713. if test $with_gnu_ld = no; then
  5714. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5715. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5716. case $host_cpu in
  5717. hppa*64*|ia64*)
  5718. ;;
  5719. *)
  5720. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5721. ;;
  5722. esac
  5723. fi
  5724. case $host_cpu in
  5725. hppa*64*|ia64*)
  5726. _LT_TAGVAR(hardcode_direct, $1)=no
  5727. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5728. ;;
  5729. *)
  5730. _LT_TAGVAR(hardcode_direct, $1)=yes
  5731. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5732. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5733. # but as the default
  5734. # location of the library.
  5735. ;;
  5736. esac
  5737. case $cc_basename in
  5738. CC*)
  5739. # FIXME: insert proper C++ library support
  5740. _LT_TAGVAR(ld_shlibs, $1)=no
  5741. ;;
  5742. aCC*)
  5743. case $host_cpu in
  5744. hppa*64*)
  5745. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5746. ;;
  5747. ia64*)
  5748. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5749. ;;
  5750. *)
  5751. _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'
  5752. ;;
  5753. esac
  5754. # Commands to make compiler produce verbose output that lists
  5755. # what "hidden" libraries, object files and flags are used when
  5756. # linking a shared library.
  5757. #
  5758. # There doesn't appear to be a way to prevent this compiler from
  5759. # explicitly linking system object files so we need to strip them
  5760. # from the output so that they don't get included in the library
  5761. # dependencies.
  5762. 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"'
  5763. ;;
  5764. *)
  5765. if test "$GXX" = yes; then
  5766. if test $with_gnu_ld = no; then
  5767. case $host_cpu in
  5768. hppa*64*)
  5769. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5770. ;;
  5771. ia64*)
  5772. _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'
  5773. ;;
  5774. *)
  5775. _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'
  5776. ;;
  5777. esac
  5778. fi
  5779. else
  5780. # FIXME: insert proper C++ library support
  5781. _LT_TAGVAR(ld_shlibs, $1)=no
  5782. fi
  5783. ;;
  5784. esac
  5785. ;;
  5786. interix[[3-9]]*)
  5787. _LT_TAGVAR(hardcode_direct, $1)=no
  5788. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5789. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5790. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5791. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5792. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5793. # default) and relocated if they conflict, which is a slow very memory
  5794. # consuming and fragmenting process. To avoid this, we pick a random,
  5795. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5796. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5797. _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'
  5798. _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'
  5799. ;;
  5800. irix5* | irix6*)
  5801. case $cc_basename in
  5802. CC*)
  5803. # SGI C++
  5804. _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'
  5805. # Archives containing C++ object files must be created using
  5806. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5807. # necessary to make sure instantiated templates are included
  5808. # in the archive.
  5809. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5810. ;;
  5811. *)
  5812. if test "$GXX" = yes; then
  5813. if test "$with_gnu_ld" = no; then
  5814. _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'
  5815. else
  5816. _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'
  5817. fi
  5818. fi
  5819. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5820. ;;
  5821. esac
  5822. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5823. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5824. _LT_TAGVAR(inherit_rpath, $1)=yes
  5825. ;;
  5826. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5827. case $cc_basename in
  5828. KCC*)
  5829. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5830. # KCC will only create a shared library if the output file
  5831. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5832. # to its proper name (with version) after linking.
  5833. _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'
  5834. _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'
  5835. # Commands to make compiler produce verbose output that lists
  5836. # what "hidden" libraries, object files and flags are used when
  5837. # linking a shared library.
  5838. #
  5839. # There doesn't appear to be a way to prevent this compiler from
  5840. # explicitly linking system object files so we need to strip them
  5841. # from the output so that they don't get included in the library
  5842. # dependencies.
  5843. 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"'
  5844. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5845. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5846. # Archives containing C++ object files must be created using
  5847. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5848. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5849. ;;
  5850. icpc* | ecpc* )
  5851. # Intel C++
  5852. with_gnu_ld=yes
  5853. # version 8.0 and above of icpc choke on multiply defined symbols
  5854. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5855. # earlier do not add the objects themselves.
  5856. case `$CC -V 2>&1` in
  5857. *"Version 7."*)
  5858. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5859. _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'
  5860. ;;
  5861. *) # Version 8.0 or newer
  5862. tmp_idyn=
  5863. case $host_cpu in
  5864. ia64*) tmp_idyn=' -i_dynamic';;
  5865. esac
  5866. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5867. _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'
  5868. ;;
  5869. esac
  5870. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5871. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5872. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5873. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5874. ;;
  5875. pgCC* | pgcpp*)
  5876. # Portland Group C++ compiler
  5877. case `$CC -V` in
  5878. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  5879. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5880. rm -rf $tpldir~
  5881. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5882. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  5883. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5884. rm -rf $tpldir~
  5885. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5886. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  5887. $RANLIB $oldlib'
  5888. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5889. rm -rf $tpldir~
  5890. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5891. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5892. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5893. rm -rf $tpldir~
  5894. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5895. $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'
  5896. ;;
  5897. *) # Version 6 and above use weak symbols
  5898. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5899. _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'
  5900. ;;
  5901. esac
  5902. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5903. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5904. _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'
  5905. ;;
  5906. cxx*)
  5907. # Compaq C++
  5908. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5909. _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'
  5910. runpath_var=LD_RUN_PATH
  5911. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5912. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5913. # Commands to make compiler produce verbose output that lists
  5914. # what "hidden" libraries, object files and flags are used when
  5915. # linking a shared library.
  5916. #
  5917. # There doesn't appear to be a way to prevent this compiler from
  5918. # explicitly linking system object files so we need to strip them
  5919. # from the output so that they don't get included in the library
  5920. # dependencies.
  5921. 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'
  5922. ;;
  5923. xl* | mpixl* | bgxl*)
  5924. # IBM XL 8.0 on PPC, with GNU ld
  5925. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5926. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5927. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5928. if test "x$supports_anon_versioning" = xyes; then
  5929. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5930. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5931. echo "local: *; };" >> $output_objdir/$libname.ver~
  5932. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5933. fi
  5934. ;;
  5935. *)
  5936. case `$CC -V 2>&1 | sed 5q` in
  5937. *Sun\ C*)
  5938. # Sun C++ 5.9
  5939. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5940. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5941. _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'
  5942. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5943. _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'
  5944. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5945. # Not sure whether something based on
  5946. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5947. # would be better.
  5948. output_verbose_link_cmd='func_echo_all'
  5949. # Archives containing C++ object files must be created using
  5950. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5951. # necessary to make sure instantiated templates are included
  5952. # in the archive.
  5953. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5954. ;;
  5955. esac
  5956. ;;
  5957. esac
  5958. ;;
  5959. lynxos*)
  5960. # FIXME: insert proper C++ library support
  5961. _LT_TAGVAR(ld_shlibs, $1)=no
  5962. ;;
  5963. m88k*)
  5964. # FIXME: insert proper C++ library support
  5965. _LT_TAGVAR(ld_shlibs, $1)=no
  5966. ;;
  5967. mvs*)
  5968. case $cc_basename in
  5969. cxx*)
  5970. # FIXME: insert proper C++ library support
  5971. _LT_TAGVAR(ld_shlibs, $1)=no
  5972. ;;
  5973. *)
  5974. # FIXME: insert proper C++ library support
  5975. _LT_TAGVAR(ld_shlibs, $1)=no
  5976. ;;
  5977. esac
  5978. ;;
  5979. netbsd*)
  5980. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5981. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5982. wlarc=
  5983. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5984. _LT_TAGVAR(hardcode_direct, $1)=yes
  5985. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5986. fi
  5987. # Workaround some broken pre-1.5 toolchains
  5988. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5989. ;;
  5990. *nto* | *qnx*)
  5991. _LT_TAGVAR(ld_shlibs, $1)=yes
  5992. ;;
  5993. openbsd2*)
  5994. # C++ shared libraries are fairly broken
  5995. _LT_TAGVAR(ld_shlibs, $1)=no
  5996. ;;
  5997. openbsd*)
  5998. if test -f /usr/libexec/ld.so; then
  5999. _LT_TAGVAR(hardcode_direct, $1)=yes
  6000. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6001. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6002. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6003. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6004. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6005. _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'
  6006. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6007. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6008. fi
  6009. output_verbose_link_cmd=func_echo_all
  6010. else
  6011. _LT_TAGVAR(ld_shlibs, $1)=no
  6012. fi
  6013. ;;
  6014. osf3* | osf4* | osf5*)
  6015. case $cc_basename in
  6016. KCC*)
  6017. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6018. # KCC will only create a shared library if the output file
  6019. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6020. # to its proper name (with version) after linking.
  6021. _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'
  6022. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6023. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6024. # Archives containing C++ object files must be created using
  6025. # the KAI C++ compiler.
  6026. case $host in
  6027. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6028. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6029. esac
  6030. ;;
  6031. RCC*)
  6032. # Rational C++ 2.4.1
  6033. # FIXME: insert proper C++ library support
  6034. _LT_TAGVAR(ld_shlibs, $1)=no
  6035. ;;
  6036. cxx*)
  6037. case $host in
  6038. osf3*)
  6039. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6040. _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'
  6041. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6042. ;;
  6043. *)
  6044. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6045. _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'
  6046. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6047. echo "-hidden">> $lib.exp~
  6048. $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~
  6049. $RM $lib.exp'
  6050. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6051. ;;
  6052. esac
  6053. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6054. # Commands to make compiler produce verbose output that lists
  6055. # what "hidden" libraries, object files and flags are used when
  6056. # linking a shared library.
  6057. #
  6058. # There doesn't appear to be a way to prevent this compiler from
  6059. # explicitly linking system object files so we need to strip them
  6060. # from the output so that they don't get included in the library
  6061. # dependencies.
  6062. 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"'
  6063. ;;
  6064. *)
  6065. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6066. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6067. case $host in
  6068. osf3*)
  6069. _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'
  6070. ;;
  6071. *)
  6072. _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'
  6073. ;;
  6074. esac
  6075. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6076. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6077. # Commands to make compiler produce verbose output that lists
  6078. # what "hidden" libraries, object files and flags are used when
  6079. # linking a shared library.
  6080. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6081. else
  6082. # FIXME: insert proper C++ library support
  6083. _LT_TAGVAR(ld_shlibs, $1)=no
  6084. fi
  6085. ;;
  6086. esac
  6087. ;;
  6088. psos*)
  6089. # FIXME: insert proper C++ library support
  6090. _LT_TAGVAR(ld_shlibs, $1)=no
  6091. ;;
  6092. sunos4*)
  6093. case $cc_basename in
  6094. CC*)
  6095. # Sun C++ 4.x
  6096. # FIXME: insert proper C++ library support
  6097. _LT_TAGVAR(ld_shlibs, $1)=no
  6098. ;;
  6099. lcc*)
  6100. # Lucid
  6101. # FIXME: insert proper C++ library support
  6102. _LT_TAGVAR(ld_shlibs, $1)=no
  6103. ;;
  6104. *)
  6105. # FIXME: insert proper C++ library support
  6106. _LT_TAGVAR(ld_shlibs, $1)=no
  6107. ;;
  6108. esac
  6109. ;;
  6110. solaris*)
  6111. case $cc_basename in
  6112. CC* | sunCC*)
  6113. # Sun C++ 4.2, 5.x and Centerline C++
  6114. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6115. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6116. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6117. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6118. $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'
  6119. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6120. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6121. case $host_os in
  6122. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6123. *)
  6124. # The compiler driver will combine and reorder linker options,
  6125. # but understands `-z linker_flag'.
  6126. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6127. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6128. ;;
  6129. esac
  6130. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6131. output_verbose_link_cmd='func_echo_all'
  6132. # Archives containing C++ object files must be created using
  6133. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6134. # necessary to make sure instantiated templates are included
  6135. # in the archive.
  6136. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6137. ;;
  6138. gcx*)
  6139. # Green Hills C++ Compiler
  6140. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6141. # The C++ compiler must be used to create the archive.
  6142. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6143. ;;
  6144. *)
  6145. # GNU C++ compiler with Solaris linker
  6146. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6147. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6148. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6149. _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'
  6150. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6151. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6152. # Commands to make compiler produce verbose output that lists
  6153. # what "hidden" libraries, object files and flags are used when
  6154. # linking a shared library.
  6155. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6156. else
  6157. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6158. # platform.
  6159. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6160. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6161. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6162. # Commands to make compiler produce verbose output that lists
  6163. # what "hidden" libraries, object files and flags are used when
  6164. # linking a shared library.
  6165. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6166. fi
  6167. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6168. case $host_os in
  6169. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6170. *)
  6171. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6172. ;;
  6173. esac
  6174. fi
  6175. ;;
  6176. esac
  6177. ;;
  6178. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6179. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6180. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6181. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6182. runpath_var='LD_RUN_PATH'
  6183. case $cc_basename in
  6184. CC*)
  6185. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6186. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6187. ;;
  6188. *)
  6189. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6190. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6191. ;;
  6192. esac
  6193. ;;
  6194. sysv5* | sco3.2v5* | sco5v6*)
  6195. # Note: We can NOT use -z defs as we might desire, because we do not
  6196. # link with -lc, and that would cause any symbols used from libc to
  6197. # always be unresolved, which means just about no library would
  6198. # ever link correctly. If we're not using GNU ld we use -z text
  6199. # though, which does catch some bad symbols but isn't as heavy-handed
  6200. # as -z defs.
  6201. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6202. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6203. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6204. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6205. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6206. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6207. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6208. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6209. runpath_var='LD_RUN_PATH'
  6210. case $cc_basename in
  6211. CC*)
  6212. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6213. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6214. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6215. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6216. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6217. '"$_LT_TAGVAR(reload_cmds, $1)"
  6218. ;;
  6219. *)
  6220. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6221. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6222. ;;
  6223. esac
  6224. ;;
  6225. tandem*)
  6226. case $cc_basename in
  6227. NCC*)
  6228. # NonStop-UX NCC 3.20
  6229. # FIXME: insert proper C++ library support
  6230. _LT_TAGVAR(ld_shlibs, $1)=no
  6231. ;;
  6232. *)
  6233. # FIXME: insert proper C++ library support
  6234. _LT_TAGVAR(ld_shlibs, $1)=no
  6235. ;;
  6236. esac
  6237. ;;
  6238. vxworks*)
  6239. # FIXME: insert proper C++ library support
  6240. _LT_TAGVAR(ld_shlibs, $1)=no
  6241. ;;
  6242. *)
  6243. # FIXME: insert proper C++ library support
  6244. _LT_TAGVAR(ld_shlibs, $1)=no
  6245. ;;
  6246. esac
  6247. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6248. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6249. _LT_TAGVAR(GCC, $1)="$GXX"
  6250. _LT_TAGVAR(LD, $1)="$LD"
  6251. ## CAVEAT EMPTOR:
  6252. ## There is no encapsulation within the following macros, do not change
  6253. ## the running order or otherwise move them around unless you know exactly
  6254. ## what you are doing...
  6255. _LT_SYS_HIDDEN_LIBDEPS($1)
  6256. _LT_COMPILER_PIC($1)
  6257. _LT_COMPILER_C_O($1)
  6258. _LT_COMPILER_FILE_LOCKS($1)
  6259. _LT_LINKER_SHLIBS($1)
  6260. _LT_SYS_DYNAMIC_LINKER($1)
  6261. _LT_LINKER_HARDCODE_LIBPATH($1)
  6262. _LT_CONFIG($1)
  6263. fi # test -n "$compiler"
  6264. CC=$lt_save_CC
  6265. CFLAGS=$lt_save_CFLAGS
  6266. LDCXX=$LD
  6267. LD=$lt_save_LD
  6268. GCC=$lt_save_GCC
  6269. with_gnu_ld=$lt_save_with_gnu_ld
  6270. lt_cv_path_LDCXX=$lt_cv_path_LD
  6271. lt_cv_path_LD=$lt_save_path_LD
  6272. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6273. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6274. fi # test "$_lt_caught_CXX_error" != yes
  6275. AC_LANG_POP
  6276. ])# _LT_LANG_CXX_CONFIG
  6277. # _LT_FUNC_STRIPNAME_CNF
  6278. # ----------------------
  6279. # func_stripname_cnf prefix suffix name
  6280. # strip PREFIX and SUFFIX off of NAME.
  6281. # PREFIX and SUFFIX must not contain globbing or regex special
  6282. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6283. # dot (in which case that matches only a dot).
  6284. #
  6285. # This function is identical to the (non-XSI) version of func_stripname,
  6286. # except this one can be used by m4 code that may be executed by configure,
  6287. # rather than the libtool script.
  6288. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6289. AC_REQUIRE([_LT_DECL_SED])
  6290. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6291. func_stripname_cnf ()
  6292. {
  6293. case ${2} in
  6294. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6295. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6296. esac
  6297. } # func_stripname_cnf
  6298. ])# _LT_FUNC_STRIPNAME_CNF
  6299. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6300. # ---------------------------------
  6301. # Figure out "hidden" library dependencies from verbose
  6302. # compiler output when linking a shared library.
  6303. # Parse the compiler output and extract the necessary
  6304. # objects, libraries and library flags.
  6305. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6306. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6307. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6308. # Dependencies to place before and after the object being linked:
  6309. _LT_TAGVAR(predep_objects, $1)=
  6310. _LT_TAGVAR(postdep_objects, $1)=
  6311. _LT_TAGVAR(predeps, $1)=
  6312. _LT_TAGVAR(postdeps, $1)=
  6313. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6314. dnl we can't use the lt_simple_compile_test_code here,
  6315. dnl because it contains code intended for an executable,
  6316. dnl not a library. It's possible we should let each
  6317. dnl tag define a new lt_????_link_test_code variable,
  6318. dnl but it's only used here...
  6319. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6320. int a;
  6321. void foo (void) { a = 0; }
  6322. _LT_EOF
  6323. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6324. class Foo
  6325. {
  6326. public:
  6327. Foo (void) { a = 0; }
  6328. private:
  6329. int a;
  6330. };
  6331. _LT_EOF
  6332. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6333. subroutine foo
  6334. implicit none
  6335. integer*4 a
  6336. a=0
  6337. return
  6338. end
  6339. _LT_EOF
  6340. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6341. subroutine foo
  6342. implicit none
  6343. integer a
  6344. a=0
  6345. return
  6346. end
  6347. _LT_EOF
  6348. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6349. public class foo {
  6350. private int a;
  6351. public void bar (void) {
  6352. a = 0;
  6353. }
  6354. };
  6355. _LT_EOF
  6356. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6357. package foo
  6358. func foo() {
  6359. }
  6360. _LT_EOF
  6361. ])
  6362. _lt_libdeps_save_CFLAGS=$CFLAGS
  6363. case "$CC $CFLAGS " in #(
  6364. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6365. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6366. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6367. esac
  6368. dnl Parse the compiler output and extract the necessary
  6369. dnl objects, libraries and library flags.
  6370. if AC_TRY_EVAL(ac_compile); then
  6371. # Parse the compiler output and extract the necessary
  6372. # objects, libraries and library flags.
  6373. # Sentinel used to keep track of whether or not we are before
  6374. # the conftest object file.
  6375. pre_test_object_deps_done=no
  6376. for p in `eval "$output_verbose_link_cmd"`; do
  6377. case ${prev}${p} in
  6378. -L* | -R* | -l*)
  6379. # Some compilers place space between "-{L,R}" and the path.
  6380. # Remove the space.
  6381. if test $p = "-L" ||
  6382. test $p = "-R"; then
  6383. prev=$p
  6384. continue
  6385. fi
  6386. # Expand the sysroot to ease extracting the directories later.
  6387. if test -z "$prev"; then
  6388. case $p in
  6389. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6390. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6391. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6392. esac
  6393. fi
  6394. case $p in
  6395. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6396. esac
  6397. if test "$pre_test_object_deps_done" = no; then
  6398. case ${prev} in
  6399. -L | -R)
  6400. # Internal compiler library paths should come after those
  6401. # provided the user. The postdeps already come after the
  6402. # user supplied libs so there is no need to process them.
  6403. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6404. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6405. else
  6406. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6407. fi
  6408. ;;
  6409. # The "-l" case would never come before the object being
  6410. # linked, so don't bother handling this case.
  6411. esac
  6412. else
  6413. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6414. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6415. else
  6416. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6417. fi
  6418. fi
  6419. prev=
  6420. ;;
  6421. *.lto.$objext) ;; # Ignore GCC LTO objects
  6422. *.$objext)
  6423. # This assumes that the test object file only shows up
  6424. # once in the compiler output.
  6425. if test "$p" = "conftest.$objext"; then
  6426. pre_test_object_deps_done=yes
  6427. continue
  6428. fi
  6429. if test "$pre_test_object_deps_done" = no; then
  6430. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6431. _LT_TAGVAR(predep_objects, $1)="$p"
  6432. else
  6433. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6434. fi
  6435. else
  6436. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6437. _LT_TAGVAR(postdep_objects, $1)="$p"
  6438. else
  6439. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6440. fi
  6441. fi
  6442. ;;
  6443. *) ;; # Ignore the rest.
  6444. esac
  6445. done
  6446. # Clean up.
  6447. rm -f a.out a.exe
  6448. else
  6449. echo "libtool.m4: error: problem compiling $1 test program"
  6450. fi
  6451. $RM -f confest.$objext
  6452. CFLAGS=$_lt_libdeps_save_CFLAGS
  6453. # PORTME: override above test on systems where it is broken
  6454. m4_if([$1], [CXX],
  6455. [case $host_os in
  6456. interix[[3-9]]*)
  6457. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6458. # hack all around it, let's just trust "g++" to DTRT.
  6459. _LT_TAGVAR(predep_objects,$1)=
  6460. _LT_TAGVAR(postdep_objects,$1)=
  6461. _LT_TAGVAR(postdeps,$1)=
  6462. ;;
  6463. linux*)
  6464. case `$CC -V 2>&1 | sed 5q` in
  6465. *Sun\ C*)
  6466. # Sun C++ 5.9
  6467. # The more standards-conforming stlport4 library is
  6468. # incompatible with the Cstd library. Avoid specifying
  6469. # it if it's in CXXFLAGS. Ignore libCrun as
  6470. # -library=stlport4 depends on it.
  6471. case " $CXX $CXXFLAGS " in
  6472. *" -library=stlport4 "*)
  6473. solaris_use_stlport4=yes
  6474. ;;
  6475. esac
  6476. if test "$solaris_use_stlport4" != yes; then
  6477. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6478. fi
  6479. ;;
  6480. esac
  6481. ;;
  6482. solaris*)
  6483. case $cc_basename in
  6484. CC* | sunCC*)
  6485. # The more standards-conforming stlport4 library is
  6486. # incompatible with the Cstd library. Avoid specifying
  6487. # it if it's in CXXFLAGS. Ignore libCrun as
  6488. # -library=stlport4 depends on it.
  6489. case " $CXX $CXXFLAGS " in
  6490. *" -library=stlport4 "*)
  6491. solaris_use_stlport4=yes
  6492. ;;
  6493. esac
  6494. # Adding this requires a known-good setup of shared libraries for
  6495. # Sun compiler versions before 5.6, else PIC objects from an old
  6496. # archive will be linked into the output, leading to subtle bugs.
  6497. if test "$solaris_use_stlport4" != yes; then
  6498. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6499. fi
  6500. ;;
  6501. esac
  6502. ;;
  6503. esac
  6504. ])
  6505. case " $_LT_TAGVAR(postdeps, $1) " in
  6506. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6507. esac
  6508. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6509. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6510. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6511. fi
  6512. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6513. [The directories searched by this compiler when creating a shared library])
  6514. _LT_TAGDECL([], [predep_objects], [1],
  6515. [Dependencies to place before and after the objects being linked to
  6516. create a shared library])
  6517. _LT_TAGDECL([], [postdep_objects], [1])
  6518. _LT_TAGDECL([], [predeps], [1])
  6519. _LT_TAGDECL([], [postdeps], [1])
  6520. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6521. [The library search path used internally by the compiler when linking
  6522. a shared library])
  6523. ])# _LT_SYS_HIDDEN_LIBDEPS
  6524. # _LT_LANG_F77_CONFIG([TAG])
  6525. # --------------------------
  6526. # Ensure that the configuration variables for a Fortran 77 compiler are
  6527. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6528. # to write the compiler configuration to `libtool'.
  6529. m4_defun([_LT_LANG_F77_CONFIG],
  6530. [AC_LANG_PUSH(Fortran 77)
  6531. if test -z "$F77" || test "X$F77" = "Xno"; then
  6532. _lt_disable_F77=yes
  6533. fi
  6534. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6535. _LT_TAGVAR(allow_undefined_flag, $1)=
  6536. _LT_TAGVAR(always_export_symbols, $1)=no
  6537. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6538. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6539. _LT_TAGVAR(hardcode_direct, $1)=no
  6540. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6541. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6542. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6543. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6544. _LT_TAGVAR(hardcode_automatic, $1)=no
  6545. _LT_TAGVAR(inherit_rpath, $1)=no
  6546. _LT_TAGVAR(module_cmds, $1)=
  6547. _LT_TAGVAR(module_expsym_cmds, $1)=
  6548. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6549. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6550. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6551. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6552. _LT_TAGVAR(no_undefined_flag, $1)=
  6553. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6554. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6555. # Source file extension for f77 test sources.
  6556. ac_ext=f
  6557. # Object file extension for compiled f77 test sources.
  6558. objext=o
  6559. _LT_TAGVAR(objext, $1)=$objext
  6560. # No sense in running all these tests if we already determined that
  6561. # the F77 compiler isn't working. Some variables (like enable_shared)
  6562. # are currently assumed to apply to all compilers on this platform,
  6563. # and will be corrupted by setting them based on a non-working compiler.
  6564. if test "$_lt_disable_F77" != yes; then
  6565. # Code to be used in simple compile tests
  6566. lt_simple_compile_test_code="\
  6567. subroutine t
  6568. return
  6569. end
  6570. "
  6571. # Code to be used in simple link tests
  6572. lt_simple_link_test_code="\
  6573. program t
  6574. end
  6575. "
  6576. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6577. _LT_TAG_COMPILER
  6578. # save warnings/boilerplate of simple test code
  6579. _LT_COMPILER_BOILERPLATE
  6580. _LT_LINKER_BOILERPLATE
  6581. # Allow CC to be a program name with arguments.
  6582. lt_save_CC="$CC"
  6583. lt_save_GCC=$GCC
  6584. lt_save_CFLAGS=$CFLAGS
  6585. CC=${F77-"f77"}
  6586. CFLAGS=$FFLAGS
  6587. compiler=$CC
  6588. _LT_TAGVAR(compiler, $1)=$CC
  6589. _LT_CC_BASENAME([$compiler])
  6590. GCC=$G77
  6591. if test -n "$compiler"; then
  6592. AC_MSG_CHECKING([if libtool supports shared libraries])
  6593. AC_MSG_RESULT([$can_build_shared])
  6594. AC_MSG_CHECKING([whether to build shared libraries])
  6595. test "$can_build_shared" = "no" && enable_shared=no
  6596. # On AIX, shared libraries and static libraries use the same namespace, and
  6597. # are all built from PIC.
  6598. case $host_os in
  6599. aix3*)
  6600. test "$enable_shared" = yes && enable_static=no
  6601. if test -n "$RANLIB"; then
  6602. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6603. postinstall_cmds='$RANLIB $lib'
  6604. fi
  6605. ;;
  6606. aix[[4-9]]*)
  6607. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6608. test "$enable_shared" = yes && enable_static=no
  6609. fi
  6610. ;;
  6611. esac
  6612. AC_MSG_RESULT([$enable_shared])
  6613. AC_MSG_CHECKING([whether to build static libraries])
  6614. # Make sure either enable_shared or enable_static is yes.
  6615. test "$enable_shared" = yes || enable_static=yes
  6616. AC_MSG_RESULT([$enable_static])
  6617. _LT_TAGVAR(GCC, $1)="$G77"
  6618. _LT_TAGVAR(LD, $1)="$LD"
  6619. ## CAVEAT EMPTOR:
  6620. ## There is no encapsulation within the following macros, do not change
  6621. ## the running order or otherwise move them around unless you know exactly
  6622. ## what you are doing...
  6623. _LT_COMPILER_PIC($1)
  6624. _LT_COMPILER_C_O($1)
  6625. _LT_COMPILER_FILE_LOCKS($1)
  6626. _LT_LINKER_SHLIBS($1)
  6627. _LT_SYS_DYNAMIC_LINKER($1)
  6628. _LT_LINKER_HARDCODE_LIBPATH($1)
  6629. _LT_CONFIG($1)
  6630. fi # test -n "$compiler"
  6631. GCC=$lt_save_GCC
  6632. CC="$lt_save_CC"
  6633. CFLAGS="$lt_save_CFLAGS"
  6634. fi # test "$_lt_disable_F77" != yes
  6635. AC_LANG_POP
  6636. ])# _LT_LANG_F77_CONFIG
  6637. # _LT_LANG_FC_CONFIG([TAG])
  6638. # -------------------------
  6639. # Ensure that the configuration variables for a Fortran compiler are
  6640. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6641. # to write the compiler configuration to `libtool'.
  6642. m4_defun([_LT_LANG_FC_CONFIG],
  6643. [AC_LANG_PUSH(Fortran)
  6644. if test -z "$FC" || test "X$FC" = "Xno"; then
  6645. _lt_disable_FC=yes
  6646. fi
  6647. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6648. _LT_TAGVAR(allow_undefined_flag, $1)=
  6649. _LT_TAGVAR(always_export_symbols, $1)=no
  6650. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6651. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6652. _LT_TAGVAR(hardcode_direct, $1)=no
  6653. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6654. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6655. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6656. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6657. _LT_TAGVAR(hardcode_automatic, $1)=no
  6658. _LT_TAGVAR(inherit_rpath, $1)=no
  6659. _LT_TAGVAR(module_cmds, $1)=
  6660. _LT_TAGVAR(module_expsym_cmds, $1)=
  6661. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6662. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6663. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6664. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6665. _LT_TAGVAR(no_undefined_flag, $1)=
  6666. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6667. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6668. # Source file extension for fc test sources.
  6669. ac_ext=${ac_fc_srcext-f}
  6670. # Object file extension for compiled fc test sources.
  6671. objext=o
  6672. _LT_TAGVAR(objext, $1)=$objext
  6673. # No sense in running all these tests if we already determined that
  6674. # the FC compiler isn't working. Some variables (like enable_shared)
  6675. # are currently assumed to apply to all compilers on this platform,
  6676. # and will be corrupted by setting them based on a non-working compiler.
  6677. if test "$_lt_disable_FC" != yes; then
  6678. # Code to be used in simple compile tests
  6679. lt_simple_compile_test_code="\
  6680. subroutine t
  6681. return
  6682. end
  6683. "
  6684. # Code to be used in simple link tests
  6685. lt_simple_link_test_code="\
  6686. program t
  6687. end
  6688. "
  6689. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6690. _LT_TAG_COMPILER
  6691. # save warnings/boilerplate of simple test code
  6692. _LT_COMPILER_BOILERPLATE
  6693. _LT_LINKER_BOILERPLATE
  6694. # Allow CC to be a program name with arguments.
  6695. lt_save_CC="$CC"
  6696. lt_save_GCC=$GCC
  6697. lt_save_CFLAGS=$CFLAGS
  6698. CC=${FC-"f95"}
  6699. CFLAGS=$FCFLAGS
  6700. compiler=$CC
  6701. GCC=$ac_cv_fc_compiler_gnu
  6702. _LT_TAGVAR(compiler, $1)=$CC
  6703. _LT_CC_BASENAME([$compiler])
  6704. if test -n "$compiler"; then
  6705. AC_MSG_CHECKING([if libtool supports shared libraries])
  6706. AC_MSG_RESULT([$can_build_shared])
  6707. AC_MSG_CHECKING([whether to build shared libraries])
  6708. test "$can_build_shared" = "no" && enable_shared=no
  6709. # On AIX, shared libraries and static libraries use the same namespace, and
  6710. # are all built from PIC.
  6711. case $host_os in
  6712. aix3*)
  6713. test "$enable_shared" = yes && enable_static=no
  6714. if test -n "$RANLIB"; then
  6715. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6716. postinstall_cmds='$RANLIB $lib'
  6717. fi
  6718. ;;
  6719. aix[[4-9]]*)
  6720. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6721. test "$enable_shared" = yes && enable_static=no
  6722. fi
  6723. ;;
  6724. esac
  6725. AC_MSG_RESULT([$enable_shared])
  6726. AC_MSG_CHECKING([whether to build static libraries])
  6727. # Make sure either enable_shared or enable_static is yes.
  6728. test "$enable_shared" = yes || enable_static=yes
  6729. AC_MSG_RESULT([$enable_static])
  6730. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6731. _LT_TAGVAR(LD, $1)="$LD"
  6732. ## CAVEAT EMPTOR:
  6733. ## There is no encapsulation within the following macros, do not change
  6734. ## the running order or otherwise move them around unless you know exactly
  6735. ## what you are doing...
  6736. _LT_SYS_HIDDEN_LIBDEPS($1)
  6737. _LT_COMPILER_PIC($1)
  6738. _LT_COMPILER_C_O($1)
  6739. _LT_COMPILER_FILE_LOCKS($1)
  6740. _LT_LINKER_SHLIBS($1)
  6741. _LT_SYS_DYNAMIC_LINKER($1)
  6742. _LT_LINKER_HARDCODE_LIBPATH($1)
  6743. _LT_CONFIG($1)
  6744. fi # test -n "$compiler"
  6745. GCC=$lt_save_GCC
  6746. CC=$lt_save_CC
  6747. CFLAGS=$lt_save_CFLAGS
  6748. fi # test "$_lt_disable_FC" != yes
  6749. AC_LANG_POP
  6750. ])# _LT_LANG_FC_CONFIG
  6751. # _LT_LANG_GCJ_CONFIG([TAG])
  6752. # --------------------------
  6753. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6754. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6755. # to write the compiler configuration to `libtool'.
  6756. m4_defun([_LT_LANG_GCJ_CONFIG],
  6757. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6758. AC_LANG_SAVE
  6759. # Source file extension for Java test sources.
  6760. ac_ext=java
  6761. # Object file extension for compiled Java test sources.
  6762. objext=o
  6763. _LT_TAGVAR(objext, $1)=$objext
  6764. # Code to be used in simple compile tests
  6765. lt_simple_compile_test_code="class foo {}"
  6766. # Code to be used in simple link tests
  6767. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6768. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6769. _LT_TAG_COMPILER
  6770. # save warnings/boilerplate of simple test code
  6771. _LT_COMPILER_BOILERPLATE
  6772. _LT_LINKER_BOILERPLATE
  6773. # Allow CC to be a program name with arguments.
  6774. lt_save_CC=$CC
  6775. lt_save_CFLAGS=$CFLAGS
  6776. lt_save_GCC=$GCC
  6777. GCC=yes
  6778. CC=${GCJ-"gcj"}
  6779. CFLAGS=$GCJFLAGS
  6780. compiler=$CC
  6781. _LT_TAGVAR(compiler, $1)=$CC
  6782. _LT_TAGVAR(LD, $1)="$LD"
  6783. _LT_CC_BASENAME([$compiler])
  6784. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6785. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6786. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6787. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6788. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6789. if test -n "$compiler"; then
  6790. _LT_COMPILER_NO_RTTI($1)
  6791. _LT_COMPILER_PIC($1)
  6792. _LT_COMPILER_C_O($1)
  6793. _LT_COMPILER_FILE_LOCKS($1)
  6794. _LT_LINKER_SHLIBS($1)
  6795. _LT_LINKER_HARDCODE_LIBPATH($1)
  6796. _LT_CONFIG($1)
  6797. fi
  6798. AC_LANG_RESTORE
  6799. GCC=$lt_save_GCC
  6800. CC=$lt_save_CC
  6801. CFLAGS=$lt_save_CFLAGS
  6802. ])# _LT_LANG_GCJ_CONFIG
  6803. # _LT_LANG_GO_CONFIG([TAG])
  6804. # --------------------------
  6805. # Ensure that the configuration variables for the GNU Go compiler
  6806. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6807. # to write the compiler configuration to `libtool'.
  6808. m4_defun([_LT_LANG_GO_CONFIG],
  6809. [AC_REQUIRE([LT_PROG_GO])dnl
  6810. AC_LANG_SAVE
  6811. # Source file extension for Go test sources.
  6812. ac_ext=go
  6813. # Object file extension for compiled Go test sources.
  6814. objext=o
  6815. _LT_TAGVAR(objext, $1)=$objext
  6816. # Code to be used in simple compile tests
  6817. lt_simple_compile_test_code="package main; func main() { }"
  6818. # Code to be used in simple link tests
  6819. lt_simple_link_test_code='package main; func main() { }'
  6820. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6821. _LT_TAG_COMPILER
  6822. # save warnings/boilerplate of simple test code
  6823. _LT_COMPILER_BOILERPLATE
  6824. _LT_LINKER_BOILERPLATE
  6825. # Allow CC to be a program name with arguments.
  6826. lt_save_CC=$CC
  6827. lt_save_CFLAGS=$CFLAGS
  6828. lt_save_GCC=$GCC
  6829. GCC=yes
  6830. CC=${GOC-"gccgo"}
  6831. CFLAGS=$GOFLAGS
  6832. compiler=$CC
  6833. _LT_TAGVAR(compiler, $1)=$CC
  6834. _LT_TAGVAR(LD, $1)="$LD"
  6835. _LT_CC_BASENAME([$compiler])
  6836. # Go did not exist at the time GCC didn't implicitly link libc in.
  6837. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6838. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6839. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6840. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6841. if test -n "$compiler"; then
  6842. _LT_COMPILER_NO_RTTI($1)
  6843. _LT_COMPILER_PIC($1)
  6844. _LT_COMPILER_C_O($1)
  6845. _LT_COMPILER_FILE_LOCKS($1)
  6846. _LT_LINKER_SHLIBS($1)
  6847. _LT_LINKER_HARDCODE_LIBPATH($1)
  6848. _LT_CONFIG($1)
  6849. fi
  6850. AC_LANG_RESTORE
  6851. GCC=$lt_save_GCC
  6852. CC=$lt_save_CC
  6853. CFLAGS=$lt_save_CFLAGS
  6854. ])# _LT_LANG_GO_CONFIG
  6855. # _LT_LANG_RC_CONFIG([TAG])
  6856. # -------------------------
  6857. # Ensure that the configuration variables for the Windows resource compiler
  6858. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6859. # to write the compiler configuration to `libtool'.
  6860. m4_defun([_LT_LANG_RC_CONFIG],
  6861. [AC_REQUIRE([LT_PROG_RC])dnl
  6862. AC_LANG_SAVE
  6863. # Source file extension for RC test sources.
  6864. ac_ext=rc
  6865. # Object file extension for compiled RC test sources.
  6866. objext=o
  6867. _LT_TAGVAR(objext, $1)=$objext
  6868. # Code to be used in simple compile tests
  6869. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6870. # Code to be used in simple link tests
  6871. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6872. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6873. _LT_TAG_COMPILER
  6874. # save warnings/boilerplate of simple test code
  6875. _LT_COMPILER_BOILERPLATE
  6876. _LT_LINKER_BOILERPLATE
  6877. # Allow CC to be a program name with arguments.
  6878. lt_save_CC="$CC"
  6879. lt_save_CFLAGS=$CFLAGS
  6880. lt_save_GCC=$GCC
  6881. GCC=
  6882. CC=${RC-"windres"}
  6883. CFLAGS=
  6884. compiler=$CC
  6885. _LT_TAGVAR(compiler, $1)=$CC
  6886. _LT_CC_BASENAME([$compiler])
  6887. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6888. if test -n "$compiler"; then
  6889. :
  6890. _LT_CONFIG($1)
  6891. fi
  6892. GCC=$lt_save_GCC
  6893. AC_LANG_RESTORE
  6894. CC=$lt_save_CC
  6895. CFLAGS=$lt_save_CFLAGS
  6896. ])# _LT_LANG_RC_CONFIG
  6897. # LT_PROG_GCJ
  6898. # -----------
  6899. AC_DEFUN([LT_PROG_GCJ],
  6900. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6901. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6902. [AC_CHECK_TOOL(GCJ, gcj,)
  6903. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6904. AC_SUBST(GCJFLAGS)])])[]dnl
  6905. ])
  6906. # Old name:
  6907. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6908. dnl aclocal-1.4 backwards compatibility:
  6909. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6910. # LT_PROG_GO
  6911. # ----------
  6912. AC_DEFUN([LT_PROG_GO],
  6913. [AC_CHECK_TOOL(GOC, gccgo,)
  6914. ])
  6915. # LT_PROG_RC
  6916. # ----------
  6917. AC_DEFUN([LT_PROG_RC],
  6918. [AC_CHECK_TOOL(RC, windres,)
  6919. ])
  6920. # Old name:
  6921. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6922. dnl aclocal-1.4 backwards compatibility:
  6923. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6924. # _LT_DECL_EGREP
  6925. # --------------
  6926. # If we don't have a new enough Autoconf to choose the best grep
  6927. # available, choose the one first in the user's PATH.
  6928. m4_defun([_LT_DECL_EGREP],
  6929. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6930. AC_REQUIRE([AC_PROG_FGREP])dnl
  6931. test -z "$GREP" && GREP=grep
  6932. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6933. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6934. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6935. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6936. AC_SUBST([GREP])
  6937. ])
  6938. # _LT_DECL_OBJDUMP
  6939. # --------------
  6940. # If we don't have a new enough Autoconf to choose the best objdump
  6941. # available, choose the one first in the user's PATH.
  6942. m4_defun([_LT_DECL_OBJDUMP],
  6943. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6944. test -z "$OBJDUMP" && OBJDUMP=objdump
  6945. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6946. AC_SUBST([OBJDUMP])
  6947. ])
  6948. # _LT_DECL_DLLTOOL
  6949. # ----------------
  6950. # Ensure DLLTOOL variable is set.
  6951. m4_defun([_LT_DECL_DLLTOOL],
  6952. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6953. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6954. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  6955. AC_SUBST([DLLTOOL])
  6956. ])
  6957. # _LT_DECL_SED
  6958. # ------------
  6959. # Check for a fully-functional sed program, that truncates
  6960. # as few characters as possible. Prefer GNU sed if found.
  6961. m4_defun([_LT_DECL_SED],
  6962. [AC_PROG_SED
  6963. test -z "$SED" && SED=sed
  6964. Xsed="$SED -e 1s/^X//"
  6965. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  6966. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  6967. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  6968. ])# _LT_DECL_SED
  6969. m4_ifndef([AC_PROG_SED], [
  6970. # NOTE: This macro has been submitted for inclusion into #
  6971. # GNU Autoconf as AC_PROG_SED. When it is available in #
  6972. # a released version of Autoconf we should remove this #
  6973. # macro and use it instead. #
  6974. m4_defun([AC_PROG_SED],
  6975. [AC_MSG_CHECKING([for a sed that does not truncate output])
  6976. AC_CACHE_VAL(lt_cv_path_SED,
  6977. [# Loop through the user's path and test for sed and gsed.
  6978. # Then use that list of sed's as ones to test for truncation.
  6979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6980. for as_dir in $PATH
  6981. do
  6982. IFS=$as_save_IFS
  6983. test -z "$as_dir" && as_dir=.
  6984. for lt_ac_prog in sed gsed; do
  6985. for ac_exec_ext in '' $ac_executable_extensions; do
  6986. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  6987. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6988. fi
  6989. done
  6990. done
  6991. done
  6992. IFS=$as_save_IFS
  6993. lt_ac_max=0
  6994. lt_ac_count=0
  6995. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  6996. # along with /bin/sed that truncates output.
  6997. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  6998. test ! -f $lt_ac_sed && continue
  6999. cat /dev/null > conftest.in
  7000. lt_ac_count=0
  7001. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7002. # Check for GNU sed and select it if it is found.
  7003. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7004. lt_cv_path_SED=$lt_ac_sed
  7005. break
  7006. fi
  7007. while true; do
  7008. cat conftest.in conftest.in >conftest.tmp
  7009. mv conftest.tmp conftest.in
  7010. cp conftest.in conftest.nl
  7011. echo >>conftest.nl
  7012. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7013. cmp -s conftest.out conftest.nl || break
  7014. # 10000 chars as input seems more than enough
  7015. test $lt_ac_count -gt 10 && break
  7016. lt_ac_count=`expr $lt_ac_count + 1`
  7017. if test $lt_ac_count -gt $lt_ac_max; then
  7018. lt_ac_max=$lt_ac_count
  7019. lt_cv_path_SED=$lt_ac_sed
  7020. fi
  7021. done
  7022. done
  7023. ])
  7024. SED=$lt_cv_path_SED
  7025. AC_SUBST([SED])
  7026. AC_MSG_RESULT([$SED])
  7027. ])#AC_PROG_SED
  7028. ])#m4_ifndef
  7029. # Old name:
  7030. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7031. dnl aclocal-1.4 backwards compatibility:
  7032. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7033. # _LT_CHECK_SHELL_FEATURES
  7034. # ------------------------
  7035. # Find out whether the shell is Bourne or XSI compatible,
  7036. # or has some other useful features.
  7037. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7038. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7039. # Try some XSI features
  7040. xsi_shell=no
  7041. ( _lt_dummy="a/b/c"
  7042. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7043. = c,a/b,b/c, \
  7044. && eval 'test $(( 1 + 1 )) -eq 2 \
  7045. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7046. && xsi_shell=yes
  7047. AC_MSG_RESULT([$xsi_shell])
  7048. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7049. AC_MSG_CHECKING([whether the shell understands "+="])
  7050. lt_shell_append=no
  7051. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7052. >/dev/null 2>&1 \
  7053. && lt_shell_append=yes
  7054. AC_MSG_RESULT([$lt_shell_append])
  7055. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7056. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7057. lt_unset=unset
  7058. else
  7059. lt_unset=false
  7060. fi
  7061. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7062. # test EBCDIC or ASCII
  7063. case `echo X|tr X '\101'` in
  7064. A) # ASCII based system
  7065. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7066. lt_SP2NL='tr \040 \012'
  7067. lt_NL2SP='tr \015\012 \040\040'
  7068. ;;
  7069. *) # EBCDIC based system
  7070. lt_SP2NL='tr \100 \n'
  7071. lt_NL2SP='tr \r\n \100\100'
  7072. ;;
  7073. esac
  7074. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7075. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7076. ])# _LT_CHECK_SHELL_FEATURES
  7077. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  7078. # ------------------------------------------------------
  7079. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  7080. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  7081. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  7082. [dnl {
  7083. sed -e '/^$1 ()$/,/^} # $1 /c\
  7084. $1 ()\
  7085. {\
  7086. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  7087. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  7088. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7089. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7090. test 0 -eq $? || _lt_function_replace_fail=:
  7091. ])
  7092. # _LT_PROG_REPLACE_SHELLFNS
  7093. # -------------------------
  7094. # Replace existing portable implementations of several shell functions with
  7095. # equivalent extended shell implementations where those features are available..
  7096. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  7097. [if test x"$xsi_shell" = xyes; then
  7098. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  7099. case ${1} in
  7100. */*) func_dirname_result="${1%/*}${2}" ;;
  7101. * ) func_dirname_result="${3}" ;;
  7102. esac])
  7103. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  7104. func_basename_result="${1##*/}"])
  7105. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  7106. case ${1} in
  7107. */*) func_dirname_result="${1%/*}${2}" ;;
  7108. * ) func_dirname_result="${3}" ;;
  7109. esac
  7110. func_basename_result="${1##*/}"])
  7111. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  7112. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7113. # positional parameters, so assign one to ordinary parameter first.
  7114. func_stripname_result=${3}
  7115. func_stripname_result=${func_stripname_result#"${1}"}
  7116. func_stripname_result=${func_stripname_result%"${2}"}])
  7117. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  7118. func_split_long_opt_name=${1%%=*}
  7119. func_split_long_opt_arg=${1#*=}])
  7120. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  7121. func_split_short_opt_arg=${1#??}
  7122. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  7123. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7124. case ${1} in
  7125. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7126. *) func_lo2o_result=${1} ;;
  7127. esac])
  7128. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7129. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7130. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7131. fi
  7132. if test x"$lt_shell_append" = xyes; then
  7133. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7134. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7135. func_quote_for_eval "${2}"
  7136. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7137. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7138. # Save a `func_append' function call where possible by direct use of '+='
  7139. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7140. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7141. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7142. test 0 -eq $? || _lt_function_replace_fail=:
  7143. else
  7144. # Save a `func_append' function call even when '+=' is not available
  7145. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7146. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7147. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7148. test 0 -eq $? || _lt_function_replace_fail=:
  7149. fi
  7150. if test x"$_lt_function_replace_fail" = x":"; then
  7151. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7152. fi
  7153. ])
  7154. # _LT_PATH_CONVERSION_FUNCTIONS
  7155. # -----------------------------
  7156. # Determine which file name conversion functions should be used by
  7157. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7158. # for certain cross-compile configurations and native mingw.
  7159. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7160. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7161. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7162. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7163. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7164. [case $host in
  7165. *-*-mingw* )
  7166. case $build in
  7167. *-*-mingw* ) # actually msys
  7168. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7169. ;;
  7170. *-*-cygwin* )
  7171. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7172. ;;
  7173. * ) # otherwise, assume *nix
  7174. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7175. ;;
  7176. esac
  7177. ;;
  7178. *-*-cygwin* )
  7179. case $build in
  7180. *-*-mingw* ) # actually msys
  7181. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7182. ;;
  7183. *-*-cygwin* )
  7184. lt_cv_to_host_file_cmd=func_convert_file_noop
  7185. ;;
  7186. * ) # otherwise, assume *nix
  7187. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7188. ;;
  7189. esac
  7190. ;;
  7191. * ) # unhandled hosts (and "normal" native builds)
  7192. lt_cv_to_host_file_cmd=func_convert_file_noop
  7193. ;;
  7194. esac
  7195. ])
  7196. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7197. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7198. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7199. [0], [convert $build file names to $host format])dnl
  7200. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7201. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7202. [#assume ordinary cross tools, or native build.
  7203. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7204. case $host in
  7205. *-*-mingw* )
  7206. case $build in
  7207. *-*-mingw* ) # actually msys
  7208. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7209. ;;
  7210. esac
  7211. ;;
  7212. esac
  7213. ])
  7214. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7215. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7216. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7217. [0], [convert $build files to toolchain format])dnl
  7218. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7219. # Helper functions for option handling. -*- Autoconf -*-
  7220. #
  7221. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7222. # Inc.
  7223. # Written by Gary V. Vaughan, 2004
  7224. #
  7225. # This file is free software; the Free Software Foundation gives
  7226. # unlimited permission to copy and/or distribute it, with or without
  7227. # modifications, as long as this notice is preserved.
  7228. # serial 7 ltoptions.m4
  7229. # This is to help aclocal find these macros, as it can't see m4_define.
  7230. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7231. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7232. # ------------------------------------------
  7233. m4_define([_LT_MANGLE_OPTION],
  7234. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7235. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7236. # ---------------------------------------
  7237. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7238. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7239. # saved as a flag.
  7240. m4_define([_LT_SET_OPTION],
  7241. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7242. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7243. _LT_MANGLE_DEFUN([$1], [$2]),
  7244. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7245. ])
  7246. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7247. # ------------------------------------------------------------
  7248. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7249. m4_define([_LT_IF_OPTION],
  7250. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7251. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7252. # -------------------------------------------------------
  7253. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7254. # are set.
  7255. m4_define([_LT_UNLESS_OPTIONS],
  7256. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7257. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7258. [m4_define([$0_found])])])[]dnl
  7259. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7260. ])[]dnl
  7261. ])
  7262. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7263. # ----------------------------------------
  7264. # OPTION-LIST is a space-separated list of Libtool options associated
  7265. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7266. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7267. # the unknown option and exit.
  7268. m4_defun([_LT_SET_OPTIONS],
  7269. [# Set options
  7270. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7271. [_LT_SET_OPTION([$1], _LT_Option)])
  7272. m4_if([$1],[LT_INIT],[
  7273. dnl
  7274. dnl Simply set some default values (i.e off) if boolean options were not
  7275. dnl specified:
  7276. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7277. ])
  7278. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7279. ])
  7280. dnl
  7281. dnl If no reference was made to various pairs of opposing options, then
  7282. dnl we run the default mode handler for the pair. For example, if neither
  7283. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7284. dnl archives by default:
  7285. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7286. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7287. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7288. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7289. [_LT_ENABLE_FAST_INSTALL])
  7290. ])
  7291. ])# _LT_SET_OPTIONS
  7292. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7293. # -----------------------------------------
  7294. m4_define([_LT_MANGLE_DEFUN],
  7295. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7296. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7297. # -----------------------------------------------
  7298. m4_define([LT_OPTION_DEFINE],
  7299. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7300. ])# LT_OPTION_DEFINE
  7301. # dlopen
  7302. # ------
  7303. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7304. ])
  7305. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7306. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7307. AC_DIAGNOSE([obsolete],
  7308. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7309. put the `dlopen' option into LT_INIT's first parameter.])
  7310. ])
  7311. dnl aclocal-1.4 backwards compatibility:
  7312. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7313. # win32-dll
  7314. # ---------
  7315. # Declare package support for building win32 dll's.
  7316. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7317. [enable_win32_dll=yes
  7318. case $host in
  7319. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7320. AC_CHECK_TOOL(AS, as, false)
  7321. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7322. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7323. ;;
  7324. esac
  7325. test -z "$AS" && AS=as
  7326. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7327. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7328. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7329. test -z "$OBJDUMP" && OBJDUMP=objdump
  7330. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7331. ])# win32-dll
  7332. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7333. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7334. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7335. AC_DIAGNOSE([obsolete],
  7336. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7337. put the `win32-dll' option into LT_INIT's first parameter.])
  7338. ])
  7339. dnl aclocal-1.4 backwards compatibility:
  7340. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7341. # _LT_ENABLE_SHARED([DEFAULT])
  7342. # ----------------------------
  7343. # implement the --enable-shared flag, and supports the `shared' and
  7344. # `disable-shared' LT_INIT options.
  7345. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7346. m4_define([_LT_ENABLE_SHARED],
  7347. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7348. AC_ARG_ENABLE([shared],
  7349. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7350. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7351. [p=${PACKAGE-default}
  7352. case $enableval in
  7353. yes) enable_shared=yes ;;
  7354. no) enable_shared=no ;;
  7355. *)
  7356. enable_shared=no
  7357. # Look at the argument we got. We use all the common list separators.
  7358. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7359. for pkg in $enableval; do
  7360. IFS="$lt_save_ifs"
  7361. if test "X$pkg" = "X$p"; then
  7362. enable_shared=yes
  7363. fi
  7364. done
  7365. IFS="$lt_save_ifs"
  7366. ;;
  7367. esac],
  7368. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7369. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7370. [Whether or not to build shared libraries])
  7371. ])# _LT_ENABLE_SHARED
  7372. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7373. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7374. # Old names:
  7375. AC_DEFUN([AC_ENABLE_SHARED],
  7376. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7377. ])
  7378. AC_DEFUN([AC_DISABLE_SHARED],
  7379. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7380. ])
  7381. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7382. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7383. dnl aclocal-1.4 backwards compatibility:
  7384. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7385. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7386. # _LT_ENABLE_STATIC([DEFAULT])
  7387. # ----------------------------
  7388. # implement the --enable-static flag, and support the `static' and
  7389. # `disable-static' LT_INIT options.
  7390. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7391. m4_define([_LT_ENABLE_STATIC],
  7392. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7393. AC_ARG_ENABLE([static],
  7394. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7395. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7396. [p=${PACKAGE-default}
  7397. case $enableval in
  7398. yes) enable_static=yes ;;
  7399. no) enable_static=no ;;
  7400. *)
  7401. enable_static=no
  7402. # Look at the argument we got. We use all the common list separators.
  7403. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7404. for pkg in $enableval; do
  7405. IFS="$lt_save_ifs"
  7406. if test "X$pkg" = "X$p"; then
  7407. enable_static=yes
  7408. fi
  7409. done
  7410. IFS="$lt_save_ifs"
  7411. ;;
  7412. esac],
  7413. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7414. _LT_DECL([build_old_libs], [enable_static], [0],
  7415. [Whether or not to build static libraries])
  7416. ])# _LT_ENABLE_STATIC
  7417. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7418. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7419. # Old names:
  7420. AC_DEFUN([AC_ENABLE_STATIC],
  7421. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7422. ])
  7423. AC_DEFUN([AC_DISABLE_STATIC],
  7424. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7425. ])
  7426. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7427. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7428. dnl aclocal-1.4 backwards compatibility:
  7429. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7430. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7431. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7432. # ----------------------------------
  7433. # implement the --enable-fast-install flag, and support the `fast-install'
  7434. # and `disable-fast-install' LT_INIT options.
  7435. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7436. m4_define([_LT_ENABLE_FAST_INSTALL],
  7437. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7438. AC_ARG_ENABLE([fast-install],
  7439. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7440. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7441. [p=${PACKAGE-default}
  7442. case $enableval in
  7443. yes) enable_fast_install=yes ;;
  7444. no) enable_fast_install=no ;;
  7445. *)
  7446. enable_fast_install=no
  7447. # Look at the argument we got. We use all the common list separators.
  7448. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7449. for pkg in $enableval; do
  7450. IFS="$lt_save_ifs"
  7451. if test "X$pkg" = "X$p"; then
  7452. enable_fast_install=yes
  7453. fi
  7454. done
  7455. IFS="$lt_save_ifs"
  7456. ;;
  7457. esac],
  7458. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7459. _LT_DECL([fast_install], [enable_fast_install], [0],
  7460. [Whether or not to optimize for fast installation])dnl
  7461. ])# _LT_ENABLE_FAST_INSTALL
  7462. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7463. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7464. # Old names:
  7465. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7466. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7467. AC_DIAGNOSE([obsolete],
  7468. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7469. the `fast-install' option into LT_INIT's first parameter.])
  7470. ])
  7471. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7472. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7473. AC_DIAGNOSE([obsolete],
  7474. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7475. the `disable-fast-install' option into LT_INIT's first parameter.])
  7476. ])
  7477. dnl aclocal-1.4 backwards compatibility:
  7478. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7479. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7480. # _LT_WITH_PIC([MODE])
  7481. # --------------------
  7482. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7483. # LT_INIT options.
  7484. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7485. m4_define([_LT_WITH_PIC],
  7486. [AC_ARG_WITH([pic],
  7487. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7488. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7489. [lt_p=${PACKAGE-default}
  7490. case $withval in
  7491. yes|no) pic_mode=$withval ;;
  7492. *)
  7493. pic_mode=default
  7494. # Look at the argument we got. We use all the common list separators.
  7495. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7496. for lt_pkg in $withval; do
  7497. IFS="$lt_save_ifs"
  7498. if test "X$lt_pkg" = "X$lt_p"; then
  7499. pic_mode=yes
  7500. fi
  7501. done
  7502. IFS="$lt_save_ifs"
  7503. ;;
  7504. esac],
  7505. [pic_mode=default])
  7506. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7507. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7508. ])# _LT_WITH_PIC
  7509. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7510. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7511. # Old name:
  7512. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7513. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7514. AC_DIAGNOSE([obsolete],
  7515. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7516. put the `pic-only' option into LT_INIT's first parameter.])
  7517. ])
  7518. dnl aclocal-1.4 backwards compatibility:
  7519. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7520. m4_define([_LTDL_MODE], [])
  7521. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7522. [m4_define([_LTDL_MODE], [nonrecursive])])
  7523. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7524. [m4_define([_LTDL_MODE], [recursive])])
  7525. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7526. [m4_define([_LTDL_MODE], [subproject])])
  7527. m4_define([_LTDL_TYPE], [])
  7528. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7529. [m4_define([_LTDL_TYPE], [installable])])
  7530. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7531. [m4_define([_LTDL_TYPE], [convenience])])
  7532. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7533. #
  7534. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7535. # Written by Gary V. Vaughan, 2004
  7536. #
  7537. # This file is free software; the Free Software Foundation gives
  7538. # unlimited permission to copy and/or distribute it, with or without
  7539. # modifications, as long as this notice is preserved.
  7540. # serial 6 ltsugar.m4
  7541. # This is to help aclocal find these macros, as it can't see m4_define.
  7542. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7543. # lt_join(SEP, ARG1, [ARG2...])
  7544. # -----------------------------
  7545. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7546. # associated separator.
  7547. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7548. # versions in m4sugar had bugs.
  7549. m4_define([lt_join],
  7550. [m4_if([$#], [1], [],
  7551. [$#], [2], [[$2]],
  7552. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7553. m4_define([_lt_join],
  7554. [m4_if([$#$2], [2], [],
  7555. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7556. # lt_car(LIST)
  7557. # lt_cdr(LIST)
  7558. # ------------
  7559. # Manipulate m4 lists.
  7560. # These macros are necessary as long as will still need to support
  7561. # Autoconf-2.59 which quotes differently.
  7562. m4_define([lt_car], [[$1]])
  7563. m4_define([lt_cdr],
  7564. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7565. [$#], 1, [],
  7566. [m4_dquote(m4_shift($@))])])
  7567. m4_define([lt_unquote], $1)
  7568. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7569. # ------------------------------------------
  7570. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7571. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7572. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7573. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7574. # than defined and empty).
  7575. #
  7576. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7577. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7578. m4_define([lt_append],
  7579. [m4_define([$1],
  7580. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7581. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7582. # ----------------------------------------------------------
  7583. # Produce a SEP delimited list of all paired combinations of elements of
  7584. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7585. # has the form PREFIXmINFIXSUFFIXn.
  7586. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7587. m4_define([lt_combine],
  7588. [m4_if(m4_eval([$# > 3]), [1],
  7589. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7590. [[m4_foreach([_Lt_prefix], [$2],
  7591. [m4_foreach([_Lt_suffix],
  7592. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7593. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7594. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7595. # -----------------------------------------------------------------------
  7596. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7597. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7598. m4_define([lt_if_append_uniq],
  7599. [m4_ifdef([$1],
  7600. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7601. [lt_append([$1], [$2], [$3])$4],
  7602. [$5])],
  7603. [lt_append([$1], [$2], [$3])$4])])
  7604. # lt_dict_add(DICT, KEY, VALUE)
  7605. # -----------------------------
  7606. m4_define([lt_dict_add],
  7607. [m4_define([$1($2)], [$3])])
  7608. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7609. # --------------------------------------------
  7610. m4_define([lt_dict_add_subkey],
  7611. [m4_define([$1($2:$3)], [$4])])
  7612. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7613. # ----------------------------------
  7614. m4_define([lt_dict_fetch],
  7615. [m4_ifval([$3],
  7616. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7617. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7618. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7619. # -----------------------------------------------------------------
  7620. m4_define([lt_if_dict_fetch],
  7621. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7622. [$5],
  7623. [$6])])
  7624. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7625. # --------------------------------------------------------------
  7626. m4_define([lt_dict_filter],
  7627. [m4_if([$5], [], [],
  7628. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7629. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7630. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7631. ])
  7632. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7633. #
  7634. # Copyright (C) 2004 Free Software Foundation, Inc.
  7635. # Written by Scott James Remnant, 2004
  7636. #
  7637. # This file is free software; the Free Software Foundation gives
  7638. # unlimited permission to copy and/or distribute it, with or without
  7639. # modifications, as long as this notice is preserved.
  7640. # @configure_input@
  7641. # serial 3337 ltversion.m4
  7642. # This file is part of GNU Libtool
  7643. m4_define([LT_PACKAGE_VERSION], [2.4.2])
  7644. m4_define([LT_PACKAGE_REVISION], [1.3337])
  7645. AC_DEFUN([LTVERSION_VERSION],
  7646. [macro_version='2.4.2'
  7647. macro_revision='1.3337'
  7648. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7649. _LT_DECL(, macro_revision, 0)
  7650. ])
  7651. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7652. #
  7653. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  7654. # Written by Scott James Remnant, 2004.
  7655. #
  7656. # This file is free software; the Free Software Foundation gives
  7657. # unlimited permission to copy and/or distribute it, with or without
  7658. # modifications, as long as this notice is preserved.
  7659. # serial 5 lt~obsolete.m4
  7660. # These exist entirely to fool aclocal when bootstrapping libtool.
  7661. #
  7662. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7663. # which have later been changed to m4_define as they aren't part of the
  7664. # exported API, or moved to Autoconf or Automake where they belong.
  7665. #
  7666. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7667. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7668. # using a macro with the same name in our local m4/libtool.m4 it'll
  7669. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7670. # and doesn't know about Autoconf macros at all.)
  7671. #
  7672. # So we provide this file, which has a silly filename so it's always
  7673. # included after everything else. This provides aclocal with the
  7674. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7675. # because those macros already exist, or will be overwritten later.
  7676. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7677. #
  7678. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7679. # Yes, that means every name once taken will need to remain here until
  7680. # we give up compatibility with versions before 1.7, at which point
  7681. # we need to keep only those names which we still refer to.
  7682. # This is to help aclocal find these macros, as it can't see m4_define.
  7683. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7684. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7685. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7686. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7687. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7688. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7689. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7690. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7691. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7692. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7693. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7694. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7695. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7696. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7697. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7698. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7699. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7700. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7701. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7702. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7703. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7704. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7705. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7706. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7707. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7708. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7709. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7710. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7711. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7712. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7713. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7714. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7715. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7716. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7717. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7718. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7719. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7720. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7721. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7722. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7723. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7724. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7725. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7726. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7727. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7728. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7729. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7730. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7731. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7732. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7733. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7734. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7735. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7736. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7737. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7738. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7739. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7740. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7741. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7742. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7743. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7744. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7745. # Copyright (C) 2002-2014 Free Software Foundation, Inc.
  7746. #
  7747. # This file is free software; the Free Software Foundation
  7748. # gives unlimited permission to copy and/or distribute it,
  7749. # with or without modifications, as long as this notice is preserved.
  7750. # AM_AUTOMAKE_VERSION(VERSION)
  7751. # ----------------------------
  7752. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7753. # generated from the m4 files accompanying Automake X.Y.
  7754. # (This private macro should not be called outside this file.)
  7755. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7756. [am__api_version='1.15'
  7757. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7758. dnl require some minimum version. Point them to the right macro.
  7759. m4_if([$1], [1.15], [],
  7760. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7761. ])
  7762. # _AM_AUTOCONF_VERSION(VERSION)
  7763. # -----------------------------
  7764. # aclocal traces this macro to find the Autoconf version.
  7765. # This is a private macro too. Using m4_define simplifies
  7766. # the logic in aclocal, which can simply ignore this definition.
  7767. m4_define([_AM_AUTOCONF_VERSION], [])
  7768. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7769. # -------------------------------
  7770. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7771. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7772. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7773. [AM_AUTOMAKE_VERSION([1.15])dnl
  7774. m4_ifndef([AC_AUTOCONF_VERSION],
  7775. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7776. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7777. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7778. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  7779. #
  7780. # This file is free software; the Free Software Foundation
  7781. # gives unlimited permission to copy and/or distribute it,
  7782. # with or without modifications, as long as this notice is preserved.
  7783. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7784. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  7785. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  7786. #
  7787. # Of course, Automake must honor this variable whenever it calls a
  7788. # tool from the auxiliary directory. The problem is that $srcdir (and
  7789. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7790. # depending on how configure is run. This is pretty annoying, since
  7791. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7792. # source directory, any form will work fine, but in subdirectories a
  7793. # relative path needs to be adjusted first.
  7794. #
  7795. # $ac_aux_dir/missing
  7796. # fails when called from a subdirectory if $ac_aux_dir is relative
  7797. # $top_srcdir/$ac_aux_dir/missing
  7798. # fails if $ac_aux_dir is absolute,
  7799. # fails when called from a subdirectory in a VPATH build with
  7800. # a relative $ac_aux_dir
  7801. #
  7802. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7803. # are both prefixed by $srcdir. In an in-source build this is usually
  7804. # harmless because $srcdir is '.', but things will broke when you
  7805. # start a VPATH build or use an absolute $srcdir.
  7806. #
  7807. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7808. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7809. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7810. # and then we would define $MISSING as
  7811. # MISSING="\${SHELL} $am_aux_dir/missing"
  7812. # This will work as long as MISSING is not called from configure, because
  7813. # unfortunately $(top_srcdir) has no meaning in configure.
  7814. # However there are other variables, like CC, which are often used in
  7815. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7816. #
  7817. # Another solution, used here, is to always expand $ac_aux_dir to an
  7818. # absolute PATH. The drawback is that using absolute paths prevent a
  7819. # configured tree to be moved without reconfiguration.
  7820. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7821. [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  7822. # Expand $ac_aux_dir to an absolute path.
  7823. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  7824. ])
  7825. # AM_CONDITIONAL -*- Autoconf -*-
  7826. # Copyright (C) 1997-2014 Free Software Foundation, Inc.
  7827. #
  7828. # This file is free software; the Free Software Foundation
  7829. # gives unlimited permission to copy and/or distribute it,
  7830. # with or without modifications, as long as this notice is preserved.
  7831. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7832. # -------------------------------------
  7833. # Define a conditional.
  7834. AC_DEFUN([AM_CONDITIONAL],
  7835. [AC_PREREQ([2.52])dnl
  7836. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7837. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7838. AC_SUBST([$1_TRUE])dnl
  7839. AC_SUBST([$1_FALSE])dnl
  7840. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  7841. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  7842. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  7843. if $2; then
  7844. $1_TRUE=
  7845. $1_FALSE='#'
  7846. else
  7847. $1_TRUE='#'
  7848. $1_FALSE=
  7849. fi
  7850. AC_CONFIG_COMMANDS_PRE(
  7851. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  7852. AC_MSG_ERROR([[conditional "$1" was never defined.
  7853. Usually this means the macro was only invoked conditionally.]])
  7854. fi])])
  7855. # Copyright (C) 1999-2014 Free Software Foundation, Inc.
  7856. #
  7857. # This file is free software; the Free Software Foundation
  7858. # gives unlimited permission to copy and/or distribute it,
  7859. # with or without modifications, as long as this notice is preserved.
  7860. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  7861. # written in clear, in which case automake, when reading aclocal.m4,
  7862. # will think it sees a *use*, and therefore will trigger all it's
  7863. # C support machinery. Also note that it means that autoscan, seeing
  7864. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  7865. # _AM_DEPENDENCIES(NAME)
  7866. # ----------------------
  7867. # See how the compiler implements dependency checking.
  7868. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  7869. # We try a few techniques and use that to set a single cache variable.
  7870. #
  7871. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  7872. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  7873. # dependency, and given that the user is not expected to run this macro,
  7874. # just rely on AC_PROG_CC.
  7875. AC_DEFUN([_AM_DEPENDENCIES],
  7876. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  7877. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  7878. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  7879. AC_REQUIRE([AM_DEP_TRACK])dnl
  7880. m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
  7881. [$1], [CXX], [depcc="$CXX" am_compiler_list=],
  7882. [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  7883. [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  7884. [$1], [UPC], [depcc="$UPC" am_compiler_list=],
  7885. [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  7886. [depcc="$$1" am_compiler_list=])
  7887. AC_CACHE_CHECK([dependency style of $depcc],
  7888. [am_cv_$1_dependencies_compiler_type],
  7889. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7890. # We make a subdir and do the tests there. Otherwise we can end up
  7891. # making bogus files that we don't know about and never remove. For
  7892. # instance it was reported that on HP-UX the gcc test will end up
  7893. # making a dummy file named 'D' -- because '-MD' means "put the output
  7894. # in D".
  7895. rm -rf conftest.dir
  7896. mkdir conftest.dir
  7897. # Copy depcomp to subdir because otherwise we won't find it if we're
  7898. # using a relative directory.
  7899. cp "$am_depcomp" conftest.dir
  7900. cd conftest.dir
  7901. # We will build objects and dependencies in a subdirectory because
  7902. # it helps to detect inapplicable dependency modes. For instance
  7903. # both Tru64's cc and ICC support -MD to output dependencies as a
  7904. # side effect of compilation, but ICC will put the dependencies in
  7905. # the current directory while Tru64 will put them in the object
  7906. # directory.
  7907. mkdir sub
  7908. am_cv_$1_dependencies_compiler_type=none
  7909. if test "$am_compiler_list" = ""; then
  7910. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  7911. fi
  7912. am__universal=false
  7913. m4_case([$1], [CC],
  7914. [case " $depcc " in #(
  7915. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7916. esac],
  7917. [CXX],
  7918. [case " $depcc " in #(
  7919. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7920. esac])
  7921. for depmode in $am_compiler_list; do
  7922. # Setup a source with many dependencies, because some compilers
  7923. # like to wrap large dependency lists on column 80 (with \), and
  7924. # we should not choose a depcomp mode which is confused by this.
  7925. #
  7926. # We need to recreate these files for each test, as the compiler may
  7927. # overwrite some of them when testing with obscure command lines.
  7928. # This happens at least with the AIX C compiler.
  7929. : > sub/conftest.c
  7930. for i in 1 2 3 4 5 6; do
  7931. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7932. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  7933. # Solaris 10 /bin/sh.
  7934. echo '/* dummy */' > sub/conftst$i.h
  7935. done
  7936. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7937. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  7938. # mode. It turns out that the SunPro C++ compiler does not properly
  7939. # handle '-M -o', and we need to detect this. Also, some Intel
  7940. # versions had trouble with output in subdirs.
  7941. am__obj=sub/conftest.${OBJEXT-o}
  7942. am__minus_obj="-o $am__obj"
  7943. case $depmode in
  7944. gcc)
  7945. # This depmode causes a compiler race in universal mode.
  7946. test "$am__universal" = false || continue
  7947. ;;
  7948. nosideeffect)
  7949. # After this tag, mechanisms are not by side-effect, so they'll
  7950. # only be used when explicitly requested.
  7951. if test "x$enable_dependency_tracking" = xyes; then
  7952. continue
  7953. else
  7954. break
  7955. fi
  7956. ;;
  7957. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  7958. # This compiler won't grok '-c -o', but also, the minuso test has
  7959. # not run yet. These depmodes are late enough in the game, and
  7960. # so weak that their functioning should not be impacted.
  7961. am__obj=conftest.${OBJEXT-o}
  7962. am__minus_obj=
  7963. ;;
  7964. none) break ;;
  7965. esac
  7966. if depmode=$depmode \
  7967. source=sub/conftest.c object=$am__obj \
  7968. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7969. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7970. >/dev/null 2>conftest.err &&
  7971. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7972. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7973. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7974. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7975. # icc doesn't choke on unknown options, it will just issue warnings
  7976. # or remarks (even with -Werror). So we grep stderr for any message
  7977. # that says an option was ignored or not supported.
  7978. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7979. # icc: Command line warning: ignoring option '-M'; no argument required
  7980. # The diagnosis changed in icc 8.0:
  7981. # icc: Command line remark: option '-MP' not supported
  7982. if (grep 'ignoring option' conftest.err ||
  7983. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7984. am_cv_$1_dependencies_compiler_type=$depmode
  7985. break
  7986. fi
  7987. fi
  7988. done
  7989. cd ..
  7990. rm -rf conftest.dir
  7991. else
  7992. am_cv_$1_dependencies_compiler_type=none
  7993. fi
  7994. ])
  7995. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  7996. AM_CONDITIONAL([am__fastdep$1], [
  7997. test "x$enable_dependency_tracking" != xno \
  7998. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  7999. ])
  8000. # AM_SET_DEPDIR
  8001. # -------------
  8002. # Choose a directory name for dependency files.
  8003. # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  8004. AC_DEFUN([AM_SET_DEPDIR],
  8005. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8006. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8007. ])
  8008. # AM_DEP_TRACK
  8009. # ------------
  8010. AC_DEFUN([AM_DEP_TRACK],
  8011. [AC_ARG_ENABLE([dependency-tracking], [dnl
  8012. AS_HELP_STRING(
  8013. [--enable-dependency-tracking],
  8014. [do not reject slow dependency extractors])
  8015. AS_HELP_STRING(
  8016. [--disable-dependency-tracking],
  8017. [speeds up one-time build])])
  8018. if test "x$enable_dependency_tracking" != xno; then
  8019. am_depcomp="$ac_aux_dir/depcomp"
  8020. AMDEPBACKSLASH='\'
  8021. am__nodep='_no'
  8022. fi
  8023. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8024. AC_SUBST([AMDEPBACKSLASH])dnl
  8025. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8026. AC_SUBST([am__nodep])dnl
  8027. _AM_SUBST_NOTMAKE([am__nodep])dnl
  8028. ])
  8029. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8030. # Copyright (C) 1999-2014 Free Software Foundation, Inc.
  8031. #
  8032. # This file is free software; the Free Software Foundation
  8033. # gives unlimited permission to copy and/or distribute it,
  8034. # with or without modifications, as long as this notice is preserved.
  8035. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8036. # ------------------------------
  8037. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8038. [{
  8039. # Older Autoconf quotes --file arguments for eval, but not when files
  8040. # are listed without --file. Let's play safe and only enable the eval
  8041. # if we detect the quoting.
  8042. case $CONFIG_FILES in
  8043. *\'*) eval set x "$CONFIG_FILES" ;;
  8044. *) set x $CONFIG_FILES ;;
  8045. esac
  8046. shift
  8047. for mf
  8048. do
  8049. # Strip MF so we end up with the name of the file.
  8050. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8051. # Check whether this is an Automake generated Makefile or not.
  8052. # We used to match only the files named 'Makefile.in', but
  8053. # some people rename them; so instead we look at the file content.
  8054. # Grep'ing the first line is not enough: some people post-process
  8055. # each Makefile.in and add a new line on top of each file to say so.
  8056. # Grep'ing the whole file is not good either: AIX grep has a line
  8057. # limit of 2048, but all sed's we know have understand at least 4000.
  8058. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8059. dirpart=`AS_DIRNAME("$mf")`
  8060. else
  8061. continue
  8062. fi
  8063. # Extract the definition of DEPDIR, am__include, and am__quote
  8064. # from the Makefile without running 'make'.
  8065. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8066. test -z "$DEPDIR" && continue
  8067. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8068. test -z "$am__include" && continue
  8069. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8070. # Find all dependency output files, they are included files with
  8071. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8072. # simplest approach to changing $(DEPDIR) to its actual value in the
  8073. # expansion.
  8074. for file in `sed -n "
  8075. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8076. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  8077. # Make sure the directory exists.
  8078. test -f "$dirpart/$file" && continue
  8079. fdir=`AS_DIRNAME(["$file"])`
  8080. AS_MKDIR_P([$dirpart/$fdir])
  8081. # echo "creating $dirpart/$file"
  8082. echo '# dummy' > "$dirpart/$file"
  8083. done
  8084. done
  8085. }
  8086. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8087. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8088. # -----------------------------
  8089. # This macro should only be invoked once -- use via AC_REQUIRE.
  8090. #
  8091. # This code is only required when automatic dependency tracking
  8092. # is enabled. FIXME. This creates each '.P' file that we will
  8093. # need in order to bootstrap the dependency handling code.
  8094. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8095. [AC_CONFIG_COMMANDS([depfiles],
  8096. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8097. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8098. ])
  8099. # Do all the work for Automake. -*- Autoconf -*-
  8100. # Copyright (C) 1996-2014 Free Software Foundation, Inc.
  8101. #
  8102. # This file is free software; the Free Software Foundation
  8103. # gives unlimited permission to copy and/or distribute it,
  8104. # with or without modifications, as long as this notice is preserved.
  8105. # This macro actually does too much. Some checks are only needed if
  8106. # your package does certain things. But this isn't really a big deal.
  8107. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  8108. m4_define([AC_PROG_CC],
  8109. m4_defn([AC_PROG_CC])
  8110. [_AM_PROG_CC_C_O
  8111. ])
  8112. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8113. # AM_INIT_AUTOMAKE([OPTIONS])
  8114. # -----------------------------------------------
  8115. # The call with PACKAGE and VERSION arguments is the old style
  8116. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8117. # and VERSION should now be passed to AC_INIT and removed from
  8118. # the call to AM_INIT_AUTOMAKE.
  8119. # We support both call styles for the transition. After
  8120. # the next Automake release, Autoconf can make the AC_INIT
  8121. # arguments mandatory, and then we can depend on a new Autoconf
  8122. # release and drop the old call support.
  8123. AC_DEFUN([AM_INIT_AUTOMAKE],
  8124. [AC_PREREQ([2.65])dnl
  8125. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8126. dnl the ones we care about.
  8127. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8128. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8129. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8130. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8131. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8132. # is not polluted with repeated "-I."
  8133. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8134. # test to see if srcdir already configured
  8135. if test -f $srcdir/config.status; then
  8136. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8137. fi
  8138. fi
  8139. # test whether we have cygpath
  8140. if test -z "$CYGPATH_W"; then
  8141. if (cygpath --version) >/dev/null 2>/dev/null; then
  8142. CYGPATH_W='cygpath -w'
  8143. else
  8144. CYGPATH_W=echo
  8145. fi
  8146. fi
  8147. AC_SUBST([CYGPATH_W])
  8148. # Define the identity of the package.
  8149. dnl Distinguish between old-style and new-style calls.
  8150. m4_ifval([$2],
  8151. [AC_DIAGNOSE([obsolete],
  8152. [$0: two- and three-arguments forms are deprecated.])
  8153. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8154. AC_SUBST([PACKAGE], [$1])dnl
  8155. AC_SUBST([VERSION], [$2])],
  8156. [_AM_SET_OPTIONS([$1])dnl
  8157. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8158. m4_if(
  8159. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  8160. [ok:ok],,
  8161. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8162. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8163. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8164. _AM_IF_OPTION([no-define],,
  8165. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  8166. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  8167. # Some tools Automake needs.
  8168. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8169. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8170. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  8171. AM_MISSING_PROG([AUTOCONF], [autoconf])
  8172. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  8173. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  8174. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  8175. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8176. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8177. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8178. # For better backward compatibility. To be removed once Automake 1.9.x
  8179. # dies out for good. For more background, see:
  8180. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  8181. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  8182. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  8183. # We need awk for the "check" target (and possibly the TAP driver). The
  8184. # system "awk" is bad on some platforms.
  8185. AC_REQUIRE([AC_PROG_AWK])dnl
  8186. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8187. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8188. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8189. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8190. [_AM_PROG_TAR([v7])])])
  8191. _AM_IF_OPTION([no-dependencies],,
  8192. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8193. [_AM_DEPENDENCIES([CC])],
  8194. [m4_define([AC_PROG_CC],
  8195. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  8196. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8197. [_AM_DEPENDENCIES([CXX])],
  8198. [m4_define([AC_PROG_CXX],
  8199. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  8200. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8201. [_AM_DEPENDENCIES([OBJC])],
  8202. [m4_define([AC_PROG_OBJC],
  8203. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  8204. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  8205. [_AM_DEPENDENCIES([OBJCXX])],
  8206. [m4_define([AC_PROG_OBJCXX],
  8207. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  8208. ])
  8209. AC_REQUIRE([AM_SILENT_RULES])dnl
  8210. dnl The testsuite driver may need to know about EXEEXT, so add the
  8211. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  8212. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8213. AC_CONFIG_COMMANDS_PRE(dnl
  8214. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8215. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8216. # POSIX will say in a future version that running "rm -f" with no argument
  8217. # is OK; and we want to be able to make that assumption in our Makefile
  8218. # recipes. So use an aggressive probe to check that the usage we want is
  8219. # actually supported "in the wild" to an acceptable degree.
  8220. # See automake bug#10828.
  8221. # To make any issue more visible, cause the running configure to be aborted
  8222. # by default if the 'rm' program in use doesn't match our expectations; the
  8223. # user can still override this though.
  8224. if rm -f && rm -fr && rm -rf; then : OK; else
  8225. cat >&2 <<'END'
  8226. Oops!
  8227. Your 'rm' program seems unable to run without file operands specified
  8228. on the command line, even when the '-f' option is present. This is contrary
  8229. to the behaviour of most rm programs out there, and not conforming with
  8230. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  8231. Please tell bug-automake@gnu.org about your system, including the value
  8232. of your $PATH and any error possibly output before this message. This
  8233. can help us improve future automake versions.
  8234. END
  8235. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  8236. echo 'Configuration will proceed anyway, since you have set the' >&2
  8237. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  8238. echo >&2
  8239. else
  8240. cat >&2 <<'END'
  8241. Aborting the configuration process, to ensure you take notice of the issue.
  8242. You can download and install GNU coreutils to get an 'rm' implementation
  8243. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  8244. If you want to complete the configuration process using your problematic
  8245. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  8246. to "yes", and re-run configure.
  8247. END
  8248. AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
  8249. fi
  8250. fi
  8251. dnl The trailing newline in this macro's definition is deliberate, for
  8252. dnl backward compatibility and to allow trailing 'dnl'-style comments
  8253. dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
  8254. ])
  8255. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8256. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8257. dnl mangled by Autoconf and run in a shell conditional statement.
  8258. m4_define([_AC_COMPILER_EXEEXT],
  8259. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8260. # When config.status generates a header, we must update the stamp-h file.
  8261. # This file resides in the same directory as the config header
  8262. # that is generated. The stamp files are numbered to have different names.
  8263. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8264. # loop where config.status creates the headers, so we can generate
  8265. # our stamp files there.
  8266. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8267. [# Compute $1's index in $config_headers.
  8268. _am_arg=$1
  8269. _am_stamp_count=1
  8270. for _am_header in $config_headers :; do
  8271. case $_am_header in
  8272. $_am_arg | $_am_arg:* )
  8273. break ;;
  8274. * )
  8275. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8276. esac
  8277. done
  8278. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8279. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  8280. #
  8281. # This file is free software; the Free Software Foundation
  8282. # gives unlimited permission to copy and/or distribute it,
  8283. # with or without modifications, as long as this notice is preserved.
  8284. # AM_PROG_INSTALL_SH
  8285. # ------------------
  8286. # Define $install_sh.
  8287. AC_DEFUN([AM_PROG_INSTALL_SH],
  8288. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8289. if test x"${install_sh+set}" != xset; then
  8290. case $am_aux_dir in
  8291. *\ * | *\ *)
  8292. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8293. *)
  8294. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8295. esac
  8296. fi
  8297. AC_SUBST([install_sh])])
  8298. # Copyright (C) 2003-2014 Free Software Foundation, Inc.
  8299. #
  8300. # This file is free software; the Free Software Foundation
  8301. # gives unlimited permission to copy and/or distribute it,
  8302. # with or without modifications, as long as this notice is preserved.
  8303. # Check whether the underlying file-system supports filenames
  8304. # with a leading dot. For instance MS-DOS doesn't.
  8305. AC_DEFUN([AM_SET_LEADING_DOT],
  8306. [rm -rf .tst 2>/dev/null
  8307. mkdir .tst 2>/dev/null
  8308. if test -d .tst; then
  8309. am__leading_dot=.
  8310. else
  8311. am__leading_dot=_
  8312. fi
  8313. rmdir .tst 2>/dev/null
  8314. AC_SUBST([am__leading_dot])])
  8315. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8316. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  8317. #
  8318. # This file is free software; the Free Software Foundation
  8319. # gives unlimited permission to copy and/or distribute it,
  8320. # with or without modifications, as long as this notice is preserved.
  8321. # AM_MAKE_INCLUDE()
  8322. # -----------------
  8323. # Check to see how make treats includes.
  8324. AC_DEFUN([AM_MAKE_INCLUDE],
  8325. [am_make=${MAKE-make}
  8326. cat > confinc << 'END'
  8327. am__doit:
  8328. @echo this is the am__doit target
  8329. .PHONY: am__doit
  8330. END
  8331. # If we don't find an include directive, just comment out the code.
  8332. AC_MSG_CHECKING([for style of include used by $am_make])
  8333. am__include="#"
  8334. am__quote=
  8335. _am_result=none
  8336. # First try GNU make style include.
  8337. echo "include confinc" > confmf
  8338. # Ignore all kinds of additional output from 'make'.
  8339. case `$am_make -s -f confmf 2> /dev/null` in #(
  8340. *the\ am__doit\ target*)
  8341. am__include=include
  8342. am__quote=
  8343. _am_result=GNU
  8344. ;;
  8345. esac
  8346. # Now try BSD make style include.
  8347. if test "$am__include" = "#"; then
  8348. echo '.include "confinc"' > confmf
  8349. case `$am_make -s -f confmf 2> /dev/null` in #(
  8350. *the\ am__doit\ target*)
  8351. am__include=.include
  8352. am__quote="\""
  8353. _am_result=BSD
  8354. ;;
  8355. esac
  8356. fi
  8357. AC_SUBST([am__include])
  8358. AC_SUBST([am__quote])
  8359. AC_MSG_RESULT([$_am_result])
  8360. rm -f confinc confmf
  8361. ])
  8362. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8363. # Copyright (C) 1997-2014 Free Software Foundation, Inc.
  8364. #
  8365. # This file is free software; the Free Software Foundation
  8366. # gives unlimited permission to copy and/or distribute it,
  8367. # with or without modifications, as long as this notice is preserved.
  8368. # AM_MISSING_PROG(NAME, PROGRAM)
  8369. # ------------------------------
  8370. AC_DEFUN([AM_MISSING_PROG],
  8371. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8372. $1=${$1-"${am_missing_run}$2"}
  8373. AC_SUBST($1)])
  8374. # AM_MISSING_HAS_RUN
  8375. # ------------------
  8376. # Define MISSING if not defined so far and test if it is modern enough.
  8377. # If it is, set am_missing_run to use it, otherwise, to nothing.
  8378. AC_DEFUN([AM_MISSING_HAS_RUN],
  8379. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8380. AC_REQUIRE_AUX_FILE([missing])dnl
  8381. if test x"${MISSING+set}" != xset; then
  8382. case $am_aux_dir in
  8383. *\ * | *\ *)
  8384. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8385. *)
  8386. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8387. esac
  8388. fi
  8389. # Use eval to expand $SHELL
  8390. if eval "$MISSING --is-lightweight"; then
  8391. am_missing_run="$MISSING "
  8392. else
  8393. am_missing_run=
  8394. AC_MSG_WARN(['missing' script is too old or missing])
  8395. fi
  8396. ])
  8397. # Helper functions for option handling. -*- Autoconf -*-
  8398. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  8399. #
  8400. # This file is free software; the Free Software Foundation
  8401. # gives unlimited permission to copy and/or distribute it,
  8402. # with or without modifications, as long as this notice is preserved.
  8403. # _AM_MANGLE_OPTION(NAME)
  8404. # -----------------------
  8405. AC_DEFUN([_AM_MANGLE_OPTION],
  8406. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8407. # _AM_SET_OPTION(NAME)
  8408. # --------------------
  8409. # Set option NAME. Presently that only means defining a flag for this option.
  8410. AC_DEFUN([_AM_SET_OPTION],
  8411. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  8412. # _AM_SET_OPTIONS(OPTIONS)
  8413. # ------------------------
  8414. # OPTIONS is a space-separated list of Automake options.
  8415. AC_DEFUN([_AM_SET_OPTIONS],
  8416. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8417. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8418. # -------------------------------------------
  8419. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8420. AC_DEFUN([_AM_IF_OPTION],
  8421. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8422. # Copyright (C) 1999-2014 Free Software Foundation, Inc.
  8423. #
  8424. # This file is free software; the Free Software Foundation
  8425. # gives unlimited permission to copy and/or distribute it,
  8426. # with or without modifications, as long as this notice is preserved.
  8427. # _AM_PROG_CC_C_O
  8428. # ---------------
  8429. # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
  8430. # to automatically call this.
  8431. AC_DEFUN([_AM_PROG_CC_C_O],
  8432. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8433. AC_REQUIRE_AUX_FILE([compile])dnl
  8434. AC_LANG_PUSH([C])dnl
  8435. AC_CACHE_CHECK(
  8436. [whether $CC understands -c and -o together],
  8437. [am_cv_prog_cc_c_o],
  8438. [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
  8439. # Make sure it works both with $CC and with simple cc.
  8440. # Following AC_PROG_CC_C_O, we do the test twice because some
  8441. # compilers refuse to overwrite an existing .o file with -o,
  8442. # though they will create one.
  8443. am_cv_prog_cc_c_o=yes
  8444. for am_i in 1 2; do
  8445. if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
  8446. && test -f conftest2.$ac_objext; then
  8447. : OK
  8448. else
  8449. am_cv_prog_cc_c_o=no
  8450. break
  8451. fi
  8452. done
  8453. rm -f core conftest*
  8454. unset am_i])
  8455. if test "$am_cv_prog_cc_c_o" != yes; then
  8456. # Losing compiler, so override with the script.
  8457. # FIXME: It is wrong to rewrite CC.
  8458. # But if we don't then we get into trouble of one sort or another.
  8459. # A longer-term fix would be to have automake use am__CC in this case,
  8460. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  8461. CC="$am_aux_dir/compile $CC"
  8462. fi
  8463. AC_LANG_POP([C])])
  8464. # For backward compatibility.
  8465. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
  8466. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  8467. #
  8468. # This file is free software; the Free Software Foundation
  8469. # gives unlimited permission to copy and/or distribute it,
  8470. # with or without modifications, as long as this notice is preserved.
  8471. # AM_RUN_LOG(COMMAND)
  8472. # -------------------
  8473. # Run COMMAND, save the exit status in ac_status, and log it.
  8474. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  8475. AC_DEFUN([AM_RUN_LOG],
  8476. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  8477. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  8478. ac_status=$?
  8479. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  8480. (exit $ac_status); }])
  8481. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8482. # Copyright (C) 1996-2014 Free Software Foundation, Inc.
  8483. #
  8484. # This file is free software; the Free Software Foundation
  8485. # gives unlimited permission to copy and/or distribute it,
  8486. # with or without modifications, as long as this notice is preserved.
  8487. # AM_SANITY_CHECK
  8488. # ---------------
  8489. AC_DEFUN([AM_SANITY_CHECK],
  8490. [AC_MSG_CHECKING([whether build environment is sane])
  8491. # Reject unsafe characters in $srcdir or the absolute working directory
  8492. # name. Accept space and tab only in the latter.
  8493. am_lf='
  8494. '
  8495. case `pwd` in
  8496. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8497. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8498. esac
  8499. case $srcdir in
  8500. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8501. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  8502. esac
  8503. # Do 'set' in a subshell so we don't clobber the current shell's
  8504. # arguments. Must try -L first in case configure is actually a
  8505. # symlink; some systems play weird games with the mod time of symlinks
  8506. # (eg FreeBSD returns the mod time of the symlink's containing
  8507. # directory).
  8508. if (
  8509. am_has_slept=no
  8510. for am_try in 1 2; do
  8511. echo "timestamp, slept: $am_has_slept" > conftest.file
  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. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8518. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8519. # If neither matched, then we have a broken ls. This can happen
  8520. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8521. # broken ls alias from the environment. This has actually
  8522. # happened. Such a system could not be considered "sane".
  8523. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8524. alias in your environment])
  8525. fi
  8526. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  8527. break
  8528. fi
  8529. # Just in case.
  8530. sleep 1
  8531. am_has_slept=yes
  8532. done
  8533. test "$[2]" = conftest.file
  8534. )
  8535. then
  8536. # Ok.
  8537. :
  8538. else
  8539. AC_MSG_ERROR([newly created file is older than distributed files!
  8540. Check your system clock])
  8541. fi
  8542. AC_MSG_RESULT([yes])
  8543. # If we didn't sleep, we still need to ensure time stamps of config.status and
  8544. # generated files are strictly newer.
  8545. am_sleep_pid=
  8546. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  8547. ( sleep 1 ) &
  8548. am_sleep_pid=$!
  8549. fi
  8550. AC_CONFIG_COMMANDS_PRE(
  8551. [AC_MSG_CHECKING([that generated files are newer than configure])
  8552. if test -n "$am_sleep_pid"; then
  8553. # Hide warnings about reused PIDs.
  8554. wait $am_sleep_pid 2>/dev/null
  8555. fi
  8556. AC_MSG_RESULT([done])])
  8557. rm -f conftest.file
  8558. ])
  8559. # Copyright (C) 2009-2014 Free Software Foundation, Inc.
  8560. #
  8561. # This file is free software; the Free Software Foundation
  8562. # gives unlimited permission to copy and/or distribute it,
  8563. # with or without modifications, as long as this notice is preserved.
  8564. # AM_SILENT_RULES([DEFAULT])
  8565. # --------------------------
  8566. # Enable less verbose build rules; with the default set to DEFAULT
  8567. # ("yes" being less verbose, "no" or empty being verbose).
  8568. AC_DEFUN([AM_SILENT_RULES],
  8569. [AC_ARG_ENABLE([silent-rules], [dnl
  8570. AS_HELP_STRING(
  8571. [--enable-silent-rules],
  8572. [less verbose build output (undo: "make V=1")])
  8573. AS_HELP_STRING(
  8574. [--disable-silent-rules],
  8575. [verbose build output (undo: "make V=0")])dnl
  8576. ])
  8577. case $enable_silent_rules in @%:@ (((
  8578. yes) AM_DEFAULT_VERBOSITY=0;;
  8579. no) AM_DEFAULT_VERBOSITY=1;;
  8580. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  8581. esac
  8582. dnl
  8583. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  8584. dnl do not support nested variable expansions.
  8585. dnl See automake bug#9928 and bug#10237.
  8586. am_make=${MAKE-make}
  8587. AC_CACHE_CHECK([whether $am_make supports nested variables],
  8588. [am_cv_make_support_nested_variables],
  8589. [if AS_ECHO([['TRUE=$(BAR$(V))
  8590. BAR0=false
  8591. BAR1=true
  8592. V=1
  8593. am__doit:
  8594. @$(TRUE)
  8595. .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  8596. am_cv_make_support_nested_variables=yes
  8597. else
  8598. am_cv_make_support_nested_variables=no
  8599. fi])
  8600. if test $am_cv_make_support_nested_variables = yes; then
  8601. dnl Using '$V' instead of '$(V)' breaks IRIX make.
  8602. AM_V='$(V)'
  8603. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8604. else
  8605. AM_V=$AM_DEFAULT_VERBOSITY
  8606. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8607. fi
  8608. AC_SUBST([AM_V])dnl
  8609. AM_SUBST_NOTMAKE([AM_V])dnl
  8610. AC_SUBST([AM_DEFAULT_V])dnl
  8611. AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  8612. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  8613. AM_BACKSLASH='\'
  8614. AC_SUBST([AM_BACKSLASH])dnl
  8615. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  8616. ])
  8617. # Copyright (C) 2001-2014 Free Software Foundation, Inc.
  8618. #
  8619. # This file is free software; the Free Software Foundation
  8620. # gives unlimited permission to copy and/or distribute it,
  8621. # with or without modifications, as long as this notice is preserved.
  8622. # AM_PROG_INSTALL_STRIP
  8623. # ---------------------
  8624. # One issue with vendor 'install' (even GNU) is that you can't
  8625. # specify the program used to strip binaries. This is especially
  8626. # annoying in cross-compiling environments, where the build's strip
  8627. # is unlikely to handle the host's binaries.
  8628. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8629. # always use install-sh in "make install-strip", and initialize
  8630. # STRIPPROG with the value of the STRIP variable (set by the user).
  8631. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8632. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8633. # Installed binaries are usually stripped using 'strip' when the user
  8634. # run "make install-strip". However 'strip' might not be the right
  8635. # tool to use in cross-compilation environments, therefore Automake
  8636. # will honor the 'STRIP' environment variable to overrule this program.
  8637. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  8638. if test "$cross_compiling" != no; then
  8639. AC_CHECK_TOOL([STRIP], [strip], :)
  8640. fi
  8641. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8642. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8643. # Copyright (C) 2006-2014 Free Software Foundation, Inc.
  8644. #
  8645. # This file is free software; the Free Software Foundation
  8646. # gives unlimited permission to copy and/or distribute it,
  8647. # with or without modifications, as long as this notice is preserved.
  8648. # _AM_SUBST_NOTMAKE(VARIABLE)
  8649. # ---------------------------
  8650. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8651. # This macro is traced by Automake.
  8652. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8653. # AM_SUBST_NOTMAKE(VARIABLE)
  8654. # --------------------------
  8655. # Public sister of _AM_SUBST_NOTMAKE.
  8656. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8657. # Check how to create a tarball. -*- Autoconf -*-
  8658. # Copyright (C) 2004-2014 Free Software Foundation, Inc.
  8659. #
  8660. # This file is free software; the Free Software Foundation
  8661. # gives unlimited permission to copy and/or distribute it,
  8662. # with or without modifications, as long as this notice is preserved.
  8663. # _AM_PROG_TAR(FORMAT)
  8664. # --------------------
  8665. # Check how to create a tarball in format FORMAT.
  8666. # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  8667. #
  8668. # Substitute a variable $(am__tar) that is a command
  8669. # writing to stdout a FORMAT-tarball containing the directory
  8670. # $tardir.
  8671. # tardir=directory && $(am__tar) > result.tar
  8672. #
  8673. # Substitute a variable $(am__untar) that extract such
  8674. # a tarball read from stdin.
  8675. # $(am__untar) < result.tar
  8676. #
  8677. AC_DEFUN([_AM_PROG_TAR],
  8678. [# Always define AMTAR for backward compatibility. Yes, it's still used
  8679. # in the wild :-( We should find a proper way to deprecate it ...
  8680. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  8681. # We'll loop over all known methods to create a tar archive until one works.
  8682. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8683. m4_if([$1], [v7],
  8684. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  8685. [m4_case([$1],
  8686. [ustar],
  8687. [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  8688. # There is notably a 21 bits limit for the UID and the GID. In fact,
  8689. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  8690. # and bug#13588).
  8691. am_max_uid=2097151 # 2^21 - 1
  8692. am_max_gid=$am_max_uid
  8693. # The $UID and $GID variables are not portable, so we need to resort
  8694. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  8695. # below are definitely unexpected, so allow the users to see them
  8696. # (that is, avoid stderr redirection).
  8697. am_uid=`id -u || echo unknown`
  8698. am_gid=`id -g || echo unknown`
  8699. AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  8700. if test $am_uid -le $am_max_uid; then
  8701. AC_MSG_RESULT([yes])
  8702. else
  8703. AC_MSG_RESULT([no])
  8704. _am_tools=none
  8705. fi
  8706. AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  8707. if test $am_gid -le $am_max_gid; then
  8708. AC_MSG_RESULT([yes])
  8709. else
  8710. AC_MSG_RESULT([no])
  8711. _am_tools=none
  8712. fi],
  8713. [pax],
  8714. [],
  8715. [m4_fatal([Unknown tar format])])
  8716. AC_MSG_CHECKING([how to create a $1 tar archive])
  8717. # Go ahead even if we have the value already cached. We do so because we
  8718. # need to set the values for the 'am__tar' and 'am__untar' variables.
  8719. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8720. for _am_tool in $_am_tools; do
  8721. case $_am_tool in
  8722. gnutar)
  8723. for _am_tar in tar gnutar gtar; do
  8724. AM_RUN_LOG([$_am_tar --version]) && break
  8725. done
  8726. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8727. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8728. am__untar="$_am_tar -xf -"
  8729. ;;
  8730. plaintar)
  8731. # Must skip GNU tar: if it does not support --format= it doesn't create
  8732. # ustar tarball either.
  8733. (tar --version) >/dev/null 2>&1 && continue
  8734. am__tar='tar chf - "$$tardir"'
  8735. am__tar_='tar chf - "$tardir"'
  8736. am__untar='tar xf -'
  8737. ;;
  8738. pax)
  8739. am__tar='pax -L -x $1 -w "$$tardir"'
  8740. am__tar_='pax -L -x $1 -w "$tardir"'
  8741. am__untar='pax -r'
  8742. ;;
  8743. cpio)
  8744. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8745. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8746. am__untar='cpio -i -H $1 -d'
  8747. ;;
  8748. none)
  8749. am__tar=false
  8750. am__tar_=false
  8751. am__untar=false
  8752. ;;
  8753. esac
  8754. # If the value was cached, stop now. We just wanted to have am__tar
  8755. # and am__untar set.
  8756. test -n "${am_cv_prog_tar_$1}" && break
  8757. # tar/untar a dummy directory, and stop if the command works.
  8758. rm -rf conftest.dir
  8759. mkdir conftest.dir
  8760. echo GrepMe > conftest.dir/file
  8761. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8762. rm -rf conftest.dir
  8763. if test -s conftest.tar; then
  8764. AM_RUN_LOG([$am__untar <conftest.tar])
  8765. AM_RUN_LOG([cat conftest.dir/file])
  8766. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8767. fi
  8768. done
  8769. rm -rf conftest.dir
  8770. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8771. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8772. AC_SUBST([am__tar])
  8773. AC_SUBST([am__untar])
  8774. ]) # _AM_PROG_TAR