aclocal.m4 355 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124
  1. # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
  14. [m4_warning([this file was generated for autoconf 2.68.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  18. # ===========================================================================
  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 11
  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. if DX_TEST_FEATURE([$1]); then
  367. AM_CONDITIONAL(DX_COND_$1, :)
  368. $6
  369. :
  370. else
  371. AM_CONDITIONAL(DX_COND_$1, false)
  372. $7
  373. :
  374. fi
  375. ])
  376. # DX_XXX_FEATURE(DEFAULT_STATE)
  377. # -----------------------------
  378. AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc], [$1])])
  379. AC_DEFUN([DX_DOT_FEATURE], [AC_DEFUN([DX_FEATURE_dot], [$1])])
  380. AC_DEFUN([DX_MAN_FEATURE], [AC_DEFUN([DX_FEATURE_man], [$1])])
  381. AC_DEFUN([DX_HTML_FEATURE], [AC_DEFUN([DX_FEATURE_html], [$1])])
  382. AC_DEFUN([DX_CHM_FEATURE], [AC_DEFUN([DX_FEATURE_chm], [$1])])
  383. AC_DEFUN([DX_CHI_FEATURE], [AC_DEFUN([DX_FEATURE_chi], [$1])])
  384. AC_DEFUN([DX_RTF_FEATURE], [AC_DEFUN([DX_FEATURE_rtf], [$1])])
  385. AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
  386. AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
  387. AC_DEFUN([DX_PDF_FEATURE], [AC_DEFUN([DX_FEATURE_pdf], [$1])])
  388. AC_DEFUN([DX_PS_FEATURE], [AC_DEFUN([DX_FEATURE_ps], [$1])])
  389. # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
  390. # ---------------------------------------------------------
  391. # PROJECT also serves as the base name for the documentation files.
  392. # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
  393. AC_DEFUN([DX_INIT_DOXYGEN], [
  394. # Files:
  395. AC_SUBST([DX_PROJECT], [$1])
  396. AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])])
  397. AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])])
  398. # Environment variables used inside doxygen.cfg:
  399. DX_ENV_APPEND(SRCDIR, $srcdir)
  400. DX_ENV_APPEND(PROJECT, $DX_PROJECT)
  401. DX_ENV_APPEND(DOCDIR, $DX_DOCDIR)
  402. DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
  403. # Doxygen itself:
  404. DX_ARG_ABLE(doc, [generate any doxygen documentation],
  405. [],
  406. [],
  407. [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen)
  408. DX_REQUIRE_PROG([DX_PERL], perl)],
  409. [DX_ENV_APPEND(PERL_PATH, $DX_PERL)])
  410. # Dot for graphics:
  411. DX_ARG_ABLE(dot, [generate graphics for doxygen documentation],
  412. [DX_CHECK_DEPEND(doc, 1)],
  413. [DX_CLEAR_DEPEND(doc, 1)],
  414. [DX_REQUIRE_PROG([DX_DOT], dot)],
  415. [DX_ENV_APPEND(HAVE_DOT, YES)
  416. DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])],
  417. [DX_ENV_APPEND(HAVE_DOT, NO)])
  418. # Man pages generation:
  419. DX_ARG_ABLE(man, [generate doxygen manual pages],
  420. [DX_CHECK_DEPEND(doc, 1)],
  421. [DX_CLEAR_DEPEND(doc, 1)],
  422. [],
  423. [DX_ENV_APPEND(GENERATE_MAN, YES)],
  424. [DX_ENV_APPEND(GENERATE_MAN, NO)])
  425. # RTF file generation:
  426. DX_ARG_ABLE(rtf, [generate doxygen RTF documentation],
  427. [DX_CHECK_DEPEND(doc, 1)],
  428. [DX_CLEAR_DEPEND(doc, 1)],
  429. [],
  430. [DX_ENV_APPEND(GENERATE_RTF, YES)],
  431. [DX_ENV_APPEND(GENERATE_RTF, NO)])
  432. # XML file generation:
  433. DX_ARG_ABLE(xml, [generate doxygen XML documentation],
  434. [DX_CHECK_DEPEND(doc, 1)],
  435. [DX_CLEAR_DEPEND(doc, 1)],
  436. [],
  437. [DX_ENV_APPEND(GENERATE_XML, YES)],
  438. [DX_ENV_APPEND(GENERATE_XML, NO)])
  439. # (Compressed) HTML help generation:
  440. DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation],
  441. [DX_CHECK_DEPEND(doc, 1)],
  442. [DX_CLEAR_DEPEND(doc, 1)],
  443. [DX_REQUIRE_PROG([DX_HHC], hhc)],
  444. [DX_ENV_APPEND(HHC_PATH, $DX_HHC)
  445. DX_ENV_APPEND(GENERATE_HTML, YES)
  446. DX_ENV_APPEND(GENERATE_HTMLHELP, YES)],
  447. [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)])
  448. # Seperate CHI file generation.
  449. DX_ARG_ABLE(chi, [generate doxygen seperate compressed HTML help index file],
  450. [DX_CHECK_DEPEND(chm, 1)],
  451. [DX_CLEAR_DEPEND(chm, 1)],
  452. [],
  453. [DX_ENV_APPEND(GENERATE_CHI, YES)],
  454. [DX_ENV_APPEND(GENERATE_CHI, NO)])
  455. # Plain HTML pages generation:
  456. DX_ARG_ABLE(html, [generate doxygen plain HTML documentation],
  457. [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)],
  458. [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)],
  459. [],
  460. [DX_ENV_APPEND(GENERATE_HTML, YES)],
  461. [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)])
  462. # PostScript file generation:
  463. DX_ARG_ABLE(ps, [generate doxygen PostScript documentation],
  464. [DX_CHECK_DEPEND(doc, 1)],
  465. [DX_CLEAR_DEPEND(doc, 1)],
  466. [DX_REQUIRE_PROG([DX_LATEX], latex)
  467. DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
  468. DX_REQUIRE_PROG([DX_DVIPS], dvips)
  469. DX_REQUIRE_PROG([DX_EGREP], egrep)])
  470. # PDF file generation:
  471. DX_ARG_ABLE(pdf, [generate doxygen PDF documentation],
  472. [DX_CHECK_DEPEND(doc, 1)],
  473. [DX_CLEAR_DEPEND(doc, 1)],
  474. [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex)
  475. DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
  476. DX_REQUIRE_PROG([DX_EGREP], egrep)])
  477. # LaTeX generation for PS and/or PDF:
  478. if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then
  479. AM_CONDITIONAL(DX_COND_latex, :)
  480. DX_ENV_APPEND(GENERATE_LATEX, YES)
  481. else
  482. AM_CONDITIONAL(DX_COND_latex, false)
  483. DX_ENV_APPEND(GENERATE_LATEX, NO)
  484. fi
  485. # Paper size for PS and/or PDF:
  486. AC_ARG_VAR(DOXYGEN_PAPER_SIZE,
  487. [a4wide (default), a4, letter, legal or executive])
  488. case "$DOXYGEN_PAPER_SIZE" in
  489. #(
  490. "")
  491. AC_SUBST(DOXYGEN_PAPER_SIZE, "")
  492. ;; #(
  493. a4wide|a4|letter|legal|executive)
  494. DX_ENV_APPEND(PAPER_SIZE, $DOXYGEN_PAPER_SIZE)
  495. ;; #(
  496. *)
  497. AC_MSG_ERROR([unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'])
  498. ;;
  499. esac
  500. #For debugging:
  501. #echo DX_FLAG_doc=$DX_FLAG_doc
  502. #echo DX_FLAG_dot=$DX_FLAG_dot
  503. #echo DX_FLAG_man=$DX_FLAG_man
  504. #echo DX_FLAG_html=$DX_FLAG_html
  505. #echo DX_FLAG_chm=$DX_FLAG_chm
  506. #echo DX_FLAG_chi=$DX_FLAG_chi
  507. #echo DX_FLAG_rtf=$DX_FLAG_rtf
  508. #echo DX_FLAG_xml=$DX_FLAG_xml
  509. #echo DX_FLAG_pdf=$DX_FLAG_pdf
  510. #echo DX_FLAG_ps=$DX_FLAG_ps
  511. #echo DX_ENV=$DX_ENV
  512. ])
  513. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  514. #
  515. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  516. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  517. # Inc.
  518. # Written by Gordon Matzigkeit, 1996
  519. #
  520. # This file is free software; the Free Software Foundation gives
  521. # unlimited permission to copy and/or distribute it, with or without
  522. # modifications, as long as this notice is preserved.
  523. m4_define([_LT_COPYING], [dnl
  524. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  525. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  526. # Inc.
  527. # Written by Gordon Matzigkeit, 1996
  528. #
  529. # This file is part of GNU Libtool.
  530. #
  531. # GNU Libtool is free software; you can redistribute it and/or
  532. # modify it under the terms of the GNU General Public License as
  533. # published by the Free Software Foundation; either version 2 of
  534. # the License, or (at your option) any later version.
  535. #
  536. # As a special exception to the GNU General Public License,
  537. # if you distribute this file as part of a program or library that
  538. # is built using GNU Libtool, you may include this file under the
  539. # same distribution terms that you use for the rest of that program.
  540. #
  541. # GNU Libtool is distributed in the hope that it will be useful,
  542. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  543. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  544. # GNU General Public License for more details.
  545. #
  546. # You should have received a copy of the GNU General Public License
  547. # along with GNU Libtool; see the file COPYING. If not, a copy
  548. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  549. # obtained by writing to the Free Software Foundation, Inc.,
  550. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  551. ])
  552. # serial 57 LT_INIT
  553. # LT_PREREQ(VERSION)
  554. # ------------------
  555. # Complain and exit if this libtool version is less that VERSION.
  556. m4_defun([LT_PREREQ],
  557. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  558. [m4_default([$3],
  559. [m4_fatal([Libtool version $1 or higher is required],
  560. 63)])],
  561. [$2])])
  562. # _LT_CHECK_BUILDDIR
  563. # ------------------
  564. # Complain if the absolute build directory name contains unusual characters
  565. m4_defun([_LT_CHECK_BUILDDIR],
  566. [case `pwd` in
  567. *\ * | *\ *)
  568. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  569. esac
  570. ])
  571. # LT_INIT([OPTIONS])
  572. # ------------------
  573. AC_DEFUN([LT_INIT],
  574. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  575. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  576. AC_BEFORE([$0], [LT_LANG])dnl
  577. AC_BEFORE([$0], [LT_OUTPUT])dnl
  578. AC_BEFORE([$0], [LTDL_INIT])dnl
  579. m4_require([_LT_CHECK_BUILDDIR])dnl
  580. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  581. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  582. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  583. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  584. dnl unless we require an AC_DEFUNed macro:
  585. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  586. AC_REQUIRE([LTSUGAR_VERSION])dnl
  587. AC_REQUIRE([LTVERSION_VERSION])dnl
  588. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  589. m4_require([_LT_PROG_LTMAIN])dnl
  590. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  591. dnl Parse OPTIONS
  592. _LT_SET_OPTIONS([$0], [$1])
  593. # This can be used to rebuild libtool when needed
  594. LIBTOOL_DEPS="$ltmain"
  595. # Always use our own libtool.
  596. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  597. AC_SUBST(LIBTOOL)dnl
  598. _LT_SETUP
  599. # Only expand once:
  600. m4_define([LT_INIT])
  601. ])# LT_INIT
  602. # Old names:
  603. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  604. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  605. dnl aclocal-1.4 backwards compatibility:
  606. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  607. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  608. # _LT_CC_BASENAME(CC)
  609. # -------------------
  610. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  611. m4_defun([_LT_CC_BASENAME],
  612. [for cc_temp in $1""; do
  613. case $cc_temp in
  614. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  615. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  616. \-*) ;;
  617. *) break;;
  618. esac
  619. done
  620. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  621. ])
  622. # _LT_FILEUTILS_DEFAULTS
  623. # ----------------------
  624. # It is okay to use these file commands and assume they have been set
  625. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  626. m4_defun([_LT_FILEUTILS_DEFAULTS],
  627. [: ${CP="cp -f"}
  628. : ${MV="mv -f"}
  629. : ${RM="rm -f"}
  630. ])# _LT_FILEUTILS_DEFAULTS
  631. # _LT_SETUP
  632. # ---------
  633. m4_defun([_LT_SETUP],
  634. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  635. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  636. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  637. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])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) 2010 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. [Java], [_LT_LANG(GCJ)],
  1178. [Fortran 77], [_LT_LANG(F77)],
  1179. [Fortran], [_LT_LANG(FC)],
  1180. [Windows Resource], [_LT_LANG(RC)],
  1181. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1182. [_LT_LANG($1)],
  1183. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1184. ])# LT_LANG
  1185. # _LT_LANG(LANGNAME)
  1186. # ------------------
  1187. m4_defun([_LT_LANG],
  1188. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1189. [LT_SUPPORTED_TAG([$1])dnl
  1190. m4_append([_LT_TAGS], [$1 ])dnl
  1191. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1192. _LT_LANG_$1_CONFIG($1)])dnl
  1193. ])# _LT_LANG
  1194. # _LT_LANG_DEFAULT_CONFIG
  1195. # -----------------------
  1196. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1197. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1198. [LT_LANG(CXX)],
  1199. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1200. AC_PROVIDE_IFELSE([AC_PROG_F77],
  1201. [LT_LANG(F77)],
  1202. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1203. AC_PROVIDE_IFELSE([AC_PROG_FC],
  1204. [LT_LANG(FC)],
  1205. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1206. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1207. dnl pulling things in needlessly.
  1208. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1209. [LT_LANG(GCJ)],
  1210. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1211. [LT_LANG(GCJ)],
  1212. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1213. [LT_LANG(GCJ)],
  1214. [m4_ifdef([AC_PROG_GCJ],
  1215. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1216. m4_ifdef([A][M_PROG_GCJ],
  1217. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1218. m4_ifdef([LT_PROG_GCJ],
  1219. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1220. AC_PROVIDE_IFELSE([LT_PROG_RC],
  1221. [LT_LANG(RC)],
  1222. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1223. ])# _LT_LANG_DEFAULT_CONFIG
  1224. # Obsolete macros:
  1225. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1226. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1227. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1228. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1229. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  1230. dnl aclocal-1.4 backwards compatibility:
  1231. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1232. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1233. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1234. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1235. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  1236. # _LT_TAG_COMPILER
  1237. # ----------------
  1238. m4_defun([_LT_TAG_COMPILER],
  1239. [AC_REQUIRE([AC_PROG_CC])dnl
  1240. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1241. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1242. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1243. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1244. # If no C compiler was specified, use CC.
  1245. LTCC=${LTCC-"$CC"}
  1246. # If no C compiler flags were specified, use CFLAGS.
  1247. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1248. # Allow CC to be a program name with arguments.
  1249. compiler=$CC
  1250. ])# _LT_TAG_COMPILER
  1251. # _LT_COMPILER_BOILERPLATE
  1252. # ------------------------
  1253. # Check for compiler boilerplate output or warnings with
  1254. # the simple compiler test code.
  1255. m4_defun([_LT_COMPILER_BOILERPLATE],
  1256. [m4_require([_LT_DECL_SED])dnl
  1257. ac_outfile=conftest.$ac_objext
  1258. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1259. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1260. _lt_compiler_boilerplate=`cat conftest.err`
  1261. $RM conftest*
  1262. ])# _LT_COMPILER_BOILERPLATE
  1263. # _LT_LINKER_BOILERPLATE
  1264. # ----------------------
  1265. # Check for linker boilerplate output or warnings with
  1266. # the simple link test code.
  1267. m4_defun([_LT_LINKER_BOILERPLATE],
  1268. [m4_require([_LT_DECL_SED])dnl
  1269. ac_outfile=conftest.$ac_objext
  1270. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1271. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1272. _lt_linker_boilerplate=`cat conftest.err`
  1273. $RM -r conftest*
  1274. ])# _LT_LINKER_BOILERPLATE
  1275. # _LT_REQUIRED_DARWIN_CHECKS
  1276. # -------------------------
  1277. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1278. case $host_os in
  1279. rhapsody* | darwin*)
  1280. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1281. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1282. AC_CHECK_TOOL([LIPO], [lipo], [:])
  1283. AC_CHECK_TOOL([OTOOL], [otool], [:])
  1284. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1285. _LT_DECL([], [DSYMUTIL], [1],
  1286. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1287. _LT_DECL([], [NMEDIT], [1],
  1288. [Tool to change global to local symbols on Mac OS X])
  1289. _LT_DECL([], [LIPO], [1],
  1290. [Tool to manipulate fat objects and archives on Mac OS X])
  1291. _LT_DECL([], [OTOOL], [1],
  1292. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1293. _LT_DECL([], [OTOOL64], [1],
  1294. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1295. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1296. [lt_cv_apple_cc_single_mod=no
  1297. if test -z "${LT_MULTI_MODULE}"; then
  1298. # By default we will add the -single_module flag. You can override
  1299. # by either setting the environment variable LT_MULTI_MODULE
  1300. # non-empty at configure time, or by adding -multi_module to the
  1301. # link flags.
  1302. rm -rf libconftest.dylib*
  1303. echo "int foo(void){return 1;}" > conftest.c
  1304. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1305. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1306. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1307. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1308. _lt_result=$?
  1309. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1310. lt_cv_apple_cc_single_mod=yes
  1311. else
  1312. cat conftest.err >&AS_MESSAGE_LOG_FD
  1313. fi
  1314. rm -rf libconftest.dylib*
  1315. rm -f conftest.*
  1316. fi])
  1317. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1318. [lt_cv_ld_exported_symbols_list],
  1319. [lt_cv_ld_exported_symbols_list=no
  1320. save_LDFLAGS=$LDFLAGS
  1321. echo "_main" > conftest.sym
  1322. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1323. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1324. [lt_cv_ld_exported_symbols_list=yes],
  1325. [lt_cv_ld_exported_symbols_list=no])
  1326. LDFLAGS="$save_LDFLAGS"
  1327. ])
  1328. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  1329. [lt_cv_ld_force_load=no
  1330. cat > conftest.c << _LT_EOF
  1331. int forced_loaded() { return 2;}
  1332. _LT_EOF
  1333. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  1334. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  1335. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  1336. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  1337. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  1338. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  1339. cat > conftest.c << _LT_EOF
  1340. int main() { return 0;}
  1341. _LT_EOF
  1342. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  1343. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  1344. _lt_result=$?
  1345. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  1346. lt_cv_ld_force_load=yes
  1347. else
  1348. cat conftest.err >&AS_MESSAGE_LOG_FD
  1349. fi
  1350. rm -f conftest.err libconftest.a conftest conftest.c
  1351. rm -rf conftest.dSYM
  1352. ])
  1353. case $host_os in
  1354. rhapsody* | darwin1.[[012]])
  1355. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1356. darwin1.*)
  1357. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1358. darwin*) # darwin 5.x on
  1359. # if running on 10.5 or later, the deployment target defaults
  1360. # to the OS version, if on x86, and 10.4, the deployment
  1361. # target defaults to 10.4. Don't you love it?
  1362. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1363. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1364. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1365. 10.[[012]]*)
  1366. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1367. 10.*)
  1368. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1369. esac
  1370. ;;
  1371. esac
  1372. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1373. _lt_dar_single_mod='$single_module'
  1374. fi
  1375. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1376. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1377. else
  1378. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1379. fi
  1380. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  1381. _lt_dsymutil='~$DSYMUTIL $lib || :'
  1382. else
  1383. _lt_dsymutil=
  1384. fi
  1385. ;;
  1386. esac
  1387. ])
  1388. # _LT_DARWIN_LINKER_FEATURES
  1389. # --------------------------
  1390. # Checks for linker and compiler features on darwin
  1391. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1392. [
  1393. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1394. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1395. _LT_TAGVAR(hardcode_direct, $1)=no
  1396. _LT_TAGVAR(hardcode_automatic, $1)=yes
  1397. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1398. if test "$lt_cv_ld_force_load" = "yes"; then
  1399. _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\"`'
  1400. else
  1401. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1402. fi
  1403. _LT_TAGVAR(link_all_deplibs, $1)=yes
  1404. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1405. case $cc_basename in
  1406. ifort*) _lt_dar_can_shared=yes ;;
  1407. *) _lt_dar_can_shared=$GCC ;;
  1408. esac
  1409. if test "$_lt_dar_can_shared" = "yes"; then
  1410. output_verbose_link_cmd=func_echo_all
  1411. _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}"
  1412. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1413. _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}"
  1414. _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}"
  1415. m4_if([$1], [CXX],
  1416. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1417. _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}"
  1418. _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}"
  1419. fi
  1420. ],[])
  1421. else
  1422. _LT_TAGVAR(ld_shlibs, $1)=no
  1423. fi
  1424. ])
  1425. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  1426. # ----------------------------------
  1427. # Links a minimal program and checks the executable
  1428. # for the system default hardcoded library path. In most cases,
  1429. # this is /usr/lib:/lib, but when the MPI compilers are used
  1430. # the location of the communication and MPI libs are included too.
  1431. # If we don't find anything, use the default library path according
  1432. # to the aix ld manual.
  1433. # Store the results from the different compilers for each TAGNAME.
  1434. # Allow to override them for all tags through lt_cv_aix_libpath.
  1435. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1436. [m4_require([_LT_DECL_SED])dnl
  1437. if test "${lt_cv_aix_libpath+set}" = set; then
  1438. aix_libpath=$lt_cv_aix_libpath
  1439. else
  1440. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  1441. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  1442. lt_aix_libpath_sed='[
  1443. /Import File Strings/,/^$/ {
  1444. /^0/ {
  1445. s/^0 *\([^ ]*\) *$/\1/
  1446. p
  1447. }
  1448. }]'
  1449. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1450. # Check for a 64-bit object if we didn't find anything.
  1451. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1452. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1453. fi],[])
  1454. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1455. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  1456. fi
  1457. ])
  1458. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1459. fi
  1460. ])# _LT_SYS_MODULE_PATH_AIX
  1461. # _LT_SHELL_INIT(ARG)
  1462. # -------------------
  1463. m4_define([_LT_SHELL_INIT],
  1464. [m4_divert_text([M4SH-INIT], [$1
  1465. ])])# _LT_SHELL_INIT
  1466. # _LT_PROG_ECHO_BACKSLASH
  1467. # -----------------------
  1468. # Find how we can fake an echo command that does not interpret backslash.
  1469. # In particular, with Autoconf 2.60 or later we add some code to the start
  1470. # of the generated configure script which will find a shell with a builtin
  1471. # printf (which we can use as an echo command).
  1472. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1473. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1474. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1475. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1476. AC_MSG_CHECKING([how to print strings])
  1477. # Test print first, because it will be a builtin if present.
  1478. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1479. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1480. ECHO='print -r --'
  1481. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1482. ECHO='printf %s\n'
  1483. else
  1484. # Use this function as a fallback that always works.
  1485. func_fallback_echo ()
  1486. {
  1487. eval 'cat <<_LTECHO_EOF
  1488. $[]1
  1489. _LTECHO_EOF'
  1490. }
  1491. ECHO='func_fallback_echo'
  1492. fi
  1493. # func_echo_all arg...
  1494. # Invoke $ECHO with all args, space-separated.
  1495. func_echo_all ()
  1496. {
  1497. $ECHO "$*"
  1498. }
  1499. case "$ECHO" in
  1500. printf*) AC_MSG_RESULT([printf]) ;;
  1501. print*) AC_MSG_RESULT([print -r]) ;;
  1502. *) AC_MSG_RESULT([cat]) ;;
  1503. esac
  1504. m4_ifdef([_AS_DETECT_SUGGESTED],
  1505. [_AS_DETECT_SUGGESTED([
  1506. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1507. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1508. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1509. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1510. PATH=/empty FPATH=/empty; export PATH FPATH
  1511. test "X`printf %s $ECHO`" = "X$ECHO" \
  1512. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1513. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1514. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1515. ])# _LT_PROG_ECHO_BACKSLASH
  1516. # _LT_WITH_SYSROOT
  1517. # ----------------
  1518. AC_DEFUN([_LT_WITH_SYSROOT],
  1519. [AC_MSG_CHECKING([for sysroot])
  1520. AC_ARG_WITH([sysroot],
  1521. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1522. (or the compiler's sysroot if not specified).],
  1523. [], [with_sysroot=no])
  1524. dnl lt_sysroot will always be passed unquoted. We quote it here
  1525. dnl in case the user passed a directory name.
  1526. lt_sysroot=
  1527. case ${with_sysroot} in #(
  1528. yes)
  1529. if test "$GCC" = yes; then
  1530. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1531. fi
  1532. ;; #(
  1533. /*)
  1534. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1535. ;; #(
  1536. no|'')
  1537. ;; #(
  1538. *)
  1539. AC_MSG_RESULT([${with_sysroot}])
  1540. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1541. ;;
  1542. esac
  1543. AC_MSG_RESULT([${lt_sysroot:-no}])
  1544. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1545. [dependent libraries, and in which our libraries should be installed.])])
  1546. # _LT_ENABLE_LOCK
  1547. # ---------------
  1548. m4_defun([_LT_ENABLE_LOCK],
  1549. [AC_ARG_ENABLE([libtool-lock],
  1550. [AS_HELP_STRING([--disable-libtool-lock],
  1551. [avoid locking (might break parallel builds)])])
  1552. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1553. # Some flags need to be propagated to the compiler or linker for good
  1554. # libtool support.
  1555. case $host in
  1556. ia64-*-hpux*)
  1557. # Find out which ABI we are using.
  1558. echo 'int i;' > conftest.$ac_ext
  1559. if AC_TRY_EVAL(ac_compile); then
  1560. case `/usr/bin/file conftest.$ac_objext` in
  1561. *ELF-32*)
  1562. HPUX_IA64_MODE="32"
  1563. ;;
  1564. *ELF-64*)
  1565. HPUX_IA64_MODE="64"
  1566. ;;
  1567. esac
  1568. fi
  1569. rm -rf conftest*
  1570. ;;
  1571. *-*-irix6*)
  1572. # Find out which ABI we are using.
  1573. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1574. if AC_TRY_EVAL(ac_compile); then
  1575. if test "$lt_cv_prog_gnu_ld" = yes; then
  1576. case `/usr/bin/file conftest.$ac_objext` in
  1577. *32-bit*)
  1578. LD="${LD-ld} -melf32bsmip"
  1579. ;;
  1580. *N32*)
  1581. LD="${LD-ld} -melf32bmipn32"
  1582. ;;
  1583. *64-bit*)
  1584. LD="${LD-ld} -melf64bmip"
  1585. ;;
  1586. esac
  1587. else
  1588. case `/usr/bin/file conftest.$ac_objext` in
  1589. *32-bit*)
  1590. LD="${LD-ld} -32"
  1591. ;;
  1592. *N32*)
  1593. LD="${LD-ld} -n32"
  1594. ;;
  1595. *64-bit*)
  1596. LD="${LD-ld} -64"
  1597. ;;
  1598. esac
  1599. fi
  1600. fi
  1601. rm -rf conftest*
  1602. ;;
  1603. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1604. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1605. # Find out which ABI we are using.
  1606. echo 'int i;' > conftest.$ac_ext
  1607. if AC_TRY_EVAL(ac_compile); then
  1608. case `/usr/bin/file conftest.o` in
  1609. *32-bit*)
  1610. case $host in
  1611. x86_64-*kfreebsd*-gnu)
  1612. LD="${LD-ld} -m elf_i386_fbsd"
  1613. ;;
  1614. x86_64-*linux*)
  1615. LD="${LD-ld} -m elf_i386"
  1616. ;;
  1617. ppc64-*linux*|powerpc64-*linux*)
  1618. LD="${LD-ld} -m elf32ppclinux"
  1619. ;;
  1620. s390x-*linux*)
  1621. LD="${LD-ld} -m elf_s390"
  1622. ;;
  1623. sparc64-*linux*)
  1624. LD="${LD-ld} -m elf32_sparc"
  1625. ;;
  1626. esac
  1627. ;;
  1628. *64-bit*)
  1629. case $host in
  1630. x86_64-*kfreebsd*-gnu)
  1631. LD="${LD-ld} -m elf_x86_64_fbsd"
  1632. ;;
  1633. x86_64-*linux*)
  1634. LD="${LD-ld} -m elf_x86_64"
  1635. ;;
  1636. ppc*-*linux*|powerpc*-*linux*)
  1637. LD="${LD-ld} -m elf64ppc"
  1638. ;;
  1639. s390*-*linux*|s390*-*tpf*)
  1640. LD="${LD-ld} -m elf64_s390"
  1641. ;;
  1642. sparc*-*linux*)
  1643. LD="${LD-ld} -m elf64_sparc"
  1644. ;;
  1645. esac
  1646. ;;
  1647. esac
  1648. fi
  1649. rm -rf conftest*
  1650. ;;
  1651. *-*-sco3.2v5*)
  1652. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1653. SAVE_CFLAGS="$CFLAGS"
  1654. CFLAGS="$CFLAGS -belf"
  1655. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1656. [AC_LANG_PUSH(C)
  1657. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1658. AC_LANG_POP])
  1659. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1660. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1661. CFLAGS="$SAVE_CFLAGS"
  1662. fi
  1663. ;;
  1664. sparc*-*solaris*)
  1665. # Find out which ABI we are using.
  1666. echo 'int i;' > conftest.$ac_ext
  1667. if AC_TRY_EVAL(ac_compile); then
  1668. case `/usr/bin/file conftest.o` in
  1669. *64-bit*)
  1670. case $lt_cv_prog_gnu_ld in
  1671. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1672. *)
  1673. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1674. LD="${LD-ld} -64"
  1675. fi
  1676. ;;
  1677. esac
  1678. ;;
  1679. esac
  1680. fi
  1681. rm -rf conftest*
  1682. ;;
  1683. esac
  1684. need_locks="$enable_libtool_lock"
  1685. ])# _LT_ENABLE_LOCK
  1686. # _LT_PROG_AR
  1687. # -----------
  1688. m4_defun([_LT_PROG_AR],
  1689. [AC_CHECK_TOOLS(AR, [ar], false)
  1690. : ${AR=ar}
  1691. : ${AR_FLAGS=cru}
  1692. _LT_DECL([], [AR], [1], [The archiver])
  1693. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1694. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1695. [lt_cv_ar_at_file=no
  1696. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1697. [echo conftest.$ac_objext > conftest.lst
  1698. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1699. AC_TRY_EVAL([lt_ar_try])
  1700. if test "$ac_status" -eq 0; then
  1701. # Ensure the archiver fails upon bogus file names.
  1702. rm -f conftest.$ac_objext libconftest.a
  1703. AC_TRY_EVAL([lt_ar_try])
  1704. if test "$ac_status" -ne 0; then
  1705. lt_cv_ar_at_file=@
  1706. fi
  1707. fi
  1708. rm -f conftest.* libconftest.a
  1709. ])
  1710. ])
  1711. if test "x$lt_cv_ar_at_file" = xno; then
  1712. archiver_list_spec=
  1713. else
  1714. archiver_list_spec=$lt_cv_ar_at_file
  1715. fi
  1716. _LT_DECL([], [archiver_list_spec], [1],
  1717. [How to feed a file listing to the archiver])
  1718. ])# _LT_PROG_AR
  1719. # _LT_CMD_OLD_ARCHIVE
  1720. # -------------------
  1721. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1722. [_LT_PROG_AR
  1723. AC_CHECK_TOOL(STRIP, strip, :)
  1724. test -z "$STRIP" && STRIP=:
  1725. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1726. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1727. test -z "$RANLIB" && RANLIB=:
  1728. _LT_DECL([], [RANLIB], [1],
  1729. [Commands used to install an old-style archive])
  1730. # Determine commands to create old-style static archives.
  1731. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1732. old_postinstall_cmds='chmod 644 $oldlib'
  1733. old_postuninstall_cmds=
  1734. if test -n "$RANLIB"; then
  1735. case $host_os in
  1736. openbsd*)
  1737. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1738. ;;
  1739. *)
  1740. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1741. ;;
  1742. esac
  1743. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1744. fi
  1745. case $host_os in
  1746. darwin*)
  1747. lock_old_archive_extraction=yes ;;
  1748. *)
  1749. lock_old_archive_extraction=no ;;
  1750. esac
  1751. _LT_DECL([], [old_postinstall_cmds], [2])
  1752. _LT_DECL([], [old_postuninstall_cmds], [2])
  1753. _LT_TAGDECL([], [old_archive_cmds], [2],
  1754. [Commands used to build an old-style archive])
  1755. _LT_DECL([], [lock_old_archive_extraction], [0],
  1756. [Whether to use a lock for old archive extraction])
  1757. ])# _LT_CMD_OLD_ARCHIVE
  1758. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1759. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1760. # ----------------------------------------------------------------
  1761. # Check whether the given compiler option works
  1762. AC_DEFUN([_LT_COMPILER_OPTION],
  1763. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1764. m4_require([_LT_DECL_SED])dnl
  1765. AC_CACHE_CHECK([$1], [$2],
  1766. [$2=no
  1767. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1768. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1769. lt_compiler_flag="$3"
  1770. # Insert the option either (1) after the last *FLAGS variable, or
  1771. # (2) before a word containing "conftest.", or (3) at the end.
  1772. # Note that $ac_compile itself does not contain backslashes and begins
  1773. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1774. # The option is referenced via a variable to avoid confusing sed.
  1775. lt_compile=`echo "$ac_compile" | $SED \
  1776. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1777. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1778. -e 's:$: $lt_compiler_flag:'`
  1779. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1780. (eval "$lt_compile" 2>conftest.err)
  1781. ac_status=$?
  1782. cat conftest.err >&AS_MESSAGE_LOG_FD
  1783. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1784. if (exit $ac_status) && test -s "$ac_outfile"; then
  1785. # The compiler can only warn and ignore the option if not recognized
  1786. # So say no if there are warnings other than the usual output.
  1787. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1788. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1789. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1790. $2=yes
  1791. fi
  1792. fi
  1793. $RM conftest*
  1794. ])
  1795. if test x"[$]$2" = xyes; then
  1796. m4_if([$5], , :, [$5])
  1797. else
  1798. m4_if([$6], , :, [$6])
  1799. fi
  1800. ])# _LT_COMPILER_OPTION
  1801. # Old name:
  1802. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1803. dnl aclocal-1.4 backwards compatibility:
  1804. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1805. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1806. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1807. # ----------------------------------------------------
  1808. # Check whether the given linker option works
  1809. AC_DEFUN([_LT_LINKER_OPTION],
  1810. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1811. m4_require([_LT_DECL_SED])dnl
  1812. AC_CACHE_CHECK([$1], [$2],
  1813. [$2=no
  1814. save_LDFLAGS="$LDFLAGS"
  1815. LDFLAGS="$LDFLAGS $3"
  1816. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1817. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1818. # The linker can only warn and ignore the option if not recognized
  1819. # So say no if there are warnings
  1820. if test -s conftest.err; then
  1821. # Append any errors to the config.log.
  1822. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1823. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1824. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1825. if diff conftest.exp conftest.er2 >/dev/null; then
  1826. $2=yes
  1827. fi
  1828. else
  1829. $2=yes
  1830. fi
  1831. fi
  1832. $RM -r conftest*
  1833. LDFLAGS="$save_LDFLAGS"
  1834. ])
  1835. if test x"[$]$2" = xyes; then
  1836. m4_if([$4], , :, [$4])
  1837. else
  1838. m4_if([$5], , :, [$5])
  1839. fi
  1840. ])# _LT_LINKER_OPTION
  1841. # Old name:
  1842. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1843. dnl aclocal-1.4 backwards compatibility:
  1844. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1845. # LT_CMD_MAX_LEN
  1846. #---------------
  1847. AC_DEFUN([LT_CMD_MAX_LEN],
  1848. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1849. # find the maximum length of command line arguments
  1850. AC_MSG_CHECKING([the maximum length of command line arguments])
  1851. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1852. i=0
  1853. teststring="ABCD"
  1854. case $build_os in
  1855. msdosdjgpp*)
  1856. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1857. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1858. # during glob expansion). Even if it were fixed, the result of this
  1859. # check would be larger than it should be.
  1860. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1861. ;;
  1862. gnu*)
  1863. # Under GNU Hurd, this test is not required because there is
  1864. # no limit to the length of command line arguments.
  1865. # Libtool will interpret -1 as no limit whatsoever
  1866. lt_cv_sys_max_cmd_len=-1;
  1867. ;;
  1868. cygwin* | mingw* | cegcc*)
  1869. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1870. # about 5 minutes as the teststring grows exponentially.
  1871. # Worse, since 9x/ME are not pre-emptively multitasking,
  1872. # you end up with a "frozen" computer, even though with patience
  1873. # the test eventually succeeds (with a max line length of 256k).
  1874. # Instead, let's just punt: use the minimum linelength reported by
  1875. # all of the supported platforms: 8192 (on NT/2K/XP).
  1876. lt_cv_sys_max_cmd_len=8192;
  1877. ;;
  1878. mint*)
  1879. # On MiNT this can take a long time and run out of memory.
  1880. lt_cv_sys_max_cmd_len=8192;
  1881. ;;
  1882. amigaos*)
  1883. # On AmigaOS with pdksh, this test takes hours, literally.
  1884. # So we just punt and use a minimum line length of 8192.
  1885. lt_cv_sys_max_cmd_len=8192;
  1886. ;;
  1887. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1888. # This has been around since 386BSD, at least. Likely further.
  1889. if test -x /sbin/sysctl; then
  1890. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1891. elif test -x /usr/sbin/sysctl; then
  1892. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1893. else
  1894. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1895. fi
  1896. # And add a safety zone
  1897. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1898. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1899. ;;
  1900. interix*)
  1901. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1902. lt_cv_sys_max_cmd_len=196608
  1903. ;;
  1904. osf*)
  1905. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1906. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1907. # nice to cause kernel panics so lets avoid the loop below.
  1908. # First set a reasonable default.
  1909. lt_cv_sys_max_cmd_len=16384
  1910. #
  1911. if test -x /sbin/sysconfig; then
  1912. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1913. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1914. esac
  1915. fi
  1916. ;;
  1917. sco3.2v5*)
  1918. lt_cv_sys_max_cmd_len=102400
  1919. ;;
  1920. sysv5* | sco5v6* | sysv4.2uw2*)
  1921. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1922. if test -n "$kargmax"; then
  1923. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1924. else
  1925. lt_cv_sys_max_cmd_len=32768
  1926. fi
  1927. ;;
  1928. *)
  1929. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1930. if test -n "$lt_cv_sys_max_cmd_len"; then
  1931. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1932. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1933. else
  1934. # Make teststring a little bigger before we do anything with it.
  1935. # a 1K string should be a reasonable start.
  1936. for i in 1 2 3 4 5 6 7 8 ; do
  1937. teststring=$teststring$teststring
  1938. done
  1939. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1940. # If test is not a shell built-in, we'll probably end up computing a
  1941. # maximum length that is only half of the actual maximum length, but
  1942. # we can't tell.
  1943. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  1944. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1945. test $i != 17 # 1/2 MB should be enough
  1946. do
  1947. i=`expr $i + 1`
  1948. teststring=$teststring$teststring
  1949. done
  1950. # Only check the string length outside the loop.
  1951. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1952. teststring=
  1953. # Add a significant safety factor because C++ compilers can tack on
  1954. # massive amounts of additional arguments before passing them to the
  1955. # linker. It appears as though 1/2 is a usable value.
  1956. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1957. fi
  1958. ;;
  1959. esac
  1960. ])
  1961. if test -n $lt_cv_sys_max_cmd_len ; then
  1962. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1963. else
  1964. AC_MSG_RESULT(none)
  1965. fi
  1966. max_cmd_len=$lt_cv_sys_max_cmd_len
  1967. _LT_DECL([], [max_cmd_len], [0],
  1968. [What is the maximum length of a command?])
  1969. ])# LT_CMD_MAX_LEN
  1970. # Old name:
  1971. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1972. dnl aclocal-1.4 backwards compatibility:
  1973. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1974. # _LT_HEADER_DLFCN
  1975. # ----------------
  1976. m4_defun([_LT_HEADER_DLFCN],
  1977. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1978. ])# _LT_HEADER_DLFCN
  1979. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1980. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1981. # ----------------------------------------------------------------
  1982. m4_defun([_LT_TRY_DLOPEN_SELF],
  1983. [m4_require([_LT_HEADER_DLFCN])dnl
  1984. if test "$cross_compiling" = yes; then :
  1985. [$4]
  1986. else
  1987. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1988. lt_status=$lt_dlunknown
  1989. cat > conftest.$ac_ext <<_LT_EOF
  1990. [#line $LINENO "configure"
  1991. #include "confdefs.h"
  1992. #if HAVE_DLFCN_H
  1993. #include <dlfcn.h>
  1994. #endif
  1995. #include <stdio.h>
  1996. #ifdef RTLD_GLOBAL
  1997. # define LT_DLGLOBAL RTLD_GLOBAL
  1998. #else
  1999. # ifdef DL_GLOBAL
  2000. # define LT_DLGLOBAL DL_GLOBAL
  2001. # else
  2002. # define LT_DLGLOBAL 0
  2003. # endif
  2004. #endif
  2005. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2006. find out it does not work in some platform. */
  2007. #ifndef LT_DLLAZY_OR_NOW
  2008. # ifdef RTLD_LAZY
  2009. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  2010. # else
  2011. # ifdef DL_LAZY
  2012. # define LT_DLLAZY_OR_NOW DL_LAZY
  2013. # else
  2014. # ifdef RTLD_NOW
  2015. # define LT_DLLAZY_OR_NOW RTLD_NOW
  2016. # else
  2017. # ifdef DL_NOW
  2018. # define LT_DLLAZY_OR_NOW DL_NOW
  2019. # else
  2020. # define LT_DLLAZY_OR_NOW 0
  2021. # endif
  2022. # endif
  2023. # endif
  2024. # endif
  2025. #endif
  2026. /* When -fvisbility=hidden is used, assume the code has been annotated
  2027. correspondingly for the symbols needed. */
  2028. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  2029. int fnord () __attribute__((visibility("default")));
  2030. #endif
  2031. int fnord () { return 42; }
  2032. int main ()
  2033. {
  2034. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2035. int status = $lt_dlunknown;
  2036. if (self)
  2037. {
  2038. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  2039. else
  2040. {
  2041. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  2042. else puts (dlerror ());
  2043. }
  2044. /* dlclose (self); */
  2045. }
  2046. else
  2047. puts (dlerror ());
  2048. return status;
  2049. }]
  2050. _LT_EOF
  2051. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  2052. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  2053. lt_status=$?
  2054. case x$lt_status in
  2055. x$lt_dlno_uscore) $1 ;;
  2056. x$lt_dlneed_uscore) $2 ;;
  2057. x$lt_dlunknown|x*) $3 ;;
  2058. esac
  2059. else :
  2060. # compilation failed
  2061. $3
  2062. fi
  2063. fi
  2064. rm -fr conftest*
  2065. ])# _LT_TRY_DLOPEN_SELF
  2066. # LT_SYS_DLOPEN_SELF
  2067. # ------------------
  2068. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  2069. [m4_require([_LT_HEADER_DLFCN])dnl
  2070. if test "x$enable_dlopen" != xyes; then
  2071. enable_dlopen=unknown
  2072. enable_dlopen_self=unknown
  2073. enable_dlopen_self_static=unknown
  2074. else
  2075. lt_cv_dlopen=no
  2076. lt_cv_dlopen_libs=
  2077. case $host_os in
  2078. beos*)
  2079. lt_cv_dlopen="load_add_on"
  2080. lt_cv_dlopen_libs=
  2081. lt_cv_dlopen_self=yes
  2082. ;;
  2083. mingw* | pw32* | cegcc*)
  2084. lt_cv_dlopen="LoadLibrary"
  2085. lt_cv_dlopen_libs=
  2086. ;;
  2087. cygwin*)
  2088. lt_cv_dlopen="dlopen"
  2089. lt_cv_dlopen_libs=
  2090. ;;
  2091. darwin*)
  2092. # if libdl is installed we need to link against it
  2093. AC_CHECK_LIB([dl], [dlopen],
  2094. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  2095. lt_cv_dlopen="dyld"
  2096. lt_cv_dlopen_libs=
  2097. lt_cv_dlopen_self=yes
  2098. ])
  2099. ;;
  2100. *)
  2101. AC_CHECK_FUNC([shl_load],
  2102. [lt_cv_dlopen="shl_load"],
  2103. [AC_CHECK_LIB([dld], [shl_load],
  2104. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  2105. [AC_CHECK_FUNC([dlopen],
  2106. [lt_cv_dlopen="dlopen"],
  2107. [AC_CHECK_LIB([dl], [dlopen],
  2108. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  2109. [AC_CHECK_LIB([svld], [dlopen],
  2110. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  2111. [AC_CHECK_LIB([dld], [dld_link],
  2112. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  2113. ])
  2114. ])
  2115. ])
  2116. ])
  2117. ])
  2118. ;;
  2119. esac
  2120. if test "x$lt_cv_dlopen" != xno; then
  2121. enable_dlopen=yes
  2122. else
  2123. enable_dlopen=no
  2124. fi
  2125. case $lt_cv_dlopen in
  2126. dlopen)
  2127. save_CPPFLAGS="$CPPFLAGS"
  2128. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  2129. save_LDFLAGS="$LDFLAGS"
  2130. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  2131. save_LIBS="$LIBS"
  2132. LIBS="$lt_cv_dlopen_libs $LIBS"
  2133. AC_CACHE_CHECK([whether a program can dlopen itself],
  2134. lt_cv_dlopen_self, [dnl
  2135. _LT_TRY_DLOPEN_SELF(
  2136. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  2137. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  2138. ])
  2139. if test "x$lt_cv_dlopen_self" = xyes; then
  2140. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  2141. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  2142. lt_cv_dlopen_self_static, [dnl
  2143. _LT_TRY_DLOPEN_SELF(
  2144. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  2145. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  2146. ])
  2147. fi
  2148. CPPFLAGS="$save_CPPFLAGS"
  2149. LDFLAGS="$save_LDFLAGS"
  2150. LIBS="$save_LIBS"
  2151. ;;
  2152. esac
  2153. case $lt_cv_dlopen_self in
  2154. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  2155. *) enable_dlopen_self=unknown ;;
  2156. esac
  2157. case $lt_cv_dlopen_self_static in
  2158. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  2159. *) enable_dlopen_self_static=unknown ;;
  2160. esac
  2161. fi
  2162. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  2163. [Whether dlopen is supported])
  2164. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  2165. [Whether dlopen of programs is supported])
  2166. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  2167. [Whether dlopen of statically linked programs is supported])
  2168. ])# LT_SYS_DLOPEN_SELF
  2169. # Old name:
  2170. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  2171. dnl aclocal-1.4 backwards compatibility:
  2172. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  2173. # _LT_COMPILER_C_O([TAGNAME])
  2174. # ---------------------------
  2175. # Check to see if options -c and -o are simultaneously supported by compiler.
  2176. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2177. m4_defun([_LT_COMPILER_C_O],
  2178. [m4_require([_LT_DECL_SED])dnl
  2179. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2180. m4_require([_LT_TAG_COMPILER])dnl
  2181. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2182. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2183. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2184. $RM -r conftest 2>/dev/null
  2185. mkdir conftest
  2186. cd conftest
  2187. mkdir out
  2188. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2189. lt_compiler_flag="-o out/conftest2.$ac_objext"
  2190. # Insert the option either (1) after the last *FLAGS variable, or
  2191. # (2) before a word containing "conftest.", or (3) at the end.
  2192. # Note that $ac_compile itself does not contain backslashes and begins
  2193. # with a dollar sign (not a hyphen), so the echo should work correctly.
  2194. lt_compile=`echo "$ac_compile" | $SED \
  2195. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2196. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2197. -e 's:$: $lt_compiler_flag:'`
  2198. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2199. (eval "$lt_compile" 2>out/conftest.err)
  2200. ac_status=$?
  2201. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  2202. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2203. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  2204. then
  2205. # The compiler can only warn and ignore the option if not recognized
  2206. # So say no if there are warnings
  2207. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  2208. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2209. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2210. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2211. fi
  2212. fi
  2213. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2214. $RM conftest*
  2215. # SGI C++ compiler will create directory out/ii_files/ for
  2216. # template instantiation
  2217. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2218. $RM out/* && rmdir out
  2219. cd ..
  2220. $RM -r conftest
  2221. $RM conftest*
  2222. ])
  2223. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2224. [Does compiler simultaneously support -c and -o options?])
  2225. ])# _LT_COMPILER_C_O
  2226. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2227. # ----------------------------------
  2228. # Check to see if we can do hard links to lock some files if needed
  2229. m4_defun([_LT_COMPILER_FILE_LOCKS],
  2230. [m4_require([_LT_ENABLE_LOCK])dnl
  2231. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2232. _LT_COMPILER_C_O([$1])
  2233. hard_links="nottested"
  2234. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2235. # do not overwrite the value of need_locks provided by the user
  2236. AC_MSG_CHECKING([if we can lock with hard links])
  2237. hard_links=yes
  2238. $RM conftest*
  2239. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2240. touch conftest.a
  2241. ln conftest.a conftest.b 2>&5 || hard_links=no
  2242. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2243. AC_MSG_RESULT([$hard_links])
  2244. if test "$hard_links" = no; then
  2245. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  2246. need_locks=warn
  2247. fi
  2248. else
  2249. need_locks=no
  2250. fi
  2251. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2252. ])# _LT_COMPILER_FILE_LOCKS
  2253. # _LT_CHECK_OBJDIR
  2254. # ----------------
  2255. m4_defun([_LT_CHECK_OBJDIR],
  2256. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2257. [rm -f .libs 2>/dev/null
  2258. mkdir .libs 2>/dev/null
  2259. if test -d .libs; then
  2260. lt_cv_objdir=.libs
  2261. else
  2262. # MS-DOS does not allow filenames that begin with a dot.
  2263. lt_cv_objdir=_libs
  2264. fi
  2265. rmdir .libs 2>/dev/null])
  2266. objdir=$lt_cv_objdir
  2267. _LT_DECL([], [objdir], [0],
  2268. [The name of the directory that contains temporary libtool files])dnl
  2269. m4_pattern_allow([LT_OBJDIR])dnl
  2270. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2271. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2272. ])# _LT_CHECK_OBJDIR
  2273. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2274. # --------------------------------------
  2275. # Check hardcoding attributes.
  2276. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2277. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2278. _LT_TAGVAR(hardcode_action, $1)=
  2279. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2280. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2281. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2282. # We can hardcode non-existent directories.
  2283. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2284. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2285. # have to relink, otherwise we might link with an installed library
  2286. # when we should be linking with a yet-to-be-installed one
  2287. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2288. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2289. # Linking always hardcodes the temporary library directory.
  2290. _LT_TAGVAR(hardcode_action, $1)=relink
  2291. else
  2292. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2293. _LT_TAGVAR(hardcode_action, $1)=immediate
  2294. fi
  2295. else
  2296. # We cannot hardcode anything, or else we can only hardcode existing
  2297. # directories.
  2298. _LT_TAGVAR(hardcode_action, $1)=unsupported
  2299. fi
  2300. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2301. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2302. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2303. # Fast installation is not supported
  2304. enable_fast_install=no
  2305. elif test "$shlibpath_overrides_runpath" = yes ||
  2306. test "$enable_shared" = no; then
  2307. # Fast installation is not necessary
  2308. enable_fast_install=needless
  2309. fi
  2310. _LT_TAGDECL([], [hardcode_action], [0],
  2311. [How to hardcode a shared library path into an executable])
  2312. ])# _LT_LINKER_HARDCODE_LIBPATH
  2313. # _LT_CMD_STRIPLIB
  2314. # ----------------
  2315. m4_defun([_LT_CMD_STRIPLIB],
  2316. [m4_require([_LT_DECL_EGREP])
  2317. striplib=
  2318. old_striplib=
  2319. AC_MSG_CHECKING([whether stripping libraries is possible])
  2320. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2321. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2322. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2323. AC_MSG_RESULT([yes])
  2324. else
  2325. # FIXME - insert some real tests, host_os isn't really good enough
  2326. case $host_os in
  2327. darwin*)
  2328. if test -n "$STRIP" ; then
  2329. striplib="$STRIP -x"
  2330. old_striplib="$STRIP -S"
  2331. AC_MSG_RESULT([yes])
  2332. else
  2333. AC_MSG_RESULT([no])
  2334. fi
  2335. ;;
  2336. *)
  2337. AC_MSG_RESULT([no])
  2338. ;;
  2339. esac
  2340. fi
  2341. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2342. _LT_DECL([], [striplib], [1])
  2343. ])# _LT_CMD_STRIPLIB
  2344. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2345. # -----------------------------
  2346. # PORTME Fill in your ld.so characteristics
  2347. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2348. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2349. m4_require([_LT_DECL_EGREP])dnl
  2350. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2351. m4_require([_LT_DECL_OBJDUMP])dnl
  2352. m4_require([_LT_DECL_SED])dnl
  2353. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  2354. AC_MSG_CHECKING([dynamic linker characteristics])
  2355. m4_if([$1],
  2356. [], [
  2357. if test "$GCC" = yes; then
  2358. case $host_os in
  2359. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2360. *) lt_awk_arg="/^libraries:/" ;;
  2361. esac
  2362. case $host_os in
  2363. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  2364. *) lt_sed_strip_eq="s,=/,/,g" ;;
  2365. esac
  2366. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  2367. case $lt_search_path_spec in
  2368. *\;*)
  2369. # if the path contains ";" then we assume it to be the separator
  2370. # otherwise default to the standard path separator (i.e. ":") - it is
  2371. # assumed that no part of a normal pathname contains ";" but that should
  2372. # okay in the real world where ";" in dirpaths is itself problematic.
  2373. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  2374. ;;
  2375. *)
  2376. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  2377. ;;
  2378. esac
  2379. # Ok, now we have the path, separated by spaces, we can step through it
  2380. # and add multilib dir if necessary.
  2381. lt_tmp_lt_search_path_spec=
  2382. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2383. for lt_sys_path in $lt_search_path_spec; do
  2384. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  2385. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  2386. else
  2387. test -d "$lt_sys_path" && \
  2388. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2389. fi
  2390. done
  2391. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  2392. BEGIN {RS=" "; FS="/|\n";} {
  2393. lt_foo="";
  2394. lt_count=0;
  2395. for (lt_i = NF; lt_i > 0; lt_i--) {
  2396. if ($lt_i != "" && $lt_i != ".") {
  2397. if ($lt_i == "..") {
  2398. lt_count++;
  2399. } else {
  2400. if (lt_count == 0) {
  2401. lt_foo="/" $lt_i lt_foo;
  2402. } else {
  2403. lt_count--;
  2404. }
  2405. }
  2406. }
  2407. }
  2408. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2409. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2410. }'`
  2411. # AWK program above erroneously prepends '/' to C:/dos/paths
  2412. # for these hosts.
  2413. case $host_os in
  2414. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  2415. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  2416. esac
  2417. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  2418. else
  2419. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2420. fi])
  2421. library_names_spec=
  2422. libname_spec='lib$name'
  2423. soname_spec=
  2424. shrext_cmds=".so"
  2425. postinstall_cmds=
  2426. postuninstall_cmds=
  2427. finish_cmds=
  2428. finish_eval=
  2429. shlibpath_var=
  2430. shlibpath_overrides_runpath=unknown
  2431. version_type=none
  2432. dynamic_linker="$host_os ld.so"
  2433. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2434. need_lib_prefix=unknown
  2435. hardcode_into_libs=no
  2436. # when you set need_version to no, make sure it does not cause -set_version
  2437. # flags to be left without arguments
  2438. need_version=unknown
  2439. case $host_os in
  2440. aix3*)
  2441. version_type=linux
  2442. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2443. shlibpath_var=LIBPATH
  2444. # AIX 3 has no versioning support, so we append a major version to the name.
  2445. soname_spec='${libname}${release}${shared_ext}$major'
  2446. ;;
  2447. aix[[4-9]]*)
  2448. version_type=linux
  2449. need_lib_prefix=no
  2450. need_version=no
  2451. hardcode_into_libs=yes
  2452. if test "$host_cpu" = ia64; then
  2453. # AIX 5 supports IA64
  2454. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2455. shlibpath_var=LD_LIBRARY_PATH
  2456. else
  2457. # With GCC up to 2.95.x, collect2 would create an import file
  2458. # for dependence libraries. The import file would start with
  2459. # the line `#! .'. This would cause the generated library to
  2460. # depend on `.', always an invalid library. This was fixed in
  2461. # development snapshots of GCC prior to 3.0.
  2462. case $host_os in
  2463. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2464. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2465. echo ' yes '
  2466. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2467. :
  2468. else
  2469. can_build_shared=no
  2470. fi
  2471. ;;
  2472. esac
  2473. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2474. # soname into executable. Probably we can add versioning support to
  2475. # collect2, so additional links can be useful in future.
  2476. if test "$aix_use_runtimelinking" = yes; then
  2477. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2478. # instead of lib<name>.a to let people know that these are not
  2479. # typical AIX shared libraries.
  2480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2481. else
  2482. # We preserve .a as extension for shared libraries through AIX4.2
  2483. # and later when we are not doing run time linking.
  2484. library_names_spec='${libname}${release}.a $libname.a'
  2485. soname_spec='${libname}${release}${shared_ext}$major'
  2486. fi
  2487. shlibpath_var=LIBPATH
  2488. fi
  2489. ;;
  2490. amigaos*)
  2491. case $host_cpu in
  2492. powerpc)
  2493. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2494. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2496. ;;
  2497. m68k)
  2498. library_names_spec='$libname.ixlibrary $libname.a'
  2499. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2500. 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'
  2501. ;;
  2502. esac
  2503. ;;
  2504. beos*)
  2505. library_names_spec='${libname}${shared_ext}'
  2506. dynamic_linker="$host_os ld.so"
  2507. shlibpath_var=LIBRARY_PATH
  2508. ;;
  2509. bsdi[[45]]*)
  2510. version_type=linux
  2511. need_version=no
  2512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2513. soname_spec='${libname}${release}${shared_ext}$major'
  2514. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2515. shlibpath_var=LD_LIBRARY_PATH
  2516. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2517. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2518. # the default ld.so.conf also contains /usr/contrib/lib and
  2519. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2520. # libtool to hard-code these into programs
  2521. ;;
  2522. cygwin* | mingw* | pw32* | cegcc*)
  2523. version_type=windows
  2524. shrext_cmds=".dll"
  2525. need_version=no
  2526. need_lib_prefix=no
  2527. case $GCC,$cc_basename in
  2528. yes,*)
  2529. # gcc
  2530. library_names_spec='$libname.dll.a'
  2531. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2532. postinstall_cmds='base_file=`basename \${file}`~
  2533. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2534. dldir=$destdir/`dirname \$dlpath`~
  2535. test -d \$dldir || mkdir -p \$dldir~
  2536. $install_prog $dir/$dlname \$dldir/$dlname~
  2537. chmod a+x \$dldir/$dlname~
  2538. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2539. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2540. fi'
  2541. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2542. dlpath=$dir/\$dldll~
  2543. $RM \$dlpath'
  2544. shlibpath_overrides_runpath=yes
  2545. case $host_os in
  2546. cygwin*)
  2547. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2548. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2549. m4_if([$1], [],[
  2550. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2551. ;;
  2552. mingw* | cegcc*)
  2553. # MinGW DLLs use traditional 'lib' prefix
  2554. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2555. ;;
  2556. pw32*)
  2557. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2558. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2559. ;;
  2560. esac
  2561. dynamic_linker='Win32 ld.exe'
  2562. ;;
  2563. *,cl*)
  2564. # Native MSVC
  2565. libname_spec='$name'
  2566. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2567. library_names_spec='${libname}.dll.lib'
  2568. case $build_os in
  2569. mingw*)
  2570. sys_lib_search_path_spec=
  2571. lt_save_ifs=$IFS
  2572. IFS=';'
  2573. for lt_path in $LIB
  2574. do
  2575. IFS=$lt_save_ifs
  2576. # Let DOS variable expansion print the short 8.3 style file name.
  2577. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2578. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2579. done
  2580. IFS=$lt_save_ifs
  2581. # Convert to MSYS style.
  2582. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2583. ;;
  2584. cygwin*)
  2585. # Convert to unix form, then to dos form, then back to unix form
  2586. # but this time dos style (no spaces!) so that the unix form looks
  2587. # like /cygdrive/c/PROGRA~1:/cygdr...
  2588. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2589. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2590. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2591. ;;
  2592. *)
  2593. sys_lib_search_path_spec="$LIB"
  2594. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2595. # It is most probably a Windows format PATH.
  2596. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2597. else
  2598. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2599. fi
  2600. # FIXME: find the short name or the path components, as spaces are
  2601. # common. (e.g. "Program Files" -> "PROGRA~1")
  2602. ;;
  2603. esac
  2604. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2605. postinstall_cmds='base_file=`basename \${file}`~
  2606. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2607. dldir=$destdir/`dirname \$dlpath`~
  2608. test -d \$dldir || mkdir -p \$dldir~
  2609. $install_prog $dir/$dlname \$dldir/$dlname'
  2610. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2611. dlpath=$dir/\$dldll~
  2612. $RM \$dlpath'
  2613. shlibpath_overrides_runpath=yes
  2614. dynamic_linker='Win32 link.exe'
  2615. ;;
  2616. *)
  2617. # Assume MSVC wrapper
  2618. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2619. dynamic_linker='Win32 ld.exe'
  2620. ;;
  2621. esac
  2622. # FIXME: first we should search . and the directory the executable is in
  2623. shlibpath_var=PATH
  2624. ;;
  2625. darwin* | rhapsody*)
  2626. dynamic_linker="$host_os dyld"
  2627. version_type=darwin
  2628. need_lib_prefix=no
  2629. need_version=no
  2630. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2631. soname_spec='${libname}${release}${major}$shared_ext'
  2632. shlibpath_overrides_runpath=yes
  2633. shlibpath_var=DYLD_LIBRARY_PATH
  2634. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2635. m4_if([$1], [],[
  2636. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2637. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2638. ;;
  2639. dgux*)
  2640. version_type=linux
  2641. need_lib_prefix=no
  2642. need_version=no
  2643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2644. soname_spec='${libname}${release}${shared_ext}$major'
  2645. shlibpath_var=LD_LIBRARY_PATH
  2646. ;;
  2647. freebsd1*)
  2648. dynamic_linker=no
  2649. ;;
  2650. freebsd* | dragonfly*)
  2651. # DragonFly does not have aout. When/if they implement a new
  2652. # versioning mechanism, adjust this.
  2653. if test -x /usr/bin/objformat; then
  2654. objformat=`/usr/bin/objformat`
  2655. else
  2656. case $host_os in
  2657. freebsd[[123]]*) objformat=aout ;;
  2658. *) objformat=elf ;;
  2659. esac
  2660. fi
  2661. version_type=freebsd-$objformat
  2662. case $version_type in
  2663. freebsd-elf*)
  2664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2665. need_version=no
  2666. need_lib_prefix=no
  2667. ;;
  2668. freebsd-*)
  2669. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2670. need_version=yes
  2671. ;;
  2672. esac
  2673. shlibpath_var=LD_LIBRARY_PATH
  2674. case $host_os in
  2675. freebsd2*)
  2676. shlibpath_overrides_runpath=yes
  2677. ;;
  2678. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2679. shlibpath_overrides_runpath=yes
  2680. hardcode_into_libs=yes
  2681. ;;
  2682. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2683. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2684. shlibpath_overrides_runpath=no
  2685. hardcode_into_libs=yes
  2686. ;;
  2687. *) # from 4.6 on, and DragonFly
  2688. shlibpath_overrides_runpath=yes
  2689. hardcode_into_libs=yes
  2690. ;;
  2691. esac
  2692. ;;
  2693. gnu*)
  2694. version_type=linux
  2695. need_lib_prefix=no
  2696. need_version=no
  2697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2698. soname_spec='${libname}${release}${shared_ext}$major'
  2699. shlibpath_var=LD_LIBRARY_PATH
  2700. shlibpath_overrides_runpath=no
  2701. hardcode_into_libs=yes
  2702. ;;
  2703. haiku*)
  2704. version_type=linux
  2705. need_lib_prefix=no
  2706. need_version=no
  2707. dynamic_linker="$host_os runtime_loader"
  2708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2709. soname_spec='${libname}${release}${shared_ext}$major'
  2710. shlibpath_var=LIBRARY_PATH
  2711. shlibpath_overrides_runpath=yes
  2712. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2713. hardcode_into_libs=yes
  2714. ;;
  2715. hpux9* | hpux10* | hpux11*)
  2716. # Give a soname corresponding to the major version so that dld.sl refuses to
  2717. # link against other versions.
  2718. version_type=sunos
  2719. need_lib_prefix=no
  2720. need_version=no
  2721. case $host_cpu in
  2722. ia64*)
  2723. shrext_cmds='.so'
  2724. hardcode_into_libs=yes
  2725. dynamic_linker="$host_os dld.so"
  2726. shlibpath_var=LD_LIBRARY_PATH
  2727. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2729. soname_spec='${libname}${release}${shared_ext}$major'
  2730. if test "X$HPUX_IA64_MODE" = X32; then
  2731. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2732. else
  2733. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2734. fi
  2735. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2736. ;;
  2737. hppa*64*)
  2738. shrext_cmds='.sl'
  2739. hardcode_into_libs=yes
  2740. dynamic_linker="$host_os dld.sl"
  2741. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2742. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2744. soname_spec='${libname}${release}${shared_ext}$major'
  2745. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2746. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2747. ;;
  2748. *)
  2749. shrext_cmds='.sl'
  2750. dynamic_linker="$host_os dld.sl"
  2751. shlibpath_var=SHLIB_PATH
  2752. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2754. soname_spec='${libname}${release}${shared_ext}$major'
  2755. ;;
  2756. esac
  2757. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2758. postinstall_cmds='chmod 555 $lib'
  2759. # or fails outright, so override atomically:
  2760. install_override_mode=555
  2761. ;;
  2762. interix[[3-9]]*)
  2763. version_type=linux
  2764. need_lib_prefix=no
  2765. need_version=no
  2766. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2767. soname_spec='${libname}${release}${shared_ext}$major'
  2768. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2769. shlibpath_var=LD_LIBRARY_PATH
  2770. shlibpath_overrides_runpath=no
  2771. hardcode_into_libs=yes
  2772. ;;
  2773. irix5* | irix6* | nonstopux*)
  2774. case $host_os in
  2775. nonstopux*) version_type=nonstopux ;;
  2776. *)
  2777. if test "$lt_cv_prog_gnu_ld" = yes; then
  2778. version_type=linux
  2779. else
  2780. version_type=irix
  2781. fi ;;
  2782. esac
  2783. need_lib_prefix=no
  2784. need_version=no
  2785. soname_spec='${libname}${release}${shared_ext}$major'
  2786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2787. case $host_os in
  2788. irix5* | nonstopux*)
  2789. libsuff= shlibsuff=
  2790. ;;
  2791. *)
  2792. case $LD in # libtool.m4 will add one of these switches to LD
  2793. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2794. libsuff= shlibsuff= libmagic=32-bit;;
  2795. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2796. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2797. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2798. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2799. *) libsuff= shlibsuff= libmagic=never-match;;
  2800. esac
  2801. ;;
  2802. esac
  2803. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2804. shlibpath_overrides_runpath=no
  2805. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2806. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2807. hardcode_into_libs=yes
  2808. ;;
  2809. # No shared lib support for Linux oldld, aout, or coff.
  2810. linux*oldld* | linux*aout* | linux*coff*)
  2811. dynamic_linker=no
  2812. ;;
  2813. # This must be Linux ELF.
  2814. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2815. version_type=linux
  2816. need_lib_prefix=no
  2817. need_version=no
  2818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2819. soname_spec='${libname}${release}${shared_ext}$major'
  2820. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2821. shlibpath_var=LD_LIBRARY_PATH
  2822. shlibpath_overrides_runpath=no
  2823. # Some binutils ld are patched to set DT_RUNPATH
  2824. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2825. [lt_cv_shlibpath_overrides_runpath=no
  2826. save_LDFLAGS=$LDFLAGS
  2827. save_libdir=$libdir
  2828. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2829. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2830. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2831. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2832. [lt_cv_shlibpath_overrides_runpath=yes])])
  2833. LDFLAGS=$save_LDFLAGS
  2834. libdir=$save_libdir
  2835. ])
  2836. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2837. # This implies no fast_install, which is unacceptable.
  2838. # Some rework will be needed to allow for fast_install
  2839. # before this can be enabled.
  2840. hardcode_into_libs=yes
  2841. # Append ld.so.conf contents to the search path
  2842. if test -f /etc/ld.so.conf; then
  2843. 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' ' '`
  2844. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2845. fi
  2846. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2847. # powerpc, because MkLinux only supported shared libraries with the
  2848. # GNU dynamic linker. Since this was broken with cross compilers,
  2849. # most powerpc-linux boxes support dynamic linking these days and
  2850. # people can always --disable-shared, the test was removed, and we
  2851. # assume the GNU/Linux dynamic linker is in use.
  2852. dynamic_linker='GNU/Linux ld.so'
  2853. ;;
  2854. netbsdelf*-gnu)
  2855. version_type=linux
  2856. need_lib_prefix=no
  2857. need_version=no
  2858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2859. soname_spec='${libname}${release}${shared_ext}$major'
  2860. shlibpath_var=LD_LIBRARY_PATH
  2861. shlibpath_overrides_runpath=no
  2862. hardcode_into_libs=yes
  2863. dynamic_linker='NetBSD ld.elf_so'
  2864. ;;
  2865. netbsd*)
  2866. version_type=sunos
  2867. need_lib_prefix=no
  2868. need_version=no
  2869. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2870. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2871. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2872. dynamic_linker='NetBSD (a.out) ld.so'
  2873. else
  2874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2875. soname_spec='${libname}${release}${shared_ext}$major'
  2876. dynamic_linker='NetBSD ld.elf_so'
  2877. fi
  2878. shlibpath_var=LD_LIBRARY_PATH
  2879. shlibpath_overrides_runpath=yes
  2880. hardcode_into_libs=yes
  2881. ;;
  2882. newsos6)
  2883. version_type=linux
  2884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2885. shlibpath_var=LD_LIBRARY_PATH
  2886. shlibpath_overrides_runpath=yes
  2887. ;;
  2888. *nto* | *qnx*)
  2889. version_type=qnx
  2890. need_lib_prefix=no
  2891. need_version=no
  2892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2893. soname_spec='${libname}${release}${shared_ext}$major'
  2894. shlibpath_var=LD_LIBRARY_PATH
  2895. shlibpath_overrides_runpath=no
  2896. hardcode_into_libs=yes
  2897. dynamic_linker='ldqnx.so'
  2898. ;;
  2899. openbsd*)
  2900. version_type=sunos
  2901. sys_lib_dlsearch_path_spec="/usr/lib"
  2902. need_lib_prefix=no
  2903. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2904. case $host_os in
  2905. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2906. *) need_version=no ;;
  2907. esac
  2908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2909. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2910. shlibpath_var=LD_LIBRARY_PATH
  2911. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2912. case $host_os in
  2913. openbsd2.[[89]] | openbsd2.[[89]].*)
  2914. shlibpath_overrides_runpath=no
  2915. ;;
  2916. *)
  2917. shlibpath_overrides_runpath=yes
  2918. ;;
  2919. esac
  2920. else
  2921. shlibpath_overrides_runpath=yes
  2922. fi
  2923. ;;
  2924. os2*)
  2925. libname_spec='$name'
  2926. shrext_cmds=".dll"
  2927. need_lib_prefix=no
  2928. library_names_spec='$libname${shared_ext} $libname.a'
  2929. dynamic_linker='OS/2 ld.exe'
  2930. shlibpath_var=LIBPATH
  2931. ;;
  2932. osf3* | osf4* | osf5*)
  2933. version_type=osf
  2934. need_lib_prefix=no
  2935. need_version=no
  2936. soname_spec='${libname}${release}${shared_ext}$major'
  2937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2938. shlibpath_var=LD_LIBRARY_PATH
  2939. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2940. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2941. ;;
  2942. rdos*)
  2943. dynamic_linker=no
  2944. ;;
  2945. solaris*)
  2946. version_type=linux
  2947. need_lib_prefix=no
  2948. need_version=no
  2949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2950. soname_spec='${libname}${release}${shared_ext}$major'
  2951. shlibpath_var=LD_LIBRARY_PATH
  2952. shlibpath_overrides_runpath=yes
  2953. hardcode_into_libs=yes
  2954. # ldd complains unless libraries are executable
  2955. postinstall_cmds='chmod +x $lib'
  2956. ;;
  2957. sunos4*)
  2958. version_type=sunos
  2959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2960. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2961. shlibpath_var=LD_LIBRARY_PATH
  2962. shlibpath_overrides_runpath=yes
  2963. if test "$with_gnu_ld" = yes; then
  2964. need_lib_prefix=no
  2965. fi
  2966. need_version=yes
  2967. ;;
  2968. sysv4 | sysv4.3*)
  2969. version_type=linux
  2970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2971. soname_spec='${libname}${release}${shared_ext}$major'
  2972. shlibpath_var=LD_LIBRARY_PATH
  2973. case $host_vendor in
  2974. sni)
  2975. shlibpath_overrides_runpath=no
  2976. need_lib_prefix=no
  2977. runpath_var=LD_RUN_PATH
  2978. ;;
  2979. siemens)
  2980. need_lib_prefix=no
  2981. ;;
  2982. motorola)
  2983. need_lib_prefix=no
  2984. need_version=no
  2985. shlibpath_overrides_runpath=no
  2986. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2987. ;;
  2988. esac
  2989. ;;
  2990. sysv4*MP*)
  2991. if test -d /usr/nec ;then
  2992. version_type=linux
  2993. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2994. soname_spec='$libname${shared_ext}.$major'
  2995. shlibpath_var=LD_LIBRARY_PATH
  2996. fi
  2997. ;;
  2998. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2999. version_type=freebsd-elf
  3000. need_lib_prefix=no
  3001. need_version=no
  3002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $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. if test "$with_gnu_ld" = yes; then
  3008. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3009. else
  3010. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3011. case $host_os in
  3012. sco3.2v5*)
  3013. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  3014. ;;
  3015. esac
  3016. fi
  3017. sys_lib_dlsearch_path_spec='/usr/lib'
  3018. ;;
  3019. tpf*)
  3020. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  3021. version_type=linux
  3022. need_lib_prefix=no
  3023. need_version=no
  3024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3025. shlibpath_var=LD_LIBRARY_PATH
  3026. shlibpath_overrides_runpath=no
  3027. hardcode_into_libs=yes
  3028. ;;
  3029. uts4*)
  3030. version_type=linux
  3031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3032. soname_spec='${libname}${release}${shared_ext}$major'
  3033. shlibpath_var=LD_LIBRARY_PATH
  3034. ;;
  3035. *)
  3036. dynamic_linker=no
  3037. ;;
  3038. esac
  3039. AC_MSG_RESULT([$dynamic_linker])
  3040. test "$dynamic_linker" = no && can_build_shared=no
  3041. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3042. if test "$GCC" = yes; then
  3043. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3044. fi
  3045. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  3046. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  3047. fi
  3048. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  3049. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  3050. fi
  3051. _LT_DECL([], [variables_saved_for_relink], [1],
  3052. [Variables whose values should be saved in libtool wrapper scripts and
  3053. restored at link time])
  3054. _LT_DECL([], [need_lib_prefix], [0],
  3055. [Do we need the "lib" prefix for modules?])
  3056. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  3057. _LT_DECL([], [version_type], [0], [Library versioning type])
  3058. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  3059. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  3060. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  3061. [Is shlibpath searched before the hard-coded library search path?])
  3062. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  3063. _LT_DECL([], [library_names_spec], [1],
  3064. [[List of archive names. First name is the real one, the rest are links.
  3065. The last name is the one that the linker finds with -lNAME]])
  3066. _LT_DECL([], [soname_spec], [1],
  3067. [[The coded name of the library, if different from the real name]])
  3068. _LT_DECL([], [install_override_mode], [1],
  3069. [Permission mode override for installation of shared libraries])
  3070. _LT_DECL([], [postinstall_cmds], [2],
  3071. [Command to use after installation of a shared archive])
  3072. _LT_DECL([], [postuninstall_cmds], [2],
  3073. [Command to use after uninstallation of a shared archive])
  3074. _LT_DECL([], [finish_cmds], [2],
  3075. [Commands used to finish a libtool library installation in a directory])
  3076. _LT_DECL([], [finish_eval], [1],
  3077. [[As "finish_cmds", except a single script fragment to be evaled but
  3078. not shown]])
  3079. _LT_DECL([], [hardcode_into_libs], [0],
  3080. [Whether we should hardcode library paths into libraries])
  3081. _LT_DECL([], [sys_lib_search_path_spec], [2],
  3082. [Compile-time system search path for libraries])
  3083. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  3084. [Run-time system search path for libraries])
  3085. ])# _LT_SYS_DYNAMIC_LINKER
  3086. # _LT_PATH_TOOL_PREFIX(TOOL)
  3087. # --------------------------
  3088. # find a file program which can recognize shared library
  3089. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  3090. [m4_require([_LT_DECL_EGREP])dnl
  3091. AC_MSG_CHECKING([for $1])
  3092. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3093. [case $MAGIC_CMD in
  3094. [[\\/*] | ?:[\\/]*])
  3095. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3096. ;;
  3097. *)
  3098. lt_save_MAGIC_CMD="$MAGIC_CMD"
  3099. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3100. dnl $ac_dummy forces splitting on constant user-supplied paths.
  3101. dnl POSIX.2 word splitting is done only on the output of word expansions,
  3102. dnl not every word. This closes a longstanding sh security hole.
  3103. ac_dummy="m4_if([$2], , $PATH, [$2])"
  3104. for ac_dir in $ac_dummy; do
  3105. IFS="$lt_save_ifs"
  3106. test -z "$ac_dir" && ac_dir=.
  3107. if test -f $ac_dir/$1; then
  3108. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3109. if test -n "$file_magic_test_file"; then
  3110. case $deplibs_check_method in
  3111. "file_magic "*)
  3112. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3113. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3114. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3115. $EGREP "$file_magic_regex" > /dev/null; then
  3116. :
  3117. else
  3118. cat <<_LT_EOF 1>&2
  3119. *** Warning: the command libtool uses to detect shared libraries,
  3120. *** $file_magic_cmd, produces output that libtool cannot recognize.
  3121. *** The result is that libtool may fail to recognize shared libraries
  3122. *** as such. This will affect the creation of libtool libraries that
  3123. *** depend on shared libraries, but programs linked with such libtool
  3124. *** libraries will work regardless of this problem. Nevertheless, you
  3125. *** may want to report the problem to your system manager and/or to
  3126. *** bug-libtool@gnu.org
  3127. _LT_EOF
  3128. fi ;;
  3129. esac
  3130. fi
  3131. break
  3132. fi
  3133. done
  3134. IFS="$lt_save_ifs"
  3135. MAGIC_CMD="$lt_save_MAGIC_CMD"
  3136. ;;
  3137. esac])
  3138. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3139. if test -n "$MAGIC_CMD"; then
  3140. AC_MSG_RESULT($MAGIC_CMD)
  3141. else
  3142. AC_MSG_RESULT(no)
  3143. fi
  3144. _LT_DECL([], [MAGIC_CMD], [0],
  3145. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  3146. ])# _LT_PATH_TOOL_PREFIX
  3147. # Old name:
  3148. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  3149. dnl aclocal-1.4 backwards compatibility:
  3150. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  3151. # _LT_PATH_MAGIC
  3152. # --------------
  3153. # find a file program which can recognize a shared library
  3154. m4_defun([_LT_PATH_MAGIC],
  3155. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3156. if test -z "$lt_cv_path_MAGIC_CMD"; then
  3157. if test -n "$ac_tool_prefix"; then
  3158. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3159. else
  3160. MAGIC_CMD=:
  3161. fi
  3162. fi
  3163. ])# _LT_PATH_MAGIC
  3164. # LT_PATH_LD
  3165. # ----------
  3166. # find the pathname to the GNU or non-GNU linker
  3167. AC_DEFUN([LT_PATH_LD],
  3168. [AC_REQUIRE([AC_PROG_CC])dnl
  3169. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3170. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3171. m4_require([_LT_DECL_SED])dnl
  3172. m4_require([_LT_DECL_EGREP])dnl
  3173. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  3174. AC_ARG_WITH([gnu-ld],
  3175. [AS_HELP_STRING([--with-gnu-ld],
  3176. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3177. [test "$withval" = no || with_gnu_ld=yes],
  3178. [with_gnu_ld=no])dnl
  3179. ac_prog=ld
  3180. if test "$GCC" = yes; then
  3181. # Check if gcc -print-prog-name=ld gives a path.
  3182. AC_MSG_CHECKING([for ld used by $CC])
  3183. case $host in
  3184. *-*-mingw*)
  3185. # gcc leaves a trailing carriage return which upsets mingw
  3186. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3187. *)
  3188. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3189. esac
  3190. case $ac_prog in
  3191. # Accept absolute paths.
  3192. [[\\/]]* | ?:[[\\/]]*)
  3193. re_direlt='/[[^/]][[^/]]*/\.\./'
  3194. # Canonicalize the pathname of ld
  3195. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3196. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3197. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3198. done
  3199. test -z "$LD" && LD="$ac_prog"
  3200. ;;
  3201. "")
  3202. # If it fails, then pretend we aren't using GCC.
  3203. ac_prog=ld
  3204. ;;
  3205. *)
  3206. # If it is relative, then search for the first ld in PATH.
  3207. with_gnu_ld=unknown
  3208. ;;
  3209. esac
  3210. elif test "$with_gnu_ld" = yes; then
  3211. AC_MSG_CHECKING([for GNU ld])
  3212. else
  3213. AC_MSG_CHECKING([for non-GNU ld])
  3214. fi
  3215. AC_CACHE_VAL(lt_cv_path_LD,
  3216. [if test -z "$LD"; then
  3217. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3218. for ac_dir in $PATH; do
  3219. IFS="$lt_save_ifs"
  3220. test -z "$ac_dir" && ac_dir=.
  3221. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3222. lt_cv_path_LD="$ac_dir/$ac_prog"
  3223. # Check to see if the program is GNU ld. I'd rather use --version,
  3224. # but apparently some variants of GNU ld only accept -v.
  3225. # Break only if it was the GNU/non-GNU ld that we prefer.
  3226. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3227. *GNU* | *'with BFD'*)
  3228. test "$with_gnu_ld" != no && break
  3229. ;;
  3230. *)
  3231. test "$with_gnu_ld" != yes && break
  3232. ;;
  3233. esac
  3234. fi
  3235. done
  3236. IFS="$lt_save_ifs"
  3237. else
  3238. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3239. fi])
  3240. LD="$lt_cv_path_LD"
  3241. if test -n "$LD"; then
  3242. AC_MSG_RESULT($LD)
  3243. else
  3244. AC_MSG_RESULT(no)
  3245. fi
  3246. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3247. _LT_PATH_LD_GNU
  3248. AC_SUBST([LD])
  3249. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  3250. ])# LT_PATH_LD
  3251. # Old names:
  3252. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3253. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3254. dnl aclocal-1.4 backwards compatibility:
  3255. dnl AC_DEFUN([AM_PROG_LD], [])
  3256. dnl AC_DEFUN([AC_PROG_LD], [])
  3257. # _LT_PATH_LD_GNU
  3258. #- --------------
  3259. m4_defun([_LT_PATH_LD_GNU],
  3260. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3261. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3262. case `$LD -v 2>&1 </dev/null` in
  3263. *GNU* | *'with BFD'*)
  3264. lt_cv_prog_gnu_ld=yes
  3265. ;;
  3266. *)
  3267. lt_cv_prog_gnu_ld=no
  3268. ;;
  3269. esac])
  3270. with_gnu_ld=$lt_cv_prog_gnu_ld
  3271. ])# _LT_PATH_LD_GNU
  3272. # _LT_CMD_RELOAD
  3273. # --------------
  3274. # find reload flag for linker
  3275. # -- PORTME Some linkers may need a different reload flag.
  3276. m4_defun([_LT_CMD_RELOAD],
  3277. [AC_CACHE_CHECK([for $LD option to reload object files],
  3278. lt_cv_ld_reload_flag,
  3279. [lt_cv_ld_reload_flag='-r'])
  3280. reload_flag=$lt_cv_ld_reload_flag
  3281. case $reload_flag in
  3282. "" | " "*) ;;
  3283. *) reload_flag=" $reload_flag" ;;
  3284. esac
  3285. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3286. case $host_os in
  3287. cygwin* | mingw* | pw32* | cegcc*)
  3288. if test "$GCC" != yes; then
  3289. reload_cmds=false
  3290. fi
  3291. ;;
  3292. darwin*)
  3293. if test "$GCC" = yes; then
  3294. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3295. else
  3296. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3297. fi
  3298. ;;
  3299. esac
  3300. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3301. _LT_TAGDECL([], [reload_cmds], [2])dnl
  3302. ])# _LT_CMD_RELOAD
  3303. # _LT_CHECK_MAGIC_METHOD
  3304. # ----------------------
  3305. # how to check for library dependencies
  3306. # -- PORTME fill in with the dynamic library characteristics
  3307. m4_defun([_LT_CHECK_MAGIC_METHOD],
  3308. [m4_require([_LT_DECL_EGREP])
  3309. m4_require([_LT_DECL_OBJDUMP])
  3310. AC_CACHE_CHECK([how to recognize dependent libraries],
  3311. lt_cv_deplibs_check_method,
  3312. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3313. lt_cv_file_magic_test_file=
  3314. lt_cv_deplibs_check_method='unknown'
  3315. # Need to set the preceding variable on all platforms that support
  3316. # interlibrary dependencies.
  3317. # 'none' -- dependencies not supported.
  3318. # `unknown' -- same as none, but documents that we really don't know.
  3319. # 'pass_all' -- all dependencies passed with no checks.
  3320. # 'test_compile' -- check by making test program.
  3321. # 'file_magic [[regex]]' -- check by looking for files in library path
  3322. # which responds to the $file_magic_cmd with a given extended regex.
  3323. # If you have `file' or equivalent on your system and you're not sure
  3324. # whether `pass_all' will *always* work, you probably want this one.
  3325. case $host_os in
  3326. aix[[4-9]]*)
  3327. lt_cv_deplibs_check_method=pass_all
  3328. ;;
  3329. beos*)
  3330. lt_cv_deplibs_check_method=pass_all
  3331. ;;
  3332. bsdi[[45]]*)
  3333. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3334. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3335. lt_cv_file_magic_test_file=/shlib/libc.so
  3336. ;;
  3337. cygwin*)
  3338. # func_win32_libid is a shell function defined in ltmain.sh
  3339. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3340. lt_cv_file_magic_cmd='func_win32_libid'
  3341. ;;
  3342. mingw* | pw32*)
  3343. # Base MSYS/MinGW do not provide the 'file' command needed by
  3344. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3345. # unless we find 'file', for example because we are cross-compiling.
  3346. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  3347. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  3348. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3349. lt_cv_file_magic_cmd='func_win32_libid'
  3350. else
  3351. # Keep this pattern in sync with the one in func_win32_libid.
  3352. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  3353. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3354. fi
  3355. ;;
  3356. cegcc*)
  3357. # use the weaker test based on 'objdump'. See mingw*.
  3358. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3359. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3360. ;;
  3361. darwin* | rhapsody*)
  3362. lt_cv_deplibs_check_method=pass_all
  3363. ;;
  3364. freebsd* | dragonfly*)
  3365. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3366. case $host_cpu in
  3367. i*86 )
  3368. # Not sure whether the presence of OpenBSD here was a mistake.
  3369. # Let's accept both of them until this is cleared up.
  3370. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3371. lt_cv_file_magic_cmd=/usr/bin/file
  3372. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3373. ;;
  3374. esac
  3375. else
  3376. lt_cv_deplibs_check_method=pass_all
  3377. fi
  3378. ;;
  3379. gnu*)
  3380. lt_cv_deplibs_check_method=pass_all
  3381. ;;
  3382. haiku*)
  3383. lt_cv_deplibs_check_method=pass_all
  3384. ;;
  3385. hpux10.20* | hpux11*)
  3386. lt_cv_file_magic_cmd=/usr/bin/file
  3387. case $host_cpu in
  3388. ia64*)
  3389. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3390. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3391. ;;
  3392. hppa*64*)
  3393. [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]']
  3394. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3395. ;;
  3396. *)
  3397. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  3398. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3399. ;;
  3400. esac
  3401. ;;
  3402. interix[[3-9]]*)
  3403. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3404. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3405. ;;
  3406. irix5* | irix6* | nonstopux*)
  3407. case $LD in
  3408. *-32|*"-32 ") libmagic=32-bit;;
  3409. *-n32|*"-n32 ") libmagic=N32;;
  3410. *-64|*"-64 ") libmagic=64-bit;;
  3411. *) libmagic=never-match;;
  3412. esac
  3413. lt_cv_deplibs_check_method=pass_all
  3414. ;;
  3415. # This must be Linux ELF.
  3416. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3417. lt_cv_deplibs_check_method=pass_all
  3418. ;;
  3419. netbsd* | netbsdelf*-gnu)
  3420. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3421. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3422. else
  3423. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3424. fi
  3425. ;;
  3426. newos6*)
  3427. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3428. lt_cv_file_magic_cmd=/usr/bin/file
  3429. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3430. ;;
  3431. *nto* | *qnx*)
  3432. lt_cv_deplibs_check_method=pass_all
  3433. ;;
  3434. openbsd*)
  3435. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3436. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3437. else
  3438. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3439. fi
  3440. ;;
  3441. osf3* | osf4* | osf5*)
  3442. lt_cv_deplibs_check_method=pass_all
  3443. ;;
  3444. rdos*)
  3445. lt_cv_deplibs_check_method=pass_all
  3446. ;;
  3447. solaris*)
  3448. lt_cv_deplibs_check_method=pass_all
  3449. ;;
  3450. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3451. lt_cv_deplibs_check_method=pass_all
  3452. ;;
  3453. sysv4 | sysv4.3*)
  3454. case $host_vendor in
  3455. motorola)
  3456. 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]]'
  3457. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3458. ;;
  3459. ncr)
  3460. lt_cv_deplibs_check_method=pass_all
  3461. ;;
  3462. sequent)
  3463. lt_cv_file_magic_cmd='/bin/file'
  3464. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3465. ;;
  3466. sni)
  3467. lt_cv_file_magic_cmd='/bin/file'
  3468. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3469. lt_cv_file_magic_test_file=/lib/libc.so
  3470. ;;
  3471. siemens)
  3472. lt_cv_deplibs_check_method=pass_all
  3473. ;;
  3474. pc)
  3475. lt_cv_deplibs_check_method=pass_all
  3476. ;;
  3477. esac
  3478. ;;
  3479. tpf*)
  3480. lt_cv_deplibs_check_method=pass_all
  3481. ;;
  3482. esac
  3483. ])
  3484. file_magic_glob=
  3485. want_nocaseglob=no
  3486. if test "$build" = "$host"; then
  3487. case $host_os in
  3488. mingw* | pw32*)
  3489. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3490. want_nocaseglob=yes
  3491. else
  3492. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3493. fi
  3494. ;;
  3495. esac
  3496. fi
  3497. file_magic_cmd=$lt_cv_file_magic_cmd
  3498. deplibs_check_method=$lt_cv_deplibs_check_method
  3499. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3500. _LT_DECL([], [deplibs_check_method], [1],
  3501. [Method to check whether dependent libraries are shared objects])
  3502. _LT_DECL([], [file_magic_cmd], [1],
  3503. [Command to use when deplibs_check_method = "file_magic"])
  3504. _LT_DECL([], [file_magic_glob], [1],
  3505. [How to find potential files when deplibs_check_method = "file_magic"])
  3506. _LT_DECL([], [want_nocaseglob], [1],
  3507. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3508. ])# _LT_CHECK_MAGIC_METHOD
  3509. # LT_PATH_NM
  3510. # ----------
  3511. # find the pathname to a BSD- or MS-compatible name lister
  3512. AC_DEFUN([LT_PATH_NM],
  3513. [AC_REQUIRE([AC_PROG_CC])dnl
  3514. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3515. [if test -n "$NM"; then
  3516. # Let the user override the test.
  3517. lt_cv_path_NM="$NM"
  3518. else
  3519. lt_nm_to_check="${ac_tool_prefix}nm"
  3520. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3521. lt_nm_to_check="$lt_nm_to_check nm"
  3522. fi
  3523. for lt_tmp_nm in $lt_nm_to_check; do
  3524. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3525. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3526. IFS="$lt_save_ifs"
  3527. test -z "$ac_dir" && ac_dir=.
  3528. tmp_nm="$ac_dir/$lt_tmp_nm"
  3529. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3530. # Check to see if the nm accepts a BSD-compat flag.
  3531. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3532. # nm: unknown option "B" ignored
  3533. # Tru64's nm complains that /dev/null is an invalid object file
  3534. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3535. */dev/null* | *'Invalid file or object type'*)
  3536. lt_cv_path_NM="$tmp_nm -B"
  3537. break
  3538. ;;
  3539. *)
  3540. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3541. */dev/null*)
  3542. lt_cv_path_NM="$tmp_nm -p"
  3543. break
  3544. ;;
  3545. *)
  3546. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3547. continue # so that we can try to find one that supports BSD flags
  3548. ;;
  3549. esac
  3550. ;;
  3551. esac
  3552. fi
  3553. done
  3554. IFS="$lt_save_ifs"
  3555. done
  3556. : ${lt_cv_path_NM=no}
  3557. fi])
  3558. if test "$lt_cv_path_NM" != "no"; then
  3559. NM="$lt_cv_path_NM"
  3560. else
  3561. # Didn't find any BSD compatible name lister, look for dumpbin.
  3562. if test -n "$DUMPBIN"; then :
  3563. # Let the user override the test.
  3564. else
  3565. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3566. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3567. *COFF*)
  3568. DUMPBIN="$DUMPBIN -symbols"
  3569. ;;
  3570. *)
  3571. DUMPBIN=:
  3572. ;;
  3573. esac
  3574. fi
  3575. AC_SUBST([DUMPBIN])
  3576. if test "$DUMPBIN" != ":"; then
  3577. NM="$DUMPBIN"
  3578. fi
  3579. fi
  3580. test -z "$NM" && NM=nm
  3581. AC_SUBST([NM])
  3582. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3583. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3584. [lt_cv_nm_interface="BSD nm"
  3585. echo "int some_variable = 0;" > conftest.$ac_ext
  3586. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3587. (eval "$ac_compile" 2>conftest.err)
  3588. cat conftest.err >&AS_MESSAGE_LOG_FD
  3589. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3590. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3591. cat conftest.err >&AS_MESSAGE_LOG_FD
  3592. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3593. cat conftest.out >&AS_MESSAGE_LOG_FD
  3594. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3595. lt_cv_nm_interface="MS dumpbin"
  3596. fi
  3597. rm -f conftest*])
  3598. ])# LT_PATH_NM
  3599. # Old names:
  3600. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3601. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3602. dnl aclocal-1.4 backwards compatibility:
  3603. dnl AC_DEFUN([AM_PROG_NM], [])
  3604. dnl AC_DEFUN([AC_PROG_NM], [])
  3605. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3606. # --------------------------------
  3607. # how to determine the name of the shared library
  3608. # associated with a specific link library.
  3609. # -- PORTME fill in with the dynamic library characteristics
  3610. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3611. [m4_require([_LT_DECL_EGREP])
  3612. m4_require([_LT_DECL_OBJDUMP])
  3613. m4_require([_LT_DECL_DLLTOOL])
  3614. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3615. lt_cv_sharedlib_from_linklib_cmd,
  3616. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3617. case $host_os in
  3618. cygwin* | mingw* | pw32* | cegcc*)
  3619. # two different shell functions defined in ltmain.sh
  3620. # decide which to use based on capabilities of $DLLTOOL
  3621. case `$DLLTOOL --help 2>&1` in
  3622. *--identify-strict*)
  3623. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3624. ;;
  3625. *)
  3626. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3627. ;;
  3628. esac
  3629. ;;
  3630. *)
  3631. # fallback: assume linklib IS sharedlib
  3632. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3633. ;;
  3634. esac
  3635. ])
  3636. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3637. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3638. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3639. [Command to associate shared and link libraries])
  3640. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3641. # _LT_PATH_MANIFEST_TOOL
  3642. # ----------------------
  3643. # locate the manifest tool
  3644. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3645. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3646. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3647. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3648. [lt_cv_path_mainfest_tool=no
  3649. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3650. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3651. cat conftest.err >&AS_MESSAGE_LOG_FD
  3652. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3653. lt_cv_path_mainfest_tool=yes
  3654. fi
  3655. rm -f conftest*])
  3656. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3657. MANIFEST_TOOL=:
  3658. fi
  3659. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3660. ])# _LT_PATH_MANIFEST_TOOL
  3661. # LT_LIB_M
  3662. # --------
  3663. # check for math library
  3664. AC_DEFUN([LT_LIB_M],
  3665. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3666. LIBM=
  3667. case $host in
  3668. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3669. # These system don't have libm, or don't need it
  3670. ;;
  3671. *-ncr-sysv4.3*)
  3672. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3673. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3674. ;;
  3675. *)
  3676. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3677. ;;
  3678. esac
  3679. AC_SUBST([LIBM])
  3680. ])# LT_LIB_M
  3681. # Old name:
  3682. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3683. dnl aclocal-1.4 backwards compatibility:
  3684. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3685. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3686. # -------------------------------
  3687. m4_defun([_LT_COMPILER_NO_RTTI],
  3688. [m4_require([_LT_TAG_COMPILER])dnl
  3689. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3690. if test "$GCC" = yes; then
  3691. case $cc_basename in
  3692. nvcc*)
  3693. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3694. *)
  3695. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3696. esac
  3697. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3698. lt_cv_prog_compiler_rtti_exceptions,
  3699. [-fno-rtti -fno-exceptions], [],
  3700. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3701. fi
  3702. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3703. [Compiler flag to turn off builtin functions])
  3704. ])# _LT_COMPILER_NO_RTTI
  3705. # _LT_CMD_GLOBAL_SYMBOLS
  3706. # ----------------------
  3707. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3708. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3709. AC_REQUIRE([AC_PROG_CC])dnl
  3710. AC_REQUIRE([AC_PROG_AWK])dnl
  3711. AC_REQUIRE([LT_PATH_NM])dnl
  3712. AC_REQUIRE([LT_PATH_LD])dnl
  3713. m4_require([_LT_DECL_SED])dnl
  3714. m4_require([_LT_DECL_EGREP])dnl
  3715. m4_require([_LT_TAG_COMPILER])dnl
  3716. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3717. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3718. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3719. [
  3720. # These are sane defaults that work on at least a few old systems.
  3721. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3722. # Character class describing NM global symbol codes.
  3723. symcode='[[BCDEGRST]]'
  3724. # Regexp to match symbols that can be accessed directly from C.
  3725. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3726. # Define system-specific variables.
  3727. case $host_os in
  3728. aix*)
  3729. symcode='[[BCDT]]'
  3730. ;;
  3731. cygwin* | mingw* | pw32* | cegcc*)
  3732. symcode='[[ABCDGISTW]]'
  3733. ;;
  3734. hpux*)
  3735. if test "$host_cpu" = ia64; then
  3736. symcode='[[ABCDEGRST]]'
  3737. fi
  3738. ;;
  3739. irix* | nonstopux*)
  3740. symcode='[[BCDEGRST]]'
  3741. ;;
  3742. osf*)
  3743. symcode='[[BCDEGQRST]]'
  3744. ;;
  3745. solaris*)
  3746. symcode='[[BDRT]]'
  3747. ;;
  3748. sco3.2v5*)
  3749. symcode='[[DT]]'
  3750. ;;
  3751. sysv4.2uw2*)
  3752. symcode='[[DT]]'
  3753. ;;
  3754. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3755. symcode='[[ABDT]]'
  3756. ;;
  3757. sysv4)
  3758. symcode='[[DFNSTU]]'
  3759. ;;
  3760. esac
  3761. # If we're using GNU nm, then use its standard symbol codes.
  3762. case `$NM -V 2>&1` in
  3763. *GNU* | *'with BFD'*)
  3764. symcode='[[ABCDGIRSTW]]' ;;
  3765. esac
  3766. # Transform an extracted symbol line into a proper C declaration.
  3767. # Some systems (esp. on ia64) link data and code symbols differently,
  3768. # so use this general approach.
  3769. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3770. # Transform an extracted symbol line into symbol name and symbol address
  3771. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3772. 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'"
  3773. # Handle CRLF in mingw tool chain
  3774. opt_cr=
  3775. case $build_os in
  3776. mingw*)
  3777. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3778. ;;
  3779. esac
  3780. # Try without a prefix underscore, then with it.
  3781. for ac_symprfx in "" "_"; do
  3782. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3783. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3784. # Write the raw and C identifiers.
  3785. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3786. # Fake it for dumpbin and say T for any non-static function
  3787. # and D for any global variable.
  3788. # Also find C++ and __fastcall symbols from MSVC++,
  3789. # which start with @ or ?.
  3790. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3791. " {last_section=section; section=\$ 3};"\
  3792. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3793. " \$ 0!~/External *\|/{next};"\
  3794. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3795. " {if(hide[section]) next};"\
  3796. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3797. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3798. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3799. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3800. " ' prfx=^$ac_symprfx]"
  3801. else
  3802. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3803. fi
  3804. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3805. # Check to see that the pipe works correctly.
  3806. pipe_works=no
  3807. rm -f conftest*
  3808. cat > conftest.$ac_ext <<_LT_EOF
  3809. #ifdef __cplusplus
  3810. extern "C" {
  3811. #endif
  3812. char nm_test_var;
  3813. void nm_test_func(void);
  3814. void nm_test_func(void){}
  3815. #ifdef __cplusplus
  3816. }
  3817. #endif
  3818. int main(){nm_test_var='a';nm_test_func();return(0);}
  3819. _LT_EOF
  3820. if AC_TRY_EVAL(ac_compile); then
  3821. # Now try to grab the symbols.
  3822. nlist=conftest.nm
  3823. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3824. # Try sorting and uniquifying the output.
  3825. if sort "$nlist" | uniq > "$nlist"T; then
  3826. mv -f "$nlist"T "$nlist"
  3827. else
  3828. rm -f "$nlist"T
  3829. fi
  3830. # Make sure that we snagged all the symbols we need.
  3831. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3832. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3833. cat <<_LT_EOF > conftest.$ac_ext
  3834. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3835. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3836. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3837. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3838. # define LT@&t@_DLSYM_CONST
  3839. #elif defined(__osf__)
  3840. /* This system does not cope well with relocations in const data. */
  3841. # define LT@&t@_DLSYM_CONST
  3842. #else
  3843. # define LT@&t@_DLSYM_CONST const
  3844. #endif
  3845. #ifdef __cplusplus
  3846. extern "C" {
  3847. #endif
  3848. _LT_EOF
  3849. # Now generate the symbol file.
  3850. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3851. cat <<_LT_EOF >> conftest.$ac_ext
  3852. /* The mapping between symbol names and symbols. */
  3853. LT@&t@_DLSYM_CONST struct {
  3854. const char *name;
  3855. void *address;
  3856. }
  3857. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3858. {
  3859. { "@PROGRAM@", (void *) 0 },
  3860. _LT_EOF
  3861. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3862. cat <<\_LT_EOF >> conftest.$ac_ext
  3863. {0, (void *) 0}
  3864. };
  3865. /* This works around a problem in FreeBSD linker */
  3866. #ifdef FREEBSD_WORKAROUND
  3867. static const void *lt_preloaded_setup() {
  3868. return lt__PROGRAM__LTX_preloaded_symbols;
  3869. }
  3870. #endif
  3871. #ifdef __cplusplus
  3872. }
  3873. #endif
  3874. _LT_EOF
  3875. # Now try linking the two files.
  3876. mv conftest.$ac_objext conftstm.$ac_objext
  3877. lt_globsym_save_LIBS=$LIBS
  3878. lt_globsym_save_CFLAGS=$CFLAGS
  3879. LIBS="conftstm.$ac_objext"
  3880. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3881. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3882. pipe_works=yes
  3883. fi
  3884. LIBS=$lt_globsym_save_LIBS
  3885. CFLAGS=$lt_globsym_save_CFLAGS
  3886. else
  3887. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3888. fi
  3889. else
  3890. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3891. fi
  3892. else
  3893. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3894. fi
  3895. else
  3896. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3897. cat conftest.$ac_ext >&5
  3898. fi
  3899. rm -rf conftest* conftst*
  3900. # Do not use the global_symbol_pipe unless it works.
  3901. if test "$pipe_works" = yes; then
  3902. break
  3903. else
  3904. lt_cv_sys_global_symbol_pipe=
  3905. fi
  3906. done
  3907. ])
  3908. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3909. lt_cv_sys_global_symbol_to_cdecl=
  3910. fi
  3911. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3912. AC_MSG_RESULT(failed)
  3913. else
  3914. AC_MSG_RESULT(ok)
  3915. fi
  3916. # Response file support.
  3917. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3918. nm_file_list_spec='@'
  3919. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3920. nm_file_list_spec='@'
  3921. fi
  3922. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3923. [Take the output of nm and produce a listing of raw symbols and C names])
  3924. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3925. [Transform the output of nm in a proper C declaration])
  3926. _LT_DECL([global_symbol_to_c_name_address],
  3927. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3928. [Transform the output of nm in a C name address pair])
  3929. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3930. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3931. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3932. _LT_DECL([], [nm_file_list_spec], [1],
  3933. [Specify filename containing input files for $NM])
  3934. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3935. # _LT_COMPILER_PIC([TAGNAME])
  3936. # ---------------------------
  3937. m4_defun([_LT_COMPILER_PIC],
  3938. [m4_require([_LT_TAG_COMPILER])dnl
  3939. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3940. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3941. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3942. m4_if([$1], [CXX], [
  3943. # C++ specific cases for pic, static, wl, etc.
  3944. if test "$GXX" = yes; then
  3945. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3946. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3947. case $host_os in
  3948. aix*)
  3949. # All AIX code is PIC.
  3950. if test "$host_cpu" = ia64; then
  3951. # AIX 5 now supports IA64 processor
  3952. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3953. fi
  3954. ;;
  3955. amigaos*)
  3956. case $host_cpu in
  3957. powerpc)
  3958. # see comment about AmigaOS4 .so support
  3959. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3960. ;;
  3961. m68k)
  3962. # FIXME: we need at least 68020 code to build shared libraries, but
  3963. # adding the `-m68020' flag to GCC prevents building anything better,
  3964. # like `-m68040'.
  3965. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3966. ;;
  3967. esac
  3968. ;;
  3969. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3970. # PIC is the default for these OSes.
  3971. ;;
  3972. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3973. # This hack is so that the source file can tell whether it is being
  3974. # built for inclusion in a dll (and should export symbols for example).
  3975. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3976. # (--disable-auto-import) libraries
  3977. m4_if([$1], [GCJ], [],
  3978. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3979. ;;
  3980. darwin* | rhapsody*)
  3981. # PIC is the default on this platform
  3982. # Common symbols not allowed in MH_DYLIB files
  3983. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3984. ;;
  3985. *djgpp*)
  3986. # DJGPP does not support shared libraries at all
  3987. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3988. ;;
  3989. haiku*)
  3990. # PIC is the default for Haiku.
  3991. # The "-static" flag exists, but is broken.
  3992. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3993. ;;
  3994. interix[[3-9]]*)
  3995. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3996. # Instead, we relocate shared libraries at runtime.
  3997. ;;
  3998. sysv4*MP*)
  3999. if test -d /usr/nec; then
  4000. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4001. fi
  4002. ;;
  4003. hpux*)
  4004. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4005. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4006. # sets the default TLS model and affects inlining.
  4007. case $host_cpu in
  4008. hppa*64*)
  4009. ;;
  4010. *)
  4011. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4012. ;;
  4013. esac
  4014. ;;
  4015. *qnx* | *nto*)
  4016. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4017. # it will coredump.
  4018. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4019. ;;
  4020. *)
  4021. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4022. ;;
  4023. esac
  4024. else
  4025. case $host_os in
  4026. aix[[4-9]]*)
  4027. # All AIX code is PIC.
  4028. if test "$host_cpu" = ia64; then
  4029. # AIX 5 now supports IA64 processor
  4030. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4031. else
  4032. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4033. fi
  4034. ;;
  4035. chorus*)
  4036. case $cc_basename in
  4037. cxch68*)
  4038. # Green Hills C++ Compiler
  4039. # _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"
  4040. ;;
  4041. esac
  4042. ;;
  4043. mingw* | cygwin* | os2* | pw32* | cegcc*)
  4044. # This hack is so that the source file can tell whether it is being
  4045. # built for inclusion in a dll (and should export symbols for example).
  4046. m4_if([$1], [GCJ], [],
  4047. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4048. ;;
  4049. dgux*)
  4050. case $cc_basename in
  4051. ec++*)
  4052. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4053. ;;
  4054. ghcx*)
  4055. # Green Hills C++ Compiler
  4056. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4057. ;;
  4058. *)
  4059. ;;
  4060. esac
  4061. ;;
  4062. freebsd* | dragonfly*)
  4063. # FreeBSD uses GNU C++
  4064. ;;
  4065. hpux9* | hpux10* | hpux11*)
  4066. case $cc_basename in
  4067. CC*)
  4068. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4069. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4070. if test "$host_cpu" != ia64; then
  4071. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4072. fi
  4073. ;;
  4074. aCC*)
  4075. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4076. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4077. case $host_cpu in
  4078. hppa*64*|ia64*)
  4079. # +Z the default
  4080. ;;
  4081. *)
  4082. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4083. ;;
  4084. esac
  4085. ;;
  4086. *)
  4087. ;;
  4088. esac
  4089. ;;
  4090. interix*)
  4091. # This is c89, which is MS Visual C++ (no shared libs)
  4092. # Anyone wants to do a port?
  4093. ;;
  4094. irix5* | irix6* | nonstopux*)
  4095. case $cc_basename in
  4096. CC*)
  4097. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4098. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4099. # CC pic flag -KPIC is the default.
  4100. ;;
  4101. *)
  4102. ;;
  4103. esac
  4104. ;;
  4105. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4106. case $cc_basename in
  4107. KCC*)
  4108. # KAI C++ Compiler
  4109. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4110. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4111. ;;
  4112. ecpc* )
  4113. # old Intel C++ for x86_64 which still supported -KPIC.
  4114. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4115. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4116. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4117. ;;
  4118. icpc* )
  4119. # Intel C++, used to be incompatible with GCC.
  4120. # ICC 10 doesn't accept -KPIC any more.
  4121. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4122. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4123. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4124. ;;
  4125. pgCC* | pgcpp*)
  4126. # Portland Group C++ compiler
  4127. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4128. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4129. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4130. ;;
  4131. cxx*)
  4132. # Compaq C++
  4133. # Make sure the PIC flag is empty. It appears that all Alpha
  4134. # Linux and Compaq Tru64 Unix objects are PIC.
  4135. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4136. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4137. ;;
  4138. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  4139. # IBM XL 8.0, 9.0 on PPC and BlueGene
  4140. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4141. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4142. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4143. ;;
  4144. *)
  4145. case `$CC -V 2>&1 | sed 5q` in
  4146. *Sun\ C*)
  4147. # Sun C++ 5.9
  4148. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4149. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4150. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4151. ;;
  4152. esac
  4153. ;;
  4154. esac
  4155. ;;
  4156. lynxos*)
  4157. ;;
  4158. m88k*)
  4159. ;;
  4160. mvs*)
  4161. case $cc_basename in
  4162. cxx*)
  4163. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4164. ;;
  4165. *)
  4166. ;;
  4167. esac
  4168. ;;
  4169. netbsd* | netbsdelf*-gnu)
  4170. ;;
  4171. *qnx* | *nto*)
  4172. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4173. # it will coredump.
  4174. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4175. ;;
  4176. osf3* | osf4* | osf5*)
  4177. case $cc_basename in
  4178. KCC*)
  4179. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4180. ;;
  4181. RCC*)
  4182. # Rational C++ 2.4.1
  4183. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4184. ;;
  4185. cxx*)
  4186. # Digital/Compaq C++
  4187. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4188. # Make sure the PIC flag is empty. It appears that all Alpha
  4189. # Linux and Compaq Tru64 Unix objects are PIC.
  4190. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4191. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4192. ;;
  4193. *)
  4194. ;;
  4195. esac
  4196. ;;
  4197. psos*)
  4198. ;;
  4199. solaris*)
  4200. case $cc_basename in
  4201. CC* | sunCC*)
  4202. # Sun C++ 4.2, 5.x and Centerline C++
  4203. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4204. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4205. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4206. ;;
  4207. gcx*)
  4208. # Green Hills C++ Compiler
  4209. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4210. ;;
  4211. *)
  4212. ;;
  4213. esac
  4214. ;;
  4215. sunos4*)
  4216. case $cc_basename in
  4217. CC*)
  4218. # Sun C++ 4.x
  4219. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4220. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4221. ;;
  4222. lcc*)
  4223. # Lucid
  4224. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4225. ;;
  4226. *)
  4227. ;;
  4228. esac
  4229. ;;
  4230. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4231. case $cc_basename in
  4232. CC*)
  4233. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4234. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4235. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4236. ;;
  4237. esac
  4238. ;;
  4239. tandem*)
  4240. case $cc_basename in
  4241. NCC*)
  4242. # NonStop-UX NCC 3.20
  4243. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4244. ;;
  4245. *)
  4246. ;;
  4247. esac
  4248. ;;
  4249. vxworks*)
  4250. ;;
  4251. *)
  4252. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4253. ;;
  4254. esac
  4255. fi
  4256. ],
  4257. [
  4258. if test "$GCC" = yes; then
  4259. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4260. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4261. case $host_os in
  4262. aix*)
  4263. # All AIX code is PIC.
  4264. if test "$host_cpu" = ia64; then
  4265. # AIX 5 now supports IA64 processor
  4266. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4267. fi
  4268. ;;
  4269. amigaos*)
  4270. case $host_cpu in
  4271. powerpc)
  4272. # see comment about AmigaOS4 .so support
  4273. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4274. ;;
  4275. m68k)
  4276. # FIXME: we need at least 68020 code to build shared libraries, but
  4277. # adding the `-m68020' flag to GCC prevents building anything better,
  4278. # like `-m68040'.
  4279. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4280. ;;
  4281. esac
  4282. ;;
  4283. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4284. # PIC is the default for these OSes.
  4285. ;;
  4286. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4287. # This hack is so that the source file can tell whether it is being
  4288. # built for inclusion in a dll (and should export symbols for example).
  4289. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4290. # (--disable-auto-import) libraries
  4291. m4_if([$1], [GCJ], [],
  4292. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4293. ;;
  4294. darwin* | rhapsody*)
  4295. # PIC is the default on this platform
  4296. # Common symbols not allowed in MH_DYLIB files
  4297. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4298. ;;
  4299. haiku*)
  4300. # PIC is the default for Haiku.
  4301. # The "-static" flag exists, but is broken.
  4302. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  4303. ;;
  4304. hpux*)
  4305. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4306. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4307. # sets the default TLS model and affects inlining.
  4308. case $host_cpu in
  4309. hppa*64*)
  4310. # +Z the default
  4311. ;;
  4312. *)
  4313. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4314. ;;
  4315. esac
  4316. ;;
  4317. interix[[3-9]]*)
  4318. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4319. # Instead, we relocate shared libraries at runtime.
  4320. ;;
  4321. msdosdjgpp*)
  4322. # Just because we use GCC doesn't mean we suddenly get shared libraries
  4323. # on systems that don't support them.
  4324. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4325. enable_shared=no
  4326. ;;
  4327. *nto* | *qnx*)
  4328. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4329. # it will coredump.
  4330. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4331. ;;
  4332. sysv4*MP*)
  4333. if test -d /usr/nec; then
  4334. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4335. fi
  4336. ;;
  4337. *)
  4338. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4339. ;;
  4340. esac
  4341. case $cc_basename in
  4342. nvcc*) # Cuda Compiler Driver 2.2
  4343. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  4344. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
  4345. ;;
  4346. esac
  4347. else
  4348. # PORTME Check for flag to pass linker flags through the system compiler.
  4349. case $host_os in
  4350. aix*)
  4351. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4352. if test "$host_cpu" = ia64; then
  4353. # AIX 5 now supports IA64 processor
  4354. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4355. else
  4356. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4357. fi
  4358. ;;
  4359. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4360. # This hack is so that the source file can tell whether it is being
  4361. # built for inclusion in a dll (and should export symbols for example).
  4362. m4_if([$1], [GCJ], [],
  4363. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4364. ;;
  4365. hpux9* | hpux10* | hpux11*)
  4366. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4367. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4368. # not for PA HP-UX.
  4369. case $host_cpu in
  4370. hppa*64*|ia64*)
  4371. # +Z the default
  4372. ;;
  4373. *)
  4374. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4375. ;;
  4376. esac
  4377. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4378. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4379. ;;
  4380. irix5* | irix6* | nonstopux*)
  4381. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4382. # PIC (with -KPIC) is the default.
  4383. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4384. ;;
  4385. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4386. case $cc_basename in
  4387. # old Intel for x86_64 which still supported -KPIC.
  4388. ecc*)
  4389. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4390. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4391. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4392. ;;
  4393. # icc used to be incompatible with GCC.
  4394. # ICC 10 doesn't accept -KPIC any more.
  4395. icc* | ifort*)
  4396. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4397. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4398. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4399. ;;
  4400. # Lahey Fortran 8.1.
  4401. lf95*)
  4402. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4403. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  4404. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  4405. ;;
  4406. nagfor*)
  4407. # NAG Fortran compiler
  4408. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4409. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4410. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4411. ;;
  4412. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  4413. # Portland Group compilers (*not* the Pentium gcc compiler,
  4414. # which looks to be a dead project)
  4415. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4416. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4417. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4418. ;;
  4419. ccc*)
  4420. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4421. # All Alpha code is PIC.
  4422. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4423. ;;
  4424. xl* | bgxl* | bgf* | mpixl*)
  4425. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  4426. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4427. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4428. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4429. ;;
  4430. *)
  4431. case `$CC -V 2>&1 | sed 5q` in
  4432. *Sun\ F* | *Sun*Fortran*)
  4433. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4434. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4435. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4436. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4437. ;;
  4438. *Sun\ C*)
  4439. # Sun C 5.9
  4440. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4441. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4442. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4443. ;;
  4444. esac
  4445. ;;
  4446. esac
  4447. ;;
  4448. newsos6)
  4449. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4450. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4451. ;;
  4452. *nto* | *qnx*)
  4453. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4454. # it will coredump.
  4455. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4456. ;;
  4457. osf3* | osf4* | osf5*)
  4458. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4459. # All OSF/1 code is PIC.
  4460. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4461. ;;
  4462. rdos*)
  4463. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4464. ;;
  4465. solaris*)
  4466. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4467. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4468. case $cc_basename in
  4469. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4470. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4471. *)
  4472. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4473. esac
  4474. ;;
  4475. sunos4*)
  4476. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4477. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4478. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4479. ;;
  4480. sysv4 | sysv4.2uw2* | sysv4.3*)
  4481. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4482. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4483. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4484. ;;
  4485. sysv4*MP*)
  4486. if test -d /usr/nec ;then
  4487. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4488. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4489. fi
  4490. ;;
  4491. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4492. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4493. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4494. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4495. ;;
  4496. unicos*)
  4497. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4498. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4499. ;;
  4500. uts4*)
  4501. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4502. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4503. ;;
  4504. *)
  4505. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4506. ;;
  4507. esac
  4508. fi
  4509. ])
  4510. case $host_os in
  4511. # For platforms which do not support PIC, -DPIC is meaningless:
  4512. *djgpp*)
  4513. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4514. ;;
  4515. *)
  4516. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4517. ;;
  4518. esac
  4519. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4520. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4521. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4522. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4523. #
  4524. # Check to make sure the PIC flag actually works.
  4525. #
  4526. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4527. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4528. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4529. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4530. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4531. "" | " "*) ;;
  4532. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4533. esac],
  4534. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4535. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4536. fi
  4537. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4538. [Additional compiler flags for building library objects])
  4539. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4540. [How to pass a linker flag through the compiler])
  4541. #
  4542. # Check to make sure the static flag actually works.
  4543. #
  4544. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4545. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4546. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4547. $lt_tmp_static_flag,
  4548. [],
  4549. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4550. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4551. [Compiler flag to prevent dynamic linking])
  4552. ])# _LT_COMPILER_PIC
  4553. # _LT_LINKER_SHLIBS([TAGNAME])
  4554. # ----------------------------
  4555. # See if the linker supports building shared libraries.
  4556. m4_defun([_LT_LINKER_SHLIBS],
  4557. [AC_REQUIRE([LT_PATH_LD])dnl
  4558. AC_REQUIRE([LT_PATH_NM])dnl
  4559. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4560. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4561. m4_require([_LT_DECL_EGREP])dnl
  4562. m4_require([_LT_DECL_SED])dnl
  4563. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4564. m4_require([_LT_TAG_COMPILER])dnl
  4565. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4566. m4_if([$1], [CXX], [
  4567. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4568. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4569. case $host_os in
  4570. aix[[4-9]]*)
  4571. # If we're using GNU nm, then we don't want the "-C" option.
  4572. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4573. # Also, AIX nm treats weak defined symbols like other global defined
  4574. # symbols, whereas GNU nm marks them as "W".
  4575. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4576. _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'
  4577. else
  4578. _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'
  4579. fi
  4580. ;;
  4581. pw32*)
  4582. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4583. ;;
  4584. cygwin* | mingw* | cegcc*)
  4585. case $cc_basename in
  4586. cl*) ;;
  4587. *)
  4588. _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'
  4589. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4590. ;;
  4591. esac
  4592. ;;
  4593. linux* | k*bsd*-gnu | gnu*)
  4594. _LT_TAGVAR(link_all_deplibs, $1)=no
  4595. ;;
  4596. *)
  4597. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4598. ;;
  4599. esac
  4600. ], [
  4601. runpath_var=
  4602. _LT_TAGVAR(allow_undefined_flag, $1)=
  4603. _LT_TAGVAR(always_export_symbols, $1)=no
  4604. _LT_TAGVAR(archive_cmds, $1)=
  4605. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4606. _LT_TAGVAR(compiler_needs_object, $1)=no
  4607. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4608. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4609. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4610. _LT_TAGVAR(hardcode_automatic, $1)=no
  4611. _LT_TAGVAR(hardcode_direct, $1)=no
  4612. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4613. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4614. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4615. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4616. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4617. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4618. _LT_TAGVAR(inherit_rpath, $1)=no
  4619. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4620. _LT_TAGVAR(module_cmds, $1)=
  4621. _LT_TAGVAR(module_expsym_cmds, $1)=
  4622. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4623. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4624. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4625. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4626. # include_expsyms should be a list of space-separated symbols to be *always*
  4627. # included in the symbol list
  4628. _LT_TAGVAR(include_expsyms, $1)=
  4629. # exclude_expsyms can be an extended regexp of symbols to exclude
  4630. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4631. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4632. # as well as any symbol that contains `d'.
  4633. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4634. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4635. # platforms (ab)use it in PIC code, but their linkers get confused if
  4636. # the symbol is explicitly referenced. Since portable code cannot
  4637. # rely on this symbol name, it's probably fine to never include it in
  4638. # preloaded symbol tables.
  4639. # Exclude shared library initialization/finalization symbols.
  4640. dnl Note also adjust exclude_expsyms for C++ above.
  4641. extract_expsyms_cmds=
  4642. case $host_os in
  4643. cygwin* | mingw* | pw32* | cegcc*)
  4644. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4645. # When not using gcc, we currently assume that we are using
  4646. # Microsoft Visual C++.
  4647. if test "$GCC" != yes; then
  4648. with_gnu_ld=no
  4649. fi
  4650. ;;
  4651. interix*)
  4652. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4653. with_gnu_ld=yes
  4654. ;;
  4655. openbsd*)
  4656. with_gnu_ld=no
  4657. ;;
  4658. linux* | k*bsd*-gnu | gnu*)
  4659. _LT_TAGVAR(link_all_deplibs, $1)=no
  4660. ;;
  4661. esac
  4662. _LT_TAGVAR(ld_shlibs, $1)=yes
  4663. # On some targets, GNU ld is compatible enough with the native linker
  4664. # that we're better off using the native interface for both.
  4665. lt_use_gnu_ld_interface=no
  4666. if test "$with_gnu_ld" = yes; then
  4667. case $host_os in
  4668. aix*)
  4669. # The AIX port of GNU ld has always aspired to compatibility
  4670. # with the native linker. However, as the warning in the GNU ld
  4671. # block says, versions before 2.19.5* couldn't really create working
  4672. # shared libraries, regardless of the interface used.
  4673. case `$LD -v 2>&1` in
  4674. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4675. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4676. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4677. *)
  4678. lt_use_gnu_ld_interface=yes
  4679. ;;
  4680. esac
  4681. ;;
  4682. *)
  4683. lt_use_gnu_ld_interface=yes
  4684. ;;
  4685. esac
  4686. fi
  4687. if test "$lt_use_gnu_ld_interface" = yes; then
  4688. # If archive_cmds runs LD, not CC, wlarc should be empty
  4689. wlarc='${wl}'
  4690. # Set some defaults for GNU ld with shared library support. These
  4691. # are reset later if shared libraries are not supported. Putting them
  4692. # here allows them to be overridden if necessary.
  4693. runpath_var=LD_RUN_PATH
  4694. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4695. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4696. # ancient GNU ld didn't support --whole-archive et. al.
  4697. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4698. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4699. else
  4700. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4701. fi
  4702. supports_anon_versioning=no
  4703. case `$LD -v 2>&1` in
  4704. *GNU\ gold*) supports_anon_versioning=yes ;;
  4705. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4706. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4707. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4708. *\ 2.11.*) ;; # other 2.11 versions
  4709. *) supports_anon_versioning=yes ;;
  4710. esac
  4711. # See if GNU ld supports shared libraries.
  4712. case $host_os in
  4713. aix[[3-9]]*)
  4714. # On AIX/PPC, the GNU linker is very broken
  4715. if test "$host_cpu" != ia64; then
  4716. _LT_TAGVAR(ld_shlibs, $1)=no
  4717. cat <<_LT_EOF 1>&2
  4718. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4719. *** to be unable to reliably create shared libraries on AIX.
  4720. *** Therefore, libtool is disabling shared libraries support. If you
  4721. *** really care for shared libraries, you may want to install binutils
  4722. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4723. *** You will then need to restart the configuration process.
  4724. _LT_EOF
  4725. fi
  4726. ;;
  4727. amigaos*)
  4728. case $host_cpu in
  4729. powerpc)
  4730. # see comment about AmigaOS4 .so support
  4731. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4732. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4733. ;;
  4734. m68k)
  4735. _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)'
  4736. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4737. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4738. ;;
  4739. esac
  4740. ;;
  4741. beos*)
  4742. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4743. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4744. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4745. # support --undefined. This deserves some investigation. FIXME
  4746. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4747. else
  4748. _LT_TAGVAR(ld_shlibs, $1)=no
  4749. fi
  4750. ;;
  4751. cygwin* | mingw* | pw32* | cegcc*)
  4752. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4753. # as there is no search path for DLLs.
  4754. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4755. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4756. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4757. _LT_TAGVAR(always_export_symbols, $1)=no
  4758. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4759. _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'
  4760. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4761. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4762. _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'
  4763. # If the export-symbols file already is a .def file (1st line
  4764. # is EXPORTS), use it as is; otherwise, prepend...
  4765. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4766. cp $export_symbols $output_objdir/$soname.def;
  4767. else
  4768. echo EXPORTS > $output_objdir/$soname.def;
  4769. cat $export_symbols >> $output_objdir/$soname.def;
  4770. fi~
  4771. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4772. else
  4773. _LT_TAGVAR(ld_shlibs, $1)=no
  4774. fi
  4775. ;;
  4776. haiku*)
  4777. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4778. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4779. ;;
  4780. interix[[3-9]]*)
  4781. _LT_TAGVAR(hardcode_direct, $1)=no
  4782. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4783. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4784. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4785. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4786. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4787. # default) and relocated if they conflict, which is a slow very memory
  4788. # consuming and fragmenting process. To avoid this, we pick a random,
  4789. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4790. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4791. _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'
  4792. _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'
  4793. ;;
  4794. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4795. tmp_diet=no
  4796. if test "$host_os" = linux-dietlibc; then
  4797. case $cc_basename in
  4798. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4799. esac
  4800. fi
  4801. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4802. && test "$tmp_diet" = no
  4803. then
  4804. tmp_addflag=' $pic_flag'
  4805. tmp_sharedflag='-shared'
  4806. case $cc_basename,$host_cpu in
  4807. pgcc*) # Portland Group C compiler
  4808. _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'
  4809. tmp_addflag=' $pic_flag'
  4810. ;;
  4811. pgf77* | pgf90* | pgf95* | pgfortran*)
  4812. # Portland Group f77 and f90 compilers
  4813. _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'
  4814. tmp_addflag=' $pic_flag -Mnomain' ;;
  4815. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4816. tmp_addflag=' -i_dynamic' ;;
  4817. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4818. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4819. ifc* | ifort*) # Intel Fortran compiler
  4820. tmp_addflag=' -nofor_main' ;;
  4821. lf95*) # Lahey Fortran 8.1
  4822. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4823. tmp_sharedflag='--shared' ;;
  4824. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4825. tmp_sharedflag='-qmkshrobj'
  4826. tmp_addflag= ;;
  4827. nvcc*) # Cuda Compiler Driver 2.2
  4828. _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'
  4829. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4830. ;;
  4831. esac
  4832. case `$CC -V 2>&1 | sed 5q` in
  4833. *Sun\ C*) # Sun C 5.9
  4834. _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'
  4835. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4836. tmp_sharedflag='-G' ;;
  4837. *Sun\ F*) # Sun Fortran 8.3
  4838. tmp_sharedflag='-G' ;;
  4839. esac
  4840. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4841. if test "x$supports_anon_versioning" = xyes; then
  4842. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4843. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4844. echo "local: *; };" >> $output_objdir/$libname.ver~
  4845. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4846. fi
  4847. case $cc_basename in
  4848. xlf* | bgf* | bgxlf* | mpixlf*)
  4849. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4850. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4851. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4852. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  4853. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4854. if test "x$supports_anon_versioning" = xyes; then
  4855. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4856. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4857. echo "local: *; };" >> $output_objdir/$libname.ver~
  4858. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4859. fi
  4860. ;;
  4861. esac
  4862. else
  4863. _LT_TAGVAR(ld_shlibs, $1)=no
  4864. fi
  4865. ;;
  4866. netbsd* | netbsdelf*-gnu)
  4867. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4868. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4869. wlarc=
  4870. else
  4871. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4872. _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'
  4873. fi
  4874. ;;
  4875. solaris*)
  4876. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4877. _LT_TAGVAR(ld_shlibs, $1)=no
  4878. cat <<_LT_EOF 1>&2
  4879. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4880. *** create shared libraries on Solaris systems. Therefore, libtool
  4881. *** is disabling shared libraries support. We urge you to upgrade GNU
  4882. *** binutils to release 2.9.1 or newer. Another option is to modify
  4883. *** your PATH or compiler configuration so that the native linker is
  4884. *** used, and then restart.
  4885. _LT_EOF
  4886. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4887. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4888. _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'
  4889. else
  4890. _LT_TAGVAR(ld_shlibs, $1)=no
  4891. fi
  4892. ;;
  4893. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4894. case `$LD -v 2>&1` in
  4895. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4896. _LT_TAGVAR(ld_shlibs, $1)=no
  4897. cat <<_LT_EOF 1>&2
  4898. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4899. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4900. *** is disabling shared libraries support. We urge you to upgrade GNU
  4901. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4902. *** your PATH or compiler configuration so that the native linker is
  4903. *** used, and then restart.
  4904. _LT_EOF
  4905. ;;
  4906. *)
  4907. # For security reasons, it is highly recommended that you always
  4908. # use absolute paths for naming shared libraries, and exclude the
  4909. # DT_RUNPATH tag from executables and libraries. But doing so
  4910. # requires that you compile everything twice, which is a pain.
  4911. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4912. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4913. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4914. _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'
  4915. else
  4916. _LT_TAGVAR(ld_shlibs, $1)=no
  4917. fi
  4918. ;;
  4919. esac
  4920. ;;
  4921. sunos4*)
  4922. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4923. wlarc=
  4924. _LT_TAGVAR(hardcode_direct, $1)=yes
  4925. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4926. ;;
  4927. *)
  4928. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4929. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4930. _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'
  4931. else
  4932. _LT_TAGVAR(ld_shlibs, $1)=no
  4933. fi
  4934. ;;
  4935. esac
  4936. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4937. runpath_var=
  4938. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4939. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4940. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4941. fi
  4942. else
  4943. # PORTME fill in a description of your system's linker (not GNU ld)
  4944. case $host_os in
  4945. aix3*)
  4946. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4947. _LT_TAGVAR(always_export_symbols, $1)=yes
  4948. _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'
  4949. # Note: this linker hardcodes the directories in LIBPATH if there
  4950. # are no directories specified by -L.
  4951. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4952. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4953. # Neither direct hardcoding nor static linking is supported with a
  4954. # broken collect2.
  4955. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4956. fi
  4957. ;;
  4958. aix[[4-9]]*)
  4959. if test "$host_cpu" = ia64; then
  4960. # On IA64, the linker does run time linking by default, so we don't
  4961. # have to do anything special.
  4962. aix_use_runtimelinking=no
  4963. exp_sym_flag='-Bexport'
  4964. no_entry_flag=""
  4965. else
  4966. # If we're using GNU nm, then we don't want the "-C" option.
  4967. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4968. # Also, AIX nm treats weak defined symbols like other global
  4969. # defined symbols, whereas GNU nm marks them as "W".
  4970. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4971. _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'
  4972. else
  4973. _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'
  4974. fi
  4975. aix_use_runtimelinking=no
  4976. # Test if we are trying to use run time linking or normal
  4977. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4978. # need to do runtime linking.
  4979. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4980. for ld_flag in $LDFLAGS; do
  4981. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4982. aix_use_runtimelinking=yes
  4983. break
  4984. fi
  4985. done
  4986. ;;
  4987. esac
  4988. exp_sym_flag='-bexport'
  4989. no_entry_flag='-bnoentry'
  4990. fi
  4991. # When large executables or shared objects are built, AIX ld can
  4992. # have problems creating the table of contents. If linking a library
  4993. # or program results in "error TOC overflow" add -mminimal-toc to
  4994. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4995. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4996. _LT_TAGVAR(archive_cmds, $1)=''
  4997. _LT_TAGVAR(hardcode_direct, $1)=yes
  4998. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4999. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5000. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5001. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5002. if test "$GCC" = yes; then
  5003. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5004. # We only want to do this on AIX 4.2 and lower, the check
  5005. # below for broken collect2 doesn't work under 4.3+
  5006. collect2name=`${CC} -print-prog-name=collect2`
  5007. if test -f "$collect2name" &&
  5008. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5009. then
  5010. # We have reworked collect2
  5011. :
  5012. else
  5013. # We have old collect2
  5014. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5015. # It fails to find uninstalled libraries when the uninstalled
  5016. # path is not listed in the libpath. Setting hardcode_minus_L
  5017. # to unsupported forces relinking
  5018. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5019. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5020. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5021. fi
  5022. ;;
  5023. esac
  5024. shared_flag='-shared'
  5025. if test "$aix_use_runtimelinking" = yes; then
  5026. shared_flag="$shared_flag "'${wl}-G'
  5027. fi
  5028. _LT_TAGVAR(link_all_deplibs, $1)=no
  5029. else
  5030. # not using gcc
  5031. if test "$host_cpu" = ia64; then
  5032. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5033. # chokes on -Wl,-G. The following line is correct:
  5034. shared_flag='-G'
  5035. else
  5036. if test "$aix_use_runtimelinking" = yes; then
  5037. shared_flag='${wl}-G'
  5038. else
  5039. shared_flag='${wl}-bM:SRE'
  5040. fi
  5041. fi
  5042. fi
  5043. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5044. # It seems that -bexpall does not export symbols beginning with
  5045. # underscore (_), so it is better to generate a list of symbols to export.
  5046. _LT_TAGVAR(always_export_symbols, $1)=yes
  5047. if test "$aix_use_runtimelinking" = yes; then
  5048. # Warning - without using the other runtime loading flags (-brtl),
  5049. # -berok will link without error, but may produce a broken library.
  5050. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5051. # Determine the default libpath from the value encoded in an
  5052. # empty executable.
  5053. _LT_SYS_MODULE_PATH_AIX([$1])
  5054. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5055. _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"
  5056. else
  5057. if test "$host_cpu" = ia64; then
  5058. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5059. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5060. _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"
  5061. else
  5062. # Determine the default libpath from the value encoded in an
  5063. # empty executable.
  5064. _LT_SYS_MODULE_PATH_AIX([$1])
  5065. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5066. # Warning - without using the other run time loading flags,
  5067. # -berok will link without error, but may produce a broken library.
  5068. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5069. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5070. if test "$with_gnu_ld" = yes; then
  5071. # We only use this code for GNU lds that support --whole-archive.
  5072. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5073. else
  5074. # Exported symbols can be pulled into shared objects from archives
  5075. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5076. fi
  5077. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5078. # This is similar to how AIX traditionally builds its shared libraries.
  5079. _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'
  5080. fi
  5081. fi
  5082. ;;
  5083. amigaos*)
  5084. case $host_cpu in
  5085. powerpc)
  5086. # see comment about AmigaOS4 .so support
  5087. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5088. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5089. ;;
  5090. m68k)
  5091. _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)'
  5092. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5093. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5094. ;;
  5095. esac
  5096. ;;
  5097. bsdi[[45]]*)
  5098. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5099. ;;
  5100. cygwin* | mingw* | pw32* | cegcc*)
  5101. # When not using gcc, we currently assume that we are using
  5102. # Microsoft Visual C++.
  5103. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5104. # no search path for DLLs.
  5105. case $cc_basename in
  5106. cl*)
  5107. # Native MSVC
  5108. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5109. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5110. _LT_TAGVAR(always_export_symbols, $1)=yes
  5111. _LT_TAGVAR(file_list_spec, $1)='@'
  5112. # Tell ltmain to make .lib files, not .a files.
  5113. libext=lib
  5114. # Tell ltmain to make .dll files, not .so files.
  5115. shrext_cmds=".dll"
  5116. # FIXME: Setting linknames here is a bad hack.
  5117. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5118. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5119. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5120. else
  5121. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5122. fi~
  5123. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5124. linknames='
  5125. # The linker will not automatically build a static lib if we build a DLL.
  5126. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5127. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5128. _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'
  5129. # Don't use ranlib
  5130. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5131. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5132. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5133. case $lt_outputfile in
  5134. *.exe|*.EXE) ;;
  5135. *)
  5136. lt_outputfile="$lt_outputfile.exe"
  5137. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5138. ;;
  5139. esac~
  5140. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5141. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5142. $RM "$lt_outputfile.manifest";
  5143. fi'
  5144. ;;
  5145. *)
  5146. # Assume MSVC wrapper
  5147. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5148. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5149. # Tell ltmain to make .lib files, not .a files.
  5150. libext=lib
  5151. # Tell ltmain to make .dll files, not .so files.
  5152. shrext_cmds=".dll"
  5153. # FIXME: Setting linknames here is a bad hack.
  5154. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  5155. # The linker will automatically build a .lib file if we build a DLL.
  5156. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5157. # FIXME: Should let the user specify the lib program.
  5158. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  5159. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5160. ;;
  5161. esac
  5162. ;;
  5163. darwin* | rhapsody*)
  5164. _LT_DARWIN_LINKER_FEATURES($1)
  5165. ;;
  5166. dgux*)
  5167. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5168. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5169. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5170. ;;
  5171. freebsd1*)
  5172. _LT_TAGVAR(ld_shlibs, $1)=no
  5173. ;;
  5174. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5175. # support. Future versions do this automatically, but an explicit c++rt0.o
  5176. # does not break anything, and helps significantly (at the cost of a little
  5177. # extra space).
  5178. freebsd2.2*)
  5179. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5180. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5181. _LT_TAGVAR(hardcode_direct, $1)=yes
  5182. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5183. ;;
  5184. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5185. freebsd2*)
  5186. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5187. _LT_TAGVAR(hardcode_direct, $1)=yes
  5188. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5189. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5190. ;;
  5191. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5192. freebsd* | dragonfly*)
  5193. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5194. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5195. _LT_TAGVAR(hardcode_direct, $1)=yes
  5196. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5197. ;;
  5198. hpux9*)
  5199. if test "$GCC" = yes; then
  5200. _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'
  5201. else
  5202. _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'
  5203. fi
  5204. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5205. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5206. _LT_TAGVAR(hardcode_direct, $1)=yes
  5207. # hardcode_minus_L: Not really in the search PATH,
  5208. # but as the default location of the library.
  5209. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5210. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5211. ;;
  5212. hpux10*)
  5213. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  5214. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5215. else
  5216. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5217. fi
  5218. if test "$with_gnu_ld" = no; then
  5219. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5220. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5221. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5222. _LT_TAGVAR(hardcode_direct, $1)=yes
  5223. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5224. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5225. # hardcode_minus_L: Not really in the search PATH,
  5226. # but as the default location of the library.
  5227. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5228. fi
  5229. ;;
  5230. hpux11*)
  5231. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  5232. case $host_cpu in
  5233. hppa*64*)
  5234. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5235. ;;
  5236. ia64*)
  5237. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5238. ;;
  5239. *)
  5240. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5241. ;;
  5242. esac
  5243. else
  5244. case $host_cpu in
  5245. hppa*64*)
  5246. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5247. ;;
  5248. ia64*)
  5249. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5250. ;;
  5251. *)
  5252. m4_if($1, [], [
  5253. # Older versions of the 11.00 compiler do not understand -b yet
  5254. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  5255. _LT_LINKER_OPTION([if $CC understands -b],
  5256. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  5257. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  5258. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  5259. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  5260. ;;
  5261. esac
  5262. fi
  5263. if test "$with_gnu_ld" = no; then
  5264. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5265. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5266. case $host_cpu in
  5267. hppa*64*|ia64*)
  5268. _LT_TAGVAR(hardcode_direct, $1)=no
  5269. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5270. ;;
  5271. *)
  5272. _LT_TAGVAR(hardcode_direct, $1)=yes
  5273. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5274. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5275. # hardcode_minus_L: Not really in the search PATH,
  5276. # but as the default location of the library.
  5277. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5278. ;;
  5279. esac
  5280. fi
  5281. ;;
  5282. irix5* | irix6* | nonstopux*)
  5283. if test "$GCC" = yes; then
  5284. _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'
  5285. # Try to use the -exported_symbol ld option, if it does not
  5286. # work, assume that -exports_file does not work either and
  5287. # implicitly export all symbols.
  5288. # This should be the same for all languages, so no per-tag cache variable.
  5289. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  5290. [lt_cv_irix_exported_symbol],
  5291. [save_LDFLAGS="$LDFLAGS"
  5292. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  5293. AC_LINK_IFELSE(
  5294. [AC_LANG_SOURCE(
  5295. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  5296. [C++], [[int foo (void) { return 0; }]],
  5297. [Fortran 77], [[
  5298. subroutine foo
  5299. end]],
  5300. [Fortran], [[
  5301. subroutine foo
  5302. end]])])],
  5303. [lt_cv_irix_exported_symbol=yes],
  5304. [lt_cv_irix_exported_symbol=no])
  5305. LDFLAGS="$save_LDFLAGS"])
  5306. if test "$lt_cv_irix_exported_symbol" = yes; then
  5307. _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'
  5308. fi
  5309. else
  5310. _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'
  5311. _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'
  5312. fi
  5313. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5314. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5315. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5316. _LT_TAGVAR(inherit_rpath, $1)=yes
  5317. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5318. ;;
  5319. netbsd* | netbsdelf*-gnu)
  5320. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5321. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5322. else
  5323. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5324. fi
  5325. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5326. _LT_TAGVAR(hardcode_direct, $1)=yes
  5327. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5328. ;;
  5329. newsos6)
  5330. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5331. _LT_TAGVAR(hardcode_direct, $1)=yes
  5332. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5333. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5334. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5335. ;;
  5336. *nto* | *qnx*)
  5337. ;;
  5338. openbsd*)
  5339. if test -f /usr/libexec/ld.so; then
  5340. _LT_TAGVAR(hardcode_direct, $1)=yes
  5341. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5342. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5343. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5344. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5345. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  5346. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5347. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5348. else
  5349. case $host_os in
  5350. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  5351. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5352. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5353. ;;
  5354. *)
  5355. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5356. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5357. ;;
  5358. esac
  5359. fi
  5360. else
  5361. _LT_TAGVAR(ld_shlibs, $1)=no
  5362. fi
  5363. ;;
  5364. os2*)
  5365. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5366. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5367. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5368. _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'
  5369. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  5370. ;;
  5371. osf3*)
  5372. if test "$GCC" = yes; then
  5373. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5374. _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'
  5375. else
  5376. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5377. _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'
  5378. fi
  5379. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5380. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5381. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5382. ;;
  5383. osf4* | osf5*) # as osf3* with the addition of -msym flag
  5384. if test "$GCC" = yes; then
  5385. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5386. _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'
  5387. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5388. else
  5389. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5390. _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'
  5391. _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~
  5392. $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'
  5393. # Both c and cxx compiler support -rpath directly
  5394. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5395. fi
  5396. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5397. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5398. ;;
  5399. solaris*)
  5400. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  5401. if test "$GCC" = yes; then
  5402. wlarc='${wl}'
  5403. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5404. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5405. $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'
  5406. else
  5407. case `$CC -V 2>&1` in
  5408. *"Compilers 5.0"*)
  5409. wlarc=''
  5410. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5411. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5412. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  5413. ;;
  5414. *)
  5415. wlarc='${wl}'
  5416. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5417. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5418. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5419. ;;
  5420. esac
  5421. fi
  5422. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5423. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5424. case $host_os in
  5425. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5426. *)
  5427. # The compiler driver will combine and reorder linker options,
  5428. # but understands `-z linker_flag'. GCC discards it without `$wl',
  5429. # but is careful enough not to reorder.
  5430. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5431. if test "$GCC" = yes; then
  5432. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5433. else
  5434. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5435. fi
  5436. ;;
  5437. esac
  5438. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5439. ;;
  5440. sunos4*)
  5441. if test "x$host_vendor" = xsequent; then
  5442. # Use $CC to link under sequent, because it throws in some extra .o
  5443. # files that make .init and .fini sections work.
  5444. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5445. else
  5446. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5447. fi
  5448. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5449. _LT_TAGVAR(hardcode_direct, $1)=yes
  5450. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5451. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5452. ;;
  5453. sysv4)
  5454. case $host_vendor in
  5455. sni)
  5456. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5457. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5458. ;;
  5459. siemens)
  5460. ## LD is ld it makes a PLAMLIB
  5461. ## CC just makes a GrossModule.
  5462. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5463. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5464. _LT_TAGVAR(hardcode_direct, $1)=no
  5465. ;;
  5466. motorola)
  5467. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5468. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5469. ;;
  5470. esac
  5471. runpath_var='LD_RUN_PATH'
  5472. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5473. ;;
  5474. sysv4.3*)
  5475. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5476. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5477. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5478. ;;
  5479. sysv4*MP*)
  5480. if test -d /usr/nec; then
  5481. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5482. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5483. runpath_var=LD_RUN_PATH
  5484. hardcode_runpath_var=yes
  5485. _LT_TAGVAR(ld_shlibs, $1)=yes
  5486. fi
  5487. ;;
  5488. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5489. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5490. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5491. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5492. runpath_var='LD_RUN_PATH'
  5493. if test "$GCC" = yes; then
  5494. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5495. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5496. else
  5497. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5498. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5499. fi
  5500. ;;
  5501. sysv5* | sco3.2v5* | sco5v6*)
  5502. # Note: We can NOT use -z defs as we might desire, because we do not
  5503. # link with -lc, and that would cause any symbols used from libc to
  5504. # always be unresolved, which means just about no library would
  5505. # ever link correctly. If we're not using GNU ld we use -z text
  5506. # though, which does catch some bad symbols but isn't as heavy-handed
  5507. # as -z defs.
  5508. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5509. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5510. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5511. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5512. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5513. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5514. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5515. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5516. runpath_var='LD_RUN_PATH'
  5517. if test "$GCC" = yes; then
  5518. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5519. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5520. else
  5521. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5522. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5523. fi
  5524. ;;
  5525. uts4*)
  5526. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5527. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5528. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5529. ;;
  5530. *)
  5531. _LT_TAGVAR(ld_shlibs, $1)=no
  5532. ;;
  5533. esac
  5534. if test x$host_vendor = xsni; then
  5535. case $host in
  5536. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5537. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5538. ;;
  5539. esac
  5540. fi
  5541. fi
  5542. ])
  5543. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5544. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5545. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5546. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5547. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5548. _LT_DECL([], [extract_expsyms_cmds], [2],
  5549. [The commands to extract the exported symbol list from a shared archive])
  5550. #
  5551. # Do we need to explicitly link libc?
  5552. #
  5553. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5554. x|xyes)
  5555. # Assume -lc should be added
  5556. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5557. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5558. case $_LT_TAGVAR(archive_cmds, $1) in
  5559. *'~'*)
  5560. # FIXME: we may have to deal with multi-command sequences.
  5561. ;;
  5562. '$CC '*)
  5563. # Test whether the compiler implicitly links with -lc since on some
  5564. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5565. # to ld, don't add -lc before -lgcc.
  5566. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5567. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5568. [$RM conftest*
  5569. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5570. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5571. soname=conftest
  5572. lib=conftest
  5573. libobjs=conftest.$ac_objext
  5574. deplibs=
  5575. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5576. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5577. compiler_flags=-v
  5578. linker_flags=-v
  5579. verstring=
  5580. output_objdir=.
  5581. libname=conftest
  5582. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5583. _LT_TAGVAR(allow_undefined_flag, $1)=
  5584. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5585. then
  5586. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5587. else
  5588. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5589. fi
  5590. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5591. else
  5592. cat conftest.err 1>&5
  5593. fi
  5594. $RM conftest*
  5595. ])
  5596. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5597. ;;
  5598. esac
  5599. fi
  5600. ;;
  5601. esac
  5602. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5603. [Whether or not to add -lc for building shared libraries])
  5604. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5605. [enable_shared_with_static_runtimes], [0],
  5606. [Whether or not to disallow shared libs when runtime libs are static])
  5607. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5608. [Compiler flag to allow reflexive dlopens])
  5609. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5610. [Compiler flag to generate shared objects directly from archives])
  5611. _LT_TAGDECL([], [compiler_needs_object], [1],
  5612. [Whether the compiler copes with passing no objects directly])
  5613. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5614. [Create an old-style archive from a shared archive])
  5615. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5616. [Create a temporary old-style archive to link instead of a shared archive])
  5617. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5618. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5619. _LT_TAGDECL([], [module_cmds], [2],
  5620. [Commands used to build a loadable module if different from building
  5621. a shared archive.])
  5622. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5623. _LT_TAGDECL([], [with_gnu_ld], [1],
  5624. [Whether we are building with GNU ld or not])
  5625. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5626. [Flag that allows shared libraries with undefined symbols to be built])
  5627. _LT_TAGDECL([], [no_undefined_flag], [1],
  5628. [Flag that enforces no undefined symbols])
  5629. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5630. [Flag to hardcode $libdir into a binary during linking.
  5631. This must work even if $libdir does not exist])
  5632. _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  5633. [[If ld is used when linking, flag to hardcode $libdir into a binary
  5634. during linking. This must work even if $libdir does not exist]])
  5635. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5636. [Whether we need a single "-rpath" flag with a separated argument])
  5637. _LT_TAGDECL([], [hardcode_direct], [0],
  5638. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5639. DIR into the resulting binary])
  5640. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5641. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5642. DIR into the resulting binary and the resulting library dependency is
  5643. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5644. library is relocated])
  5645. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5646. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5647. into the resulting binary])
  5648. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5649. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5650. into the resulting binary])
  5651. _LT_TAGDECL([], [hardcode_automatic], [0],
  5652. [Set to "yes" if building a shared library automatically hardcodes DIR
  5653. into the library and all subsequent libraries and executables linked
  5654. against it])
  5655. _LT_TAGDECL([], [inherit_rpath], [0],
  5656. [Set to yes if linker adds runtime paths of dependent libraries
  5657. to runtime path list])
  5658. _LT_TAGDECL([], [link_all_deplibs], [0],
  5659. [Whether libtool must link a program against all its dependency libraries])
  5660. _LT_TAGDECL([], [always_export_symbols], [0],
  5661. [Set to "yes" if exported symbols are required])
  5662. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5663. [The commands to list exported symbols])
  5664. _LT_TAGDECL([], [exclude_expsyms], [1],
  5665. [Symbols that should not be listed in the preloaded symbols])
  5666. _LT_TAGDECL([], [include_expsyms], [1],
  5667. [Symbols that must always be exported])
  5668. _LT_TAGDECL([], [prelink_cmds], [2],
  5669. [Commands necessary for linking programs (against libraries) with templates])
  5670. _LT_TAGDECL([], [postlink_cmds], [2],
  5671. [Commands necessary for finishing linking programs])
  5672. _LT_TAGDECL([], [file_list_spec], [1],
  5673. [Specify filename containing input files])
  5674. dnl FIXME: Not yet implemented
  5675. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5676. dnl [Compiler flag to generate thread safe objects])
  5677. ])# _LT_LINKER_SHLIBS
  5678. # _LT_LANG_C_CONFIG([TAG])
  5679. # ------------------------
  5680. # Ensure that the configuration variables for a C compiler are suitably
  5681. # defined. These variables are subsequently used by _LT_CONFIG to write
  5682. # the compiler configuration to `libtool'.
  5683. m4_defun([_LT_LANG_C_CONFIG],
  5684. [m4_require([_LT_DECL_EGREP])dnl
  5685. lt_save_CC="$CC"
  5686. AC_LANG_PUSH(C)
  5687. # Source file extension for C test sources.
  5688. ac_ext=c
  5689. # Object file extension for compiled C test sources.
  5690. objext=o
  5691. _LT_TAGVAR(objext, $1)=$objext
  5692. # Code to be used in simple compile tests
  5693. lt_simple_compile_test_code="int some_variable = 0;"
  5694. # Code to be used in simple link tests
  5695. lt_simple_link_test_code='int main(){return(0);}'
  5696. _LT_TAG_COMPILER
  5697. # Save the default compiler, since it gets overwritten when the other
  5698. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5699. compiler_DEFAULT=$CC
  5700. # save warnings/boilerplate of simple test code
  5701. _LT_COMPILER_BOILERPLATE
  5702. _LT_LINKER_BOILERPLATE
  5703. if test -n "$compiler"; then
  5704. _LT_COMPILER_NO_RTTI($1)
  5705. _LT_COMPILER_PIC($1)
  5706. _LT_COMPILER_C_O($1)
  5707. _LT_COMPILER_FILE_LOCKS($1)
  5708. _LT_LINKER_SHLIBS($1)
  5709. _LT_SYS_DYNAMIC_LINKER($1)
  5710. _LT_LINKER_HARDCODE_LIBPATH($1)
  5711. LT_SYS_DLOPEN_SELF
  5712. _LT_CMD_STRIPLIB
  5713. # Report which library types will actually be built
  5714. AC_MSG_CHECKING([if libtool supports shared libraries])
  5715. AC_MSG_RESULT([$can_build_shared])
  5716. AC_MSG_CHECKING([whether to build shared libraries])
  5717. test "$can_build_shared" = "no" && enable_shared=no
  5718. # On AIX, shared libraries and static libraries use the same namespace, and
  5719. # are all built from PIC.
  5720. case $host_os in
  5721. aix3*)
  5722. test "$enable_shared" = yes && enable_static=no
  5723. if test -n "$RANLIB"; then
  5724. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5725. postinstall_cmds='$RANLIB $lib'
  5726. fi
  5727. ;;
  5728. aix[[4-9]]*)
  5729. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5730. test "$enable_shared" = yes && enable_static=no
  5731. fi
  5732. ;;
  5733. esac
  5734. AC_MSG_RESULT([$enable_shared])
  5735. AC_MSG_CHECKING([whether to build static libraries])
  5736. # Make sure either enable_shared or enable_static is yes.
  5737. test "$enable_shared" = yes || enable_static=yes
  5738. AC_MSG_RESULT([$enable_static])
  5739. _LT_CONFIG($1)
  5740. fi
  5741. AC_LANG_POP
  5742. CC="$lt_save_CC"
  5743. ])# _LT_LANG_C_CONFIG
  5744. # _LT_LANG_CXX_CONFIG([TAG])
  5745. # --------------------------
  5746. # Ensure that the configuration variables for a C++ compiler are suitably
  5747. # defined. These variables are subsequently used by _LT_CONFIG to write
  5748. # the compiler configuration to `libtool'.
  5749. m4_defun([_LT_LANG_CXX_CONFIG],
  5750. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5751. m4_require([_LT_DECL_EGREP])dnl
  5752. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5753. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5754. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5755. (test "X$CXX" != "Xg++"))) ; then
  5756. AC_PROG_CXXCPP
  5757. else
  5758. _lt_caught_CXX_error=yes
  5759. fi
  5760. AC_LANG_PUSH(C++)
  5761. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5762. _LT_TAGVAR(allow_undefined_flag, $1)=
  5763. _LT_TAGVAR(always_export_symbols, $1)=no
  5764. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5765. _LT_TAGVAR(compiler_needs_object, $1)=no
  5766. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5767. _LT_TAGVAR(hardcode_direct, $1)=no
  5768. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5769. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5770. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5771. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5772. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5773. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5774. _LT_TAGVAR(hardcode_automatic, $1)=no
  5775. _LT_TAGVAR(inherit_rpath, $1)=no
  5776. _LT_TAGVAR(module_cmds, $1)=
  5777. _LT_TAGVAR(module_expsym_cmds, $1)=
  5778. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5779. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5780. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5781. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5782. _LT_TAGVAR(no_undefined_flag, $1)=
  5783. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5784. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5785. # Source file extension for C++ test sources.
  5786. ac_ext=cpp
  5787. # Object file extension for compiled C++ test sources.
  5788. objext=o
  5789. _LT_TAGVAR(objext, $1)=$objext
  5790. # No sense in running all these tests if we already determined that
  5791. # the CXX compiler isn't working. Some variables (like enable_shared)
  5792. # are currently assumed to apply to all compilers on this platform,
  5793. # and will be corrupted by setting them based on a non-working compiler.
  5794. if test "$_lt_caught_CXX_error" != yes; then
  5795. # Code to be used in simple compile tests
  5796. lt_simple_compile_test_code="int some_variable = 0;"
  5797. # Code to be used in simple link tests
  5798. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5799. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5800. _LT_TAG_COMPILER
  5801. # save warnings/boilerplate of simple test code
  5802. _LT_COMPILER_BOILERPLATE
  5803. _LT_LINKER_BOILERPLATE
  5804. # Allow CC to be a program name with arguments.
  5805. lt_save_CC=$CC
  5806. lt_save_CFLAGS=$CFLAGS
  5807. lt_save_LD=$LD
  5808. lt_save_GCC=$GCC
  5809. GCC=$GXX
  5810. lt_save_with_gnu_ld=$with_gnu_ld
  5811. lt_save_path_LD=$lt_cv_path_LD
  5812. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5813. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5814. else
  5815. $as_unset lt_cv_prog_gnu_ld
  5816. fi
  5817. if test -n "${lt_cv_path_LDCXX+set}"; then
  5818. lt_cv_path_LD=$lt_cv_path_LDCXX
  5819. else
  5820. $as_unset lt_cv_path_LD
  5821. fi
  5822. test -z "${LDCXX+set}" || LD=$LDCXX
  5823. CC=${CXX-"c++"}
  5824. CFLAGS=$CXXFLAGS
  5825. compiler=$CC
  5826. _LT_TAGVAR(compiler, $1)=$CC
  5827. _LT_CC_BASENAME([$compiler])
  5828. if test -n "$compiler"; then
  5829. # We don't want -fno-exception when compiling C++ code, so set the
  5830. # no_builtin_flag separately
  5831. if test "$GXX" = yes; then
  5832. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5833. else
  5834. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5835. fi
  5836. if test "$GXX" = yes; then
  5837. # Set up default GNU C++ configuration
  5838. LT_PATH_LD
  5839. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5840. # archiving commands below assume that GNU ld is being used.
  5841. if test "$with_gnu_ld" = yes; then
  5842. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5843. _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'
  5844. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5845. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5846. # If archive_cmds runs LD, not CC, wlarc should be empty
  5847. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5848. # investigate it a little bit more. (MM)
  5849. wlarc='${wl}'
  5850. # ancient GNU ld didn't support --whole-archive et. al.
  5851. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5852. $GREP 'no-whole-archive' > /dev/null; then
  5853. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5854. else
  5855. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5856. fi
  5857. else
  5858. with_gnu_ld=no
  5859. wlarc=
  5860. # A generic and very simple default shared library creation
  5861. # command for GNU C++ for the case where it uses the native
  5862. # linker, instead of GNU ld. If possible, this setting should
  5863. # overridden to take advantage of the native linker features on
  5864. # the platform it is being used on.
  5865. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5866. fi
  5867. # Commands to make compiler produce verbose output that lists
  5868. # what "hidden" libraries, object files and flags are used when
  5869. # linking a shared library.
  5870. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5871. else
  5872. GXX=no
  5873. with_gnu_ld=no
  5874. wlarc=
  5875. fi
  5876. # PORTME: fill in a description of your system's C++ link characteristics
  5877. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5878. _LT_TAGVAR(ld_shlibs, $1)=yes
  5879. case $host_os in
  5880. aix3*)
  5881. # FIXME: insert proper C++ library support
  5882. _LT_TAGVAR(ld_shlibs, $1)=no
  5883. ;;
  5884. aix[[4-9]]*)
  5885. if test "$host_cpu" = ia64; then
  5886. # On IA64, the linker does run time linking by default, so we don't
  5887. # have to do anything special.
  5888. aix_use_runtimelinking=no
  5889. exp_sym_flag='-Bexport'
  5890. no_entry_flag=""
  5891. else
  5892. aix_use_runtimelinking=no
  5893. # Test if we are trying to use run time linking or normal
  5894. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5895. # need to do runtime linking.
  5896. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5897. for ld_flag in $LDFLAGS; do
  5898. case $ld_flag in
  5899. *-brtl*)
  5900. aix_use_runtimelinking=yes
  5901. break
  5902. ;;
  5903. esac
  5904. done
  5905. ;;
  5906. esac
  5907. exp_sym_flag='-bexport'
  5908. no_entry_flag='-bnoentry'
  5909. fi
  5910. # When large executables or shared objects are built, AIX ld can
  5911. # have problems creating the table of contents. If linking a library
  5912. # or program results in "error TOC overflow" add -mminimal-toc to
  5913. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5914. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5915. _LT_TAGVAR(archive_cmds, $1)=''
  5916. _LT_TAGVAR(hardcode_direct, $1)=yes
  5917. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5918. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5919. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5920. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5921. if test "$GXX" = yes; then
  5922. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5923. # We only want to do this on AIX 4.2 and lower, the check
  5924. # below for broken collect2 doesn't work under 4.3+
  5925. collect2name=`${CC} -print-prog-name=collect2`
  5926. if test -f "$collect2name" &&
  5927. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5928. then
  5929. # We have reworked collect2
  5930. :
  5931. else
  5932. # We have old collect2
  5933. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5934. # It fails to find uninstalled libraries when the uninstalled
  5935. # path is not listed in the libpath. Setting hardcode_minus_L
  5936. # to unsupported forces relinking
  5937. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5938. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5939. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5940. fi
  5941. esac
  5942. shared_flag='-shared'
  5943. if test "$aix_use_runtimelinking" = yes; then
  5944. shared_flag="$shared_flag "'${wl}-G'
  5945. fi
  5946. else
  5947. # not using gcc
  5948. if test "$host_cpu" = ia64; then
  5949. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5950. # chokes on -Wl,-G. The following line is correct:
  5951. shared_flag='-G'
  5952. else
  5953. if test "$aix_use_runtimelinking" = yes; then
  5954. shared_flag='${wl}-G'
  5955. else
  5956. shared_flag='${wl}-bM:SRE'
  5957. fi
  5958. fi
  5959. fi
  5960. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5961. # It seems that -bexpall does not export symbols beginning with
  5962. # underscore (_), so it is better to generate a list of symbols to
  5963. # export.
  5964. _LT_TAGVAR(always_export_symbols, $1)=yes
  5965. if test "$aix_use_runtimelinking" = yes; then
  5966. # Warning - without using the other runtime loading flags (-brtl),
  5967. # -berok will link without error, but may produce a broken library.
  5968. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5969. # Determine the default libpath from the value encoded in an empty
  5970. # executable.
  5971. _LT_SYS_MODULE_PATH_AIX([$1])
  5972. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5973. _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"
  5974. else
  5975. if test "$host_cpu" = ia64; then
  5976. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5977. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5978. _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"
  5979. else
  5980. # Determine the default libpath from the value encoded in an
  5981. # empty executable.
  5982. _LT_SYS_MODULE_PATH_AIX([$1])
  5983. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5984. # Warning - without using the other run time loading flags,
  5985. # -berok will link without error, but may produce a broken library.
  5986. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5987. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5988. if test "$with_gnu_ld" = yes; then
  5989. # We only use this code for GNU lds that support --whole-archive.
  5990. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5991. else
  5992. # Exported symbols can be pulled into shared objects from archives
  5993. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5994. fi
  5995. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5996. # This is similar to how AIX traditionally builds its shared
  5997. # libraries.
  5998. _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'
  5999. fi
  6000. fi
  6001. ;;
  6002. beos*)
  6003. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6004. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6005. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6006. # support --undefined. This deserves some investigation. FIXME
  6007. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6008. else
  6009. _LT_TAGVAR(ld_shlibs, $1)=no
  6010. fi
  6011. ;;
  6012. chorus*)
  6013. case $cc_basename in
  6014. *)
  6015. # FIXME: insert proper C++ library support
  6016. _LT_TAGVAR(ld_shlibs, $1)=no
  6017. ;;
  6018. esac
  6019. ;;
  6020. cygwin* | mingw* | pw32* | cegcc*)
  6021. case $GXX,$cc_basename in
  6022. ,cl* | no,cl*)
  6023. # Native MSVC
  6024. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6025. # no search path for DLLs.
  6026. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6027. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6028. _LT_TAGVAR(always_export_symbols, $1)=yes
  6029. _LT_TAGVAR(file_list_spec, $1)='@'
  6030. # Tell ltmain to make .lib files, not .a files.
  6031. libext=lib
  6032. # Tell ltmain to make .dll files, not .so files.
  6033. shrext_cmds=".dll"
  6034. # FIXME: Setting linknames here is a bad hack.
  6035. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  6036. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6037. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  6038. else
  6039. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  6040. fi~
  6041. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  6042. linknames='
  6043. # The linker will not automatically build a static lib if we build a DLL.
  6044. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6045. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6046. # Don't use ranlib
  6047. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  6048. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  6049. lt_tool_outputfile="@TOOL_OUTPUT@"~
  6050. case $lt_outputfile in
  6051. *.exe|*.EXE) ;;
  6052. *)
  6053. lt_outputfile="$lt_outputfile.exe"
  6054. lt_tool_outputfile="$lt_tool_outputfile.exe"
  6055. ;;
  6056. esac~
  6057. func_to_tool_file "$lt_outputfile"~
  6058. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  6059. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  6060. $RM "$lt_outputfile.manifest";
  6061. fi'
  6062. ;;
  6063. *)
  6064. # g++
  6065. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6066. # as there is no search path for DLLs.
  6067. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6068. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  6069. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6070. _LT_TAGVAR(always_export_symbols, $1)=no
  6071. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6072. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6073. _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'
  6074. # If the export-symbols file already is a .def file (1st line
  6075. # is EXPORTS), use it as is; otherwise, prepend...
  6076. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6077. cp $export_symbols $output_objdir/$soname.def;
  6078. else
  6079. echo EXPORTS > $output_objdir/$soname.def;
  6080. cat $export_symbols >> $output_objdir/$soname.def;
  6081. fi~
  6082. $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'
  6083. else
  6084. _LT_TAGVAR(ld_shlibs, $1)=no
  6085. fi
  6086. ;;
  6087. esac
  6088. ;;
  6089. darwin* | rhapsody*)
  6090. _LT_DARWIN_LINKER_FEATURES($1)
  6091. ;;
  6092. dgux*)
  6093. case $cc_basename in
  6094. ec++*)
  6095. # FIXME: insert proper C++ library support
  6096. _LT_TAGVAR(ld_shlibs, $1)=no
  6097. ;;
  6098. ghcx*)
  6099. # Green Hills C++ Compiler
  6100. # FIXME: insert proper C++ library support
  6101. _LT_TAGVAR(ld_shlibs, $1)=no
  6102. ;;
  6103. *)
  6104. # FIXME: insert proper C++ library support
  6105. _LT_TAGVAR(ld_shlibs, $1)=no
  6106. ;;
  6107. esac
  6108. ;;
  6109. freebsd[[12]]*)
  6110. # C++ shared libraries reported to be fairly broken before
  6111. # switch to ELF
  6112. _LT_TAGVAR(ld_shlibs, $1)=no
  6113. ;;
  6114. freebsd-elf*)
  6115. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6116. ;;
  6117. freebsd* | dragonfly*)
  6118. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  6119. # conventions
  6120. _LT_TAGVAR(ld_shlibs, $1)=yes
  6121. ;;
  6122. gnu*)
  6123. ;;
  6124. haiku*)
  6125. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6126. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6127. ;;
  6128. hpux9*)
  6129. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6130. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6131. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6132. _LT_TAGVAR(hardcode_direct, $1)=yes
  6133. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6134. # but as the default
  6135. # location of the library.
  6136. case $cc_basename in
  6137. CC*)
  6138. # FIXME: insert proper C++ library support
  6139. _LT_TAGVAR(ld_shlibs, $1)=no
  6140. ;;
  6141. aCC*)
  6142. _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'
  6143. # Commands to make compiler produce verbose output that lists
  6144. # what "hidden" libraries, object files and flags are used when
  6145. # linking a shared library.
  6146. #
  6147. # There doesn't appear to be a way to prevent this compiler from
  6148. # explicitly linking system object files so we need to strip them
  6149. # from the output so that they don't get included in the library
  6150. # dependencies.
  6151. 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"'
  6152. ;;
  6153. *)
  6154. if test "$GXX" = yes; then
  6155. _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'
  6156. else
  6157. # FIXME: insert proper C++ library support
  6158. _LT_TAGVAR(ld_shlibs, $1)=no
  6159. fi
  6160. ;;
  6161. esac
  6162. ;;
  6163. hpux10*|hpux11*)
  6164. if test $with_gnu_ld = no; then
  6165. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6166. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6167. case $host_cpu in
  6168. hppa*64*|ia64*)
  6169. ;;
  6170. *)
  6171. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6172. ;;
  6173. esac
  6174. fi
  6175. case $host_cpu in
  6176. hppa*64*|ia64*)
  6177. _LT_TAGVAR(hardcode_direct, $1)=no
  6178. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6179. ;;
  6180. *)
  6181. _LT_TAGVAR(hardcode_direct, $1)=yes
  6182. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6183. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6184. # but as the default
  6185. # location of the library.
  6186. ;;
  6187. esac
  6188. case $cc_basename in
  6189. CC*)
  6190. # FIXME: insert proper C++ library support
  6191. _LT_TAGVAR(ld_shlibs, $1)=no
  6192. ;;
  6193. aCC*)
  6194. case $host_cpu in
  6195. hppa*64*)
  6196. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6197. ;;
  6198. ia64*)
  6199. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6200. ;;
  6201. *)
  6202. _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'
  6203. ;;
  6204. esac
  6205. # Commands to make compiler produce verbose output that lists
  6206. # what "hidden" libraries, object files and flags are used when
  6207. # linking a shared library.
  6208. #
  6209. # There doesn't appear to be a way to prevent this compiler from
  6210. # explicitly linking system object files so we need to strip them
  6211. # from the output so that they don't get included in the library
  6212. # dependencies.
  6213. 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"'
  6214. ;;
  6215. *)
  6216. if test "$GXX" = yes; then
  6217. if test $with_gnu_ld = no; then
  6218. case $host_cpu in
  6219. hppa*64*)
  6220. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6221. ;;
  6222. ia64*)
  6223. _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'
  6224. ;;
  6225. *)
  6226. _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'
  6227. ;;
  6228. esac
  6229. fi
  6230. else
  6231. # FIXME: insert proper C++ library support
  6232. _LT_TAGVAR(ld_shlibs, $1)=no
  6233. fi
  6234. ;;
  6235. esac
  6236. ;;
  6237. interix[[3-9]]*)
  6238. _LT_TAGVAR(hardcode_direct, $1)=no
  6239. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6240. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6241. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6242. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6243. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6244. # default) and relocated if they conflict, which is a slow very memory
  6245. # consuming and fragmenting process. To avoid this, we pick a random,
  6246. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6247. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6248. _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'
  6249. _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'
  6250. ;;
  6251. irix5* | irix6*)
  6252. case $cc_basename in
  6253. CC*)
  6254. # SGI C++
  6255. _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'
  6256. # Archives containing C++ object files must be created using
  6257. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  6258. # necessary to make sure instantiated templates are included
  6259. # in the archive.
  6260. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  6261. ;;
  6262. *)
  6263. if test "$GXX" = yes; then
  6264. if test "$with_gnu_ld" = no; then
  6265. _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'
  6266. else
  6267. _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'
  6268. fi
  6269. fi
  6270. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6271. ;;
  6272. esac
  6273. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6274. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6275. _LT_TAGVAR(inherit_rpath, $1)=yes
  6276. ;;
  6277. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6278. case $cc_basename in
  6279. KCC*)
  6280. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6281. # KCC will only create a shared library if the output file
  6282. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6283. # to its proper name (with version) after linking.
  6284. _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'
  6285. _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'
  6286. # Commands to make compiler produce verbose output that lists
  6287. # what "hidden" libraries, object files and flags are used when
  6288. # linking a shared library.
  6289. #
  6290. # There doesn't appear to be a way to prevent this compiler from
  6291. # explicitly linking system object files so we need to strip them
  6292. # from the output so that they don't get included in the library
  6293. # dependencies.
  6294. 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"'
  6295. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6296. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6297. # Archives containing C++ object files must be created using
  6298. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  6299. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  6300. ;;
  6301. icpc* | ecpc* )
  6302. # Intel C++
  6303. with_gnu_ld=yes
  6304. # version 8.0 and above of icpc choke on multiply defined symbols
  6305. # if we add $predep_objects and $postdep_objects, however 7.1 and
  6306. # earlier do not add the objects themselves.
  6307. case `$CC -V 2>&1` in
  6308. *"Version 7."*)
  6309. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6310. _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'
  6311. ;;
  6312. *) # Version 8.0 or newer
  6313. tmp_idyn=
  6314. case $host_cpu in
  6315. ia64*) tmp_idyn=' -i_dynamic';;
  6316. esac
  6317. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6318. _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'
  6319. ;;
  6320. esac
  6321. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6322. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6323. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6324. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  6325. ;;
  6326. pgCC* | pgcpp*)
  6327. # Portland Group C++ compiler
  6328. case `$CC -V` in
  6329. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  6330. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  6331. rm -rf $tpldir~
  6332. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  6333. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  6334. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  6335. rm -rf $tpldir~
  6336. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  6337. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  6338. $RANLIB $oldlib'
  6339. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  6340. rm -rf $tpldir~
  6341. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6342. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  6343. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  6344. rm -rf $tpldir~
  6345. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6346. $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'
  6347. ;;
  6348. *) # Version 6 and above use weak symbols
  6349. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  6350. _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'
  6351. ;;
  6352. esac
  6353. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  6354. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6355. _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'
  6356. ;;
  6357. cxx*)
  6358. # Compaq C++
  6359. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6360. _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'
  6361. runpath_var=LD_RUN_PATH
  6362. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6363. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6364. # Commands to make compiler produce verbose output that lists
  6365. # what "hidden" libraries, object files and flags are used when
  6366. # linking a shared library.
  6367. #
  6368. # There doesn't appear to be a way to prevent this compiler from
  6369. # explicitly linking system object files so we need to strip them
  6370. # from the output so that they don't get included in the library
  6371. # dependencies.
  6372. 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'
  6373. ;;
  6374. xl* | mpixl* | bgxl*)
  6375. # IBM XL 8.0 on PPC, with GNU ld
  6376. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6377. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6378. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6379. if test "x$supports_anon_versioning" = xyes; then
  6380. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6381. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6382. echo "local: *; };" >> $output_objdir/$libname.ver~
  6383. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6384. fi
  6385. ;;
  6386. *)
  6387. case `$CC -V 2>&1 | sed 5q` in
  6388. *Sun\ C*)
  6389. # Sun C++ 5.9
  6390. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6391. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6392. _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'
  6393. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6394. _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'
  6395. _LT_TAGVAR(compiler_needs_object, $1)=yes
  6396. # Not sure whether something based on
  6397. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  6398. # would be better.
  6399. output_verbose_link_cmd='func_echo_all'
  6400. # Archives containing C++ object files must be created using
  6401. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6402. # necessary to make sure instantiated templates are included
  6403. # in the archive.
  6404. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6405. ;;
  6406. esac
  6407. ;;
  6408. esac
  6409. ;;
  6410. lynxos*)
  6411. # FIXME: insert proper C++ library support
  6412. _LT_TAGVAR(ld_shlibs, $1)=no
  6413. ;;
  6414. m88k*)
  6415. # FIXME: insert proper C++ library support
  6416. _LT_TAGVAR(ld_shlibs, $1)=no
  6417. ;;
  6418. mvs*)
  6419. case $cc_basename in
  6420. cxx*)
  6421. # FIXME: insert proper C++ library support
  6422. _LT_TAGVAR(ld_shlibs, $1)=no
  6423. ;;
  6424. *)
  6425. # FIXME: insert proper C++ library support
  6426. _LT_TAGVAR(ld_shlibs, $1)=no
  6427. ;;
  6428. esac
  6429. ;;
  6430. netbsd*)
  6431. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6432. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6433. wlarc=
  6434. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6435. _LT_TAGVAR(hardcode_direct, $1)=yes
  6436. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6437. fi
  6438. # Workaround some broken pre-1.5 toolchains
  6439. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6440. ;;
  6441. *nto* | *qnx*)
  6442. _LT_TAGVAR(ld_shlibs, $1)=yes
  6443. ;;
  6444. openbsd2*)
  6445. # C++ shared libraries are fairly broken
  6446. _LT_TAGVAR(ld_shlibs, $1)=no
  6447. ;;
  6448. openbsd*)
  6449. if test -f /usr/libexec/ld.so; then
  6450. _LT_TAGVAR(hardcode_direct, $1)=yes
  6451. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6452. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6453. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6454. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6455. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6456. _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'
  6457. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6458. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6459. fi
  6460. output_verbose_link_cmd=func_echo_all
  6461. else
  6462. _LT_TAGVAR(ld_shlibs, $1)=no
  6463. fi
  6464. ;;
  6465. osf3* | osf4* | osf5*)
  6466. case $cc_basename in
  6467. KCC*)
  6468. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6469. # KCC will only create a shared library if the output file
  6470. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6471. # to its proper name (with version) after linking.
  6472. _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'
  6473. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6474. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6475. # Archives containing C++ object files must be created using
  6476. # the KAI C++ compiler.
  6477. case $host in
  6478. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6479. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6480. esac
  6481. ;;
  6482. RCC*)
  6483. # Rational C++ 2.4.1
  6484. # FIXME: insert proper C++ library support
  6485. _LT_TAGVAR(ld_shlibs, $1)=no
  6486. ;;
  6487. cxx*)
  6488. case $host in
  6489. osf3*)
  6490. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6491. _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'
  6492. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6493. ;;
  6494. *)
  6495. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6496. _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'
  6497. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6498. echo "-hidden">> $lib.exp~
  6499. $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~
  6500. $RM $lib.exp'
  6501. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6502. ;;
  6503. esac
  6504. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6505. # Commands to make compiler produce verbose output that lists
  6506. # what "hidden" libraries, object files and flags are used when
  6507. # linking a shared library.
  6508. #
  6509. # There doesn't appear to be a way to prevent this compiler from
  6510. # explicitly linking system object files so we need to strip them
  6511. # from the output so that they don't get included in the library
  6512. # dependencies.
  6513. 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"'
  6514. ;;
  6515. *)
  6516. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6517. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6518. case $host in
  6519. osf3*)
  6520. _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'
  6521. ;;
  6522. *)
  6523. _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'
  6524. ;;
  6525. esac
  6526. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6527. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6528. # Commands to make compiler produce verbose output that lists
  6529. # what "hidden" libraries, object files and flags are used when
  6530. # linking a shared library.
  6531. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6532. else
  6533. # FIXME: insert proper C++ library support
  6534. _LT_TAGVAR(ld_shlibs, $1)=no
  6535. fi
  6536. ;;
  6537. esac
  6538. ;;
  6539. psos*)
  6540. # FIXME: insert proper C++ library support
  6541. _LT_TAGVAR(ld_shlibs, $1)=no
  6542. ;;
  6543. sunos4*)
  6544. case $cc_basename in
  6545. CC*)
  6546. # Sun C++ 4.x
  6547. # FIXME: insert proper C++ library support
  6548. _LT_TAGVAR(ld_shlibs, $1)=no
  6549. ;;
  6550. lcc*)
  6551. # Lucid
  6552. # FIXME: insert proper C++ library support
  6553. _LT_TAGVAR(ld_shlibs, $1)=no
  6554. ;;
  6555. *)
  6556. # FIXME: insert proper C++ library support
  6557. _LT_TAGVAR(ld_shlibs, $1)=no
  6558. ;;
  6559. esac
  6560. ;;
  6561. solaris*)
  6562. case $cc_basename in
  6563. CC* | sunCC*)
  6564. # Sun C++ 4.2, 5.x and Centerline C++
  6565. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6566. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6567. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6568. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6569. $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'
  6570. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6571. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6572. case $host_os in
  6573. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6574. *)
  6575. # The compiler driver will combine and reorder linker options,
  6576. # but understands `-z linker_flag'.
  6577. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6578. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6579. ;;
  6580. esac
  6581. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6582. output_verbose_link_cmd='func_echo_all'
  6583. # Archives containing C++ object files must be created using
  6584. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6585. # necessary to make sure instantiated templates are included
  6586. # in the archive.
  6587. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6588. ;;
  6589. gcx*)
  6590. # Green Hills C++ Compiler
  6591. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6592. # The C++ compiler must be used to create the archive.
  6593. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6594. ;;
  6595. *)
  6596. # GNU C++ compiler with Solaris linker
  6597. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6598. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6599. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6600. _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'
  6601. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6602. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6603. # Commands to make compiler produce verbose output that lists
  6604. # what "hidden" libraries, object files and flags are used when
  6605. # linking a shared library.
  6606. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6607. else
  6608. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6609. # platform.
  6610. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6611. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6612. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6613. # Commands to make compiler produce verbose output that lists
  6614. # what "hidden" libraries, object files and flags are used when
  6615. # linking a shared library.
  6616. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6617. fi
  6618. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6619. case $host_os in
  6620. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6621. *)
  6622. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6623. ;;
  6624. esac
  6625. fi
  6626. ;;
  6627. esac
  6628. ;;
  6629. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6630. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6631. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6632. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6633. runpath_var='LD_RUN_PATH'
  6634. case $cc_basename in
  6635. CC*)
  6636. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6637. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6638. ;;
  6639. *)
  6640. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6641. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6642. ;;
  6643. esac
  6644. ;;
  6645. sysv5* | sco3.2v5* | sco5v6*)
  6646. # Note: We can NOT use -z defs as we might desire, because we do not
  6647. # link with -lc, and that would cause any symbols used from libc to
  6648. # always be unresolved, which means just about no library would
  6649. # ever link correctly. If we're not using GNU ld we use -z text
  6650. # though, which does catch some bad symbols but isn't as heavy-handed
  6651. # as -z defs.
  6652. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6653. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6654. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6655. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6656. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6657. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6658. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6659. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6660. runpath_var='LD_RUN_PATH'
  6661. case $cc_basename in
  6662. CC*)
  6663. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6664. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6665. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6666. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6667. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6668. '"$_LT_TAGVAR(reload_cmds, $1)"
  6669. ;;
  6670. *)
  6671. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6672. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6673. ;;
  6674. esac
  6675. ;;
  6676. tandem*)
  6677. case $cc_basename in
  6678. NCC*)
  6679. # NonStop-UX NCC 3.20
  6680. # FIXME: insert proper C++ library support
  6681. _LT_TAGVAR(ld_shlibs, $1)=no
  6682. ;;
  6683. *)
  6684. # FIXME: insert proper C++ library support
  6685. _LT_TAGVAR(ld_shlibs, $1)=no
  6686. ;;
  6687. esac
  6688. ;;
  6689. vxworks*)
  6690. # FIXME: insert proper C++ library support
  6691. _LT_TAGVAR(ld_shlibs, $1)=no
  6692. ;;
  6693. *)
  6694. # FIXME: insert proper C++ library support
  6695. _LT_TAGVAR(ld_shlibs, $1)=no
  6696. ;;
  6697. esac
  6698. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6699. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6700. _LT_TAGVAR(GCC, $1)="$GXX"
  6701. _LT_TAGVAR(LD, $1)="$LD"
  6702. ## CAVEAT EMPTOR:
  6703. ## There is no encapsulation within the following macros, do not change
  6704. ## the running order or otherwise move them around unless you know exactly
  6705. ## what you are doing...
  6706. _LT_SYS_HIDDEN_LIBDEPS($1)
  6707. _LT_COMPILER_PIC($1)
  6708. _LT_COMPILER_C_O($1)
  6709. _LT_COMPILER_FILE_LOCKS($1)
  6710. _LT_LINKER_SHLIBS($1)
  6711. _LT_SYS_DYNAMIC_LINKER($1)
  6712. _LT_LINKER_HARDCODE_LIBPATH($1)
  6713. _LT_CONFIG($1)
  6714. fi # test -n "$compiler"
  6715. CC=$lt_save_CC
  6716. CFLAGS=$lt_save_CFLAGS
  6717. LDCXX=$LD
  6718. LD=$lt_save_LD
  6719. GCC=$lt_save_GCC
  6720. with_gnu_ld=$lt_save_with_gnu_ld
  6721. lt_cv_path_LDCXX=$lt_cv_path_LD
  6722. lt_cv_path_LD=$lt_save_path_LD
  6723. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6724. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6725. fi # test "$_lt_caught_CXX_error" != yes
  6726. AC_LANG_POP
  6727. ])# _LT_LANG_CXX_CONFIG
  6728. # _LT_FUNC_STRIPNAME_CNF
  6729. # ----------------------
  6730. # func_stripname_cnf prefix suffix name
  6731. # strip PREFIX and SUFFIX off of NAME.
  6732. # PREFIX and SUFFIX must not contain globbing or regex special
  6733. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6734. # dot (in which case that matches only a dot).
  6735. #
  6736. # This function is identical to the (non-XSI) version of func_stripname,
  6737. # except this one can be used by m4 code that may be executed by configure,
  6738. # rather than the libtool script.
  6739. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6740. AC_REQUIRE([_LT_DECL_SED])
  6741. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6742. func_stripname_cnf ()
  6743. {
  6744. case ${2} in
  6745. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6746. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6747. esac
  6748. } # func_stripname_cnf
  6749. ])# _LT_FUNC_STRIPNAME_CNF
  6750. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6751. # ---------------------------------
  6752. # Figure out "hidden" library dependencies from verbose
  6753. # compiler output when linking a shared library.
  6754. # Parse the compiler output and extract the necessary
  6755. # objects, libraries and library flags.
  6756. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6757. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6758. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6759. # Dependencies to place before and after the object being linked:
  6760. _LT_TAGVAR(predep_objects, $1)=
  6761. _LT_TAGVAR(postdep_objects, $1)=
  6762. _LT_TAGVAR(predeps, $1)=
  6763. _LT_TAGVAR(postdeps, $1)=
  6764. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6765. dnl we can't use the lt_simple_compile_test_code here,
  6766. dnl because it contains code intended for an executable,
  6767. dnl not a library. It's possible we should let each
  6768. dnl tag define a new lt_????_link_test_code variable,
  6769. dnl but it's only used here...
  6770. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6771. int a;
  6772. void foo (void) { a = 0; }
  6773. _LT_EOF
  6774. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6775. class Foo
  6776. {
  6777. public:
  6778. Foo (void) { a = 0; }
  6779. private:
  6780. int a;
  6781. };
  6782. _LT_EOF
  6783. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6784. subroutine foo
  6785. implicit none
  6786. integer*4 a
  6787. a=0
  6788. return
  6789. end
  6790. _LT_EOF
  6791. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6792. subroutine foo
  6793. implicit none
  6794. integer a
  6795. a=0
  6796. return
  6797. end
  6798. _LT_EOF
  6799. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6800. public class foo {
  6801. private int a;
  6802. public void bar (void) {
  6803. a = 0;
  6804. }
  6805. };
  6806. _LT_EOF
  6807. ])
  6808. _lt_libdeps_save_CFLAGS=$CFLAGS
  6809. case "$CC $CFLAGS " in #(
  6810. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6811. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6812. esac
  6813. dnl Parse the compiler output and extract the necessary
  6814. dnl objects, libraries and library flags.
  6815. if AC_TRY_EVAL(ac_compile); then
  6816. # Parse the compiler output and extract the necessary
  6817. # objects, libraries and library flags.
  6818. # Sentinel used to keep track of whether or not we are before
  6819. # the conftest object file.
  6820. pre_test_object_deps_done=no
  6821. for p in `eval "$output_verbose_link_cmd"`; do
  6822. case ${prev}${p} in
  6823. -L* | -R* | -l*)
  6824. # Some compilers place space between "-{L,R}" and the path.
  6825. # Remove the space.
  6826. if test $p = "-L" ||
  6827. test $p = "-R"; then
  6828. prev=$p
  6829. continue
  6830. fi
  6831. # Expand the sysroot to ease extracting the directories later.
  6832. if test -z "$prev"; then
  6833. case $p in
  6834. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6835. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6836. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6837. esac
  6838. fi
  6839. case $p in
  6840. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6841. esac
  6842. if test "$pre_test_object_deps_done" = no; then
  6843. case ${prev} in
  6844. -L | -R)
  6845. # Internal compiler library paths should come after those
  6846. # provided the user. The postdeps already come after the
  6847. # user supplied libs so there is no need to process them.
  6848. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6849. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6850. else
  6851. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6852. fi
  6853. ;;
  6854. # The "-l" case would never come before the object being
  6855. # linked, so don't bother handling this case.
  6856. esac
  6857. else
  6858. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6859. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6860. else
  6861. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6862. fi
  6863. fi
  6864. prev=
  6865. ;;
  6866. *.lto.$objext) ;; # Ignore GCC LTO objects
  6867. *.$objext)
  6868. # This assumes that the test object file only shows up
  6869. # once in the compiler output.
  6870. if test "$p" = "conftest.$objext"; then
  6871. pre_test_object_deps_done=yes
  6872. continue
  6873. fi
  6874. if test "$pre_test_object_deps_done" = no; then
  6875. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6876. _LT_TAGVAR(predep_objects, $1)="$p"
  6877. else
  6878. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6879. fi
  6880. else
  6881. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6882. _LT_TAGVAR(postdep_objects, $1)="$p"
  6883. else
  6884. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6885. fi
  6886. fi
  6887. ;;
  6888. *) ;; # Ignore the rest.
  6889. esac
  6890. done
  6891. # Clean up.
  6892. rm -f a.out a.exe
  6893. else
  6894. echo "libtool.m4: error: problem compiling $1 test program"
  6895. fi
  6896. $RM -f confest.$objext
  6897. CFLAGS=$_lt_libdeps_save_CFLAGS
  6898. # PORTME: override above test on systems where it is broken
  6899. m4_if([$1], [CXX],
  6900. [case $host_os in
  6901. interix[[3-9]]*)
  6902. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6903. # hack all around it, let's just trust "g++" to DTRT.
  6904. _LT_TAGVAR(predep_objects,$1)=
  6905. _LT_TAGVAR(postdep_objects,$1)=
  6906. _LT_TAGVAR(postdeps,$1)=
  6907. ;;
  6908. linux*)
  6909. case `$CC -V 2>&1 | sed 5q` in
  6910. *Sun\ C*)
  6911. # Sun C++ 5.9
  6912. # The more standards-conforming stlport4 library is
  6913. # incompatible with the Cstd library. Avoid specifying
  6914. # it if it's in CXXFLAGS. Ignore libCrun as
  6915. # -library=stlport4 depends on it.
  6916. case " $CXX $CXXFLAGS " in
  6917. *" -library=stlport4 "*)
  6918. solaris_use_stlport4=yes
  6919. ;;
  6920. esac
  6921. if test "$solaris_use_stlport4" != yes; then
  6922. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6923. fi
  6924. ;;
  6925. esac
  6926. ;;
  6927. solaris*)
  6928. case $cc_basename in
  6929. CC* | sunCC*)
  6930. # The more standards-conforming stlport4 library is
  6931. # incompatible with the Cstd library. Avoid specifying
  6932. # it if it's in CXXFLAGS. Ignore libCrun as
  6933. # -library=stlport4 depends on it.
  6934. case " $CXX $CXXFLAGS " in
  6935. *" -library=stlport4 "*)
  6936. solaris_use_stlport4=yes
  6937. ;;
  6938. esac
  6939. # Adding this requires a known-good setup of shared libraries for
  6940. # Sun compiler versions before 5.6, else PIC objects from an old
  6941. # archive will be linked into the output, leading to subtle bugs.
  6942. if test "$solaris_use_stlport4" != yes; then
  6943. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6944. fi
  6945. ;;
  6946. esac
  6947. ;;
  6948. esac
  6949. ])
  6950. case " $_LT_TAGVAR(postdeps, $1) " in
  6951. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6952. esac
  6953. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6954. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6955. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6956. fi
  6957. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6958. [The directories searched by this compiler when creating a shared library])
  6959. _LT_TAGDECL([], [predep_objects], [1],
  6960. [Dependencies to place before and after the objects being linked to
  6961. create a shared library])
  6962. _LT_TAGDECL([], [postdep_objects], [1])
  6963. _LT_TAGDECL([], [predeps], [1])
  6964. _LT_TAGDECL([], [postdeps], [1])
  6965. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6966. [The library search path used internally by the compiler when linking
  6967. a shared library])
  6968. ])# _LT_SYS_HIDDEN_LIBDEPS
  6969. # _LT_LANG_F77_CONFIG([TAG])
  6970. # --------------------------
  6971. # Ensure that the configuration variables for a Fortran 77 compiler are
  6972. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6973. # to write the compiler configuration to `libtool'.
  6974. m4_defun([_LT_LANG_F77_CONFIG],
  6975. [AC_LANG_PUSH(Fortran 77)
  6976. if test -z "$F77" || test "X$F77" = "Xno"; then
  6977. _lt_disable_F77=yes
  6978. fi
  6979. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6980. _LT_TAGVAR(allow_undefined_flag, $1)=
  6981. _LT_TAGVAR(always_export_symbols, $1)=no
  6982. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6983. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6984. _LT_TAGVAR(hardcode_direct, $1)=no
  6985. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6986. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6987. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6988. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6989. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6990. _LT_TAGVAR(hardcode_automatic, $1)=no
  6991. _LT_TAGVAR(inherit_rpath, $1)=no
  6992. _LT_TAGVAR(module_cmds, $1)=
  6993. _LT_TAGVAR(module_expsym_cmds, $1)=
  6994. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6995. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6996. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6997. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6998. _LT_TAGVAR(no_undefined_flag, $1)=
  6999. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7000. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7001. # Source file extension for f77 test sources.
  7002. ac_ext=f
  7003. # Object file extension for compiled f77 test sources.
  7004. objext=o
  7005. _LT_TAGVAR(objext, $1)=$objext
  7006. # No sense in running all these tests if we already determined that
  7007. # the F77 compiler isn't working. Some variables (like enable_shared)
  7008. # are currently assumed to apply to all compilers on this platform,
  7009. # and will be corrupted by setting them based on a non-working compiler.
  7010. if test "$_lt_disable_F77" != yes; then
  7011. # Code to be used in simple compile tests
  7012. lt_simple_compile_test_code="\
  7013. subroutine t
  7014. return
  7015. end
  7016. "
  7017. # Code to be used in simple link tests
  7018. lt_simple_link_test_code="\
  7019. program t
  7020. end
  7021. "
  7022. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7023. _LT_TAG_COMPILER
  7024. # save warnings/boilerplate of simple test code
  7025. _LT_COMPILER_BOILERPLATE
  7026. _LT_LINKER_BOILERPLATE
  7027. # Allow CC to be a program name with arguments.
  7028. lt_save_CC="$CC"
  7029. lt_save_GCC=$GCC
  7030. lt_save_CFLAGS=$CFLAGS
  7031. CC=${F77-"f77"}
  7032. CFLAGS=$FFLAGS
  7033. compiler=$CC
  7034. _LT_TAGVAR(compiler, $1)=$CC
  7035. _LT_CC_BASENAME([$compiler])
  7036. GCC=$G77
  7037. if test -n "$compiler"; then
  7038. AC_MSG_CHECKING([if libtool supports shared libraries])
  7039. AC_MSG_RESULT([$can_build_shared])
  7040. AC_MSG_CHECKING([whether to build shared libraries])
  7041. test "$can_build_shared" = "no" && enable_shared=no
  7042. # On AIX, shared libraries and static libraries use the same namespace, and
  7043. # are all built from PIC.
  7044. case $host_os in
  7045. aix3*)
  7046. test "$enable_shared" = yes && enable_static=no
  7047. if test -n "$RANLIB"; then
  7048. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7049. postinstall_cmds='$RANLIB $lib'
  7050. fi
  7051. ;;
  7052. aix[[4-9]]*)
  7053. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7054. test "$enable_shared" = yes && enable_static=no
  7055. fi
  7056. ;;
  7057. esac
  7058. AC_MSG_RESULT([$enable_shared])
  7059. AC_MSG_CHECKING([whether to build static libraries])
  7060. # Make sure either enable_shared or enable_static is yes.
  7061. test "$enable_shared" = yes || enable_static=yes
  7062. AC_MSG_RESULT([$enable_static])
  7063. _LT_TAGVAR(GCC, $1)="$G77"
  7064. _LT_TAGVAR(LD, $1)="$LD"
  7065. ## CAVEAT EMPTOR:
  7066. ## There is no encapsulation within the following macros, do not change
  7067. ## the running order or otherwise move them around unless you know exactly
  7068. ## what you are doing...
  7069. _LT_COMPILER_PIC($1)
  7070. _LT_COMPILER_C_O($1)
  7071. _LT_COMPILER_FILE_LOCKS($1)
  7072. _LT_LINKER_SHLIBS($1)
  7073. _LT_SYS_DYNAMIC_LINKER($1)
  7074. _LT_LINKER_HARDCODE_LIBPATH($1)
  7075. _LT_CONFIG($1)
  7076. fi # test -n "$compiler"
  7077. GCC=$lt_save_GCC
  7078. CC="$lt_save_CC"
  7079. CFLAGS="$lt_save_CFLAGS"
  7080. fi # test "$_lt_disable_F77" != yes
  7081. AC_LANG_POP
  7082. ])# _LT_LANG_F77_CONFIG
  7083. # _LT_LANG_FC_CONFIG([TAG])
  7084. # -------------------------
  7085. # Ensure that the configuration variables for a Fortran compiler are
  7086. # suitably defined. These variables are subsequently used by _LT_CONFIG
  7087. # to write the compiler configuration to `libtool'.
  7088. m4_defun([_LT_LANG_FC_CONFIG],
  7089. [AC_LANG_PUSH(Fortran)
  7090. if test -z "$FC" || test "X$FC" = "Xno"; then
  7091. _lt_disable_FC=yes
  7092. fi
  7093. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7094. _LT_TAGVAR(allow_undefined_flag, $1)=
  7095. _LT_TAGVAR(always_export_symbols, $1)=no
  7096. _LT_TAGVAR(archive_expsym_cmds, $1)=
  7097. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7098. _LT_TAGVAR(hardcode_direct, $1)=no
  7099. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7100. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7101. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7102. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7103. _LT_TAGVAR(hardcode_minus_L, $1)=no
  7104. _LT_TAGVAR(hardcode_automatic, $1)=no
  7105. _LT_TAGVAR(inherit_rpath, $1)=no
  7106. _LT_TAGVAR(module_cmds, $1)=
  7107. _LT_TAGVAR(module_expsym_cmds, $1)=
  7108. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7109. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7110. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7111. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7112. _LT_TAGVAR(no_undefined_flag, $1)=
  7113. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7114. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7115. # Source file extension for fc test sources.
  7116. ac_ext=${ac_fc_srcext-f}
  7117. # Object file extension for compiled fc test sources.
  7118. objext=o
  7119. _LT_TAGVAR(objext, $1)=$objext
  7120. # No sense in running all these tests if we already determined that
  7121. # the FC compiler isn't working. Some variables (like enable_shared)
  7122. # are currently assumed to apply to all compilers on this platform,
  7123. # and will be corrupted by setting them based on a non-working compiler.
  7124. if test "$_lt_disable_FC" != yes; then
  7125. # Code to be used in simple compile tests
  7126. lt_simple_compile_test_code="\
  7127. subroutine t
  7128. return
  7129. end
  7130. "
  7131. # Code to be used in simple link tests
  7132. lt_simple_link_test_code="\
  7133. program t
  7134. end
  7135. "
  7136. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7137. _LT_TAG_COMPILER
  7138. # save warnings/boilerplate of simple test code
  7139. _LT_COMPILER_BOILERPLATE
  7140. _LT_LINKER_BOILERPLATE
  7141. # Allow CC to be a program name with arguments.
  7142. lt_save_CC="$CC"
  7143. lt_save_GCC=$GCC
  7144. lt_save_CFLAGS=$CFLAGS
  7145. CC=${FC-"f95"}
  7146. CFLAGS=$FCFLAGS
  7147. compiler=$CC
  7148. GCC=$ac_cv_fc_compiler_gnu
  7149. _LT_TAGVAR(compiler, $1)=$CC
  7150. _LT_CC_BASENAME([$compiler])
  7151. if test -n "$compiler"; then
  7152. AC_MSG_CHECKING([if libtool supports shared libraries])
  7153. AC_MSG_RESULT([$can_build_shared])
  7154. AC_MSG_CHECKING([whether to build shared libraries])
  7155. test "$can_build_shared" = "no" && enable_shared=no
  7156. # On AIX, shared libraries and static libraries use the same namespace, and
  7157. # are all built from PIC.
  7158. case $host_os in
  7159. aix3*)
  7160. test "$enable_shared" = yes && enable_static=no
  7161. if test -n "$RANLIB"; then
  7162. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7163. postinstall_cmds='$RANLIB $lib'
  7164. fi
  7165. ;;
  7166. aix[[4-9]]*)
  7167. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7168. test "$enable_shared" = yes && enable_static=no
  7169. fi
  7170. ;;
  7171. esac
  7172. AC_MSG_RESULT([$enable_shared])
  7173. AC_MSG_CHECKING([whether to build static libraries])
  7174. # Make sure either enable_shared or enable_static is yes.
  7175. test "$enable_shared" = yes || enable_static=yes
  7176. AC_MSG_RESULT([$enable_static])
  7177. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  7178. _LT_TAGVAR(LD, $1)="$LD"
  7179. ## CAVEAT EMPTOR:
  7180. ## There is no encapsulation within the following macros, do not change
  7181. ## the running order or otherwise move them around unless you know exactly
  7182. ## what you are doing...
  7183. _LT_SYS_HIDDEN_LIBDEPS($1)
  7184. _LT_COMPILER_PIC($1)
  7185. _LT_COMPILER_C_O($1)
  7186. _LT_COMPILER_FILE_LOCKS($1)
  7187. _LT_LINKER_SHLIBS($1)
  7188. _LT_SYS_DYNAMIC_LINKER($1)
  7189. _LT_LINKER_HARDCODE_LIBPATH($1)
  7190. _LT_CONFIG($1)
  7191. fi # test -n "$compiler"
  7192. GCC=$lt_save_GCC
  7193. CC=$lt_save_CC
  7194. CFLAGS=$lt_save_CFLAGS
  7195. fi # test "$_lt_disable_FC" != yes
  7196. AC_LANG_POP
  7197. ])# _LT_LANG_FC_CONFIG
  7198. # _LT_LANG_GCJ_CONFIG([TAG])
  7199. # --------------------------
  7200. # Ensure that the configuration variables for the GNU Java Compiler compiler
  7201. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7202. # to write the compiler configuration to `libtool'.
  7203. m4_defun([_LT_LANG_GCJ_CONFIG],
  7204. [AC_REQUIRE([LT_PROG_GCJ])dnl
  7205. AC_LANG_SAVE
  7206. # Source file extension for Java test sources.
  7207. ac_ext=java
  7208. # Object file extension for compiled Java test sources.
  7209. objext=o
  7210. _LT_TAGVAR(objext, $1)=$objext
  7211. # Code to be used in simple compile tests
  7212. lt_simple_compile_test_code="class foo {}"
  7213. # Code to be used in simple link tests
  7214. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  7215. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7216. _LT_TAG_COMPILER
  7217. # save warnings/boilerplate of simple test code
  7218. _LT_COMPILER_BOILERPLATE
  7219. _LT_LINKER_BOILERPLATE
  7220. # Allow CC to be a program name with arguments.
  7221. lt_save_CC=$CC
  7222. lt_save_CFLAGS=$CFLAGS
  7223. lt_save_GCC=$GCC
  7224. GCC=yes
  7225. CC=${GCJ-"gcj"}
  7226. CFLAGS=$GCJFLAGS
  7227. compiler=$CC
  7228. _LT_TAGVAR(compiler, $1)=$CC
  7229. _LT_TAGVAR(LD, $1)="$LD"
  7230. _LT_CC_BASENAME([$compiler])
  7231. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  7232. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7233. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7234. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7235. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7236. if test -n "$compiler"; then
  7237. _LT_COMPILER_NO_RTTI($1)
  7238. _LT_COMPILER_PIC($1)
  7239. _LT_COMPILER_C_O($1)
  7240. _LT_COMPILER_FILE_LOCKS($1)
  7241. _LT_LINKER_SHLIBS($1)
  7242. _LT_LINKER_HARDCODE_LIBPATH($1)
  7243. _LT_CONFIG($1)
  7244. fi
  7245. AC_LANG_RESTORE
  7246. GCC=$lt_save_GCC
  7247. CC=$lt_save_CC
  7248. CFLAGS=$lt_save_CFLAGS
  7249. ])# _LT_LANG_GCJ_CONFIG
  7250. # _LT_LANG_RC_CONFIG([TAG])
  7251. # -------------------------
  7252. # Ensure that the configuration variables for the Windows resource compiler
  7253. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7254. # to write the compiler configuration to `libtool'.
  7255. m4_defun([_LT_LANG_RC_CONFIG],
  7256. [AC_REQUIRE([LT_PROG_RC])dnl
  7257. AC_LANG_SAVE
  7258. # Source file extension for RC test sources.
  7259. ac_ext=rc
  7260. # Object file extension for compiled RC test sources.
  7261. objext=o
  7262. _LT_TAGVAR(objext, $1)=$objext
  7263. # Code to be used in simple compile tests
  7264. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  7265. # Code to be used in simple link tests
  7266. lt_simple_link_test_code="$lt_simple_compile_test_code"
  7267. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7268. _LT_TAG_COMPILER
  7269. # save warnings/boilerplate of simple test code
  7270. _LT_COMPILER_BOILERPLATE
  7271. _LT_LINKER_BOILERPLATE
  7272. # Allow CC to be a program name with arguments.
  7273. lt_save_CC="$CC"
  7274. lt_save_CFLAGS=$CFLAGS
  7275. lt_save_GCC=$GCC
  7276. GCC=
  7277. CC=${RC-"windres"}
  7278. CFLAGS=
  7279. compiler=$CC
  7280. _LT_TAGVAR(compiler, $1)=$CC
  7281. _LT_CC_BASENAME([$compiler])
  7282. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  7283. if test -n "$compiler"; then
  7284. :
  7285. _LT_CONFIG($1)
  7286. fi
  7287. GCC=$lt_save_GCC
  7288. AC_LANG_RESTORE
  7289. CC=$lt_save_CC
  7290. CFLAGS=$lt_save_CFLAGS
  7291. ])# _LT_LANG_RC_CONFIG
  7292. # LT_PROG_GCJ
  7293. # -----------
  7294. AC_DEFUN([LT_PROG_GCJ],
  7295. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  7296. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  7297. [AC_CHECK_TOOL(GCJ, gcj,)
  7298. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  7299. AC_SUBST(GCJFLAGS)])])[]dnl
  7300. ])
  7301. # Old name:
  7302. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  7303. dnl aclocal-1.4 backwards compatibility:
  7304. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  7305. # LT_PROG_RC
  7306. # ----------
  7307. AC_DEFUN([LT_PROG_RC],
  7308. [AC_CHECK_TOOL(RC, windres,)
  7309. ])
  7310. # Old name:
  7311. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  7312. dnl aclocal-1.4 backwards compatibility:
  7313. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  7314. # _LT_DECL_EGREP
  7315. # --------------
  7316. # If we don't have a new enough Autoconf to choose the best grep
  7317. # available, choose the one first in the user's PATH.
  7318. m4_defun([_LT_DECL_EGREP],
  7319. [AC_REQUIRE([AC_PROG_EGREP])dnl
  7320. AC_REQUIRE([AC_PROG_FGREP])dnl
  7321. test -z "$GREP" && GREP=grep
  7322. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  7323. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  7324. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  7325. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  7326. AC_SUBST([GREP])
  7327. ])
  7328. # _LT_DECL_OBJDUMP
  7329. # --------------
  7330. # If we don't have a new enough Autoconf to choose the best objdump
  7331. # available, choose the one first in the user's PATH.
  7332. m4_defun([_LT_DECL_OBJDUMP],
  7333. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7334. test -z "$OBJDUMP" && OBJDUMP=objdump
  7335. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  7336. AC_SUBST([OBJDUMP])
  7337. ])
  7338. # _LT_DECL_DLLTOOL
  7339. # ----------------
  7340. # Ensure DLLTOOL variable is set.
  7341. m4_defun([_LT_DECL_DLLTOOL],
  7342. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7343. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7344. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  7345. AC_SUBST([DLLTOOL])
  7346. ])
  7347. # _LT_DECL_SED
  7348. # ------------
  7349. # Check for a fully-functional sed program, that truncates
  7350. # as few characters as possible. Prefer GNU sed if found.
  7351. m4_defun([_LT_DECL_SED],
  7352. [AC_PROG_SED
  7353. test -z "$SED" && SED=sed
  7354. Xsed="$SED -e 1s/^X//"
  7355. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  7356. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  7357. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  7358. ])# _LT_DECL_SED
  7359. m4_ifndef([AC_PROG_SED], [
  7360. # NOTE: This macro has been submitted for inclusion into #
  7361. # GNU Autoconf as AC_PROG_SED. When it is available in #
  7362. # a released version of Autoconf we should remove this #
  7363. # macro and use it instead. #
  7364. m4_defun([AC_PROG_SED],
  7365. [AC_MSG_CHECKING([for a sed that does not truncate output])
  7366. AC_CACHE_VAL(lt_cv_path_SED,
  7367. [# Loop through the user's path and test for sed and gsed.
  7368. # Then use that list of sed's as ones to test for truncation.
  7369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7370. for as_dir in $PATH
  7371. do
  7372. IFS=$as_save_IFS
  7373. test -z "$as_dir" && as_dir=.
  7374. for lt_ac_prog in sed gsed; do
  7375. for ac_exec_ext in '' $ac_executable_extensions; do
  7376. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7377. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7378. fi
  7379. done
  7380. done
  7381. done
  7382. IFS=$as_save_IFS
  7383. lt_ac_max=0
  7384. lt_ac_count=0
  7385. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7386. # along with /bin/sed that truncates output.
  7387. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7388. test ! -f $lt_ac_sed && continue
  7389. cat /dev/null > conftest.in
  7390. lt_ac_count=0
  7391. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7392. # Check for GNU sed and select it if it is found.
  7393. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7394. lt_cv_path_SED=$lt_ac_sed
  7395. break
  7396. fi
  7397. while true; do
  7398. cat conftest.in conftest.in >conftest.tmp
  7399. mv conftest.tmp conftest.in
  7400. cp conftest.in conftest.nl
  7401. echo >>conftest.nl
  7402. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7403. cmp -s conftest.out conftest.nl || break
  7404. # 10000 chars as input seems more than enough
  7405. test $lt_ac_count -gt 10 && break
  7406. lt_ac_count=`expr $lt_ac_count + 1`
  7407. if test $lt_ac_count -gt $lt_ac_max; then
  7408. lt_ac_max=$lt_ac_count
  7409. lt_cv_path_SED=$lt_ac_sed
  7410. fi
  7411. done
  7412. done
  7413. ])
  7414. SED=$lt_cv_path_SED
  7415. AC_SUBST([SED])
  7416. AC_MSG_RESULT([$SED])
  7417. ])#AC_PROG_SED
  7418. ])#m4_ifndef
  7419. # Old name:
  7420. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7421. dnl aclocal-1.4 backwards compatibility:
  7422. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7423. # _LT_CHECK_SHELL_FEATURES
  7424. # ------------------------
  7425. # Find out whether the shell is Bourne or XSI compatible,
  7426. # or has some other useful features.
  7427. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7428. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7429. # Try some XSI features
  7430. xsi_shell=no
  7431. ( _lt_dummy="a/b/c"
  7432. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7433. = c,a/b,b/c, \
  7434. && eval 'test $(( 1 + 1 )) -eq 2 \
  7435. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7436. && xsi_shell=yes
  7437. AC_MSG_RESULT([$xsi_shell])
  7438. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7439. AC_MSG_CHECKING([whether the shell understands "+="])
  7440. lt_shell_append=no
  7441. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7442. >/dev/null 2>&1 \
  7443. && lt_shell_append=yes
  7444. AC_MSG_RESULT([$lt_shell_append])
  7445. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7446. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7447. lt_unset=unset
  7448. else
  7449. lt_unset=false
  7450. fi
  7451. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7452. # test EBCDIC or ASCII
  7453. case `echo X|tr X '\101'` in
  7454. A) # ASCII based system
  7455. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7456. lt_SP2NL='tr \040 \012'
  7457. lt_NL2SP='tr \015\012 \040\040'
  7458. ;;
  7459. *) # EBCDIC based system
  7460. lt_SP2NL='tr \100 \n'
  7461. lt_NL2SP='tr \r\n \100\100'
  7462. ;;
  7463. esac
  7464. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7465. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7466. ])# _LT_CHECK_SHELL_FEATURES
  7467. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  7468. # ------------------------------------------------------
  7469. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  7470. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  7471. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  7472. [dnl {
  7473. sed -e '/^$1 ()$/,/^} # $1 /c\
  7474. $1 ()\
  7475. {\
  7476. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  7477. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  7478. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7479. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7480. test 0 -eq $? || _lt_function_replace_fail=:
  7481. ])
  7482. # _LT_PROG_REPLACE_SHELLFNS
  7483. # -------------------------
  7484. # Replace existing portable implementations of several shell functions with
  7485. # equivalent extended shell implementations where those features are available..
  7486. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  7487. [if test x"$xsi_shell" = xyes; then
  7488. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  7489. case ${1} in
  7490. */*) func_dirname_result="${1%/*}${2}" ;;
  7491. * ) func_dirname_result="${3}" ;;
  7492. esac])
  7493. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  7494. func_basename_result="${1##*/}"])
  7495. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  7496. case ${1} in
  7497. */*) func_dirname_result="${1%/*}${2}" ;;
  7498. * ) func_dirname_result="${3}" ;;
  7499. esac
  7500. func_basename_result="${1##*/}"])
  7501. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  7502. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7503. # positional parameters, so assign one to ordinary parameter first.
  7504. func_stripname_result=${3}
  7505. func_stripname_result=${func_stripname_result#"${1}"}
  7506. func_stripname_result=${func_stripname_result%"${2}"}])
  7507. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  7508. func_split_long_opt_name=${1%%=*}
  7509. func_split_long_opt_arg=${1#*=}])
  7510. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  7511. func_split_short_opt_arg=${1#??}
  7512. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  7513. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7514. case ${1} in
  7515. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7516. *) func_lo2o_result=${1} ;;
  7517. esac])
  7518. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7519. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7520. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7521. fi
  7522. if test x"$lt_shell_append" = xyes; then
  7523. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7524. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7525. func_quote_for_eval "${2}"
  7526. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7527. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7528. # Save a `func_append' function call where possible by direct use of '+='
  7529. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7530. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7531. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7532. test 0 -eq $? || _lt_function_replace_fail=:
  7533. else
  7534. # Save a `func_append' function call even when '+=' is not available
  7535. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7536. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7537. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7538. test 0 -eq $? || _lt_function_replace_fail=:
  7539. fi
  7540. if test x"$_lt_function_replace_fail" = x":"; then
  7541. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7542. fi
  7543. ])
  7544. # _LT_PATH_CONVERSION_FUNCTIONS
  7545. # -----------------------------
  7546. # Determine which file name conversion functions should be used by
  7547. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7548. # for certain cross-compile configurations and native mingw.
  7549. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7550. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7551. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7552. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7553. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7554. [case $host in
  7555. *-*-mingw* )
  7556. case $build in
  7557. *-*-mingw* ) # actually msys
  7558. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7559. ;;
  7560. *-*-cygwin* )
  7561. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7562. ;;
  7563. * ) # otherwise, assume *nix
  7564. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7565. ;;
  7566. esac
  7567. ;;
  7568. *-*-cygwin* )
  7569. case $build in
  7570. *-*-mingw* ) # actually msys
  7571. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7572. ;;
  7573. *-*-cygwin* )
  7574. lt_cv_to_host_file_cmd=func_convert_file_noop
  7575. ;;
  7576. * ) # otherwise, assume *nix
  7577. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7578. ;;
  7579. esac
  7580. ;;
  7581. * ) # unhandled hosts (and "normal" native builds)
  7582. lt_cv_to_host_file_cmd=func_convert_file_noop
  7583. ;;
  7584. esac
  7585. ])
  7586. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7587. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7588. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7589. [0], [convert $build file names to $host format])dnl
  7590. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7591. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7592. [#assume ordinary cross tools, or native build.
  7593. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7594. case $host in
  7595. *-*-mingw* )
  7596. case $build in
  7597. *-*-mingw* ) # actually msys
  7598. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7599. ;;
  7600. esac
  7601. ;;
  7602. esac
  7603. ])
  7604. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7605. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7606. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7607. [0], [convert $build files to toolchain format])dnl
  7608. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7609. # Helper functions for option handling. -*- Autoconf -*-
  7610. #
  7611. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7612. # Inc.
  7613. # Written by Gary V. Vaughan, 2004
  7614. #
  7615. # This file is free software; the Free Software Foundation gives
  7616. # unlimited permission to copy and/or distribute it, with or without
  7617. # modifications, as long as this notice is preserved.
  7618. # serial 7 ltoptions.m4
  7619. # This is to help aclocal find these macros, as it can't see m4_define.
  7620. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7621. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7622. # ------------------------------------------
  7623. m4_define([_LT_MANGLE_OPTION],
  7624. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7625. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7626. # ---------------------------------------
  7627. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7628. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7629. # saved as a flag.
  7630. m4_define([_LT_SET_OPTION],
  7631. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7632. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7633. _LT_MANGLE_DEFUN([$1], [$2]),
  7634. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7635. ])
  7636. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7637. # ------------------------------------------------------------
  7638. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7639. m4_define([_LT_IF_OPTION],
  7640. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7641. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7642. # -------------------------------------------------------
  7643. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7644. # are set.
  7645. m4_define([_LT_UNLESS_OPTIONS],
  7646. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7647. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7648. [m4_define([$0_found])])])[]dnl
  7649. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7650. ])[]dnl
  7651. ])
  7652. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7653. # ----------------------------------------
  7654. # OPTION-LIST is a space-separated list of Libtool options associated
  7655. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7656. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7657. # the unknown option and exit.
  7658. m4_defun([_LT_SET_OPTIONS],
  7659. [# Set options
  7660. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7661. [_LT_SET_OPTION([$1], _LT_Option)])
  7662. m4_if([$1],[LT_INIT],[
  7663. dnl
  7664. dnl Simply set some default values (i.e off) if boolean options were not
  7665. dnl specified:
  7666. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7667. ])
  7668. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7669. ])
  7670. dnl
  7671. dnl If no reference was made to various pairs of opposing options, then
  7672. dnl we run the default mode handler for the pair. For example, if neither
  7673. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7674. dnl archives by default:
  7675. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7676. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7677. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7678. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7679. [_LT_ENABLE_FAST_INSTALL])
  7680. ])
  7681. ])# _LT_SET_OPTIONS
  7682. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7683. # -----------------------------------------
  7684. m4_define([_LT_MANGLE_DEFUN],
  7685. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7686. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7687. # -----------------------------------------------
  7688. m4_define([LT_OPTION_DEFINE],
  7689. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7690. ])# LT_OPTION_DEFINE
  7691. # dlopen
  7692. # ------
  7693. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7694. ])
  7695. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7696. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7697. AC_DIAGNOSE([obsolete],
  7698. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7699. put the `dlopen' option into LT_INIT's first parameter.])
  7700. ])
  7701. dnl aclocal-1.4 backwards compatibility:
  7702. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7703. # win32-dll
  7704. # ---------
  7705. # Declare package support for building win32 dll's.
  7706. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7707. [enable_win32_dll=yes
  7708. case $host in
  7709. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7710. AC_CHECK_TOOL(AS, as, false)
  7711. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7712. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7713. ;;
  7714. esac
  7715. test -z "$AS" && AS=as
  7716. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7717. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7718. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7719. test -z "$OBJDUMP" && OBJDUMP=objdump
  7720. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7721. ])# win32-dll
  7722. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7723. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7724. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7725. AC_DIAGNOSE([obsolete],
  7726. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7727. put the `win32-dll' option into LT_INIT's first parameter.])
  7728. ])
  7729. dnl aclocal-1.4 backwards compatibility:
  7730. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7731. # _LT_ENABLE_SHARED([DEFAULT])
  7732. # ----------------------------
  7733. # implement the --enable-shared flag, and supports the `shared' and
  7734. # `disable-shared' LT_INIT options.
  7735. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7736. m4_define([_LT_ENABLE_SHARED],
  7737. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7738. AC_ARG_ENABLE([shared],
  7739. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7740. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7741. [p=${PACKAGE-default}
  7742. case $enableval in
  7743. yes) enable_shared=yes ;;
  7744. no) enable_shared=no ;;
  7745. *)
  7746. enable_shared=no
  7747. # Look at the argument we got. We use all the common list separators.
  7748. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7749. for pkg in $enableval; do
  7750. IFS="$lt_save_ifs"
  7751. if test "X$pkg" = "X$p"; then
  7752. enable_shared=yes
  7753. fi
  7754. done
  7755. IFS="$lt_save_ifs"
  7756. ;;
  7757. esac],
  7758. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7759. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7760. [Whether or not to build shared libraries])
  7761. ])# _LT_ENABLE_SHARED
  7762. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7763. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7764. # Old names:
  7765. AC_DEFUN([AC_ENABLE_SHARED],
  7766. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7767. ])
  7768. AC_DEFUN([AC_DISABLE_SHARED],
  7769. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7770. ])
  7771. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7772. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7773. dnl aclocal-1.4 backwards compatibility:
  7774. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7775. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7776. # _LT_ENABLE_STATIC([DEFAULT])
  7777. # ----------------------------
  7778. # implement the --enable-static flag, and support the `static' and
  7779. # `disable-static' LT_INIT options.
  7780. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7781. m4_define([_LT_ENABLE_STATIC],
  7782. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7783. AC_ARG_ENABLE([static],
  7784. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7785. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7786. [p=${PACKAGE-default}
  7787. case $enableval in
  7788. yes) enable_static=yes ;;
  7789. no) enable_static=no ;;
  7790. *)
  7791. enable_static=no
  7792. # Look at the argument we got. We use all the common list separators.
  7793. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7794. for pkg in $enableval; do
  7795. IFS="$lt_save_ifs"
  7796. if test "X$pkg" = "X$p"; then
  7797. enable_static=yes
  7798. fi
  7799. done
  7800. IFS="$lt_save_ifs"
  7801. ;;
  7802. esac],
  7803. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7804. _LT_DECL([build_old_libs], [enable_static], [0],
  7805. [Whether or not to build static libraries])
  7806. ])# _LT_ENABLE_STATIC
  7807. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7808. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7809. # Old names:
  7810. AC_DEFUN([AC_ENABLE_STATIC],
  7811. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7812. ])
  7813. AC_DEFUN([AC_DISABLE_STATIC],
  7814. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7815. ])
  7816. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7817. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7818. dnl aclocal-1.4 backwards compatibility:
  7819. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7820. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7821. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7822. # ----------------------------------
  7823. # implement the --enable-fast-install flag, and support the `fast-install'
  7824. # and `disable-fast-install' LT_INIT options.
  7825. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7826. m4_define([_LT_ENABLE_FAST_INSTALL],
  7827. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7828. AC_ARG_ENABLE([fast-install],
  7829. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7830. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7831. [p=${PACKAGE-default}
  7832. case $enableval in
  7833. yes) enable_fast_install=yes ;;
  7834. no) enable_fast_install=no ;;
  7835. *)
  7836. enable_fast_install=no
  7837. # Look at the argument we got. We use all the common list separators.
  7838. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7839. for pkg in $enableval; do
  7840. IFS="$lt_save_ifs"
  7841. if test "X$pkg" = "X$p"; then
  7842. enable_fast_install=yes
  7843. fi
  7844. done
  7845. IFS="$lt_save_ifs"
  7846. ;;
  7847. esac],
  7848. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7849. _LT_DECL([fast_install], [enable_fast_install], [0],
  7850. [Whether or not to optimize for fast installation])dnl
  7851. ])# _LT_ENABLE_FAST_INSTALL
  7852. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7853. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7854. # Old names:
  7855. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7856. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7857. AC_DIAGNOSE([obsolete],
  7858. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7859. the `fast-install' option into LT_INIT's first parameter.])
  7860. ])
  7861. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7862. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7863. AC_DIAGNOSE([obsolete],
  7864. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7865. the `disable-fast-install' option into LT_INIT's first parameter.])
  7866. ])
  7867. dnl aclocal-1.4 backwards compatibility:
  7868. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7869. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7870. # _LT_WITH_PIC([MODE])
  7871. # --------------------
  7872. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7873. # LT_INIT options.
  7874. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7875. m4_define([_LT_WITH_PIC],
  7876. [AC_ARG_WITH([pic],
  7877. [AS_HELP_STRING([--with-pic],
  7878. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7879. [pic_mode="$withval"],
  7880. [pic_mode=default])
  7881. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7882. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7883. ])# _LT_WITH_PIC
  7884. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7885. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7886. # Old name:
  7887. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7888. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7889. AC_DIAGNOSE([obsolete],
  7890. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7891. put the `pic-only' option into LT_INIT's first parameter.])
  7892. ])
  7893. dnl aclocal-1.4 backwards compatibility:
  7894. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7895. m4_define([_LTDL_MODE], [])
  7896. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7897. [m4_define([_LTDL_MODE], [nonrecursive])])
  7898. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7899. [m4_define([_LTDL_MODE], [recursive])])
  7900. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7901. [m4_define([_LTDL_MODE], [subproject])])
  7902. m4_define([_LTDL_TYPE], [])
  7903. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7904. [m4_define([_LTDL_TYPE], [installable])])
  7905. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7906. [m4_define([_LTDL_TYPE], [convenience])])
  7907. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7908. #
  7909. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7910. # Written by Gary V. Vaughan, 2004
  7911. #
  7912. # This file is free software; the Free Software Foundation gives
  7913. # unlimited permission to copy and/or distribute it, with or without
  7914. # modifications, as long as this notice is preserved.
  7915. # serial 6 ltsugar.m4
  7916. # This is to help aclocal find these macros, as it can't see m4_define.
  7917. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7918. # lt_join(SEP, ARG1, [ARG2...])
  7919. # -----------------------------
  7920. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7921. # associated separator.
  7922. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7923. # versions in m4sugar had bugs.
  7924. m4_define([lt_join],
  7925. [m4_if([$#], [1], [],
  7926. [$#], [2], [[$2]],
  7927. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7928. m4_define([_lt_join],
  7929. [m4_if([$#$2], [2], [],
  7930. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7931. # lt_car(LIST)
  7932. # lt_cdr(LIST)
  7933. # ------------
  7934. # Manipulate m4 lists.
  7935. # These macros are necessary as long as will still need to support
  7936. # Autoconf-2.59 which quotes differently.
  7937. m4_define([lt_car], [[$1]])
  7938. m4_define([lt_cdr],
  7939. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7940. [$#], 1, [],
  7941. [m4_dquote(m4_shift($@))])])
  7942. m4_define([lt_unquote], $1)
  7943. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7944. # ------------------------------------------
  7945. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7946. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7947. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7948. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7949. # than defined and empty).
  7950. #
  7951. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7952. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7953. m4_define([lt_append],
  7954. [m4_define([$1],
  7955. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7956. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7957. # ----------------------------------------------------------
  7958. # Produce a SEP delimited list of all paired combinations of elements of
  7959. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7960. # has the form PREFIXmINFIXSUFFIXn.
  7961. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7962. m4_define([lt_combine],
  7963. [m4_if(m4_eval([$# > 3]), [1],
  7964. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7965. [[m4_foreach([_Lt_prefix], [$2],
  7966. [m4_foreach([_Lt_suffix],
  7967. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7968. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7969. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7970. # -----------------------------------------------------------------------
  7971. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7972. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7973. m4_define([lt_if_append_uniq],
  7974. [m4_ifdef([$1],
  7975. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7976. [lt_append([$1], [$2], [$3])$4],
  7977. [$5])],
  7978. [lt_append([$1], [$2], [$3])$4])])
  7979. # lt_dict_add(DICT, KEY, VALUE)
  7980. # -----------------------------
  7981. m4_define([lt_dict_add],
  7982. [m4_define([$1($2)], [$3])])
  7983. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7984. # --------------------------------------------
  7985. m4_define([lt_dict_add_subkey],
  7986. [m4_define([$1($2:$3)], [$4])])
  7987. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7988. # ----------------------------------
  7989. m4_define([lt_dict_fetch],
  7990. [m4_ifval([$3],
  7991. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7992. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7993. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7994. # -----------------------------------------------------------------
  7995. m4_define([lt_if_dict_fetch],
  7996. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7997. [$5],
  7998. [$6])])
  7999. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  8000. # --------------------------------------------------------------
  8001. m4_define([lt_dict_filter],
  8002. [m4_if([$5], [], [],
  8003. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  8004. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  8005. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  8006. ])
  8007. # ltversion.m4 -- version numbers -*- Autoconf -*-
  8008. #
  8009. # Copyright (C) 2004 Free Software Foundation, Inc.
  8010. # Written by Scott James Remnant, 2004
  8011. #
  8012. # This file is free software; the Free Software Foundation gives
  8013. # unlimited permission to copy and/or distribute it, with or without
  8014. # modifications, as long as this notice is preserved.
  8015. # @configure_input@
  8016. # serial 3293 ltversion.m4
  8017. # This file is part of GNU Libtool
  8018. m4_define([LT_PACKAGE_VERSION], [2.4])
  8019. m4_define([LT_PACKAGE_REVISION], [1.3293])
  8020. AC_DEFUN([LTVERSION_VERSION],
  8021. [macro_version='2.4'
  8022. macro_revision='1.3293'
  8023. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  8024. _LT_DECL(, macro_revision, 0)
  8025. ])
  8026. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  8027. #
  8028. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  8029. # Written by Scott James Remnant, 2004.
  8030. #
  8031. # This file is free software; the Free Software Foundation gives
  8032. # unlimited permission to copy and/or distribute it, with or without
  8033. # modifications, as long as this notice is preserved.
  8034. # serial 5 lt~obsolete.m4
  8035. # These exist entirely to fool aclocal when bootstrapping libtool.
  8036. #
  8037. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  8038. # which have later been changed to m4_define as they aren't part of the
  8039. # exported API, or moved to Autoconf or Automake where they belong.
  8040. #
  8041. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  8042. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  8043. # using a macro with the same name in our local m4/libtool.m4 it'll
  8044. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  8045. # and doesn't know about Autoconf macros at all.)
  8046. #
  8047. # So we provide this file, which has a silly filename so it's always
  8048. # included after everything else. This provides aclocal with the
  8049. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  8050. # because those macros already exist, or will be overwritten later.
  8051. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  8052. #
  8053. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  8054. # Yes, that means every name once taken will need to remain here until
  8055. # we give up compatibility with versions before 1.7, at which point
  8056. # we need to keep only those names which we still refer to.
  8057. # This is to help aclocal find these macros, as it can't see m4_define.
  8058. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  8059. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  8060. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  8061. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  8062. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  8063. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  8064. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  8065. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  8066. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  8067. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  8068. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  8069. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  8070. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  8071. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  8072. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  8073. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  8074. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  8075. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  8076. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  8077. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  8078. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  8079. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  8080. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  8081. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  8082. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  8083. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  8084. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  8085. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  8086. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  8087. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  8088. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  8089. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  8090. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  8091. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  8092. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  8093. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  8094. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  8095. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  8096. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  8097. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  8098. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  8099. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  8100. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  8101. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  8102. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  8103. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  8104. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  8105. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  8106. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  8107. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  8108. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  8109. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  8110. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  8111. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  8112. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  8113. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  8114. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  8115. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  8116. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  8117. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  8118. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  8119. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  8120. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  8121. # serial 1 (pkg-config-0.24)
  8122. #
  8123. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  8124. #
  8125. # This program is free software; you can redistribute it and/or modify
  8126. # it under the terms of the GNU General Public License as published by
  8127. # the Free Software Foundation; either version 2 of the License, or
  8128. # (at your option) any later version.
  8129. #
  8130. # This program is distributed in the hope that it will be useful, but
  8131. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8132. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8133. # General Public License for more details.
  8134. #
  8135. # You should have received a copy of the GNU General Public License
  8136. # along with this program; if not, write to the Free Software
  8137. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  8138. #
  8139. # As a special exception to the GNU General Public License, if you
  8140. # distribute this file as part of a program that contains a
  8141. # configuration script generated by Autoconf, you may include it under
  8142. # the same distribution terms that you use for the rest of that program.
  8143. # PKG_PROG_PKG_CONFIG([MIN-VERSION])
  8144. # ----------------------------------
  8145. AC_DEFUN([PKG_PROG_PKG_CONFIG],
  8146. [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  8147. m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
  8148. m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
  8149. AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  8150. AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  8151. AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  8152. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  8153. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  8154. fi
  8155. if test -n "$PKG_CONFIG"; then
  8156. _pkg_min_version=m4_default([$1], [0.9.0])
  8157. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  8158. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  8159. AC_MSG_RESULT([yes])
  8160. else
  8161. AC_MSG_RESULT([no])
  8162. PKG_CONFIG=""
  8163. fi
  8164. fi[]dnl
  8165. ])# PKG_PROG_PKG_CONFIG
  8166. # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  8167. #
  8168. # Check to see whether a particular set of modules exists. Similar
  8169. # to PKG_CHECK_MODULES(), but does not set variables or print errors.
  8170. #
  8171. # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  8172. # only at the first occurence in configure.ac, so if the first place
  8173. # it's called might be skipped (such as if it is within an "if", you
  8174. # have to call PKG_CHECK_EXISTS manually
  8175. # --------------------------------------------------------------
  8176. AC_DEFUN([PKG_CHECK_EXISTS],
  8177. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  8178. if test -n "$PKG_CONFIG" && \
  8179. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  8180. m4_default([$2], [:])
  8181. m4_ifvaln([$3], [else
  8182. $3])dnl
  8183. fi])
  8184. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  8185. # ---------------------------------------------
  8186. m4_define([_PKG_CONFIG],
  8187. [if test -n "$$1"; then
  8188. pkg_cv_[]$1="$$1"
  8189. elif test -n "$PKG_CONFIG"; then
  8190. PKG_CHECK_EXISTS([$3],
  8191. [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
  8192. test "x$?" != "x0" && pkg_failed=yes ],
  8193. [pkg_failed=yes])
  8194. else
  8195. pkg_failed=untried
  8196. fi[]dnl
  8197. ])# _PKG_CONFIG
  8198. # _PKG_SHORT_ERRORS_SUPPORTED
  8199. # -----------------------------
  8200. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  8201. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  8202. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8203. _pkg_short_errors_supported=yes
  8204. else
  8205. _pkg_short_errors_supported=no
  8206. fi[]dnl
  8207. ])# _PKG_SHORT_ERRORS_SUPPORTED
  8208. # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  8209. # [ACTION-IF-NOT-FOUND])
  8210. #
  8211. #
  8212. # Note that if there is a possibility the first call to
  8213. # PKG_CHECK_MODULES might not happen, you should be sure to include an
  8214. # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  8215. #
  8216. #
  8217. # --------------------------------------------------------------
  8218. AC_DEFUN([PKG_CHECK_MODULES],
  8219. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  8220. AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  8221. AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  8222. pkg_failed=no
  8223. AC_MSG_CHECKING([for $1])
  8224. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  8225. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  8226. m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  8227. and $1[]_LIBS to avoid the need to call pkg-config.
  8228. See the pkg-config man page for more details.])
  8229. if test $pkg_failed = yes; then
  8230. AC_MSG_RESULT([no])
  8231. _PKG_SHORT_ERRORS_SUPPORTED
  8232. if test $_pkg_short_errors_supported = yes; then
  8233. $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
  8234. else
  8235. $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
  8236. fi
  8237. # Put the nasty error message in config.log where it belongs
  8238. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  8239. m4_default([$4], [AC_MSG_ERROR(
  8240. [Package requirements ($2) were not met:
  8241. $$1_PKG_ERRORS
  8242. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8243. installed software in a non-standard prefix.
  8244. _PKG_TEXT])[]dnl
  8245. ])
  8246. elif test $pkg_failed = untried; then
  8247. AC_MSG_RESULT([no])
  8248. m4_default([$4], [AC_MSG_FAILURE(
  8249. [The pkg-config script could not be found or is too old. Make sure it
  8250. is in your PATH or set the PKG_CONFIG environment variable to the full
  8251. path to pkg-config.
  8252. _PKG_TEXT
  8253. To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
  8254. ])
  8255. else
  8256. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  8257. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  8258. AC_MSG_RESULT([yes])
  8259. $3
  8260. fi[]dnl
  8261. ])# PKG_CHECK_MODULES
  8262. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  8263. #
  8264. # This file is free software; the Free Software Foundation
  8265. # gives unlimited permission to copy and/or distribute it,
  8266. # with or without modifications, as long as this notice is preserved.
  8267. # AM_AUTOMAKE_VERSION(VERSION)
  8268. # ----------------------------
  8269. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  8270. # generated from the m4 files accompanying Automake X.Y.
  8271. # (This private macro should not be called outside this file.)
  8272. AC_DEFUN([AM_AUTOMAKE_VERSION],
  8273. [am__api_version='1.11'
  8274. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  8275. dnl require some minimum version. Point them to the right macro.
  8276. m4_if([$1], [1.11.1], [],
  8277. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  8278. ])
  8279. # _AM_AUTOCONF_VERSION(VERSION)
  8280. # -----------------------------
  8281. # aclocal traces this macro to find the Autoconf version.
  8282. # This is a private macro too. Using m4_define simplifies
  8283. # the logic in aclocal, which can simply ignore this definition.
  8284. m4_define([_AM_AUTOCONF_VERSION], [])
  8285. # AM_SET_CURRENT_AUTOMAKE_VERSION
  8286. # -------------------------------
  8287. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  8288. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  8289. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  8290. [AM_AUTOMAKE_VERSION([1.11.1])dnl
  8291. m4_ifndef([AC_AUTOCONF_VERSION],
  8292. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  8293. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  8294. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  8295. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  8296. #
  8297. # This file is free software; the Free Software Foundation
  8298. # gives unlimited permission to copy and/or distribute it,
  8299. # with or without modifications, as long as this notice is preserved.
  8300. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  8301. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  8302. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  8303. #
  8304. # Of course, Automake must honor this variable whenever it calls a
  8305. # tool from the auxiliary directory. The problem is that $srcdir (and
  8306. # therefore $ac_aux_dir as well) can be either absolute or relative,
  8307. # depending on how configure is run. This is pretty annoying, since
  8308. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  8309. # source directory, any form will work fine, but in subdirectories a
  8310. # relative path needs to be adjusted first.
  8311. #
  8312. # $ac_aux_dir/missing
  8313. # fails when called from a subdirectory if $ac_aux_dir is relative
  8314. # $top_srcdir/$ac_aux_dir/missing
  8315. # fails if $ac_aux_dir is absolute,
  8316. # fails when called from a subdirectory in a VPATH build with
  8317. # a relative $ac_aux_dir
  8318. #
  8319. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  8320. # are both prefixed by $srcdir. In an in-source build this is usually
  8321. # harmless because $srcdir is `.', but things will broke when you
  8322. # start a VPATH build or use an absolute $srcdir.
  8323. #
  8324. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  8325. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  8326. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  8327. # and then we would define $MISSING as
  8328. # MISSING="\${SHELL} $am_aux_dir/missing"
  8329. # This will work as long as MISSING is not called from configure, because
  8330. # unfortunately $(top_srcdir) has no meaning in configure.
  8331. # However there are other variables, like CC, which are often used in
  8332. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  8333. #
  8334. # Another solution, used here, is to always expand $ac_aux_dir to an
  8335. # absolute PATH. The drawback is that using absolute paths prevent a
  8336. # configured tree to be moved without reconfiguration.
  8337. AC_DEFUN([AM_AUX_DIR_EXPAND],
  8338. [dnl Rely on autoconf to set up CDPATH properly.
  8339. AC_PREREQ([2.50])dnl
  8340. # expand $ac_aux_dir to an absolute path
  8341. am_aux_dir=`cd $ac_aux_dir && pwd`
  8342. ])
  8343. # AM_CONDITIONAL -*- Autoconf -*-
  8344. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  8345. # Free Software Foundation, Inc.
  8346. #
  8347. # This file is free software; the Free Software Foundation
  8348. # gives unlimited permission to copy and/or distribute it,
  8349. # with or without modifications, as long as this notice is preserved.
  8350. # serial 9
  8351. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  8352. # -------------------------------------
  8353. # Define a conditional.
  8354. AC_DEFUN([AM_CONDITIONAL],
  8355. [AC_PREREQ(2.52)dnl
  8356. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  8357. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  8358. AC_SUBST([$1_TRUE])dnl
  8359. AC_SUBST([$1_FALSE])dnl
  8360. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  8361. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  8362. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  8363. if $2; then
  8364. $1_TRUE=
  8365. $1_FALSE='#'
  8366. else
  8367. $1_TRUE='#'
  8368. $1_FALSE=
  8369. fi
  8370. AC_CONFIG_COMMANDS_PRE(
  8371. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  8372. AC_MSG_ERROR([[conditional "$1" was never defined.
  8373. Usually this means the macro was only invoked conditionally.]])
  8374. fi])])
  8375. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  8376. # Free Software Foundation, Inc.
  8377. #
  8378. # This file is free software; the Free Software Foundation
  8379. # gives unlimited permission to copy and/or distribute it,
  8380. # with or without modifications, as long as this notice is preserved.
  8381. # serial 10
  8382. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  8383. # written in clear, in which case automake, when reading aclocal.m4,
  8384. # will think it sees a *use*, and therefore will trigger all it's
  8385. # C support machinery. Also note that it means that autoscan, seeing
  8386. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  8387. # _AM_DEPENDENCIES(NAME)
  8388. # ----------------------
  8389. # See how the compiler implements dependency checking.
  8390. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  8391. # We try a few techniques and use that to set a single cache variable.
  8392. #
  8393. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  8394. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  8395. # dependency, and given that the user is not expected to run this macro,
  8396. # just rely on AC_PROG_CC.
  8397. AC_DEFUN([_AM_DEPENDENCIES],
  8398. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  8399. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  8400. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  8401. AC_REQUIRE([AM_DEP_TRACK])dnl
  8402. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  8403. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  8404. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  8405. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  8406. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  8407. [depcc="$$1" am_compiler_list=])
  8408. AC_CACHE_CHECK([dependency style of $depcc],
  8409. [am_cv_$1_dependencies_compiler_type],
  8410. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8411. # We make a subdir and do the tests there. Otherwise we can end up
  8412. # making bogus files that we don't know about and never remove. For
  8413. # instance it was reported that on HP-UX the gcc test will end up
  8414. # making a dummy file named `D' -- because `-MD' means `put the output
  8415. # in D'.
  8416. mkdir conftest.dir
  8417. # Copy depcomp to subdir because otherwise we won't find it if we're
  8418. # using a relative directory.
  8419. cp "$am_depcomp" conftest.dir
  8420. cd conftest.dir
  8421. # We will build objects and dependencies in a subdirectory because
  8422. # it helps to detect inapplicable dependency modes. For instance
  8423. # both Tru64's cc and ICC support -MD to output dependencies as a
  8424. # side effect of compilation, but ICC will put the dependencies in
  8425. # the current directory while Tru64 will put them in the object
  8426. # directory.
  8427. mkdir sub
  8428. am_cv_$1_dependencies_compiler_type=none
  8429. if test "$am_compiler_list" = ""; then
  8430. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  8431. fi
  8432. am__universal=false
  8433. m4_case([$1], [CC],
  8434. [case " $depcc " in #(
  8435. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8436. esac],
  8437. [CXX],
  8438. [case " $depcc " in #(
  8439. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8440. esac])
  8441. for depmode in $am_compiler_list; do
  8442. # Setup a source with many dependencies, because some compilers
  8443. # like to wrap large dependency lists on column 80 (with \), and
  8444. # we should not choose a depcomp mode which is confused by this.
  8445. #
  8446. # We need to recreate these files for each test, as the compiler may
  8447. # overwrite some of them when testing with obscure command lines.
  8448. # This happens at least with the AIX C compiler.
  8449. : > sub/conftest.c
  8450. for i in 1 2 3 4 5 6; do
  8451. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8452. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8453. # Solaris 8's {/usr,}/bin/sh.
  8454. touch sub/conftst$i.h
  8455. done
  8456. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8457. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8458. # mode. It turns out that the SunPro C++ compiler does not properly
  8459. # handle `-M -o', and we need to detect this. Also, some Intel
  8460. # versions had trouble with output in subdirs
  8461. am__obj=sub/conftest.${OBJEXT-o}
  8462. am__minus_obj="-o $am__obj"
  8463. case $depmode in
  8464. gcc)
  8465. # This depmode causes a compiler race in universal mode.
  8466. test "$am__universal" = false || continue
  8467. ;;
  8468. nosideeffect)
  8469. # after this tag, mechanisms are not by side-effect, so they'll
  8470. # only be used when explicitly requested
  8471. if test "x$enable_dependency_tracking" = xyes; then
  8472. continue
  8473. else
  8474. break
  8475. fi
  8476. ;;
  8477. msvisualcpp | msvcmsys)
  8478. # This compiler won't grok `-c -o', but also, the minuso test has
  8479. # not run yet. These depmodes are late enough in the game, and
  8480. # so weak that their functioning should not be impacted.
  8481. am__obj=conftest.${OBJEXT-o}
  8482. am__minus_obj=
  8483. ;;
  8484. none) break ;;
  8485. esac
  8486. if depmode=$depmode \
  8487. source=sub/conftest.c object=$am__obj \
  8488. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8489. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  8490. >/dev/null 2>conftest.err &&
  8491. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8492. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8493. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8494. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8495. # icc doesn't choke on unknown options, it will just issue warnings
  8496. # or remarks (even with -Werror). So we grep stderr for any message
  8497. # that says an option was ignored or not supported.
  8498. # When given -MP, icc 7.0 and 7.1 complain thusly:
  8499. # icc: Command line warning: ignoring option '-M'; no argument required
  8500. # The diagnosis changed in icc 8.0:
  8501. # icc: Command line remark: option '-MP' not supported
  8502. if (grep 'ignoring option' conftest.err ||
  8503. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8504. am_cv_$1_dependencies_compiler_type=$depmode
  8505. break
  8506. fi
  8507. fi
  8508. done
  8509. cd ..
  8510. rm -rf conftest.dir
  8511. else
  8512. am_cv_$1_dependencies_compiler_type=none
  8513. fi
  8514. ])
  8515. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8516. AM_CONDITIONAL([am__fastdep$1], [
  8517. test "x$enable_dependency_tracking" != xno \
  8518. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8519. ])
  8520. # AM_SET_DEPDIR
  8521. # -------------
  8522. # Choose a directory name for dependency files.
  8523. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  8524. AC_DEFUN([AM_SET_DEPDIR],
  8525. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8526. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8527. ])
  8528. # AM_DEP_TRACK
  8529. # ------------
  8530. AC_DEFUN([AM_DEP_TRACK],
  8531. [AC_ARG_ENABLE(dependency-tracking,
  8532. [ --disable-dependency-tracking speeds up one-time build
  8533. --enable-dependency-tracking do not reject slow dependency extractors])
  8534. if test "x$enable_dependency_tracking" != xno; then
  8535. am_depcomp="$ac_aux_dir/depcomp"
  8536. AMDEPBACKSLASH='\'
  8537. fi
  8538. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8539. AC_SUBST([AMDEPBACKSLASH])dnl
  8540. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8541. ])
  8542. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8543. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  8544. # Free Software Foundation, Inc.
  8545. #
  8546. # This file is free software; the Free Software Foundation
  8547. # gives unlimited permission to copy and/or distribute it,
  8548. # with or without modifications, as long as this notice is preserved.
  8549. #serial 5
  8550. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8551. # ------------------------------
  8552. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8553. [{
  8554. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  8555. # are listed without --file. Let's play safe and only enable the eval
  8556. # if we detect the quoting.
  8557. case $CONFIG_FILES in
  8558. *\'*) eval set x "$CONFIG_FILES" ;;
  8559. *) set x $CONFIG_FILES ;;
  8560. esac
  8561. shift
  8562. for mf
  8563. do
  8564. # Strip MF so we end up with the name of the file.
  8565. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8566. # Check whether this is an Automake generated Makefile or not.
  8567. # We used to match only the files named `Makefile.in', but
  8568. # some people rename them; so instead we look at the file content.
  8569. # Grep'ing the first line is not enough: some people post-process
  8570. # each Makefile.in and add a new line on top of each file to say so.
  8571. # Grep'ing the whole file is not good either: AIX grep has a line
  8572. # limit of 2048, but all sed's we know have understand at least 4000.
  8573. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8574. dirpart=`AS_DIRNAME("$mf")`
  8575. else
  8576. continue
  8577. fi
  8578. # Extract the definition of DEPDIR, am__include, and am__quote
  8579. # from the Makefile without running `make'.
  8580. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8581. test -z "$DEPDIR" && continue
  8582. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8583. test -z "am__include" && continue
  8584. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8585. # When using ansi2knr, U may be empty or an underscore; expand it
  8586. U=`sed -n 's/^U = //p' < "$mf"`
  8587. # Find all dependency output files, they are included files with
  8588. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8589. # simplest approach to changing $(DEPDIR) to its actual value in the
  8590. # expansion.
  8591. for file in `sed -n "
  8592. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8593. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8594. # Make sure the directory exists.
  8595. test -f "$dirpart/$file" && continue
  8596. fdir=`AS_DIRNAME(["$file"])`
  8597. AS_MKDIR_P([$dirpart/$fdir])
  8598. # echo "creating $dirpart/$file"
  8599. echo '# dummy' > "$dirpart/$file"
  8600. done
  8601. done
  8602. }
  8603. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8604. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8605. # -----------------------------
  8606. # This macro should only be invoked once -- use via AC_REQUIRE.
  8607. #
  8608. # This code is only required when automatic dependency tracking
  8609. # is enabled. FIXME. This creates each `.P' file that we will
  8610. # need in order to bootstrap the dependency handling code.
  8611. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8612. [AC_CONFIG_COMMANDS([depfiles],
  8613. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8614. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8615. ])
  8616. # Do all the work for Automake. -*- Autoconf -*-
  8617. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8618. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  8619. #
  8620. # This file is free software; the Free Software Foundation
  8621. # gives unlimited permission to copy and/or distribute it,
  8622. # with or without modifications, as long as this notice is preserved.
  8623. # serial 16
  8624. # This macro actually does too much. Some checks are only needed if
  8625. # your package does certain things. But this isn't really a big deal.
  8626. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8627. # AM_INIT_AUTOMAKE([OPTIONS])
  8628. # -----------------------------------------------
  8629. # The call with PACKAGE and VERSION arguments is the old style
  8630. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8631. # and VERSION should now be passed to AC_INIT and removed from
  8632. # the call to AM_INIT_AUTOMAKE.
  8633. # We support both call styles for the transition. After
  8634. # the next Automake release, Autoconf can make the AC_INIT
  8635. # arguments mandatory, and then we can depend on a new Autoconf
  8636. # release and drop the old call support.
  8637. AC_DEFUN([AM_INIT_AUTOMAKE],
  8638. [AC_PREREQ([2.62])dnl
  8639. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8640. dnl the ones we care about.
  8641. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8642. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8643. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8644. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8645. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8646. # is not polluted with repeated "-I."
  8647. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8648. # test to see if srcdir already configured
  8649. if test -f $srcdir/config.status; then
  8650. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8651. fi
  8652. fi
  8653. # test whether we have cygpath
  8654. if test -z "$CYGPATH_W"; then
  8655. if (cygpath --version) >/dev/null 2>/dev/null; then
  8656. CYGPATH_W='cygpath -w'
  8657. else
  8658. CYGPATH_W=echo
  8659. fi
  8660. fi
  8661. AC_SUBST([CYGPATH_W])
  8662. # Define the identity of the package.
  8663. dnl Distinguish between old-style and new-style calls.
  8664. m4_ifval([$2],
  8665. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8666. AC_SUBST([PACKAGE], [$1])dnl
  8667. AC_SUBST([VERSION], [$2])],
  8668. [_AM_SET_OPTIONS([$1])dnl
  8669. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8670. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  8671. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8672. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8673. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8674. _AM_IF_OPTION([no-define],,
  8675. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8676. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8677. # Some tools Automake needs.
  8678. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8679. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8680. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8681. AM_MISSING_PROG(AUTOCONF, autoconf)
  8682. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8683. AM_MISSING_PROG(AUTOHEADER, autoheader)
  8684. AM_MISSING_PROG(MAKEINFO, makeinfo)
  8685. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8686. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8687. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8688. # We need awk for the "check" target. The system "awk" is bad on
  8689. # some platforms.
  8690. AC_REQUIRE([AC_PROG_AWK])dnl
  8691. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8692. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8693. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8694. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8695. [_AM_PROG_TAR([v7])])])
  8696. _AM_IF_OPTION([no-dependencies],,
  8697. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8698. [_AM_DEPENDENCIES(CC)],
  8699. [define([AC_PROG_CC],
  8700. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8701. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8702. [_AM_DEPENDENCIES(CXX)],
  8703. [define([AC_PROG_CXX],
  8704. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8705. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8706. [_AM_DEPENDENCIES(OBJC)],
  8707. [define([AC_PROG_OBJC],
  8708. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  8709. ])
  8710. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  8711. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  8712. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  8713. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8714. AC_CONFIG_COMMANDS_PRE(dnl
  8715. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8716. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8717. ])
  8718. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8719. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8720. dnl mangled by Autoconf and run in a shell conditional statement.
  8721. m4_define([_AC_COMPILER_EXEEXT],
  8722. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8723. # When config.status generates a header, we must update the stamp-h file.
  8724. # This file resides in the same directory as the config header
  8725. # that is generated. The stamp files are numbered to have different names.
  8726. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8727. # loop where config.status creates the headers, so we can generate
  8728. # our stamp files there.
  8729. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8730. [# Compute $1's index in $config_headers.
  8731. _am_arg=$1
  8732. _am_stamp_count=1
  8733. for _am_header in $config_headers :; do
  8734. case $_am_header in
  8735. $_am_arg | $_am_arg:* )
  8736. break ;;
  8737. * )
  8738. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8739. esac
  8740. done
  8741. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8742. # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  8743. #
  8744. # This file is free software; the Free Software Foundation
  8745. # gives unlimited permission to copy and/or distribute it,
  8746. # with or without modifications, as long as this notice is preserved.
  8747. # AM_PROG_INSTALL_SH
  8748. # ------------------
  8749. # Define $install_sh.
  8750. AC_DEFUN([AM_PROG_INSTALL_SH],
  8751. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8752. if test x"${install_sh}" != xset; then
  8753. case $am_aux_dir in
  8754. *\ * | *\ *)
  8755. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8756. *)
  8757. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8758. esac
  8759. fi
  8760. AC_SUBST(install_sh)])
  8761. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  8762. #
  8763. # This file is free software; the Free Software Foundation
  8764. # gives unlimited permission to copy and/or distribute it,
  8765. # with or without modifications, as long as this notice is preserved.
  8766. # serial 2
  8767. # Check whether the underlying file-system supports filenames
  8768. # with a leading dot. For instance MS-DOS doesn't.
  8769. AC_DEFUN([AM_SET_LEADING_DOT],
  8770. [rm -rf .tst 2>/dev/null
  8771. mkdir .tst 2>/dev/null
  8772. if test -d .tst; then
  8773. am__leading_dot=.
  8774. else
  8775. am__leading_dot=_
  8776. fi
  8777. rmdir .tst 2>/dev/null
  8778. AC_SUBST([am__leading_dot])])
  8779. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  8780. # From Jim Meyering
  8781. # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  8782. # Free Software Foundation, Inc.
  8783. #
  8784. # This file is free software; the Free Software Foundation
  8785. # gives unlimited permission to copy and/or distribute it,
  8786. # with or without modifications, as long as this notice is preserved.
  8787. # serial 5
  8788. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  8789. # ----------------------------------
  8790. # Control maintainer-specific portions of Makefiles.
  8791. # Default is to disable them, unless `enable' is passed literally.
  8792. # For symmetry, `disable' may be passed as well. Anyway, the user
  8793. # can override the default with the --enable/--disable switch.
  8794. AC_DEFUN([AM_MAINTAINER_MODE],
  8795. [m4_case(m4_default([$1], [disable]),
  8796. [enable], [m4_define([am_maintainer_other], [disable])],
  8797. [disable], [m4_define([am_maintainer_other], [enable])],
  8798. [m4_define([am_maintainer_other], [enable])
  8799. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  8800. AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  8801. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  8802. AC_ARG_ENABLE([maintainer-mode],
  8803. [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  8804. (and sometimes confusing) to the casual installer],
  8805. [USE_MAINTAINER_MODE=$enableval],
  8806. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  8807. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  8808. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  8809. MAINT=$MAINTAINER_MODE_TRUE
  8810. AC_SUBST([MAINT])dnl
  8811. ]
  8812. )
  8813. AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  8814. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8815. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  8816. #
  8817. # This file is free software; the Free Software Foundation
  8818. # gives unlimited permission to copy and/or distribute it,
  8819. # with or without modifications, as long as this notice is preserved.
  8820. # serial 4
  8821. # AM_MAKE_INCLUDE()
  8822. # -----------------
  8823. # Check to see how make treats includes.
  8824. AC_DEFUN([AM_MAKE_INCLUDE],
  8825. [am_make=${MAKE-make}
  8826. cat > confinc << 'END'
  8827. am__doit:
  8828. @echo this is the am__doit target
  8829. .PHONY: am__doit
  8830. END
  8831. # If we don't find an include directive, just comment out the code.
  8832. AC_MSG_CHECKING([for style of include used by $am_make])
  8833. am__include="#"
  8834. am__quote=
  8835. _am_result=none
  8836. # First try GNU make style include.
  8837. echo "include confinc" > confmf
  8838. # Ignore all kinds of additional output from `make'.
  8839. case `$am_make -s -f confmf 2> /dev/null` in #(
  8840. *the\ am__doit\ target*)
  8841. am__include=include
  8842. am__quote=
  8843. _am_result=GNU
  8844. ;;
  8845. esac
  8846. # Now try BSD make style include.
  8847. if test "$am__include" = "#"; then
  8848. echo '.include "confinc"' > confmf
  8849. case `$am_make -s -f confmf 2> /dev/null` in #(
  8850. *the\ am__doit\ target*)
  8851. am__include=.include
  8852. am__quote="\""
  8853. _am_result=BSD
  8854. ;;
  8855. esac
  8856. fi
  8857. AC_SUBST([am__include])
  8858. AC_SUBST([am__quote])
  8859. AC_MSG_RESULT([$_am_result])
  8860. rm -f confinc confmf
  8861. ])
  8862. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8863. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8864. # Free Software Foundation, Inc.
  8865. #
  8866. # This file is free software; the Free Software Foundation
  8867. # gives unlimited permission to copy and/or distribute it,
  8868. # with or without modifications, as long as this notice is preserved.
  8869. # serial 6
  8870. # AM_MISSING_PROG(NAME, PROGRAM)
  8871. # ------------------------------
  8872. AC_DEFUN([AM_MISSING_PROG],
  8873. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8874. $1=${$1-"${am_missing_run}$2"}
  8875. AC_SUBST($1)])
  8876. # AM_MISSING_HAS_RUN
  8877. # ------------------
  8878. # Define MISSING if not defined so far and test if it supports --run.
  8879. # If it does, set am_missing_run to use it, otherwise, to nothing.
  8880. AC_DEFUN([AM_MISSING_HAS_RUN],
  8881. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8882. AC_REQUIRE_AUX_FILE([missing])dnl
  8883. if test x"${MISSING+set}" != xset; then
  8884. case $am_aux_dir in
  8885. *\ * | *\ *)
  8886. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8887. *)
  8888. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8889. esac
  8890. fi
  8891. # Use eval to expand $SHELL
  8892. if eval "$MISSING --run true"; then
  8893. am_missing_run="$MISSING --run "
  8894. else
  8895. am_missing_run=
  8896. AC_MSG_WARN([`missing' script is too old or missing])
  8897. fi
  8898. ])
  8899. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8900. #
  8901. # This file is free software; the Free Software Foundation
  8902. # gives unlimited permission to copy and/or distribute it,
  8903. # with or without modifications, as long as this notice is preserved.
  8904. # AM_PROG_MKDIR_P
  8905. # ---------------
  8906. # Check for `mkdir -p'.
  8907. AC_DEFUN([AM_PROG_MKDIR_P],
  8908. [AC_PREREQ([2.60])dnl
  8909. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8910. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  8911. dnl while keeping a definition of mkdir_p for backward compatibility.
  8912. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  8913. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  8914. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  8915. dnl adjustment using top_builddir (which is defined more often than
  8916. dnl MKDIR_P).
  8917. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  8918. case $mkdir_p in
  8919. [[\\/$]]* | ?:[[\\/]]*) ;;
  8920. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8921. esac
  8922. ])
  8923. # Helper functions for option handling. -*- Autoconf -*-
  8924. # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  8925. #
  8926. # This file is free software; the Free Software Foundation
  8927. # gives unlimited permission to copy and/or distribute it,
  8928. # with or without modifications, as long as this notice is preserved.
  8929. # serial 4
  8930. # _AM_MANGLE_OPTION(NAME)
  8931. # -----------------------
  8932. AC_DEFUN([_AM_MANGLE_OPTION],
  8933. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8934. # _AM_SET_OPTION(NAME)
  8935. # ------------------------------
  8936. # Set option NAME. Presently that only means defining a flag for this option.
  8937. AC_DEFUN([_AM_SET_OPTION],
  8938. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  8939. # _AM_SET_OPTIONS(OPTIONS)
  8940. # ----------------------------------
  8941. # OPTIONS is a space-separated list of Automake options.
  8942. AC_DEFUN([_AM_SET_OPTIONS],
  8943. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8944. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8945. # -------------------------------------------
  8946. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8947. AC_DEFUN([_AM_IF_OPTION],
  8948. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8949. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8950. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  8951. # Free Software Foundation, Inc.
  8952. #
  8953. # This file is free software; the Free Software Foundation
  8954. # gives unlimited permission to copy and/or distribute it,
  8955. # with or without modifications, as long as this notice is preserved.
  8956. # serial 5
  8957. # AM_SANITY_CHECK
  8958. # ---------------
  8959. AC_DEFUN([AM_SANITY_CHECK],
  8960. [AC_MSG_CHECKING([whether build environment is sane])
  8961. # Just in case
  8962. sleep 1
  8963. echo timestamp > conftest.file
  8964. # Reject unsafe characters in $srcdir or the absolute working directory
  8965. # name. Accept space and tab only in the latter.
  8966. am_lf='
  8967. '
  8968. case `pwd` in
  8969. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8970. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8971. esac
  8972. case $srcdir in
  8973. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8974. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  8975. esac
  8976. # Do `set' in a subshell so we don't clobber the current shell's
  8977. # arguments. Must try -L first in case configure is actually a
  8978. # symlink; some systems play weird games with the mod time of symlinks
  8979. # (eg FreeBSD returns the mod time of the symlink's containing
  8980. # directory).
  8981. if (
  8982. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8983. if test "$[*]" = "X"; then
  8984. # -L didn't work.
  8985. set X `ls -t "$srcdir/configure" conftest.file`
  8986. fi
  8987. rm -f conftest.file
  8988. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8989. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8990. # If neither matched, then we have a broken ls. This can happen
  8991. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8992. # broken ls alias from the environment. This has actually
  8993. # happened. Such a system could not be considered "sane".
  8994. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8995. alias in your environment])
  8996. fi
  8997. test "$[2]" = conftest.file
  8998. )
  8999. then
  9000. # Ok.
  9001. :
  9002. else
  9003. AC_MSG_ERROR([newly created file is older than distributed files!
  9004. Check your system clock])
  9005. fi
  9006. AC_MSG_RESULT(yes)])
  9007. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  9008. #
  9009. # This file is free software; the Free Software Foundation
  9010. # gives unlimited permission to copy and/or distribute it,
  9011. # with or without modifications, as long as this notice is preserved.
  9012. # AM_PROG_INSTALL_STRIP
  9013. # ---------------------
  9014. # One issue with vendor `install' (even GNU) is that you can't
  9015. # specify the program used to strip binaries. This is especially
  9016. # annoying in cross-compiling environments, where the build's strip
  9017. # is unlikely to handle the host's binaries.
  9018. # Fortunately install-sh will honor a STRIPPROG variable, so we
  9019. # always use install-sh in `make install-strip', and initialize
  9020. # STRIPPROG with the value of the STRIP variable (set by the user).
  9021. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  9022. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  9023. # Installed binaries are usually stripped using `strip' when the user
  9024. # run `make install-strip'. However `strip' might not be the right
  9025. # tool to use in cross-compilation environments, therefore Automake
  9026. # will honor the `STRIP' environment variable to overrule this program.
  9027. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  9028. if test "$cross_compiling" != no; then
  9029. AC_CHECK_TOOL([STRIP], [strip], :)
  9030. fi
  9031. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  9032. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  9033. # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  9034. #
  9035. # This file is free software; the Free Software Foundation
  9036. # gives unlimited permission to copy and/or distribute it,
  9037. # with or without modifications, as long as this notice is preserved.
  9038. # serial 2
  9039. # _AM_SUBST_NOTMAKE(VARIABLE)
  9040. # ---------------------------
  9041. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  9042. # This macro is traced by Automake.
  9043. AC_DEFUN([_AM_SUBST_NOTMAKE])
  9044. # AM_SUBST_NOTMAKE(VARIABLE)
  9045. # ---------------------------
  9046. # Public sister of _AM_SUBST_NOTMAKE.
  9047. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  9048. # Check how to create a tarball. -*- Autoconf -*-
  9049. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  9050. #
  9051. # This file is free software; the Free Software Foundation
  9052. # gives unlimited permission to copy and/or distribute it,
  9053. # with or without modifications, as long as this notice is preserved.
  9054. # serial 2
  9055. # _AM_PROG_TAR(FORMAT)
  9056. # --------------------
  9057. # Check how to create a tarball in format FORMAT.
  9058. # FORMAT should be one of `v7', `ustar', or `pax'.
  9059. #
  9060. # Substitute a variable $(am__tar) that is a command
  9061. # writing to stdout a FORMAT-tarball containing the directory
  9062. # $tardir.
  9063. # tardir=directory && $(am__tar) > result.tar
  9064. #
  9065. # Substitute a variable $(am__untar) that extract such
  9066. # a tarball read from stdin.
  9067. # $(am__untar) < result.tar
  9068. AC_DEFUN([_AM_PROG_TAR],
  9069. [# Always define AMTAR for backward compatibility.
  9070. AM_MISSING_PROG([AMTAR], [tar])
  9071. m4_if([$1], [v7],
  9072. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  9073. [m4_case([$1], [ustar],, [pax],,
  9074. [m4_fatal([Unknown tar format])])
  9075. AC_MSG_CHECKING([how to create a $1 tar archive])
  9076. # Loop over all known methods to create a tar archive until one works.
  9077. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  9078. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  9079. # Do not fold the above two line into one, because Tru64 sh and
  9080. # Solaris sh will not grok spaces in the rhs of `-'.
  9081. for _am_tool in $_am_tools
  9082. do
  9083. case $_am_tool in
  9084. gnutar)
  9085. for _am_tar in tar gnutar gtar;
  9086. do
  9087. AM_RUN_LOG([$_am_tar --version]) && break
  9088. done
  9089. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  9090. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  9091. am__untar="$_am_tar -xf -"
  9092. ;;
  9093. plaintar)
  9094. # Must skip GNU tar: if it does not support --format= it doesn't create
  9095. # ustar tarball either.
  9096. (tar --version) >/dev/null 2>&1 && continue
  9097. am__tar='tar chf - "$$tardir"'
  9098. am__tar_='tar chf - "$tardir"'
  9099. am__untar='tar xf -'
  9100. ;;
  9101. pax)
  9102. am__tar='pax -L -x $1 -w "$$tardir"'
  9103. am__tar_='pax -L -x $1 -w "$tardir"'
  9104. am__untar='pax -r'
  9105. ;;
  9106. cpio)
  9107. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  9108. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  9109. am__untar='cpio -i -H $1 -d'
  9110. ;;
  9111. none)
  9112. am__tar=false
  9113. am__tar_=false
  9114. am__untar=false
  9115. ;;
  9116. esac
  9117. # If the value was cached, stop now. We just wanted to have am__tar
  9118. # and am__untar set.
  9119. test -n "${am_cv_prog_tar_$1}" && break
  9120. # tar/untar a dummy directory, and stop if the command works
  9121. rm -rf conftest.dir
  9122. mkdir conftest.dir
  9123. echo GrepMe > conftest.dir/file
  9124. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  9125. rm -rf conftest.dir
  9126. if test -s conftest.tar; then
  9127. AM_RUN_LOG([$am__untar <conftest.tar])
  9128. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  9129. fi
  9130. done
  9131. rm -rf conftest.dir
  9132. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  9133. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  9134. AC_SUBST([am__tar])
  9135. AC_SUBST([am__untar])
  9136. ]) # _AM_PROG_TAR