aclocal.m4 369 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526
  1. # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
  2. # Copyright (C) 1996-2013 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. # ===========================================================================
  19. # http://www.gnu.org/software/autoconf-archive/ax_prog_doxygen.html
  20. # ===========================================================================
  21. #
  22. # SYNOPSIS
  23. #
  24. # DX_INIT_DOXYGEN(PROJECT-NAME, DOXYFILE-PATH, [OUTPUT-DIR])
  25. # DX_DOXYGEN_FEATURE(ON|OFF)
  26. # DX_DOT_FEATURE(ON|OFF)
  27. # DX_HTML_FEATURE(ON|OFF)
  28. # DX_CHM_FEATURE(ON|OFF)
  29. # DX_CHI_FEATURE(ON|OFF)
  30. # DX_MAN_FEATURE(ON|OFF)
  31. # DX_RTF_FEATURE(ON|OFF)
  32. # DX_XML_FEATURE(ON|OFF)
  33. # DX_PDF_FEATURE(ON|OFF)
  34. # DX_PS_FEATURE(ON|OFF)
  35. #
  36. # DESCRIPTION
  37. #
  38. # The DX_*_FEATURE macros control the default setting for the given
  39. # Doxygen feature. Supported features are 'DOXYGEN' itself, 'DOT' for
  40. # generating graphics, 'HTML' for plain HTML, 'CHM' for compressed HTML
  41. # help (for MS users), 'CHI' for generating a seperate .chi file by the
  42. # .chm file, and 'MAN', 'RTF', 'XML', 'PDF' and 'PS' for the appropriate
  43. # output formats. The environment variable DOXYGEN_PAPER_SIZE may be
  44. # specified to override the default 'a4wide' paper size.
  45. #
  46. # By default, HTML, PDF and PS documentation is generated as this seems to
  47. # be the most popular and portable combination. MAN pages created by
  48. # Doxygen are usually problematic, though by picking an appropriate subset
  49. # and doing some massaging they might be better than nothing. CHM and RTF
  50. # are specific for MS (note that you can't generate both HTML and CHM at
  51. # the same time). The XML is rather useless unless you apply specialized
  52. # post-processing to it.
  53. #
  54. # The macros mainly control the default state of the feature. The use can
  55. # override the default by specifying --enable or --disable. The macros
  56. # ensure that contradictory flags are not given (e.g.,
  57. # --enable-doxygen-html and --enable-doxygen-chm,
  58. # --enable-doxygen-anything with --disable-doxygen, etc.) Finally, each
  59. # feature will be automatically disabled (with a warning) if the required
  60. # programs are missing.
  61. #
  62. # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN
  63. # with the following parameters: a one-word name for the project for use
  64. # as a filename base etc., an optional configuration file name (the
  65. # default is 'Doxyfile', the same as Doxygen's default), and an optional
  66. # output directory name (the default is 'doxygen-doc').
  67. #
  68. # Automake Support
  69. #
  70. # The following is a template aminclude.am file for use with Automake.
  71. # Make targets and variables values are controlled by the various
  72. # DX_COND_* conditionals set by autoconf.
  73. #
  74. # The provided targets are:
  75. #
  76. # doxygen-doc: Generate all doxygen documentation.
  77. #
  78. # doxygen-run: Run doxygen, which will generate some of the
  79. # documentation (HTML, CHM, CHI, MAN, RTF, XML)
  80. # but will not do the post processing required
  81. # for the rest of it (PS, PDF, and some MAN).
  82. #
  83. # doxygen-man: Rename some doxygen generated man pages.
  84. #
  85. # doxygen-ps: Generate doxygen PostScript documentation.
  86. #
  87. # doxygen-pdf: Generate doxygen PDF documentation.
  88. #
  89. # Note that by default these are not integrated into the automake targets.
  90. # If doxygen is used to generate man pages, you can achieve this
  91. # integration by setting man3_MANS to the list of man pages generated and
  92. # then adding the dependency:
  93. #
  94. # $(man3_MANS): doxygen-doc
  95. #
  96. # This will cause make to run doxygen and generate all the documentation.
  97. #
  98. # The following variable is intended for use in Makefile.am:
  99. #
  100. # DX_CLEANFILES = everything to clean.
  101. #
  102. # Then add this variable to MOSTLYCLEANFILES.
  103. #
  104. # ----- begin aminclude.am -------------------------------------
  105. #
  106. # ## --------------------------------- ##
  107. # ## Format-independent Doxygen rules. ##
  108. # ## --------------------------------- ##
  109. #
  110. # if DX_COND_doc
  111. #
  112. # ## ------------------------------- ##
  113. # ## Rules specific for HTML output. ##
  114. # ## ------------------------------- ##
  115. #
  116. # if DX_COND_html
  117. #
  118. # DX_CLEAN_HTML = @DX_DOCDIR@/html
  119. #
  120. # endif DX_COND_html
  121. #
  122. # ## ------------------------------ ##
  123. # ## Rules specific for CHM output. ##
  124. # ## ------------------------------ ##
  125. #
  126. # if DX_COND_chm
  127. #
  128. # DX_CLEAN_CHM = @DX_DOCDIR@/chm
  129. #
  130. # if DX_COND_chi
  131. #
  132. # DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
  133. #
  134. # endif DX_COND_chi
  135. #
  136. # endif DX_COND_chm
  137. #
  138. # ## ------------------------------ ##
  139. # ## Rules specific for MAN output. ##
  140. # ## ------------------------------ ##
  141. #
  142. # if DX_COND_man
  143. #
  144. # DX_CLEAN_MAN = @DX_DOCDIR@/man
  145. #
  146. # endif DX_COND_man
  147. #
  148. # ## ------------------------------ ##
  149. # ## Rules specific for RTF output. ##
  150. # ## ------------------------------ ##
  151. #
  152. # if DX_COND_rtf
  153. #
  154. # DX_CLEAN_RTF = @DX_DOCDIR@/rtf
  155. #
  156. # endif DX_COND_rtf
  157. #
  158. # ## ------------------------------ ##
  159. # ## Rules specific for XML output. ##
  160. # ## ------------------------------ ##
  161. #
  162. # if DX_COND_xml
  163. #
  164. # DX_CLEAN_XML = @DX_DOCDIR@/xml
  165. #
  166. # endif DX_COND_xml
  167. #
  168. # ## ----------------------------- ##
  169. # ## Rules specific for PS output. ##
  170. # ## ----------------------------- ##
  171. #
  172. # if DX_COND_ps
  173. #
  174. # DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
  175. #
  176. # DX_PS_GOAL = doxygen-ps
  177. #
  178. # doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
  179. #
  180. # @DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
  181. # cd @DX_DOCDIR@/latex; \
  182. # rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
  183. # $(DX_LATEX) refman.tex; \
  184. # $(MAKEINDEX_PATH) refman.idx; \
  185. # $(DX_LATEX) refman.tex; \
  186. # countdown=5; \
  187. # while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
  188. # refman.log > /dev/null 2>&1 \
  189. # && test $$countdown -gt 0; do \
  190. # $(DX_LATEX) refman.tex; \
  191. # countdown=`expr $$countdown - 1`; \
  192. # done; \
  193. # $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
  194. #
  195. # endif DX_COND_ps
  196. #
  197. # ## ------------------------------ ##
  198. # ## Rules specific for PDF output. ##
  199. # ## ------------------------------ ##
  200. #
  201. # if DX_COND_pdf
  202. #
  203. # DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
  204. #
  205. # DX_PDF_GOAL = doxygen-pdf
  206. #
  207. # doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
  208. #
  209. # @DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
  210. # cd @DX_DOCDIR@/latex; \
  211. # rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
  212. # $(DX_PDFLATEX) refman.tex; \
  213. # $(DX_MAKEINDEX) refman.idx; \
  214. # $(DX_PDFLATEX) refman.tex; \
  215. # countdown=5; \
  216. # while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
  217. # refman.log > /dev/null 2>&1 \
  218. # && test $$countdown -gt 0; do \
  219. # $(DX_PDFLATEX) refman.tex; \
  220. # countdown=`expr $$countdown - 1`; \
  221. # done; \
  222. # mv refman.pdf ../@PACKAGE@.pdf
  223. #
  224. # endif DX_COND_pdf
  225. #
  226. # ## ------------------------------------------------- ##
  227. # ## Rules specific for LaTeX (shared for PS and PDF). ##
  228. # ## ------------------------------------------------- ##
  229. #
  230. # if DX_COND_latex
  231. #
  232. # DX_CLEAN_LATEX = @DX_DOCDIR@/latex
  233. #
  234. # endif DX_COND_latex
  235. #
  236. # .PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
  237. #
  238. # .INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
  239. #
  240. # doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
  241. #
  242. # doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
  243. #
  244. # @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
  245. # rm -rf @DX_DOCDIR@
  246. # $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
  247. #
  248. # DX_CLEANFILES = \
  249. # @DX_DOCDIR@/@PACKAGE@.tag \
  250. # -r \
  251. # $(DX_CLEAN_HTML) \
  252. # $(DX_CLEAN_CHM) \
  253. # $(DX_CLEAN_CHI) \
  254. # $(DX_CLEAN_MAN) \
  255. # $(DX_CLEAN_RTF) \
  256. # $(DX_CLEAN_XML) \
  257. # $(DX_CLEAN_PS) \
  258. # $(DX_CLEAN_PDF) \
  259. # $(DX_CLEAN_LATEX)
  260. #
  261. # endif DX_COND_doc
  262. #
  263. # ----- end aminclude.am ---------------------------------------
  264. #
  265. # LICENSE
  266. #
  267. # Copyright (c) 2009 Oren Ben-Kiki <oren@ben-kiki.org>
  268. #
  269. # Copying and distribution of this file, with or without modification, are
  270. # permitted in any medium without royalty provided the copyright notice
  271. # and this notice are preserved. This file is offered as-is, without any
  272. # warranty.
  273. #serial 12
  274. DX_ENV=""
  275. AC_DEFUN([DX_FEATURE_doc], ON)
  276. AC_DEFUN([DX_FEATURE_dot], OFF)
  277. AC_DEFUN([DX_FEATURE_man], OFF)
  278. AC_DEFUN([DX_FEATURE_html], ON)
  279. AC_DEFUN([DX_FEATURE_chm], OFF)
  280. AC_DEFUN([DX_FEATURE_chi], OFF)
  281. AC_DEFUN([DX_FEATURE_rtf], OFF)
  282. AC_DEFUN([DX_FEATURE_xml], OFF)
  283. AC_DEFUN([DX_FEATURE_pdf], ON)
  284. AC_DEFUN([DX_FEATURE_ps], ON)
  285. # DX_ENV_APPEND(VARIABLE, VALUE)
  286. # ------------------------------
  287. # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
  288. AC_DEFUN([DX_ENV_APPEND], [AC_SUBST([DX_ENV], ["$DX_ENV $1='$2'"])])
  289. # DX_DIRNAME_EXPR
  290. # ---------------
  291. # Expand into a shell expression prints the directory part of a path.
  292. AC_DEFUN([DX_DIRNAME_EXPR],
  293. [[expr ".$1" : '\(\.\)[^/]*$' \| "x$1" : 'x\(.*\)/[^/]*$']])
  294. # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
  295. # -------------------------------------
  296. # Expands according to the M4 (static) status of the feature.
  297. AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEATURE_$1, ON, [$2], [$3])])
  298. # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
  299. # ----------------------------------
  300. # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
  301. AC_DEFUN([DX_REQUIRE_PROG], [
  302. AC_PATH_TOOL([$1], [$2])
  303. if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then
  304. AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION])
  305. AC_SUBST(DX_FLAG_[]DX_CURRENT_FEATURE, 0)
  306. fi
  307. ])
  308. # DX_TEST_FEATURE(FEATURE)
  309. # ------------------------
  310. # Expand to a shell expression testing whether the feature is active.
  311. AC_DEFUN([DX_TEST_FEATURE], [test "$DX_FLAG_$1" = 1])
  312. # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
  313. # -------------------------------------------------
  314. # Verify that a required features has the right state before trying to turn on
  315. # the DX_CURRENT_FEATURE.
  316. AC_DEFUN([DX_CHECK_DEPEND], [
  317. test "$DX_FLAG_$1" = "$2" \
  318. || AC_MSG_ERROR([doxygen-DX_CURRENT_FEATURE ifelse([$2], 1,
  319. requires, contradicts) doxygen-DX_CURRENT_FEATURE])
  320. ])
  321. # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
  322. # ----------------------------------------------------------
  323. # Turn off the DX_CURRENT_FEATURE if the required feature is off.
  324. AC_DEFUN([DX_CLEAR_DEPEND], [
  325. test "$DX_FLAG_$1" = "$2" || AC_SUBST(DX_FLAG_[]DX_CURRENT_FEATURE, 0)
  326. ])
  327. # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
  328. # CHECK_DEPEND, CLEAR_DEPEND,
  329. # REQUIRE, DO-IF-ON, DO-IF-OFF)
  330. # --------------------------------------------
  331. # Parse the command-line option controlling a feature. CHECK_DEPEND is called
  332. # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
  333. # otherwise CLEAR_DEPEND is called to turn off the default state if a required
  334. # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
  335. # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
  336. # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
  337. AC_DEFUN([DX_ARG_ABLE], [
  338. AC_DEFUN([DX_CURRENT_FEATURE], [$1])
  339. AC_DEFUN([DX_CURRENT_DESCRIPTION], [$2])
  340. AC_ARG_ENABLE(doxygen-$1,
  341. [AS_HELP_STRING(DX_IF_FEATURE([$1], [--disable-doxygen-$1],
  342. [--enable-doxygen-$1]),
  343. DX_IF_FEATURE([$1], [don't $2], [$2]))],
  344. [
  345. case "$enableval" in
  346. #(
  347. y|Y|yes|Yes|YES)
  348. AC_SUBST([DX_FLAG_$1], 1)
  349. $3
  350. ;; #(
  351. n|N|no|No|NO)
  352. AC_SUBST([DX_FLAG_$1], 0)
  353. ;; #(
  354. *)
  355. AC_MSG_ERROR([invalid value '$enableval' given to doxygen-$1])
  356. ;;
  357. esac
  358. ], [
  359. AC_SUBST([DX_FLAG_$1], [DX_IF_FEATURE([$1], 1, 0)])
  360. $4
  361. ])
  362. if DX_TEST_FEATURE([$1]); then
  363. $5
  364. :
  365. fi
  366. AM_CONDITIONAL(DX_COND_$1, DX_TEST_FEATURE([$1]))
  367. if DX_TEST_FEATURE([$1]); then
  368. $6
  369. :
  370. else
  371. $7
  372. :
  373. fi
  374. ])
  375. # DX_XXX_FEATURE(DEFAULT_STATE)
  376. # -----------------------------
  377. AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc], [$1])])
  378. AC_DEFUN([DX_DOT_FEATURE], [AC_DEFUN([DX_FEATURE_dot], [$1])])
  379. AC_DEFUN([DX_MAN_FEATURE], [AC_DEFUN([DX_FEATURE_man], [$1])])
  380. AC_DEFUN([DX_HTML_FEATURE], [AC_DEFUN([DX_FEATURE_html], [$1])])
  381. AC_DEFUN([DX_CHM_FEATURE], [AC_DEFUN([DX_FEATURE_chm], [$1])])
  382. AC_DEFUN([DX_CHI_FEATURE], [AC_DEFUN([DX_FEATURE_chi], [$1])])
  383. AC_DEFUN([DX_RTF_FEATURE], [AC_DEFUN([DX_FEATURE_rtf], [$1])])
  384. AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
  385. AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
  386. AC_DEFUN([DX_PDF_FEATURE], [AC_DEFUN([DX_FEATURE_pdf], [$1])])
  387. AC_DEFUN([DX_PS_FEATURE], [AC_DEFUN([DX_FEATURE_ps], [$1])])
  388. # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
  389. # ---------------------------------------------------------
  390. # PROJECT also serves as the base name for the documentation files.
  391. # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
  392. AC_DEFUN([DX_INIT_DOXYGEN], [
  393. # Files:
  394. AC_SUBST([DX_PROJECT], [$1])
  395. AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])])
  396. AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])])
  397. # Environment variables used inside doxygen.cfg:
  398. DX_ENV_APPEND(SRCDIR, $srcdir)
  399. DX_ENV_APPEND(PROJECT, $DX_PROJECT)
  400. DX_ENV_APPEND(DOCDIR, $DX_DOCDIR)
  401. DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
  402. # Doxygen itself:
  403. DX_ARG_ABLE(doc, [generate any doxygen documentation],
  404. [],
  405. [],
  406. [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen)
  407. DX_REQUIRE_PROG([DX_PERL], perl)],
  408. [DX_ENV_APPEND(PERL_PATH, $DX_PERL)])
  409. # Dot for graphics:
  410. DX_ARG_ABLE(dot, [generate graphics for doxygen documentation],
  411. [DX_CHECK_DEPEND(doc, 1)],
  412. [DX_CLEAR_DEPEND(doc, 1)],
  413. [DX_REQUIRE_PROG([DX_DOT], dot)],
  414. [DX_ENV_APPEND(HAVE_DOT, YES)
  415. DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])],
  416. [DX_ENV_APPEND(HAVE_DOT, NO)])
  417. # Man pages generation:
  418. DX_ARG_ABLE(man, [generate doxygen manual pages],
  419. [DX_CHECK_DEPEND(doc, 1)],
  420. [DX_CLEAR_DEPEND(doc, 1)],
  421. [],
  422. [DX_ENV_APPEND(GENERATE_MAN, YES)],
  423. [DX_ENV_APPEND(GENERATE_MAN, NO)])
  424. # RTF file generation:
  425. DX_ARG_ABLE(rtf, [generate doxygen RTF documentation],
  426. [DX_CHECK_DEPEND(doc, 1)],
  427. [DX_CLEAR_DEPEND(doc, 1)],
  428. [],
  429. [DX_ENV_APPEND(GENERATE_RTF, YES)],
  430. [DX_ENV_APPEND(GENERATE_RTF, NO)])
  431. # XML file generation:
  432. DX_ARG_ABLE(xml, [generate doxygen XML documentation],
  433. [DX_CHECK_DEPEND(doc, 1)],
  434. [DX_CLEAR_DEPEND(doc, 1)],
  435. [],
  436. [DX_ENV_APPEND(GENERATE_XML, YES)],
  437. [DX_ENV_APPEND(GENERATE_XML, NO)])
  438. # (Compressed) HTML help generation:
  439. DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation],
  440. [DX_CHECK_DEPEND(doc, 1)],
  441. [DX_CLEAR_DEPEND(doc, 1)],
  442. [DX_REQUIRE_PROG([DX_HHC], hhc)],
  443. [DX_ENV_APPEND(HHC_PATH, $DX_HHC)
  444. DX_ENV_APPEND(GENERATE_HTML, YES)
  445. DX_ENV_APPEND(GENERATE_HTMLHELP, YES)],
  446. [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)])
  447. # Seperate CHI file generation.
  448. DX_ARG_ABLE(chi, [generate doxygen seperate compressed HTML help index file],
  449. [DX_CHECK_DEPEND(chm, 1)],
  450. [DX_CLEAR_DEPEND(chm, 1)],
  451. [],
  452. [DX_ENV_APPEND(GENERATE_CHI, YES)],
  453. [DX_ENV_APPEND(GENERATE_CHI, NO)])
  454. # Plain HTML pages generation:
  455. DX_ARG_ABLE(html, [generate doxygen plain HTML documentation],
  456. [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)],
  457. [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)],
  458. [],
  459. [DX_ENV_APPEND(GENERATE_HTML, YES)],
  460. [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)])
  461. # PostScript file generation:
  462. DX_ARG_ABLE(ps, [generate doxygen PostScript documentation],
  463. [DX_CHECK_DEPEND(doc, 1)],
  464. [DX_CLEAR_DEPEND(doc, 1)],
  465. [DX_REQUIRE_PROG([DX_LATEX], latex)
  466. DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
  467. DX_REQUIRE_PROG([DX_DVIPS], dvips)
  468. DX_REQUIRE_PROG([DX_EGREP], egrep)])
  469. # PDF file generation:
  470. DX_ARG_ABLE(pdf, [generate doxygen PDF documentation],
  471. [DX_CHECK_DEPEND(doc, 1)],
  472. [DX_CLEAR_DEPEND(doc, 1)],
  473. [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex)
  474. DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
  475. DX_REQUIRE_PROG([DX_EGREP], egrep)])
  476. # LaTeX generation for PS and/or PDF:
  477. AM_CONDITIONAL(DX_COND_latex, DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf))
  478. if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then
  479. DX_ENV_APPEND(GENERATE_LATEX, YES)
  480. else
  481. DX_ENV_APPEND(GENERATE_LATEX, NO)
  482. fi
  483. # Paper size for PS and/or PDF:
  484. AC_ARG_VAR(DOXYGEN_PAPER_SIZE,
  485. [a4wide (default), a4, letter, legal or executive])
  486. case "$DOXYGEN_PAPER_SIZE" in
  487. #(
  488. "")
  489. AC_SUBST(DOXYGEN_PAPER_SIZE, "")
  490. ;; #(
  491. a4wide|a4|letter|legal|executive)
  492. DX_ENV_APPEND(PAPER_SIZE, $DOXYGEN_PAPER_SIZE)
  493. ;; #(
  494. *)
  495. AC_MSG_ERROR([unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'])
  496. ;;
  497. esac
  498. #For debugging:
  499. #echo DX_FLAG_doc=$DX_FLAG_doc
  500. #echo DX_FLAG_dot=$DX_FLAG_dot
  501. #echo DX_FLAG_man=$DX_FLAG_man
  502. #echo DX_FLAG_html=$DX_FLAG_html
  503. #echo DX_FLAG_chm=$DX_FLAG_chm
  504. #echo DX_FLAG_chi=$DX_FLAG_chi
  505. #echo DX_FLAG_rtf=$DX_FLAG_rtf
  506. #echo DX_FLAG_xml=$DX_FLAG_xml
  507. #echo DX_FLAG_pdf=$DX_FLAG_pdf
  508. #echo DX_FLAG_ps=$DX_FLAG_ps
  509. #echo DX_ENV=$DX_ENV
  510. ])
  511. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  512. #
  513. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  514. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  515. # Foundation, Inc.
  516. # Written by Gordon Matzigkeit, 1996
  517. #
  518. # This file is free software; the Free Software Foundation gives
  519. # unlimited permission to copy and/or distribute it, with or without
  520. # modifications, as long as this notice is preserved.
  521. m4_define([_LT_COPYING], [dnl
  522. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  523. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  524. # Foundation, Inc.
  525. # Written by Gordon Matzigkeit, 1996
  526. #
  527. # This file is part of GNU Libtool.
  528. #
  529. # GNU Libtool is free software; you can redistribute it and/or
  530. # modify it under the terms of the GNU General Public License as
  531. # published by the Free Software Foundation; either version 2 of
  532. # the License, or (at your option) any later version.
  533. #
  534. # As a special exception to the GNU General Public License,
  535. # if you distribute this file as part of a program or library that
  536. # is built using GNU Libtool, you may include this file under the
  537. # same distribution terms that you use for the rest of that program.
  538. #
  539. # GNU Libtool is distributed in the hope that it will be useful,
  540. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  541. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  542. # GNU General Public License for more details.
  543. #
  544. # You should have received a copy of the GNU General Public License
  545. # along with GNU Libtool; see the file COPYING. If not, a copy
  546. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  547. # obtained by writing to the Free Software Foundation, Inc.,
  548. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  549. ])
  550. # serial 57 LT_INIT
  551. # LT_PREREQ(VERSION)
  552. # ------------------
  553. # Complain and exit if this libtool version is less that VERSION.
  554. m4_defun([LT_PREREQ],
  555. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  556. [m4_default([$3],
  557. [m4_fatal([Libtool version $1 or higher is required],
  558. 63)])],
  559. [$2])])
  560. # _LT_CHECK_BUILDDIR
  561. # ------------------
  562. # Complain if the absolute build directory name contains unusual characters
  563. m4_defun([_LT_CHECK_BUILDDIR],
  564. [case `pwd` in
  565. *\ * | *\ *)
  566. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  567. esac
  568. ])
  569. # LT_INIT([OPTIONS])
  570. # ------------------
  571. AC_DEFUN([LT_INIT],
  572. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  573. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  574. AC_BEFORE([$0], [LT_LANG])dnl
  575. AC_BEFORE([$0], [LT_OUTPUT])dnl
  576. AC_BEFORE([$0], [LTDL_INIT])dnl
  577. m4_require([_LT_CHECK_BUILDDIR])dnl
  578. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  579. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  580. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  581. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  582. dnl unless we require an AC_DEFUNed macro:
  583. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  584. AC_REQUIRE([LTSUGAR_VERSION])dnl
  585. AC_REQUIRE([LTVERSION_VERSION])dnl
  586. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  587. m4_require([_LT_PROG_LTMAIN])dnl
  588. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  589. dnl Parse OPTIONS
  590. _LT_SET_OPTIONS([$0], [$1])
  591. # This can be used to rebuild libtool when needed
  592. LIBTOOL_DEPS="$ltmain"
  593. # Always use our own libtool.
  594. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  595. AC_SUBST(LIBTOOL)dnl
  596. _LT_SETUP
  597. # Only expand once:
  598. m4_define([LT_INIT])
  599. ])# LT_INIT
  600. # Old names:
  601. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  602. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  603. dnl aclocal-1.4 backwards compatibility:
  604. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  605. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  606. # _LT_CC_BASENAME(CC)
  607. # -------------------
  608. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  609. m4_defun([_LT_CC_BASENAME],
  610. [for cc_temp in $1""; do
  611. case $cc_temp in
  612. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  613. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  614. \-*) ;;
  615. *) break;;
  616. esac
  617. done
  618. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  619. ])
  620. # _LT_FILEUTILS_DEFAULTS
  621. # ----------------------
  622. # It is okay to use these file commands and assume they have been set
  623. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  624. m4_defun([_LT_FILEUTILS_DEFAULTS],
  625. [: ${CP="cp -f"}
  626. : ${MV="mv -f"}
  627. : ${RM="rm -f"}
  628. ])# _LT_FILEUTILS_DEFAULTS
  629. # _LT_SETUP
  630. # ---------
  631. m4_defun([_LT_SETUP],
  632. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  633. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  634. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  635. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  636. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  637. dnl
  638. _LT_DECL([], [host_alias], [0], [The host system])dnl
  639. _LT_DECL([], [host], [0])dnl
  640. _LT_DECL([], [host_os], [0])dnl
  641. dnl
  642. _LT_DECL([], [build_alias], [0], [The build system])dnl
  643. _LT_DECL([], [build], [0])dnl
  644. _LT_DECL([], [build_os], [0])dnl
  645. dnl
  646. AC_REQUIRE([AC_PROG_CC])dnl
  647. AC_REQUIRE([LT_PATH_LD])dnl
  648. AC_REQUIRE([LT_PATH_NM])dnl
  649. dnl
  650. AC_REQUIRE([AC_PROG_LN_S])dnl
  651. test -z "$LN_S" && LN_S="ln -s"
  652. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  653. dnl
  654. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  655. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  656. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  657. dnl
  658. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  659. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  660. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  661. m4_require([_LT_CMD_RELOAD])dnl
  662. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  663. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  664. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  665. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  666. m4_require([_LT_WITH_SYSROOT])dnl
  667. _LT_CONFIG_LIBTOOL_INIT([
  668. # See if we are running on zsh, and set the options which allow our
  669. # commands through without removal of \ escapes INIT.
  670. if test -n "\${ZSH_VERSION+set}" ; then
  671. setopt NO_GLOB_SUBST
  672. fi
  673. ])
  674. if test -n "${ZSH_VERSION+set}" ; then
  675. setopt NO_GLOB_SUBST
  676. fi
  677. _LT_CHECK_OBJDIR
  678. m4_require([_LT_TAG_COMPILER])dnl
  679. case $host_os in
  680. aix3*)
  681. # AIX sometimes has problems with the GCC collect2 program. For some
  682. # reason, if we set the COLLECT_NAMES environment variable, the problems
  683. # vanish in a puff of smoke.
  684. if test "X${COLLECT_NAMES+set}" != Xset; then
  685. COLLECT_NAMES=
  686. export COLLECT_NAMES
  687. fi
  688. ;;
  689. esac
  690. # Global variables:
  691. ofile=libtool
  692. can_build_shared=yes
  693. # All known linkers require a `.a' archive for static linking (except MSVC,
  694. # which needs '.lib').
  695. libext=a
  696. with_gnu_ld="$lt_cv_prog_gnu_ld"
  697. old_CC="$CC"
  698. old_CFLAGS="$CFLAGS"
  699. # Set sane defaults for various variables
  700. test -z "$CC" && CC=cc
  701. test -z "$LTCC" && LTCC=$CC
  702. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  703. test -z "$LD" && LD=ld
  704. test -z "$ac_objext" && ac_objext=o
  705. _LT_CC_BASENAME([$compiler])
  706. # Only perform the check for file, if the check method requires it
  707. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  708. case $deplibs_check_method in
  709. file_magic*)
  710. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  711. _LT_PATH_MAGIC
  712. fi
  713. ;;
  714. esac
  715. # Use C for the default configuration in the libtool script
  716. LT_SUPPORTED_TAG([CC])
  717. _LT_LANG_C_CONFIG
  718. _LT_LANG_DEFAULT_CONFIG
  719. _LT_CONFIG_COMMANDS
  720. ])# _LT_SETUP
  721. # _LT_PREPARE_SED_QUOTE_VARS
  722. # --------------------------
  723. # Define a few sed substitution that help us do robust quoting.
  724. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  725. [# Backslashify metacharacters that are still active within
  726. # double-quoted strings.
  727. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  728. # Same as above, but do not quote variable references.
  729. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  730. # Sed substitution to delay expansion of an escaped shell variable in a
  731. # double_quote_subst'ed string.
  732. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  733. # Sed substitution to delay expansion of an escaped single quote.
  734. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  735. # Sed substitution to avoid accidental globbing in evaled expressions
  736. no_glob_subst='s/\*/\\\*/g'
  737. ])
  738. # _LT_PROG_LTMAIN
  739. # ---------------
  740. # Note that this code is called both from `configure', and `config.status'
  741. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  742. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  743. # so we pass a copy along to make sure it has a sensible value anyway.
  744. m4_defun([_LT_PROG_LTMAIN],
  745. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  746. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  747. ltmain="$ac_aux_dir/ltmain.sh"
  748. ])# _LT_PROG_LTMAIN
  749. # So that we can recreate a full libtool script including additional
  750. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  751. # in macros and then make a single call at the end using the `libtool'
  752. # label.
  753. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  754. # ----------------------------------------
  755. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  756. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  757. [m4_ifval([$1],
  758. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  759. [$1
  760. ])])])
  761. # Initialize.
  762. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  763. # _LT_CONFIG_LIBTOOL([COMMANDS])
  764. # ------------------------------
  765. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  766. m4_define([_LT_CONFIG_LIBTOOL],
  767. [m4_ifval([$1],
  768. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  769. [$1
  770. ])])])
  771. # Initialize.
  772. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  773. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  774. # -----------------------------------------------------
  775. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  776. [_LT_CONFIG_LIBTOOL([$1])
  777. _LT_CONFIG_LIBTOOL_INIT([$2])
  778. ])
  779. # _LT_FORMAT_COMMENT([COMMENT])
  780. # -----------------------------
  781. # Add leading comment marks to the start of each line, and a trailing
  782. # full-stop to the whole comment if one is not present already.
  783. m4_define([_LT_FORMAT_COMMENT],
  784. [m4_ifval([$1], [
  785. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  786. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  787. )])
  788. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  789. # -------------------------------------------------------------------
  790. # CONFIGNAME is the name given to the value in the libtool script.
  791. # VARNAME is the (base) name used in the configure script.
  792. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  793. # VARNAME. Any other value will be used directly.
  794. m4_define([_LT_DECL],
  795. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  796. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  797. [m4_ifval([$1], [$1], [$2])])
  798. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  799. m4_ifval([$4],
  800. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  801. lt_dict_add_subkey([lt_decl_dict], [$2],
  802. [tagged?], [m4_ifval([$5], [yes], [no])])])
  803. ])
  804. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  805. # --------------------------------------------------------
  806. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  807. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  808. # ------------------------------------------------
  809. m4_define([lt_decl_tag_varnames],
  810. [_lt_decl_filter([tagged?], [yes], $@)])
  811. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  812. # ---------------------------------------------------------
  813. m4_define([_lt_decl_filter],
  814. [m4_case([$#],
  815. [0], [m4_fatal([$0: too few arguments: $#])],
  816. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  817. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  818. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  819. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  820. ])
  821. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  822. # --------------------------------------------------
  823. m4_define([lt_decl_quote_varnames],
  824. [_lt_decl_filter([value], [1], $@)])
  825. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  826. # ---------------------------------------------------
  827. m4_define([lt_decl_dquote_varnames],
  828. [_lt_decl_filter([value], [2], $@)])
  829. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  830. # ---------------------------------------------------
  831. m4_define([lt_decl_varnames_tagged],
  832. [m4_assert([$# <= 2])dnl
  833. _$0(m4_quote(m4_default([$1], [[, ]])),
  834. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  835. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  836. m4_define([_lt_decl_varnames_tagged],
  837. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  838. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  839. # ------------------------------------------------
  840. m4_define([lt_decl_all_varnames],
  841. [_$0(m4_quote(m4_default([$1], [[, ]])),
  842. m4_if([$2], [],
  843. m4_quote(lt_decl_varnames),
  844. m4_quote(m4_shift($@))))[]dnl
  845. ])
  846. m4_define([_lt_decl_all_varnames],
  847. [lt_join($@, lt_decl_varnames_tagged([$1],
  848. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  849. ])
  850. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  851. # ------------------------------------
  852. # Quote a variable value, and forward it to `config.status' so that its
  853. # declaration there will have the same value as in `configure'. VARNAME
  854. # must have a single quote delimited value for this to work.
  855. m4_define([_LT_CONFIG_STATUS_DECLARE],
  856. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  857. # _LT_CONFIG_STATUS_DECLARATIONS
  858. # ------------------------------
  859. # We delimit libtool config variables with single quotes, so when
  860. # we write them to config.status, we have to be sure to quote all
  861. # embedded single quotes properly. In configure, this macro expands
  862. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  863. #
  864. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  865. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  866. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  867. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  868. # _LT_LIBTOOL_TAGS
  869. # ----------------
  870. # Output comment and list of tags supported by the script
  871. m4_defun([_LT_LIBTOOL_TAGS],
  872. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  873. available_tags="_LT_TAGS"dnl
  874. ])
  875. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  876. # -----------------------------------
  877. # Extract the dictionary values for VARNAME (optionally with TAG) and
  878. # expand to a commented shell variable setting:
  879. #
  880. # # Some comment about what VAR is for.
  881. # visible_name=$lt_internal_name
  882. m4_define([_LT_LIBTOOL_DECLARE],
  883. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  884. [description])))[]dnl
  885. m4_pushdef([_libtool_name],
  886. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  887. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  888. [0], [_libtool_name=[$]$1],
  889. [1], [_libtool_name=$lt_[]$1],
  890. [2], [_libtool_name=$lt_[]$1],
  891. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  892. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  893. ])
  894. # _LT_LIBTOOL_CONFIG_VARS
  895. # -----------------------
  896. # Produce commented declarations of non-tagged libtool config variables
  897. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  898. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  899. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  900. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  901. [m4_foreach([_lt_var],
  902. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  903. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  904. # _LT_LIBTOOL_TAG_VARS(TAG)
  905. # -------------------------
  906. m4_define([_LT_LIBTOOL_TAG_VARS],
  907. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  908. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  909. # _LT_TAGVAR(VARNAME, [TAGNAME])
  910. # ------------------------------
  911. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  912. # _LT_CONFIG_COMMANDS
  913. # -------------------
  914. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  915. # variables for single and double quote escaping we saved from calls
  916. # to _LT_DECL, we can put quote escaped variables declarations
  917. # into `config.status', and then the shell code to quote escape them in
  918. # for loops in `config.status'. Finally, any additional code accumulated
  919. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  920. m4_defun([_LT_CONFIG_COMMANDS],
  921. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  922. dnl If the libtool generation code has been placed in $CONFIG_LT,
  923. dnl instead of duplicating it all over again into config.status,
  924. dnl then we will have config.status run $CONFIG_LT later, so it
  925. dnl needs to know what name is stored there:
  926. [AC_CONFIG_COMMANDS([libtool],
  927. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  928. dnl If the libtool generation code is destined for config.status,
  929. dnl expand the accumulated commands and init code now:
  930. [AC_CONFIG_COMMANDS([libtool],
  931. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  932. ])#_LT_CONFIG_COMMANDS
  933. # Initialize.
  934. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  935. [
  936. # The HP-UX ksh and POSIX shell print the target directory to stdout
  937. # if CDPATH is set.
  938. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  939. sed_quote_subst='$sed_quote_subst'
  940. double_quote_subst='$double_quote_subst'
  941. delay_variable_subst='$delay_variable_subst'
  942. _LT_CONFIG_STATUS_DECLARATIONS
  943. LTCC='$LTCC'
  944. LTCFLAGS='$LTCFLAGS'
  945. compiler='$compiler_DEFAULT'
  946. # A function that is used when there is no print builtin or printf.
  947. func_fallback_echo ()
  948. {
  949. eval 'cat <<_LTECHO_EOF
  950. \$[]1
  951. _LTECHO_EOF'
  952. }
  953. # Quote evaled strings.
  954. for var in lt_decl_all_varnames([[ \
  955. ]], lt_decl_quote_varnames); do
  956. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  957. *[[\\\\\\\`\\"\\\$]]*)
  958. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  959. ;;
  960. *)
  961. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  962. ;;
  963. esac
  964. done
  965. # Double-quote double-evaled strings.
  966. for var in lt_decl_all_varnames([[ \
  967. ]], lt_decl_dquote_varnames); do
  968. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  969. *[[\\\\\\\`\\"\\\$]]*)
  970. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  971. ;;
  972. *)
  973. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  974. ;;
  975. esac
  976. done
  977. _LT_OUTPUT_LIBTOOL_INIT
  978. ])
  979. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  980. # ------------------------------------
  981. # Generate a child script FILE with all initialization necessary to
  982. # reuse the environment learned by the parent script, and make the
  983. # file executable. If COMMENT is supplied, it is inserted after the
  984. # `#!' sequence but before initialization text begins. After this
  985. # macro, additional text can be appended to FILE to form the body of
  986. # the child script. The macro ends with non-zero status if the
  987. # file could not be fully written (such as if the disk is full).
  988. m4_ifdef([AS_INIT_GENERATED],
  989. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  990. [m4_defun([_LT_GENERATED_FILE_INIT],
  991. [m4_require([AS_PREPARE])]dnl
  992. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  993. [lt_write_fail=0
  994. cat >$1 <<_ASEOF || lt_write_fail=1
  995. #! $SHELL
  996. # Generated by $as_me.
  997. $2
  998. SHELL=\${CONFIG_SHELL-$SHELL}
  999. export SHELL
  1000. _ASEOF
  1001. cat >>$1 <<\_ASEOF || lt_write_fail=1
  1002. AS_SHELL_SANITIZE
  1003. _AS_PREPARE
  1004. exec AS_MESSAGE_FD>&1
  1005. _ASEOF
  1006. test $lt_write_fail = 0 && chmod +x $1[]dnl
  1007. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  1008. # LT_OUTPUT
  1009. # ---------
  1010. # This macro allows early generation of the libtool script (before
  1011. # AC_OUTPUT is called), incase it is used in configure for compilation
  1012. # tests.
  1013. AC_DEFUN([LT_OUTPUT],
  1014. [: ${CONFIG_LT=./config.lt}
  1015. AC_MSG_NOTICE([creating $CONFIG_LT])
  1016. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  1017. [# Run this file to recreate a libtool stub with the current configuration.])
  1018. cat >>"$CONFIG_LT" <<\_LTEOF
  1019. lt_cl_silent=false
  1020. exec AS_MESSAGE_LOG_FD>>config.log
  1021. {
  1022. echo
  1023. AS_BOX([Running $as_me.])
  1024. } >&AS_MESSAGE_LOG_FD
  1025. lt_cl_help="\
  1026. \`$as_me' creates a local libtool stub from the current configuration,
  1027. for use in further configure time tests before the real libtool is
  1028. generated.
  1029. Usage: $[0] [[OPTIONS]]
  1030. -h, --help print this help, then exit
  1031. -V, --version print version number, then exit
  1032. -q, --quiet do not print progress messages
  1033. -d, --debug don't remove temporary files
  1034. Report bugs to <bug-libtool@gnu.org>."
  1035. lt_cl_version="\
  1036. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  1037. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  1038. configured by $[0], generated by m4_PACKAGE_STRING.
  1039. Copyright (C) 2011 Free Software Foundation, Inc.
  1040. This config.lt script is free software; the Free Software Foundation
  1041. gives unlimited permision to copy, distribute and modify it."
  1042. while test $[#] != 0
  1043. do
  1044. case $[1] in
  1045. --version | --v* | -V )
  1046. echo "$lt_cl_version"; exit 0 ;;
  1047. --help | --h* | -h )
  1048. echo "$lt_cl_help"; exit 0 ;;
  1049. --debug | --d* | -d )
  1050. debug=: ;;
  1051. --quiet | --q* | --silent | --s* | -q )
  1052. lt_cl_silent=: ;;
  1053. -*) AC_MSG_ERROR([unrecognized option: $[1]
  1054. Try \`$[0] --help' for more information.]) ;;
  1055. *) AC_MSG_ERROR([unrecognized argument: $[1]
  1056. Try \`$[0] --help' for more information.]) ;;
  1057. esac
  1058. shift
  1059. done
  1060. if $lt_cl_silent; then
  1061. exec AS_MESSAGE_FD>/dev/null
  1062. fi
  1063. _LTEOF
  1064. cat >>"$CONFIG_LT" <<_LTEOF
  1065. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1066. _LTEOF
  1067. cat >>"$CONFIG_LT" <<\_LTEOF
  1068. AC_MSG_NOTICE([creating $ofile])
  1069. _LT_OUTPUT_LIBTOOL_COMMANDS
  1070. AS_EXIT(0)
  1071. _LTEOF
  1072. chmod +x "$CONFIG_LT"
  1073. # configure is writing to config.log, but config.lt does its own redirection,
  1074. # appending to config.log, which fails on DOS, as config.log is still kept
  1075. # open by configure. Here we exec the FD to /dev/null, effectively closing
  1076. # config.log, so it can be properly (re)opened and appended to by config.lt.
  1077. lt_cl_success=:
  1078. test "$silent" = yes &&
  1079. lt_config_lt_args="$lt_config_lt_args --quiet"
  1080. exec AS_MESSAGE_LOG_FD>/dev/null
  1081. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1082. exec AS_MESSAGE_LOG_FD>>config.log
  1083. $lt_cl_success || AS_EXIT(1)
  1084. ])# LT_OUTPUT
  1085. # _LT_CONFIG(TAG)
  1086. # ---------------
  1087. # If TAG is the built-in tag, create an initial libtool script with a
  1088. # default configuration from the untagged config vars. Otherwise add code
  1089. # to config.status for appending the configuration named by TAG from the
  1090. # matching tagged config vars.
  1091. m4_defun([_LT_CONFIG],
  1092. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1093. _LT_CONFIG_SAVE_COMMANDS([
  1094. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1095. m4_if(_LT_TAG, [C], [
  1096. # See if we are running on zsh, and set the options which allow our
  1097. # commands through without removal of \ escapes.
  1098. if test -n "${ZSH_VERSION+set}" ; then
  1099. setopt NO_GLOB_SUBST
  1100. fi
  1101. cfgfile="${ofile}T"
  1102. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1103. $RM "$cfgfile"
  1104. cat <<_LT_EOF >> "$cfgfile"
  1105. #! $SHELL
  1106. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1107. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1108. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1109. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1110. #
  1111. _LT_COPYING
  1112. _LT_LIBTOOL_TAGS
  1113. # ### BEGIN LIBTOOL CONFIG
  1114. _LT_LIBTOOL_CONFIG_VARS
  1115. _LT_LIBTOOL_TAG_VARS
  1116. # ### END LIBTOOL CONFIG
  1117. _LT_EOF
  1118. case $host_os in
  1119. aix3*)
  1120. cat <<\_LT_EOF >> "$cfgfile"
  1121. # AIX sometimes has problems with the GCC collect2 program. For some
  1122. # reason, if we set the COLLECT_NAMES environment variable, the problems
  1123. # vanish in a puff of smoke.
  1124. if test "X${COLLECT_NAMES+set}" != Xset; then
  1125. COLLECT_NAMES=
  1126. export COLLECT_NAMES
  1127. fi
  1128. _LT_EOF
  1129. ;;
  1130. esac
  1131. _LT_PROG_LTMAIN
  1132. # We use sed instead of cat because bash on DJGPP gets confused if
  1133. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1134. # text mode, it properly converts lines to CR/LF. This bash problem
  1135. # is reportedly fixed, but why not run on old versions too?
  1136. sed '$q' "$ltmain" >> "$cfgfile" \
  1137. || (rm -f "$cfgfile"; exit 1)
  1138. _LT_PROG_REPLACE_SHELLFNS
  1139. mv -f "$cfgfile" "$ofile" ||
  1140. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1141. chmod +x "$ofile"
  1142. ],
  1143. [cat <<_LT_EOF >> "$ofile"
  1144. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1145. dnl in a comment (ie after a #).
  1146. # ### BEGIN LIBTOOL TAG CONFIG: $1
  1147. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1148. # ### END LIBTOOL TAG CONFIG: $1
  1149. _LT_EOF
  1150. ])dnl /m4_if
  1151. ],
  1152. [m4_if([$1], [], [
  1153. PACKAGE='$PACKAGE'
  1154. VERSION='$VERSION'
  1155. TIMESTAMP='$TIMESTAMP'
  1156. RM='$RM'
  1157. ofile='$ofile'], [])
  1158. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  1159. ])# _LT_CONFIG
  1160. # LT_SUPPORTED_TAG(TAG)
  1161. # ---------------------
  1162. # Trace this macro to discover what tags are supported by the libtool
  1163. # --tag option, using:
  1164. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1165. AC_DEFUN([LT_SUPPORTED_TAG], [])
  1166. # C support is built-in for now
  1167. m4_define([_LT_LANG_C_enabled], [])
  1168. m4_define([_LT_TAGS], [])
  1169. # LT_LANG(LANG)
  1170. # -------------
  1171. # Enable libtool support for the given language if not already enabled.
  1172. AC_DEFUN([LT_LANG],
  1173. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  1174. m4_case([$1],
  1175. [C], [_LT_LANG(C)],
  1176. [C++], [_LT_LANG(CXX)],
  1177. [Go], [_LT_LANG(GO)],
  1178. [Java], [_LT_LANG(GCJ)],
  1179. [Fortran 77], [_LT_LANG(F77)],
  1180. [Fortran], [_LT_LANG(FC)],
  1181. [Windows Resource], [_LT_LANG(RC)],
  1182. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1183. [_LT_LANG($1)],
  1184. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1185. ])# LT_LANG
  1186. # _LT_LANG(LANGNAME)
  1187. # ------------------
  1188. m4_defun([_LT_LANG],
  1189. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1190. [LT_SUPPORTED_TAG([$1])dnl
  1191. m4_append([_LT_TAGS], [$1 ])dnl
  1192. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1193. _LT_LANG_$1_CONFIG($1)])dnl
  1194. ])# _LT_LANG
  1195. m4_ifndef([AC_PROG_GO], [
  1196. # NOTE: This macro has been submitted for inclusion into #
  1197. # GNU Autoconf as AC_PROG_GO. When it is available in #
  1198. # a released version of Autoconf we should remove this #
  1199. # macro and use it instead. #
  1200. m4_defun([AC_PROG_GO],
  1201. [AC_LANG_PUSH(Go)dnl
  1202. AC_ARG_VAR([GOC], [Go compiler command])dnl
  1203. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  1204. _AC_ARG_VAR_LDFLAGS()dnl
  1205. AC_CHECK_TOOL(GOC, gccgo)
  1206. if test -z "$GOC"; then
  1207. if test -n "$ac_tool_prefix"; then
  1208. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  1209. fi
  1210. fi
  1211. if test -z "$GOC"; then
  1212. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  1213. fi
  1214. ])#m4_defun
  1215. ])#m4_ifndef
  1216. # _LT_LANG_DEFAULT_CONFIG
  1217. # -----------------------
  1218. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1219. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1220. [LT_LANG(CXX)],
  1221. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1222. AC_PROVIDE_IFELSE([AC_PROG_F77],
  1223. [LT_LANG(F77)],
  1224. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1225. AC_PROVIDE_IFELSE([AC_PROG_FC],
  1226. [LT_LANG(FC)],
  1227. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1228. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1229. dnl pulling things in needlessly.
  1230. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1231. [LT_LANG(GCJ)],
  1232. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1233. [LT_LANG(GCJ)],
  1234. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1235. [LT_LANG(GCJ)],
  1236. [m4_ifdef([AC_PROG_GCJ],
  1237. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1238. m4_ifdef([A][M_PROG_GCJ],
  1239. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1240. m4_ifdef([LT_PROG_GCJ],
  1241. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1242. AC_PROVIDE_IFELSE([AC_PROG_GO],
  1243. [LT_LANG(GO)],
  1244. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  1245. AC_PROVIDE_IFELSE([LT_PROG_RC],
  1246. [LT_LANG(RC)],
  1247. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1248. ])# _LT_LANG_DEFAULT_CONFIG
  1249. # Obsolete macros:
  1250. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1251. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1252. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1253. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1254. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  1255. dnl aclocal-1.4 backwards compatibility:
  1256. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1257. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1258. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1259. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1260. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  1261. # _LT_TAG_COMPILER
  1262. # ----------------
  1263. m4_defun([_LT_TAG_COMPILER],
  1264. [AC_REQUIRE([AC_PROG_CC])dnl
  1265. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1266. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1267. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1268. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1269. # If no C compiler was specified, use CC.
  1270. LTCC=${LTCC-"$CC"}
  1271. # If no C compiler flags were specified, use CFLAGS.
  1272. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1273. # Allow CC to be a program name with arguments.
  1274. compiler=$CC
  1275. ])# _LT_TAG_COMPILER
  1276. # _LT_COMPILER_BOILERPLATE
  1277. # ------------------------
  1278. # Check for compiler boilerplate output or warnings with
  1279. # the simple compiler test code.
  1280. m4_defun([_LT_COMPILER_BOILERPLATE],
  1281. [m4_require([_LT_DECL_SED])dnl
  1282. ac_outfile=conftest.$ac_objext
  1283. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1284. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1285. _lt_compiler_boilerplate=`cat conftest.err`
  1286. $RM conftest*
  1287. ])# _LT_COMPILER_BOILERPLATE
  1288. # _LT_LINKER_BOILERPLATE
  1289. # ----------------------
  1290. # Check for linker boilerplate output or warnings with
  1291. # the simple link test code.
  1292. m4_defun([_LT_LINKER_BOILERPLATE],
  1293. [m4_require([_LT_DECL_SED])dnl
  1294. ac_outfile=conftest.$ac_objext
  1295. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1296. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1297. _lt_linker_boilerplate=`cat conftest.err`
  1298. $RM -r conftest*
  1299. ])# _LT_LINKER_BOILERPLATE
  1300. # _LT_REQUIRED_DARWIN_CHECKS
  1301. # -------------------------
  1302. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1303. case $host_os in
  1304. rhapsody* | darwin*)
  1305. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1306. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1307. AC_CHECK_TOOL([LIPO], [lipo], [:])
  1308. AC_CHECK_TOOL([OTOOL], [otool], [:])
  1309. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1310. _LT_DECL([], [DSYMUTIL], [1],
  1311. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1312. _LT_DECL([], [NMEDIT], [1],
  1313. [Tool to change global to local symbols on Mac OS X])
  1314. _LT_DECL([], [LIPO], [1],
  1315. [Tool to manipulate fat objects and archives on Mac OS X])
  1316. _LT_DECL([], [OTOOL], [1],
  1317. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1318. _LT_DECL([], [OTOOL64], [1],
  1319. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1320. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1321. [lt_cv_apple_cc_single_mod=no
  1322. if test -z "${LT_MULTI_MODULE}"; then
  1323. # By default we will add the -single_module flag. You can override
  1324. # by either setting the environment variable LT_MULTI_MODULE
  1325. # non-empty at configure time, or by adding -multi_module to the
  1326. # link flags.
  1327. rm -rf libconftest.dylib*
  1328. echo "int foo(void){return 1;}" > conftest.c
  1329. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1330. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1331. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1332. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1333. _lt_result=$?
  1334. # If there is a non-empty error log, and "single_module"
  1335. # appears in it, assume the flag caused a linker warning
  1336. if test -s conftest.err && $GREP single_module conftest.err; then
  1337. cat conftest.err >&AS_MESSAGE_LOG_FD
  1338. # Otherwise, if the output was created with a 0 exit code from
  1339. # the compiler, it worked.
  1340. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  1341. lt_cv_apple_cc_single_mod=yes
  1342. else
  1343. cat conftest.err >&AS_MESSAGE_LOG_FD
  1344. fi
  1345. rm -rf libconftest.dylib*
  1346. rm -f conftest.*
  1347. fi])
  1348. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1349. [lt_cv_ld_exported_symbols_list],
  1350. [lt_cv_ld_exported_symbols_list=no
  1351. save_LDFLAGS=$LDFLAGS
  1352. echo "_main" > conftest.sym
  1353. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1354. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1355. [lt_cv_ld_exported_symbols_list=yes],
  1356. [lt_cv_ld_exported_symbols_list=no])
  1357. LDFLAGS="$save_LDFLAGS"
  1358. ])
  1359. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  1360. [lt_cv_ld_force_load=no
  1361. cat > conftest.c << _LT_EOF
  1362. int forced_loaded() { return 2;}
  1363. _LT_EOF
  1364. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  1365. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  1366. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  1367. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  1368. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  1369. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  1370. cat > conftest.c << _LT_EOF
  1371. int main() { return 0;}
  1372. _LT_EOF
  1373. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  1374. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  1375. _lt_result=$?
  1376. if test -s conftest.err && $GREP force_load conftest.err; then
  1377. cat conftest.err >&AS_MESSAGE_LOG_FD
  1378. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  1379. lt_cv_ld_force_load=yes
  1380. else
  1381. cat conftest.err >&AS_MESSAGE_LOG_FD
  1382. fi
  1383. rm -f conftest.err libconftest.a conftest conftest.c
  1384. rm -rf conftest.dSYM
  1385. ])
  1386. case $host_os in
  1387. rhapsody* | darwin1.[[012]])
  1388. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1389. darwin1.*)
  1390. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1391. darwin*) # darwin 5.x on
  1392. # if running on 10.5 or later, the deployment target defaults
  1393. # to the OS version, if on x86, and 10.4, the deployment
  1394. # target defaults to 10.4. Don't you love it?
  1395. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1396. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1397. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1398. 10.[[012]]*)
  1399. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1400. 10.*)
  1401. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1402. esac
  1403. ;;
  1404. esac
  1405. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1406. _lt_dar_single_mod='$single_module'
  1407. fi
  1408. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1409. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1410. else
  1411. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1412. fi
  1413. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  1414. _lt_dsymutil='~$DSYMUTIL $lib || :'
  1415. else
  1416. _lt_dsymutil=
  1417. fi
  1418. ;;
  1419. esac
  1420. ])
  1421. # _LT_DARWIN_LINKER_FEATURES([TAG])
  1422. # ---------------------------------
  1423. # Checks for linker and compiler features on darwin
  1424. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1425. [
  1426. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1427. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1428. _LT_TAGVAR(hardcode_direct, $1)=no
  1429. _LT_TAGVAR(hardcode_automatic, $1)=yes
  1430. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1431. if test "$lt_cv_ld_force_load" = "yes"; then
  1432. _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\"`'
  1433. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  1434. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  1435. else
  1436. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1437. fi
  1438. _LT_TAGVAR(link_all_deplibs, $1)=yes
  1439. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1440. case $cc_basename in
  1441. ifort*) _lt_dar_can_shared=yes ;;
  1442. *) _lt_dar_can_shared=$GCC ;;
  1443. esac
  1444. if test "$_lt_dar_can_shared" = "yes"; then
  1445. output_verbose_link_cmd=func_echo_all
  1446. _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}"
  1447. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1448. _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}"
  1449. _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}"
  1450. m4_if([$1], [CXX],
  1451. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1452. _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}"
  1453. _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}"
  1454. fi
  1455. ],[])
  1456. else
  1457. _LT_TAGVAR(ld_shlibs, $1)=no
  1458. fi
  1459. ])
  1460. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  1461. # ----------------------------------
  1462. # Links a minimal program and checks the executable
  1463. # for the system default hardcoded library path. In most cases,
  1464. # this is /usr/lib:/lib, but when the MPI compilers are used
  1465. # the location of the communication and MPI libs are included too.
  1466. # If we don't find anything, use the default library path according
  1467. # to the aix ld manual.
  1468. # Store the results from the different compilers for each TAGNAME.
  1469. # Allow to override them for all tags through lt_cv_aix_libpath.
  1470. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1471. [m4_require([_LT_DECL_SED])dnl
  1472. if test "${lt_cv_aix_libpath+set}" = set; then
  1473. aix_libpath=$lt_cv_aix_libpath
  1474. else
  1475. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  1476. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  1477. lt_aix_libpath_sed='[
  1478. /Import File Strings/,/^$/ {
  1479. /^0/ {
  1480. s/^0 *\([^ ]*\) *$/\1/
  1481. p
  1482. }
  1483. }]'
  1484. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1485. # Check for a 64-bit object if we didn't find anything.
  1486. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1487. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1488. fi],[])
  1489. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1490. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  1491. fi
  1492. ])
  1493. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1494. fi
  1495. ])# _LT_SYS_MODULE_PATH_AIX
  1496. # _LT_SHELL_INIT(ARG)
  1497. # -------------------
  1498. m4_define([_LT_SHELL_INIT],
  1499. [m4_divert_text([M4SH-INIT], [$1
  1500. ])])# _LT_SHELL_INIT
  1501. # _LT_PROG_ECHO_BACKSLASH
  1502. # -----------------------
  1503. # Find how we can fake an echo command that does not interpret backslash.
  1504. # In particular, with Autoconf 2.60 or later we add some code to the start
  1505. # of the generated configure script which will find a shell with a builtin
  1506. # printf (which we can use as an echo command).
  1507. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1508. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1509. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1510. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1511. AC_MSG_CHECKING([how to print strings])
  1512. # Test print first, because it will be a builtin if present.
  1513. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1514. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1515. ECHO='print -r --'
  1516. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1517. ECHO='printf %s\n'
  1518. else
  1519. # Use this function as a fallback that always works.
  1520. func_fallback_echo ()
  1521. {
  1522. eval 'cat <<_LTECHO_EOF
  1523. $[]1
  1524. _LTECHO_EOF'
  1525. }
  1526. ECHO='func_fallback_echo'
  1527. fi
  1528. # func_echo_all arg...
  1529. # Invoke $ECHO with all args, space-separated.
  1530. func_echo_all ()
  1531. {
  1532. $ECHO "$*"
  1533. }
  1534. case "$ECHO" in
  1535. printf*) AC_MSG_RESULT([printf]) ;;
  1536. print*) AC_MSG_RESULT([print -r]) ;;
  1537. *) AC_MSG_RESULT([cat]) ;;
  1538. esac
  1539. m4_ifdef([_AS_DETECT_SUGGESTED],
  1540. [_AS_DETECT_SUGGESTED([
  1541. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1542. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1543. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1544. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1545. PATH=/empty FPATH=/empty; export PATH FPATH
  1546. test "X`printf %s $ECHO`" = "X$ECHO" \
  1547. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1548. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1549. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1550. ])# _LT_PROG_ECHO_BACKSLASH
  1551. # _LT_WITH_SYSROOT
  1552. # ----------------
  1553. AC_DEFUN([_LT_WITH_SYSROOT],
  1554. [AC_MSG_CHECKING([for sysroot])
  1555. AC_ARG_WITH([sysroot],
  1556. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1557. (or the compiler's sysroot if not specified).],
  1558. [], [with_sysroot=no])
  1559. dnl lt_sysroot will always be passed unquoted. We quote it here
  1560. dnl in case the user passed a directory name.
  1561. lt_sysroot=
  1562. case ${with_sysroot} in #(
  1563. yes)
  1564. if test "$GCC" = yes; then
  1565. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1566. fi
  1567. ;; #(
  1568. /*)
  1569. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1570. ;; #(
  1571. no|'')
  1572. ;; #(
  1573. *)
  1574. AC_MSG_RESULT([${with_sysroot}])
  1575. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1576. ;;
  1577. esac
  1578. AC_MSG_RESULT([${lt_sysroot:-no}])
  1579. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1580. [dependent libraries, and in which our libraries should be installed.])])
  1581. # _LT_ENABLE_LOCK
  1582. # ---------------
  1583. m4_defun([_LT_ENABLE_LOCK],
  1584. [AC_ARG_ENABLE([libtool-lock],
  1585. [AS_HELP_STRING([--disable-libtool-lock],
  1586. [avoid locking (might break parallel builds)])])
  1587. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1588. # Some flags need to be propagated to the compiler or linker for good
  1589. # libtool support.
  1590. case $host in
  1591. ia64-*-hpux*)
  1592. # Find out which ABI we are using.
  1593. echo 'int i;' > conftest.$ac_ext
  1594. if AC_TRY_EVAL(ac_compile); then
  1595. case `/usr/bin/file conftest.$ac_objext` in
  1596. *ELF-32*)
  1597. HPUX_IA64_MODE="32"
  1598. ;;
  1599. *ELF-64*)
  1600. HPUX_IA64_MODE="64"
  1601. ;;
  1602. esac
  1603. fi
  1604. rm -rf conftest*
  1605. ;;
  1606. *-*-irix6*)
  1607. # Find out which ABI we are using.
  1608. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1609. if AC_TRY_EVAL(ac_compile); then
  1610. if test "$lt_cv_prog_gnu_ld" = yes; then
  1611. case `/usr/bin/file conftest.$ac_objext` in
  1612. *32-bit*)
  1613. LD="${LD-ld} -melf32bsmip"
  1614. ;;
  1615. *N32*)
  1616. LD="${LD-ld} -melf32bmipn32"
  1617. ;;
  1618. *64-bit*)
  1619. LD="${LD-ld} -melf64bmip"
  1620. ;;
  1621. esac
  1622. else
  1623. case `/usr/bin/file conftest.$ac_objext` in
  1624. *32-bit*)
  1625. LD="${LD-ld} -32"
  1626. ;;
  1627. *N32*)
  1628. LD="${LD-ld} -n32"
  1629. ;;
  1630. *64-bit*)
  1631. LD="${LD-ld} -64"
  1632. ;;
  1633. esac
  1634. fi
  1635. fi
  1636. rm -rf conftest*
  1637. ;;
  1638. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  1639. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1640. # Find out which ABI we are using.
  1641. echo 'int i;' > conftest.$ac_ext
  1642. if AC_TRY_EVAL(ac_compile); then
  1643. case `/usr/bin/file conftest.o` in
  1644. *32-bit*)
  1645. case $host in
  1646. x86_64-*kfreebsd*-gnu)
  1647. LD="${LD-ld} -m elf_i386_fbsd"
  1648. ;;
  1649. x86_64-*linux*)
  1650. case `/usr/bin/file conftest.o` in
  1651. *x86-64*)
  1652. LD="${LD-ld} -m elf32_x86_64"
  1653. ;;
  1654. *)
  1655. LD="${LD-ld} -m elf_i386"
  1656. ;;
  1657. esac
  1658. ;;
  1659. powerpc64le-*)
  1660. LD="${LD-ld} -m elf32lppclinux"
  1661. ;;
  1662. powerpc64-*)
  1663. LD="${LD-ld} -m elf32ppclinux"
  1664. ;;
  1665. s390x-*linux*)
  1666. LD="${LD-ld} -m elf_s390"
  1667. ;;
  1668. sparc64-*linux*)
  1669. LD="${LD-ld} -m elf32_sparc"
  1670. ;;
  1671. esac
  1672. ;;
  1673. *64-bit*)
  1674. case $host in
  1675. x86_64-*kfreebsd*-gnu)
  1676. LD="${LD-ld} -m elf_x86_64_fbsd"
  1677. ;;
  1678. x86_64-*linux*)
  1679. LD="${LD-ld} -m elf_x86_64"
  1680. ;;
  1681. powerpcle-*)
  1682. LD="${LD-ld} -m elf64lppc"
  1683. ;;
  1684. powerpc-*)
  1685. LD="${LD-ld} -m elf64ppc"
  1686. ;;
  1687. s390*-*linux*|s390*-*tpf*)
  1688. LD="${LD-ld} -m elf64_s390"
  1689. ;;
  1690. sparc*-*linux*)
  1691. LD="${LD-ld} -m elf64_sparc"
  1692. ;;
  1693. esac
  1694. ;;
  1695. esac
  1696. fi
  1697. rm -rf conftest*
  1698. ;;
  1699. *-*-sco3.2v5*)
  1700. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1701. SAVE_CFLAGS="$CFLAGS"
  1702. CFLAGS="$CFLAGS -belf"
  1703. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1704. [AC_LANG_PUSH(C)
  1705. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1706. AC_LANG_POP])
  1707. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1708. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1709. CFLAGS="$SAVE_CFLAGS"
  1710. fi
  1711. ;;
  1712. *-*solaris*)
  1713. # Find out which ABI we are using.
  1714. echo 'int i;' > conftest.$ac_ext
  1715. if AC_TRY_EVAL(ac_compile); then
  1716. case `/usr/bin/file conftest.o` in
  1717. *64-bit*)
  1718. case $lt_cv_prog_gnu_ld in
  1719. yes*)
  1720. case $host in
  1721. i?86-*-solaris*)
  1722. LD="${LD-ld} -m elf_x86_64"
  1723. ;;
  1724. sparc*-*-solaris*)
  1725. LD="${LD-ld} -m elf64_sparc"
  1726. ;;
  1727. esac
  1728. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1729. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1730. LD="${LD-ld}_sol2"
  1731. fi
  1732. ;;
  1733. *)
  1734. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1735. LD="${LD-ld} -64"
  1736. fi
  1737. ;;
  1738. esac
  1739. ;;
  1740. esac
  1741. fi
  1742. rm -rf conftest*
  1743. ;;
  1744. esac
  1745. need_locks="$enable_libtool_lock"
  1746. ])# _LT_ENABLE_LOCK
  1747. # _LT_PROG_AR
  1748. # -----------
  1749. m4_defun([_LT_PROG_AR],
  1750. [AC_CHECK_TOOLS(AR, [ar], false)
  1751. : ${AR=ar}
  1752. : ${AR_FLAGS=cru}
  1753. _LT_DECL([], [AR], [1], [The archiver])
  1754. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1755. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1756. [lt_cv_ar_at_file=no
  1757. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1758. [echo conftest.$ac_objext > conftest.lst
  1759. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1760. AC_TRY_EVAL([lt_ar_try])
  1761. if test "$ac_status" -eq 0; then
  1762. # Ensure the archiver fails upon bogus file names.
  1763. rm -f conftest.$ac_objext libconftest.a
  1764. AC_TRY_EVAL([lt_ar_try])
  1765. if test "$ac_status" -ne 0; then
  1766. lt_cv_ar_at_file=@
  1767. fi
  1768. fi
  1769. rm -f conftest.* libconftest.a
  1770. ])
  1771. ])
  1772. if test "x$lt_cv_ar_at_file" = xno; then
  1773. archiver_list_spec=
  1774. else
  1775. archiver_list_spec=$lt_cv_ar_at_file
  1776. fi
  1777. _LT_DECL([], [archiver_list_spec], [1],
  1778. [How to feed a file listing to the archiver])
  1779. ])# _LT_PROG_AR
  1780. # _LT_CMD_OLD_ARCHIVE
  1781. # -------------------
  1782. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1783. [_LT_PROG_AR
  1784. AC_CHECK_TOOL(STRIP, strip, :)
  1785. test -z "$STRIP" && STRIP=:
  1786. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1787. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1788. test -z "$RANLIB" && RANLIB=:
  1789. _LT_DECL([], [RANLIB], [1],
  1790. [Commands used to install an old-style archive])
  1791. # Determine commands to create old-style static archives.
  1792. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1793. old_postinstall_cmds='chmod 644 $oldlib'
  1794. old_postuninstall_cmds=
  1795. if test -n "$RANLIB"; then
  1796. case $host_os in
  1797. openbsd*)
  1798. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1799. ;;
  1800. *)
  1801. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1802. ;;
  1803. esac
  1804. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1805. fi
  1806. case $host_os in
  1807. darwin*)
  1808. lock_old_archive_extraction=yes ;;
  1809. *)
  1810. lock_old_archive_extraction=no ;;
  1811. esac
  1812. _LT_DECL([], [old_postinstall_cmds], [2])
  1813. _LT_DECL([], [old_postuninstall_cmds], [2])
  1814. _LT_TAGDECL([], [old_archive_cmds], [2],
  1815. [Commands used to build an old-style archive])
  1816. _LT_DECL([], [lock_old_archive_extraction], [0],
  1817. [Whether to use a lock for old archive extraction])
  1818. ])# _LT_CMD_OLD_ARCHIVE
  1819. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1820. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1821. # ----------------------------------------------------------------
  1822. # Check whether the given compiler option works
  1823. AC_DEFUN([_LT_COMPILER_OPTION],
  1824. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1825. m4_require([_LT_DECL_SED])dnl
  1826. AC_CACHE_CHECK([$1], [$2],
  1827. [$2=no
  1828. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1829. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1830. lt_compiler_flag="$3"
  1831. # Insert the option either (1) after the last *FLAGS variable, or
  1832. # (2) before a word containing "conftest.", or (3) at the end.
  1833. # Note that $ac_compile itself does not contain backslashes and begins
  1834. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1835. # The option is referenced via a variable to avoid confusing sed.
  1836. lt_compile=`echo "$ac_compile" | $SED \
  1837. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1838. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1839. -e 's:$: $lt_compiler_flag:'`
  1840. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1841. (eval "$lt_compile" 2>conftest.err)
  1842. ac_status=$?
  1843. cat conftest.err >&AS_MESSAGE_LOG_FD
  1844. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1845. if (exit $ac_status) && test -s "$ac_outfile"; then
  1846. # The compiler can only warn and ignore the option if not recognized
  1847. # So say no if there are warnings other than the usual output.
  1848. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1849. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1850. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1851. $2=yes
  1852. fi
  1853. fi
  1854. $RM conftest*
  1855. ])
  1856. if test x"[$]$2" = xyes; then
  1857. m4_if([$5], , :, [$5])
  1858. else
  1859. m4_if([$6], , :, [$6])
  1860. fi
  1861. ])# _LT_COMPILER_OPTION
  1862. # Old name:
  1863. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1864. dnl aclocal-1.4 backwards compatibility:
  1865. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1866. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1867. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1868. # ----------------------------------------------------
  1869. # Check whether the given linker option works
  1870. AC_DEFUN([_LT_LINKER_OPTION],
  1871. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1872. m4_require([_LT_DECL_SED])dnl
  1873. AC_CACHE_CHECK([$1], [$2],
  1874. [$2=no
  1875. save_LDFLAGS="$LDFLAGS"
  1876. LDFLAGS="$LDFLAGS $3"
  1877. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1878. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1879. # The linker can only warn and ignore the option if not recognized
  1880. # So say no if there are warnings
  1881. if test -s conftest.err; then
  1882. # Append any errors to the config.log.
  1883. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1884. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1885. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1886. if diff conftest.exp conftest.er2 >/dev/null; then
  1887. $2=yes
  1888. fi
  1889. else
  1890. $2=yes
  1891. fi
  1892. fi
  1893. $RM -r conftest*
  1894. LDFLAGS="$save_LDFLAGS"
  1895. ])
  1896. if test x"[$]$2" = xyes; then
  1897. m4_if([$4], , :, [$4])
  1898. else
  1899. m4_if([$5], , :, [$5])
  1900. fi
  1901. ])# _LT_LINKER_OPTION
  1902. # Old name:
  1903. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1904. dnl aclocal-1.4 backwards compatibility:
  1905. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1906. # LT_CMD_MAX_LEN
  1907. #---------------
  1908. AC_DEFUN([LT_CMD_MAX_LEN],
  1909. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1910. # find the maximum length of command line arguments
  1911. AC_MSG_CHECKING([the maximum length of command line arguments])
  1912. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1913. i=0
  1914. teststring="ABCD"
  1915. case $build_os in
  1916. msdosdjgpp*)
  1917. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1918. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1919. # during glob expansion). Even if it were fixed, the result of this
  1920. # check would be larger than it should be.
  1921. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1922. ;;
  1923. gnu*)
  1924. # Under GNU Hurd, this test is not required because there is
  1925. # no limit to the length of command line arguments.
  1926. # Libtool will interpret -1 as no limit whatsoever
  1927. lt_cv_sys_max_cmd_len=-1;
  1928. ;;
  1929. cygwin* | mingw* | cegcc*)
  1930. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1931. # about 5 minutes as the teststring grows exponentially.
  1932. # Worse, since 9x/ME are not pre-emptively multitasking,
  1933. # you end up with a "frozen" computer, even though with patience
  1934. # the test eventually succeeds (with a max line length of 256k).
  1935. # Instead, let's just punt: use the minimum linelength reported by
  1936. # all of the supported platforms: 8192 (on NT/2K/XP).
  1937. lt_cv_sys_max_cmd_len=8192;
  1938. ;;
  1939. mint*)
  1940. # On MiNT this can take a long time and run out of memory.
  1941. lt_cv_sys_max_cmd_len=8192;
  1942. ;;
  1943. amigaos*)
  1944. # On AmigaOS with pdksh, this test takes hours, literally.
  1945. # So we just punt and use a minimum line length of 8192.
  1946. lt_cv_sys_max_cmd_len=8192;
  1947. ;;
  1948. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1949. # This has been around since 386BSD, at least. Likely further.
  1950. if test -x /sbin/sysctl; then
  1951. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1952. elif test -x /usr/sbin/sysctl; then
  1953. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1954. else
  1955. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1956. fi
  1957. # And add a safety zone
  1958. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1959. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1960. ;;
  1961. interix*)
  1962. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1963. lt_cv_sys_max_cmd_len=196608
  1964. ;;
  1965. os2*)
  1966. # The test takes a long time on OS/2.
  1967. lt_cv_sys_max_cmd_len=8192
  1968. ;;
  1969. osf*)
  1970. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1971. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1972. # nice to cause kernel panics so lets avoid the loop below.
  1973. # First set a reasonable default.
  1974. lt_cv_sys_max_cmd_len=16384
  1975. #
  1976. if test -x /sbin/sysconfig; then
  1977. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1978. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1979. esac
  1980. fi
  1981. ;;
  1982. sco3.2v5*)
  1983. lt_cv_sys_max_cmd_len=102400
  1984. ;;
  1985. sysv5* | sco5v6* | sysv4.2uw2*)
  1986. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1987. if test -n "$kargmax"; then
  1988. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1989. else
  1990. lt_cv_sys_max_cmd_len=32768
  1991. fi
  1992. ;;
  1993. *)
  1994. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1995. if test -n "$lt_cv_sys_max_cmd_len" && \
  1996. test undefined != "$lt_cv_sys_max_cmd_len"; then
  1997. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1998. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1999. else
  2000. # Make teststring a little bigger before we do anything with it.
  2001. # a 1K string should be a reasonable start.
  2002. for i in 1 2 3 4 5 6 7 8 ; do
  2003. teststring=$teststring$teststring
  2004. done
  2005. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2006. # If test is not a shell built-in, we'll probably end up computing a
  2007. # maximum length that is only half of the actual maximum length, but
  2008. # we can't tell.
  2009. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  2010. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  2011. test $i != 17 # 1/2 MB should be enough
  2012. do
  2013. i=`expr $i + 1`
  2014. teststring=$teststring$teststring
  2015. done
  2016. # Only check the string length outside the loop.
  2017. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2018. teststring=
  2019. # Add a significant safety factor because C++ compilers can tack on
  2020. # massive amounts of additional arguments before passing them to the
  2021. # linker. It appears as though 1/2 is a usable value.
  2022. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2023. fi
  2024. ;;
  2025. esac
  2026. ])
  2027. if test -n $lt_cv_sys_max_cmd_len ; then
  2028. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2029. else
  2030. AC_MSG_RESULT(none)
  2031. fi
  2032. max_cmd_len=$lt_cv_sys_max_cmd_len
  2033. _LT_DECL([], [max_cmd_len], [0],
  2034. [What is the maximum length of a command?])
  2035. ])# LT_CMD_MAX_LEN
  2036. # Old name:
  2037. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2038. dnl aclocal-1.4 backwards compatibility:
  2039. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2040. # _LT_HEADER_DLFCN
  2041. # ----------------
  2042. m4_defun([_LT_HEADER_DLFCN],
  2043. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2044. ])# _LT_HEADER_DLFCN
  2045. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2046. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2047. # ----------------------------------------------------------------
  2048. m4_defun([_LT_TRY_DLOPEN_SELF],
  2049. [m4_require([_LT_HEADER_DLFCN])dnl
  2050. if test "$cross_compiling" = yes; then :
  2051. [$4]
  2052. else
  2053. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2054. lt_status=$lt_dlunknown
  2055. cat > conftest.$ac_ext <<_LT_EOF
  2056. [#line $LINENO "configure"
  2057. #include "confdefs.h"
  2058. #if HAVE_DLFCN_H
  2059. #include <dlfcn.h>
  2060. #endif
  2061. #include <stdio.h>
  2062. #ifdef RTLD_GLOBAL
  2063. # define LT_DLGLOBAL RTLD_GLOBAL
  2064. #else
  2065. # ifdef DL_GLOBAL
  2066. # define LT_DLGLOBAL DL_GLOBAL
  2067. # else
  2068. # define LT_DLGLOBAL 0
  2069. # endif
  2070. #endif
  2071. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2072. find out it does not work in some platform. */
  2073. #ifndef LT_DLLAZY_OR_NOW
  2074. # ifdef RTLD_LAZY
  2075. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  2076. # else
  2077. # ifdef DL_LAZY
  2078. # define LT_DLLAZY_OR_NOW DL_LAZY
  2079. # else
  2080. # ifdef RTLD_NOW
  2081. # define LT_DLLAZY_OR_NOW RTLD_NOW
  2082. # else
  2083. # ifdef DL_NOW
  2084. # define LT_DLLAZY_OR_NOW DL_NOW
  2085. # else
  2086. # define LT_DLLAZY_OR_NOW 0
  2087. # endif
  2088. # endif
  2089. # endif
  2090. # endif
  2091. #endif
  2092. /* When -fvisbility=hidden is used, assume the code has been annotated
  2093. correspondingly for the symbols needed. */
  2094. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  2095. int fnord () __attribute__((visibility("default")));
  2096. #endif
  2097. int fnord () { return 42; }
  2098. int main ()
  2099. {
  2100. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2101. int status = $lt_dlunknown;
  2102. if (self)
  2103. {
  2104. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  2105. else
  2106. {
  2107. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  2108. else puts (dlerror ());
  2109. }
  2110. /* dlclose (self); */
  2111. }
  2112. else
  2113. puts (dlerror ());
  2114. return status;
  2115. }]
  2116. _LT_EOF
  2117. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  2118. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  2119. lt_status=$?
  2120. case x$lt_status in
  2121. x$lt_dlno_uscore) $1 ;;
  2122. x$lt_dlneed_uscore) $2 ;;
  2123. x$lt_dlunknown|x*) $3 ;;
  2124. esac
  2125. else :
  2126. # compilation failed
  2127. $3
  2128. fi
  2129. fi
  2130. rm -fr conftest*
  2131. ])# _LT_TRY_DLOPEN_SELF
  2132. # LT_SYS_DLOPEN_SELF
  2133. # ------------------
  2134. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  2135. [m4_require([_LT_HEADER_DLFCN])dnl
  2136. if test "x$enable_dlopen" != xyes; then
  2137. enable_dlopen=unknown
  2138. enable_dlopen_self=unknown
  2139. enable_dlopen_self_static=unknown
  2140. else
  2141. lt_cv_dlopen=no
  2142. lt_cv_dlopen_libs=
  2143. case $host_os in
  2144. beos*)
  2145. lt_cv_dlopen="load_add_on"
  2146. lt_cv_dlopen_libs=
  2147. lt_cv_dlopen_self=yes
  2148. ;;
  2149. mingw* | pw32* | cegcc*)
  2150. lt_cv_dlopen="LoadLibrary"
  2151. lt_cv_dlopen_libs=
  2152. ;;
  2153. cygwin*)
  2154. lt_cv_dlopen="dlopen"
  2155. lt_cv_dlopen_libs=
  2156. ;;
  2157. darwin*)
  2158. # if libdl is installed we need to link against it
  2159. AC_CHECK_LIB([dl], [dlopen],
  2160. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  2161. lt_cv_dlopen="dyld"
  2162. lt_cv_dlopen_libs=
  2163. lt_cv_dlopen_self=yes
  2164. ])
  2165. ;;
  2166. *)
  2167. AC_CHECK_FUNC([shl_load],
  2168. [lt_cv_dlopen="shl_load"],
  2169. [AC_CHECK_LIB([dld], [shl_load],
  2170. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  2171. [AC_CHECK_FUNC([dlopen],
  2172. [lt_cv_dlopen="dlopen"],
  2173. [AC_CHECK_LIB([dl], [dlopen],
  2174. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  2175. [AC_CHECK_LIB([svld], [dlopen],
  2176. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  2177. [AC_CHECK_LIB([dld], [dld_link],
  2178. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  2179. ])
  2180. ])
  2181. ])
  2182. ])
  2183. ])
  2184. ;;
  2185. esac
  2186. if test "x$lt_cv_dlopen" != xno; then
  2187. enable_dlopen=yes
  2188. else
  2189. enable_dlopen=no
  2190. fi
  2191. case $lt_cv_dlopen in
  2192. dlopen)
  2193. save_CPPFLAGS="$CPPFLAGS"
  2194. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  2195. save_LDFLAGS="$LDFLAGS"
  2196. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  2197. save_LIBS="$LIBS"
  2198. LIBS="$lt_cv_dlopen_libs $LIBS"
  2199. AC_CACHE_CHECK([whether a program can dlopen itself],
  2200. lt_cv_dlopen_self, [dnl
  2201. _LT_TRY_DLOPEN_SELF(
  2202. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  2203. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  2204. ])
  2205. if test "x$lt_cv_dlopen_self" = xyes; then
  2206. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  2207. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  2208. lt_cv_dlopen_self_static, [dnl
  2209. _LT_TRY_DLOPEN_SELF(
  2210. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  2211. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  2212. ])
  2213. fi
  2214. CPPFLAGS="$save_CPPFLAGS"
  2215. LDFLAGS="$save_LDFLAGS"
  2216. LIBS="$save_LIBS"
  2217. ;;
  2218. esac
  2219. case $lt_cv_dlopen_self in
  2220. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  2221. *) enable_dlopen_self=unknown ;;
  2222. esac
  2223. case $lt_cv_dlopen_self_static in
  2224. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  2225. *) enable_dlopen_self_static=unknown ;;
  2226. esac
  2227. fi
  2228. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  2229. [Whether dlopen is supported])
  2230. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  2231. [Whether dlopen of programs is supported])
  2232. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  2233. [Whether dlopen of statically linked programs is supported])
  2234. ])# LT_SYS_DLOPEN_SELF
  2235. # Old name:
  2236. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  2237. dnl aclocal-1.4 backwards compatibility:
  2238. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  2239. # _LT_COMPILER_C_O([TAGNAME])
  2240. # ---------------------------
  2241. # Check to see if options -c and -o are simultaneously supported by compiler.
  2242. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2243. m4_defun([_LT_COMPILER_C_O],
  2244. [m4_require([_LT_DECL_SED])dnl
  2245. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2246. m4_require([_LT_TAG_COMPILER])dnl
  2247. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2248. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2249. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2250. $RM -r conftest 2>/dev/null
  2251. mkdir conftest
  2252. cd conftest
  2253. mkdir out
  2254. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2255. lt_compiler_flag="-o out/conftest2.$ac_objext"
  2256. # Insert the option either (1) after the last *FLAGS variable, or
  2257. # (2) before a word containing "conftest.", or (3) at the end.
  2258. # Note that $ac_compile itself does not contain backslashes and begins
  2259. # with a dollar sign (not a hyphen), so the echo should work correctly.
  2260. lt_compile=`echo "$ac_compile" | $SED \
  2261. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2262. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2263. -e 's:$: $lt_compiler_flag:'`
  2264. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2265. (eval "$lt_compile" 2>out/conftest.err)
  2266. ac_status=$?
  2267. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  2268. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2269. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  2270. then
  2271. # The compiler can only warn and ignore the option if not recognized
  2272. # So say no if there are warnings
  2273. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  2274. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2275. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2276. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2277. fi
  2278. fi
  2279. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2280. $RM conftest*
  2281. # SGI C++ compiler will create directory out/ii_files/ for
  2282. # template instantiation
  2283. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2284. $RM out/* && rmdir out
  2285. cd ..
  2286. $RM -r conftest
  2287. $RM conftest*
  2288. ])
  2289. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2290. [Does compiler simultaneously support -c and -o options?])
  2291. ])# _LT_COMPILER_C_O
  2292. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2293. # ----------------------------------
  2294. # Check to see if we can do hard links to lock some files if needed
  2295. m4_defun([_LT_COMPILER_FILE_LOCKS],
  2296. [m4_require([_LT_ENABLE_LOCK])dnl
  2297. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2298. _LT_COMPILER_C_O([$1])
  2299. hard_links="nottested"
  2300. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2301. # do not overwrite the value of need_locks provided by the user
  2302. AC_MSG_CHECKING([if we can lock with hard links])
  2303. hard_links=yes
  2304. $RM conftest*
  2305. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2306. touch conftest.a
  2307. ln conftest.a conftest.b 2>&5 || hard_links=no
  2308. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2309. AC_MSG_RESULT([$hard_links])
  2310. if test "$hard_links" = no; then
  2311. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  2312. need_locks=warn
  2313. fi
  2314. else
  2315. need_locks=no
  2316. fi
  2317. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2318. ])# _LT_COMPILER_FILE_LOCKS
  2319. # _LT_CHECK_OBJDIR
  2320. # ----------------
  2321. m4_defun([_LT_CHECK_OBJDIR],
  2322. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2323. [rm -f .libs 2>/dev/null
  2324. mkdir .libs 2>/dev/null
  2325. if test -d .libs; then
  2326. lt_cv_objdir=.libs
  2327. else
  2328. # MS-DOS does not allow filenames that begin with a dot.
  2329. lt_cv_objdir=_libs
  2330. fi
  2331. rmdir .libs 2>/dev/null])
  2332. objdir=$lt_cv_objdir
  2333. _LT_DECL([], [objdir], [0],
  2334. [The name of the directory that contains temporary libtool files])dnl
  2335. m4_pattern_allow([LT_OBJDIR])dnl
  2336. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2337. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2338. ])# _LT_CHECK_OBJDIR
  2339. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2340. # --------------------------------------
  2341. # Check hardcoding attributes.
  2342. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2343. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2344. _LT_TAGVAR(hardcode_action, $1)=
  2345. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2346. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2347. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2348. # We can hardcode non-existent directories.
  2349. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2350. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2351. # have to relink, otherwise we might link with an installed library
  2352. # when we should be linking with a yet-to-be-installed one
  2353. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2354. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2355. # Linking always hardcodes the temporary library directory.
  2356. _LT_TAGVAR(hardcode_action, $1)=relink
  2357. else
  2358. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2359. _LT_TAGVAR(hardcode_action, $1)=immediate
  2360. fi
  2361. else
  2362. # We cannot hardcode anything, or else we can only hardcode existing
  2363. # directories.
  2364. _LT_TAGVAR(hardcode_action, $1)=unsupported
  2365. fi
  2366. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2367. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2368. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2369. # Fast installation is not supported
  2370. enable_fast_install=no
  2371. elif test "$shlibpath_overrides_runpath" = yes ||
  2372. test "$enable_shared" = no; then
  2373. # Fast installation is not necessary
  2374. enable_fast_install=needless
  2375. fi
  2376. _LT_TAGDECL([], [hardcode_action], [0],
  2377. [How to hardcode a shared library path into an executable])
  2378. ])# _LT_LINKER_HARDCODE_LIBPATH
  2379. # _LT_CMD_STRIPLIB
  2380. # ----------------
  2381. m4_defun([_LT_CMD_STRIPLIB],
  2382. [m4_require([_LT_DECL_EGREP])
  2383. striplib=
  2384. old_striplib=
  2385. AC_MSG_CHECKING([whether stripping libraries is possible])
  2386. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2387. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2388. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2389. AC_MSG_RESULT([yes])
  2390. else
  2391. # FIXME - insert some real tests, host_os isn't really good enough
  2392. case $host_os in
  2393. darwin*)
  2394. if test -n "$STRIP" ; then
  2395. striplib="$STRIP -x"
  2396. old_striplib="$STRIP -S"
  2397. AC_MSG_RESULT([yes])
  2398. else
  2399. AC_MSG_RESULT([no])
  2400. fi
  2401. ;;
  2402. *)
  2403. AC_MSG_RESULT([no])
  2404. ;;
  2405. esac
  2406. fi
  2407. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2408. _LT_DECL([], [striplib], [1])
  2409. ])# _LT_CMD_STRIPLIB
  2410. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2411. # -----------------------------
  2412. # PORTME Fill in your ld.so characteristics
  2413. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2414. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2415. m4_require([_LT_DECL_EGREP])dnl
  2416. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2417. m4_require([_LT_DECL_OBJDUMP])dnl
  2418. m4_require([_LT_DECL_SED])dnl
  2419. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  2420. AC_MSG_CHECKING([dynamic linker characteristics])
  2421. m4_if([$1],
  2422. [], [
  2423. if test "$GCC" = yes; then
  2424. case $host_os in
  2425. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2426. *) lt_awk_arg="/^libraries:/" ;;
  2427. esac
  2428. case $host_os in
  2429. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  2430. *) lt_sed_strip_eq="s,=/,/,g" ;;
  2431. esac
  2432. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  2433. case $lt_search_path_spec in
  2434. *\;*)
  2435. # if the path contains ";" then we assume it to be the separator
  2436. # otherwise default to the standard path separator (i.e. ":") - it is
  2437. # assumed that no part of a normal pathname contains ";" but that should
  2438. # okay in the real world where ";" in dirpaths is itself problematic.
  2439. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  2440. ;;
  2441. *)
  2442. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  2443. ;;
  2444. esac
  2445. # Ok, now we have the path, separated by spaces, we can step through it
  2446. # and add multilib dir if necessary.
  2447. lt_tmp_lt_search_path_spec=
  2448. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2449. for lt_sys_path in $lt_search_path_spec; do
  2450. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  2451. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  2452. else
  2453. test -d "$lt_sys_path" && \
  2454. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2455. fi
  2456. done
  2457. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  2458. BEGIN {RS=" "; FS="/|\n";} {
  2459. lt_foo="";
  2460. lt_count=0;
  2461. for (lt_i = NF; lt_i > 0; lt_i--) {
  2462. if ($lt_i != "" && $lt_i != ".") {
  2463. if ($lt_i == "..") {
  2464. lt_count++;
  2465. } else {
  2466. if (lt_count == 0) {
  2467. lt_foo="/" $lt_i lt_foo;
  2468. } else {
  2469. lt_count--;
  2470. }
  2471. }
  2472. }
  2473. }
  2474. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2475. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2476. }'`
  2477. # AWK program above erroneously prepends '/' to C:/dos/paths
  2478. # for these hosts.
  2479. case $host_os in
  2480. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  2481. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  2482. esac
  2483. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  2484. else
  2485. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2486. fi])
  2487. library_names_spec=
  2488. libname_spec='lib$name'
  2489. soname_spec=
  2490. shrext_cmds=".so"
  2491. postinstall_cmds=
  2492. postuninstall_cmds=
  2493. finish_cmds=
  2494. finish_eval=
  2495. shlibpath_var=
  2496. shlibpath_overrides_runpath=unknown
  2497. version_type=none
  2498. dynamic_linker="$host_os ld.so"
  2499. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2500. need_lib_prefix=unknown
  2501. hardcode_into_libs=no
  2502. # when you set need_version to no, make sure it does not cause -set_version
  2503. # flags to be left without arguments
  2504. need_version=unknown
  2505. case $host_os in
  2506. aix3*)
  2507. version_type=linux # correct to gnu/linux during the next big refactor
  2508. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2509. shlibpath_var=LIBPATH
  2510. # AIX 3 has no versioning support, so we append a major version to the name.
  2511. soname_spec='${libname}${release}${shared_ext}$major'
  2512. ;;
  2513. aix[[4-9]]*)
  2514. version_type=linux # correct to gnu/linux during the next big refactor
  2515. need_lib_prefix=no
  2516. need_version=no
  2517. hardcode_into_libs=yes
  2518. if test "$host_cpu" = ia64; then
  2519. # AIX 5 supports IA64
  2520. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2521. shlibpath_var=LD_LIBRARY_PATH
  2522. else
  2523. # With GCC up to 2.95.x, collect2 would create an import file
  2524. # for dependence libraries. The import file would start with
  2525. # the line `#! .'. This would cause the generated library to
  2526. # depend on `.', always an invalid library. This was fixed in
  2527. # development snapshots of GCC prior to 3.0.
  2528. case $host_os in
  2529. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2530. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2531. echo ' yes '
  2532. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2533. :
  2534. else
  2535. can_build_shared=no
  2536. fi
  2537. ;;
  2538. esac
  2539. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2540. # soname into executable. Probably we can add versioning support to
  2541. # collect2, so additional links can be useful in future.
  2542. if test "$aix_use_runtimelinking" = yes; then
  2543. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2544. # instead of lib<name>.a to let people know that these are not
  2545. # typical AIX shared libraries.
  2546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2547. else
  2548. # We preserve .a as extension for shared libraries through AIX4.2
  2549. # and later when we are not doing run time linking.
  2550. library_names_spec='${libname}${release}.a $libname.a'
  2551. soname_spec='${libname}${release}${shared_ext}$major'
  2552. fi
  2553. shlibpath_var=LIBPATH
  2554. fi
  2555. ;;
  2556. amigaos*)
  2557. case $host_cpu in
  2558. powerpc)
  2559. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2560. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2562. ;;
  2563. m68k)
  2564. library_names_spec='$libname.ixlibrary $libname.a'
  2565. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2566. 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'
  2567. ;;
  2568. esac
  2569. ;;
  2570. beos*)
  2571. library_names_spec='${libname}${shared_ext}'
  2572. dynamic_linker="$host_os ld.so"
  2573. shlibpath_var=LIBRARY_PATH
  2574. ;;
  2575. bsdi[[45]]*)
  2576. version_type=linux # correct to gnu/linux during the next big refactor
  2577. need_version=no
  2578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2579. soname_spec='${libname}${release}${shared_ext}$major'
  2580. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2581. shlibpath_var=LD_LIBRARY_PATH
  2582. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2583. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2584. # the default ld.so.conf also contains /usr/contrib/lib and
  2585. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2586. # libtool to hard-code these into programs
  2587. ;;
  2588. cygwin* | mingw* | pw32* | cegcc*)
  2589. version_type=windows
  2590. shrext_cmds=".dll"
  2591. need_version=no
  2592. need_lib_prefix=no
  2593. case $GCC,$cc_basename in
  2594. yes,*)
  2595. # gcc
  2596. library_names_spec='$libname.dll.a'
  2597. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2598. postinstall_cmds='base_file=`basename \${file}`~
  2599. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2600. dldir=$destdir/`dirname \$dlpath`~
  2601. test -d \$dldir || mkdir -p \$dldir~
  2602. $install_prog $dir/$dlname \$dldir/$dlname~
  2603. chmod a+x \$dldir/$dlname~
  2604. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2605. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2606. fi'
  2607. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2608. dlpath=$dir/\$dldll~
  2609. $RM \$dlpath'
  2610. shlibpath_overrides_runpath=yes
  2611. case $host_os in
  2612. cygwin*)
  2613. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2614. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2615. m4_if([$1], [],[
  2616. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2617. ;;
  2618. mingw* | cegcc*)
  2619. # MinGW DLLs use traditional 'lib' prefix
  2620. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2621. ;;
  2622. pw32*)
  2623. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2624. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2625. ;;
  2626. esac
  2627. dynamic_linker='Win32 ld.exe'
  2628. ;;
  2629. *,cl*)
  2630. # Native MSVC
  2631. libname_spec='$name'
  2632. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2633. library_names_spec='${libname}.dll.lib'
  2634. case $build_os in
  2635. mingw*)
  2636. sys_lib_search_path_spec=
  2637. lt_save_ifs=$IFS
  2638. IFS=';'
  2639. for lt_path in $LIB
  2640. do
  2641. IFS=$lt_save_ifs
  2642. # Let DOS variable expansion print the short 8.3 style file name.
  2643. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2644. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2645. done
  2646. IFS=$lt_save_ifs
  2647. # Convert to MSYS style.
  2648. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2649. ;;
  2650. cygwin*)
  2651. # Convert to unix form, then to dos form, then back to unix form
  2652. # but this time dos style (no spaces!) so that the unix form looks
  2653. # like /cygdrive/c/PROGRA~1:/cygdr...
  2654. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2655. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2656. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2657. ;;
  2658. *)
  2659. sys_lib_search_path_spec="$LIB"
  2660. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2661. # It is most probably a Windows format PATH.
  2662. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2663. else
  2664. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2665. fi
  2666. # FIXME: find the short name or the path components, as spaces are
  2667. # common. (e.g. "Program Files" -> "PROGRA~1")
  2668. ;;
  2669. esac
  2670. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2671. postinstall_cmds='base_file=`basename \${file}`~
  2672. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2673. dldir=$destdir/`dirname \$dlpath`~
  2674. test -d \$dldir || mkdir -p \$dldir~
  2675. $install_prog $dir/$dlname \$dldir/$dlname'
  2676. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2677. dlpath=$dir/\$dldll~
  2678. $RM \$dlpath'
  2679. shlibpath_overrides_runpath=yes
  2680. dynamic_linker='Win32 link.exe'
  2681. ;;
  2682. *)
  2683. # Assume MSVC wrapper
  2684. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2685. dynamic_linker='Win32 ld.exe'
  2686. ;;
  2687. esac
  2688. # FIXME: first we should search . and the directory the executable is in
  2689. shlibpath_var=PATH
  2690. ;;
  2691. darwin* | rhapsody*)
  2692. dynamic_linker="$host_os dyld"
  2693. version_type=darwin
  2694. need_lib_prefix=no
  2695. need_version=no
  2696. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2697. soname_spec='${libname}${release}${major}$shared_ext'
  2698. shlibpath_overrides_runpath=yes
  2699. shlibpath_var=DYLD_LIBRARY_PATH
  2700. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2701. m4_if([$1], [],[
  2702. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2703. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2704. ;;
  2705. dgux*)
  2706. version_type=linux # correct to gnu/linux during the next big refactor
  2707. need_lib_prefix=no
  2708. need_version=no
  2709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2710. soname_spec='${libname}${release}${shared_ext}$major'
  2711. shlibpath_var=LD_LIBRARY_PATH
  2712. ;;
  2713. freebsd* | dragonfly*)
  2714. # DragonFly does not have aout. When/if they implement a new
  2715. # versioning mechanism, adjust this.
  2716. if test -x /usr/bin/objformat; then
  2717. objformat=`/usr/bin/objformat`
  2718. else
  2719. case $host_os in
  2720. freebsd[[23]].*) objformat=aout ;;
  2721. *) objformat=elf ;;
  2722. esac
  2723. fi
  2724. version_type=freebsd-$objformat
  2725. case $version_type in
  2726. freebsd-elf*)
  2727. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2728. need_version=no
  2729. need_lib_prefix=no
  2730. ;;
  2731. freebsd-*)
  2732. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2733. need_version=yes
  2734. ;;
  2735. esac
  2736. shlibpath_var=LD_LIBRARY_PATH
  2737. case $host_os in
  2738. freebsd2.*)
  2739. shlibpath_overrides_runpath=yes
  2740. ;;
  2741. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2742. shlibpath_overrides_runpath=yes
  2743. hardcode_into_libs=yes
  2744. ;;
  2745. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2746. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2747. shlibpath_overrides_runpath=no
  2748. hardcode_into_libs=yes
  2749. ;;
  2750. *) # from 4.6 on, and DragonFly
  2751. shlibpath_overrides_runpath=yes
  2752. hardcode_into_libs=yes
  2753. ;;
  2754. esac
  2755. ;;
  2756. haiku*)
  2757. version_type=linux # correct to gnu/linux during the next big refactor
  2758. need_lib_prefix=no
  2759. need_version=no
  2760. dynamic_linker="$host_os runtime_loader"
  2761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2762. soname_spec='${libname}${release}${shared_ext}$major'
  2763. shlibpath_var=LIBRARY_PATH
  2764. shlibpath_overrides_runpath=yes
  2765. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2766. hardcode_into_libs=yes
  2767. ;;
  2768. hpux9* | hpux10* | hpux11*)
  2769. # Give a soname corresponding to the major version so that dld.sl refuses to
  2770. # link against other versions.
  2771. version_type=sunos
  2772. need_lib_prefix=no
  2773. need_version=no
  2774. case $host_cpu in
  2775. ia64*)
  2776. shrext_cmds='.so'
  2777. hardcode_into_libs=yes
  2778. dynamic_linker="$host_os dld.so"
  2779. shlibpath_var=LD_LIBRARY_PATH
  2780. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2782. soname_spec='${libname}${release}${shared_ext}$major'
  2783. if test "X$HPUX_IA64_MODE" = X32; then
  2784. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2785. else
  2786. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2787. fi
  2788. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2789. ;;
  2790. hppa*64*)
  2791. shrext_cmds='.sl'
  2792. hardcode_into_libs=yes
  2793. dynamic_linker="$host_os dld.sl"
  2794. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2795. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2797. soname_spec='${libname}${release}${shared_ext}$major'
  2798. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2799. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2800. ;;
  2801. *)
  2802. shrext_cmds='.sl'
  2803. dynamic_linker="$host_os dld.sl"
  2804. shlibpath_var=SHLIB_PATH
  2805. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2807. soname_spec='${libname}${release}${shared_ext}$major'
  2808. ;;
  2809. esac
  2810. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2811. postinstall_cmds='chmod 555 $lib'
  2812. # or fails outright, so override atomically:
  2813. install_override_mode=555
  2814. ;;
  2815. interix[[3-9]]*)
  2816. version_type=linux # correct to gnu/linux during the next big refactor
  2817. need_lib_prefix=no
  2818. need_version=no
  2819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2820. soname_spec='${libname}${release}${shared_ext}$major'
  2821. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2822. shlibpath_var=LD_LIBRARY_PATH
  2823. shlibpath_overrides_runpath=no
  2824. hardcode_into_libs=yes
  2825. ;;
  2826. irix5* | irix6* | nonstopux*)
  2827. case $host_os in
  2828. nonstopux*) version_type=nonstopux ;;
  2829. *)
  2830. if test "$lt_cv_prog_gnu_ld" = yes; then
  2831. version_type=linux # correct to gnu/linux during the next big refactor
  2832. else
  2833. version_type=irix
  2834. fi ;;
  2835. esac
  2836. need_lib_prefix=no
  2837. need_version=no
  2838. soname_spec='${libname}${release}${shared_ext}$major'
  2839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2840. case $host_os in
  2841. irix5* | nonstopux*)
  2842. libsuff= shlibsuff=
  2843. ;;
  2844. *)
  2845. case $LD in # libtool.m4 will add one of these switches to LD
  2846. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2847. libsuff= shlibsuff= libmagic=32-bit;;
  2848. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2849. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2850. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2851. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2852. *) libsuff= shlibsuff= libmagic=never-match;;
  2853. esac
  2854. ;;
  2855. esac
  2856. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2857. shlibpath_overrides_runpath=no
  2858. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2859. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2860. hardcode_into_libs=yes
  2861. ;;
  2862. # No shared lib support for Linux oldld, aout, or coff.
  2863. linux*oldld* | linux*aout* | linux*coff*)
  2864. dynamic_linker=no
  2865. ;;
  2866. # This must be glibc/ELF.
  2867. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  2868. version_type=linux # correct to gnu/linux during the next big refactor
  2869. need_lib_prefix=no
  2870. need_version=no
  2871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2872. soname_spec='${libname}${release}${shared_ext}$major'
  2873. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2874. shlibpath_var=LD_LIBRARY_PATH
  2875. shlibpath_overrides_runpath=no
  2876. # Some binutils ld are patched to set DT_RUNPATH
  2877. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2878. [lt_cv_shlibpath_overrides_runpath=no
  2879. save_LDFLAGS=$LDFLAGS
  2880. save_libdir=$libdir
  2881. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2882. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2883. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2884. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2885. [lt_cv_shlibpath_overrides_runpath=yes])])
  2886. LDFLAGS=$save_LDFLAGS
  2887. libdir=$save_libdir
  2888. ])
  2889. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2890. # This implies no fast_install, which is unacceptable.
  2891. # Some rework will be needed to allow for fast_install
  2892. # before this can be enabled.
  2893. hardcode_into_libs=yes
  2894. # Append ld.so.conf contents to the search path
  2895. if test -f /etc/ld.so.conf; then
  2896. 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' ' '`
  2897. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2898. fi
  2899. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2900. # powerpc, because MkLinux only supported shared libraries with the
  2901. # GNU dynamic linker. Since this was broken with cross compilers,
  2902. # most powerpc-linux boxes support dynamic linking these days and
  2903. # people can always --disable-shared, the test was removed, and we
  2904. # assume the GNU/Linux dynamic linker is in use.
  2905. dynamic_linker='GNU/Linux ld.so'
  2906. ;;
  2907. netbsdelf*-gnu)
  2908. version_type=linux
  2909. need_lib_prefix=no
  2910. need_version=no
  2911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2912. soname_spec='${libname}${release}${shared_ext}$major'
  2913. shlibpath_var=LD_LIBRARY_PATH
  2914. shlibpath_overrides_runpath=no
  2915. hardcode_into_libs=yes
  2916. dynamic_linker='NetBSD ld.elf_so'
  2917. ;;
  2918. netbsd*)
  2919. version_type=sunos
  2920. need_lib_prefix=no
  2921. need_version=no
  2922. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2924. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2925. dynamic_linker='NetBSD (a.out) ld.so'
  2926. else
  2927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2928. soname_spec='${libname}${release}${shared_ext}$major'
  2929. dynamic_linker='NetBSD ld.elf_so'
  2930. fi
  2931. shlibpath_var=LD_LIBRARY_PATH
  2932. shlibpath_overrides_runpath=yes
  2933. hardcode_into_libs=yes
  2934. ;;
  2935. newsos6)
  2936. version_type=linux # correct to gnu/linux during the next big refactor
  2937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2938. shlibpath_var=LD_LIBRARY_PATH
  2939. shlibpath_overrides_runpath=yes
  2940. ;;
  2941. *nto* | *qnx*)
  2942. version_type=qnx
  2943. need_lib_prefix=no
  2944. need_version=no
  2945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2946. soname_spec='${libname}${release}${shared_ext}$major'
  2947. shlibpath_var=LD_LIBRARY_PATH
  2948. shlibpath_overrides_runpath=no
  2949. hardcode_into_libs=yes
  2950. dynamic_linker='ldqnx.so'
  2951. ;;
  2952. openbsd*)
  2953. version_type=sunos
  2954. sys_lib_dlsearch_path_spec="/usr/lib"
  2955. need_lib_prefix=no
  2956. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2957. case $host_os in
  2958. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2959. *) need_version=no ;;
  2960. esac
  2961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2962. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2963. shlibpath_var=LD_LIBRARY_PATH
  2964. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2965. case $host_os in
  2966. openbsd2.[[89]] | openbsd2.[[89]].*)
  2967. shlibpath_overrides_runpath=no
  2968. ;;
  2969. *)
  2970. shlibpath_overrides_runpath=yes
  2971. ;;
  2972. esac
  2973. else
  2974. shlibpath_overrides_runpath=yes
  2975. fi
  2976. ;;
  2977. os2*)
  2978. libname_spec='$name'
  2979. shrext_cmds=".dll"
  2980. need_lib_prefix=no
  2981. library_names_spec='$libname${shared_ext} $libname.a'
  2982. dynamic_linker='OS/2 ld.exe'
  2983. shlibpath_var=LIBPATH
  2984. ;;
  2985. osf3* | osf4* | osf5*)
  2986. version_type=osf
  2987. need_lib_prefix=no
  2988. need_version=no
  2989. soname_spec='${libname}${release}${shared_ext}$major'
  2990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2991. shlibpath_var=LD_LIBRARY_PATH
  2992. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2993. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2994. ;;
  2995. rdos*)
  2996. dynamic_linker=no
  2997. ;;
  2998. solaris*)
  2999. version_type=linux # correct to gnu/linux during the next big refactor
  3000. need_lib_prefix=no
  3001. need_version=no
  3002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3003. soname_spec='${libname}${release}${shared_ext}$major'
  3004. shlibpath_var=LD_LIBRARY_PATH
  3005. shlibpath_overrides_runpath=yes
  3006. hardcode_into_libs=yes
  3007. # ldd complains unless libraries are executable
  3008. postinstall_cmds='chmod +x $lib'
  3009. ;;
  3010. sunos4*)
  3011. version_type=sunos
  3012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3013. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3014. shlibpath_var=LD_LIBRARY_PATH
  3015. shlibpath_overrides_runpath=yes
  3016. if test "$with_gnu_ld" = yes; then
  3017. need_lib_prefix=no
  3018. fi
  3019. need_version=yes
  3020. ;;
  3021. sysv4 | sysv4.3*)
  3022. version_type=linux # correct to gnu/linux during the next big refactor
  3023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3024. soname_spec='${libname}${release}${shared_ext}$major'
  3025. shlibpath_var=LD_LIBRARY_PATH
  3026. case $host_vendor in
  3027. sni)
  3028. shlibpath_overrides_runpath=no
  3029. need_lib_prefix=no
  3030. runpath_var=LD_RUN_PATH
  3031. ;;
  3032. siemens)
  3033. need_lib_prefix=no
  3034. ;;
  3035. motorola)
  3036. need_lib_prefix=no
  3037. need_version=no
  3038. shlibpath_overrides_runpath=no
  3039. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3040. ;;
  3041. esac
  3042. ;;
  3043. sysv4*MP*)
  3044. if test -d /usr/nec ;then
  3045. version_type=linux # correct to gnu/linux during the next big refactor
  3046. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3047. soname_spec='$libname${shared_ext}.$major'
  3048. shlibpath_var=LD_LIBRARY_PATH
  3049. fi
  3050. ;;
  3051. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3052. version_type=freebsd-elf
  3053. need_lib_prefix=no
  3054. need_version=no
  3055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3056. soname_spec='${libname}${release}${shared_ext}$major'
  3057. shlibpath_var=LD_LIBRARY_PATH
  3058. shlibpath_overrides_runpath=yes
  3059. hardcode_into_libs=yes
  3060. if test "$with_gnu_ld" = yes; then
  3061. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3062. else
  3063. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3064. case $host_os in
  3065. sco3.2v5*)
  3066. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  3067. ;;
  3068. esac
  3069. fi
  3070. sys_lib_dlsearch_path_spec='/usr/lib'
  3071. ;;
  3072. tpf*)
  3073. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  3074. version_type=linux # correct to gnu/linux during the next big refactor
  3075. need_lib_prefix=no
  3076. need_version=no
  3077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3078. shlibpath_var=LD_LIBRARY_PATH
  3079. shlibpath_overrides_runpath=no
  3080. hardcode_into_libs=yes
  3081. ;;
  3082. uts4*)
  3083. version_type=linux # correct to gnu/linux during the next big refactor
  3084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3085. soname_spec='${libname}${release}${shared_ext}$major'
  3086. shlibpath_var=LD_LIBRARY_PATH
  3087. ;;
  3088. *)
  3089. dynamic_linker=no
  3090. ;;
  3091. esac
  3092. AC_MSG_RESULT([$dynamic_linker])
  3093. test "$dynamic_linker" = no && can_build_shared=no
  3094. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3095. if test "$GCC" = yes; then
  3096. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3097. fi
  3098. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  3099. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  3100. fi
  3101. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  3102. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  3103. fi
  3104. _LT_DECL([], [variables_saved_for_relink], [1],
  3105. [Variables whose values should be saved in libtool wrapper scripts and
  3106. restored at link time])
  3107. _LT_DECL([], [need_lib_prefix], [0],
  3108. [Do we need the "lib" prefix for modules?])
  3109. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  3110. _LT_DECL([], [version_type], [0], [Library versioning type])
  3111. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  3112. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  3113. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  3114. [Is shlibpath searched before the hard-coded library search path?])
  3115. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  3116. _LT_DECL([], [library_names_spec], [1],
  3117. [[List of archive names. First name is the real one, the rest are links.
  3118. The last name is the one that the linker finds with -lNAME]])
  3119. _LT_DECL([], [soname_spec], [1],
  3120. [[The coded name of the library, if different from the real name]])
  3121. _LT_DECL([], [install_override_mode], [1],
  3122. [Permission mode override for installation of shared libraries])
  3123. _LT_DECL([], [postinstall_cmds], [2],
  3124. [Command to use after installation of a shared archive])
  3125. _LT_DECL([], [postuninstall_cmds], [2],
  3126. [Command to use after uninstallation of a shared archive])
  3127. _LT_DECL([], [finish_cmds], [2],
  3128. [Commands used to finish a libtool library installation in a directory])
  3129. _LT_DECL([], [finish_eval], [1],
  3130. [[As "finish_cmds", except a single script fragment to be evaled but
  3131. not shown]])
  3132. _LT_DECL([], [hardcode_into_libs], [0],
  3133. [Whether we should hardcode library paths into libraries])
  3134. _LT_DECL([], [sys_lib_search_path_spec], [2],
  3135. [Compile-time system search path for libraries])
  3136. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  3137. [Run-time system search path for libraries])
  3138. ])# _LT_SYS_DYNAMIC_LINKER
  3139. # _LT_PATH_TOOL_PREFIX(TOOL)
  3140. # --------------------------
  3141. # find a file program which can recognize shared library
  3142. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  3143. [m4_require([_LT_DECL_EGREP])dnl
  3144. AC_MSG_CHECKING([for $1])
  3145. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3146. [case $MAGIC_CMD in
  3147. [[\\/*] | ?:[\\/]*])
  3148. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3149. ;;
  3150. *)
  3151. lt_save_MAGIC_CMD="$MAGIC_CMD"
  3152. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3153. dnl $ac_dummy forces splitting on constant user-supplied paths.
  3154. dnl POSIX.2 word splitting is done only on the output of word expansions,
  3155. dnl not every word. This closes a longstanding sh security hole.
  3156. ac_dummy="m4_if([$2], , $PATH, [$2])"
  3157. for ac_dir in $ac_dummy; do
  3158. IFS="$lt_save_ifs"
  3159. test -z "$ac_dir" && ac_dir=.
  3160. if test -f $ac_dir/$1; then
  3161. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3162. if test -n "$file_magic_test_file"; then
  3163. case $deplibs_check_method in
  3164. "file_magic "*)
  3165. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3166. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3167. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3168. $EGREP "$file_magic_regex" > /dev/null; then
  3169. :
  3170. else
  3171. cat <<_LT_EOF 1>&2
  3172. *** Warning: the command libtool uses to detect shared libraries,
  3173. *** $file_magic_cmd, produces output that libtool cannot recognize.
  3174. *** The result is that libtool may fail to recognize shared libraries
  3175. *** as such. This will affect the creation of libtool libraries that
  3176. *** depend on shared libraries, but programs linked with such libtool
  3177. *** libraries will work regardless of this problem. Nevertheless, you
  3178. *** may want to report the problem to your system manager and/or to
  3179. *** bug-libtool@gnu.org
  3180. _LT_EOF
  3181. fi ;;
  3182. esac
  3183. fi
  3184. break
  3185. fi
  3186. done
  3187. IFS="$lt_save_ifs"
  3188. MAGIC_CMD="$lt_save_MAGIC_CMD"
  3189. ;;
  3190. esac])
  3191. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3192. if test -n "$MAGIC_CMD"; then
  3193. AC_MSG_RESULT($MAGIC_CMD)
  3194. else
  3195. AC_MSG_RESULT(no)
  3196. fi
  3197. _LT_DECL([], [MAGIC_CMD], [0],
  3198. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  3199. ])# _LT_PATH_TOOL_PREFIX
  3200. # Old name:
  3201. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  3202. dnl aclocal-1.4 backwards compatibility:
  3203. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  3204. # _LT_PATH_MAGIC
  3205. # --------------
  3206. # find a file program which can recognize a shared library
  3207. m4_defun([_LT_PATH_MAGIC],
  3208. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3209. if test -z "$lt_cv_path_MAGIC_CMD"; then
  3210. if test -n "$ac_tool_prefix"; then
  3211. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3212. else
  3213. MAGIC_CMD=:
  3214. fi
  3215. fi
  3216. ])# _LT_PATH_MAGIC
  3217. # LT_PATH_LD
  3218. # ----------
  3219. # find the pathname to the GNU or non-GNU linker
  3220. AC_DEFUN([LT_PATH_LD],
  3221. [AC_REQUIRE([AC_PROG_CC])dnl
  3222. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3223. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3224. m4_require([_LT_DECL_SED])dnl
  3225. m4_require([_LT_DECL_EGREP])dnl
  3226. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  3227. AC_ARG_WITH([gnu-ld],
  3228. [AS_HELP_STRING([--with-gnu-ld],
  3229. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3230. [test "$withval" = no || with_gnu_ld=yes],
  3231. [with_gnu_ld=no])dnl
  3232. ac_prog=ld
  3233. if test "$GCC" = yes; then
  3234. # Check if gcc -print-prog-name=ld gives a path.
  3235. AC_MSG_CHECKING([for ld used by $CC])
  3236. case $host in
  3237. *-*-mingw*)
  3238. # gcc leaves a trailing carriage return which upsets mingw
  3239. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3240. *)
  3241. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3242. esac
  3243. case $ac_prog in
  3244. # Accept absolute paths.
  3245. [[\\/]]* | ?:[[\\/]]*)
  3246. re_direlt='/[[^/]][[^/]]*/\.\./'
  3247. # Canonicalize the pathname of ld
  3248. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3249. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3250. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3251. done
  3252. test -z "$LD" && LD="$ac_prog"
  3253. ;;
  3254. "")
  3255. # If it fails, then pretend we aren't using GCC.
  3256. ac_prog=ld
  3257. ;;
  3258. *)
  3259. # If it is relative, then search for the first ld in PATH.
  3260. with_gnu_ld=unknown
  3261. ;;
  3262. esac
  3263. elif test "$with_gnu_ld" = yes; then
  3264. AC_MSG_CHECKING([for GNU ld])
  3265. else
  3266. AC_MSG_CHECKING([for non-GNU ld])
  3267. fi
  3268. AC_CACHE_VAL(lt_cv_path_LD,
  3269. [if test -z "$LD"; then
  3270. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3271. for ac_dir in $PATH; do
  3272. IFS="$lt_save_ifs"
  3273. test -z "$ac_dir" && ac_dir=.
  3274. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3275. lt_cv_path_LD="$ac_dir/$ac_prog"
  3276. # Check to see if the program is GNU ld. I'd rather use --version,
  3277. # but apparently some variants of GNU ld only accept -v.
  3278. # Break only if it was the GNU/non-GNU ld that we prefer.
  3279. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3280. *GNU* | *'with BFD'*)
  3281. test "$with_gnu_ld" != no && break
  3282. ;;
  3283. *)
  3284. test "$with_gnu_ld" != yes && break
  3285. ;;
  3286. esac
  3287. fi
  3288. done
  3289. IFS="$lt_save_ifs"
  3290. else
  3291. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3292. fi])
  3293. LD="$lt_cv_path_LD"
  3294. if test -n "$LD"; then
  3295. AC_MSG_RESULT($LD)
  3296. else
  3297. AC_MSG_RESULT(no)
  3298. fi
  3299. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3300. _LT_PATH_LD_GNU
  3301. AC_SUBST([LD])
  3302. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  3303. ])# LT_PATH_LD
  3304. # Old names:
  3305. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3306. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3307. dnl aclocal-1.4 backwards compatibility:
  3308. dnl AC_DEFUN([AM_PROG_LD], [])
  3309. dnl AC_DEFUN([AC_PROG_LD], [])
  3310. # _LT_PATH_LD_GNU
  3311. #- --------------
  3312. m4_defun([_LT_PATH_LD_GNU],
  3313. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3314. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3315. case `$LD -v 2>&1 </dev/null` in
  3316. *GNU* | *'with BFD'*)
  3317. lt_cv_prog_gnu_ld=yes
  3318. ;;
  3319. *)
  3320. lt_cv_prog_gnu_ld=no
  3321. ;;
  3322. esac])
  3323. with_gnu_ld=$lt_cv_prog_gnu_ld
  3324. ])# _LT_PATH_LD_GNU
  3325. # _LT_CMD_RELOAD
  3326. # --------------
  3327. # find reload flag for linker
  3328. # -- PORTME Some linkers may need a different reload flag.
  3329. m4_defun([_LT_CMD_RELOAD],
  3330. [AC_CACHE_CHECK([for $LD option to reload object files],
  3331. lt_cv_ld_reload_flag,
  3332. [lt_cv_ld_reload_flag='-r'])
  3333. reload_flag=$lt_cv_ld_reload_flag
  3334. case $reload_flag in
  3335. "" | " "*) ;;
  3336. *) reload_flag=" $reload_flag" ;;
  3337. esac
  3338. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3339. case $host_os in
  3340. cygwin* | mingw* | pw32* | cegcc*)
  3341. if test "$GCC" != yes; then
  3342. reload_cmds=false
  3343. fi
  3344. ;;
  3345. darwin*)
  3346. if test "$GCC" = yes; then
  3347. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3348. else
  3349. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3350. fi
  3351. ;;
  3352. esac
  3353. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3354. _LT_TAGDECL([], [reload_cmds], [2])dnl
  3355. ])# _LT_CMD_RELOAD
  3356. # _LT_CHECK_MAGIC_METHOD
  3357. # ----------------------
  3358. # how to check for library dependencies
  3359. # -- PORTME fill in with the dynamic library characteristics
  3360. m4_defun([_LT_CHECK_MAGIC_METHOD],
  3361. [m4_require([_LT_DECL_EGREP])
  3362. m4_require([_LT_DECL_OBJDUMP])
  3363. AC_CACHE_CHECK([how to recognize dependent libraries],
  3364. lt_cv_deplibs_check_method,
  3365. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3366. lt_cv_file_magic_test_file=
  3367. lt_cv_deplibs_check_method='unknown'
  3368. # Need to set the preceding variable on all platforms that support
  3369. # interlibrary dependencies.
  3370. # 'none' -- dependencies not supported.
  3371. # `unknown' -- same as none, but documents that we really don't know.
  3372. # 'pass_all' -- all dependencies passed with no checks.
  3373. # 'test_compile' -- check by making test program.
  3374. # 'file_magic [[regex]]' -- check by looking for files in library path
  3375. # which responds to the $file_magic_cmd with a given extended regex.
  3376. # If you have `file' or equivalent on your system and you're not sure
  3377. # whether `pass_all' will *always* work, you probably want this one.
  3378. case $host_os in
  3379. aix[[4-9]]*)
  3380. lt_cv_deplibs_check_method=pass_all
  3381. ;;
  3382. beos*)
  3383. lt_cv_deplibs_check_method=pass_all
  3384. ;;
  3385. bsdi[[45]]*)
  3386. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3387. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3388. lt_cv_file_magic_test_file=/shlib/libc.so
  3389. ;;
  3390. cygwin*)
  3391. # func_win32_libid is a shell function defined in ltmain.sh
  3392. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3393. lt_cv_file_magic_cmd='func_win32_libid'
  3394. ;;
  3395. mingw* | pw32*)
  3396. # Base MSYS/MinGW do not provide the 'file' command needed by
  3397. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3398. # unless we find 'file', for example because we are cross-compiling.
  3399. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  3400. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  3401. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3402. lt_cv_file_magic_cmd='func_win32_libid'
  3403. else
  3404. # Keep this pattern in sync with the one in func_win32_libid.
  3405. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  3406. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3407. fi
  3408. ;;
  3409. cegcc*)
  3410. # use the weaker test based on 'objdump'. See mingw*.
  3411. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3412. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3413. ;;
  3414. darwin* | rhapsody*)
  3415. lt_cv_deplibs_check_method=pass_all
  3416. ;;
  3417. freebsd* | dragonfly*)
  3418. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3419. case $host_cpu in
  3420. i*86 )
  3421. # Not sure whether the presence of OpenBSD here was a mistake.
  3422. # Let's accept both of them until this is cleared up.
  3423. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3424. lt_cv_file_magic_cmd=/usr/bin/file
  3425. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3426. ;;
  3427. esac
  3428. else
  3429. lt_cv_deplibs_check_method=pass_all
  3430. fi
  3431. ;;
  3432. haiku*)
  3433. lt_cv_deplibs_check_method=pass_all
  3434. ;;
  3435. hpux10.20* | hpux11*)
  3436. lt_cv_file_magic_cmd=/usr/bin/file
  3437. case $host_cpu in
  3438. ia64*)
  3439. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3440. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3441. ;;
  3442. hppa*64*)
  3443. [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]']
  3444. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3445. ;;
  3446. *)
  3447. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  3448. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3449. ;;
  3450. esac
  3451. ;;
  3452. interix[[3-9]]*)
  3453. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3454. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3455. ;;
  3456. irix5* | irix6* | nonstopux*)
  3457. case $LD in
  3458. *-32|*"-32 ") libmagic=32-bit;;
  3459. *-n32|*"-n32 ") libmagic=N32;;
  3460. *-64|*"-64 ") libmagic=64-bit;;
  3461. *) libmagic=never-match;;
  3462. esac
  3463. lt_cv_deplibs_check_method=pass_all
  3464. ;;
  3465. # This must be glibc/ELF.
  3466. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3467. lt_cv_deplibs_check_method=pass_all
  3468. ;;
  3469. netbsd* | netbsdelf*-gnu)
  3470. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3471. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3472. else
  3473. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3474. fi
  3475. ;;
  3476. newos6*)
  3477. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3478. lt_cv_file_magic_cmd=/usr/bin/file
  3479. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3480. ;;
  3481. *nto* | *qnx*)
  3482. lt_cv_deplibs_check_method=pass_all
  3483. ;;
  3484. openbsd*)
  3485. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3486. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3487. else
  3488. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3489. fi
  3490. ;;
  3491. osf3* | osf4* | osf5*)
  3492. lt_cv_deplibs_check_method=pass_all
  3493. ;;
  3494. rdos*)
  3495. lt_cv_deplibs_check_method=pass_all
  3496. ;;
  3497. solaris*)
  3498. lt_cv_deplibs_check_method=pass_all
  3499. ;;
  3500. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3501. lt_cv_deplibs_check_method=pass_all
  3502. ;;
  3503. sysv4 | sysv4.3*)
  3504. case $host_vendor in
  3505. motorola)
  3506. 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]]'
  3507. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3508. ;;
  3509. ncr)
  3510. lt_cv_deplibs_check_method=pass_all
  3511. ;;
  3512. sequent)
  3513. lt_cv_file_magic_cmd='/bin/file'
  3514. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3515. ;;
  3516. sni)
  3517. lt_cv_file_magic_cmd='/bin/file'
  3518. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3519. lt_cv_file_magic_test_file=/lib/libc.so
  3520. ;;
  3521. siemens)
  3522. lt_cv_deplibs_check_method=pass_all
  3523. ;;
  3524. pc)
  3525. lt_cv_deplibs_check_method=pass_all
  3526. ;;
  3527. esac
  3528. ;;
  3529. tpf*)
  3530. lt_cv_deplibs_check_method=pass_all
  3531. ;;
  3532. esac
  3533. ])
  3534. file_magic_glob=
  3535. want_nocaseglob=no
  3536. if test "$build" = "$host"; then
  3537. case $host_os in
  3538. mingw* | pw32*)
  3539. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3540. want_nocaseglob=yes
  3541. else
  3542. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3543. fi
  3544. ;;
  3545. esac
  3546. fi
  3547. file_magic_cmd=$lt_cv_file_magic_cmd
  3548. deplibs_check_method=$lt_cv_deplibs_check_method
  3549. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3550. _LT_DECL([], [deplibs_check_method], [1],
  3551. [Method to check whether dependent libraries are shared objects])
  3552. _LT_DECL([], [file_magic_cmd], [1],
  3553. [Command to use when deplibs_check_method = "file_magic"])
  3554. _LT_DECL([], [file_magic_glob], [1],
  3555. [How to find potential files when deplibs_check_method = "file_magic"])
  3556. _LT_DECL([], [want_nocaseglob], [1],
  3557. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3558. ])# _LT_CHECK_MAGIC_METHOD
  3559. # LT_PATH_NM
  3560. # ----------
  3561. # find the pathname to a BSD- or MS-compatible name lister
  3562. AC_DEFUN([LT_PATH_NM],
  3563. [AC_REQUIRE([AC_PROG_CC])dnl
  3564. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3565. [if test -n "$NM"; then
  3566. # Let the user override the test.
  3567. lt_cv_path_NM="$NM"
  3568. else
  3569. lt_nm_to_check="${ac_tool_prefix}nm"
  3570. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3571. lt_nm_to_check="$lt_nm_to_check nm"
  3572. fi
  3573. for lt_tmp_nm in $lt_nm_to_check; do
  3574. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3575. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3576. IFS="$lt_save_ifs"
  3577. test -z "$ac_dir" && ac_dir=.
  3578. tmp_nm="$ac_dir/$lt_tmp_nm"
  3579. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3580. # Check to see if the nm accepts a BSD-compat flag.
  3581. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3582. # nm: unknown option "B" ignored
  3583. # Tru64's nm complains that /dev/null is an invalid object file
  3584. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3585. */dev/null* | *'Invalid file or object type'*)
  3586. lt_cv_path_NM="$tmp_nm -B"
  3587. break
  3588. ;;
  3589. *)
  3590. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3591. */dev/null*)
  3592. lt_cv_path_NM="$tmp_nm -p"
  3593. break
  3594. ;;
  3595. *)
  3596. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3597. continue # so that we can try to find one that supports BSD flags
  3598. ;;
  3599. esac
  3600. ;;
  3601. esac
  3602. fi
  3603. done
  3604. IFS="$lt_save_ifs"
  3605. done
  3606. : ${lt_cv_path_NM=no}
  3607. fi])
  3608. if test "$lt_cv_path_NM" != "no"; then
  3609. NM="$lt_cv_path_NM"
  3610. else
  3611. # Didn't find any BSD compatible name lister, look for dumpbin.
  3612. if test -n "$DUMPBIN"; then :
  3613. # Let the user override the test.
  3614. else
  3615. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3616. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3617. *COFF*)
  3618. DUMPBIN="$DUMPBIN -symbols"
  3619. ;;
  3620. *)
  3621. DUMPBIN=:
  3622. ;;
  3623. esac
  3624. fi
  3625. AC_SUBST([DUMPBIN])
  3626. if test "$DUMPBIN" != ":"; then
  3627. NM="$DUMPBIN"
  3628. fi
  3629. fi
  3630. test -z "$NM" && NM=nm
  3631. AC_SUBST([NM])
  3632. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3633. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3634. [lt_cv_nm_interface="BSD nm"
  3635. echo "int some_variable = 0;" > conftest.$ac_ext
  3636. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3637. (eval "$ac_compile" 2>conftest.err)
  3638. cat conftest.err >&AS_MESSAGE_LOG_FD
  3639. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3640. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3641. cat conftest.err >&AS_MESSAGE_LOG_FD
  3642. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3643. cat conftest.out >&AS_MESSAGE_LOG_FD
  3644. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3645. lt_cv_nm_interface="MS dumpbin"
  3646. fi
  3647. rm -f conftest*])
  3648. ])# LT_PATH_NM
  3649. # Old names:
  3650. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3651. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3652. dnl aclocal-1.4 backwards compatibility:
  3653. dnl AC_DEFUN([AM_PROG_NM], [])
  3654. dnl AC_DEFUN([AC_PROG_NM], [])
  3655. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3656. # --------------------------------
  3657. # how to determine the name of the shared library
  3658. # associated with a specific link library.
  3659. # -- PORTME fill in with the dynamic library characteristics
  3660. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3661. [m4_require([_LT_DECL_EGREP])
  3662. m4_require([_LT_DECL_OBJDUMP])
  3663. m4_require([_LT_DECL_DLLTOOL])
  3664. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3665. lt_cv_sharedlib_from_linklib_cmd,
  3666. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3667. case $host_os in
  3668. cygwin* | mingw* | pw32* | cegcc*)
  3669. # two different shell functions defined in ltmain.sh
  3670. # decide which to use based on capabilities of $DLLTOOL
  3671. case `$DLLTOOL --help 2>&1` in
  3672. *--identify-strict*)
  3673. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3674. ;;
  3675. *)
  3676. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3677. ;;
  3678. esac
  3679. ;;
  3680. *)
  3681. # fallback: assume linklib IS sharedlib
  3682. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3683. ;;
  3684. esac
  3685. ])
  3686. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3687. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3688. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3689. [Command to associate shared and link libraries])
  3690. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3691. # _LT_PATH_MANIFEST_TOOL
  3692. # ----------------------
  3693. # locate the manifest tool
  3694. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3695. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3696. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3697. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3698. [lt_cv_path_mainfest_tool=no
  3699. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3700. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3701. cat conftest.err >&AS_MESSAGE_LOG_FD
  3702. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3703. lt_cv_path_mainfest_tool=yes
  3704. fi
  3705. rm -f conftest*])
  3706. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3707. MANIFEST_TOOL=:
  3708. fi
  3709. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3710. ])# _LT_PATH_MANIFEST_TOOL
  3711. # LT_LIB_M
  3712. # --------
  3713. # check for math library
  3714. AC_DEFUN([LT_LIB_M],
  3715. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3716. LIBM=
  3717. case $host in
  3718. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3719. # These system don't have libm, or don't need it
  3720. ;;
  3721. *-ncr-sysv4.3*)
  3722. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3723. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3724. ;;
  3725. *)
  3726. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3727. ;;
  3728. esac
  3729. AC_SUBST([LIBM])
  3730. ])# LT_LIB_M
  3731. # Old name:
  3732. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3733. dnl aclocal-1.4 backwards compatibility:
  3734. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3735. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3736. # -------------------------------
  3737. m4_defun([_LT_COMPILER_NO_RTTI],
  3738. [m4_require([_LT_TAG_COMPILER])dnl
  3739. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3740. if test "$GCC" = yes; then
  3741. case $cc_basename in
  3742. nvcc*)
  3743. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3744. *)
  3745. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3746. esac
  3747. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3748. lt_cv_prog_compiler_rtti_exceptions,
  3749. [-fno-rtti -fno-exceptions], [],
  3750. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3751. fi
  3752. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3753. [Compiler flag to turn off builtin functions])
  3754. ])# _LT_COMPILER_NO_RTTI
  3755. # _LT_CMD_GLOBAL_SYMBOLS
  3756. # ----------------------
  3757. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3758. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3759. AC_REQUIRE([AC_PROG_CC])dnl
  3760. AC_REQUIRE([AC_PROG_AWK])dnl
  3761. AC_REQUIRE([LT_PATH_NM])dnl
  3762. AC_REQUIRE([LT_PATH_LD])dnl
  3763. m4_require([_LT_DECL_SED])dnl
  3764. m4_require([_LT_DECL_EGREP])dnl
  3765. m4_require([_LT_TAG_COMPILER])dnl
  3766. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3767. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3768. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3769. [
  3770. # These are sane defaults that work on at least a few old systems.
  3771. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3772. # Character class describing NM global symbol codes.
  3773. symcode='[[BCDEGRST]]'
  3774. # Regexp to match symbols that can be accessed directly from C.
  3775. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3776. # Define system-specific variables.
  3777. case $host_os in
  3778. aix*)
  3779. symcode='[[BCDT]]'
  3780. ;;
  3781. cygwin* | mingw* | pw32* | cegcc*)
  3782. symcode='[[ABCDGISTW]]'
  3783. ;;
  3784. hpux*)
  3785. if test "$host_cpu" = ia64; then
  3786. symcode='[[ABCDEGRST]]'
  3787. fi
  3788. ;;
  3789. irix* | nonstopux*)
  3790. symcode='[[BCDEGRST]]'
  3791. ;;
  3792. osf*)
  3793. symcode='[[BCDEGQRST]]'
  3794. ;;
  3795. solaris*)
  3796. symcode='[[BDRT]]'
  3797. ;;
  3798. sco3.2v5*)
  3799. symcode='[[DT]]'
  3800. ;;
  3801. sysv4.2uw2*)
  3802. symcode='[[DT]]'
  3803. ;;
  3804. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3805. symcode='[[ABDT]]'
  3806. ;;
  3807. sysv4)
  3808. symcode='[[DFNSTU]]'
  3809. ;;
  3810. esac
  3811. # If we're using GNU nm, then use its standard symbol codes.
  3812. case `$NM -V 2>&1` in
  3813. *GNU* | *'with BFD'*)
  3814. symcode='[[ABCDGIRSTW]]' ;;
  3815. esac
  3816. # Transform an extracted symbol line into a proper C declaration.
  3817. # Some systems (esp. on ia64) link data and code symbols differently,
  3818. # so use this general approach.
  3819. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3820. # Transform an extracted symbol line into symbol name and symbol address
  3821. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3822. 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'"
  3823. # Handle CRLF in mingw tool chain
  3824. opt_cr=
  3825. case $build_os in
  3826. mingw*)
  3827. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3828. ;;
  3829. esac
  3830. # Try without a prefix underscore, then with it.
  3831. for ac_symprfx in "" "_"; do
  3832. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3833. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3834. # Write the raw and C identifiers.
  3835. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3836. # Fake it for dumpbin and say T for any non-static function
  3837. # and D for any global variable.
  3838. # Also find C++ and __fastcall symbols from MSVC++,
  3839. # which start with @ or ?.
  3840. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3841. " {last_section=section; section=\$ 3};"\
  3842. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3843. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3844. " \$ 0!~/External *\|/{next};"\
  3845. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3846. " {if(hide[section]) next};"\
  3847. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3848. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3849. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3850. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3851. " ' prfx=^$ac_symprfx]"
  3852. else
  3853. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3854. fi
  3855. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3856. # Check to see that the pipe works correctly.
  3857. pipe_works=no
  3858. rm -f conftest*
  3859. cat > conftest.$ac_ext <<_LT_EOF
  3860. #ifdef __cplusplus
  3861. extern "C" {
  3862. #endif
  3863. char nm_test_var;
  3864. void nm_test_func(void);
  3865. void nm_test_func(void){}
  3866. #ifdef __cplusplus
  3867. }
  3868. #endif
  3869. int main(){nm_test_var='a';nm_test_func();return(0);}
  3870. _LT_EOF
  3871. if AC_TRY_EVAL(ac_compile); then
  3872. # Now try to grab the symbols.
  3873. nlist=conftest.nm
  3874. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3875. # Try sorting and uniquifying the output.
  3876. if sort "$nlist" | uniq > "$nlist"T; then
  3877. mv -f "$nlist"T "$nlist"
  3878. else
  3879. rm -f "$nlist"T
  3880. fi
  3881. # Make sure that we snagged all the symbols we need.
  3882. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3883. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3884. cat <<_LT_EOF > conftest.$ac_ext
  3885. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3886. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3887. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3888. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3889. # define LT@&t@_DLSYM_CONST
  3890. #elif defined(__osf__)
  3891. /* This system does not cope well with relocations in const data. */
  3892. # define LT@&t@_DLSYM_CONST
  3893. #else
  3894. # define LT@&t@_DLSYM_CONST const
  3895. #endif
  3896. #ifdef __cplusplus
  3897. extern "C" {
  3898. #endif
  3899. _LT_EOF
  3900. # Now generate the symbol file.
  3901. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3902. cat <<_LT_EOF >> conftest.$ac_ext
  3903. /* The mapping between symbol names and symbols. */
  3904. LT@&t@_DLSYM_CONST struct {
  3905. const char *name;
  3906. void *address;
  3907. }
  3908. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3909. {
  3910. { "@PROGRAM@", (void *) 0 },
  3911. _LT_EOF
  3912. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3913. cat <<\_LT_EOF >> conftest.$ac_ext
  3914. {0, (void *) 0}
  3915. };
  3916. /* This works around a problem in FreeBSD linker */
  3917. #ifdef FREEBSD_WORKAROUND
  3918. static const void *lt_preloaded_setup() {
  3919. return lt__PROGRAM__LTX_preloaded_symbols;
  3920. }
  3921. #endif
  3922. #ifdef __cplusplus
  3923. }
  3924. #endif
  3925. _LT_EOF
  3926. # Now try linking the two files.
  3927. mv conftest.$ac_objext conftstm.$ac_objext
  3928. lt_globsym_save_LIBS=$LIBS
  3929. lt_globsym_save_CFLAGS=$CFLAGS
  3930. LIBS="conftstm.$ac_objext"
  3931. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3932. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3933. pipe_works=yes
  3934. fi
  3935. LIBS=$lt_globsym_save_LIBS
  3936. CFLAGS=$lt_globsym_save_CFLAGS
  3937. else
  3938. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3939. fi
  3940. else
  3941. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3942. fi
  3943. else
  3944. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3945. fi
  3946. else
  3947. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3948. cat conftest.$ac_ext >&5
  3949. fi
  3950. rm -rf conftest* conftst*
  3951. # Do not use the global_symbol_pipe unless it works.
  3952. if test "$pipe_works" = yes; then
  3953. break
  3954. else
  3955. lt_cv_sys_global_symbol_pipe=
  3956. fi
  3957. done
  3958. ])
  3959. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3960. lt_cv_sys_global_symbol_to_cdecl=
  3961. fi
  3962. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3963. AC_MSG_RESULT(failed)
  3964. else
  3965. AC_MSG_RESULT(ok)
  3966. fi
  3967. # Response file support.
  3968. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3969. nm_file_list_spec='@'
  3970. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3971. nm_file_list_spec='@'
  3972. fi
  3973. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3974. [Take the output of nm and produce a listing of raw symbols and C names])
  3975. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3976. [Transform the output of nm in a proper C declaration])
  3977. _LT_DECL([global_symbol_to_c_name_address],
  3978. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3979. [Transform the output of nm in a C name address pair])
  3980. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3981. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3982. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3983. _LT_DECL([], [nm_file_list_spec], [1],
  3984. [Specify filename containing input files for $NM])
  3985. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3986. # _LT_COMPILER_PIC([TAGNAME])
  3987. # ---------------------------
  3988. m4_defun([_LT_COMPILER_PIC],
  3989. [m4_require([_LT_TAG_COMPILER])dnl
  3990. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3991. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3992. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3993. m4_if([$1], [CXX], [
  3994. # C++ specific cases for pic, static, wl, etc.
  3995. if test "$GXX" = yes; then
  3996. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3997. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3998. case $host_os in
  3999. aix*)
  4000. # All AIX code is PIC.
  4001. if test "$host_cpu" = ia64; then
  4002. # AIX 5 now supports IA64 processor
  4003. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4004. fi
  4005. ;;
  4006. amigaos*)
  4007. case $host_cpu in
  4008. powerpc)
  4009. # see comment about AmigaOS4 .so support
  4010. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4011. ;;
  4012. m68k)
  4013. # FIXME: we need at least 68020 code to build shared libraries, but
  4014. # adding the `-m68020' flag to GCC prevents building anything better,
  4015. # like `-m68040'.
  4016. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4017. ;;
  4018. esac
  4019. ;;
  4020. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4021. # PIC is the default for these OSes.
  4022. ;;
  4023. mingw* | cygwin* | os2* | pw32* | cegcc*)
  4024. # This hack is so that the source file can tell whether it is being
  4025. # built for inclusion in a dll (and should export symbols for example).
  4026. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4027. # (--disable-auto-import) libraries
  4028. m4_if([$1], [GCJ], [],
  4029. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4030. ;;
  4031. darwin* | rhapsody*)
  4032. # PIC is the default on this platform
  4033. # Common symbols not allowed in MH_DYLIB files
  4034. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4035. ;;
  4036. *djgpp*)
  4037. # DJGPP does not support shared libraries at all
  4038. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4039. ;;
  4040. haiku*)
  4041. # PIC is the default for Haiku.
  4042. # The "-static" flag exists, but is broken.
  4043. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  4044. ;;
  4045. interix[[3-9]]*)
  4046. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4047. # Instead, we relocate shared libraries at runtime.
  4048. ;;
  4049. sysv4*MP*)
  4050. if test -d /usr/nec; then
  4051. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4052. fi
  4053. ;;
  4054. hpux*)
  4055. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4056. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4057. # sets the default TLS model and affects inlining.
  4058. case $host_cpu in
  4059. hppa*64*)
  4060. ;;
  4061. *)
  4062. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4063. ;;
  4064. esac
  4065. ;;
  4066. *qnx* | *nto*)
  4067. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4068. # it will coredump.
  4069. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4070. ;;
  4071. *)
  4072. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4073. ;;
  4074. esac
  4075. else
  4076. case $host_os in
  4077. aix[[4-9]]*)
  4078. # All AIX code is PIC.
  4079. if test "$host_cpu" = ia64; then
  4080. # AIX 5 now supports IA64 processor
  4081. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4082. else
  4083. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4084. fi
  4085. ;;
  4086. chorus*)
  4087. case $cc_basename in
  4088. cxch68*)
  4089. # Green Hills C++ Compiler
  4090. # _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"
  4091. ;;
  4092. esac
  4093. ;;
  4094. mingw* | cygwin* | os2* | pw32* | cegcc*)
  4095. # This hack is so that the source file can tell whether it is being
  4096. # built for inclusion in a dll (and should export symbols for example).
  4097. m4_if([$1], [GCJ], [],
  4098. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4099. ;;
  4100. dgux*)
  4101. case $cc_basename in
  4102. ec++*)
  4103. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4104. ;;
  4105. ghcx*)
  4106. # Green Hills C++ Compiler
  4107. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4108. ;;
  4109. *)
  4110. ;;
  4111. esac
  4112. ;;
  4113. freebsd* | dragonfly*)
  4114. # FreeBSD uses GNU C++
  4115. ;;
  4116. hpux9* | hpux10* | hpux11*)
  4117. case $cc_basename in
  4118. CC*)
  4119. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4120. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4121. if test "$host_cpu" != ia64; then
  4122. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4123. fi
  4124. ;;
  4125. aCC*)
  4126. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4127. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4128. case $host_cpu in
  4129. hppa*64*|ia64*)
  4130. # +Z the default
  4131. ;;
  4132. *)
  4133. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4134. ;;
  4135. esac
  4136. ;;
  4137. *)
  4138. ;;
  4139. esac
  4140. ;;
  4141. interix*)
  4142. # This is c89, which is MS Visual C++ (no shared libs)
  4143. # Anyone wants to do a port?
  4144. ;;
  4145. irix5* | irix6* | nonstopux*)
  4146. case $cc_basename in
  4147. CC*)
  4148. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4149. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4150. # CC pic flag -KPIC is the default.
  4151. ;;
  4152. *)
  4153. ;;
  4154. esac
  4155. ;;
  4156. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4157. case $cc_basename in
  4158. KCC*)
  4159. # KAI C++ Compiler
  4160. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4161. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4162. ;;
  4163. ecpc* )
  4164. # old Intel C++ for x86_64 which still supported -KPIC.
  4165. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4166. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4167. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4168. ;;
  4169. icpc* )
  4170. # Intel C++, used to be incompatible with GCC.
  4171. # ICC 10 doesn't accept -KPIC any more.
  4172. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4173. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4174. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4175. ;;
  4176. pgCC* | pgcpp*)
  4177. # Portland Group C++ compiler
  4178. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4179. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4180. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4181. ;;
  4182. cxx*)
  4183. # Compaq C++
  4184. # Make sure the PIC flag is empty. It appears that all Alpha
  4185. # Linux and Compaq Tru64 Unix objects are PIC.
  4186. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4187. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4188. ;;
  4189. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  4190. # IBM XL 8.0, 9.0 on PPC and BlueGene
  4191. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4192. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4193. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4194. ;;
  4195. *)
  4196. case `$CC -V 2>&1 | sed 5q` in
  4197. *Sun\ C*)
  4198. # Sun C++ 5.9
  4199. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4200. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4201. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4202. ;;
  4203. esac
  4204. ;;
  4205. esac
  4206. ;;
  4207. lynxos*)
  4208. ;;
  4209. m88k*)
  4210. ;;
  4211. mvs*)
  4212. case $cc_basename in
  4213. cxx*)
  4214. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4215. ;;
  4216. *)
  4217. ;;
  4218. esac
  4219. ;;
  4220. netbsd* | netbsdelf*-gnu)
  4221. ;;
  4222. *qnx* | *nto*)
  4223. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4224. # it will coredump.
  4225. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4226. ;;
  4227. osf3* | osf4* | osf5*)
  4228. case $cc_basename in
  4229. KCC*)
  4230. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4231. ;;
  4232. RCC*)
  4233. # Rational C++ 2.4.1
  4234. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4235. ;;
  4236. cxx*)
  4237. # Digital/Compaq C++
  4238. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4239. # Make sure the PIC flag is empty. It appears that all Alpha
  4240. # Linux and Compaq Tru64 Unix objects are PIC.
  4241. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4242. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4243. ;;
  4244. *)
  4245. ;;
  4246. esac
  4247. ;;
  4248. psos*)
  4249. ;;
  4250. solaris*)
  4251. case $cc_basename in
  4252. CC* | sunCC*)
  4253. # Sun C++ 4.2, 5.x and Centerline C++
  4254. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4255. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4256. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4257. ;;
  4258. gcx*)
  4259. # Green Hills C++ Compiler
  4260. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4261. ;;
  4262. *)
  4263. ;;
  4264. esac
  4265. ;;
  4266. sunos4*)
  4267. case $cc_basename in
  4268. CC*)
  4269. # Sun C++ 4.x
  4270. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4271. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4272. ;;
  4273. lcc*)
  4274. # Lucid
  4275. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4276. ;;
  4277. *)
  4278. ;;
  4279. esac
  4280. ;;
  4281. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4282. case $cc_basename in
  4283. CC*)
  4284. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4285. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4286. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4287. ;;
  4288. esac
  4289. ;;
  4290. tandem*)
  4291. case $cc_basename in
  4292. NCC*)
  4293. # NonStop-UX NCC 3.20
  4294. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4295. ;;
  4296. *)
  4297. ;;
  4298. esac
  4299. ;;
  4300. vxworks*)
  4301. ;;
  4302. *)
  4303. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4304. ;;
  4305. esac
  4306. fi
  4307. ],
  4308. [
  4309. if test "$GCC" = yes; then
  4310. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4311. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4312. case $host_os in
  4313. aix*)
  4314. # All AIX code is PIC.
  4315. if test "$host_cpu" = ia64; then
  4316. # AIX 5 now supports IA64 processor
  4317. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4318. fi
  4319. ;;
  4320. amigaos*)
  4321. case $host_cpu in
  4322. powerpc)
  4323. # see comment about AmigaOS4 .so support
  4324. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4325. ;;
  4326. m68k)
  4327. # FIXME: we need at least 68020 code to build shared libraries, but
  4328. # adding the `-m68020' flag to GCC prevents building anything better,
  4329. # like `-m68040'.
  4330. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4331. ;;
  4332. esac
  4333. ;;
  4334. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4335. # PIC is the default for these OSes.
  4336. ;;
  4337. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4338. # This hack is so that the source file can tell whether it is being
  4339. # built for inclusion in a dll (and should export symbols for example).
  4340. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4341. # (--disable-auto-import) libraries
  4342. m4_if([$1], [GCJ], [],
  4343. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4344. ;;
  4345. darwin* | rhapsody*)
  4346. # PIC is the default on this platform
  4347. # Common symbols not allowed in MH_DYLIB files
  4348. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4349. ;;
  4350. haiku*)
  4351. # PIC is the default for Haiku.
  4352. # The "-static" flag exists, but is broken.
  4353. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  4354. ;;
  4355. hpux*)
  4356. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4357. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4358. # sets the default TLS model and affects inlining.
  4359. case $host_cpu in
  4360. hppa*64*)
  4361. # +Z the default
  4362. ;;
  4363. *)
  4364. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4365. ;;
  4366. esac
  4367. ;;
  4368. interix[[3-9]]*)
  4369. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4370. # Instead, we relocate shared libraries at runtime.
  4371. ;;
  4372. msdosdjgpp*)
  4373. # Just because we use GCC doesn't mean we suddenly get shared libraries
  4374. # on systems that don't support them.
  4375. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4376. enable_shared=no
  4377. ;;
  4378. *nto* | *qnx*)
  4379. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4380. # it will coredump.
  4381. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4382. ;;
  4383. sysv4*MP*)
  4384. if test -d /usr/nec; then
  4385. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4386. fi
  4387. ;;
  4388. *)
  4389. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4390. ;;
  4391. esac
  4392. case $cc_basename in
  4393. nvcc*) # Cuda Compiler Driver 2.2
  4394. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  4395. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4396. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  4397. fi
  4398. ;;
  4399. esac
  4400. else
  4401. # PORTME Check for flag to pass linker flags through the system compiler.
  4402. case $host_os in
  4403. aix*)
  4404. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4405. if test "$host_cpu" = ia64; then
  4406. # AIX 5 now supports IA64 processor
  4407. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4408. else
  4409. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4410. fi
  4411. ;;
  4412. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4413. # This hack is so that the source file can tell whether it is being
  4414. # built for inclusion in a dll (and should export symbols for example).
  4415. m4_if([$1], [GCJ], [],
  4416. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4417. ;;
  4418. hpux9* | hpux10* | hpux11*)
  4419. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4420. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4421. # not for PA HP-UX.
  4422. case $host_cpu in
  4423. hppa*64*|ia64*)
  4424. # +Z the default
  4425. ;;
  4426. *)
  4427. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4428. ;;
  4429. esac
  4430. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4431. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4432. ;;
  4433. irix5* | irix6* | nonstopux*)
  4434. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4435. # PIC (with -KPIC) is the default.
  4436. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4437. ;;
  4438. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4439. case $cc_basename in
  4440. # old Intel for x86_64 which still supported -KPIC.
  4441. ecc*)
  4442. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4443. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4444. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4445. ;;
  4446. # icc used to be incompatible with GCC.
  4447. # ICC 10 doesn't accept -KPIC any more.
  4448. icc* | ifort*)
  4449. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4450. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4451. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4452. ;;
  4453. # Lahey Fortran 8.1.
  4454. lf95*)
  4455. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4456. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  4457. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  4458. ;;
  4459. nagfor*)
  4460. # NAG Fortran compiler
  4461. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4462. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4463. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4464. ;;
  4465. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  4466. # Portland Group compilers (*not* the Pentium gcc compiler,
  4467. # which looks to be a dead project)
  4468. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4469. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4470. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4471. ;;
  4472. ccc*)
  4473. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4474. # All Alpha code is PIC.
  4475. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4476. ;;
  4477. xl* | bgxl* | bgf* | mpixl*)
  4478. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  4479. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4480. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4481. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4482. ;;
  4483. *)
  4484. case `$CC -V 2>&1 | sed 5q` in
  4485. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  4486. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4487. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4488. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4489. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4490. ;;
  4491. *Sun\ F* | *Sun*Fortran*)
  4492. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4493. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4494. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4495. ;;
  4496. *Sun\ C*)
  4497. # Sun C 5.9
  4498. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4499. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4500. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4501. ;;
  4502. *Intel*\ [[CF]]*Compiler*)
  4503. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4504. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4505. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4506. ;;
  4507. *Portland\ Group*)
  4508. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4509. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4510. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4511. ;;
  4512. esac
  4513. ;;
  4514. esac
  4515. ;;
  4516. newsos6)
  4517. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4518. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4519. ;;
  4520. *nto* | *qnx*)
  4521. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4522. # it will coredump.
  4523. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4524. ;;
  4525. osf3* | osf4* | osf5*)
  4526. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4527. # All OSF/1 code is PIC.
  4528. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4529. ;;
  4530. rdos*)
  4531. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4532. ;;
  4533. solaris*)
  4534. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4535. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4536. case $cc_basename in
  4537. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4538. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4539. *)
  4540. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4541. esac
  4542. ;;
  4543. sunos4*)
  4544. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4545. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4546. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4547. ;;
  4548. sysv4 | sysv4.2uw2* | sysv4.3*)
  4549. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4550. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4551. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4552. ;;
  4553. sysv4*MP*)
  4554. if test -d /usr/nec ;then
  4555. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4556. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4557. fi
  4558. ;;
  4559. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4560. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4561. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4562. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4563. ;;
  4564. unicos*)
  4565. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4566. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4567. ;;
  4568. uts4*)
  4569. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4570. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4571. ;;
  4572. *)
  4573. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4574. ;;
  4575. esac
  4576. fi
  4577. ])
  4578. case $host_os in
  4579. # For platforms which do not support PIC, -DPIC is meaningless:
  4580. *djgpp*)
  4581. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4582. ;;
  4583. *)
  4584. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4585. ;;
  4586. esac
  4587. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4588. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4589. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4590. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4591. #
  4592. # Check to make sure the PIC flag actually works.
  4593. #
  4594. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4595. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4596. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4597. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4598. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4599. "" | " "*) ;;
  4600. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4601. esac],
  4602. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4603. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4604. fi
  4605. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4606. [Additional compiler flags for building library objects])
  4607. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4608. [How to pass a linker flag through the compiler])
  4609. #
  4610. # Check to make sure the static flag actually works.
  4611. #
  4612. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4613. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4614. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4615. $lt_tmp_static_flag,
  4616. [],
  4617. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4618. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4619. [Compiler flag to prevent dynamic linking])
  4620. ])# _LT_COMPILER_PIC
  4621. # _LT_LINKER_SHLIBS([TAGNAME])
  4622. # ----------------------------
  4623. # See if the linker supports building shared libraries.
  4624. m4_defun([_LT_LINKER_SHLIBS],
  4625. [AC_REQUIRE([LT_PATH_LD])dnl
  4626. AC_REQUIRE([LT_PATH_NM])dnl
  4627. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4628. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4629. m4_require([_LT_DECL_EGREP])dnl
  4630. m4_require([_LT_DECL_SED])dnl
  4631. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4632. m4_require([_LT_TAG_COMPILER])dnl
  4633. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4634. m4_if([$1], [CXX], [
  4635. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4636. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4637. case $host_os in
  4638. aix[[4-9]]*)
  4639. # If we're using GNU nm, then we don't want the "-C" option.
  4640. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4641. # Also, AIX nm treats weak defined symbols like other global defined
  4642. # symbols, whereas GNU nm marks them as "W".
  4643. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4644. _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'
  4645. else
  4646. _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'
  4647. fi
  4648. ;;
  4649. pw32*)
  4650. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4651. ;;
  4652. cygwin* | mingw* | cegcc*)
  4653. case $cc_basename in
  4654. cl*)
  4655. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4656. ;;
  4657. *)
  4658. _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'
  4659. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4660. ;;
  4661. esac
  4662. ;;
  4663. linux* | k*bsd*-gnu | gnu*)
  4664. _LT_TAGVAR(link_all_deplibs, $1)=no
  4665. ;;
  4666. *)
  4667. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4668. ;;
  4669. esac
  4670. ], [
  4671. runpath_var=
  4672. _LT_TAGVAR(allow_undefined_flag, $1)=
  4673. _LT_TAGVAR(always_export_symbols, $1)=no
  4674. _LT_TAGVAR(archive_cmds, $1)=
  4675. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4676. _LT_TAGVAR(compiler_needs_object, $1)=no
  4677. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4678. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4679. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4680. _LT_TAGVAR(hardcode_automatic, $1)=no
  4681. _LT_TAGVAR(hardcode_direct, $1)=no
  4682. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4683. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4684. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4685. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4686. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4687. _LT_TAGVAR(inherit_rpath, $1)=no
  4688. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4689. _LT_TAGVAR(module_cmds, $1)=
  4690. _LT_TAGVAR(module_expsym_cmds, $1)=
  4691. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4692. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4693. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4694. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4695. # include_expsyms should be a list of space-separated symbols to be *always*
  4696. # included in the symbol list
  4697. _LT_TAGVAR(include_expsyms, $1)=
  4698. # exclude_expsyms can be an extended regexp of symbols to exclude
  4699. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4700. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4701. # as well as any symbol that contains `d'.
  4702. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4703. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4704. # platforms (ab)use it in PIC code, but their linkers get confused if
  4705. # the symbol is explicitly referenced. Since portable code cannot
  4706. # rely on this symbol name, it's probably fine to never include it in
  4707. # preloaded symbol tables.
  4708. # Exclude shared library initialization/finalization symbols.
  4709. dnl Note also adjust exclude_expsyms for C++ above.
  4710. extract_expsyms_cmds=
  4711. case $host_os in
  4712. cygwin* | mingw* | pw32* | cegcc*)
  4713. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4714. # When not using gcc, we currently assume that we are using
  4715. # Microsoft Visual C++.
  4716. if test "$GCC" != yes; then
  4717. with_gnu_ld=no
  4718. fi
  4719. ;;
  4720. interix*)
  4721. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4722. with_gnu_ld=yes
  4723. ;;
  4724. openbsd*)
  4725. with_gnu_ld=no
  4726. ;;
  4727. linux* | k*bsd*-gnu | gnu*)
  4728. _LT_TAGVAR(link_all_deplibs, $1)=no
  4729. ;;
  4730. esac
  4731. _LT_TAGVAR(ld_shlibs, $1)=yes
  4732. # On some targets, GNU ld is compatible enough with the native linker
  4733. # that we're better off using the native interface for both.
  4734. lt_use_gnu_ld_interface=no
  4735. if test "$with_gnu_ld" = yes; then
  4736. case $host_os in
  4737. aix*)
  4738. # The AIX port of GNU ld has always aspired to compatibility
  4739. # with the native linker. However, as the warning in the GNU ld
  4740. # block says, versions before 2.19.5* couldn't really create working
  4741. # shared libraries, regardless of the interface used.
  4742. case `$LD -v 2>&1` in
  4743. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4744. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4745. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4746. *)
  4747. lt_use_gnu_ld_interface=yes
  4748. ;;
  4749. esac
  4750. ;;
  4751. *)
  4752. lt_use_gnu_ld_interface=yes
  4753. ;;
  4754. esac
  4755. fi
  4756. if test "$lt_use_gnu_ld_interface" = yes; then
  4757. # If archive_cmds runs LD, not CC, wlarc should be empty
  4758. wlarc='${wl}'
  4759. # Set some defaults for GNU ld with shared library support. These
  4760. # are reset later if shared libraries are not supported. Putting them
  4761. # here allows them to be overridden if necessary.
  4762. runpath_var=LD_RUN_PATH
  4763. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4764. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4765. # ancient GNU ld didn't support --whole-archive et. al.
  4766. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4767. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4768. else
  4769. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4770. fi
  4771. supports_anon_versioning=no
  4772. case `$LD -v 2>&1` in
  4773. *GNU\ gold*) supports_anon_versioning=yes ;;
  4774. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4775. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4776. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4777. *\ 2.11.*) ;; # other 2.11 versions
  4778. *) supports_anon_versioning=yes ;;
  4779. esac
  4780. # See if GNU ld supports shared libraries.
  4781. case $host_os in
  4782. aix[[3-9]]*)
  4783. # On AIX/PPC, the GNU linker is very broken
  4784. if test "$host_cpu" != ia64; then
  4785. _LT_TAGVAR(ld_shlibs, $1)=no
  4786. cat <<_LT_EOF 1>&2
  4787. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4788. *** to be unable to reliably create shared libraries on AIX.
  4789. *** Therefore, libtool is disabling shared libraries support. If you
  4790. *** really care for shared libraries, you may want to install binutils
  4791. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4792. *** You will then need to restart the configuration process.
  4793. _LT_EOF
  4794. fi
  4795. ;;
  4796. amigaos*)
  4797. case $host_cpu in
  4798. powerpc)
  4799. # see comment about AmigaOS4 .so support
  4800. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4801. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4802. ;;
  4803. m68k)
  4804. _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)'
  4805. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4806. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4807. ;;
  4808. esac
  4809. ;;
  4810. beos*)
  4811. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4812. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4813. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4814. # support --undefined. This deserves some investigation. FIXME
  4815. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4816. else
  4817. _LT_TAGVAR(ld_shlibs, $1)=no
  4818. fi
  4819. ;;
  4820. cygwin* | mingw* | pw32* | cegcc*)
  4821. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4822. # as there is no search path for DLLs.
  4823. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4824. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4825. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4826. _LT_TAGVAR(always_export_symbols, $1)=no
  4827. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4828. _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'
  4829. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4830. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4831. _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'
  4832. # If the export-symbols file already is a .def file (1st line
  4833. # is EXPORTS), use it as is; otherwise, prepend...
  4834. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4835. cp $export_symbols $output_objdir/$soname.def;
  4836. else
  4837. echo EXPORTS > $output_objdir/$soname.def;
  4838. cat $export_symbols >> $output_objdir/$soname.def;
  4839. fi~
  4840. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4841. else
  4842. _LT_TAGVAR(ld_shlibs, $1)=no
  4843. fi
  4844. ;;
  4845. haiku*)
  4846. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4847. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4848. ;;
  4849. interix[[3-9]]*)
  4850. _LT_TAGVAR(hardcode_direct, $1)=no
  4851. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4852. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4853. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4854. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4855. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4856. # default) and relocated if they conflict, which is a slow very memory
  4857. # consuming and fragmenting process. To avoid this, we pick a random,
  4858. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4859. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4860. _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'
  4861. _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'
  4862. ;;
  4863. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4864. tmp_diet=no
  4865. if test "$host_os" = linux-dietlibc; then
  4866. case $cc_basename in
  4867. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4868. esac
  4869. fi
  4870. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4871. && test "$tmp_diet" = no
  4872. then
  4873. tmp_addflag=' $pic_flag'
  4874. tmp_sharedflag='-shared'
  4875. case $cc_basename,$host_cpu in
  4876. pgcc*) # Portland Group C compiler
  4877. _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'
  4878. tmp_addflag=' $pic_flag'
  4879. ;;
  4880. pgf77* | pgf90* | pgf95* | pgfortran*)
  4881. # Portland Group f77 and f90 compilers
  4882. _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'
  4883. tmp_addflag=' $pic_flag -Mnomain' ;;
  4884. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4885. tmp_addflag=' -i_dynamic' ;;
  4886. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4887. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4888. ifc* | ifort*) # Intel Fortran compiler
  4889. tmp_addflag=' -nofor_main' ;;
  4890. lf95*) # Lahey Fortran 8.1
  4891. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4892. tmp_sharedflag='--shared' ;;
  4893. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4894. tmp_sharedflag='-qmkshrobj'
  4895. tmp_addflag= ;;
  4896. nvcc*) # Cuda Compiler Driver 2.2
  4897. _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'
  4898. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4899. ;;
  4900. esac
  4901. case `$CC -V 2>&1 | sed 5q` in
  4902. *Sun\ C*) # Sun C 5.9
  4903. _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'
  4904. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4905. tmp_sharedflag='-G' ;;
  4906. *Sun\ F*) # Sun Fortran 8.3
  4907. tmp_sharedflag='-G' ;;
  4908. esac
  4909. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4910. if test "x$supports_anon_versioning" = xyes; then
  4911. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4912. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4913. echo "local: *; };" >> $output_objdir/$libname.ver~
  4914. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4915. fi
  4916. case $cc_basename in
  4917. xlf* | bgf* | bgxlf* | mpixlf*)
  4918. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4919. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4920. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4921. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4922. if test "x$supports_anon_versioning" = xyes; then
  4923. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4924. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4925. echo "local: *; };" >> $output_objdir/$libname.ver~
  4926. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4927. fi
  4928. ;;
  4929. esac
  4930. else
  4931. _LT_TAGVAR(ld_shlibs, $1)=no
  4932. fi
  4933. ;;
  4934. netbsd* | netbsdelf*-gnu)
  4935. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4936. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4937. wlarc=
  4938. else
  4939. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4940. _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'
  4941. fi
  4942. ;;
  4943. solaris*)
  4944. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4945. _LT_TAGVAR(ld_shlibs, $1)=no
  4946. cat <<_LT_EOF 1>&2
  4947. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4948. *** create shared libraries on Solaris systems. Therefore, libtool
  4949. *** is disabling shared libraries support. We urge you to upgrade GNU
  4950. *** binutils to release 2.9.1 or newer. Another option is to modify
  4951. *** your PATH or compiler configuration so that the native linker is
  4952. *** used, and then restart.
  4953. _LT_EOF
  4954. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4955. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4956. _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'
  4957. else
  4958. _LT_TAGVAR(ld_shlibs, $1)=no
  4959. fi
  4960. ;;
  4961. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4962. case `$LD -v 2>&1` in
  4963. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4964. _LT_TAGVAR(ld_shlibs, $1)=no
  4965. cat <<_LT_EOF 1>&2
  4966. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4967. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4968. *** is disabling shared libraries support. We urge you to upgrade GNU
  4969. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4970. *** your PATH or compiler configuration so that the native linker is
  4971. *** used, and then restart.
  4972. _LT_EOF
  4973. ;;
  4974. *)
  4975. # For security reasons, it is highly recommended that you always
  4976. # use absolute paths for naming shared libraries, and exclude the
  4977. # DT_RUNPATH tag from executables and libraries. But doing so
  4978. # requires that you compile everything twice, which is a pain.
  4979. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4980. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4981. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4982. _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'
  4983. else
  4984. _LT_TAGVAR(ld_shlibs, $1)=no
  4985. fi
  4986. ;;
  4987. esac
  4988. ;;
  4989. sunos4*)
  4990. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4991. wlarc=
  4992. _LT_TAGVAR(hardcode_direct, $1)=yes
  4993. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4994. ;;
  4995. *)
  4996. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4997. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4998. _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'
  4999. else
  5000. _LT_TAGVAR(ld_shlibs, $1)=no
  5001. fi
  5002. ;;
  5003. esac
  5004. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  5005. runpath_var=
  5006. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5007. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5008. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5009. fi
  5010. else
  5011. # PORTME fill in a description of your system's linker (not GNU ld)
  5012. case $host_os in
  5013. aix3*)
  5014. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5015. _LT_TAGVAR(always_export_symbols, $1)=yes
  5016. _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'
  5017. # Note: this linker hardcodes the directories in LIBPATH if there
  5018. # are no directories specified by -L.
  5019. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5020. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5021. # Neither direct hardcoding nor static linking is supported with a
  5022. # broken collect2.
  5023. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5024. fi
  5025. ;;
  5026. aix[[4-9]]*)
  5027. if test "$host_cpu" = ia64; then
  5028. # On IA64, the linker does run time linking by default, so we don't
  5029. # have to do anything special.
  5030. aix_use_runtimelinking=no
  5031. exp_sym_flag='-Bexport'
  5032. no_entry_flag=""
  5033. else
  5034. # If we're using GNU nm, then we don't want the "-C" option.
  5035. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5036. # Also, AIX nm treats weak defined symbols like other global
  5037. # defined symbols, whereas GNU nm marks them as "W".
  5038. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5039. _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'
  5040. else
  5041. _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'
  5042. fi
  5043. aix_use_runtimelinking=no
  5044. # Test if we are trying to use run time linking or normal
  5045. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5046. # need to do runtime linking.
  5047. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5048. for ld_flag in $LDFLAGS; do
  5049. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5050. aix_use_runtimelinking=yes
  5051. break
  5052. fi
  5053. done
  5054. ;;
  5055. esac
  5056. exp_sym_flag='-bexport'
  5057. no_entry_flag='-bnoentry'
  5058. fi
  5059. # When large executables or shared objects are built, AIX ld can
  5060. # have problems creating the table of contents. If linking a library
  5061. # or program results in "error TOC overflow" add -mminimal-toc to
  5062. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5063. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5064. _LT_TAGVAR(archive_cmds, $1)=''
  5065. _LT_TAGVAR(hardcode_direct, $1)=yes
  5066. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5067. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5068. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5069. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5070. if test "$GCC" = yes; then
  5071. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5072. # We only want to do this on AIX 4.2 and lower, the check
  5073. # below for broken collect2 doesn't work under 4.3+
  5074. collect2name=`${CC} -print-prog-name=collect2`
  5075. if test -f "$collect2name" &&
  5076. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5077. then
  5078. # We have reworked collect2
  5079. :
  5080. else
  5081. # We have old collect2
  5082. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5083. # It fails to find uninstalled libraries when the uninstalled
  5084. # path is not listed in the libpath. Setting hardcode_minus_L
  5085. # to unsupported forces relinking
  5086. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5087. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5088. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5089. fi
  5090. ;;
  5091. esac
  5092. shared_flag='-shared'
  5093. if test "$aix_use_runtimelinking" = yes; then
  5094. shared_flag="$shared_flag "'${wl}-G'
  5095. fi
  5096. _LT_TAGVAR(link_all_deplibs, $1)=no
  5097. else
  5098. # not using gcc
  5099. if test "$host_cpu" = ia64; then
  5100. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5101. # chokes on -Wl,-G. The following line is correct:
  5102. shared_flag='-G'
  5103. else
  5104. if test "$aix_use_runtimelinking" = yes; then
  5105. shared_flag='${wl}-G'
  5106. else
  5107. shared_flag='${wl}-bM:SRE'
  5108. fi
  5109. fi
  5110. fi
  5111. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5112. # It seems that -bexpall does not export symbols beginning with
  5113. # underscore (_), so it is better to generate a list of symbols to export.
  5114. _LT_TAGVAR(always_export_symbols, $1)=yes
  5115. if test "$aix_use_runtimelinking" = yes; then
  5116. # Warning - without using the other runtime loading flags (-brtl),
  5117. # -berok will link without error, but may produce a broken library.
  5118. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5119. # Determine the default libpath from the value encoded in an
  5120. # empty executable.
  5121. _LT_SYS_MODULE_PATH_AIX([$1])
  5122. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5123. _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"
  5124. else
  5125. if test "$host_cpu" = ia64; then
  5126. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5127. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5128. _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"
  5129. else
  5130. # Determine the default libpath from the value encoded in an
  5131. # empty executable.
  5132. _LT_SYS_MODULE_PATH_AIX([$1])
  5133. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5134. # Warning - without using the other run time loading flags,
  5135. # -berok will link without error, but may produce a broken library.
  5136. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5137. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5138. if test "$with_gnu_ld" = yes; then
  5139. # We only use this code for GNU lds that support --whole-archive.
  5140. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5141. else
  5142. # Exported symbols can be pulled into shared objects from archives
  5143. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5144. fi
  5145. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5146. # This is similar to how AIX traditionally builds its shared libraries.
  5147. _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'
  5148. fi
  5149. fi
  5150. ;;
  5151. amigaos*)
  5152. case $host_cpu in
  5153. powerpc)
  5154. # see comment about AmigaOS4 .so support
  5155. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5156. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5157. ;;
  5158. m68k)
  5159. _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)'
  5160. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5161. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5162. ;;
  5163. esac
  5164. ;;
  5165. bsdi[[45]]*)
  5166. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5167. ;;
  5168. cygwin* | mingw* | pw32* | cegcc*)
  5169. # When not using gcc, we currently assume that we are using
  5170. # Microsoft Visual C++.
  5171. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5172. # no search path for DLLs.
  5173. case $cc_basename in
  5174. cl*)
  5175. # Native MSVC
  5176. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5177. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5178. _LT_TAGVAR(always_export_symbols, $1)=yes
  5179. _LT_TAGVAR(file_list_spec, $1)='@'
  5180. # Tell ltmain to make .lib files, not .a files.
  5181. libext=lib
  5182. # Tell ltmain to make .dll files, not .so files.
  5183. shrext_cmds=".dll"
  5184. # FIXME: Setting linknames here is a bad hack.
  5185. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5186. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5187. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5188. else
  5189. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5190. fi~
  5191. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5192. linknames='
  5193. # The linker will not automatically build a static lib if we build a DLL.
  5194. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5195. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5196. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  5197. _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'
  5198. # Don't use ranlib
  5199. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5200. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5201. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5202. case $lt_outputfile in
  5203. *.exe|*.EXE) ;;
  5204. *)
  5205. lt_outputfile="$lt_outputfile.exe"
  5206. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5207. ;;
  5208. esac~
  5209. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5210. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5211. $RM "$lt_outputfile.manifest";
  5212. fi'
  5213. ;;
  5214. *)
  5215. # Assume MSVC wrapper
  5216. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5217. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5218. # Tell ltmain to make .lib files, not .a files.
  5219. libext=lib
  5220. # Tell ltmain to make .dll files, not .so files.
  5221. shrext_cmds=".dll"
  5222. # FIXME: Setting linknames here is a bad hack.
  5223. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  5224. # The linker will automatically build a .lib file if we build a DLL.
  5225. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5226. # FIXME: Should let the user specify the lib program.
  5227. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  5228. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5229. ;;
  5230. esac
  5231. ;;
  5232. darwin* | rhapsody*)
  5233. _LT_DARWIN_LINKER_FEATURES($1)
  5234. ;;
  5235. dgux*)
  5236. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5237. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5238. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5239. ;;
  5240. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5241. # support. Future versions do this automatically, but an explicit c++rt0.o
  5242. # does not break anything, and helps significantly (at the cost of a little
  5243. # extra space).
  5244. freebsd2.2*)
  5245. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5246. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5247. _LT_TAGVAR(hardcode_direct, $1)=yes
  5248. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5249. ;;
  5250. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5251. freebsd2.*)
  5252. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5253. _LT_TAGVAR(hardcode_direct, $1)=yes
  5254. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5255. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5256. ;;
  5257. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5258. freebsd* | dragonfly*)
  5259. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5260. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5261. _LT_TAGVAR(hardcode_direct, $1)=yes
  5262. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5263. ;;
  5264. hpux9*)
  5265. if test "$GCC" = yes; then
  5266. _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'
  5267. else
  5268. _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'
  5269. fi
  5270. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5271. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5272. _LT_TAGVAR(hardcode_direct, $1)=yes
  5273. # hardcode_minus_L: Not really in the search PATH,
  5274. # but as the default location of the library.
  5275. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5276. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5277. ;;
  5278. hpux10*)
  5279. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  5280. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5281. else
  5282. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5283. fi
  5284. if test "$with_gnu_ld" = no; then
  5285. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5286. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5287. _LT_TAGVAR(hardcode_direct, $1)=yes
  5288. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5289. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5290. # hardcode_minus_L: Not really in the search PATH,
  5291. # but as the default location of the library.
  5292. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5293. fi
  5294. ;;
  5295. hpux11*)
  5296. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  5297. case $host_cpu in
  5298. hppa*64*)
  5299. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5300. ;;
  5301. ia64*)
  5302. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5303. ;;
  5304. *)
  5305. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5306. ;;
  5307. esac
  5308. else
  5309. case $host_cpu in
  5310. hppa*64*)
  5311. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5312. ;;
  5313. ia64*)
  5314. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5315. ;;
  5316. *)
  5317. m4_if($1, [], [
  5318. # Older versions of the 11.00 compiler do not understand -b yet
  5319. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  5320. _LT_LINKER_OPTION([if $CC understands -b],
  5321. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  5322. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  5323. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  5324. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  5325. ;;
  5326. esac
  5327. fi
  5328. if test "$with_gnu_ld" = no; then
  5329. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5330. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5331. case $host_cpu in
  5332. hppa*64*|ia64*)
  5333. _LT_TAGVAR(hardcode_direct, $1)=no
  5334. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5335. ;;
  5336. *)
  5337. _LT_TAGVAR(hardcode_direct, $1)=yes
  5338. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5339. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5340. # hardcode_minus_L: Not really in the search PATH,
  5341. # but as the default location of the library.
  5342. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5343. ;;
  5344. esac
  5345. fi
  5346. ;;
  5347. irix5* | irix6* | nonstopux*)
  5348. if test "$GCC" = yes; then
  5349. _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'
  5350. # Try to use the -exported_symbol ld option, if it does not
  5351. # work, assume that -exports_file does not work either and
  5352. # implicitly export all symbols.
  5353. # This should be the same for all languages, so no per-tag cache variable.
  5354. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  5355. [lt_cv_irix_exported_symbol],
  5356. [save_LDFLAGS="$LDFLAGS"
  5357. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  5358. AC_LINK_IFELSE(
  5359. [AC_LANG_SOURCE(
  5360. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  5361. [C++], [[int foo (void) { return 0; }]],
  5362. [Fortran 77], [[
  5363. subroutine foo
  5364. end]],
  5365. [Fortran], [[
  5366. subroutine foo
  5367. end]])])],
  5368. [lt_cv_irix_exported_symbol=yes],
  5369. [lt_cv_irix_exported_symbol=no])
  5370. LDFLAGS="$save_LDFLAGS"])
  5371. if test "$lt_cv_irix_exported_symbol" = yes; then
  5372. _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'
  5373. fi
  5374. else
  5375. _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'
  5376. _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'
  5377. fi
  5378. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5379. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5380. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5381. _LT_TAGVAR(inherit_rpath, $1)=yes
  5382. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5383. ;;
  5384. netbsd* | netbsdelf*-gnu)
  5385. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5386. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5387. else
  5388. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5389. fi
  5390. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5391. _LT_TAGVAR(hardcode_direct, $1)=yes
  5392. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5393. ;;
  5394. newsos6)
  5395. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5396. _LT_TAGVAR(hardcode_direct, $1)=yes
  5397. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5398. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5399. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5400. ;;
  5401. *nto* | *qnx*)
  5402. ;;
  5403. openbsd*)
  5404. if test -f /usr/libexec/ld.so; then
  5405. _LT_TAGVAR(hardcode_direct, $1)=yes
  5406. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5407. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5408. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5409. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5410. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  5411. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5412. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5413. else
  5414. case $host_os in
  5415. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  5416. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5417. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5418. ;;
  5419. *)
  5420. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5421. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5422. ;;
  5423. esac
  5424. fi
  5425. else
  5426. _LT_TAGVAR(ld_shlibs, $1)=no
  5427. fi
  5428. ;;
  5429. os2*)
  5430. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5431. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5432. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5433. _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'
  5434. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  5435. ;;
  5436. osf3*)
  5437. if test "$GCC" = yes; then
  5438. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5439. _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'
  5440. else
  5441. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5442. _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'
  5443. fi
  5444. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5445. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5446. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5447. ;;
  5448. osf4* | osf5*) # as osf3* with the addition of -msym flag
  5449. if test "$GCC" = yes; then
  5450. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5451. _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'
  5452. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5453. else
  5454. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5455. _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'
  5456. _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~
  5457. $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'
  5458. # Both c and cxx compiler support -rpath directly
  5459. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5460. fi
  5461. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5462. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5463. ;;
  5464. solaris*)
  5465. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  5466. if test "$GCC" = yes; then
  5467. wlarc='${wl}'
  5468. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5469. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5470. $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'
  5471. else
  5472. case `$CC -V 2>&1` in
  5473. *"Compilers 5.0"*)
  5474. wlarc=''
  5475. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5476. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5477. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  5478. ;;
  5479. *)
  5480. wlarc='${wl}'
  5481. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5482. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5483. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5484. ;;
  5485. esac
  5486. fi
  5487. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5488. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5489. case $host_os in
  5490. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5491. *)
  5492. # The compiler driver will combine and reorder linker options,
  5493. # but understands `-z linker_flag'. GCC discards it without `$wl',
  5494. # but is careful enough not to reorder.
  5495. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5496. if test "$GCC" = yes; then
  5497. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5498. else
  5499. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5500. fi
  5501. ;;
  5502. esac
  5503. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5504. ;;
  5505. sunos4*)
  5506. if test "x$host_vendor" = xsequent; then
  5507. # Use $CC to link under sequent, because it throws in some extra .o
  5508. # files that make .init and .fini sections work.
  5509. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5510. else
  5511. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5512. fi
  5513. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5514. _LT_TAGVAR(hardcode_direct, $1)=yes
  5515. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5516. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5517. ;;
  5518. sysv4)
  5519. case $host_vendor in
  5520. sni)
  5521. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5522. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5523. ;;
  5524. siemens)
  5525. ## LD is ld it makes a PLAMLIB
  5526. ## CC just makes a GrossModule.
  5527. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5528. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5529. _LT_TAGVAR(hardcode_direct, $1)=no
  5530. ;;
  5531. motorola)
  5532. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5533. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5534. ;;
  5535. esac
  5536. runpath_var='LD_RUN_PATH'
  5537. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5538. ;;
  5539. sysv4.3*)
  5540. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5541. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5542. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5543. ;;
  5544. sysv4*MP*)
  5545. if test -d /usr/nec; then
  5546. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5547. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5548. runpath_var=LD_RUN_PATH
  5549. hardcode_runpath_var=yes
  5550. _LT_TAGVAR(ld_shlibs, $1)=yes
  5551. fi
  5552. ;;
  5553. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5554. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5555. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5556. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5557. runpath_var='LD_RUN_PATH'
  5558. if test "$GCC" = yes; then
  5559. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5560. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5561. else
  5562. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5563. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5564. fi
  5565. ;;
  5566. sysv5* | sco3.2v5* | sco5v6*)
  5567. # Note: We can NOT use -z defs as we might desire, because we do not
  5568. # link with -lc, and that would cause any symbols used from libc to
  5569. # always be unresolved, which means just about no library would
  5570. # ever link correctly. If we're not using GNU ld we use -z text
  5571. # though, which does catch some bad symbols but isn't as heavy-handed
  5572. # as -z defs.
  5573. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5574. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5575. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5576. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5577. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5578. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5579. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5580. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5581. runpath_var='LD_RUN_PATH'
  5582. if test "$GCC" = yes; then
  5583. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5584. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5585. else
  5586. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5587. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5588. fi
  5589. ;;
  5590. uts4*)
  5591. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5592. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5593. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5594. ;;
  5595. *)
  5596. _LT_TAGVAR(ld_shlibs, $1)=no
  5597. ;;
  5598. esac
  5599. if test x$host_vendor = xsni; then
  5600. case $host in
  5601. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5602. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5603. ;;
  5604. esac
  5605. fi
  5606. fi
  5607. ])
  5608. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5609. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5610. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5611. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5612. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5613. _LT_DECL([], [extract_expsyms_cmds], [2],
  5614. [The commands to extract the exported symbol list from a shared archive])
  5615. #
  5616. # Do we need to explicitly link libc?
  5617. #
  5618. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5619. x|xyes)
  5620. # Assume -lc should be added
  5621. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5622. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5623. case $_LT_TAGVAR(archive_cmds, $1) in
  5624. *'~'*)
  5625. # FIXME: we may have to deal with multi-command sequences.
  5626. ;;
  5627. '$CC '*)
  5628. # Test whether the compiler implicitly links with -lc since on some
  5629. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5630. # to ld, don't add -lc before -lgcc.
  5631. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5632. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5633. [$RM conftest*
  5634. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5635. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5636. soname=conftest
  5637. lib=conftest
  5638. libobjs=conftest.$ac_objext
  5639. deplibs=
  5640. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5641. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5642. compiler_flags=-v
  5643. linker_flags=-v
  5644. verstring=
  5645. output_objdir=.
  5646. libname=conftest
  5647. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5648. _LT_TAGVAR(allow_undefined_flag, $1)=
  5649. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5650. then
  5651. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5652. else
  5653. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5654. fi
  5655. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5656. else
  5657. cat conftest.err 1>&5
  5658. fi
  5659. $RM conftest*
  5660. ])
  5661. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5662. ;;
  5663. esac
  5664. fi
  5665. ;;
  5666. esac
  5667. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5668. [Whether or not to add -lc for building shared libraries])
  5669. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5670. [enable_shared_with_static_runtimes], [0],
  5671. [Whether or not to disallow shared libs when runtime libs are static])
  5672. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5673. [Compiler flag to allow reflexive dlopens])
  5674. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5675. [Compiler flag to generate shared objects directly from archives])
  5676. _LT_TAGDECL([], [compiler_needs_object], [1],
  5677. [Whether the compiler copes with passing no objects directly])
  5678. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5679. [Create an old-style archive from a shared archive])
  5680. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5681. [Create a temporary old-style archive to link instead of a shared archive])
  5682. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5683. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5684. _LT_TAGDECL([], [module_cmds], [2],
  5685. [Commands used to build a loadable module if different from building
  5686. a shared archive.])
  5687. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5688. _LT_TAGDECL([], [with_gnu_ld], [1],
  5689. [Whether we are building with GNU ld or not])
  5690. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5691. [Flag that allows shared libraries with undefined symbols to be built])
  5692. _LT_TAGDECL([], [no_undefined_flag], [1],
  5693. [Flag that enforces no undefined symbols])
  5694. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5695. [Flag to hardcode $libdir into a binary during linking.
  5696. This must work even if $libdir does not exist])
  5697. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5698. [Whether we need a single "-rpath" flag with a separated argument])
  5699. _LT_TAGDECL([], [hardcode_direct], [0],
  5700. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5701. DIR into the resulting binary])
  5702. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5703. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5704. DIR into the resulting binary and the resulting library dependency is
  5705. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5706. library is relocated])
  5707. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5708. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5709. into the resulting binary])
  5710. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5711. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5712. into the resulting binary])
  5713. _LT_TAGDECL([], [hardcode_automatic], [0],
  5714. [Set to "yes" if building a shared library automatically hardcodes DIR
  5715. into the library and all subsequent libraries and executables linked
  5716. against it])
  5717. _LT_TAGDECL([], [inherit_rpath], [0],
  5718. [Set to yes if linker adds runtime paths of dependent libraries
  5719. to runtime path list])
  5720. _LT_TAGDECL([], [link_all_deplibs], [0],
  5721. [Whether libtool must link a program against all its dependency libraries])
  5722. _LT_TAGDECL([], [always_export_symbols], [0],
  5723. [Set to "yes" if exported symbols are required])
  5724. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5725. [The commands to list exported symbols])
  5726. _LT_TAGDECL([], [exclude_expsyms], [1],
  5727. [Symbols that should not be listed in the preloaded symbols])
  5728. _LT_TAGDECL([], [include_expsyms], [1],
  5729. [Symbols that must always be exported])
  5730. _LT_TAGDECL([], [prelink_cmds], [2],
  5731. [Commands necessary for linking programs (against libraries) with templates])
  5732. _LT_TAGDECL([], [postlink_cmds], [2],
  5733. [Commands necessary for finishing linking programs])
  5734. _LT_TAGDECL([], [file_list_spec], [1],
  5735. [Specify filename containing input files])
  5736. dnl FIXME: Not yet implemented
  5737. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5738. dnl [Compiler flag to generate thread safe objects])
  5739. ])# _LT_LINKER_SHLIBS
  5740. # _LT_LANG_C_CONFIG([TAG])
  5741. # ------------------------
  5742. # Ensure that the configuration variables for a C compiler are suitably
  5743. # defined. These variables are subsequently used by _LT_CONFIG to write
  5744. # the compiler configuration to `libtool'.
  5745. m4_defun([_LT_LANG_C_CONFIG],
  5746. [m4_require([_LT_DECL_EGREP])dnl
  5747. lt_save_CC="$CC"
  5748. AC_LANG_PUSH(C)
  5749. # Source file extension for C test sources.
  5750. ac_ext=c
  5751. # Object file extension for compiled C test sources.
  5752. objext=o
  5753. _LT_TAGVAR(objext, $1)=$objext
  5754. # Code to be used in simple compile tests
  5755. lt_simple_compile_test_code="int some_variable = 0;"
  5756. # Code to be used in simple link tests
  5757. lt_simple_link_test_code='int main(){return(0);}'
  5758. _LT_TAG_COMPILER
  5759. # Save the default compiler, since it gets overwritten when the other
  5760. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5761. compiler_DEFAULT=$CC
  5762. # save warnings/boilerplate of simple test code
  5763. _LT_COMPILER_BOILERPLATE
  5764. _LT_LINKER_BOILERPLATE
  5765. if test -n "$compiler"; then
  5766. _LT_COMPILER_NO_RTTI($1)
  5767. _LT_COMPILER_PIC($1)
  5768. _LT_COMPILER_C_O($1)
  5769. _LT_COMPILER_FILE_LOCKS($1)
  5770. _LT_LINKER_SHLIBS($1)
  5771. _LT_SYS_DYNAMIC_LINKER($1)
  5772. _LT_LINKER_HARDCODE_LIBPATH($1)
  5773. LT_SYS_DLOPEN_SELF
  5774. _LT_CMD_STRIPLIB
  5775. # Report which library types will actually be built
  5776. AC_MSG_CHECKING([if libtool supports shared libraries])
  5777. AC_MSG_RESULT([$can_build_shared])
  5778. AC_MSG_CHECKING([whether to build shared libraries])
  5779. test "$can_build_shared" = "no" && enable_shared=no
  5780. # On AIX, shared libraries and static libraries use the same namespace, and
  5781. # are all built from PIC.
  5782. case $host_os in
  5783. aix3*)
  5784. test "$enable_shared" = yes && enable_static=no
  5785. if test -n "$RANLIB"; then
  5786. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5787. postinstall_cmds='$RANLIB $lib'
  5788. fi
  5789. ;;
  5790. aix[[4-9]]*)
  5791. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5792. test "$enable_shared" = yes && enable_static=no
  5793. fi
  5794. ;;
  5795. esac
  5796. AC_MSG_RESULT([$enable_shared])
  5797. AC_MSG_CHECKING([whether to build static libraries])
  5798. # Make sure either enable_shared or enable_static is yes.
  5799. test "$enable_shared" = yes || enable_static=yes
  5800. AC_MSG_RESULT([$enable_static])
  5801. _LT_CONFIG($1)
  5802. fi
  5803. AC_LANG_POP
  5804. CC="$lt_save_CC"
  5805. ])# _LT_LANG_C_CONFIG
  5806. # _LT_LANG_CXX_CONFIG([TAG])
  5807. # --------------------------
  5808. # Ensure that the configuration variables for a C++ compiler are suitably
  5809. # defined. These variables are subsequently used by _LT_CONFIG to write
  5810. # the compiler configuration to `libtool'.
  5811. m4_defun([_LT_LANG_CXX_CONFIG],
  5812. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5813. m4_require([_LT_DECL_EGREP])dnl
  5814. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5815. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5816. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5817. (test "X$CXX" != "Xg++"))) ; then
  5818. AC_PROG_CXXCPP
  5819. else
  5820. _lt_caught_CXX_error=yes
  5821. fi
  5822. AC_LANG_PUSH(C++)
  5823. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5824. _LT_TAGVAR(allow_undefined_flag, $1)=
  5825. _LT_TAGVAR(always_export_symbols, $1)=no
  5826. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5827. _LT_TAGVAR(compiler_needs_object, $1)=no
  5828. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5829. _LT_TAGVAR(hardcode_direct, $1)=no
  5830. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5831. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5832. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5833. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5834. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5835. _LT_TAGVAR(hardcode_automatic, $1)=no
  5836. _LT_TAGVAR(inherit_rpath, $1)=no
  5837. _LT_TAGVAR(module_cmds, $1)=
  5838. _LT_TAGVAR(module_expsym_cmds, $1)=
  5839. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5840. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5841. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5842. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5843. _LT_TAGVAR(no_undefined_flag, $1)=
  5844. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5845. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5846. # Source file extension for C++ test sources.
  5847. ac_ext=cpp
  5848. # Object file extension for compiled C++ test sources.
  5849. objext=o
  5850. _LT_TAGVAR(objext, $1)=$objext
  5851. # No sense in running all these tests if we already determined that
  5852. # the CXX compiler isn't working. Some variables (like enable_shared)
  5853. # are currently assumed to apply to all compilers on this platform,
  5854. # and will be corrupted by setting them based on a non-working compiler.
  5855. if test "$_lt_caught_CXX_error" != yes; then
  5856. # Code to be used in simple compile tests
  5857. lt_simple_compile_test_code="int some_variable = 0;"
  5858. # Code to be used in simple link tests
  5859. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5860. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5861. _LT_TAG_COMPILER
  5862. # save warnings/boilerplate of simple test code
  5863. _LT_COMPILER_BOILERPLATE
  5864. _LT_LINKER_BOILERPLATE
  5865. # Allow CC to be a program name with arguments.
  5866. lt_save_CC=$CC
  5867. lt_save_CFLAGS=$CFLAGS
  5868. lt_save_LD=$LD
  5869. lt_save_GCC=$GCC
  5870. GCC=$GXX
  5871. lt_save_with_gnu_ld=$with_gnu_ld
  5872. lt_save_path_LD=$lt_cv_path_LD
  5873. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5874. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5875. else
  5876. $as_unset lt_cv_prog_gnu_ld
  5877. fi
  5878. if test -n "${lt_cv_path_LDCXX+set}"; then
  5879. lt_cv_path_LD=$lt_cv_path_LDCXX
  5880. else
  5881. $as_unset lt_cv_path_LD
  5882. fi
  5883. test -z "${LDCXX+set}" || LD=$LDCXX
  5884. CC=${CXX-"c++"}
  5885. CFLAGS=$CXXFLAGS
  5886. compiler=$CC
  5887. _LT_TAGVAR(compiler, $1)=$CC
  5888. _LT_CC_BASENAME([$compiler])
  5889. if test -n "$compiler"; then
  5890. # We don't want -fno-exception when compiling C++ code, so set the
  5891. # no_builtin_flag separately
  5892. if test "$GXX" = yes; then
  5893. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5894. else
  5895. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5896. fi
  5897. if test "$GXX" = yes; then
  5898. # Set up default GNU C++ configuration
  5899. LT_PATH_LD
  5900. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5901. # archiving commands below assume that GNU ld is being used.
  5902. if test "$with_gnu_ld" = yes; then
  5903. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5904. _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'
  5905. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5906. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5907. # If archive_cmds runs LD, not CC, wlarc should be empty
  5908. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5909. # investigate it a little bit more. (MM)
  5910. wlarc='${wl}'
  5911. # ancient GNU ld didn't support --whole-archive et. al.
  5912. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5913. $GREP 'no-whole-archive' > /dev/null; then
  5914. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5915. else
  5916. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5917. fi
  5918. else
  5919. with_gnu_ld=no
  5920. wlarc=
  5921. # A generic and very simple default shared library creation
  5922. # command for GNU C++ for the case where it uses the native
  5923. # linker, instead of GNU ld. If possible, this setting should
  5924. # overridden to take advantage of the native linker features on
  5925. # the platform it is being used on.
  5926. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5927. fi
  5928. # Commands to make compiler produce verbose output that lists
  5929. # what "hidden" libraries, object files and flags are used when
  5930. # linking a shared library.
  5931. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5932. else
  5933. GXX=no
  5934. with_gnu_ld=no
  5935. wlarc=
  5936. fi
  5937. # PORTME: fill in a description of your system's C++ link characteristics
  5938. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5939. _LT_TAGVAR(ld_shlibs, $1)=yes
  5940. case $host_os in
  5941. aix3*)
  5942. # FIXME: insert proper C++ library support
  5943. _LT_TAGVAR(ld_shlibs, $1)=no
  5944. ;;
  5945. aix[[4-9]]*)
  5946. if test "$host_cpu" = ia64; then
  5947. # On IA64, the linker does run time linking by default, so we don't
  5948. # have to do anything special.
  5949. aix_use_runtimelinking=no
  5950. exp_sym_flag='-Bexport'
  5951. no_entry_flag=""
  5952. else
  5953. aix_use_runtimelinking=no
  5954. # Test if we are trying to use run time linking or normal
  5955. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5956. # need to do runtime linking.
  5957. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5958. for ld_flag in $LDFLAGS; do
  5959. case $ld_flag in
  5960. *-brtl*)
  5961. aix_use_runtimelinking=yes
  5962. break
  5963. ;;
  5964. esac
  5965. done
  5966. ;;
  5967. esac
  5968. exp_sym_flag='-bexport'
  5969. no_entry_flag='-bnoentry'
  5970. fi
  5971. # When large executables or shared objects are built, AIX ld can
  5972. # have problems creating the table of contents. If linking a library
  5973. # or program results in "error TOC overflow" add -mminimal-toc to
  5974. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5975. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5976. _LT_TAGVAR(archive_cmds, $1)=''
  5977. _LT_TAGVAR(hardcode_direct, $1)=yes
  5978. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5979. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5980. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5981. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5982. if test "$GXX" = yes; then
  5983. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5984. # We only want to do this on AIX 4.2 and lower, the check
  5985. # below for broken collect2 doesn't work under 4.3+
  5986. collect2name=`${CC} -print-prog-name=collect2`
  5987. if test -f "$collect2name" &&
  5988. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5989. then
  5990. # We have reworked collect2
  5991. :
  5992. else
  5993. # We have old collect2
  5994. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5995. # It fails to find uninstalled libraries when the uninstalled
  5996. # path is not listed in the libpath. Setting hardcode_minus_L
  5997. # to unsupported forces relinking
  5998. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5999. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6000. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6001. fi
  6002. esac
  6003. shared_flag='-shared'
  6004. if test "$aix_use_runtimelinking" = yes; then
  6005. shared_flag="$shared_flag "'${wl}-G'
  6006. fi
  6007. else
  6008. # not using gcc
  6009. if test "$host_cpu" = ia64; then
  6010. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6011. # chokes on -Wl,-G. The following line is correct:
  6012. shared_flag='-G'
  6013. else
  6014. if test "$aix_use_runtimelinking" = yes; then
  6015. shared_flag='${wl}-G'
  6016. else
  6017. shared_flag='${wl}-bM:SRE'
  6018. fi
  6019. fi
  6020. fi
  6021. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  6022. # It seems that -bexpall does not export symbols beginning with
  6023. # underscore (_), so it is better to generate a list of symbols to
  6024. # export.
  6025. _LT_TAGVAR(always_export_symbols, $1)=yes
  6026. if test "$aix_use_runtimelinking" = yes; then
  6027. # Warning - without using the other runtime loading flags (-brtl),
  6028. # -berok will link without error, but may produce a broken library.
  6029. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6030. # Determine the default libpath from the value encoded in an empty
  6031. # executable.
  6032. _LT_SYS_MODULE_PATH_AIX([$1])
  6033. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6034. _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"
  6035. else
  6036. if test "$host_cpu" = ia64; then
  6037. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6038. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6039. _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"
  6040. else
  6041. # Determine the default libpath from the value encoded in an
  6042. # empty executable.
  6043. _LT_SYS_MODULE_PATH_AIX([$1])
  6044. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6045. # Warning - without using the other run time loading flags,
  6046. # -berok will link without error, but may produce a broken library.
  6047. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6048. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6049. if test "$with_gnu_ld" = yes; then
  6050. # We only use this code for GNU lds that support --whole-archive.
  6051. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  6052. else
  6053. # Exported symbols can be pulled into shared objects from archives
  6054. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6055. fi
  6056. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6057. # This is similar to how AIX traditionally builds its shared
  6058. # libraries.
  6059. _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'
  6060. fi
  6061. fi
  6062. ;;
  6063. beos*)
  6064. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6065. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6066. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6067. # support --undefined. This deserves some investigation. FIXME
  6068. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6069. else
  6070. _LT_TAGVAR(ld_shlibs, $1)=no
  6071. fi
  6072. ;;
  6073. chorus*)
  6074. case $cc_basename in
  6075. *)
  6076. # FIXME: insert proper C++ library support
  6077. _LT_TAGVAR(ld_shlibs, $1)=no
  6078. ;;
  6079. esac
  6080. ;;
  6081. cygwin* | mingw* | pw32* | cegcc*)
  6082. case $GXX,$cc_basename in
  6083. ,cl* | no,cl*)
  6084. # Native MSVC
  6085. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6086. # no search path for DLLs.
  6087. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6088. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6089. _LT_TAGVAR(always_export_symbols, $1)=yes
  6090. _LT_TAGVAR(file_list_spec, $1)='@'
  6091. # Tell ltmain to make .lib files, not .a files.
  6092. libext=lib
  6093. # Tell ltmain to make .dll files, not .so files.
  6094. shrext_cmds=".dll"
  6095. # FIXME: Setting linknames here is a bad hack.
  6096. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  6097. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6098. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  6099. else
  6100. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  6101. fi~
  6102. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  6103. linknames='
  6104. # The linker will not automatically build a static lib if we build a DLL.
  6105. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6106. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6107. # Don't use ranlib
  6108. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  6109. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  6110. lt_tool_outputfile="@TOOL_OUTPUT@"~
  6111. case $lt_outputfile in
  6112. *.exe|*.EXE) ;;
  6113. *)
  6114. lt_outputfile="$lt_outputfile.exe"
  6115. lt_tool_outputfile="$lt_tool_outputfile.exe"
  6116. ;;
  6117. esac~
  6118. func_to_tool_file "$lt_outputfile"~
  6119. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  6120. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  6121. $RM "$lt_outputfile.manifest";
  6122. fi'
  6123. ;;
  6124. *)
  6125. # g++
  6126. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6127. # as there is no search path for DLLs.
  6128. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6129. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  6130. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6131. _LT_TAGVAR(always_export_symbols, $1)=no
  6132. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6133. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6134. _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'
  6135. # If the export-symbols file already is a .def file (1st line
  6136. # is EXPORTS), use it as is; otherwise, prepend...
  6137. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6138. cp $export_symbols $output_objdir/$soname.def;
  6139. else
  6140. echo EXPORTS > $output_objdir/$soname.def;
  6141. cat $export_symbols >> $output_objdir/$soname.def;
  6142. fi~
  6143. $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'
  6144. else
  6145. _LT_TAGVAR(ld_shlibs, $1)=no
  6146. fi
  6147. ;;
  6148. esac
  6149. ;;
  6150. darwin* | rhapsody*)
  6151. _LT_DARWIN_LINKER_FEATURES($1)
  6152. ;;
  6153. dgux*)
  6154. case $cc_basename in
  6155. ec++*)
  6156. # FIXME: insert proper C++ library support
  6157. _LT_TAGVAR(ld_shlibs, $1)=no
  6158. ;;
  6159. ghcx*)
  6160. # Green Hills C++ Compiler
  6161. # FIXME: insert proper C++ library support
  6162. _LT_TAGVAR(ld_shlibs, $1)=no
  6163. ;;
  6164. *)
  6165. # FIXME: insert proper C++ library support
  6166. _LT_TAGVAR(ld_shlibs, $1)=no
  6167. ;;
  6168. esac
  6169. ;;
  6170. freebsd2.*)
  6171. # C++ shared libraries reported to be fairly broken before
  6172. # switch to ELF
  6173. _LT_TAGVAR(ld_shlibs, $1)=no
  6174. ;;
  6175. freebsd-elf*)
  6176. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6177. ;;
  6178. freebsd* | dragonfly*)
  6179. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  6180. # conventions
  6181. _LT_TAGVAR(ld_shlibs, $1)=yes
  6182. ;;
  6183. haiku*)
  6184. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6185. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6186. ;;
  6187. hpux9*)
  6188. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6189. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6190. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6191. _LT_TAGVAR(hardcode_direct, $1)=yes
  6192. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6193. # but as the default
  6194. # location of the library.
  6195. case $cc_basename in
  6196. CC*)
  6197. # FIXME: insert proper C++ library support
  6198. _LT_TAGVAR(ld_shlibs, $1)=no
  6199. ;;
  6200. aCC*)
  6201. _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'
  6202. # Commands to make compiler produce verbose output that lists
  6203. # what "hidden" libraries, object files and flags are used when
  6204. # linking a shared library.
  6205. #
  6206. # There doesn't appear to be a way to prevent this compiler from
  6207. # explicitly linking system object files so we need to strip them
  6208. # from the output so that they don't get included in the library
  6209. # dependencies.
  6210. 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"'
  6211. ;;
  6212. *)
  6213. if test "$GXX" = yes; then
  6214. _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'
  6215. else
  6216. # FIXME: insert proper C++ library support
  6217. _LT_TAGVAR(ld_shlibs, $1)=no
  6218. fi
  6219. ;;
  6220. esac
  6221. ;;
  6222. hpux10*|hpux11*)
  6223. if test $with_gnu_ld = no; then
  6224. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6225. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6226. case $host_cpu in
  6227. hppa*64*|ia64*)
  6228. ;;
  6229. *)
  6230. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6231. ;;
  6232. esac
  6233. fi
  6234. case $host_cpu in
  6235. hppa*64*|ia64*)
  6236. _LT_TAGVAR(hardcode_direct, $1)=no
  6237. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6238. ;;
  6239. *)
  6240. _LT_TAGVAR(hardcode_direct, $1)=yes
  6241. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6242. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6243. # but as the default
  6244. # location of the library.
  6245. ;;
  6246. esac
  6247. case $cc_basename in
  6248. CC*)
  6249. # FIXME: insert proper C++ library support
  6250. _LT_TAGVAR(ld_shlibs, $1)=no
  6251. ;;
  6252. aCC*)
  6253. case $host_cpu in
  6254. hppa*64*)
  6255. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6256. ;;
  6257. ia64*)
  6258. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6259. ;;
  6260. *)
  6261. _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'
  6262. ;;
  6263. esac
  6264. # Commands to make compiler produce verbose output that lists
  6265. # what "hidden" libraries, object files and flags are used when
  6266. # linking a shared library.
  6267. #
  6268. # There doesn't appear to be a way to prevent this compiler from
  6269. # explicitly linking system object files so we need to strip them
  6270. # from the output so that they don't get included in the library
  6271. # dependencies.
  6272. 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"'
  6273. ;;
  6274. *)
  6275. if test "$GXX" = yes; then
  6276. if test $with_gnu_ld = no; then
  6277. case $host_cpu in
  6278. hppa*64*)
  6279. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6280. ;;
  6281. ia64*)
  6282. _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'
  6283. ;;
  6284. *)
  6285. _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'
  6286. ;;
  6287. esac
  6288. fi
  6289. else
  6290. # FIXME: insert proper C++ library support
  6291. _LT_TAGVAR(ld_shlibs, $1)=no
  6292. fi
  6293. ;;
  6294. esac
  6295. ;;
  6296. interix[[3-9]]*)
  6297. _LT_TAGVAR(hardcode_direct, $1)=no
  6298. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6299. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6300. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6301. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6302. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6303. # default) and relocated if they conflict, which is a slow very memory
  6304. # consuming and fragmenting process. To avoid this, we pick a random,
  6305. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6306. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6307. _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'
  6308. _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'
  6309. ;;
  6310. irix5* | irix6*)
  6311. case $cc_basename in
  6312. CC*)
  6313. # SGI C++
  6314. _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'
  6315. # Archives containing C++ object files must be created using
  6316. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  6317. # necessary to make sure instantiated templates are included
  6318. # in the archive.
  6319. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  6320. ;;
  6321. *)
  6322. if test "$GXX" = yes; then
  6323. if test "$with_gnu_ld" = no; then
  6324. _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'
  6325. else
  6326. _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'
  6327. fi
  6328. fi
  6329. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6330. ;;
  6331. esac
  6332. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6333. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6334. _LT_TAGVAR(inherit_rpath, $1)=yes
  6335. ;;
  6336. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6337. case $cc_basename in
  6338. KCC*)
  6339. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6340. # KCC will only create a shared library if the output file
  6341. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6342. # to its proper name (with version) after linking.
  6343. _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'
  6344. _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'
  6345. # Commands to make compiler produce verbose output that lists
  6346. # what "hidden" libraries, object files and flags are used when
  6347. # linking a shared library.
  6348. #
  6349. # There doesn't appear to be a way to prevent this compiler from
  6350. # explicitly linking system object files so we need to strip them
  6351. # from the output so that they don't get included in the library
  6352. # dependencies.
  6353. 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"'
  6354. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6355. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6356. # Archives containing C++ object files must be created using
  6357. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  6358. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  6359. ;;
  6360. icpc* | ecpc* )
  6361. # Intel C++
  6362. with_gnu_ld=yes
  6363. # version 8.0 and above of icpc choke on multiply defined symbols
  6364. # if we add $predep_objects and $postdep_objects, however 7.1 and
  6365. # earlier do not add the objects themselves.
  6366. case `$CC -V 2>&1` in
  6367. *"Version 7."*)
  6368. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6369. _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'
  6370. ;;
  6371. *) # Version 8.0 or newer
  6372. tmp_idyn=
  6373. case $host_cpu in
  6374. ia64*) tmp_idyn=' -i_dynamic';;
  6375. esac
  6376. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6377. _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'
  6378. ;;
  6379. esac
  6380. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6381. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6382. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6383. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  6384. ;;
  6385. pgCC* | pgcpp*)
  6386. # Portland Group C++ compiler
  6387. case `$CC -V` in
  6388. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  6389. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  6390. rm -rf $tpldir~
  6391. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  6392. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  6393. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  6394. rm -rf $tpldir~
  6395. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  6396. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  6397. $RANLIB $oldlib'
  6398. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  6399. rm -rf $tpldir~
  6400. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6401. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  6402. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  6403. rm -rf $tpldir~
  6404. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6405. $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'
  6406. ;;
  6407. *) # Version 6 and above use weak symbols
  6408. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  6409. _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'
  6410. ;;
  6411. esac
  6412. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  6413. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6414. _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'
  6415. ;;
  6416. cxx*)
  6417. # Compaq C++
  6418. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6419. _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'
  6420. runpath_var=LD_RUN_PATH
  6421. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6422. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6423. # Commands to make compiler produce verbose output that lists
  6424. # what "hidden" libraries, object files and flags are used when
  6425. # linking a shared library.
  6426. #
  6427. # There doesn't appear to be a way to prevent this compiler from
  6428. # explicitly linking system object files so we need to strip them
  6429. # from the output so that they don't get included in the library
  6430. # dependencies.
  6431. 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'
  6432. ;;
  6433. xl* | mpixl* | bgxl*)
  6434. # IBM XL 8.0 on PPC, with GNU ld
  6435. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6436. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6437. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6438. if test "x$supports_anon_versioning" = xyes; then
  6439. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6440. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6441. echo "local: *; };" >> $output_objdir/$libname.ver~
  6442. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6443. fi
  6444. ;;
  6445. *)
  6446. case `$CC -V 2>&1 | sed 5q` in
  6447. *Sun\ C*)
  6448. # Sun C++ 5.9
  6449. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6450. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6451. _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'
  6452. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6453. _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'
  6454. _LT_TAGVAR(compiler_needs_object, $1)=yes
  6455. # Not sure whether something based on
  6456. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  6457. # would be better.
  6458. output_verbose_link_cmd='func_echo_all'
  6459. # Archives containing C++ object files must be created using
  6460. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6461. # necessary to make sure instantiated templates are included
  6462. # in the archive.
  6463. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6464. ;;
  6465. esac
  6466. ;;
  6467. esac
  6468. ;;
  6469. lynxos*)
  6470. # FIXME: insert proper C++ library support
  6471. _LT_TAGVAR(ld_shlibs, $1)=no
  6472. ;;
  6473. m88k*)
  6474. # FIXME: insert proper C++ library support
  6475. _LT_TAGVAR(ld_shlibs, $1)=no
  6476. ;;
  6477. mvs*)
  6478. case $cc_basename in
  6479. cxx*)
  6480. # FIXME: insert proper C++ library support
  6481. _LT_TAGVAR(ld_shlibs, $1)=no
  6482. ;;
  6483. *)
  6484. # FIXME: insert proper C++ library support
  6485. _LT_TAGVAR(ld_shlibs, $1)=no
  6486. ;;
  6487. esac
  6488. ;;
  6489. netbsd*)
  6490. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6491. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6492. wlarc=
  6493. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6494. _LT_TAGVAR(hardcode_direct, $1)=yes
  6495. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6496. fi
  6497. # Workaround some broken pre-1.5 toolchains
  6498. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6499. ;;
  6500. *nto* | *qnx*)
  6501. _LT_TAGVAR(ld_shlibs, $1)=yes
  6502. ;;
  6503. openbsd2*)
  6504. # C++ shared libraries are fairly broken
  6505. _LT_TAGVAR(ld_shlibs, $1)=no
  6506. ;;
  6507. openbsd*)
  6508. if test -f /usr/libexec/ld.so; then
  6509. _LT_TAGVAR(hardcode_direct, $1)=yes
  6510. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6511. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6512. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6513. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6514. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6515. _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'
  6516. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6517. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6518. fi
  6519. output_verbose_link_cmd=func_echo_all
  6520. else
  6521. _LT_TAGVAR(ld_shlibs, $1)=no
  6522. fi
  6523. ;;
  6524. osf3* | osf4* | osf5*)
  6525. case $cc_basename in
  6526. KCC*)
  6527. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6528. # KCC will only create a shared library if the output file
  6529. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6530. # to its proper name (with version) after linking.
  6531. _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'
  6532. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6533. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6534. # Archives containing C++ object files must be created using
  6535. # the KAI C++ compiler.
  6536. case $host in
  6537. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6538. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6539. esac
  6540. ;;
  6541. RCC*)
  6542. # Rational C++ 2.4.1
  6543. # FIXME: insert proper C++ library support
  6544. _LT_TAGVAR(ld_shlibs, $1)=no
  6545. ;;
  6546. cxx*)
  6547. case $host in
  6548. osf3*)
  6549. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6550. _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'
  6551. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6552. ;;
  6553. *)
  6554. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6555. _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'
  6556. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6557. echo "-hidden">> $lib.exp~
  6558. $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~
  6559. $RM $lib.exp'
  6560. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6561. ;;
  6562. esac
  6563. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6564. # Commands to make compiler produce verbose output that lists
  6565. # what "hidden" libraries, object files and flags are used when
  6566. # linking a shared library.
  6567. #
  6568. # There doesn't appear to be a way to prevent this compiler from
  6569. # explicitly linking system object files so we need to strip them
  6570. # from the output so that they don't get included in the library
  6571. # dependencies.
  6572. 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"'
  6573. ;;
  6574. *)
  6575. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6576. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6577. case $host in
  6578. osf3*)
  6579. _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'
  6580. ;;
  6581. *)
  6582. _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'
  6583. ;;
  6584. esac
  6585. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6586. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6587. # Commands to make compiler produce verbose output that lists
  6588. # what "hidden" libraries, object files and flags are used when
  6589. # linking a shared library.
  6590. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6591. else
  6592. # FIXME: insert proper C++ library support
  6593. _LT_TAGVAR(ld_shlibs, $1)=no
  6594. fi
  6595. ;;
  6596. esac
  6597. ;;
  6598. psos*)
  6599. # FIXME: insert proper C++ library support
  6600. _LT_TAGVAR(ld_shlibs, $1)=no
  6601. ;;
  6602. sunos4*)
  6603. case $cc_basename in
  6604. CC*)
  6605. # Sun C++ 4.x
  6606. # FIXME: insert proper C++ library support
  6607. _LT_TAGVAR(ld_shlibs, $1)=no
  6608. ;;
  6609. lcc*)
  6610. # Lucid
  6611. # FIXME: insert proper C++ library support
  6612. _LT_TAGVAR(ld_shlibs, $1)=no
  6613. ;;
  6614. *)
  6615. # FIXME: insert proper C++ library support
  6616. _LT_TAGVAR(ld_shlibs, $1)=no
  6617. ;;
  6618. esac
  6619. ;;
  6620. solaris*)
  6621. case $cc_basename in
  6622. CC* | sunCC*)
  6623. # Sun C++ 4.2, 5.x and Centerline C++
  6624. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6625. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6626. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6627. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6628. $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'
  6629. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6630. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6631. case $host_os in
  6632. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6633. *)
  6634. # The compiler driver will combine and reorder linker options,
  6635. # but understands `-z linker_flag'.
  6636. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6637. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6638. ;;
  6639. esac
  6640. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6641. output_verbose_link_cmd='func_echo_all'
  6642. # Archives containing C++ object files must be created using
  6643. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6644. # necessary to make sure instantiated templates are included
  6645. # in the archive.
  6646. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6647. ;;
  6648. gcx*)
  6649. # Green Hills C++ Compiler
  6650. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6651. # The C++ compiler must be used to create the archive.
  6652. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6653. ;;
  6654. *)
  6655. # GNU C++ compiler with Solaris linker
  6656. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6657. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6658. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6659. _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'
  6660. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6661. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6662. # Commands to make compiler produce verbose output that lists
  6663. # what "hidden" libraries, object files and flags are used when
  6664. # linking a shared library.
  6665. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6666. else
  6667. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6668. # platform.
  6669. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6670. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6671. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6672. # Commands to make compiler produce verbose output that lists
  6673. # what "hidden" libraries, object files and flags are used when
  6674. # linking a shared library.
  6675. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6676. fi
  6677. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6678. case $host_os in
  6679. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6680. *)
  6681. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6682. ;;
  6683. esac
  6684. fi
  6685. ;;
  6686. esac
  6687. ;;
  6688. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6689. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6690. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6691. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6692. runpath_var='LD_RUN_PATH'
  6693. case $cc_basename in
  6694. CC*)
  6695. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6696. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6697. ;;
  6698. *)
  6699. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6700. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6701. ;;
  6702. esac
  6703. ;;
  6704. sysv5* | sco3.2v5* | sco5v6*)
  6705. # Note: We can NOT use -z defs as we might desire, because we do not
  6706. # link with -lc, and that would cause any symbols used from libc to
  6707. # always be unresolved, which means just about no library would
  6708. # ever link correctly. If we're not using GNU ld we use -z text
  6709. # though, which does catch some bad symbols but isn't as heavy-handed
  6710. # as -z defs.
  6711. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6712. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6713. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6714. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6715. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6716. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6717. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6718. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6719. runpath_var='LD_RUN_PATH'
  6720. case $cc_basename in
  6721. CC*)
  6722. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6723. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6724. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6725. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6726. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6727. '"$_LT_TAGVAR(reload_cmds, $1)"
  6728. ;;
  6729. *)
  6730. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6731. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6732. ;;
  6733. esac
  6734. ;;
  6735. tandem*)
  6736. case $cc_basename in
  6737. NCC*)
  6738. # NonStop-UX NCC 3.20
  6739. # FIXME: insert proper C++ library support
  6740. _LT_TAGVAR(ld_shlibs, $1)=no
  6741. ;;
  6742. *)
  6743. # FIXME: insert proper C++ library support
  6744. _LT_TAGVAR(ld_shlibs, $1)=no
  6745. ;;
  6746. esac
  6747. ;;
  6748. vxworks*)
  6749. # FIXME: insert proper C++ library support
  6750. _LT_TAGVAR(ld_shlibs, $1)=no
  6751. ;;
  6752. *)
  6753. # FIXME: insert proper C++ library support
  6754. _LT_TAGVAR(ld_shlibs, $1)=no
  6755. ;;
  6756. esac
  6757. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6758. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6759. _LT_TAGVAR(GCC, $1)="$GXX"
  6760. _LT_TAGVAR(LD, $1)="$LD"
  6761. ## CAVEAT EMPTOR:
  6762. ## There is no encapsulation within the following macros, do not change
  6763. ## the running order or otherwise move them around unless you know exactly
  6764. ## what you are doing...
  6765. _LT_SYS_HIDDEN_LIBDEPS($1)
  6766. _LT_COMPILER_PIC($1)
  6767. _LT_COMPILER_C_O($1)
  6768. _LT_COMPILER_FILE_LOCKS($1)
  6769. _LT_LINKER_SHLIBS($1)
  6770. _LT_SYS_DYNAMIC_LINKER($1)
  6771. _LT_LINKER_HARDCODE_LIBPATH($1)
  6772. _LT_CONFIG($1)
  6773. fi # test -n "$compiler"
  6774. CC=$lt_save_CC
  6775. CFLAGS=$lt_save_CFLAGS
  6776. LDCXX=$LD
  6777. LD=$lt_save_LD
  6778. GCC=$lt_save_GCC
  6779. with_gnu_ld=$lt_save_with_gnu_ld
  6780. lt_cv_path_LDCXX=$lt_cv_path_LD
  6781. lt_cv_path_LD=$lt_save_path_LD
  6782. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6783. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6784. fi # test "$_lt_caught_CXX_error" != yes
  6785. AC_LANG_POP
  6786. ])# _LT_LANG_CXX_CONFIG
  6787. # _LT_FUNC_STRIPNAME_CNF
  6788. # ----------------------
  6789. # func_stripname_cnf prefix suffix name
  6790. # strip PREFIX and SUFFIX off of NAME.
  6791. # PREFIX and SUFFIX must not contain globbing or regex special
  6792. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6793. # dot (in which case that matches only a dot).
  6794. #
  6795. # This function is identical to the (non-XSI) version of func_stripname,
  6796. # except this one can be used by m4 code that may be executed by configure,
  6797. # rather than the libtool script.
  6798. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6799. AC_REQUIRE([_LT_DECL_SED])
  6800. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6801. func_stripname_cnf ()
  6802. {
  6803. case ${2} in
  6804. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6805. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6806. esac
  6807. } # func_stripname_cnf
  6808. ])# _LT_FUNC_STRIPNAME_CNF
  6809. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6810. # ---------------------------------
  6811. # Figure out "hidden" library dependencies from verbose
  6812. # compiler output when linking a shared library.
  6813. # Parse the compiler output and extract the necessary
  6814. # objects, libraries and library flags.
  6815. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6816. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6817. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6818. # Dependencies to place before and after the object being linked:
  6819. _LT_TAGVAR(predep_objects, $1)=
  6820. _LT_TAGVAR(postdep_objects, $1)=
  6821. _LT_TAGVAR(predeps, $1)=
  6822. _LT_TAGVAR(postdeps, $1)=
  6823. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6824. dnl we can't use the lt_simple_compile_test_code here,
  6825. dnl because it contains code intended for an executable,
  6826. dnl not a library. It's possible we should let each
  6827. dnl tag define a new lt_????_link_test_code variable,
  6828. dnl but it's only used here...
  6829. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6830. int a;
  6831. void foo (void) { a = 0; }
  6832. _LT_EOF
  6833. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6834. class Foo
  6835. {
  6836. public:
  6837. Foo (void) { a = 0; }
  6838. private:
  6839. int a;
  6840. };
  6841. _LT_EOF
  6842. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6843. subroutine foo
  6844. implicit none
  6845. integer*4 a
  6846. a=0
  6847. return
  6848. end
  6849. _LT_EOF
  6850. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6851. subroutine foo
  6852. implicit none
  6853. integer a
  6854. a=0
  6855. return
  6856. end
  6857. _LT_EOF
  6858. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6859. public class foo {
  6860. private int a;
  6861. public void bar (void) {
  6862. a = 0;
  6863. }
  6864. };
  6865. _LT_EOF
  6866. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6867. package foo
  6868. func foo() {
  6869. }
  6870. _LT_EOF
  6871. ])
  6872. _lt_libdeps_save_CFLAGS=$CFLAGS
  6873. case "$CC $CFLAGS " in #(
  6874. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6875. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6876. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6877. esac
  6878. dnl Parse the compiler output and extract the necessary
  6879. dnl objects, libraries and library flags.
  6880. if AC_TRY_EVAL(ac_compile); then
  6881. # Parse the compiler output and extract the necessary
  6882. # objects, libraries and library flags.
  6883. # Sentinel used to keep track of whether or not we are before
  6884. # the conftest object file.
  6885. pre_test_object_deps_done=no
  6886. for p in `eval "$output_verbose_link_cmd"`; do
  6887. case ${prev}${p} in
  6888. -L* | -R* | -l*)
  6889. # Some compilers place space between "-{L,R}" and the path.
  6890. # Remove the space.
  6891. if test $p = "-L" ||
  6892. test $p = "-R"; then
  6893. prev=$p
  6894. continue
  6895. fi
  6896. # Expand the sysroot to ease extracting the directories later.
  6897. if test -z "$prev"; then
  6898. case $p in
  6899. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6900. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6901. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6902. esac
  6903. fi
  6904. case $p in
  6905. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6906. esac
  6907. if test "$pre_test_object_deps_done" = no; then
  6908. case ${prev} in
  6909. -L | -R)
  6910. # Internal compiler library paths should come after those
  6911. # provided the user. The postdeps already come after the
  6912. # user supplied libs so there is no need to process them.
  6913. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6914. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6915. else
  6916. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6917. fi
  6918. ;;
  6919. # The "-l" case would never come before the object being
  6920. # linked, so don't bother handling this case.
  6921. esac
  6922. else
  6923. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6924. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6925. else
  6926. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6927. fi
  6928. fi
  6929. prev=
  6930. ;;
  6931. *.lto.$objext) ;; # Ignore GCC LTO objects
  6932. *.$objext)
  6933. # This assumes that the test object file only shows up
  6934. # once in the compiler output.
  6935. if test "$p" = "conftest.$objext"; then
  6936. pre_test_object_deps_done=yes
  6937. continue
  6938. fi
  6939. if test "$pre_test_object_deps_done" = no; then
  6940. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6941. _LT_TAGVAR(predep_objects, $1)="$p"
  6942. else
  6943. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6944. fi
  6945. else
  6946. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6947. _LT_TAGVAR(postdep_objects, $1)="$p"
  6948. else
  6949. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6950. fi
  6951. fi
  6952. ;;
  6953. *) ;; # Ignore the rest.
  6954. esac
  6955. done
  6956. # Clean up.
  6957. rm -f a.out a.exe
  6958. else
  6959. echo "libtool.m4: error: problem compiling $1 test program"
  6960. fi
  6961. $RM -f confest.$objext
  6962. CFLAGS=$_lt_libdeps_save_CFLAGS
  6963. # PORTME: override above test on systems where it is broken
  6964. m4_if([$1], [CXX],
  6965. [case $host_os in
  6966. interix[[3-9]]*)
  6967. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6968. # hack all around it, let's just trust "g++" to DTRT.
  6969. _LT_TAGVAR(predep_objects,$1)=
  6970. _LT_TAGVAR(postdep_objects,$1)=
  6971. _LT_TAGVAR(postdeps,$1)=
  6972. ;;
  6973. linux*)
  6974. case `$CC -V 2>&1 | sed 5q` in
  6975. *Sun\ C*)
  6976. # Sun C++ 5.9
  6977. # The more standards-conforming stlport4 library is
  6978. # incompatible with the Cstd library. Avoid specifying
  6979. # it if it's in CXXFLAGS. Ignore libCrun as
  6980. # -library=stlport4 depends on it.
  6981. case " $CXX $CXXFLAGS " in
  6982. *" -library=stlport4 "*)
  6983. solaris_use_stlport4=yes
  6984. ;;
  6985. esac
  6986. if test "$solaris_use_stlport4" != yes; then
  6987. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6988. fi
  6989. ;;
  6990. esac
  6991. ;;
  6992. solaris*)
  6993. case $cc_basename in
  6994. CC* | sunCC*)
  6995. # The more standards-conforming stlport4 library is
  6996. # incompatible with the Cstd library. Avoid specifying
  6997. # it if it's in CXXFLAGS. Ignore libCrun as
  6998. # -library=stlport4 depends on it.
  6999. case " $CXX $CXXFLAGS " in
  7000. *" -library=stlport4 "*)
  7001. solaris_use_stlport4=yes
  7002. ;;
  7003. esac
  7004. # Adding this requires a known-good setup of shared libraries for
  7005. # Sun compiler versions before 5.6, else PIC objects from an old
  7006. # archive will be linked into the output, leading to subtle bugs.
  7007. if test "$solaris_use_stlport4" != yes; then
  7008. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  7009. fi
  7010. ;;
  7011. esac
  7012. ;;
  7013. esac
  7014. ])
  7015. case " $_LT_TAGVAR(postdeps, $1) " in
  7016. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  7017. esac
  7018. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  7019. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  7020. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  7021. fi
  7022. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  7023. [The directories searched by this compiler when creating a shared library])
  7024. _LT_TAGDECL([], [predep_objects], [1],
  7025. [Dependencies to place before and after the objects being linked to
  7026. create a shared library])
  7027. _LT_TAGDECL([], [postdep_objects], [1])
  7028. _LT_TAGDECL([], [predeps], [1])
  7029. _LT_TAGDECL([], [postdeps], [1])
  7030. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  7031. [The library search path used internally by the compiler when linking
  7032. a shared library])
  7033. ])# _LT_SYS_HIDDEN_LIBDEPS
  7034. # _LT_LANG_F77_CONFIG([TAG])
  7035. # --------------------------
  7036. # Ensure that the configuration variables for a Fortran 77 compiler are
  7037. # suitably defined. These variables are subsequently used by _LT_CONFIG
  7038. # to write the compiler configuration to `libtool'.
  7039. m4_defun([_LT_LANG_F77_CONFIG],
  7040. [AC_LANG_PUSH(Fortran 77)
  7041. if test -z "$F77" || test "X$F77" = "Xno"; then
  7042. _lt_disable_F77=yes
  7043. fi
  7044. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7045. _LT_TAGVAR(allow_undefined_flag, $1)=
  7046. _LT_TAGVAR(always_export_symbols, $1)=no
  7047. _LT_TAGVAR(archive_expsym_cmds, $1)=
  7048. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7049. _LT_TAGVAR(hardcode_direct, $1)=no
  7050. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7051. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7052. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7053. _LT_TAGVAR(hardcode_minus_L, $1)=no
  7054. _LT_TAGVAR(hardcode_automatic, $1)=no
  7055. _LT_TAGVAR(inherit_rpath, $1)=no
  7056. _LT_TAGVAR(module_cmds, $1)=
  7057. _LT_TAGVAR(module_expsym_cmds, $1)=
  7058. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7059. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7060. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7061. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7062. _LT_TAGVAR(no_undefined_flag, $1)=
  7063. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7064. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7065. # Source file extension for f77 test sources.
  7066. ac_ext=f
  7067. # Object file extension for compiled f77 test sources.
  7068. objext=o
  7069. _LT_TAGVAR(objext, $1)=$objext
  7070. # No sense in running all these tests if we already determined that
  7071. # the F77 compiler isn't working. Some variables (like enable_shared)
  7072. # are currently assumed to apply to all compilers on this platform,
  7073. # and will be corrupted by setting them based on a non-working compiler.
  7074. if test "$_lt_disable_F77" != yes; then
  7075. # Code to be used in simple compile tests
  7076. lt_simple_compile_test_code="\
  7077. subroutine t
  7078. return
  7079. end
  7080. "
  7081. # Code to be used in simple link tests
  7082. lt_simple_link_test_code="\
  7083. program t
  7084. end
  7085. "
  7086. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7087. _LT_TAG_COMPILER
  7088. # save warnings/boilerplate of simple test code
  7089. _LT_COMPILER_BOILERPLATE
  7090. _LT_LINKER_BOILERPLATE
  7091. # Allow CC to be a program name with arguments.
  7092. lt_save_CC="$CC"
  7093. lt_save_GCC=$GCC
  7094. lt_save_CFLAGS=$CFLAGS
  7095. CC=${F77-"f77"}
  7096. CFLAGS=$FFLAGS
  7097. compiler=$CC
  7098. _LT_TAGVAR(compiler, $1)=$CC
  7099. _LT_CC_BASENAME([$compiler])
  7100. GCC=$G77
  7101. if test -n "$compiler"; then
  7102. AC_MSG_CHECKING([if libtool supports shared libraries])
  7103. AC_MSG_RESULT([$can_build_shared])
  7104. AC_MSG_CHECKING([whether to build shared libraries])
  7105. test "$can_build_shared" = "no" && enable_shared=no
  7106. # On AIX, shared libraries and static libraries use the same namespace, and
  7107. # are all built from PIC.
  7108. case $host_os in
  7109. aix3*)
  7110. test "$enable_shared" = yes && enable_static=no
  7111. if test -n "$RANLIB"; then
  7112. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7113. postinstall_cmds='$RANLIB $lib'
  7114. fi
  7115. ;;
  7116. aix[[4-9]]*)
  7117. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7118. test "$enable_shared" = yes && enable_static=no
  7119. fi
  7120. ;;
  7121. esac
  7122. AC_MSG_RESULT([$enable_shared])
  7123. AC_MSG_CHECKING([whether to build static libraries])
  7124. # Make sure either enable_shared or enable_static is yes.
  7125. test "$enable_shared" = yes || enable_static=yes
  7126. AC_MSG_RESULT([$enable_static])
  7127. _LT_TAGVAR(GCC, $1)="$G77"
  7128. _LT_TAGVAR(LD, $1)="$LD"
  7129. ## CAVEAT EMPTOR:
  7130. ## There is no encapsulation within the following macros, do not change
  7131. ## the running order or otherwise move them around unless you know exactly
  7132. ## what you are doing...
  7133. _LT_COMPILER_PIC($1)
  7134. _LT_COMPILER_C_O($1)
  7135. _LT_COMPILER_FILE_LOCKS($1)
  7136. _LT_LINKER_SHLIBS($1)
  7137. _LT_SYS_DYNAMIC_LINKER($1)
  7138. _LT_LINKER_HARDCODE_LIBPATH($1)
  7139. _LT_CONFIG($1)
  7140. fi # test -n "$compiler"
  7141. GCC=$lt_save_GCC
  7142. CC="$lt_save_CC"
  7143. CFLAGS="$lt_save_CFLAGS"
  7144. fi # test "$_lt_disable_F77" != yes
  7145. AC_LANG_POP
  7146. ])# _LT_LANG_F77_CONFIG
  7147. # _LT_LANG_FC_CONFIG([TAG])
  7148. # -------------------------
  7149. # Ensure that the configuration variables for a Fortran compiler are
  7150. # suitably defined. These variables are subsequently used by _LT_CONFIG
  7151. # to write the compiler configuration to `libtool'.
  7152. m4_defun([_LT_LANG_FC_CONFIG],
  7153. [AC_LANG_PUSH(Fortran)
  7154. if test -z "$FC" || test "X$FC" = "Xno"; then
  7155. _lt_disable_FC=yes
  7156. fi
  7157. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7158. _LT_TAGVAR(allow_undefined_flag, $1)=
  7159. _LT_TAGVAR(always_export_symbols, $1)=no
  7160. _LT_TAGVAR(archive_expsym_cmds, $1)=
  7161. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7162. _LT_TAGVAR(hardcode_direct, $1)=no
  7163. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7164. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7165. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7166. _LT_TAGVAR(hardcode_minus_L, $1)=no
  7167. _LT_TAGVAR(hardcode_automatic, $1)=no
  7168. _LT_TAGVAR(inherit_rpath, $1)=no
  7169. _LT_TAGVAR(module_cmds, $1)=
  7170. _LT_TAGVAR(module_expsym_cmds, $1)=
  7171. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7172. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7173. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7174. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7175. _LT_TAGVAR(no_undefined_flag, $1)=
  7176. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7177. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7178. # Source file extension for fc test sources.
  7179. ac_ext=${ac_fc_srcext-f}
  7180. # Object file extension for compiled fc test sources.
  7181. objext=o
  7182. _LT_TAGVAR(objext, $1)=$objext
  7183. # No sense in running all these tests if we already determined that
  7184. # the FC compiler isn't working. Some variables (like enable_shared)
  7185. # are currently assumed to apply to all compilers on this platform,
  7186. # and will be corrupted by setting them based on a non-working compiler.
  7187. if test "$_lt_disable_FC" != yes; then
  7188. # Code to be used in simple compile tests
  7189. lt_simple_compile_test_code="\
  7190. subroutine t
  7191. return
  7192. end
  7193. "
  7194. # Code to be used in simple link tests
  7195. lt_simple_link_test_code="\
  7196. program t
  7197. end
  7198. "
  7199. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7200. _LT_TAG_COMPILER
  7201. # save warnings/boilerplate of simple test code
  7202. _LT_COMPILER_BOILERPLATE
  7203. _LT_LINKER_BOILERPLATE
  7204. # Allow CC to be a program name with arguments.
  7205. lt_save_CC="$CC"
  7206. lt_save_GCC=$GCC
  7207. lt_save_CFLAGS=$CFLAGS
  7208. CC=${FC-"f95"}
  7209. CFLAGS=$FCFLAGS
  7210. compiler=$CC
  7211. GCC=$ac_cv_fc_compiler_gnu
  7212. _LT_TAGVAR(compiler, $1)=$CC
  7213. _LT_CC_BASENAME([$compiler])
  7214. if test -n "$compiler"; then
  7215. AC_MSG_CHECKING([if libtool supports shared libraries])
  7216. AC_MSG_RESULT([$can_build_shared])
  7217. AC_MSG_CHECKING([whether to build shared libraries])
  7218. test "$can_build_shared" = "no" && enable_shared=no
  7219. # On AIX, shared libraries and static libraries use the same namespace, and
  7220. # are all built from PIC.
  7221. case $host_os in
  7222. aix3*)
  7223. test "$enable_shared" = yes && enable_static=no
  7224. if test -n "$RANLIB"; then
  7225. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7226. postinstall_cmds='$RANLIB $lib'
  7227. fi
  7228. ;;
  7229. aix[[4-9]]*)
  7230. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7231. test "$enable_shared" = yes && enable_static=no
  7232. fi
  7233. ;;
  7234. esac
  7235. AC_MSG_RESULT([$enable_shared])
  7236. AC_MSG_CHECKING([whether to build static libraries])
  7237. # Make sure either enable_shared or enable_static is yes.
  7238. test "$enable_shared" = yes || enable_static=yes
  7239. AC_MSG_RESULT([$enable_static])
  7240. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  7241. _LT_TAGVAR(LD, $1)="$LD"
  7242. ## CAVEAT EMPTOR:
  7243. ## There is no encapsulation within the following macros, do not change
  7244. ## the running order or otherwise move them around unless you know exactly
  7245. ## what you are doing...
  7246. _LT_SYS_HIDDEN_LIBDEPS($1)
  7247. _LT_COMPILER_PIC($1)
  7248. _LT_COMPILER_C_O($1)
  7249. _LT_COMPILER_FILE_LOCKS($1)
  7250. _LT_LINKER_SHLIBS($1)
  7251. _LT_SYS_DYNAMIC_LINKER($1)
  7252. _LT_LINKER_HARDCODE_LIBPATH($1)
  7253. _LT_CONFIG($1)
  7254. fi # test -n "$compiler"
  7255. GCC=$lt_save_GCC
  7256. CC=$lt_save_CC
  7257. CFLAGS=$lt_save_CFLAGS
  7258. fi # test "$_lt_disable_FC" != yes
  7259. AC_LANG_POP
  7260. ])# _LT_LANG_FC_CONFIG
  7261. # _LT_LANG_GCJ_CONFIG([TAG])
  7262. # --------------------------
  7263. # Ensure that the configuration variables for the GNU Java Compiler compiler
  7264. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7265. # to write the compiler configuration to `libtool'.
  7266. m4_defun([_LT_LANG_GCJ_CONFIG],
  7267. [AC_REQUIRE([LT_PROG_GCJ])dnl
  7268. AC_LANG_SAVE
  7269. # Source file extension for Java test sources.
  7270. ac_ext=java
  7271. # Object file extension for compiled Java test sources.
  7272. objext=o
  7273. _LT_TAGVAR(objext, $1)=$objext
  7274. # Code to be used in simple compile tests
  7275. lt_simple_compile_test_code="class foo {}"
  7276. # Code to be used in simple link tests
  7277. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  7278. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7279. _LT_TAG_COMPILER
  7280. # save warnings/boilerplate of simple test code
  7281. _LT_COMPILER_BOILERPLATE
  7282. _LT_LINKER_BOILERPLATE
  7283. # Allow CC to be a program name with arguments.
  7284. lt_save_CC=$CC
  7285. lt_save_CFLAGS=$CFLAGS
  7286. lt_save_GCC=$GCC
  7287. GCC=yes
  7288. CC=${GCJ-"gcj"}
  7289. CFLAGS=$GCJFLAGS
  7290. compiler=$CC
  7291. _LT_TAGVAR(compiler, $1)=$CC
  7292. _LT_TAGVAR(LD, $1)="$LD"
  7293. _LT_CC_BASENAME([$compiler])
  7294. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  7295. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7296. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7297. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7298. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7299. if test -n "$compiler"; then
  7300. _LT_COMPILER_NO_RTTI($1)
  7301. _LT_COMPILER_PIC($1)
  7302. _LT_COMPILER_C_O($1)
  7303. _LT_COMPILER_FILE_LOCKS($1)
  7304. _LT_LINKER_SHLIBS($1)
  7305. _LT_LINKER_HARDCODE_LIBPATH($1)
  7306. _LT_CONFIG($1)
  7307. fi
  7308. AC_LANG_RESTORE
  7309. GCC=$lt_save_GCC
  7310. CC=$lt_save_CC
  7311. CFLAGS=$lt_save_CFLAGS
  7312. ])# _LT_LANG_GCJ_CONFIG
  7313. # _LT_LANG_GO_CONFIG([TAG])
  7314. # --------------------------
  7315. # Ensure that the configuration variables for the GNU Go compiler
  7316. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7317. # to write the compiler configuration to `libtool'.
  7318. m4_defun([_LT_LANG_GO_CONFIG],
  7319. [AC_REQUIRE([LT_PROG_GO])dnl
  7320. AC_LANG_SAVE
  7321. # Source file extension for Go test sources.
  7322. ac_ext=go
  7323. # Object file extension for compiled Go test sources.
  7324. objext=o
  7325. _LT_TAGVAR(objext, $1)=$objext
  7326. # Code to be used in simple compile tests
  7327. lt_simple_compile_test_code="package main; func main() { }"
  7328. # Code to be used in simple link tests
  7329. lt_simple_link_test_code='package main; func main() { }'
  7330. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7331. _LT_TAG_COMPILER
  7332. # save warnings/boilerplate of simple test code
  7333. _LT_COMPILER_BOILERPLATE
  7334. _LT_LINKER_BOILERPLATE
  7335. # Allow CC to be a program name with arguments.
  7336. lt_save_CC=$CC
  7337. lt_save_CFLAGS=$CFLAGS
  7338. lt_save_GCC=$GCC
  7339. GCC=yes
  7340. CC=${GOC-"gccgo"}
  7341. CFLAGS=$GOFLAGS
  7342. compiler=$CC
  7343. _LT_TAGVAR(compiler, $1)=$CC
  7344. _LT_TAGVAR(LD, $1)="$LD"
  7345. _LT_CC_BASENAME([$compiler])
  7346. # Go did not exist at the time GCC didn't implicitly link libc in.
  7347. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7348. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7349. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7350. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7351. if test -n "$compiler"; then
  7352. _LT_COMPILER_NO_RTTI($1)
  7353. _LT_COMPILER_PIC($1)
  7354. _LT_COMPILER_C_O($1)
  7355. _LT_COMPILER_FILE_LOCKS($1)
  7356. _LT_LINKER_SHLIBS($1)
  7357. _LT_LINKER_HARDCODE_LIBPATH($1)
  7358. _LT_CONFIG($1)
  7359. fi
  7360. AC_LANG_RESTORE
  7361. GCC=$lt_save_GCC
  7362. CC=$lt_save_CC
  7363. CFLAGS=$lt_save_CFLAGS
  7364. ])# _LT_LANG_GO_CONFIG
  7365. # _LT_LANG_RC_CONFIG([TAG])
  7366. # -------------------------
  7367. # Ensure that the configuration variables for the Windows resource compiler
  7368. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7369. # to write the compiler configuration to `libtool'.
  7370. m4_defun([_LT_LANG_RC_CONFIG],
  7371. [AC_REQUIRE([LT_PROG_RC])dnl
  7372. AC_LANG_SAVE
  7373. # Source file extension for RC test sources.
  7374. ac_ext=rc
  7375. # Object file extension for compiled RC test sources.
  7376. objext=o
  7377. _LT_TAGVAR(objext, $1)=$objext
  7378. # Code to be used in simple compile tests
  7379. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  7380. # Code to be used in simple link tests
  7381. lt_simple_link_test_code="$lt_simple_compile_test_code"
  7382. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7383. _LT_TAG_COMPILER
  7384. # save warnings/boilerplate of simple test code
  7385. _LT_COMPILER_BOILERPLATE
  7386. _LT_LINKER_BOILERPLATE
  7387. # Allow CC to be a program name with arguments.
  7388. lt_save_CC="$CC"
  7389. lt_save_CFLAGS=$CFLAGS
  7390. lt_save_GCC=$GCC
  7391. GCC=
  7392. CC=${RC-"windres"}
  7393. CFLAGS=
  7394. compiler=$CC
  7395. _LT_TAGVAR(compiler, $1)=$CC
  7396. _LT_CC_BASENAME([$compiler])
  7397. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  7398. if test -n "$compiler"; then
  7399. :
  7400. _LT_CONFIG($1)
  7401. fi
  7402. GCC=$lt_save_GCC
  7403. AC_LANG_RESTORE
  7404. CC=$lt_save_CC
  7405. CFLAGS=$lt_save_CFLAGS
  7406. ])# _LT_LANG_RC_CONFIG
  7407. # LT_PROG_GCJ
  7408. # -----------
  7409. AC_DEFUN([LT_PROG_GCJ],
  7410. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  7411. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  7412. [AC_CHECK_TOOL(GCJ, gcj,)
  7413. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  7414. AC_SUBST(GCJFLAGS)])])[]dnl
  7415. ])
  7416. # Old name:
  7417. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  7418. dnl aclocal-1.4 backwards compatibility:
  7419. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  7420. # LT_PROG_GO
  7421. # ----------
  7422. AC_DEFUN([LT_PROG_GO],
  7423. [AC_CHECK_TOOL(GOC, gccgo,)
  7424. ])
  7425. # LT_PROG_RC
  7426. # ----------
  7427. AC_DEFUN([LT_PROG_RC],
  7428. [AC_CHECK_TOOL(RC, windres,)
  7429. ])
  7430. # Old name:
  7431. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  7432. dnl aclocal-1.4 backwards compatibility:
  7433. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  7434. # _LT_DECL_EGREP
  7435. # --------------
  7436. # If we don't have a new enough Autoconf to choose the best grep
  7437. # available, choose the one first in the user's PATH.
  7438. m4_defun([_LT_DECL_EGREP],
  7439. [AC_REQUIRE([AC_PROG_EGREP])dnl
  7440. AC_REQUIRE([AC_PROG_FGREP])dnl
  7441. test -z "$GREP" && GREP=grep
  7442. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  7443. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  7444. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  7445. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  7446. AC_SUBST([GREP])
  7447. ])
  7448. # _LT_DECL_OBJDUMP
  7449. # --------------
  7450. # If we don't have a new enough Autoconf to choose the best objdump
  7451. # available, choose the one first in the user's PATH.
  7452. m4_defun([_LT_DECL_OBJDUMP],
  7453. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7454. test -z "$OBJDUMP" && OBJDUMP=objdump
  7455. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  7456. AC_SUBST([OBJDUMP])
  7457. ])
  7458. # _LT_DECL_DLLTOOL
  7459. # ----------------
  7460. # Ensure DLLTOOL variable is set.
  7461. m4_defun([_LT_DECL_DLLTOOL],
  7462. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7463. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7464. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  7465. AC_SUBST([DLLTOOL])
  7466. ])
  7467. # _LT_DECL_SED
  7468. # ------------
  7469. # Check for a fully-functional sed program, that truncates
  7470. # as few characters as possible. Prefer GNU sed if found.
  7471. m4_defun([_LT_DECL_SED],
  7472. [AC_PROG_SED
  7473. test -z "$SED" && SED=sed
  7474. Xsed="$SED -e 1s/^X//"
  7475. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  7476. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  7477. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  7478. ])# _LT_DECL_SED
  7479. m4_ifndef([AC_PROG_SED], [
  7480. # NOTE: This macro has been submitted for inclusion into #
  7481. # GNU Autoconf as AC_PROG_SED. When it is available in #
  7482. # a released version of Autoconf we should remove this #
  7483. # macro and use it instead. #
  7484. m4_defun([AC_PROG_SED],
  7485. [AC_MSG_CHECKING([for a sed that does not truncate output])
  7486. AC_CACHE_VAL(lt_cv_path_SED,
  7487. [# Loop through the user's path and test for sed and gsed.
  7488. # Then use that list of sed's as ones to test for truncation.
  7489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7490. for as_dir in $PATH
  7491. do
  7492. IFS=$as_save_IFS
  7493. test -z "$as_dir" && as_dir=.
  7494. for lt_ac_prog in sed gsed; do
  7495. for ac_exec_ext in '' $ac_executable_extensions; do
  7496. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7497. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7498. fi
  7499. done
  7500. done
  7501. done
  7502. IFS=$as_save_IFS
  7503. lt_ac_max=0
  7504. lt_ac_count=0
  7505. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7506. # along with /bin/sed that truncates output.
  7507. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7508. test ! -f $lt_ac_sed && continue
  7509. cat /dev/null > conftest.in
  7510. lt_ac_count=0
  7511. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7512. # Check for GNU sed and select it if it is found.
  7513. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7514. lt_cv_path_SED=$lt_ac_sed
  7515. break
  7516. fi
  7517. while true; do
  7518. cat conftest.in conftest.in >conftest.tmp
  7519. mv conftest.tmp conftest.in
  7520. cp conftest.in conftest.nl
  7521. echo >>conftest.nl
  7522. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7523. cmp -s conftest.out conftest.nl || break
  7524. # 10000 chars as input seems more than enough
  7525. test $lt_ac_count -gt 10 && break
  7526. lt_ac_count=`expr $lt_ac_count + 1`
  7527. if test $lt_ac_count -gt $lt_ac_max; then
  7528. lt_ac_max=$lt_ac_count
  7529. lt_cv_path_SED=$lt_ac_sed
  7530. fi
  7531. done
  7532. done
  7533. ])
  7534. SED=$lt_cv_path_SED
  7535. AC_SUBST([SED])
  7536. AC_MSG_RESULT([$SED])
  7537. ])#AC_PROG_SED
  7538. ])#m4_ifndef
  7539. # Old name:
  7540. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7541. dnl aclocal-1.4 backwards compatibility:
  7542. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7543. # _LT_CHECK_SHELL_FEATURES
  7544. # ------------------------
  7545. # Find out whether the shell is Bourne or XSI compatible,
  7546. # or has some other useful features.
  7547. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7548. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7549. # Try some XSI features
  7550. xsi_shell=no
  7551. ( _lt_dummy="a/b/c"
  7552. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7553. = c,a/b,b/c, \
  7554. && eval 'test $(( 1 + 1 )) -eq 2 \
  7555. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7556. && xsi_shell=yes
  7557. AC_MSG_RESULT([$xsi_shell])
  7558. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7559. AC_MSG_CHECKING([whether the shell understands "+="])
  7560. lt_shell_append=no
  7561. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7562. >/dev/null 2>&1 \
  7563. && lt_shell_append=yes
  7564. AC_MSG_RESULT([$lt_shell_append])
  7565. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7566. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7567. lt_unset=unset
  7568. else
  7569. lt_unset=false
  7570. fi
  7571. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7572. # test EBCDIC or ASCII
  7573. case `echo X|tr X '\101'` in
  7574. A) # ASCII based system
  7575. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7576. lt_SP2NL='tr \040 \012'
  7577. lt_NL2SP='tr \015\012 \040\040'
  7578. ;;
  7579. *) # EBCDIC based system
  7580. lt_SP2NL='tr \100 \n'
  7581. lt_NL2SP='tr \r\n \100\100'
  7582. ;;
  7583. esac
  7584. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7585. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7586. ])# _LT_CHECK_SHELL_FEATURES
  7587. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  7588. # ------------------------------------------------------
  7589. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  7590. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  7591. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  7592. [dnl {
  7593. sed -e '/^$1 ()$/,/^} # $1 /c\
  7594. $1 ()\
  7595. {\
  7596. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  7597. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  7598. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7599. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7600. test 0 -eq $? || _lt_function_replace_fail=:
  7601. ])
  7602. # _LT_PROG_REPLACE_SHELLFNS
  7603. # -------------------------
  7604. # Replace existing portable implementations of several shell functions with
  7605. # equivalent extended shell implementations where those features are available..
  7606. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  7607. [if test x"$xsi_shell" = xyes; then
  7608. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  7609. case ${1} in
  7610. */*) func_dirname_result="${1%/*}${2}" ;;
  7611. * ) func_dirname_result="${3}" ;;
  7612. esac])
  7613. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  7614. func_basename_result="${1##*/}"])
  7615. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  7616. case ${1} in
  7617. */*) func_dirname_result="${1%/*}${2}" ;;
  7618. * ) func_dirname_result="${3}" ;;
  7619. esac
  7620. func_basename_result="${1##*/}"])
  7621. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  7622. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7623. # positional parameters, so assign one to ordinary parameter first.
  7624. func_stripname_result=${3}
  7625. func_stripname_result=${func_stripname_result#"${1}"}
  7626. func_stripname_result=${func_stripname_result%"${2}"}])
  7627. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  7628. func_split_long_opt_name=${1%%=*}
  7629. func_split_long_opt_arg=${1#*=}])
  7630. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  7631. func_split_short_opt_arg=${1#??}
  7632. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  7633. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7634. case ${1} in
  7635. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7636. *) func_lo2o_result=${1} ;;
  7637. esac])
  7638. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7639. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7640. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7641. fi
  7642. if test x"$lt_shell_append" = xyes; then
  7643. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7644. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7645. func_quote_for_eval "${2}"
  7646. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7647. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7648. # Save a `func_append' function call where possible by direct use of '+='
  7649. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7650. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7651. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7652. test 0 -eq $? || _lt_function_replace_fail=:
  7653. else
  7654. # Save a `func_append' function call even when '+=' is not available
  7655. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7656. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7657. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7658. test 0 -eq $? || _lt_function_replace_fail=:
  7659. fi
  7660. if test x"$_lt_function_replace_fail" = x":"; then
  7661. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7662. fi
  7663. ])
  7664. # _LT_PATH_CONVERSION_FUNCTIONS
  7665. # -----------------------------
  7666. # Determine which file name conversion functions should be used by
  7667. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7668. # for certain cross-compile configurations and native mingw.
  7669. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7670. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7671. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7672. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7673. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7674. [case $host in
  7675. *-*-mingw* )
  7676. case $build in
  7677. *-*-mingw* ) # actually msys
  7678. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7679. ;;
  7680. *-*-cygwin* )
  7681. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7682. ;;
  7683. * ) # otherwise, assume *nix
  7684. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7685. ;;
  7686. esac
  7687. ;;
  7688. *-*-cygwin* )
  7689. case $build in
  7690. *-*-mingw* ) # actually msys
  7691. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7692. ;;
  7693. *-*-cygwin* )
  7694. lt_cv_to_host_file_cmd=func_convert_file_noop
  7695. ;;
  7696. * ) # otherwise, assume *nix
  7697. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7698. ;;
  7699. esac
  7700. ;;
  7701. * ) # unhandled hosts (and "normal" native builds)
  7702. lt_cv_to_host_file_cmd=func_convert_file_noop
  7703. ;;
  7704. esac
  7705. ])
  7706. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7707. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7708. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7709. [0], [convert $build file names to $host format])dnl
  7710. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7711. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7712. [#assume ordinary cross tools, or native build.
  7713. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7714. case $host in
  7715. *-*-mingw* )
  7716. case $build in
  7717. *-*-mingw* ) # actually msys
  7718. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7719. ;;
  7720. esac
  7721. ;;
  7722. esac
  7723. ])
  7724. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7725. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7726. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7727. [0], [convert $build files to toolchain format])dnl
  7728. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7729. # Helper functions for option handling. -*- Autoconf -*-
  7730. #
  7731. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7732. # Inc.
  7733. # Written by Gary V. Vaughan, 2004
  7734. #
  7735. # This file is free software; the Free Software Foundation gives
  7736. # unlimited permission to copy and/or distribute it, with or without
  7737. # modifications, as long as this notice is preserved.
  7738. # serial 7 ltoptions.m4
  7739. # This is to help aclocal find these macros, as it can't see m4_define.
  7740. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7741. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7742. # ------------------------------------------
  7743. m4_define([_LT_MANGLE_OPTION],
  7744. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7745. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7746. # ---------------------------------------
  7747. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7748. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7749. # saved as a flag.
  7750. m4_define([_LT_SET_OPTION],
  7751. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7752. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7753. _LT_MANGLE_DEFUN([$1], [$2]),
  7754. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7755. ])
  7756. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7757. # ------------------------------------------------------------
  7758. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7759. m4_define([_LT_IF_OPTION],
  7760. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7761. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7762. # -------------------------------------------------------
  7763. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7764. # are set.
  7765. m4_define([_LT_UNLESS_OPTIONS],
  7766. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7767. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7768. [m4_define([$0_found])])])[]dnl
  7769. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7770. ])[]dnl
  7771. ])
  7772. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7773. # ----------------------------------------
  7774. # OPTION-LIST is a space-separated list of Libtool options associated
  7775. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7776. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7777. # the unknown option and exit.
  7778. m4_defun([_LT_SET_OPTIONS],
  7779. [# Set options
  7780. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7781. [_LT_SET_OPTION([$1], _LT_Option)])
  7782. m4_if([$1],[LT_INIT],[
  7783. dnl
  7784. dnl Simply set some default values (i.e off) if boolean options were not
  7785. dnl specified:
  7786. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7787. ])
  7788. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7789. ])
  7790. dnl
  7791. dnl If no reference was made to various pairs of opposing options, then
  7792. dnl we run the default mode handler for the pair. For example, if neither
  7793. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7794. dnl archives by default:
  7795. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7796. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7797. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7798. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7799. [_LT_ENABLE_FAST_INSTALL])
  7800. ])
  7801. ])# _LT_SET_OPTIONS
  7802. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7803. # -----------------------------------------
  7804. m4_define([_LT_MANGLE_DEFUN],
  7805. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7806. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7807. # -----------------------------------------------
  7808. m4_define([LT_OPTION_DEFINE],
  7809. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7810. ])# LT_OPTION_DEFINE
  7811. # dlopen
  7812. # ------
  7813. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7814. ])
  7815. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7816. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7817. AC_DIAGNOSE([obsolete],
  7818. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7819. put the `dlopen' option into LT_INIT's first parameter.])
  7820. ])
  7821. dnl aclocal-1.4 backwards compatibility:
  7822. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7823. # win32-dll
  7824. # ---------
  7825. # Declare package support for building win32 dll's.
  7826. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7827. [enable_win32_dll=yes
  7828. case $host in
  7829. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7830. AC_CHECK_TOOL(AS, as, false)
  7831. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7832. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7833. ;;
  7834. esac
  7835. test -z "$AS" && AS=as
  7836. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7837. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7838. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7839. test -z "$OBJDUMP" && OBJDUMP=objdump
  7840. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7841. ])# win32-dll
  7842. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7843. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7844. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7845. AC_DIAGNOSE([obsolete],
  7846. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7847. put the `win32-dll' option into LT_INIT's first parameter.])
  7848. ])
  7849. dnl aclocal-1.4 backwards compatibility:
  7850. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7851. # _LT_ENABLE_SHARED([DEFAULT])
  7852. # ----------------------------
  7853. # implement the --enable-shared flag, and supports the `shared' and
  7854. # `disable-shared' LT_INIT options.
  7855. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7856. m4_define([_LT_ENABLE_SHARED],
  7857. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7858. AC_ARG_ENABLE([shared],
  7859. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7860. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7861. [p=${PACKAGE-default}
  7862. case $enableval in
  7863. yes) enable_shared=yes ;;
  7864. no) enable_shared=no ;;
  7865. *)
  7866. enable_shared=no
  7867. # Look at the argument we got. We use all the common list separators.
  7868. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7869. for pkg in $enableval; do
  7870. IFS="$lt_save_ifs"
  7871. if test "X$pkg" = "X$p"; then
  7872. enable_shared=yes
  7873. fi
  7874. done
  7875. IFS="$lt_save_ifs"
  7876. ;;
  7877. esac],
  7878. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7879. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7880. [Whether or not to build shared libraries])
  7881. ])# _LT_ENABLE_SHARED
  7882. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7883. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7884. # Old names:
  7885. AC_DEFUN([AC_ENABLE_SHARED],
  7886. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7887. ])
  7888. AC_DEFUN([AC_DISABLE_SHARED],
  7889. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7890. ])
  7891. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7892. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7893. dnl aclocal-1.4 backwards compatibility:
  7894. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7895. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7896. # _LT_ENABLE_STATIC([DEFAULT])
  7897. # ----------------------------
  7898. # implement the --enable-static flag, and support the `static' and
  7899. # `disable-static' LT_INIT options.
  7900. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7901. m4_define([_LT_ENABLE_STATIC],
  7902. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7903. AC_ARG_ENABLE([static],
  7904. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7905. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7906. [p=${PACKAGE-default}
  7907. case $enableval in
  7908. yes) enable_static=yes ;;
  7909. no) enable_static=no ;;
  7910. *)
  7911. enable_static=no
  7912. # Look at the argument we got. We use all the common list separators.
  7913. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7914. for pkg in $enableval; do
  7915. IFS="$lt_save_ifs"
  7916. if test "X$pkg" = "X$p"; then
  7917. enable_static=yes
  7918. fi
  7919. done
  7920. IFS="$lt_save_ifs"
  7921. ;;
  7922. esac],
  7923. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7924. _LT_DECL([build_old_libs], [enable_static], [0],
  7925. [Whether or not to build static libraries])
  7926. ])# _LT_ENABLE_STATIC
  7927. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7928. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7929. # Old names:
  7930. AC_DEFUN([AC_ENABLE_STATIC],
  7931. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7932. ])
  7933. AC_DEFUN([AC_DISABLE_STATIC],
  7934. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7935. ])
  7936. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7937. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7938. dnl aclocal-1.4 backwards compatibility:
  7939. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7940. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7941. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7942. # ----------------------------------
  7943. # implement the --enable-fast-install flag, and support the `fast-install'
  7944. # and `disable-fast-install' LT_INIT options.
  7945. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7946. m4_define([_LT_ENABLE_FAST_INSTALL],
  7947. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7948. AC_ARG_ENABLE([fast-install],
  7949. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7950. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7951. [p=${PACKAGE-default}
  7952. case $enableval in
  7953. yes) enable_fast_install=yes ;;
  7954. no) enable_fast_install=no ;;
  7955. *)
  7956. enable_fast_install=no
  7957. # Look at the argument we got. We use all the common list separators.
  7958. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7959. for pkg in $enableval; do
  7960. IFS="$lt_save_ifs"
  7961. if test "X$pkg" = "X$p"; then
  7962. enable_fast_install=yes
  7963. fi
  7964. done
  7965. IFS="$lt_save_ifs"
  7966. ;;
  7967. esac],
  7968. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7969. _LT_DECL([fast_install], [enable_fast_install], [0],
  7970. [Whether or not to optimize for fast installation])dnl
  7971. ])# _LT_ENABLE_FAST_INSTALL
  7972. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7973. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7974. # Old names:
  7975. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7976. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7977. AC_DIAGNOSE([obsolete],
  7978. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7979. the `fast-install' option into LT_INIT's first parameter.])
  7980. ])
  7981. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7982. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7983. AC_DIAGNOSE([obsolete],
  7984. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7985. the `disable-fast-install' option into LT_INIT's first parameter.])
  7986. ])
  7987. dnl aclocal-1.4 backwards compatibility:
  7988. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7989. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7990. # _LT_WITH_PIC([MODE])
  7991. # --------------------
  7992. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7993. # LT_INIT options.
  7994. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7995. m4_define([_LT_WITH_PIC],
  7996. [AC_ARG_WITH([pic],
  7997. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7998. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7999. [lt_p=${PACKAGE-default}
  8000. case $withval in
  8001. yes|no) pic_mode=$withval ;;
  8002. *)
  8003. pic_mode=default
  8004. # Look at the argument we got. We use all the common list separators.
  8005. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8006. for lt_pkg in $withval; do
  8007. IFS="$lt_save_ifs"
  8008. if test "X$lt_pkg" = "X$lt_p"; then
  8009. pic_mode=yes
  8010. fi
  8011. done
  8012. IFS="$lt_save_ifs"
  8013. ;;
  8014. esac],
  8015. [pic_mode=default])
  8016. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  8017. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  8018. ])# _LT_WITH_PIC
  8019. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  8020. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  8021. # Old name:
  8022. AU_DEFUN([AC_LIBTOOL_PICMODE],
  8023. [_LT_SET_OPTION([LT_INIT], [pic-only])
  8024. AC_DIAGNOSE([obsolete],
  8025. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  8026. put the `pic-only' option into LT_INIT's first parameter.])
  8027. ])
  8028. dnl aclocal-1.4 backwards compatibility:
  8029. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  8030. m4_define([_LTDL_MODE], [])
  8031. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  8032. [m4_define([_LTDL_MODE], [nonrecursive])])
  8033. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  8034. [m4_define([_LTDL_MODE], [recursive])])
  8035. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  8036. [m4_define([_LTDL_MODE], [subproject])])
  8037. m4_define([_LTDL_TYPE], [])
  8038. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  8039. [m4_define([_LTDL_TYPE], [installable])])
  8040. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  8041. [m4_define([_LTDL_TYPE], [convenience])])
  8042. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  8043. #
  8044. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  8045. # Written by Gary V. Vaughan, 2004
  8046. #
  8047. # This file is free software; the Free Software Foundation gives
  8048. # unlimited permission to copy and/or distribute it, with or without
  8049. # modifications, as long as this notice is preserved.
  8050. # serial 6 ltsugar.m4
  8051. # This is to help aclocal find these macros, as it can't see m4_define.
  8052. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  8053. # lt_join(SEP, ARG1, [ARG2...])
  8054. # -----------------------------
  8055. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  8056. # associated separator.
  8057. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  8058. # versions in m4sugar had bugs.
  8059. m4_define([lt_join],
  8060. [m4_if([$#], [1], [],
  8061. [$#], [2], [[$2]],
  8062. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  8063. m4_define([_lt_join],
  8064. [m4_if([$#$2], [2], [],
  8065. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  8066. # lt_car(LIST)
  8067. # lt_cdr(LIST)
  8068. # ------------
  8069. # Manipulate m4 lists.
  8070. # These macros are necessary as long as will still need to support
  8071. # Autoconf-2.59 which quotes differently.
  8072. m4_define([lt_car], [[$1]])
  8073. m4_define([lt_cdr],
  8074. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  8075. [$#], 1, [],
  8076. [m4_dquote(m4_shift($@))])])
  8077. m4_define([lt_unquote], $1)
  8078. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  8079. # ------------------------------------------
  8080. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  8081. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  8082. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  8083. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  8084. # than defined and empty).
  8085. #
  8086. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  8087. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  8088. m4_define([lt_append],
  8089. [m4_define([$1],
  8090. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  8091. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  8092. # ----------------------------------------------------------
  8093. # Produce a SEP delimited list of all paired combinations of elements of
  8094. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  8095. # has the form PREFIXmINFIXSUFFIXn.
  8096. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  8097. m4_define([lt_combine],
  8098. [m4_if(m4_eval([$# > 3]), [1],
  8099. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  8100. [[m4_foreach([_Lt_prefix], [$2],
  8101. [m4_foreach([_Lt_suffix],
  8102. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  8103. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  8104. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  8105. # -----------------------------------------------------------------------
  8106. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  8107. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  8108. m4_define([lt_if_append_uniq],
  8109. [m4_ifdef([$1],
  8110. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  8111. [lt_append([$1], [$2], [$3])$4],
  8112. [$5])],
  8113. [lt_append([$1], [$2], [$3])$4])])
  8114. # lt_dict_add(DICT, KEY, VALUE)
  8115. # -----------------------------
  8116. m4_define([lt_dict_add],
  8117. [m4_define([$1($2)], [$3])])
  8118. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  8119. # --------------------------------------------
  8120. m4_define([lt_dict_add_subkey],
  8121. [m4_define([$1($2:$3)], [$4])])
  8122. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  8123. # ----------------------------------
  8124. m4_define([lt_dict_fetch],
  8125. [m4_ifval([$3],
  8126. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  8127. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  8128. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  8129. # -----------------------------------------------------------------
  8130. m4_define([lt_if_dict_fetch],
  8131. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  8132. [$5],
  8133. [$6])])
  8134. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  8135. # --------------------------------------------------------------
  8136. m4_define([lt_dict_filter],
  8137. [m4_if([$5], [], [],
  8138. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  8139. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  8140. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  8141. ])
  8142. # ltversion.m4 -- version numbers -*- Autoconf -*-
  8143. #
  8144. # Copyright (C) 2004 Free Software Foundation, Inc.
  8145. # Written by Scott James Remnant, 2004
  8146. #
  8147. # This file is free software; the Free Software Foundation gives
  8148. # unlimited permission to copy and/or distribute it, with or without
  8149. # modifications, as long as this notice is preserved.
  8150. # @configure_input@
  8151. # serial 3337 ltversion.m4
  8152. # This file is part of GNU Libtool
  8153. m4_define([LT_PACKAGE_VERSION], [2.4.2])
  8154. m4_define([LT_PACKAGE_REVISION], [1.3337])
  8155. AC_DEFUN([LTVERSION_VERSION],
  8156. [macro_version='2.4.2'
  8157. macro_revision='1.3337'
  8158. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  8159. _LT_DECL(, macro_revision, 0)
  8160. ])
  8161. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  8162. #
  8163. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  8164. # Written by Scott James Remnant, 2004.
  8165. #
  8166. # This file is free software; the Free Software Foundation gives
  8167. # unlimited permission to copy and/or distribute it, with or without
  8168. # modifications, as long as this notice is preserved.
  8169. # serial 5 lt~obsolete.m4
  8170. # These exist entirely to fool aclocal when bootstrapping libtool.
  8171. #
  8172. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  8173. # which have later been changed to m4_define as they aren't part of the
  8174. # exported API, or moved to Autoconf or Automake where they belong.
  8175. #
  8176. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  8177. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  8178. # using a macro with the same name in our local m4/libtool.m4 it'll
  8179. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  8180. # and doesn't know about Autoconf macros at all.)
  8181. #
  8182. # So we provide this file, which has a silly filename so it's always
  8183. # included after everything else. This provides aclocal with the
  8184. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  8185. # because those macros already exist, or will be overwritten later.
  8186. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  8187. #
  8188. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  8189. # Yes, that means every name once taken will need to remain here until
  8190. # we give up compatibility with versions before 1.7, at which point
  8191. # we need to keep only those names which we still refer to.
  8192. # This is to help aclocal find these macros, as it can't see m4_define.
  8193. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  8194. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  8195. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  8196. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  8197. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  8198. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  8199. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  8200. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  8201. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  8202. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  8203. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  8204. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  8205. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  8206. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  8207. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  8208. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  8209. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  8210. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  8211. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  8212. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  8213. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  8214. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  8215. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  8216. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  8217. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  8218. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  8219. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  8220. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  8221. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  8222. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  8223. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  8224. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  8225. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  8226. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  8227. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  8228. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  8229. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  8230. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  8231. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  8232. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  8233. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  8234. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  8235. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  8236. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  8237. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  8238. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  8239. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  8240. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  8241. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  8242. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  8243. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  8244. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  8245. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  8246. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  8247. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  8248. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  8249. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  8250. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  8251. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  8252. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  8253. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  8254. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  8255. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  8256. # serial 1 (pkg-config-0.24)
  8257. #
  8258. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  8259. #
  8260. # This program is free software; you can redistribute it and/or modify
  8261. # it under the terms of the GNU General Public License as published by
  8262. # the Free Software Foundation; either version 2 of the License, or
  8263. # (at your option) any later version.
  8264. #
  8265. # This program is distributed in the hope that it will be useful, but
  8266. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8267. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8268. # General Public License for more details.
  8269. #
  8270. # You should have received a copy of the GNU General Public License
  8271. # along with this program; if not, write to the Free Software
  8272. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  8273. #
  8274. # As a special exception to the GNU General Public License, if you
  8275. # distribute this file as part of a program that contains a
  8276. # configuration script generated by Autoconf, you may include it under
  8277. # the same distribution terms that you use for the rest of that program.
  8278. # PKG_PROG_PKG_CONFIG([MIN-VERSION])
  8279. # ----------------------------------
  8280. AC_DEFUN([PKG_PROG_PKG_CONFIG],
  8281. [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  8282. m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
  8283. m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
  8284. AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  8285. AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  8286. AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  8287. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  8288. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  8289. fi
  8290. if test -n "$PKG_CONFIG"; then
  8291. _pkg_min_version=m4_default([$1], [0.9.0])
  8292. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  8293. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  8294. AC_MSG_RESULT([yes])
  8295. else
  8296. AC_MSG_RESULT([no])
  8297. PKG_CONFIG=""
  8298. fi
  8299. fi[]dnl
  8300. ])# PKG_PROG_PKG_CONFIG
  8301. # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  8302. #
  8303. # Check to see whether a particular set of modules exists. Similar
  8304. # to PKG_CHECK_MODULES(), but does not set variables or print errors.
  8305. #
  8306. # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  8307. # only at the first occurence in configure.ac, so if the first place
  8308. # it's called might be skipped (such as if it is within an "if", you
  8309. # have to call PKG_CHECK_EXISTS manually
  8310. # --------------------------------------------------------------
  8311. AC_DEFUN([PKG_CHECK_EXISTS],
  8312. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  8313. if test -n "$PKG_CONFIG" && \
  8314. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  8315. m4_default([$2], [:])
  8316. m4_ifvaln([$3], [else
  8317. $3])dnl
  8318. fi])
  8319. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  8320. # ---------------------------------------------
  8321. m4_define([_PKG_CONFIG],
  8322. [if test -n "$$1"; then
  8323. pkg_cv_[]$1="$$1"
  8324. elif test -n "$PKG_CONFIG"; then
  8325. PKG_CHECK_EXISTS([$3],
  8326. [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
  8327. test "x$?" != "x0" && pkg_failed=yes ],
  8328. [pkg_failed=yes])
  8329. else
  8330. pkg_failed=untried
  8331. fi[]dnl
  8332. ])# _PKG_CONFIG
  8333. # _PKG_SHORT_ERRORS_SUPPORTED
  8334. # -----------------------------
  8335. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  8336. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  8337. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8338. _pkg_short_errors_supported=yes
  8339. else
  8340. _pkg_short_errors_supported=no
  8341. fi[]dnl
  8342. ])# _PKG_SHORT_ERRORS_SUPPORTED
  8343. # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  8344. # [ACTION-IF-NOT-FOUND])
  8345. #
  8346. #
  8347. # Note that if there is a possibility the first call to
  8348. # PKG_CHECK_MODULES might not happen, you should be sure to include an
  8349. # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  8350. #
  8351. #
  8352. # --------------------------------------------------------------
  8353. AC_DEFUN([PKG_CHECK_MODULES],
  8354. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  8355. AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  8356. AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  8357. pkg_failed=no
  8358. AC_MSG_CHECKING([for $1])
  8359. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  8360. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  8361. m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  8362. and $1[]_LIBS to avoid the need to call pkg-config.
  8363. See the pkg-config man page for more details.])
  8364. if test $pkg_failed = yes; then
  8365. AC_MSG_RESULT([no])
  8366. _PKG_SHORT_ERRORS_SUPPORTED
  8367. if test $_pkg_short_errors_supported = yes; then
  8368. $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
  8369. else
  8370. $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
  8371. fi
  8372. # Put the nasty error message in config.log where it belongs
  8373. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  8374. m4_default([$4], [AC_MSG_ERROR(
  8375. [Package requirements ($2) were not met:
  8376. $$1_PKG_ERRORS
  8377. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8378. installed software in a non-standard prefix.
  8379. _PKG_TEXT])[]dnl
  8380. ])
  8381. elif test $pkg_failed = untried; then
  8382. AC_MSG_RESULT([no])
  8383. m4_default([$4], [AC_MSG_FAILURE(
  8384. [The pkg-config script could not be found or is too old. Make sure it
  8385. is in your PATH or set the PKG_CONFIG environment variable to the full
  8386. path to pkg-config.
  8387. _PKG_TEXT
  8388. To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
  8389. ])
  8390. else
  8391. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  8392. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  8393. AC_MSG_RESULT([yes])
  8394. $3
  8395. fi[]dnl
  8396. ])# PKG_CHECK_MODULES
  8397. # PKG_INSTALLDIR(DIRECTORY)
  8398. # -------------------------
  8399. # Substitutes the variable pkgconfigdir as the location where a module
  8400. # should install pkg-config .pc files. By default the directory is
  8401. # $libdir/pkgconfig, but the default can be changed by passing
  8402. # DIRECTORY. The user can override through the --with-pkgconfigdir
  8403. # parameter.
  8404. AC_DEFUN([PKG_INSTALLDIR],
  8405. [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
  8406. m4_pushdef([pkg_description],
  8407. [pkg-config installation directory @<:@]pkg_default[@:>@])
  8408. AC_ARG_WITH([pkgconfigdir],
  8409. [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
  8410. [with_pkgconfigdir=]pkg_default)
  8411. AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
  8412. m4_popdef([pkg_default])
  8413. m4_popdef([pkg_description])
  8414. ]) dnl PKG_INSTALLDIR
  8415. # PKG_NOARCH_INSTALLDIR(DIRECTORY)
  8416. # -------------------------
  8417. # Substitutes the variable noarch_pkgconfigdir as the location where a
  8418. # module should install arch-independent pkg-config .pc files. By
  8419. # default the directory is $datadir/pkgconfig, but the default can be
  8420. # changed by passing DIRECTORY. The user can override through the
  8421. # --with-noarch-pkgconfigdir parameter.
  8422. AC_DEFUN([PKG_NOARCH_INSTALLDIR],
  8423. [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
  8424. m4_pushdef([pkg_description],
  8425. [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
  8426. AC_ARG_WITH([noarch-pkgconfigdir],
  8427. [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
  8428. [with_noarch_pkgconfigdir=]pkg_default)
  8429. AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
  8430. m4_popdef([pkg_default])
  8431. m4_popdef([pkg_description])
  8432. ]) dnl PKG_NOARCH_INSTALLDIR
  8433. # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
  8434. # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  8435. # -------------------------------------------
  8436. # Retrieves the value of the pkg-config variable for the given module.
  8437. AC_DEFUN([PKG_CHECK_VAR],
  8438. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  8439. AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
  8440. _PKG_CONFIG([$1], [variable="][$3]["], [$2])
  8441. AS_VAR_COPY([$1], [pkg_cv_][$1])
  8442. AS_VAR_IF([$1], [""], [$5], [$4])dnl
  8443. ])# PKG_CHECK_VAR
  8444. # Copyright (C) 2002-2013 Free Software Foundation, Inc.
  8445. #
  8446. # This file is free software; the Free Software Foundation
  8447. # gives unlimited permission to copy and/or distribute it,
  8448. # with or without modifications, as long as this notice is preserved.
  8449. # AM_AUTOMAKE_VERSION(VERSION)
  8450. # ----------------------------
  8451. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  8452. # generated from the m4 files accompanying Automake X.Y.
  8453. # (This private macro should not be called outside this file.)
  8454. AC_DEFUN([AM_AUTOMAKE_VERSION],
  8455. [am__api_version='1.14'
  8456. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  8457. dnl require some minimum version. Point them to the right macro.
  8458. m4_if([$1], [1.14.1], [],
  8459. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  8460. ])
  8461. # _AM_AUTOCONF_VERSION(VERSION)
  8462. # -----------------------------
  8463. # aclocal traces this macro to find the Autoconf version.
  8464. # This is a private macro too. Using m4_define simplifies
  8465. # the logic in aclocal, which can simply ignore this definition.
  8466. m4_define([_AM_AUTOCONF_VERSION], [])
  8467. # AM_SET_CURRENT_AUTOMAKE_VERSION
  8468. # -------------------------------
  8469. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  8470. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  8471. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  8472. [AM_AUTOMAKE_VERSION([1.14.1])dnl
  8473. m4_ifndef([AC_AUTOCONF_VERSION],
  8474. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  8475. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  8476. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  8477. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  8478. #
  8479. # This file is free software; the Free Software Foundation
  8480. # gives unlimited permission to copy and/or distribute it,
  8481. # with or without modifications, as long as this notice is preserved.
  8482. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  8483. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  8484. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  8485. #
  8486. # Of course, Automake must honor this variable whenever it calls a
  8487. # tool from the auxiliary directory. The problem is that $srcdir (and
  8488. # therefore $ac_aux_dir as well) can be either absolute or relative,
  8489. # depending on how configure is run. This is pretty annoying, since
  8490. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  8491. # source directory, any form will work fine, but in subdirectories a
  8492. # relative path needs to be adjusted first.
  8493. #
  8494. # $ac_aux_dir/missing
  8495. # fails when called from a subdirectory if $ac_aux_dir is relative
  8496. # $top_srcdir/$ac_aux_dir/missing
  8497. # fails if $ac_aux_dir is absolute,
  8498. # fails when called from a subdirectory in a VPATH build with
  8499. # a relative $ac_aux_dir
  8500. #
  8501. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  8502. # are both prefixed by $srcdir. In an in-source build this is usually
  8503. # harmless because $srcdir is '.', but things will broke when you
  8504. # start a VPATH build or use an absolute $srcdir.
  8505. #
  8506. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  8507. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  8508. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  8509. # and then we would define $MISSING as
  8510. # MISSING="\${SHELL} $am_aux_dir/missing"
  8511. # This will work as long as MISSING is not called from configure, because
  8512. # unfortunately $(top_srcdir) has no meaning in configure.
  8513. # However there are other variables, like CC, which are often used in
  8514. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  8515. #
  8516. # Another solution, used here, is to always expand $ac_aux_dir to an
  8517. # absolute PATH. The drawback is that using absolute paths prevent a
  8518. # configured tree to be moved without reconfiguration.
  8519. AC_DEFUN([AM_AUX_DIR_EXPAND],
  8520. [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  8521. # Expand $ac_aux_dir to an absolute path.
  8522. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  8523. ])
  8524. # AM_CONDITIONAL -*- Autoconf -*-
  8525. # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  8526. #
  8527. # This file is free software; the Free Software Foundation
  8528. # gives unlimited permission to copy and/or distribute it,
  8529. # with or without modifications, as long as this notice is preserved.
  8530. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  8531. # -------------------------------------
  8532. # Define a conditional.
  8533. AC_DEFUN([AM_CONDITIONAL],
  8534. [AC_PREREQ([2.52])dnl
  8535. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  8536. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  8537. AC_SUBST([$1_TRUE])dnl
  8538. AC_SUBST([$1_FALSE])dnl
  8539. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  8540. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  8541. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  8542. if $2; then
  8543. $1_TRUE=
  8544. $1_FALSE='#'
  8545. else
  8546. $1_TRUE='#'
  8547. $1_FALSE=
  8548. fi
  8549. AC_CONFIG_COMMANDS_PRE(
  8550. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  8551. AC_MSG_ERROR([[conditional "$1" was never defined.
  8552. Usually this means the macro was only invoked conditionally.]])
  8553. fi])])
  8554. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  8555. #
  8556. # This file is free software; the Free Software Foundation
  8557. # gives unlimited permission to copy and/or distribute it,
  8558. # with or without modifications, as long as this notice is preserved.
  8559. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  8560. # written in clear, in which case automake, when reading aclocal.m4,
  8561. # will think it sees a *use*, and therefore will trigger all it's
  8562. # C support machinery. Also note that it means that autoscan, seeing
  8563. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  8564. # _AM_DEPENDENCIES(NAME)
  8565. # ----------------------
  8566. # See how the compiler implements dependency checking.
  8567. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  8568. # We try a few techniques and use that to set a single cache variable.
  8569. #
  8570. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  8571. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  8572. # dependency, and given that the user is not expected to run this macro,
  8573. # just rely on AC_PROG_CC.
  8574. AC_DEFUN([_AM_DEPENDENCIES],
  8575. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  8576. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  8577. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  8578. AC_REQUIRE([AM_DEP_TRACK])dnl
  8579. m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
  8580. [$1], [CXX], [depcc="$CXX" am_compiler_list=],
  8581. [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  8582. [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  8583. [$1], [UPC], [depcc="$UPC" am_compiler_list=],
  8584. [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  8585. [depcc="$$1" am_compiler_list=])
  8586. AC_CACHE_CHECK([dependency style of $depcc],
  8587. [am_cv_$1_dependencies_compiler_type],
  8588. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8589. # We make a subdir and do the tests there. Otherwise we can end up
  8590. # making bogus files that we don't know about and never remove. For
  8591. # instance it was reported that on HP-UX the gcc test will end up
  8592. # making a dummy file named 'D' -- because '-MD' means "put the output
  8593. # in D".
  8594. rm -rf conftest.dir
  8595. mkdir conftest.dir
  8596. # Copy depcomp to subdir because otherwise we won't find it if we're
  8597. # using a relative directory.
  8598. cp "$am_depcomp" conftest.dir
  8599. cd conftest.dir
  8600. # We will build objects and dependencies in a subdirectory because
  8601. # it helps to detect inapplicable dependency modes. For instance
  8602. # both Tru64's cc and ICC support -MD to output dependencies as a
  8603. # side effect of compilation, but ICC will put the dependencies in
  8604. # the current directory while Tru64 will put them in the object
  8605. # directory.
  8606. mkdir sub
  8607. am_cv_$1_dependencies_compiler_type=none
  8608. if test "$am_compiler_list" = ""; then
  8609. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  8610. fi
  8611. am__universal=false
  8612. m4_case([$1], [CC],
  8613. [case " $depcc " in #(
  8614. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8615. esac],
  8616. [CXX],
  8617. [case " $depcc " in #(
  8618. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8619. esac])
  8620. for depmode in $am_compiler_list; do
  8621. # Setup a source with many dependencies, because some compilers
  8622. # like to wrap large dependency lists on column 80 (with \), and
  8623. # we should not choose a depcomp mode which is confused by this.
  8624. #
  8625. # We need to recreate these files for each test, as the compiler may
  8626. # overwrite some of them when testing with obscure command lines.
  8627. # This happens at least with the AIX C compiler.
  8628. : > sub/conftest.c
  8629. for i in 1 2 3 4 5 6; do
  8630. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8631. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  8632. # Solaris 10 /bin/sh.
  8633. echo '/* dummy */' > sub/conftst$i.h
  8634. done
  8635. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8636. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  8637. # mode. It turns out that the SunPro C++ compiler does not properly
  8638. # handle '-M -o', and we need to detect this. Also, some Intel
  8639. # versions had trouble with output in subdirs.
  8640. am__obj=sub/conftest.${OBJEXT-o}
  8641. am__minus_obj="-o $am__obj"
  8642. case $depmode in
  8643. gcc)
  8644. # This depmode causes a compiler race in universal mode.
  8645. test "$am__universal" = false || continue
  8646. ;;
  8647. nosideeffect)
  8648. # After this tag, mechanisms are not by side-effect, so they'll
  8649. # only be used when explicitly requested.
  8650. if test "x$enable_dependency_tracking" = xyes; then
  8651. continue
  8652. else
  8653. break
  8654. fi
  8655. ;;
  8656. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  8657. # This compiler won't grok '-c -o', but also, the minuso test has
  8658. # not run yet. These depmodes are late enough in the game, and
  8659. # so weak that their functioning should not be impacted.
  8660. am__obj=conftest.${OBJEXT-o}
  8661. am__minus_obj=
  8662. ;;
  8663. none) break ;;
  8664. esac
  8665. if depmode=$depmode \
  8666. source=sub/conftest.c object=$am__obj \
  8667. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8668. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  8669. >/dev/null 2>conftest.err &&
  8670. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8671. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8672. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8673. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8674. # icc doesn't choke on unknown options, it will just issue warnings
  8675. # or remarks (even with -Werror). So we grep stderr for any message
  8676. # that says an option was ignored or not supported.
  8677. # When given -MP, icc 7.0 and 7.1 complain thusly:
  8678. # icc: Command line warning: ignoring option '-M'; no argument required
  8679. # The diagnosis changed in icc 8.0:
  8680. # icc: Command line remark: option '-MP' not supported
  8681. if (grep 'ignoring option' conftest.err ||
  8682. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8683. am_cv_$1_dependencies_compiler_type=$depmode
  8684. break
  8685. fi
  8686. fi
  8687. done
  8688. cd ..
  8689. rm -rf conftest.dir
  8690. else
  8691. am_cv_$1_dependencies_compiler_type=none
  8692. fi
  8693. ])
  8694. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8695. AM_CONDITIONAL([am__fastdep$1], [
  8696. test "x$enable_dependency_tracking" != xno \
  8697. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8698. ])
  8699. # AM_SET_DEPDIR
  8700. # -------------
  8701. # Choose a directory name for dependency files.
  8702. # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  8703. AC_DEFUN([AM_SET_DEPDIR],
  8704. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8705. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8706. ])
  8707. # AM_DEP_TRACK
  8708. # ------------
  8709. AC_DEFUN([AM_DEP_TRACK],
  8710. [AC_ARG_ENABLE([dependency-tracking], [dnl
  8711. AS_HELP_STRING(
  8712. [--enable-dependency-tracking],
  8713. [do not reject slow dependency extractors])
  8714. AS_HELP_STRING(
  8715. [--disable-dependency-tracking],
  8716. [speeds up one-time build])])
  8717. if test "x$enable_dependency_tracking" != xno; then
  8718. am_depcomp="$ac_aux_dir/depcomp"
  8719. AMDEPBACKSLASH='\'
  8720. am__nodep='_no'
  8721. fi
  8722. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8723. AC_SUBST([AMDEPBACKSLASH])dnl
  8724. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8725. AC_SUBST([am__nodep])dnl
  8726. _AM_SUBST_NOTMAKE([am__nodep])dnl
  8727. ])
  8728. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8729. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  8730. #
  8731. # This file is free software; the Free Software Foundation
  8732. # gives unlimited permission to copy and/or distribute it,
  8733. # with or without modifications, as long as this notice is preserved.
  8734. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8735. # ------------------------------
  8736. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8737. [{
  8738. # Older Autoconf quotes --file arguments for eval, but not when files
  8739. # are listed without --file. Let's play safe and only enable the eval
  8740. # if we detect the quoting.
  8741. case $CONFIG_FILES in
  8742. *\'*) eval set x "$CONFIG_FILES" ;;
  8743. *) set x $CONFIG_FILES ;;
  8744. esac
  8745. shift
  8746. for mf
  8747. do
  8748. # Strip MF so we end up with the name of the file.
  8749. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8750. # Check whether this is an Automake generated Makefile or not.
  8751. # We used to match only the files named 'Makefile.in', but
  8752. # some people rename them; so instead we look at the file content.
  8753. # Grep'ing the first line is not enough: some people post-process
  8754. # each Makefile.in and add a new line on top of each file to say so.
  8755. # Grep'ing the whole file is not good either: AIX grep has a line
  8756. # limit of 2048, but all sed's we know have understand at least 4000.
  8757. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8758. dirpart=`AS_DIRNAME("$mf")`
  8759. else
  8760. continue
  8761. fi
  8762. # Extract the definition of DEPDIR, am__include, and am__quote
  8763. # from the Makefile without running 'make'.
  8764. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8765. test -z "$DEPDIR" && continue
  8766. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8767. test -z "$am__include" && continue
  8768. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8769. # Find all dependency output files, they are included files with
  8770. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8771. # simplest approach to changing $(DEPDIR) to its actual value in the
  8772. # expansion.
  8773. for file in `sed -n "
  8774. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8775. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  8776. # Make sure the directory exists.
  8777. test -f "$dirpart/$file" && continue
  8778. fdir=`AS_DIRNAME(["$file"])`
  8779. AS_MKDIR_P([$dirpart/$fdir])
  8780. # echo "creating $dirpart/$file"
  8781. echo '# dummy' > "$dirpart/$file"
  8782. done
  8783. done
  8784. }
  8785. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8786. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8787. # -----------------------------
  8788. # This macro should only be invoked once -- use via AC_REQUIRE.
  8789. #
  8790. # This code is only required when automatic dependency tracking
  8791. # is enabled. FIXME. This creates each '.P' file that we will
  8792. # need in order to bootstrap the dependency handling code.
  8793. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8794. [AC_CONFIG_COMMANDS([depfiles],
  8795. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8796. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8797. ])
  8798. # Do all the work for Automake. -*- Autoconf -*-
  8799. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  8800. #
  8801. # This file is free software; the Free Software Foundation
  8802. # gives unlimited permission to copy and/or distribute it,
  8803. # with or without modifications, as long as this notice is preserved.
  8804. # This macro actually does too much. Some checks are only needed if
  8805. # your package does certain things. But this isn't really a big deal.
  8806. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  8807. m4_define([AC_PROG_CC],
  8808. m4_defn([AC_PROG_CC])
  8809. [_AM_PROG_CC_C_O
  8810. ])
  8811. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8812. # AM_INIT_AUTOMAKE([OPTIONS])
  8813. # -----------------------------------------------
  8814. # The call with PACKAGE and VERSION arguments is the old style
  8815. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8816. # and VERSION should now be passed to AC_INIT and removed from
  8817. # the call to AM_INIT_AUTOMAKE.
  8818. # We support both call styles for the transition. After
  8819. # the next Automake release, Autoconf can make the AC_INIT
  8820. # arguments mandatory, and then we can depend on a new Autoconf
  8821. # release and drop the old call support.
  8822. AC_DEFUN([AM_INIT_AUTOMAKE],
  8823. [AC_PREREQ([2.65])dnl
  8824. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8825. dnl the ones we care about.
  8826. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8827. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8828. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8829. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8830. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8831. # is not polluted with repeated "-I."
  8832. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8833. # test to see if srcdir already configured
  8834. if test -f $srcdir/config.status; then
  8835. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8836. fi
  8837. fi
  8838. # test whether we have cygpath
  8839. if test -z "$CYGPATH_W"; then
  8840. if (cygpath --version) >/dev/null 2>/dev/null; then
  8841. CYGPATH_W='cygpath -w'
  8842. else
  8843. CYGPATH_W=echo
  8844. fi
  8845. fi
  8846. AC_SUBST([CYGPATH_W])
  8847. # Define the identity of the package.
  8848. dnl Distinguish between old-style and new-style calls.
  8849. m4_ifval([$2],
  8850. [AC_DIAGNOSE([obsolete],
  8851. [$0: two- and three-arguments forms are deprecated.])
  8852. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8853. AC_SUBST([PACKAGE], [$1])dnl
  8854. AC_SUBST([VERSION], [$2])],
  8855. [_AM_SET_OPTIONS([$1])dnl
  8856. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8857. m4_if(
  8858. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  8859. [ok:ok],,
  8860. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8861. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8862. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8863. _AM_IF_OPTION([no-define],,
  8864. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  8865. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  8866. # Some tools Automake needs.
  8867. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8868. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8869. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  8870. AM_MISSING_PROG([AUTOCONF], [autoconf])
  8871. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  8872. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  8873. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  8874. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8875. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8876. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8877. # For better backward compatibility. To be removed once Automake 1.9.x
  8878. # dies out for good. For more background, see:
  8879. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  8880. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  8881. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  8882. # We need awk for the "check" target. The system "awk" is bad on
  8883. # some platforms.
  8884. AC_REQUIRE([AC_PROG_AWK])dnl
  8885. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8886. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8887. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8888. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8889. [_AM_PROG_TAR([v7])])])
  8890. _AM_IF_OPTION([no-dependencies],,
  8891. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8892. [_AM_DEPENDENCIES([CC])],
  8893. [m4_define([AC_PROG_CC],
  8894. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  8895. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8896. [_AM_DEPENDENCIES([CXX])],
  8897. [m4_define([AC_PROG_CXX],
  8898. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  8899. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8900. [_AM_DEPENDENCIES([OBJC])],
  8901. [m4_define([AC_PROG_OBJC],
  8902. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  8903. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  8904. [_AM_DEPENDENCIES([OBJCXX])],
  8905. [m4_define([AC_PROG_OBJCXX],
  8906. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  8907. ])
  8908. AC_REQUIRE([AM_SILENT_RULES])dnl
  8909. dnl The testsuite driver may need to know about EXEEXT, so add the
  8910. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  8911. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8912. AC_CONFIG_COMMANDS_PRE(dnl
  8913. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8914. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8915. # POSIX will say in a future version that running "rm -f" with no argument
  8916. # is OK; and we want to be able to make that assumption in our Makefile
  8917. # recipes. So use an aggressive probe to check that the usage we want is
  8918. # actually supported "in the wild" to an acceptable degree.
  8919. # See automake bug#10828.
  8920. # To make any issue more visible, cause the running configure to be aborted
  8921. # by default if the 'rm' program in use doesn't match our expectations; the
  8922. # user can still override this though.
  8923. if rm -f && rm -fr && rm -rf; then : OK; else
  8924. cat >&2 <<'END'
  8925. Oops!
  8926. Your 'rm' program seems unable to run without file operands specified
  8927. on the command line, even when the '-f' option is present. This is contrary
  8928. to the behaviour of most rm programs out there, and not conforming with
  8929. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  8930. Please tell bug-automake@gnu.org about your system, including the value
  8931. of your $PATH and any error possibly output before this message. This
  8932. can help us improve future automake versions.
  8933. END
  8934. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  8935. echo 'Configuration will proceed anyway, since you have set the' >&2
  8936. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  8937. echo >&2
  8938. else
  8939. cat >&2 <<'END'
  8940. Aborting the configuration process, to ensure you take notice of the issue.
  8941. You can download and install GNU coreutils to get an 'rm' implementation
  8942. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  8943. If you want to complete the configuration process using your problematic
  8944. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  8945. to "yes", and re-run configure.
  8946. END
  8947. AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
  8948. fi
  8949. fi
  8950. ])
  8951. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8952. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8953. dnl mangled by Autoconf and run in a shell conditional statement.
  8954. m4_define([_AC_COMPILER_EXEEXT],
  8955. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8956. # When config.status generates a header, we must update the stamp-h file.
  8957. # This file resides in the same directory as the config header
  8958. # that is generated. The stamp files are numbered to have different names.
  8959. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8960. # loop where config.status creates the headers, so we can generate
  8961. # our stamp files there.
  8962. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8963. [# Compute $1's index in $config_headers.
  8964. _am_arg=$1
  8965. _am_stamp_count=1
  8966. for _am_header in $config_headers :; do
  8967. case $_am_header in
  8968. $_am_arg | $_am_arg:* )
  8969. break ;;
  8970. * )
  8971. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8972. esac
  8973. done
  8974. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8975. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  8976. #
  8977. # This file is free software; the Free Software Foundation
  8978. # gives unlimited permission to copy and/or distribute it,
  8979. # with or without modifications, as long as this notice is preserved.
  8980. # AM_PROG_INSTALL_SH
  8981. # ------------------
  8982. # Define $install_sh.
  8983. AC_DEFUN([AM_PROG_INSTALL_SH],
  8984. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8985. if test x"${install_sh}" != xset; then
  8986. case $am_aux_dir in
  8987. *\ * | *\ *)
  8988. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8989. *)
  8990. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8991. esac
  8992. fi
  8993. AC_SUBST([install_sh])])
  8994. # Copyright (C) 2003-2013 Free Software Foundation, Inc.
  8995. #
  8996. # This file is free software; the Free Software Foundation
  8997. # gives unlimited permission to copy and/or distribute it,
  8998. # with or without modifications, as long as this notice is preserved.
  8999. # Check whether the underlying file-system supports filenames
  9000. # with a leading dot. For instance MS-DOS doesn't.
  9001. AC_DEFUN([AM_SET_LEADING_DOT],
  9002. [rm -rf .tst 2>/dev/null
  9003. mkdir .tst 2>/dev/null
  9004. if test -d .tst; then
  9005. am__leading_dot=.
  9006. else
  9007. am__leading_dot=_
  9008. fi
  9009. rmdir .tst 2>/dev/null
  9010. AC_SUBST([am__leading_dot])])
  9011. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  9012. # From Jim Meyering
  9013. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  9014. #
  9015. # This file is free software; the Free Software Foundation
  9016. # gives unlimited permission to copy and/or distribute it,
  9017. # with or without modifications, as long as this notice is preserved.
  9018. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  9019. # ----------------------------------
  9020. # Control maintainer-specific portions of Makefiles.
  9021. # Default is to disable them, unless 'enable' is passed literally.
  9022. # For symmetry, 'disable' may be passed as well. Anyway, the user
  9023. # can override the default with the --enable/--disable switch.
  9024. AC_DEFUN([AM_MAINTAINER_MODE],
  9025. [m4_case(m4_default([$1], [disable]),
  9026. [enable], [m4_define([am_maintainer_other], [disable])],
  9027. [disable], [m4_define([am_maintainer_other], [enable])],
  9028. [m4_define([am_maintainer_other], [enable])
  9029. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  9030. AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  9031. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  9032. AC_ARG_ENABLE([maintainer-mode],
  9033. [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
  9034. am_maintainer_other[ make rules and dependencies not useful
  9035. (and sometimes confusing) to the casual installer])],
  9036. [USE_MAINTAINER_MODE=$enableval],
  9037. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  9038. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  9039. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  9040. MAINT=$MAINTAINER_MODE_TRUE
  9041. AC_SUBST([MAINT])dnl
  9042. ]
  9043. )
  9044. # Check to see how 'make' treats includes. -*- Autoconf -*-
  9045. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  9046. #
  9047. # This file is free software; the Free Software Foundation
  9048. # gives unlimited permission to copy and/or distribute it,
  9049. # with or without modifications, as long as this notice is preserved.
  9050. # AM_MAKE_INCLUDE()
  9051. # -----------------
  9052. # Check to see how make treats includes.
  9053. AC_DEFUN([AM_MAKE_INCLUDE],
  9054. [am_make=${MAKE-make}
  9055. cat > confinc << 'END'
  9056. am__doit:
  9057. @echo this is the am__doit target
  9058. .PHONY: am__doit
  9059. END
  9060. # If we don't find an include directive, just comment out the code.
  9061. AC_MSG_CHECKING([for style of include used by $am_make])
  9062. am__include="#"
  9063. am__quote=
  9064. _am_result=none
  9065. # First try GNU make style include.
  9066. echo "include confinc" > confmf
  9067. # Ignore all kinds of additional output from 'make'.
  9068. case `$am_make -s -f confmf 2> /dev/null` in #(
  9069. *the\ am__doit\ target*)
  9070. am__include=include
  9071. am__quote=
  9072. _am_result=GNU
  9073. ;;
  9074. esac
  9075. # Now try BSD make style include.
  9076. if test "$am__include" = "#"; then
  9077. echo '.include "confinc"' > confmf
  9078. case `$am_make -s -f confmf 2> /dev/null` in #(
  9079. *the\ am__doit\ target*)
  9080. am__include=.include
  9081. am__quote="\""
  9082. _am_result=BSD
  9083. ;;
  9084. esac
  9085. fi
  9086. AC_SUBST([am__include])
  9087. AC_SUBST([am__quote])
  9088. AC_MSG_RESULT([$_am_result])
  9089. rm -f confinc confmf
  9090. ])
  9091. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  9092. # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  9093. #
  9094. # This file is free software; the Free Software Foundation
  9095. # gives unlimited permission to copy and/or distribute it,
  9096. # with or without modifications, as long as this notice is preserved.
  9097. # AM_MISSING_PROG(NAME, PROGRAM)
  9098. # ------------------------------
  9099. AC_DEFUN([AM_MISSING_PROG],
  9100. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  9101. $1=${$1-"${am_missing_run}$2"}
  9102. AC_SUBST($1)])
  9103. # AM_MISSING_HAS_RUN
  9104. # ------------------
  9105. # Define MISSING if not defined so far and test if it is modern enough.
  9106. # If it is, set am_missing_run to use it, otherwise, to nothing.
  9107. AC_DEFUN([AM_MISSING_HAS_RUN],
  9108. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  9109. AC_REQUIRE_AUX_FILE([missing])dnl
  9110. if test x"${MISSING+set}" != xset; then
  9111. case $am_aux_dir in
  9112. *\ * | *\ *)
  9113. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  9114. *)
  9115. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  9116. esac
  9117. fi
  9118. # Use eval to expand $SHELL
  9119. if eval "$MISSING --is-lightweight"; then
  9120. am_missing_run="$MISSING "
  9121. else
  9122. am_missing_run=
  9123. AC_MSG_WARN(['missing' script is too old or missing])
  9124. fi
  9125. ])
  9126. # Helper functions for option handling. -*- Autoconf -*-
  9127. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  9128. #
  9129. # This file is free software; the Free Software Foundation
  9130. # gives unlimited permission to copy and/or distribute it,
  9131. # with or without modifications, as long as this notice is preserved.
  9132. # _AM_MANGLE_OPTION(NAME)
  9133. # -----------------------
  9134. AC_DEFUN([_AM_MANGLE_OPTION],
  9135. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  9136. # _AM_SET_OPTION(NAME)
  9137. # --------------------
  9138. # Set option NAME. Presently that only means defining a flag for this option.
  9139. AC_DEFUN([_AM_SET_OPTION],
  9140. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  9141. # _AM_SET_OPTIONS(OPTIONS)
  9142. # ------------------------
  9143. # OPTIONS is a space-separated list of Automake options.
  9144. AC_DEFUN([_AM_SET_OPTIONS],
  9145. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  9146. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  9147. # -------------------------------------------
  9148. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  9149. AC_DEFUN([_AM_IF_OPTION],
  9150. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  9151. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  9152. #
  9153. # This file is free software; the Free Software Foundation
  9154. # gives unlimited permission to copy and/or distribute it,
  9155. # with or without modifications, as long as this notice is preserved.
  9156. # _AM_PROG_CC_C_O
  9157. # ---------------
  9158. # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
  9159. # to automatically call this.
  9160. AC_DEFUN([_AM_PROG_CC_C_O],
  9161. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  9162. AC_REQUIRE_AUX_FILE([compile])dnl
  9163. AC_LANG_PUSH([C])dnl
  9164. AC_CACHE_CHECK(
  9165. [whether $CC understands -c and -o together],
  9166. [am_cv_prog_cc_c_o],
  9167. [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
  9168. # Make sure it works both with $CC and with simple cc.
  9169. # Following AC_PROG_CC_C_O, we do the test twice because some
  9170. # compilers refuse to overwrite an existing .o file with -o,
  9171. # though they will create one.
  9172. am_cv_prog_cc_c_o=yes
  9173. for am_i in 1 2; do
  9174. if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
  9175. && test -f conftest2.$ac_objext; then
  9176. : OK
  9177. else
  9178. am_cv_prog_cc_c_o=no
  9179. break
  9180. fi
  9181. done
  9182. rm -f core conftest*
  9183. unset am_i])
  9184. if test "$am_cv_prog_cc_c_o" != yes; then
  9185. # Losing compiler, so override with the script.
  9186. # FIXME: It is wrong to rewrite CC.
  9187. # But if we don't then we get into trouble of one sort or another.
  9188. # A longer-term fix would be to have automake use am__CC in this case,
  9189. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9190. CC="$am_aux_dir/compile $CC"
  9191. fi
  9192. AC_LANG_POP([C])])
  9193. # For backward compatibility.
  9194. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
  9195. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  9196. #
  9197. # This file is free software; the Free Software Foundation
  9198. # gives unlimited permission to copy and/or distribute it,
  9199. # with or without modifications, as long as this notice is preserved.
  9200. # AM_RUN_LOG(COMMAND)
  9201. # -------------------
  9202. # Run COMMAND, save the exit status in ac_status, and log it.
  9203. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  9204. AC_DEFUN([AM_RUN_LOG],
  9205. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  9206. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  9207. ac_status=$?
  9208. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  9209. (exit $ac_status); }])
  9210. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  9211. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  9212. #
  9213. # This file is free software; the Free Software Foundation
  9214. # gives unlimited permission to copy and/or distribute it,
  9215. # with or without modifications, as long as this notice is preserved.
  9216. # AM_SANITY_CHECK
  9217. # ---------------
  9218. AC_DEFUN([AM_SANITY_CHECK],
  9219. [AC_MSG_CHECKING([whether build environment is sane])
  9220. # Reject unsafe characters in $srcdir or the absolute working directory
  9221. # name. Accept space and tab only in the latter.
  9222. am_lf='
  9223. '
  9224. case `pwd` in
  9225. *[[\\\"\#\$\&\'\`$am_lf]]*)
  9226. AC_MSG_ERROR([unsafe absolute working directory name]);;
  9227. esac
  9228. case $srcdir in
  9229. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  9230. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  9231. esac
  9232. # Do 'set' in a subshell so we don't clobber the current shell's
  9233. # arguments. Must try -L first in case configure is actually a
  9234. # symlink; some systems play weird games with the mod time of symlinks
  9235. # (eg FreeBSD returns the mod time of the symlink's containing
  9236. # directory).
  9237. if (
  9238. am_has_slept=no
  9239. for am_try in 1 2; do
  9240. echo "timestamp, slept: $am_has_slept" > conftest.file
  9241. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  9242. if test "$[*]" = "X"; then
  9243. # -L didn't work.
  9244. set X `ls -t "$srcdir/configure" conftest.file`
  9245. fi
  9246. if test "$[*]" != "X $srcdir/configure conftest.file" \
  9247. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  9248. # If neither matched, then we have a broken ls. This can happen
  9249. # if, for instance, CONFIG_SHELL is bash and it inherits a
  9250. # broken ls alias from the environment. This has actually
  9251. # happened. Such a system could not be considered "sane".
  9252. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  9253. alias in your environment])
  9254. fi
  9255. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  9256. break
  9257. fi
  9258. # Just in case.
  9259. sleep 1
  9260. am_has_slept=yes
  9261. done
  9262. test "$[2]" = conftest.file
  9263. )
  9264. then
  9265. # Ok.
  9266. :
  9267. else
  9268. AC_MSG_ERROR([newly created file is older than distributed files!
  9269. Check your system clock])
  9270. fi
  9271. AC_MSG_RESULT([yes])
  9272. # If we didn't sleep, we still need to ensure time stamps of config.status and
  9273. # generated files are strictly newer.
  9274. am_sleep_pid=
  9275. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  9276. ( sleep 1 ) &
  9277. am_sleep_pid=$!
  9278. fi
  9279. AC_CONFIG_COMMANDS_PRE(
  9280. [AC_MSG_CHECKING([that generated files are newer than configure])
  9281. if test -n "$am_sleep_pid"; then
  9282. # Hide warnings about reused PIDs.
  9283. wait $am_sleep_pid 2>/dev/null
  9284. fi
  9285. AC_MSG_RESULT([done])])
  9286. rm -f conftest.file
  9287. ])
  9288. # Copyright (C) 2009-2013 Free Software Foundation, Inc.
  9289. #
  9290. # This file is free software; the Free Software Foundation
  9291. # gives unlimited permission to copy and/or distribute it,
  9292. # with or without modifications, as long as this notice is preserved.
  9293. # AM_SILENT_RULES([DEFAULT])
  9294. # --------------------------
  9295. # Enable less verbose build rules; with the default set to DEFAULT
  9296. # ("yes" being less verbose, "no" or empty being verbose).
  9297. AC_DEFUN([AM_SILENT_RULES],
  9298. [AC_ARG_ENABLE([silent-rules], [dnl
  9299. AS_HELP_STRING(
  9300. [--enable-silent-rules],
  9301. [less verbose build output (undo: "make V=1")])
  9302. AS_HELP_STRING(
  9303. [--disable-silent-rules],
  9304. [verbose build output (undo: "make V=0")])dnl
  9305. ])
  9306. case $enable_silent_rules in @%:@ (((
  9307. yes) AM_DEFAULT_VERBOSITY=0;;
  9308. no) AM_DEFAULT_VERBOSITY=1;;
  9309. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  9310. esac
  9311. dnl
  9312. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  9313. dnl do not support nested variable expansions.
  9314. dnl See automake bug#9928 and bug#10237.
  9315. am_make=${MAKE-make}
  9316. AC_CACHE_CHECK([whether $am_make supports nested variables],
  9317. [am_cv_make_support_nested_variables],
  9318. [if AS_ECHO([['TRUE=$(BAR$(V))
  9319. BAR0=false
  9320. BAR1=true
  9321. V=1
  9322. am__doit:
  9323. @$(TRUE)
  9324. .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  9325. am_cv_make_support_nested_variables=yes
  9326. else
  9327. am_cv_make_support_nested_variables=no
  9328. fi])
  9329. if test $am_cv_make_support_nested_variables = yes; then
  9330. dnl Using '$V' instead of '$(V)' breaks IRIX make.
  9331. AM_V='$(V)'
  9332. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  9333. else
  9334. AM_V=$AM_DEFAULT_VERBOSITY
  9335. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  9336. fi
  9337. AC_SUBST([AM_V])dnl
  9338. AM_SUBST_NOTMAKE([AM_V])dnl
  9339. AC_SUBST([AM_DEFAULT_V])dnl
  9340. AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  9341. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  9342. AM_BACKSLASH='\'
  9343. AC_SUBST([AM_BACKSLASH])dnl
  9344. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  9345. ])
  9346. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  9347. #
  9348. # This file is free software; the Free Software Foundation
  9349. # gives unlimited permission to copy and/or distribute it,
  9350. # with or without modifications, as long as this notice is preserved.
  9351. # AM_PROG_INSTALL_STRIP
  9352. # ---------------------
  9353. # One issue with vendor 'install' (even GNU) is that you can't
  9354. # specify the program used to strip binaries. This is especially
  9355. # annoying in cross-compiling environments, where the build's strip
  9356. # is unlikely to handle the host's binaries.
  9357. # Fortunately install-sh will honor a STRIPPROG variable, so we
  9358. # always use install-sh in "make install-strip", and initialize
  9359. # STRIPPROG with the value of the STRIP variable (set by the user).
  9360. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  9361. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  9362. # Installed binaries are usually stripped using 'strip' when the user
  9363. # run "make install-strip". However 'strip' might not be the right
  9364. # tool to use in cross-compilation environments, therefore Automake
  9365. # will honor the 'STRIP' environment variable to overrule this program.
  9366. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  9367. if test "$cross_compiling" != no; then
  9368. AC_CHECK_TOOL([STRIP], [strip], :)
  9369. fi
  9370. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  9371. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  9372. # Copyright (C) 2006-2013 Free Software Foundation, Inc.
  9373. #
  9374. # This file is free software; the Free Software Foundation
  9375. # gives unlimited permission to copy and/or distribute it,
  9376. # with or without modifications, as long as this notice is preserved.
  9377. # _AM_SUBST_NOTMAKE(VARIABLE)
  9378. # ---------------------------
  9379. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  9380. # This macro is traced by Automake.
  9381. AC_DEFUN([_AM_SUBST_NOTMAKE])
  9382. # AM_SUBST_NOTMAKE(VARIABLE)
  9383. # --------------------------
  9384. # Public sister of _AM_SUBST_NOTMAKE.
  9385. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  9386. # Check how to create a tarball. -*- Autoconf -*-
  9387. # Copyright (C) 2004-2013 Free Software Foundation, Inc.
  9388. #
  9389. # This file is free software; the Free Software Foundation
  9390. # gives unlimited permission to copy and/or distribute it,
  9391. # with or without modifications, as long as this notice is preserved.
  9392. # _AM_PROG_TAR(FORMAT)
  9393. # --------------------
  9394. # Check how to create a tarball in format FORMAT.
  9395. # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  9396. #
  9397. # Substitute a variable $(am__tar) that is a command
  9398. # writing to stdout a FORMAT-tarball containing the directory
  9399. # $tardir.
  9400. # tardir=directory && $(am__tar) > result.tar
  9401. #
  9402. # Substitute a variable $(am__untar) that extract such
  9403. # a tarball read from stdin.
  9404. # $(am__untar) < result.tar
  9405. #
  9406. AC_DEFUN([_AM_PROG_TAR],
  9407. [# Always define AMTAR for backward compatibility. Yes, it's still used
  9408. # in the wild :-( We should find a proper way to deprecate it ...
  9409. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  9410. # We'll loop over all known methods to create a tar archive until one works.
  9411. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  9412. m4_if([$1], [v7],
  9413. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  9414. [m4_case([$1],
  9415. [ustar],
  9416. [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  9417. # There is notably a 21 bits limit for the UID and the GID. In fact,
  9418. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  9419. # and bug#13588).
  9420. am_max_uid=2097151 # 2^21 - 1
  9421. am_max_gid=$am_max_uid
  9422. # The $UID and $GID variables are not portable, so we need to resort
  9423. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  9424. # below are definitely unexpected, so allow the users to see them
  9425. # (that is, avoid stderr redirection).
  9426. am_uid=`id -u || echo unknown`
  9427. am_gid=`id -g || echo unknown`
  9428. AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  9429. if test $am_uid -le $am_max_uid; then
  9430. AC_MSG_RESULT([yes])
  9431. else
  9432. AC_MSG_RESULT([no])
  9433. _am_tools=none
  9434. fi
  9435. AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  9436. if test $am_gid -le $am_max_gid; then
  9437. AC_MSG_RESULT([yes])
  9438. else
  9439. AC_MSG_RESULT([no])
  9440. _am_tools=none
  9441. fi],
  9442. [pax],
  9443. [],
  9444. [m4_fatal([Unknown tar format])])
  9445. AC_MSG_CHECKING([how to create a $1 tar archive])
  9446. # Go ahead even if we have the value already cached. We do so because we
  9447. # need to set the values for the 'am__tar' and 'am__untar' variables.
  9448. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  9449. for _am_tool in $_am_tools; do
  9450. case $_am_tool in
  9451. gnutar)
  9452. for _am_tar in tar gnutar gtar; do
  9453. AM_RUN_LOG([$_am_tar --version]) && break
  9454. done
  9455. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  9456. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  9457. am__untar="$_am_tar -xf -"
  9458. ;;
  9459. plaintar)
  9460. # Must skip GNU tar: if it does not support --format= it doesn't create
  9461. # ustar tarball either.
  9462. (tar --version) >/dev/null 2>&1 && continue
  9463. am__tar='tar chf - "$$tardir"'
  9464. am__tar_='tar chf - "$tardir"'
  9465. am__untar='tar xf -'
  9466. ;;
  9467. pax)
  9468. am__tar='pax -L -x $1 -w "$$tardir"'
  9469. am__tar_='pax -L -x $1 -w "$tardir"'
  9470. am__untar='pax -r'
  9471. ;;
  9472. cpio)
  9473. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  9474. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  9475. am__untar='cpio -i -H $1 -d'
  9476. ;;
  9477. none)
  9478. am__tar=false
  9479. am__tar_=false
  9480. am__untar=false
  9481. ;;
  9482. esac
  9483. # If the value was cached, stop now. We just wanted to have am__tar
  9484. # and am__untar set.
  9485. test -n "${am_cv_prog_tar_$1}" && break
  9486. # tar/untar a dummy directory, and stop if the command works.
  9487. rm -rf conftest.dir
  9488. mkdir conftest.dir
  9489. echo GrepMe > conftest.dir/file
  9490. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  9491. rm -rf conftest.dir
  9492. if test -s conftest.tar; then
  9493. AM_RUN_LOG([$am__untar <conftest.tar])
  9494. AM_RUN_LOG([cat conftest.dir/file])
  9495. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  9496. fi
  9497. done
  9498. rm -rf conftest.dir
  9499. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  9500. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  9501. AC_SUBST([am__tar])
  9502. AC_SUBST([am__untar])
  9503. ]) # _AM_PROG_TAR